What is liquidating core? The article opens border of framework of flow of associate system professional work, system and domain model, business analysis and systematic border analyse 4 respects to come analytic, see ~ together
Flow of systematic professional work is analysed
The 0th step realizes all sorts of acceptance to carry the setting that requests now by product layer. 1-1.2 measure returns to be handled to pay a layer, the core that pays a layer is to pay an agreement, tell in front when paying core, had analysed, simple point says: It is OK that one pays an agreement = Wu of a Zhang dictates + instruction of a liquidation. Zhang Wu dictates and clear a statement among them, it is OK undertake moving most subsection. 1-2.4 pace, liquidation calls platform in this telling, among them the 2.2 buy before be called communication with 2.3 assumed jobs, of responsible instruction send, return with what accept a statement, in machine of the buy before the communication that they will be independence on physical deploy. The instruction that like use file this kind of way that refers artificially processes 2.2 meet respectively with 2.3 measure by suggestive to file builder, with the file analytic implement go up, also be liquidation system is mixed exterior have lot interactive core component. The 3rd pace is the ending job after liquidating a processing to end, let pay a layer to know final processing result, to deducting a money first trade for, the liquidation statement that the influence of this one pace depends on both sides recording merely is final the consistency of condition, other to what appear possibly later trade for, this condition may decide follow-up Zhang Wu is handled.Systematic framework and domain model
Logistic view
Deploy view
The Mix system duty here is two, it is to regard as together complex the business product that pays channel, include (the site pays, Dai Jinka, COD, MotoPay) , it is to delimit together transfer accounts into what pay a layer obligation and separate embellish business. Want to offer this system, because these are complex,be the business logic that pays channel is dispersedly in many systems (pay system, development gateway of platform, bank) , and these fixed position in the system are the buy before communication, should not include these logic. So unified change arrives in Mix system. The use person of Mix system has exterior before place system and counter, exterior before place system puts forward complex when paying channel the request, exterior before after buy did main interface desired result, all logistic processings are in charge of by Mix. The counter is the sponsor that pays channel, if initiate complex pay channel the request, also turn to Mix to handle first. Mix system serves as complex the business product that pays channel, but finish pay, still call finally pay core to finish. As alternant as Mix back end system, pay core only at present. Initiate when paying a request, mix is called pay core. Pay core after ending, business billabong gives Mix the system. Liquidation core is in charge of whole liquidating the movement of the model, all business that have liquidation demand with exterior orgnaization, pass liquidation core, include in front those who mention is complex pay channel. Pay core and liquidation the concern between very clear, pay core to call liquidation core to undertake clearing a request, after liquidation core liquidation ends, feedback to pay core. Liquidating core is model of responsible whole liquidation, material liquidation statement is sent, the buy before corresponding by a few will finish.Model pandect:
Liquidate hypostatic and current model:
Liquidating instruction and liquidation file is many pairs of relations of one, check and treated liquidation instruction and result of liquidation file processing are many pairs of relations of one. Above Dou Heqing calculates passageway interface is one-to-one relationship, perhaps do not dictate by the file only one liquidates passageway interface namely.
Channel type:
Channel type and among them a dimension spends communication kind is closely related.
Such channel type is OK coming that differentiate: Below quick, line, interconnection of credit card, artificial, silver-colored look forward to, B2B, B2C, VISA, MIGS (international pays) , COD, Dai Jinka
All sorts of mode of liquidation also are not divided with channel type, for example: Channel type is quick, it is use real time interface completely, interconnection of silver-colored look forward to uses the pattern that batch data refers through interface, and batch data makes a file undertake referring the kind below the line.
Pay orgnaization interior channel to differentiate it is the following kinds:
The bank blocks a kind:
Liquidate a type:
Square the position of the instruction:
The communication position that squares an instruction (file kind condition) : Dictate kind of condition.
The instruction of batch has two kinds of sent implementation pattern:
Be born downloads artificially for settle accounts for the file, send artificially refer. Be passed directly and the bank is interactive odd perhaps pen sends interface lot go out.The business of core is logistic
- The liquidation inside file full a cost dictates total pen counts = to fill a value to clear number of total pen of file processing result; Amount of instruction of every liquidation inside file full a cost and condition = fill a value to square amount of instruction of every liquidation inside file processing result and position; Fill retreat the liquidation inside the file to dictate total pen counts = to fill the total pen number that cancels result of liquidation file processing; Fill retreat every liquidation inside the file to dictate amount and condition = are filled remove amount of instruction of every liquidation inside result of liquidation file processing and condition.
Business border is analysed
With exemple general drawing:
Liquidate file processing:
Fill a value to answer guide the file is gotten.
Fill a value to answer guide the file has two kinds to get way:
One kind is to go to a bank artificially network silver-colored system goes downloading, save this locality hard disk, upload a function to undertake uploading through what working platform offers next. The 2nd kind is artificial or the system sparks (the system sparks automatically can be fixed time place, the time that perhaps has the law paragraph) the buy before corresponding by the system and bank server undertake be takinged interactively answering guiding file.What basically point to here is the 2nd kind.
As above graph, the buy before we will pass standard interface and communication gets a document interactively, save a movement actually to be finished by the buy before communication, save module of liquidation file processing returns file way after finishing. After the buy before communication gets a document, want to save simple document information in the database. In the file by guide data SETTLE_BANK_RETURN is expressed after analytic success, save file summary information SETTLE_BANK_RETURN_BATCH watch at the same time. The buy before communication needs particular cache function, for instance: A few banks a file returns a variety of business, so need of the buy before communication can be divisional come out, do not go asking a bank for many times.Liquidate file processing
Fill a value to answer guide the file is analytic:
See figure above, we should save analytic script content to the database, read the content in taking a database directly, such convenience that manage and update. Analytic script and file pattern plate need each file to be developed carefully.Fill a value to answer guide the file guides: The file is analytic after finishing, need stores data object in the database, to filling business key field mixes for the value carry like showing: Order of order full a cost and amount full a cost.
Fill a value to answer guide the file is opposite Zhang:
To Zhang need undertakes sparking after guiding, can be to spark artificially, also can be the system sparks automatically, also can be in after guiding instantly the system sparks automatically to Zhang. The system will be offerred interface is called for working platform or him system is called. The system sparks can configure a time executive task, the thing that can want real time to do so becomes asynchronous to ensure the business that can do, will use time the systematic function that make an appointment, have in time inquiry tell this tool.Pair of current Zhang technological process following graphs:
The buy before the bank corresponds: The job that basically involves is net silver the autograph to the instruction, desired result autograph and message service fee and the butt joint that liquidate core, still have the butt joint that gets pair of Zhang documents.
Liquidate instruction processing:
The liquidation result condition of the instruction:
The communication position that squares an instruction (file kind condition) :
Dictate kind of condition: The instruction of batch has two kinds of sent implementation pattern.
Interior serves government:
The instruction handles sequential chart:
Systematic border is analysed
A few understanding that go up to business through early days, at present the product can divide it is 3 kinds big: Net silver is asynchronous mode, straight connect mode, other individuation mode.
Mode of net silver-colored asynchronous includes: These have B2B, B2C, VISA, MIGS pay orgnaization and bank page to reveal, bank end needs an user to input Zhang name code to have paying business. Include even pattern continuously: The net collects these E, quick passing some kind of agreement needs to affirm the business that can have disbursement in the website only. Other individuation mode includes: COD of reimbursement of orgnaization of finance of the site below MOTO, line, credit card, COD, Dai Jinka, phone pays these belonging to liquidation but the professional work with very intricate model.Connect mode continuously:
Mode of net silver-colored asynchronous:
Topic figure comes from Unsplash, be based on CC0 agreement