IMP-278: Partially reverts payout tool removal from party claims (#150)

* IMP-278: Partially reverts payout tool removal from party claims

* Bumps CI

* Reverts to older minor version of rebar in CI

* Makes missing deprecated fields optional
This commit is contained in:
Aleksey Kashapov 2024-09-04 15:03:58 +03:00 committed by GitHub
parent 8e034bc74b
commit 9d4aa513fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 54 additions and 26 deletions

View File

@ -7,10 +7,10 @@ on:
jobs:
build:
uses: valitydev/erlang-workflows/.github/workflows/erlang-simple-build.yml@v1
uses: valitydev/erlang-workflows/.github/workflows/erlang-simple-build.yml@v1.0.15
with:
otp-version: 24
rebar-version: 3
rebar-version: 3.23
use-thrift: true
thrift-version: 0.14.2.3
run-eunit: false

View File

@ -1908,6 +1908,9 @@ typedef domain.WalletID WalletID
typedef domain.ContractTemplateRef ContractTemplateRef
typedef domain.PaymentInstitutionRef PaymentInstitutionRef
// Deprecated
typedef domain.PayoutToolID PayoutToolID
struct Varset {
1: optional domain.CategoryRef category
2: optional domain.CurrencyRef currency
@ -1949,14 +1952,20 @@ struct PartyParams {
1: required domain.PartyContactInfo contact_info
}
// Deprecated
struct PayoutToolParams {
1: required domain.CurrencyRef currency
2: required domain.PayoutToolInfo tool_info
}
struct ShopParams {
1: optional domain.CategoryRef category
6: required domain.ShopLocation location
2: required domain.ShopDetails details
3: required ContractID contract_id
// Reserved
// 4
// Deprecated
4: optional domain.PayoutToolID payout_tool_id
}
struct ShopAccountParams {
@ -2018,8 +2027,8 @@ union ContractModification {
6: domain.ReportPreferences report_preferences_modification
7: ContractorID contractor_modification
// Reserved
// 4
// Deprecated
4: PayoutToolModificationUnit payout_tool_modification
}
struct ContractTermination {
@ -2035,6 +2044,18 @@ union ContractAdjustmentModification {
1: ContractAdjustmentParams creation
}
// Deprecated
struct PayoutToolModificationUnit {
1: required domain.PayoutToolID payout_tool_id
2: required PayoutToolModification modification
}
// Deprecated
union PayoutToolModification {
1: PayoutToolParams creation
2: domain.PayoutToolInfo info_modification
}
typedef list<PartyModification> PartyChangeset
struct ShopModificationUnit {
@ -2053,17 +2074,15 @@ union ShopModification {
/* deprecated */
10: ProxyModification proxy_modification
// Reserved
// 9
// 13
9: domain.PayoutToolID payout_tool_modification
13: ScheduleModification payout_schedule_modification
}
struct ShopContractModification {
1: required ContractID contract_id
// Reserved
// 2
// Deprecated
2: optional domain.PayoutToolID payout_tool_id
}
struct ScheduleModification {
@ -2163,9 +2182,9 @@ union ContractEffect {
6: domain.ReportPreferences report_preferences_changed
7: ContractorID contractor_changed
// Reserved
// 4
// 8
// Deprecated
4: domain.PayoutTool payout_tool_created
8: PayoutToolInfoChanged payout_tool_info_changed
}
struct ShopEffectUnit {
@ -2184,17 +2203,15 @@ union ShopEffect {
/* deprecated */
6: ShopProxyChanged proxy_changed
// Reserved
// 5
// 9
5: domain.PayoutToolID payout_tool_changed
9: ScheduleChanged payout_schedule_changed
}
struct ShopContractChanged {
1: required ContractID contract_id
// Reserved
// 2
// Deprecated
2: optional domain.PayoutToolID payout_tool_id
}
struct ScheduleChanged {
@ -2216,6 +2233,12 @@ struct ContractorIdentityDocumentsChanged {
1: required list<domain.IdentityDocumentToken> identity_documents
}
// Deprecated
struct PayoutToolInfoChanged {
1: required domain.PayoutToolID payout_tool_id
2: required domain.PayoutToolInfo info
}
struct WalletEffectUnit {
1: required WalletID id
2: required WalletEffect effect
@ -2415,9 +2438,9 @@ union InvalidContractReason {
7: InvalidObjectReference invalid_object_reference
8: ContractorNotExists contractor_not_exists
// Reserved
// 5
// 6
// Deprecated
5: domain.PayoutToolID payout_tool_not_exists
6: domain.PayoutToolID payout_tool_already_exists
}
union InvalidShopReason {
@ -2428,8 +2451,8 @@ union InvalidShopReason {
5: ContractTermsViolated contract_terms_violated
7: InvalidObjectReference invalid_object_reference
// Reserved
// 6
// Deprecated
6: ShopPayoutToolInvalid payout_tool_invalid
}
union InvalidWalletReason {
@ -2454,6 +2477,11 @@ struct ContractTermsViolated {
2: required domain.TermSet terms
}
// Deprecated
struct ShopPayoutToolInvalid {
1: optional domain.PayoutToolID payout_tool_id
}
struct InvalidObjectReference {
1: optional domain.Reference ref
}