straddle 0.1.0.pre.alpha.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +52 -0
- data/README.md +3 -3
- data/SECURITY.md +1 -1
- data/lib/straddle/client.rb +4 -4
- data/lib/straddle/errors.rb +25 -11
- data/lib/straddle/file_part.rb +10 -7
- data/lib/straddle/internal/page_number_schema.rb +1 -1
- data/lib/straddle/internal/transport/base_client.rb +12 -8
- data/lib/straddle/internal/transport/pooled_net_requester.rb +8 -19
- data/lib/straddle/internal/type/array_of.rb +1 -0
- data/lib/straddle/internal/type/base_model.rb +4 -9
- data/lib/straddle/internal/type/base_page.rb +1 -1
- data/lib/straddle/internal/type/converter.rb +27 -0
- data/lib/straddle/internal/type/file_input.rb +7 -4
- data/lib/straddle/internal/type/hash_of.rb +1 -0
- data/lib/straddle/internal/type/union.rb +9 -7
- data/lib/straddle/internal/util.rb +4 -3
- data/lib/straddle/models/bridge/link_bank_account_params.rb +9 -5
- data/lib/straddle/models/bridge/link_create_paykey_params.rb +9 -5
- data/lib/straddle/models/bridge/link_create_tan_params.rb +9 -5
- data/lib/straddle/models/bridge/link_plaid_params.rb +8 -1
- data/lib/straddle/models/bridge_initialize_params.rb +8 -1
- data/lib/straddle/models/charge_cancel_params.rb +8 -1
- data/lib/straddle/models/charge_create_params.rb +8 -1
- data/lib/straddle/models/charge_hold_params.rb +8 -1
- data/lib/straddle/models/charge_release_params.rb +8 -1
- data/lib/straddle/models/charge_update_params.rb +8 -1
- data/lib/straddle/models/customer_create_params.rb +8 -2
- data/lib/straddle/models/customer_delete_params.rb +7 -1
- data/lib/straddle/models/customer_list_params.rb +0 -1
- data/lib/straddle/models/customer_refresh_review_params.rb +7 -1
- data/lib/straddle/models/customer_summary_paged_v1.rb +0 -1
- data/lib/straddle/models/customer_unmasked_v1.rb +1 -5
- data/lib/straddle/models/customer_update_params.rb +8 -1
- data/lib/straddle/models/customer_v1.rb +0 -1
- data/lib/straddle/models/customers/customer_review_v1.rb +15 -52
- data/lib/straddle/models/customers/identity_verification_breakdown_v1.rb +0 -1
- data/lib/straddle/models/customers/review_decision_params.rb +8 -1
- data/lib/straddle/models/embed/account_create_params.rb +8 -2
- data/lib/straddle/models/embed/account_onboard_params.rb +7 -1
- data/lib/straddle/models/embed/account_paged_v1.rb +3 -17
- data/lib/straddle/models/embed/account_simulate_params.rb +7 -1
- data/lib/straddle/models/embed/account_update_params.rb +8 -1
- data/lib/straddle/models/embed/account_v1.rb +2 -13
- data/lib/straddle/models/embed/accounts/capability_request_create_params.rb +8 -1
- data/lib/straddle/models/embed/accounts/capability_request_paged_v1.rb +3 -11
- data/lib/straddle/models/embed/linked_bank_account_cancel_params.rb +34 -0
- data/lib/straddle/models/embed/linked_bank_account_create_params.rb +51 -4
- data/lib/straddle/models/embed/linked_bank_account_paged_v1.rb +33 -13
- data/lib/straddle/models/embed/linked_bank_account_unmask_v1.rb +3 -8
- data/lib/straddle/models/embed/linked_bank_account_update_params.rb +8 -1
- data/lib/straddle/models/embed/linked_bank_account_v1.rb +30 -1
- data/lib/straddle/models/embed/organization_create_params.rb +8 -1
- data/lib/straddle/models/embed/representative.rb +10 -1
- data/lib/straddle/models/embed/representative_create_params.rb +17 -1
- data/lib/straddle/models/embed/representative_paged.rb +10 -1
- data/lib/straddle/models/embed/representative_update_params.rb +17 -1
- data/lib/straddle/models/paykey_cancel_params.rb +7 -1
- data/lib/straddle/models/paykey_review_params.rb +54 -0
- data/lib/straddle/models/payout_cancel_params.rb +8 -1
- data/lib/straddle/models/payout_create_params.rb +8 -1
- data/lib/straddle/models/payout_hold_params.rb +8 -1
- data/lib/straddle/models/payout_release_params.rb +8 -1
- data/lib/straddle/models/payout_update_params.rb +8 -1
- data/lib/straddle/models.rb +2 -0
- data/lib/straddle/resources/bridge/link.rb +16 -4
- data/lib/straddle/resources/bridge.rb +4 -1
- data/lib/straddle/resources/charges.rb +20 -5
- data/lib/straddle/resources/customers/review.rb +4 -1
- data/lib/straddle/resources/customers.rb +16 -4
- data/lib/straddle/resources/embed/accounts/capability_requests.rb +5 -2
- data/lib/straddle/resources/embed/accounts.rb +19 -7
- data/lib/straddle/resources/embed/linked_bank_accounts.rb +51 -5
- data/lib/straddle/resources/embed/organizations.rb +5 -2
- data/lib/straddle/resources/embed/representatives.rb +14 -4
- data/lib/straddle/resources/paykeys.rb +47 -1
- data/lib/straddle/resources/payouts.rb +20 -5
- data/lib/straddle/version.rb +1 -1
- data/lib/straddle.rb +2 -0
- data/rbi/straddle/client.rbi +4 -4
- data/rbi/straddle/errors.rbi +31 -4
- data/rbi/straddle/file_part.rbi +1 -1
- data/rbi/straddle/internal/transport/base_client.rbi +5 -6
- data/rbi/straddle/internal/type/base_page.rbi +1 -1
- data/rbi/straddle/internal/type/converter.rbi +54 -0
- data/rbi/straddle/internal/type/union.rbi +9 -2
- data/rbi/straddle/internal/util.rbi +1 -1
- data/rbi/straddle/models/bridge/link_bank_account_params.rbi +9 -0
- data/rbi/straddle/models/bridge/link_create_paykey_params.rbi +9 -0
- data/rbi/straddle/models/bridge/link_create_tan_params.rbi +9 -0
- data/rbi/straddle/models/bridge/link_plaid_params.rbi +9 -0
- data/rbi/straddle/models/bridge_initialize_params.rbi +9 -0
- data/rbi/straddle/models/charge_cancel_params.rbi +9 -0
- data/rbi/straddle/models/charge_create_params.rbi +9 -0
- data/rbi/straddle/models/charge_hold_params.rbi +9 -0
- data/rbi/straddle/models/charge_release_params.rbi +9 -0
- data/rbi/straddle/models/charge_update_params.rbi +9 -0
- data/rbi/straddle/models/customer_create_params.rbi +9 -2
- data/rbi/straddle/models/customer_delete_params.rbi +9 -0
- data/rbi/straddle/models/customer_list_params.rbi +0 -2
- data/rbi/straddle/models/customer_refresh_review_params.rbi +9 -0
- data/rbi/straddle/models/customer_summary_paged_v1.rbi +0 -5
- data/rbi/straddle/models/customer_unmasked_v1.rbi +0 -5
- data/rbi/straddle/models/customer_update_params.rbi +9 -0
- data/rbi/straddle/models/customer_v1.rbi +0 -2
- data/rbi/straddle/models/customers/customer_review_v1.rbi +0 -10
- data/rbi/straddle/models/customers/identity_verification_breakdown_v1.rbi +0 -5
- data/rbi/straddle/models/customers/review_decision_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_create_params.rbi +9 -5
- data/rbi/straddle/models/embed/account_onboard_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_paged_v1.rbi +0 -25
- data/rbi/straddle/models/embed/account_simulate_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_update_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_v1.rbi +0 -25
- data/rbi/straddle/models/embed/accounts/capability_request_create_params.rbi +9 -0
- data/rbi/straddle/models/embed/linked_bank_account_cancel_params.rbi +67 -0
- data/rbi/straddle/models/embed/linked_bank_account_create_params.rbi +95 -3
- data/rbi/straddle/models/embed/linked_bank_account_paged_v1.rbi +72 -0
- data/rbi/straddle/models/embed/linked_bank_account_unmask_v1.rbi +5 -0
- data/rbi/straddle/models/embed/linked_bank_account_update_params.rbi +9 -0
- data/rbi/straddle/models/embed/linked_bank_account_v1.rbi +72 -0
- data/rbi/straddle/models/embed/organization_create_params.rbi +9 -0
- data/rbi/straddle/models/embed/representative.rbi +10 -0
- data/rbi/straddle/models/embed/representative_create_params.rbi +19 -0
- data/rbi/straddle/models/embed/representative_paged.rbi +10 -0
- data/rbi/straddle/models/embed/representative_update_params.rbi +19 -0
- data/rbi/straddle/models/paykey_cancel_params.rbi +9 -0
- data/rbi/straddle/models/paykey_review_params.rbi +98 -0
- data/rbi/straddle/models/payout_cancel_params.rbi +9 -0
- data/rbi/straddle/models/payout_create_params.rbi +9 -0
- data/rbi/straddle/models/payout_hold_params.rbi +9 -0
- data/rbi/straddle/models/payout_release_params.rbi +9 -0
- data/rbi/straddle/models/payout_update_params.rbi +9 -0
- data/rbi/straddle/models.rbi +2 -0
- data/rbi/straddle/resources/bridge/link.rbi +12 -0
- data/rbi/straddle/resources/bridge.rbi +3 -0
- data/rbi/straddle/resources/charges.rbi +15 -0
- data/rbi/straddle/resources/customers/review.rbi +3 -0
- data/rbi/straddle/resources/customers.rbi +12 -0
- data/rbi/straddle/resources/embed/accounts/capability_requests.rbi +3 -0
- data/rbi/straddle/resources/embed/accounts.rbi +12 -0
- data/rbi/straddle/resources/embed/linked_bank_accounts.rbi +46 -1
- data/rbi/straddle/resources/embed/organizations.rbi +3 -0
- data/rbi/straddle/resources/embed/representatives.rbi +14 -0
- data/rbi/straddle/resources/paykeys.rbi +34 -0
- data/rbi/straddle/resources/payouts.rbi +15 -0
- data/sig/straddle/client.rbs +3 -3
- data/sig/straddle/errors.rbs +7 -0
- data/sig/straddle/file_part.rbs +1 -1
- data/sig/straddle/internal/transport/base_client.rbs +1 -1
- data/sig/straddle/internal/type/converter.rbs +17 -0
- data/sig/straddle/internal/type/union.rbs +2 -2
- data/sig/straddle/models/bridge/link_bank_account_params.rbs +7 -0
- data/sig/straddle/models/bridge/link_create_paykey_params.rbs +7 -0
- data/sig/straddle/models/bridge/link_create_tan_params.rbs +7 -0
- data/sig/straddle/models/bridge/link_plaid_params.rbs +7 -0
- data/sig/straddle/models/bridge_initialize_params.rbs +7 -0
- data/sig/straddle/models/charge_cancel_params.rbs +7 -0
- data/sig/straddle/models/charge_create_params.rbs +7 -0
- data/sig/straddle/models/charge_hold_params.rbs +7 -0
- data/sig/straddle/models/charge_release_params.rbs +7 -0
- data/sig/straddle/models/charge_update_params.rbs +7 -0
- data/sig/straddle/models/customer_create_params.rbs +8 -2
- data/sig/straddle/models/customer_delete_params.rbs +7 -0
- data/sig/straddle/models/customer_list_params.rbs +1 -2
- data/sig/straddle/models/customer_refresh_review_params.rbs +7 -0
- data/sig/straddle/models/customer_summary_paged_v1.rbs +1 -2
- data/sig/straddle/models/customer_unmasked_v1.rbs +1 -2
- data/sig/straddle/models/customer_update_params.rbs +7 -0
- data/sig/straddle/models/customer_v1.rbs +1 -2
- data/sig/straddle/models/customers/customer_review_v1.rbs +1 -4
- data/sig/straddle/models/customers/identity_verification_breakdown_v1.rbs +1 -6
- data/sig/straddle/models/customers/review_decision_params.rbs +7 -0
- data/sig/straddle/models/embed/account_create_params.rbs +8 -2
- data/sig/straddle/models/embed/account_onboard_params.rbs +7 -0
- data/sig/straddle/models/embed/account_paged_v1.rbs +4 -21
- data/sig/straddle/models/embed/account_simulate_params.rbs +7 -0
- data/sig/straddle/models/embed/account_update_params.rbs +7 -0
- data/sig/straddle/models/embed/account_v1.rbs +4 -21
- data/sig/straddle/models/embed/accounts/capability_request_create_params.rbs +7 -0
- data/sig/straddle/models/embed/linked_bank_account_cancel_params.rbs +40 -0
- data/sig/straddle/models/embed/linked_bank_account_create_params.rbs +38 -4
- data/sig/straddle/models/embed/linked_bank_account_paged_v1.rbs +25 -1
- data/sig/straddle/models/embed/linked_bank_account_unmask_v1.rbs +3 -1
- data/sig/straddle/models/embed/linked_bank_account_update_params.rbs +7 -0
- data/sig/straddle/models/embed/linked_bank_account_v1.rbs +25 -1
- data/sig/straddle/models/embed/organization_create_params.rbs +7 -0
- data/sig/straddle/models/embed/representative.rbs +5 -0
- data/sig/straddle/models/embed/representative_create_params.rbs +12 -0
- data/sig/straddle/models/embed/representative_paged.rbs +5 -0
- data/sig/straddle/models/embed/representative_update_params.rbs +12 -0
- data/sig/straddle/models/paykey_cancel_params.rbs +7 -0
- data/sig/straddle/models/paykey_review_params.rbs +65 -0
- data/sig/straddle/models/payout_cancel_params.rbs +7 -0
- data/sig/straddle/models/payout_create_params.rbs +7 -0
- data/sig/straddle/models/payout_hold_params.rbs +7 -0
- data/sig/straddle/models/payout_release_params.rbs +7 -0
- data/sig/straddle/models/payout_update_params.rbs +7 -0
- data/sig/straddle/models.rbs +2 -0
- data/sig/straddle/resources/bridge/link.rbs +4 -0
- data/sig/straddle/resources/bridge.rbs +1 -0
- data/sig/straddle/resources/charges.rbs +5 -0
- data/sig/straddle/resources/customers/review.rbs +1 -0
- data/sig/straddle/resources/customers.rbs +4 -0
- data/sig/straddle/resources/embed/accounts/capability_requests.rbs +1 -0
- data/sig/straddle/resources/embed/accounts.rbs +4 -0
- data/sig/straddle/resources/embed/linked_bank_accounts.rbs +14 -1
- data/sig/straddle/resources/embed/organizations.rbs +1 -0
- data/sig/straddle/resources/embed/representatives.rbs +4 -0
- data/sig/straddle/resources/paykeys.rbs +11 -0
- data/sig/straddle/resources/payouts.rbs +5 -0
- metadata +11 -5
|
@@ -19,6 +19,11 @@ module Straddle
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :correlation_id, String
|
|
21
21
|
|
|
22
|
+
# @!attribute idempotency_key
|
|
23
|
+
#
|
|
24
|
+
# @return [String, nil]
|
|
25
|
+
optional :idempotency_key, String
|
|
26
|
+
|
|
22
27
|
# @!attribute request_id
|
|
23
28
|
#
|
|
24
29
|
# @return [String, nil]
|
|
@@ -29,11 +34,13 @@ module Straddle
|
|
|
29
34
|
# @return [String, nil]
|
|
30
35
|
optional :straddle_account_id, String
|
|
31
36
|
|
|
32
|
-
# @!method initialize(status:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
37
|
+
# @!method initialize(status:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
33
38
|
# @param status [Symbol, Straddle::Models::Customers::ReviewDecisionParams::Status] The final status of the customer review.
|
|
34
39
|
#
|
|
35
40
|
# @param correlation_id [String]
|
|
36
41
|
#
|
|
42
|
+
# @param idempotency_key [String]
|
|
43
|
+
#
|
|
37
44
|
# @param request_id [String]
|
|
38
45
|
#
|
|
39
46
|
# @param straddle_account_id [String]
|
|
@@ -51,12 +51,17 @@ module Straddle
|
|
|
51
51
|
# @return [String, nil]
|
|
52
52
|
optional :correlation_id, String
|
|
53
53
|
|
|
54
|
+
# @!attribute idempotency_key
|
|
55
|
+
#
|
|
56
|
+
# @return [String, nil]
|
|
57
|
+
optional :idempotency_key, String
|
|
58
|
+
|
|
54
59
|
# @!attribute request_id
|
|
55
60
|
#
|
|
56
61
|
# @return [String, nil]
|
|
57
62
|
optional :request_id, String
|
|
58
63
|
|
|
59
|
-
# @!method initialize(access_level:, account_type:, business_profile:, organization_id:, external_id: nil, metadata: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
64
|
+
# @!method initialize(access_level:, account_type:, business_profile:, organization_id:, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
60
65
|
# Some parameter documentations has been truncated, see
|
|
61
66
|
# {Straddle::Models::Embed::AccountCreateParams} for more details.
|
|
62
67
|
#
|
|
@@ -74,6 +79,8 @@ module Straddle
|
|
|
74
79
|
#
|
|
75
80
|
# @param correlation_id [String]
|
|
76
81
|
#
|
|
82
|
+
# @param idempotency_key [String]
|
|
83
|
+
#
|
|
77
84
|
# @param request_id [String]
|
|
78
85
|
#
|
|
79
86
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -95,7 +102,6 @@ module Straddle
|
|
|
95
102
|
extend Straddle::Internal::Type::Enum
|
|
96
103
|
|
|
97
104
|
BUSINESS = :business
|
|
98
|
-
UNKNOWN = :unknown
|
|
99
105
|
|
|
100
106
|
# @!method self.values
|
|
101
107
|
# @return [Array<Symbol>]
|
|
@@ -18,14 +18,20 @@ module Straddle
|
|
|
18
18
|
# @return [String, nil]
|
|
19
19
|
optional :correlation_id, String
|
|
20
20
|
|
|
21
|
+
# @!attribute idempotency_key
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :idempotency_key, String
|
|
25
|
+
|
|
21
26
|
# @!attribute request_id
|
|
22
27
|
#
|
|
23
28
|
# @return [String, nil]
|
|
24
29
|
optional :request_id, String
|
|
25
30
|
|
|
26
|
-
# @!method initialize(terms_of_service:, correlation_id: nil, request_id: nil, request_options: {})
|
|
31
|
+
# @!method initialize(terms_of_service:, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
27
32
|
# @param terms_of_service [Straddle::Models::Embed::TermsOfServiceV1]
|
|
28
33
|
# @param correlation_id [String]
|
|
34
|
+
# @param idempotency_key [String]
|
|
29
35
|
# @param request_id [String]
|
|
30
36
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
31
37
|
end
|
|
@@ -178,7 +178,6 @@ module Straddle
|
|
|
178
178
|
ACTIVE = :active
|
|
179
179
|
REJECTED = :rejected
|
|
180
180
|
INACTIVE = :inactive
|
|
181
|
-
UNKNOWN = :unknown
|
|
182
181
|
|
|
183
182
|
# @!method self.values
|
|
184
183
|
# @return [Array<Symbol>]
|
|
@@ -241,7 +240,6 @@ module Straddle
|
|
|
241
240
|
DISABLED = :disabled
|
|
242
241
|
TERMINATED = :terminated
|
|
243
242
|
NEW = :new
|
|
244
|
-
UNKNOWN = :unknown
|
|
245
243
|
|
|
246
244
|
# @!method self.values
|
|
247
245
|
# @return [Array<Symbol>]
|
|
@@ -268,7 +266,6 @@ module Straddle
|
|
|
268
266
|
extend Straddle::Internal::Type::Enum
|
|
269
267
|
|
|
270
268
|
BUSINESS = :business
|
|
271
|
-
UNKNOWN = :unknown
|
|
272
269
|
|
|
273
270
|
# @!method self.values
|
|
274
271
|
# @return [Array<Symbol>]
|
|
@@ -284,10 +281,7 @@ module Straddle
|
|
|
284
281
|
# @!attribute customer_types
|
|
285
282
|
#
|
|
286
283
|
# @return [Straddle::Models::Embed::AccountPagedV1::Data::Capabilities::CustomerTypes]
|
|
287
|
-
required :customer_types,
|
|
288
|
-
-> {
|
|
289
|
-
Straddle::Embed::AccountPagedV1::Data::Capabilities::CustomerTypes
|
|
290
|
-
}
|
|
284
|
+
required :customer_types, -> { Straddle::Embed::AccountPagedV1::Data::Capabilities::CustomerTypes }
|
|
291
285
|
|
|
292
286
|
# @!attribute payment_types
|
|
293
287
|
#
|
|
@@ -389,10 +383,7 @@ module Straddle
|
|
|
389
383
|
# Straddle.
|
|
390
384
|
#
|
|
391
385
|
# @return [Symbol, Straddle::Models::Embed::AccountPagedV1::Data::Settings::Charges::FundingTime]
|
|
392
|
-
required :funding_time,
|
|
393
|
-
enum: -> {
|
|
394
|
-
Straddle::Embed::AccountPagedV1::Data::Settings::Charges::FundingTime
|
|
395
|
-
}
|
|
386
|
+
required :funding_time, enum: -> { Straddle::Embed::AccountPagedV1::Data::Settings::Charges::FundingTime }
|
|
396
387
|
|
|
397
388
|
# @!attribute linked_bank_account_id
|
|
398
389
|
# The unique identifier of the linked bank account associated with charges. This
|
|
@@ -448,7 +439,6 @@ module Straddle
|
|
|
448
439
|
ONE_DAY = :one_day
|
|
449
440
|
TWO_DAY = :two_day
|
|
450
441
|
THREE_DAY = :three_day
|
|
451
|
-
UNKNOWN = :unknown
|
|
452
442
|
|
|
453
443
|
# @!method self.values
|
|
454
444
|
# @return [Array<Symbol>]
|
|
@@ -468,10 +458,7 @@ module Straddle
|
|
|
468
458
|
# Straddle.
|
|
469
459
|
#
|
|
470
460
|
# @return [Symbol, Straddle::Models::Embed::AccountPagedV1::Data::Settings::Payouts::FundingTime]
|
|
471
|
-
required :funding_time,
|
|
472
|
-
enum: -> {
|
|
473
|
-
Straddle::Embed::AccountPagedV1::Data::Settings::Payouts::FundingTime
|
|
474
|
-
}
|
|
461
|
+
required :funding_time, enum: -> { Straddle::Embed::AccountPagedV1::Data::Settings::Payouts::FundingTime }
|
|
475
462
|
|
|
476
463
|
# @!attribute linked_bank_account_id
|
|
477
464
|
# The unique identifier of the linked bank account to use for payouts.
|
|
@@ -526,7 +513,6 @@ module Straddle
|
|
|
526
513
|
ONE_DAY = :one_day
|
|
527
514
|
TWO_DAY = :two_day
|
|
528
515
|
THREE_DAY = :three_day
|
|
529
|
-
UNKNOWN = :unknown
|
|
530
516
|
|
|
531
517
|
# @!method self.values
|
|
532
518
|
# @return [Array<Symbol>]
|
|
@@ -18,14 +18,20 @@ module Straddle
|
|
|
18
18
|
# @return [String, nil]
|
|
19
19
|
optional :correlation_id, String
|
|
20
20
|
|
|
21
|
+
# @!attribute idempotency_key
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :idempotency_key, String
|
|
25
|
+
|
|
21
26
|
# @!attribute request_id
|
|
22
27
|
#
|
|
23
28
|
# @return [String, nil]
|
|
24
29
|
optional :request_id, String
|
|
25
30
|
|
|
26
|
-
# @!method initialize(final_status: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
31
|
+
# @!method initialize(final_status: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
27
32
|
# @param final_status [Symbol, Straddle::Models::Embed::AccountSimulateParams::FinalStatus]
|
|
28
33
|
# @param correlation_id [String]
|
|
34
|
+
# @param idempotency_key [String]
|
|
29
35
|
# @param request_id [String]
|
|
30
36
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
31
37
|
|
|
@@ -32,12 +32,17 @@ module Straddle
|
|
|
32
32
|
# @return [String, nil]
|
|
33
33
|
optional :correlation_id, String
|
|
34
34
|
|
|
35
|
+
# @!attribute idempotency_key
|
|
36
|
+
#
|
|
37
|
+
# @return [String, nil]
|
|
38
|
+
optional :idempotency_key, String
|
|
39
|
+
|
|
35
40
|
# @!attribute request_id
|
|
36
41
|
#
|
|
37
42
|
# @return [String, nil]
|
|
38
43
|
optional :request_id, String
|
|
39
44
|
|
|
40
|
-
# @!method initialize(business_profile:, external_id: nil, metadata: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
45
|
+
# @!method initialize(business_profile:, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
41
46
|
# Some parameter documentations has been truncated, see
|
|
42
47
|
# {Straddle::Models::Embed::AccountUpdateParams} for more details.
|
|
43
48
|
#
|
|
@@ -49,6 +54,8 @@ module Straddle
|
|
|
49
54
|
#
|
|
50
55
|
# @param correlation_id [String]
|
|
51
56
|
#
|
|
57
|
+
# @param idempotency_key [String]
|
|
58
|
+
#
|
|
52
59
|
# @param request_id [String]
|
|
53
60
|
#
|
|
54
61
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -179,7 +179,6 @@ module Straddle
|
|
|
179
179
|
ACTIVE = :active
|
|
180
180
|
REJECTED = :rejected
|
|
181
181
|
INACTIVE = :inactive
|
|
182
|
-
UNKNOWN = :unknown
|
|
183
182
|
|
|
184
183
|
# @!method self.values
|
|
185
184
|
# @return [Array<Symbol>]
|
|
@@ -242,7 +241,6 @@ module Straddle
|
|
|
242
241
|
DISABLED = :disabled
|
|
243
242
|
TERMINATED = :terminated
|
|
244
243
|
NEW = :new
|
|
245
|
-
UNKNOWN = :unknown
|
|
246
244
|
|
|
247
245
|
# @!method self.values
|
|
248
246
|
# @return [Array<Symbol>]
|
|
@@ -269,7 +267,6 @@ module Straddle
|
|
|
269
267
|
extend Straddle::Internal::Type::Enum
|
|
270
268
|
|
|
271
269
|
BUSINESS = :business
|
|
272
|
-
UNKNOWN = :unknown
|
|
273
270
|
|
|
274
271
|
# @!method self.values
|
|
275
272
|
# @return [Array<Symbol>]
|
|
@@ -387,10 +384,7 @@ module Straddle
|
|
|
387
384
|
# Straddle.
|
|
388
385
|
#
|
|
389
386
|
# @return [Symbol, Straddle::Models::Embed::AccountV1::Data::Settings::Charges::FundingTime]
|
|
390
|
-
required :funding_time,
|
|
391
|
-
enum: -> {
|
|
392
|
-
Straddle::Embed::AccountV1::Data::Settings::Charges::FundingTime
|
|
393
|
-
}
|
|
387
|
+
required :funding_time, enum: -> { Straddle::Embed::AccountV1::Data::Settings::Charges::FundingTime }
|
|
394
388
|
|
|
395
389
|
# @!attribute linked_bank_account_id
|
|
396
390
|
# The unique identifier of the linked bank account associated with charges. This
|
|
@@ -445,7 +439,6 @@ module Straddle
|
|
|
445
439
|
ONE_DAY = :one_day
|
|
446
440
|
TWO_DAY = :two_day
|
|
447
441
|
THREE_DAY = :three_day
|
|
448
|
-
UNKNOWN = :unknown
|
|
449
442
|
|
|
450
443
|
# @!method self.values
|
|
451
444
|
# @return [Array<Symbol>]
|
|
@@ -465,10 +458,7 @@ module Straddle
|
|
|
465
458
|
# Straddle.
|
|
466
459
|
#
|
|
467
460
|
# @return [Symbol, Straddle::Models::Embed::AccountV1::Data::Settings::Payouts::FundingTime]
|
|
468
|
-
required :funding_time,
|
|
469
|
-
enum: -> {
|
|
470
|
-
Straddle::Embed::AccountV1::Data::Settings::Payouts::FundingTime
|
|
471
|
-
}
|
|
461
|
+
required :funding_time, enum: -> { Straddle::Embed::AccountV1::Data::Settings::Payouts::FundingTime }
|
|
472
462
|
|
|
473
463
|
# @!attribute linked_bank_account_id
|
|
474
464
|
# The unique identifier of the linked bank account to use for payouts.
|
|
@@ -522,7 +512,6 @@ module Straddle
|
|
|
522
512
|
ONE_DAY = :one_day
|
|
523
513
|
TWO_DAY = :two_day
|
|
524
514
|
THREE_DAY = :three_day
|
|
525
|
-
UNKNOWN = :unknown
|
|
526
515
|
|
|
527
516
|
# @!method self.values
|
|
528
517
|
# @return [Array<Symbol>]
|
|
@@ -53,12 +53,17 @@ module Straddle
|
|
|
53
53
|
# @return [String, nil]
|
|
54
54
|
optional :correlation_id, String
|
|
55
55
|
|
|
56
|
+
# @!attribute idempotency_key
|
|
57
|
+
#
|
|
58
|
+
# @return [String, nil]
|
|
59
|
+
optional :idempotency_key, String
|
|
60
|
+
|
|
56
61
|
# @!attribute request_id
|
|
57
62
|
#
|
|
58
63
|
# @return [String, nil]
|
|
59
64
|
optional :request_id, String
|
|
60
65
|
|
|
61
|
-
# @!method initialize(businesses: nil, charges: nil, individuals: nil, internet: nil, payouts: nil, signed_agreement: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
66
|
+
# @!method initialize(businesses: nil, charges: nil, individuals: nil, internet: nil, payouts: nil, signed_agreement: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
62
67
|
# Some parameter documentations has been truncated, see
|
|
63
68
|
# {Straddle::Models::Embed::Accounts::CapabilityRequestCreateParams} for more
|
|
64
69
|
# details.
|
|
@@ -77,6 +82,8 @@ module Straddle
|
|
|
77
82
|
#
|
|
78
83
|
# @param correlation_id [String]
|
|
79
84
|
#
|
|
85
|
+
# @param idempotency_key [String]
|
|
86
|
+
#
|
|
80
87
|
# @param request_id [String]
|
|
81
88
|
#
|
|
82
89
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -10,9 +10,7 @@ module Straddle
|
|
|
10
10
|
#
|
|
11
11
|
# @return [Array<Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data>]
|
|
12
12
|
required :data,
|
|
13
|
-
-> {
|
|
14
|
-
Straddle::Internal::Type::ArrayOf[Straddle::Embed::Accounts::CapabilityRequestPagedV1::Data]
|
|
15
|
-
}
|
|
13
|
+
-> { Straddle::Internal::Type::ArrayOf[Straddle::Embed::Accounts::CapabilityRequestPagedV1::Data] }
|
|
16
14
|
|
|
17
15
|
# @!attribute meta
|
|
18
16
|
# Metadata about the API request, including an identifier, timestamp, and
|
|
@@ -31,10 +29,7 @@ module Straddle
|
|
|
31
29
|
# - "none" means no data is returned.
|
|
32
30
|
#
|
|
33
31
|
# @return [Symbol, Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::ResponseType]
|
|
34
|
-
required :response_type,
|
|
35
|
-
enum: -> {
|
|
36
|
-
Straddle::Embed::Accounts::CapabilityRequestPagedV1::ResponseType
|
|
37
|
-
}
|
|
32
|
+
required :response_type, enum: -> { Straddle::Embed::Accounts::CapabilityRequestPagedV1::ResponseType }
|
|
38
33
|
|
|
39
34
|
# @!method initialize(data:, meta:, response_type:)
|
|
40
35
|
# Some parameter documentations has been truncated, see
|
|
@@ -65,10 +60,7 @@ module Straddle
|
|
|
65
60
|
# `consent_type` for `signed_agreement` or `internet` payment authorization.
|
|
66
61
|
#
|
|
67
62
|
# @return [Symbol, Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::Category]
|
|
68
|
-
required :category,
|
|
69
|
-
enum: -> {
|
|
70
|
-
Straddle::Embed::Accounts::CapabilityRequestPagedV1::Data::Category
|
|
71
|
-
}
|
|
63
|
+
required :category, enum: -> { Straddle::Embed::Accounts::CapabilityRequestPagedV1::Data::Category }
|
|
72
64
|
|
|
73
65
|
# @!attribute created_at
|
|
74
66
|
# Timestamp of when the capability request was created.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Straddle
|
|
4
|
+
module Models
|
|
5
|
+
module Embed
|
|
6
|
+
# @see Straddle::Resources::Embed::LinkedBankAccounts#cancel
|
|
7
|
+
class LinkedBankAccountCancelParams < Straddle::Internal::Type::BaseModel
|
|
8
|
+
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Straddle::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute correlation_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :correlation_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute idempotency_key
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :idempotency_key, String
|
|
20
|
+
|
|
21
|
+
# @!attribute request_id
|
|
22
|
+
#
|
|
23
|
+
# @return [String, nil]
|
|
24
|
+
optional :request_id, String
|
|
25
|
+
|
|
26
|
+
# @!method initialize(correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
27
|
+
# @param correlation_id [String]
|
|
28
|
+
# @param idempotency_key [String]
|
|
29
|
+
# @param request_id [String]
|
|
30
|
+
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -12,14 +12,20 @@ module Straddle
|
|
|
12
12
|
# The unique identifier of the Straddle account to associate this bank account
|
|
13
13
|
# with.
|
|
14
14
|
#
|
|
15
|
-
# @return [String]
|
|
16
|
-
required :account_id, String
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
required :account_id, String, nil?: true
|
|
17
17
|
|
|
18
18
|
# @!attribute bank_account
|
|
19
19
|
#
|
|
20
20
|
# @return [Straddle::Models::Embed::LinkedBankAccountCreateParams::BankAccount]
|
|
21
21
|
required :bank_account, -> { Straddle::Embed::LinkedBankAccountCreateParams::BankAccount }
|
|
22
22
|
|
|
23
|
+
# @!attribute description
|
|
24
|
+
# Optional description for the bank account.
|
|
25
|
+
#
|
|
26
|
+
# @return [String, nil]
|
|
27
|
+
optional :description, String, nil?: true
|
|
28
|
+
|
|
23
29
|
# @!attribute metadata
|
|
24
30
|
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
25
31
|
# information about the linked bank account in a structured format.
|
|
@@ -27,28 +33,58 @@ module Straddle
|
|
|
27
33
|
# @return [Hash{Symbol=>String, nil}, nil]
|
|
28
34
|
optional :metadata, Straddle::Internal::Type::HashOf[String, nil?: true], nil?: true
|
|
29
35
|
|
|
36
|
+
# @!attribute platform_id
|
|
37
|
+
# The unique identifier of the Straddle Platform to associate this bank account
|
|
38
|
+
# with.
|
|
39
|
+
#
|
|
40
|
+
# @return [String, nil]
|
|
41
|
+
optional :platform_id, String, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!attribute purposes
|
|
44
|
+
# The purposes for the linked bank account.
|
|
45
|
+
#
|
|
46
|
+
# @return [Array<Symbol, Straddle::Models::Embed::LinkedBankAccountCreateParams::Purpose>, nil]
|
|
47
|
+
optional :purposes,
|
|
48
|
+
-> {
|
|
49
|
+
Straddle::Internal::Type::ArrayOf[enum: Straddle::Embed::LinkedBankAccountCreateParams::Purpose]
|
|
50
|
+
},
|
|
51
|
+
nil?: true
|
|
52
|
+
|
|
30
53
|
# @!attribute correlation_id
|
|
31
54
|
#
|
|
32
55
|
# @return [String, nil]
|
|
33
56
|
optional :correlation_id, String
|
|
34
57
|
|
|
58
|
+
# @!attribute idempotency_key
|
|
59
|
+
#
|
|
60
|
+
# @return [String, nil]
|
|
61
|
+
optional :idempotency_key, String
|
|
62
|
+
|
|
35
63
|
# @!attribute request_id
|
|
36
64
|
#
|
|
37
65
|
# @return [String, nil]
|
|
38
66
|
optional :request_id, String
|
|
39
67
|
|
|
40
|
-
# @!method initialize(account_id:, bank_account:, metadata: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
68
|
+
# @!method initialize(account_id:, bank_account:, description: nil, metadata: nil, platform_id: nil, purposes: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
41
69
|
# Some parameter documentations has been truncated, see
|
|
42
70
|
# {Straddle::Models::Embed::LinkedBankAccountCreateParams} for more details.
|
|
43
71
|
#
|
|
44
|
-
# @param account_id [String] The unique identifier of the Straddle account to associate this bank account wit
|
|
72
|
+
# @param account_id [String, nil] The unique identifier of the Straddle account to associate this bank account wit
|
|
45
73
|
#
|
|
46
74
|
# @param bank_account [Straddle::Models::Embed::LinkedBankAccountCreateParams::BankAccount]
|
|
47
75
|
#
|
|
76
|
+
# @param description [String, nil] Optional description for the bank account.
|
|
77
|
+
#
|
|
48
78
|
# @param metadata [Hash{Symbol=>String, nil}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
49
79
|
#
|
|
80
|
+
# @param platform_id [String, nil] The unique identifier of the Straddle Platform to associate this bank account wi
|
|
81
|
+
#
|
|
82
|
+
# @param purposes [Array<Symbol, Straddle::Models::Embed::LinkedBankAccountCreateParams::Purpose>, nil] The purposes for the linked bank account.
|
|
83
|
+
#
|
|
50
84
|
# @param correlation_id [String]
|
|
51
85
|
#
|
|
86
|
+
# @param idempotency_key [String]
|
|
87
|
+
#
|
|
52
88
|
# @param request_id [String]
|
|
53
89
|
#
|
|
54
90
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -84,6 +120,17 @@ module Straddle
|
|
|
84
120
|
#
|
|
85
121
|
# @param routing_number [String] The routing number of the bank account.
|
|
86
122
|
end
|
|
123
|
+
|
|
124
|
+
module Purpose
|
|
125
|
+
extend Straddle::Internal::Type::Enum
|
|
126
|
+
|
|
127
|
+
CHARGES = :charges
|
|
128
|
+
PAYOUTS = :payouts
|
|
129
|
+
BILLING = :billing
|
|
130
|
+
|
|
131
|
+
# @!method self.values
|
|
132
|
+
# @return [Array<Symbol>]
|
|
133
|
+
end
|
|
87
134
|
end
|
|
88
135
|
end
|
|
89
136
|
end
|
|
@@ -7,10 +7,7 @@ module Straddle
|
|
|
7
7
|
# @!attribute data
|
|
8
8
|
#
|
|
9
9
|
# @return [Array<Straddle::Models::Embed::LinkedBankAccountPagedV1::Data>]
|
|
10
|
-
required :data,
|
|
11
|
-
-> {
|
|
12
|
-
Straddle::Internal::Type::ArrayOf[Straddle::Embed::LinkedBankAccountPagedV1::Data]
|
|
13
|
-
}
|
|
10
|
+
required :data, -> { Straddle::Internal::Type::ArrayOf[Straddle::Embed::LinkedBankAccountPagedV1::Data] }
|
|
14
11
|
|
|
15
12
|
# @!attribute meta
|
|
16
13
|
# Metadata about the API request, including an identifier, timestamp, and
|
|
@@ -65,6 +62,13 @@ module Straddle
|
|
|
65
62
|
# @return [Time]
|
|
66
63
|
required :created_at, Time
|
|
67
64
|
|
|
65
|
+
# @!attribute purposes
|
|
66
|
+
# The purposes for the linked bank account.
|
|
67
|
+
#
|
|
68
|
+
# @return [Array<Symbol, Straddle::Models::Embed::LinkedBankAccountPagedV1::Data::Purpose>]
|
|
69
|
+
required :purposes,
|
|
70
|
+
-> { Straddle::Internal::Type::ArrayOf[enum: Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose] }
|
|
71
|
+
|
|
68
72
|
# @!attribute status
|
|
69
73
|
# The current status of the linked bank account.
|
|
70
74
|
#
|
|
@@ -82,6 +86,12 @@ module Straddle
|
|
|
82
86
|
# @return [Time]
|
|
83
87
|
required :updated_at, Time
|
|
84
88
|
|
|
89
|
+
# @!attribute description
|
|
90
|
+
# Optional description for the bank account.
|
|
91
|
+
#
|
|
92
|
+
# @return [String, nil]
|
|
93
|
+
optional :description, String, nil?: true
|
|
94
|
+
|
|
85
95
|
# @!attribute metadata
|
|
86
96
|
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
87
97
|
# information about the linked bank account in a structured format.
|
|
@@ -95,7 +105,7 @@ module Straddle
|
|
|
95
105
|
# @return [String, nil]
|
|
96
106
|
optional :platform_id, String, nil?: true
|
|
97
107
|
|
|
98
|
-
# @!method initialize(id:, account_id:, bank_account:, created_at:, status:, status_detail:, updated_at:, metadata: nil, platform_id: nil)
|
|
108
|
+
# @!method initialize(id:, account_id:, bank_account:, created_at:, purposes:, status:, status_detail:, updated_at:, description: nil, metadata: nil, platform_id: nil)
|
|
99
109
|
# Some parameter documentations has been truncated, see
|
|
100
110
|
# {Straddle::Models::Embed::LinkedBankAccountPagedV1::Data} for more details.
|
|
101
111
|
#
|
|
@@ -107,12 +117,16 @@ module Straddle
|
|
|
107
117
|
#
|
|
108
118
|
# @param created_at [Time] Timestamp of when the bank account object was created.
|
|
109
119
|
#
|
|
120
|
+
# @param purposes [Array<Symbol, Straddle::Models::Embed::LinkedBankAccountPagedV1::Data::Purpose>] The purposes for the linked bank account.
|
|
121
|
+
#
|
|
110
122
|
# @param status [Symbol, Straddle::Models::Embed::LinkedBankAccountPagedV1::Data::Status] The current status of the linked bank account.
|
|
111
123
|
#
|
|
112
124
|
# @param status_detail [Straddle::Models::Embed::LinkedBankAccountPagedV1::Data::StatusDetail]
|
|
113
125
|
#
|
|
114
126
|
# @param updated_at [Time] Timestamp of the most recent update to the linked bank account.
|
|
115
127
|
#
|
|
128
|
+
# @param description [String, nil] Optional description for the bank account.
|
|
129
|
+
#
|
|
116
130
|
# @param metadata [Hash{Symbol=>String, nil}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
117
131
|
#
|
|
118
132
|
# @param platform_id [String, nil] The unique identifier of the Straddle Platform relatd to this bank account.
|
|
@@ -146,6 +160,17 @@ module Straddle
|
|
|
146
160
|
# @param routing_number [String]
|
|
147
161
|
end
|
|
148
162
|
|
|
163
|
+
module Purpose
|
|
164
|
+
extend Straddle::Internal::Type::Enum
|
|
165
|
+
|
|
166
|
+
CHARGES = :charges
|
|
167
|
+
PAYOUTS = :payouts
|
|
168
|
+
BILLING = :billing
|
|
169
|
+
|
|
170
|
+
# @!method self.values
|
|
171
|
+
# @return [Array<Symbol>]
|
|
172
|
+
end
|
|
173
|
+
|
|
149
174
|
# The current status of the linked bank account.
|
|
150
175
|
#
|
|
151
176
|
# @see Straddle::Models::Embed::LinkedBankAccountPagedV1::Data#status
|
|
@@ -157,6 +182,7 @@ module Straddle
|
|
|
157
182
|
ACTIVE = :active
|
|
158
183
|
REJECTED = :rejected
|
|
159
184
|
INACTIVE = :inactive
|
|
185
|
+
CANCELED = :canceled
|
|
160
186
|
|
|
161
187
|
# @!method self.values
|
|
162
188
|
# @return [Array<Symbol>]
|
|
@@ -182,20 +208,14 @@ module Straddle
|
|
|
182
208
|
# handling.
|
|
183
209
|
#
|
|
184
210
|
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountPagedV1::Data::StatusDetail::Reason]
|
|
185
|
-
required :reason,
|
|
186
|
-
enum: -> {
|
|
187
|
-
Straddle::Embed::LinkedBankAccountPagedV1::Data::StatusDetail::Reason
|
|
188
|
-
}
|
|
211
|
+
required :reason, enum: -> { Straddle::Embed::LinkedBankAccountPagedV1::Data::StatusDetail::Reason }
|
|
189
212
|
|
|
190
213
|
# @!attribute source
|
|
191
214
|
# Identifies the origin of the status change (e.g., `watchtower`). This helps in
|
|
192
215
|
# tracking the cause of status updates.
|
|
193
216
|
#
|
|
194
217
|
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountPagedV1::Data::StatusDetail::Source]
|
|
195
|
-
required :source,
|
|
196
|
-
enum: -> {
|
|
197
|
-
Straddle::Embed::LinkedBankAccountPagedV1::Data::StatusDetail::Source
|
|
198
|
-
}
|
|
218
|
+
required :source, enum: -> { Straddle::Embed::LinkedBankAccountPagedV1::Data::StatusDetail::Source }
|
|
199
219
|
|
|
200
220
|
# @!method initialize(code:, message:, reason:, source:)
|
|
201
221
|
# Some parameter documentations has been truncated, see
|
|
@@ -146,6 +146,7 @@ module Straddle
|
|
|
146
146
|
ACTIVE = :active
|
|
147
147
|
REJECTED = :rejected
|
|
148
148
|
INACTIVE = :inactive
|
|
149
|
+
CANCELED = :canceled
|
|
149
150
|
|
|
150
151
|
# @!method self.values
|
|
151
152
|
# @return [Array<Symbol>]
|
|
@@ -171,20 +172,14 @@ module Straddle
|
|
|
171
172
|
# handling.
|
|
172
173
|
#
|
|
173
174
|
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Reason]
|
|
174
|
-
required :reason,
|
|
175
|
-
enum: -> {
|
|
176
|
-
Straddle::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Reason
|
|
177
|
-
}
|
|
175
|
+
required :reason, enum: -> { Straddle::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Reason }
|
|
178
176
|
|
|
179
177
|
# @!attribute source
|
|
180
178
|
# Identifies the origin of the status change (e.g., `watchtower`). This helps in
|
|
181
179
|
# tracking the cause of status updates.
|
|
182
180
|
#
|
|
183
181
|
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Source]
|
|
184
|
-
required :source,
|
|
185
|
-
enum: -> {
|
|
186
|
-
Straddle::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Source
|
|
187
|
-
}
|
|
182
|
+
required :source, enum: -> { Straddle::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Source }
|
|
188
183
|
|
|
189
184
|
# @!method initialize(code:, message:, reason:, source:)
|
|
190
185
|
# Some parameter documentations has been truncated, see
|
|
@@ -25,12 +25,17 @@ module Straddle
|
|
|
25
25
|
# @return [String, nil]
|
|
26
26
|
optional :correlation_id, String
|
|
27
27
|
|
|
28
|
+
# @!attribute idempotency_key
|
|
29
|
+
#
|
|
30
|
+
# @return [String, nil]
|
|
31
|
+
optional :idempotency_key, String
|
|
32
|
+
|
|
28
33
|
# @!attribute request_id
|
|
29
34
|
#
|
|
30
35
|
# @return [String, nil]
|
|
31
36
|
optional :request_id, String
|
|
32
37
|
|
|
33
|
-
# @!method initialize(bank_account:, metadata: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
38
|
+
# @!method initialize(bank_account:, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
34
39
|
# Some parameter documentations has been truncated, see
|
|
35
40
|
# {Straddle::Models::Embed::LinkedBankAccountUpdateParams} for more details.
|
|
36
41
|
#
|
|
@@ -40,6 +45,8 @@ module Straddle
|
|
|
40
45
|
#
|
|
41
46
|
# @param correlation_id [String]
|
|
42
47
|
#
|
|
48
|
+
# @param idempotency_key [String]
|
|
49
|
+
#
|
|
43
50
|
# @param request_id [String]
|
|
44
51
|
#
|
|
45
52
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|