straddle 0.1.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 +43 -0
- data/README.md +2 -2
- data/SECURITY.md +1 -1
- data/lib/straddle/client.rb +3 -3
- 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 -1
- data/lib/straddle/models/customer_delete_params.rb +7 -1
- data/lib/straddle/models/customer_refresh_review_params.rb +7 -1
- data/lib/straddle/models/customer_unmasked_v1.rb +1 -4
- data/lib/straddle/models/customer_update_params.rb +8 -1
- data/lib/straddle/models/customers/customer_review_v1.rb +15 -50
- data/lib/straddle/models/customers/review_decision_params.rb +8 -1
- data/lib/straddle/models/embed/account_create_params.rb +8 -1
- data/lib/straddle/models/embed/account_onboard_params.rb +7 -1
- data/lib/straddle/models/embed/account_paged_v1.rb +3 -12
- 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 -8
- 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 -0
- data/rbi/straddle/models/customer_delete_params.rbi +9 -0
- data/rbi/straddle/models/customer_refresh_review_params.rbi +9 -0
- data/rbi/straddle/models/customer_update_params.rbi +9 -0
- data/rbi/straddle/models/customers/review_decision_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_create_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_onboard_params.rbi +9 -0
- 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/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 +2 -2
- 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 +7 -0
- data/sig/straddle/models/customer_delete_params.rbs +7 -0
- data/sig/straddle/models/customer_refresh_review_params.rbs +7 -0
- data/sig/straddle/models/customer_update_params.rbs +7 -0
- data/sig/straddle/models/customers/review_decision_params.rbs +7 -0
- data/sig/straddle/models/embed/account_create_params.rbs +7 -0
- data/sig/straddle/models/embed/account_onboard_params.rbs +7 -0
- 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/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 +9 -3
|
@@ -17,6 +17,12 @@ module Straddle
|
|
|
17
17
|
sig { params(correlation_id: String).void }
|
|
18
18
|
attr_writer :correlation_id
|
|
19
19
|
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
|
+
attr_reader :idempotency_key
|
|
22
|
+
|
|
23
|
+
sig { params(idempotency_key: String).void }
|
|
24
|
+
attr_writer :idempotency_key
|
|
25
|
+
|
|
20
26
|
sig { returns(T.nilable(String)) }
|
|
21
27
|
attr_reader :request_id
|
|
22
28
|
|
|
@@ -32,6 +38,7 @@ module Straddle
|
|
|
32
38
|
sig do
|
|
33
39
|
params(
|
|
34
40
|
correlation_id: String,
|
|
41
|
+
idempotency_key: String,
|
|
35
42
|
request_id: String,
|
|
36
43
|
straddle_account_id: String,
|
|
37
44
|
request_options: Straddle::RequestOptions::OrHash
|
|
@@ -39,6 +46,7 @@ module Straddle
|
|
|
39
46
|
end
|
|
40
47
|
def self.new(
|
|
41
48
|
correlation_id: nil,
|
|
49
|
+
idempotency_key: nil,
|
|
42
50
|
request_id: nil,
|
|
43
51
|
straddle_account_id: nil,
|
|
44
52
|
request_options: {}
|
|
@@ -49,6 +57,7 @@ module Straddle
|
|
|
49
57
|
override.returns(
|
|
50
58
|
{
|
|
51
59
|
correlation_id: String,
|
|
60
|
+
idempotency_key: String,
|
|
52
61
|
request_id: String,
|
|
53
62
|
straddle_account_id: String,
|
|
54
63
|
request_options: Straddle::RequestOptions
|
|
@@ -20,6 +20,12 @@ module Straddle
|
|
|
20
20
|
sig { params(correlation_id: String).void }
|
|
21
21
|
attr_writer :correlation_id
|
|
22
22
|
|
|
23
|
+
sig { returns(T.nilable(String)) }
|
|
24
|
+
attr_reader :idempotency_key
|
|
25
|
+
|
|
26
|
+
sig { params(idempotency_key: String).void }
|
|
27
|
+
attr_writer :idempotency_key
|
|
28
|
+
|
|
23
29
|
sig { returns(T.nilable(String)) }
|
|
24
30
|
attr_reader :request_id
|
|
25
31
|
|
|
@@ -35,6 +41,7 @@ module Straddle
|
|
|
35
41
|
sig do
|
|
36
42
|
params(
|
|
37
43
|
correlation_id: String,
|
|
44
|
+
idempotency_key: String,
|
|
38
45
|
request_id: String,
|
|
39
46
|
straddle_account_id: String,
|
|
40
47
|
request_options: Straddle::RequestOptions::OrHash
|
|
@@ -42,6 +49,7 @@ module Straddle
|
|
|
42
49
|
end
|
|
43
50
|
def self.new(
|
|
44
51
|
correlation_id: nil,
|
|
52
|
+
idempotency_key: nil,
|
|
45
53
|
request_id: nil,
|
|
46
54
|
straddle_account_id: nil,
|
|
47
55
|
request_options: {}
|
|
@@ -52,6 +60,7 @@ module Straddle
|
|
|
52
60
|
override.returns(
|
|
53
61
|
{
|
|
54
62
|
correlation_id: String,
|
|
63
|
+
idempotency_key: String,
|
|
55
64
|
request_id: String,
|
|
56
65
|
straddle_account_id: String,
|
|
57
66
|
request_options: Straddle::RequestOptions
|
|
@@ -71,6 +71,12 @@ module Straddle
|
|
|
71
71
|
sig { params(correlation_id: String).void }
|
|
72
72
|
attr_writer :correlation_id
|
|
73
73
|
|
|
74
|
+
sig { returns(T.nilable(String)) }
|
|
75
|
+
attr_reader :idempotency_key
|
|
76
|
+
|
|
77
|
+
sig { params(idempotency_key: String).void }
|
|
78
|
+
attr_writer :idempotency_key
|
|
79
|
+
|
|
74
80
|
sig { returns(T.nilable(String)) }
|
|
75
81
|
attr_reader :request_id
|
|
76
82
|
|
|
@@ -101,6 +107,7 @@ module Straddle
|
|
|
101
107
|
external_id: T.nilable(String),
|
|
102
108
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
103
109
|
correlation_id: String,
|
|
110
|
+
idempotency_key: String,
|
|
104
111
|
request_id: String,
|
|
105
112
|
straddle_account_id: String,
|
|
106
113
|
request_options: Straddle::RequestOptions::OrHash
|
|
@@ -127,6 +134,7 @@ module Straddle
|
|
|
127
134
|
# information about the customer in a structured format.
|
|
128
135
|
metadata: nil,
|
|
129
136
|
correlation_id: nil,
|
|
137
|
+
idempotency_key: nil,
|
|
130
138
|
request_id: nil,
|
|
131
139
|
straddle_account_id: nil,
|
|
132
140
|
request_options: {}
|
|
@@ -152,6 +160,7 @@ module Straddle
|
|
|
152
160
|
external_id: T.nilable(String),
|
|
153
161
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
154
162
|
correlation_id: String,
|
|
163
|
+
idempotency_key: String,
|
|
155
164
|
request_id: String,
|
|
156
165
|
straddle_account_id: String,
|
|
157
166
|
request_options: Straddle::RequestOptions
|
|
@@ -27,6 +27,12 @@ module Straddle
|
|
|
27
27
|
sig { params(correlation_id: String).void }
|
|
28
28
|
attr_writer :correlation_id
|
|
29
29
|
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_reader :idempotency_key
|
|
32
|
+
|
|
33
|
+
sig { params(idempotency_key: String).void }
|
|
34
|
+
attr_writer :idempotency_key
|
|
35
|
+
|
|
30
36
|
sig { returns(T.nilable(String)) }
|
|
31
37
|
attr_reader :request_id
|
|
32
38
|
|
|
@@ -43,6 +49,7 @@ module Straddle
|
|
|
43
49
|
params(
|
|
44
50
|
status: Straddle::Customers::ReviewDecisionParams::Status::OrSymbol,
|
|
45
51
|
correlation_id: String,
|
|
52
|
+
idempotency_key: String,
|
|
46
53
|
request_id: String,
|
|
47
54
|
straddle_account_id: String,
|
|
48
55
|
request_options: Straddle::RequestOptions::OrHash
|
|
@@ -52,6 +59,7 @@ module Straddle
|
|
|
52
59
|
# The final status of the customer review.
|
|
53
60
|
status:,
|
|
54
61
|
correlation_id: nil,
|
|
62
|
+
idempotency_key: nil,
|
|
55
63
|
request_id: nil,
|
|
56
64
|
straddle_account_id: nil,
|
|
57
65
|
request_options: {}
|
|
@@ -64,6 +72,7 @@ module Straddle
|
|
|
64
72
|
status:
|
|
65
73
|
Straddle::Customers::ReviewDecisionParams::Status::OrSymbol,
|
|
66
74
|
correlation_id: String,
|
|
75
|
+
idempotency_key: String,
|
|
67
76
|
request_id: String,
|
|
68
77
|
straddle_account_id: String,
|
|
69
78
|
request_options: Straddle::RequestOptions
|
|
@@ -58,6 +58,12 @@ module Straddle
|
|
|
58
58
|
sig { params(correlation_id: String).void }
|
|
59
59
|
attr_writer :correlation_id
|
|
60
60
|
|
|
61
|
+
sig { returns(T.nilable(String)) }
|
|
62
|
+
attr_reader :idempotency_key
|
|
63
|
+
|
|
64
|
+
sig { params(idempotency_key: String).void }
|
|
65
|
+
attr_writer :idempotency_key
|
|
66
|
+
|
|
61
67
|
sig { returns(T.nilable(String)) }
|
|
62
68
|
attr_reader :request_id
|
|
63
69
|
|
|
@@ -75,6 +81,7 @@ module Straddle
|
|
|
75
81
|
external_id: T.nilable(String),
|
|
76
82
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
77
83
|
correlation_id: String,
|
|
84
|
+
idempotency_key: String,
|
|
78
85
|
request_id: String,
|
|
79
86
|
request_options: Straddle::RequestOptions::OrHash
|
|
80
87
|
).returns(T.attached_class)
|
|
@@ -95,6 +102,7 @@ module Straddle
|
|
|
95
102
|
# information about the account in a structured format.
|
|
96
103
|
metadata: nil,
|
|
97
104
|
correlation_id: nil,
|
|
105
|
+
idempotency_key: nil,
|
|
98
106
|
request_id: nil,
|
|
99
107
|
request_options: {}
|
|
100
108
|
)
|
|
@@ -112,6 +120,7 @@ module Straddle
|
|
|
112
120
|
external_id: T.nilable(String),
|
|
113
121
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
114
122
|
correlation_id: String,
|
|
123
|
+
idempotency_key: String,
|
|
115
124
|
request_id: String,
|
|
116
125
|
request_options: Straddle::RequestOptions
|
|
117
126
|
}
|
|
@@ -31,6 +31,12 @@ module Straddle
|
|
|
31
31
|
sig { params(correlation_id: String).void }
|
|
32
32
|
attr_writer :correlation_id
|
|
33
33
|
|
|
34
|
+
sig { returns(T.nilable(String)) }
|
|
35
|
+
attr_reader :idempotency_key
|
|
36
|
+
|
|
37
|
+
sig { params(idempotency_key: String).void }
|
|
38
|
+
attr_writer :idempotency_key
|
|
39
|
+
|
|
34
40
|
sig { returns(T.nilable(String)) }
|
|
35
41
|
attr_reader :request_id
|
|
36
42
|
|
|
@@ -41,6 +47,7 @@ module Straddle
|
|
|
41
47
|
params(
|
|
42
48
|
terms_of_service: Straddle::Embed::TermsOfServiceV1::OrHash,
|
|
43
49
|
correlation_id: String,
|
|
50
|
+
idempotency_key: String,
|
|
44
51
|
request_id: String,
|
|
45
52
|
request_options: Straddle::RequestOptions::OrHash
|
|
46
53
|
).returns(T.attached_class)
|
|
@@ -48,6 +55,7 @@ module Straddle
|
|
|
48
55
|
def self.new(
|
|
49
56
|
terms_of_service:,
|
|
50
57
|
correlation_id: nil,
|
|
58
|
+
idempotency_key: nil,
|
|
51
59
|
request_id: nil,
|
|
52
60
|
request_options: {}
|
|
53
61
|
)
|
|
@@ -58,6 +66,7 @@ module Straddle
|
|
|
58
66
|
{
|
|
59
67
|
terms_of_service: Straddle::Embed::TermsOfServiceV1,
|
|
60
68
|
correlation_id: String,
|
|
69
|
+
idempotency_key: String,
|
|
61
70
|
request_id: String,
|
|
62
71
|
request_options: Straddle::RequestOptions
|
|
63
72
|
}
|
|
@@ -38,6 +38,12 @@ module Straddle
|
|
|
38
38
|
sig { params(correlation_id: String).void }
|
|
39
39
|
attr_writer :correlation_id
|
|
40
40
|
|
|
41
|
+
sig { returns(T.nilable(String)) }
|
|
42
|
+
attr_reader :idempotency_key
|
|
43
|
+
|
|
44
|
+
sig { params(idempotency_key: String).void }
|
|
45
|
+
attr_writer :idempotency_key
|
|
46
|
+
|
|
41
47
|
sig { returns(T.nilable(String)) }
|
|
42
48
|
attr_reader :request_id
|
|
43
49
|
|
|
@@ -49,6 +55,7 @@ module Straddle
|
|
|
49
55
|
final_status:
|
|
50
56
|
Straddle::Embed::AccountSimulateParams::FinalStatus::OrSymbol,
|
|
51
57
|
correlation_id: String,
|
|
58
|
+
idempotency_key: String,
|
|
52
59
|
request_id: String,
|
|
53
60
|
request_options: Straddle::RequestOptions::OrHash
|
|
54
61
|
).returns(T.attached_class)
|
|
@@ -56,6 +63,7 @@ module Straddle
|
|
|
56
63
|
def self.new(
|
|
57
64
|
final_status: nil,
|
|
58
65
|
correlation_id: nil,
|
|
66
|
+
idempotency_key: nil,
|
|
59
67
|
request_id: nil,
|
|
60
68
|
request_options: {}
|
|
61
69
|
)
|
|
@@ -67,6 +75,7 @@ module Straddle
|
|
|
67
75
|
final_status:
|
|
68
76
|
Straddle::Embed::AccountSimulateParams::FinalStatus::OrSymbol,
|
|
69
77
|
correlation_id: String,
|
|
78
|
+
idempotency_key: String,
|
|
70
79
|
request_id: String,
|
|
71
80
|
request_options: Straddle::RequestOptions
|
|
72
81
|
}
|
|
@@ -41,6 +41,12 @@ module Straddle
|
|
|
41
41
|
sig { params(correlation_id: String).void }
|
|
42
42
|
attr_writer :correlation_id
|
|
43
43
|
|
|
44
|
+
sig { returns(T.nilable(String)) }
|
|
45
|
+
attr_reader :idempotency_key
|
|
46
|
+
|
|
47
|
+
sig { params(idempotency_key: String).void }
|
|
48
|
+
attr_writer :idempotency_key
|
|
49
|
+
|
|
44
50
|
sig { returns(T.nilable(String)) }
|
|
45
51
|
attr_reader :request_id
|
|
46
52
|
|
|
@@ -53,6 +59,7 @@ module Straddle
|
|
|
53
59
|
external_id: T.nilable(String),
|
|
54
60
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
55
61
|
correlation_id: String,
|
|
62
|
+
idempotency_key: String,
|
|
56
63
|
request_id: String,
|
|
57
64
|
request_options: Straddle::RequestOptions::OrHash
|
|
58
65
|
).returns(T.attached_class)
|
|
@@ -66,6 +73,7 @@ module Straddle
|
|
|
66
73
|
# information about the account in a structured format.
|
|
67
74
|
metadata: nil,
|
|
68
75
|
correlation_id: nil,
|
|
76
|
+
idempotency_key: nil,
|
|
69
77
|
request_id: nil,
|
|
70
78
|
request_options: {}
|
|
71
79
|
)
|
|
@@ -78,6 +86,7 @@ module Straddle
|
|
|
78
86
|
external_id: T.nilable(String),
|
|
79
87
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
80
88
|
correlation_id: String,
|
|
89
|
+
idempotency_key: String,
|
|
81
90
|
request_id: String,
|
|
82
91
|
request_options: Straddle::RequestOptions
|
|
83
92
|
}
|
|
@@ -132,6 +132,12 @@ module Straddle
|
|
|
132
132
|
sig { params(correlation_id: String).void }
|
|
133
133
|
attr_writer :correlation_id
|
|
134
134
|
|
|
135
|
+
sig { returns(T.nilable(String)) }
|
|
136
|
+
attr_reader :idempotency_key
|
|
137
|
+
|
|
138
|
+
sig { params(idempotency_key: String).void }
|
|
139
|
+
attr_writer :idempotency_key
|
|
140
|
+
|
|
135
141
|
sig { returns(T.nilable(String)) }
|
|
136
142
|
attr_reader :request_id
|
|
137
143
|
|
|
@@ -153,6 +159,7 @@ module Straddle
|
|
|
153
159
|
signed_agreement:
|
|
154
160
|
Straddle::Embed::Accounts::CapabilityRequestCreateParams::SignedAgreement::OrHash,
|
|
155
161
|
correlation_id: String,
|
|
162
|
+
idempotency_key: String,
|
|
156
163
|
request_id: String,
|
|
157
164
|
request_options: Straddle::RequestOptions::OrHash
|
|
158
165
|
).returns(T.attached_class)
|
|
@@ -173,6 +180,7 @@ module Straddle
|
|
|
173
180
|
# contracts.
|
|
174
181
|
signed_agreement: nil,
|
|
175
182
|
correlation_id: nil,
|
|
183
|
+
idempotency_key: nil,
|
|
176
184
|
request_id: nil,
|
|
177
185
|
request_options: {}
|
|
178
186
|
)
|
|
@@ -194,6 +202,7 @@ module Straddle
|
|
|
194
202
|
signed_agreement:
|
|
195
203
|
Straddle::Embed::Accounts::CapabilityRequestCreateParams::SignedAgreement,
|
|
196
204
|
correlation_id: String,
|
|
205
|
+
idempotency_key: String,
|
|
197
206
|
request_id: String,
|
|
198
207
|
request_options: Straddle::RequestOptions
|
|
199
208
|
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Straddle
|
|
4
|
+
module Models
|
|
5
|
+
module Embed
|
|
6
|
+
class LinkedBankAccountCancelParams < Straddle::Internal::Type::BaseModel
|
|
7
|
+
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Straddle::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(
|
|
13
|
+
Straddle::Embed::LinkedBankAccountCancelParams,
|
|
14
|
+
Straddle::Internal::AnyHash
|
|
15
|
+
)
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :correlation_id
|
|
20
|
+
|
|
21
|
+
sig { params(correlation_id: String).void }
|
|
22
|
+
attr_writer :correlation_id
|
|
23
|
+
|
|
24
|
+
sig { returns(T.nilable(String)) }
|
|
25
|
+
attr_reader :idempotency_key
|
|
26
|
+
|
|
27
|
+
sig { params(idempotency_key: String).void }
|
|
28
|
+
attr_writer :idempotency_key
|
|
29
|
+
|
|
30
|
+
sig { returns(T.nilable(String)) }
|
|
31
|
+
attr_reader :request_id
|
|
32
|
+
|
|
33
|
+
sig { params(request_id: String).void }
|
|
34
|
+
attr_writer :request_id
|
|
35
|
+
|
|
36
|
+
sig do
|
|
37
|
+
params(
|
|
38
|
+
correlation_id: String,
|
|
39
|
+
idempotency_key: String,
|
|
40
|
+
request_id: String,
|
|
41
|
+
request_options: Straddle::RequestOptions::OrHash
|
|
42
|
+
).returns(T.attached_class)
|
|
43
|
+
end
|
|
44
|
+
def self.new(
|
|
45
|
+
correlation_id: nil,
|
|
46
|
+
idempotency_key: nil,
|
|
47
|
+
request_id: nil,
|
|
48
|
+
request_options: {}
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
sig do
|
|
53
|
+
override.returns(
|
|
54
|
+
{
|
|
55
|
+
correlation_id: String,
|
|
56
|
+
idempotency_key: String,
|
|
57
|
+
request_id: String,
|
|
58
|
+
request_options: Straddle::RequestOptions
|
|
59
|
+
}
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
def to_hash
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -17,7 +17,7 @@ module Straddle
|
|
|
17
17
|
|
|
18
18
|
# The unique identifier of the Straddle account to associate this bank account
|
|
19
19
|
# with.
|
|
20
|
-
sig { returns(String) }
|
|
20
|
+
sig { returns(T.nilable(String)) }
|
|
21
21
|
attr_accessor :account_id
|
|
22
22
|
|
|
23
23
|
sig do
|
|
@@ -33,17 +33,44 @@ module Straddle
|
|
|
33
33
|
end
|
|
34
34
|
attr_writer :bank_account
|
|
35
35
|
|
|
36
|
+
# Optional description for the bank account.
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_accessor :description
|
|
39
|
+
|
|
36
40
|
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
37
41
|
# information about the linked bank account in a structured format.
|
|
38
42
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
|
39
43
|
attr_accessor :metadata
|
|
40
44
|
|
|
45
|
+
# The unique identifier of the Straddle Platform to associate this bank account
|
|
46
|
+
# with.
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_accessor :platform_id
|
|
49
|
+
|
|
50
|
+
# The purposes for the linked bank account.
|
|
51
|
+
sig do
|
|
52
|
+
returns(
|
|
53
|
+
T.nilable(
|
|
54
|
+
T::Array[
|
|
55
|
+
Straddle::Embed::LinkedBankAccountCreateParams::Purpose::OrSymbol
|
|
56
|
+
]
|
|
57
|
+
)
|
|
58
|
+
)
|
|
59
|
+
end
|
|
60
|
+
attr_accessor :purposes
|
|
61
|
+
|
|
41
62
|
sig { returns(T.nilable(String)) }
|
|
42
63
|
attr_reader :correlation_id
|
|
43
64
|
|
|
44
65
|
sig { params(correlation_id: String).void }
|
|
45
66
|
attr_writer :correlation_id
|
|
46
67
|
|
|
68
|
+
sig { returns(T.nilable(String)) }
|
|
69
|
+
attr_reader :idempotency_key
|
|
70
|
+
|
|
71
|
+
sig { params(idempotency_key: String).void }
|
|
72
|
+
attr_writer :idempotency_key
|
|
73
|
+
|
|
47
74
|
sig { returns(T.nilable(String)) }
|
|
48
75
|
attr_reader :request_id
|
|
49
76
|
|
|
@@ -52,11 +79,20 @@ module Straddle
|
|
|
52
79
|
|
|
53
80
|
sig do
|
|
54
81
|
params(
|
|
55
|
-
account_id: String,
|
|
82
|
+
account_id: T.nilable(String),
|
|
56
83
|
bank_account:
|
|
57
84
|
Straddle::Embed::LinkedBankAccountCreateParams::BankAccount::OrHash,
|
|
85
|
+
description: T.nilable(String),
|
|
58
86
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
87
|
+
platform_id: T.nilable(String),
|
|
88
|
+
purposes:
|
|
89
|
+
T.nilable(
|
|
90
|
+
T::Array[
|
|
91
|
+
Straddle::Embed::LinkedBankAccountCreateParams::Purpose::OrSymbol
|
|
92
|
+
]
|
|
93
|
+
),
|
|
59
94
|
correlation_id: String,
|
|
95
|
+
idempotency_key: String,
|
|
60
96
|
request_id: String,
|
|
61
97
|
request_options: Straddle::RequestOptions::OrHash
|
|
62
98
|
).returns(T.attached_class)
|
|
@@ -66,10 +102,18 @@ module Straddle
|
|
|
66
102
|
# with.
|
|
67
103
|
account_id:,
|
|
68
104
|
bank_account:,
|
|
105
|
+
# Optional description for the bank account.
|
|
106
|
+
description: nil,
|
|
69
107
|
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
70
108
|
# information about the linked bank account in a structured format.
|
|
71
109
|
metadata: nil,
|
|
110
|
+
# The unique identifier of the Straddle Platform to associate this bank account
|
|
111
|
+
# with.
|
|
112
|
+
platform_id: nil,
|
|
113
|
+
# The purposes for the linked bank account.
|
|
114
|
+
purposes: nil,
|
|
72
115
|
correlation_id: nil,
|
|
116
|
+
idempotency_key: nil,
|
|
73
117
|
request_id: nil,
|
|
74
118
|
request_options: {}
|
|
75
119
|
)
|
|
@@ -78,11 +122,20 @@ module Straddle
|
|
|
78
122
|
sig do
|
|
79
123
|
override.returns(
|
|
80
124
|
{
|
|
81
|
-
account_id: String,
|
|
125
|
+
account_id: T.nilable(String),
|
|
82
126
|
bank_account:
|
|
83
127
|
Straddle::Embed::LinkedBankAccountCreateParams::BankAccount,
|
|
128
|
+
description: T.nilable(String),
|
|
84
129
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
130
|
+
platform_id: T.nilable(String),
|
|
131
|
+
purposes:
|
|
132
|
+
T.nilable(
|
|
133
|
+
T::Array[
|
|
134
|
+
Straddle::Embed::LinkedBankAccountCreateParams::Purpose::OrSymbol
|
|
135
|
+
]
|
|
136
|
+
),
|
|
85
137
|
correlation_id: String,
|
|
138
|
+
idempotency_key: String,
|
|
86
139
|
request_id: String,
|
|
87
140
|
request_options: Straddle::RequestOptions
|
|
88
141
|
}
|
|
@@ -143,6 +196,45 @@ module Straddle
|
|
|
143
196
|
def to_hash
|
|
144
197
|
end
|
|
145
198
|
end
|
|
199
|
+
|
|
200
|
+
module Purpose
|
|
201
|
+
extend Straddle::Internal::Type::Enum
|
|
202
|
+
|
|
203
|
+
TaggedSymbol =
|
|
204
|
+
T.type_alias do
|
|
205
|
+
T.all(
|
|
206
|
+
Symbol,
|
|
207
|
+
Straddle::Embed::LinkedBankAccountCreateParams::Purpose
|
|
208
|
+
)
|
|
209
|
+
end
|
|
210
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
211
|
+
|
|
212
|
+
CHARGES =
|
|
213
|
+
T.let(
|
|
214
|
+
:charges,
|
|
215
|
+
Straddle::Embed::LinkedBankAccountCreateParams::Purpose::TaggedSymbol
|
|
216
|
+
)
|
|
217
|
+
PAYOUTS =
|
|
218
|
+
T.let(
|
|
219
|
+
:payouts,
|
|
220
|
+
Straddle::Embed::LinkedBankAccountCreateParams::Purpose::TaggedSymbol
|
|
221
|
+
)
|
|
222
|
+
BILLING =
|
|
223
|
+
T.let(
|
|
224
|
+
:billing,
|
|
225
|
+
Straddle::Embed::LinkedBankAccountCreateParams::Purpose::TaggedSymbol
|
|
226
|
+
)
|
|
227
|
+
|
|
228
|
+
sig do
|
|
229
|
+
override.returns(
|
|
230
|
+
T::Array[
|
|
231
|
+
Straddle::Embed::LinkedBankAccountCreateParams::Purpose::TaggedSymbol
|
|
232
|
+
]
|
|
233
|
+
)
|
|
234
|
+
end
|
|
235
|
+
def self.values
|
|
236
|
+
end
|
|
237
|
+
end
|
|
146
238
|
end
|
|
147
239
|
end
|
|
148
240
|
end
|
|
@@ -113,6 +113,16 @@ module Straddle
|
|
|
113
113
|
sig { returns(Time) }
|
|
114
114
|
attr_accessor :created_at
|
|
115
115
|
|
|
116
|
+
# The purposes for the linked bank account.
|
|
117
|
+
sig do
|
|
118
|
+
returns(
|
|
119
|
+
T::Array[
|
|
120
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose::TaggedSymbol
|
|
121
|
+
]
|
|
122
|
+
)
|
|
123
|
+
end
|
|
124
|
+
attr_accessor :purposes
|
|
125
|
+
|
|
116
126
|
# The current status of the linked bank account.
|
|
117
127
|
sig do
|
|
118
128
|
returns(
|
|
@@ -140,6 +150,10 @@ module Straddle
|
|
|
140
150
|
sig { returns(Time) }
|
|
141
151
|
attr_accessor :updated_at
|
|
142
152
|
|
|
153
|
+
# Optional description for the bank account.
|
|
154
|
+
sig { returns(T.nilable(String)) }
|
|
155
|
+
attr_accessor :description
|
|
156
|
+
|
|
143
157
|
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
144
158
|
# information about the linked bank account in a structured format.
|
|
145
159
|
sig { returns(T.nilable(T::Hash[Symbol, T.nilable(String)])) }
|
|
@@ -156,11 +170,16 @@ module Straddle
|
|
|
156
170
|
bank_account:
|
|
157
171
|
Straddle::Embed::LinkedBankAccountPagedV1::Data::BankAccount::OrHash,
|
|
158
172
|
created_at: Time,
|
|
173
|
+
purposes:
|
|
174
|
+
T::Array[
|
|
175
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose::OrSymbol
|
|
176
|
+
],
|
|
159
177
|
status:
|
|
160
178
|
Straddle::Embed::LinkedBankAccountPagedV1::Data::Status::OrSymbol,
|
|
161
179
|
status_detail:
|
|
162
180
|
Straddle::Embed::LinkedBankAccountPagedV1::Data::StatusDetail::OrHash,
|
|
163
181
|
updated_at: Time,
|
|
182
|
+
description: T.nilable(String),
|
|
164
183
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
165
184
|
platform_id: T.nilable(String)
|
|
166
185
|
).returns(T.attached_class)
|
|
@@ -173,11 +192,15 @@ module Straddle
|
|
|
173
192
|
bank_account:,
|
|
174
193
|
# Timestamp of when the bank account object was created.
|
|
175
194
|
created_at:,
|
|
195
|
+
# The purposes for the linked bank account.
|
|
196
|
+
purposes:,
|
|
176
197
|
# The current status of the linked bank account.
|
|
177
198
|
status:,
|
|
178
199
|
status_detail:,
|
|
179
200
|
# Timestamp of the most recent update to the linked bank account.
|
|
180
201
|
updated_at:,
|
|
202
|
+
# Optional description for the bank account.
|
|
203
|
+
description: nil,
|
|
181
204
|
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
182
205
|
# information about the linked bank account in a structured format.
|
|
183
206
|
metadata: nil,
|
|
@@ -194,11 +217,16 @@ module Straddle
|
|
|
194
217
|
bank_account:
|
|
195
218
|
Straddle::Embed::LinkedBankAccountPagedV1::Data::BankAccount,
|
|
196
219
|
created_at: Time,
|
|
220
|
+
purposes:
|
|
221
|
+
T::Array[
|
|
222
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose::TaggedSymbol
|
|
223
|
+
],
|
|
197
224
|
status:
|
|
198
225
|
Straddle::Embed::LinkedBankAccountPagedV1::Data::Status::TaggedSymbol,
|
|
199
226
|
status_detail:
|
|
200
227
|
Straddle::Embed::LinkedBankAccountPagedV1::Data::StatusDetail,
|
|
201
228
|
updated_at: Time,
|
|
229
|
+
description: T.nilable(String),
|
|
202
230
|
metadata: T.nilable(T::Hash[Symbol, T.nilable(String)]),
|
|
203
231
|
platform_id: T.nilable(String)
|
|
204
232
|
}
|
|
@@ -258,6 +286,45 @@ module Straddle
|
|
|
258
286
|
end
|
|
259
287
|
end
|
|
260
288
|
|
|
289
|
+
module Purpose
|
|
290
|
+
extend Straddle::Internal::Type::Enum
|
|
291
|
+
|
|
292
|
+
TaggedSymbol =
|
|
293
|
+
T.type_alias do
|
|
294
|
+
T.all(
|
|
295
|
+
Symbol,
|
|
296
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose
|
|
297
|
+
)
|
|
298
|
+
end
|
|
299
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
300
|
+
|
|
301
|
+
CHARGES =
|
|
302
|
+
T.let(
|
|
303
|
+
:charges,
|
|
304
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose::TaggedSymbol
|
|
305
|
+
)
|
|
306
|
+
PAYOUTS =
|
|
307
|
+
T.let(
|
|
308
|
+
:payouts,
|
|
309
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose::TaggedSymbol
|
|
310
|
+
)
|
|
311
|
+
BILLING =
|
|
312
|
+
T.let(
|
|
313
|
+
:billing,
|
|
314
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose::TaggedSymbol
|
|
315
|
+
)
|
|
316
|
+
|
|
317
|
+
sig do
|
|
318
|
+
override.returns(
|
|
319
|
+
T::Array[
|
|
320
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Purpose::TaggedSymbol
|
|
321
|
+
]
|
|
322
|
+
)
|
|
323
|
+
end
|
|
324
|
+
def self.values
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
|
|
261
328
|
# The current status of the linked bank account.
|
|
262
329
|
module Status
|
|
263
330
|
extend Straddle::Internal::Type::Enum
|
|
@@ -296,6 +363,11 @@ module Straddle
|
|
|
296
363
|
:inactive,
|
|
297
364
|
Straddle::Embed::LinkedBankAccountPagedV1::Data::Status::TaggedSymbol
|
|
298
365
|
)
|
|
366
|
+
CANCELED =
|
|
367
|
+
T.let(
|
|
368
|
+
:canceled,
|
|
369
|
+
Straddle::Embed::LinkedBankAccountPagedV1::Data::Status::TaggedSymbol
|
|
370
|
+
)
|
|
299
371
|
|
|
300
372
|
sig do
|
|
301
373
|
override.returns(
|