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: jobs:
build: 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: with:
otp-version: 24 otp-version: 24
rebar-version: 3 rebar-version: 3.23
use-thrift: true use-thrift: true
thrift-version: 0.14.2.3 thrift-version: 0.14.2.3
run-eunit: false run-eunit: false

View File

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