TD-964: Reverts removal and marks deprecated previously required payout fields in claim-committer mods (#151)
Some checks failed
Frontend: Publish / configured (push) Has been cancelled
Frontend: Publish / Publish (push) Has been cancelled
Java deploy / deploy (push) Has been cancelled

This commit is contained in:
Aleksey Kashapov 2024-09-17 10:04:22 +03:00 committed by GitHub
parent 9d4aa513fc
commit 7762f6c13d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -111,9 +111,9 @@ union InvalidContractReason {
7: InvalidObjectReference invalid_object_reference 7: InvalidObjectReference invalid_object_reference
8: ContractorNotExists contractor_not_exists 8: ContractorNotExists contractor_not_exists
// Reserved // Deprecated
// 5 5: domain.PayoutToolID payout_tool_not_exists
// 6 6: domain.PayoutToolID payout_tool_already_exists
} }
union InvalidShopReason { union InvalidShopReason {
@ -124,8 +124,8 @@ union InvalidShopReason {
5: ContractTermsViolated contract_terms_violated 5: ContractTermsViolated contract_terms_violated
7: InvalidObjectReference invalid_object_reference 7: InvalidObjectReference invalid_object_reference
// Reserved // Deprecated
// 6 6: InvalidShopPayoutTool payout_tool_invalid
} }
union InvalidWalletReason { union InvalidWalletReason {
@ -150,6 +150,28 @@ struct ContractTermsViolated {
2: required domain.TermSet terms 2: required domain.TermSet terms
} }
// Deprecated
union InvalidShopPayoutTool {
1: PayoutToolNotSetForPayouts not_set_for_payouts
2: PayoutToolCurrencyMismatch currency_mismatch
3: PayoutToolNotInContract not_in_contract
}
struct PayoutToolNotSetForPayouts {
1: required domain.BusinessScheduleRef payout_schedule
}
struct PayoutToolCurrencyMismatch {
1: required domain.CurrencyRef shop_account_currency
2: required domain.PayoutToolID payout_tool_id
3: required domain.CurrencyRef payout_tool_currency
}
struct PayoutToolNotInContract {
1: required domain.ContractID contract_id
2: required domain.PayoutToolID payout_tool_id
}
struct InvalidObjectReference { struct InvalidObjectReference {
1: optional domain.Reference ref 1: optional domain.Reference ref
} }
@ -187,8 +209,14 @@ struct ScheduleChanged {
struct ShopContractChanged { struct ShopContractChanged {
1: required domain.ContractID contract_id 1: required domain.ContractID contract_id
// Reserved // Deprecated
// 2 2: optional domain.PayoutToolID payout_tool_id
}
// Deprecated
struct PayoutToolParams {
1: required domain.CurrencyRef currency
2: required domain.PayoutToolInfo tool_info
} }
struct ContractParams { struct ContractParams {
@ -205,8 +233,8 @@ struct ShopModificationUnit {
struct ShopContractModification { struct ShopContractModification {
1: required domain.ContractID contract_id 1: required domain.ContractID contract_id
// Reserved // Deprecated
// 2 2: optional domain.PayoutToolID payout_tool_id
} }
struct ScheduleModification { struct ScheduleModification {
@ -227,9 +255,9 @@ union ShopModification {
9: CashRegisterModificationUnit cash_register_modification_unit 9: CashRegisterModificationUnit cash_register_modification_unit
10: set<domain.TurnoverLimit> turnover_limits_modification 10: set<domain.TurnoverLimit> turnover_limits_modification
// Reserved // Deprecated
// 5 5: domain.PayoutToolID payout_tool_modification
// 8 8: ScheduleModification payout_schedule_modification
} }
struct ShopParams { struct ShopParams {
@ -238,8 +266,8 @@ struct ShopParams {
3: required domain.ShopDetails details 3: required domain.ShopDetails details
4: required domain.ContractID contract_id 4: required domain.ContractID contract_id
// Reserved // Deprecated
// 5 5: optional domain.PayoutToolID payout_tool_id
} }
struct CashRegisterModificationUnit { struct CashRegisterModificationUnit {
@ -279,8 +307,8 @@ union ContractModification {
6: domain.ReportPreferences report_preferences_modification 6: domain.ReportPreferences report_preferences_modification
7: domain.ContractorID contractor_modification 7: domain.ContractorID contractor_modification
// Reserved // Deprecated
// 4 4: PayoutToolModificationUnit payout_tool_modification
} }
struct ContractTermination { struct ContractTermination {
@ -300,6 +328,17 @@ union ContractAdjustmentModification {
1: ContractAdjustmentParams creation 1: ContractAdjustmentParams creation
} }
// Deprecated
struct PayoutToolModificationUnit {
1: required domain.PayoutToolID payout_tool_id
2: required PayoutToolModification modification
}
union PayoutToolModification {
1: PayoutToolParams creation
2: domain.PayoutToolInfo info_modification
}
struct WalletModificationUnit { struct WalletModificationUnit {
1: required domain.WalletID id 1: required domain.WalletID id
2: required WalletModification modification 2: required WalletModification modification