FF-7 Add more wallet accounts to cash flow and more vars to terms (#389)

* Add more wallet accounts to cash flow
* Add varset to terms retrival method argruments
* Remove obsolete wallet cash_flow names
This commit is contained in:
Andrey Fadeev 2018-10-15 15:49:08 +03:00 committed by GitHub
parent e044dd7fd9
commit 192ba019f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View File

@ -1490,8 +1490,10 @@ enum ExternalCashFlowAccount {
}
enum WalletCashFlowAccount {
settlement
payout
sender_source
sender_settlement
receiver_settlement
receiver_destination
}
enum CashFlowConstant {

View File

@ -1215,6 +1215,7 @@ struct Varset {
3: optional domain.Cash amount
4: optional domain.PaymentMethodRef payment_method
5: optional domain.PayoutMethodRef payout_method
6: optional domain.WalletID wallet_id
}
struct PartyParams {
@ -1758,6 +1759,18 @@ service PartyManagement {
/* Wallet */
// temporary method for transfer period
// do not use
domain.TermSet ComputeWalletTermsNew (
1: UserInfo user,
2: PartyID party_id,
3: ContractID contract_id,
4: base.Timestamp timestamp
5: Varset varset
)
throws (1: InvalidUser ex1, 2: PartyNotFound ex2, 3: PartyNotExistsYet ex3)
// deprecated
domain.TermSet ComputeWalletTerms (
1: UserInfo user,
2: PartyID party_id,