straddle 0.3.0 → 0.4.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 +74 -0
- data/README.md +10 -1
- data/lib/straddle/client.rb +34 -0
- data/lib/straddle/internal/transport/pooled_net_requester.rb +13 -11
- data/lib/straddle/internal/util.rb +39 -3
- data/lib/straddle/models/bridge/link_create_paykey_response.rb +8 -0
- data/lib/straddle/models/bridge/link_create_tan_response.rb +8 -0
- data/lib/straddle/models/charge_cancel_params.rb +8 -1
- data/lib/straddle/models/charge_create_params.rb +20 -4
- data/lib/straddle/models/charge_get_params.rb +7 -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_unmask_params.rb +7 -1
- data/lib/straddle/models/charge_unmask_response.rb +59 -5
- data/lib/straddle/models/charge_update_params.rb +11 -4
- data/lib/straddle/models/charge_v1.rb +59 -5
- data/lib/straddle/models/customer_delete_params.rb +7 -1
- data/lib/straddle/models/customer_get_params.rb +7 -1
- data/lib/straddle/models/customer_unmasked_params.rb +7 -1
- data/lib/straddle/models/customer_update_params.rb +8 -1
- data/lib/straddle/models/customers/review_decision_params.rb +8 -1
- data/lib/straddle/models/customers/review_get_params.rb +7 -1
- data/lib/straddle/models/customers/review_refresh_review_params.rb +7 -1
- data/lib/straddle/models/embed/account_get_params.rb +11 -1
- data/lib/straddle/models/embed/account_onboard_params.rb +7 -1
- data/lib/straddle/models/embed/account_paged_v1.rb +4 -0
- 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 +4 -0
- data/lib/straddle/models/embed/accounts/capability_request_create_params.rb +8 -1
- data/lib/straddle/models/embed/accounts/capability_request_list_params.rb +8 -1
- data/lib/straddle/models/embed/accounts/capability_request_paged_v1.rb +9 -1
- data/lib/straddle/models/embed/address_v1.rb +14 -38
- data/lib/straddle/models/embed/linked_bank_account_cancel_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_get_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_unmask_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_update_params.rb +8 -1
- data/lib/straddle/models/embed/organization_get_params.rb +7 -1
- data/lib/straddle/models/embed/representative_get_params.rb +7 -1
- data/lib/straddle/models/embed/representative_unmask_params.rb +7 -1
- data/lib/straddle/models/embed/representative_update_params.rb +8 -1
- data/lib/straddle/models/funding_event_get_params.rb +7 -1
- data/lib/straddle/models/funding_event_list_params.rb +105 -1
- data/lib/straddle/models/funding_event_summary_item_v1.rb +128 -1
- data/lib/straddle/models/funding_event_summary_paged_v1.rb +128 -1
- data/lib/straddle/models/paykey_cancel_params.rb +7 -1
- data/lib/straddle/models/paykey_get_params.rb +7 -1
- data/lib/straddle/models/paykey_list_params.rb +24 -1
- data/lib/straddle/models/paykey_reveal_params.rb +7 -1
- data/lib/straddle/models/paykey_reveal_response.rb +8 -0
- data/lib/straddle/models/paykey_summary_paged_v1.rb +19 -1
- data/lib/straddle/models/paykey_unmasked_params.rb +7 -1
- data/lib/straddle/models/paykey_unmasked_v1.rb +8 -0
- data/lib/straddle/models/paykey_update_balance_params.rb +7 -1
- data/lib/straddle/models/paykey_v1.rb +19 -1
- data/lib/straddle/models/paykeys/review_decision_params.rb +7 -1
- data/lib/straddle/models/paykeys/review_get_params.rb +7 -1
- data/lib/straddle/models/paykeys/review_get_response.rb +19 -4
- data/lib/straddle/models/paykeys/review_refresh_review_params.rb +7 -1
- data/lib/straddle/models/payment_list_params.rb +17 -1
- data/lib/straddle/models/payment_summary_paged_v1.rb +13 -4
- data/lib/straddle/models/payout_cancel_params.rb +8 -1
- data/lib/straddle/models/payout_create_params.rb +20 -4
- data/lib/straddle/models/payout_get_params.rb +7 -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_unmask_params.rb +7 -1
- data/lib/straddle/models/payout_unmask_response.rb +59 -5
- data/lib/straddle/models/payout_update_params.rb +11 -4
- data/lib/straddle/models/payout_v1.rb +59 -5
- data/lib/straddle/models/status_details_v1.rb +7 -0
- data/lib/straddle/resources/bridge/link.rb +12 -6
- data/lib/straddle/resources/bridge.rb +13 -1
- data/lib/straddle/resources/charges.rb +13 -8
- data/lib/straddle/resources/customers/review.rb +7 -1
- data/lib/straddle/resources/customers.rb +23 -10
- data/lib/straddle/resources/embed/accounts/capability_requests.rb +9 -4
- data/lib/straddle/resources/embed/accounts.rb +25 -14
- data/lib/straddle/resources/embed/linked_bank_accounts.rb +11 -6
- data/lib/straddle/resources/embed/organizations.rb +7 -2
- data/lib/straddle/resources/embed/representatives.rb +15 -8
- data/lib/straddle/resources/embed.rb +19 -0
- data/lib/straddle/resources/funding_events.rb +22 -3
- data/lib/straddle/resources/paykeys/review.rb +7 -2
- data/lib/straddle/resources/paykeys.rb +36 -11
- data/lib/straddle/resources/payments.rb +12 -6
- data/lib/straddle/resources/payouts.rb +11 -7
- data/lib/straddle/version.rb +1 -1
- data/lib/straddle.rb +1 -0
- data/manifest.yaml +1 -0
- data/rbi/straddle/client.rbi +34 -0
- data/rbi/straddle/internal/util.rbi +21 -1
- data/rbi/straddle/models/bridge/link_create_paykey_response.rbi +40 -0
- data/rbi/straddle/models/bridge/link_create_tan_response.rbi +40 -0
- data/rbi/straddle/models/charge_cancel_params.rbi +6 -0
- data/rbi/straddle/models/charge_create_params.rbi +19 -3
- data/rbi/straddle/models/charge_get_params.rbi +6 -0
- data/rbi/straddle/models/charge_hold_params.rbi +6 -0
- data/rbi/straddle/models/charge_release_params.rbi +6 -0
- data/rbi/straddle/models/charge_unmask_params.rbi +6 -0
- data/rbi/straddle/models/charge_unmask_response.rbi +143 -6
- data/rbi/straddle/models/charge_update_params.rbi +9 -3
- data/rbi/straddle/models/charge_v1.rbi +135 -6
- data/rbi/straddle/models/customer_delete_params.rbi +6 -0
- data/rbi/straddle/models/customer_get_params.rbi +6 -0
- data/rbi/straddle/models/customer_unmasked_params.rbi +6 -0
- data/rbi/straddle/models/customer_update_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_decision_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_get_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_refresh_review_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_get_params.rbi +13 -1
- data/rbi/straddle/models/embed/account_onboard_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_paged_v1.rbi +20 -0
- data/rbi/straddle/models/embed/account_simulate_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_update_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_v1.rbi +20 -0
- data/rbi/straddle/models/embed/accounts/capability_request_create_params.rbi +6 -0
- data/rbi/straddle/models/embed/accounts/capability_request_list_params.rbi +6 -0
- data/rbi/straddle/models/embed/accounts/capability_request_paged_v1.rbi +8 -0
- data/rbi/straddle/models/embed/address_v1.rbi +18 -42
- data/rbi/straddle/models/embed/linked_bank_account_cancel_params.rbi +6 -0
- data/rbi/straddle/models/embed/linked_bank_account_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/linked_bank_account_unmask_params.rbi +11 -1
- data/rbi/straddle/models/embed/linked_bank_account_update_params.rbi +6 -0
- data/rbi/straddle/models/embed/organization_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative_unmask_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative_update_params.rbi +6 -0
- data/rbi/straddle/models/funding_event_get_params.rbi +6 -0
- data/rbi/straddle/models/funding_event_list_params.rbi +333 -0
- data/rbi/straddle/models/funding_event_summary_item_v1.rbi +392 -0
- data/rbi/straddle/models/funding_event_summary_paged_v1.rbi +393 -0
- data/rbi/straddle/models/paykey_cancel_params.rbi +6 -0
- data/rbi/straddle/models/paykey_get_params.rbi +6 -0
- data/rbi/straddle/models/paykey_list_params.rbi +30 -0
- data/rbi/straddle/models/paykey_reveal_params.rbi +6 -0
- data/rbi/straddle/models/paykey_reveal_response.rbi +40 -0
- data/rbi/straddle/models/paykey_summary_paged_v1.rbi +55 -3
- data/rbi/straddle/models/paykey_unmasked_params.rbi +6 -0
- data/rbi/straddle/models/paykey_unmasked_v1.rbi +40 -0
- data/rbi/straddle/models/paykey_update_balance_params.rbi +6 -0
- data/rbi/straddle/models/paykey_v1.rbi +52 -3
- data/rbi/straddle/models/paykeys/review_decision_params.rbi +6 -0
- data/rbi/straddle/models/paykeys/review_get_params.rbi +6 -0
- data/rbi/straddle/models/paykeys/review_get_response.rbi +55 -18
- data/rbi/straddle/models/paykeys/review_refresh_review_params.rbi +6 -0
- data/rbi/straddle/models/payment_list_params.rbi +51 -0
- data/rbi/straddle/models/payment_summary_paged_v1.rbi +16 -3
- data/rbi/straddle/models/payout_cancel_params.rbi +6 -0
- data/rbi/straddle/models/payout_create_params.rbi +19 -3
- data/rbi/straddle/models/payout_get_params.rbi +6 -0
- data/rbi/straddle/models/payout_hold_params.rbi +6 -0
- data/rbi/straddle/models/payout_release_params.rbi +6 -0
- data/rbi/straddle/models/payout_unmask_params.rbi +6 -0
- data/rbi/straddle/models/payout_unmask_response.rbi +140 -3
- data/rbi/straddle/models/payout_update_params.rbi +9 -3
- data/rbi/straddle/models/payout_v1.rbi +132 -3
- data/rbi/straddle/models/status_details_v1.rbi +29 -0
- data/rbi/straddle/resources/bridge/link.rbi +12 -6
- data/rbi/straddle/resources/bridge.rbi +13 -1
- data/rbi/straddle/resources/charges.rbi +13 -8
- data/rbi/straddle/resources/customers/review.rbi +7 -1
- data/rbi/straddle/resources/customers.rbi +20 -8
- data/rbi/straddle/resources/embed/accounts/capability_requests.rbi +6 -2
- data/rbi/straddle/resources/embed/accounts.rbi +19 -10
- data/rbi/straddle/resources/embed/linked_bank_accounts.rbi +8 -4
- data/rbi/straddle/resources/embed/organizations.rbi +4 -0
- data/rbi/straddle/resources/embed/representatives.rbi +12 -6
- data/rbi/straddle/resources/embed.rbi +19 -0
- data/rbi/straddle/resources/funding_events.rbi +27 -0
- data/rbi/straddle/resources/paykeys/review.rbi +7 -2
- data/rbi/straddle/resources/paykeys.rbi +26 -8
- data/rbi/straddle/resources/payments.rbi +8 -3
- data/rbi/straddle/resources/payouts.rbi +11 -7
- data/sig/straddle/internal/util.rbs +10 -0
- data/sig/straddle/models/bridge/link_create_paykey_response.rbs +17 -1
- data/sig/straddle/models/bridge/link_create_tan_response.rbs +17 -1
- data/sig/straddle/models/charge_cancel_params.rbs +5 -0
- data/sig/straddle/models/charge_create_params.rbs +14 -4
- data/sig/straddle/models/charge_get_params.rbs +5 -0
- data/sig/straddle/models/charge_hold_params.rbs +5 -0
- data/sig/straddle/models/charge_release_params.rbs +5 -0
- data/sig/straddle/models/charge_unmask_params.rbs +5 -0
- data/sig/straddle/models/charge_unmask_response.rbs +57 -7
- data/sig/straddle/models/charge_update_params.rbs +9 -4
- data/sig/straddle/models/charge_v1.rbs +57 -7
- data/sig/straddle/models/customer_delete_params.rbs +5 -0
- data/sig/straddle/models/customer_get_params.rbs +5 -0
- data/sig/straddle/models/customer_unmasked_params.rbs +5 -0
- data/sig/straddle/models/customer_update_params.rbs +5 -0
- data/sig/straddle/models/customers/review_decision_params.rbs +5 -0
- data/sig/straddle/models/customers/review_get_params.rbs +5 -0
- data/sig/straddle/models/customers/review_refresh_review_params.rbs +5 -0
- data/sig/straddle/models/embed/account_get_params.rbs +5 -1
- data/sig/straddle/models/embed/account_onboard_params.rbs +5 -0
- data/sig/straddle/models/embed/account_paged_v1.rbs +18 -2
- data/sig/straddle/models/embed/account_simulate_params.rbs +5 -0
- data/sig/straddle/models/embed/account_update_params.rbs +5 -0
- data/sig/straddle/models/embed/account_v1.rbs +18 -2
- data/sig/straddle/models/embed/accounts/capability_request_create_params.rbs +5 -0
- data/sig/straddle/models/embed/accounts/capability_request_list_params.rbs +5 -0
- data/sig/straddle/models/embed/accounts/capability_request_paged_v1.rbs +5 -0
- data/sig/straddle/models/embed/address_v1.rbs +12 -27
- data/sig/straddle/models/embed/linked_bank_account_cancel_params.rbs +10 -1
- data/sig/straddle/models/embed/linked_bank_account_get_params.rbs +9 -1
- data/sig/straddle/models/embed/linked_bank_account_unmask_params.rbs +9 -1
- data/sig/straddle/models/embed/linked_bank_account_update_params.rbs +5 -0
- data/sig/straddle/models/embed/organization_get_params.rbs +5 -1
- data/sig/straddle/models/embed/representative_get_params.rbs +9 -1
- data/sig/straddle/models/embed/representative_unmask_params.rbs +9 -1
- data/sig/straddle/models/embed/representative_update_params.rbs +5 -0
- data/sig/straddle/models/funding_event_get_params.rbs +5 -0
- data/sig/straddle/models/funding_event_list_params.rbs +125 -0
- data/sig/straddle/models/funding_event_summary_item_v1.rbs +164 -0
- data/sig/straddle/models/funding_event_summary_paged_v1.rbs +164 -0
- data/sig/straddle/models/paykey_cancel_params.rbs +5 -0
- data/sig/straddle/models/paykey_get_params.rbs +5 -0
- data/sig/straddle/models/paykey_list_params.rbs +17 -1
- data/sig/straddle/models/paykey_reveal_params.rbs +5 -0
- data/sig/straddle/models/paykey_reveal_response.rbs +17 -1
- data/sig/straddle/models/paykey_summary_paged_v1.rbs +25 -4
- data/sig/straddle/models/paykey_unmasked_params.rbs +5 -0
- data/sig/straddle/models/paykey_unmasked_v1.rbs +17 -1
- data/sig/straddle/models/paykey_update_balance_params.rbs +5 -0
- data/sig/straddle/models/paykey_v1.rbs +25 -4
- data/sig/straddle/models/paykeys/review_decision_params.rbs +5 -0
- data/sig/straddle/models/paykeys/review_get_params.rbs +5 -0
- data/sig/straddle/models/paykeys/review_get_response.rbs +28 -10
- data/sig/straddle/models/paykeys/review_refresh_review_params.rbs +5 -0
- data/sig/straddle/models/payment_list_params.rbs +23 -0
- data/sig/straddle/models/payment_summary_paged_v1.rbs +11 -4
- data/sig/straddle/models/payout_cancel_params.rbs +5 -0
- data/sig/straddle/models/payout_create_params.rbs +14 -4
- data/sig/straddle/models/payout_get_params.rbs +5 -0
- data/sig/straddle/models/payout_hold_params.rbs +5 -0
- data/sig/straddle/models/payout_release_params.rbs +5 -0
- data/sig/straddle/models/payout_unmask_params.rbs +5 -0
- data/sig/straddle/models/payout_unmask_response.rbs +54 -4
- data/sig/straddle/models/payout_update_params.rbs +9 -4
- data/sig/straddle/models/payout_v1.rbs +54 -4
- data/sig/straddle/models/status_details_v1.rbs +14 -0
- data/sig/straddle/resources/charges.rbs +2 -2
- data/sig/straddle/resources/funding_events.rbs +4 -0
- data/sig/straddle/resources/paykeys.rbs +2 -0
- data/sig/straddle/resources/payments.rbs +1 -0
- data/sig/straddle/resources/payouts.rbs +2 -2
- metadata +16 -2
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
module Customers
|
|
4
4
|
type review_decision_params =
|
|
5
5
|
{
|
|
6
|
+
id: String,
|
|
6
7
|
status: Straddle::Models::Customers::ReviewDecisionParams::status,
|
|
7
8
|
correlation_id: String,
|
|
8
9
|
idempotency_key: String,
|
|
@@ -15,6 +16,8 @@ module Straddle
|
|
|
15
16
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
16
17
|
include Straddle::Internal::Type::RequestParameters
|
|
17
18
|
|
|
19
|
+
attr_accessor id: String
|
|
20
|
+
|
|
18
21
|
attr_accessor status: Straddle::Models::Customers::ReviewDecisionParams::status
|
|
19
22
|
|
|
20
23
|
attr_reader correlation_id: String?
|
|
@@ -34,6 +37,7 @@ module Straddle
|
|
|
34
37
|
def straddle_account_id=: (String) -> String
|
|
35
38
|
|
|
36
39
|
def initialize: (
|
|
40
|
+
id: String,
|
|
37
41
|
status: Straddle::Models::Customers::ReviewDecisionParams::status,
|
|
38
42
|
?correlation_id: String,
|
|
39
43
|
?idempotency_key: String,
|
|
@@ -43,6 +47,7 @@ module Straddle
|
|
|
43
47
|
) -> void
|
|
44
48
|
|
|
45
49
|
def to_hash: -> {
|
|
50
|
+
id: String,
|
|
46
51
|
status: Straddle::Models::Customers::ReviewDecisionParams::status,
|
|
47
52
|
correlation_id: String,
|
|
48
53
|
idempotency_key: String,
|
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
module Customers
|
|
4
4
|
type review_get_params =
|
|
5
5
|
{
|
|
6
|
+
id: String,
|
|
6
7
|
correlation_id: String,
|
|
7
8
|
request_id: String,
|
|
8
9
|
straddle_account_id: String
|
|
@@ -13,6 +14,8 @@ module Straddle
|
|
|
13
14
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
14
15
|
include Straddle::Internal::Type::RequestParameters
|
|
15
16
|
|
|
17
|
+
attr_accessor id: String
|
|
18
|
+
|
|
16
19
|
attr_reader correlation_id: String?
|
|
17
20
|
|
|
18
21
|
def correlation_id=: (String) -> String
|
|
@@ -26,6 +29,7 @@ module Straddle
|
|
|
26
29
|
def straddle_account_id=: (String) -> String
|
|
27
30
|
|
|
28
31
|
def initialize: (
|
|
32
|
+
id: String,
|
|
29
33
|
?correlation_id: String,
|
|
30
34
|
?request_id: String,
|
|
31
35
|
?straddle_account_id: String,
|
|
@@ -33,6 +37,7 @@ module Straddle
|
|
|
33
37
|
) -> void
|
|
34
38
|
|
|
35
39
|
def to_hash: -> {
|
|
40
|
+
id: String,
|
|
36
41
|
correlation_id: String,
|
|
37
42
|
request_id: String,
|
|
38
43
|
straddle_account_id: String,
|
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
module Customers
|
|
4
4
|
type review_refresh_review_params =
|
|
5
5
|
{
|
|
6
|
+
id: String,
|
|
6
7
|
correlation_id: String,
|
|
7
8
|
idempotency_key: String,
|
|
8
9
|
request_id: String,
|
|
@@ -14,6 +15,8 @@ module Straddle
|
|
|
14
15
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
15
16
|
include Straddle::Internal::Type::RequestParameters
|
|
16
17
|
|
|
18
|
+
attr_accessor id: String
|
|
19
|
+
|
|
17
20
|
attr_reader correlation_id: String?
|
|
18
21
|
|
|
19
22
|
def correlation_id=: (String) -> String
|
|
@@ -31,6 +34,7 @@ module Straddle
|
|
|
31
34
|
def straddle_account_id=: (String) -> String
|
|
32
35
|
|
|
33
36
|
def initialize: (
|
|
37
|
+
id: String,
|
|
34
38
|
?correlation_id: String,
|
|
35
39
|
?idempotency_key: String,
|
|
36
40
|
?request_id: String,
|
|
@@ -39,6 +43,7 @@ module Straddle
|
|
|
39
43
|
) -> void
|
|
40
44
|
|
|
41
45
|
def to_hash: -> {
|
|
46
|
+
id: String,
|
|
42
47
|
correlation_id: String,
|
|
43
48
|
idempotency_key: String,
|
|
44
49
|
request_id: String,
|
|
@@ -2,13 +2,15 @@ module Straddle
|
|
|
2
2
|
module Models
|
|
3
3
|
module Embed
|
|
4
4
|
type account_get_params =
|
|
5
|
-
{ correlation_id: String, request_id: String }
|
|
5
|
+
{ account_id: String, correlation_id: String, request_id: String }
|
|
6
6
|
& Straddle::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class AccountGetParams < Straddle::Internal::Type::BaseModel
|
|
9
9
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Straddle::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor account_id: String
|
|
13
|
+
|
|
12
14
|
attr_reader correlation_id: String?
|
|
13
15
|
|
|
14
16
|
def correlation_id=: (String) -> String
|
|
@@ -18,12 +20,14 @@ module Straddle
|
|
|
18
20
|
def request_id=: (String) -> String
|
|
19
21
|
|
|
20
22
|
def initialize: (
|
|
23
|
+
account_id: String,
|
|
21
24
|
?correlation_id: String,
|
|
22
25
|
?request_id: String,
|
|
23
26
|
?request_options: Straddle::request_opts
|
|
24
27
|
) -> void
|
|
25
28
|
|
|
26
29
|
def to_hash: -> {
|
|
30
|
+
account_id: String,
|
|
27
31
|
correlation_id: String,
|
|
28
32
|
request_id: String,
|
|
29
33
|
request_options: Straddle::RequestOptions
|
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
module Embed
|
|
4
4
|
type account_onboard_params =
|
|
5
5
|
{
|
|
6
|
+
account_id: String,
|
|
6
7
|
terms_of_service: Straddle::Embed::TermsOfServiceV1,
|
|
7
8
|
correlation_id: String,
|
|
8
9
|
idempotency_key: String,
|
|
@@ -14,6 +15,8 @@ module Straddle
|
|
|
14
15
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
15
16
|
include Straddle::Internal::Type::RequestParameters
|
|
16
17
|
|
|
18
|
+
attr_accessor account_id: String
|
|
19
|
+
|
|
17
20
|
attr_accessor terms_of_service: Straddle::Embed::TermsOfServiceV1
|
|
18
21
|
|
|
19
22
|
attr_reader correlation_id: String?
|
|
@@ -29,6 +32,7 @@ module Straddle
|
|
|
29
32
|
def request_id=: (String) -> String
|
|
30
33
|
|
|
31
34
|
def initialize: (
|
|
35
|
+
account_id: String,
|
|
32
36
|
terms_of_service: Straddle::Embed::TermsOfServiceV1,
|
|
33
37
|
?correlation_id: String,
|
|
34
38
|
?idempotency_key: String,
|
|
@@ -37,6 +41,7 @@ module Straddle
|
|
|
37
41
|
) -> void
|
|
38
42
|
|
|
39
43
|
def to_hash: -> {
|
|
44
|
+
account_id: String,
|
|
40
45
|
terms_of_service: Straddle::Embed::TermsOfServiceV1,
|
|
41
46
|
correlation_id: String,
|
|
42
47
|
idempotency_key: String,
|
|
@@ -384,7 +384,13 @@ module Straddle
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
type funding_time =
|
|
387
|
-
:immediate
|
|
387
|
+
:immediate
|
|
388
|
+
| :next_day
|
|
389
|
+
| :one_day
|
|
390
|
+
| :two_day
|
|
391
|
+
| :three_day
|
|
392
|
+
| :four_day
|
|
393
|
+
| :five_day
|
|
388
394
|
|
|
389
395
|
module FundingTime
|
|
390
396
|
extend Straddle::Internal::Type::Enum
|
|
@@ -394,6 +400,8 @@ module Straddle
|
|
|
394
400
|
ONE_DAY: :one_day
|
|
395
401
|
TWO_DAY: :two_day
|
|
396
402
|
THREE_DAY: :three_day
|
|
403
|
+
FOUR_DAY: :four_day
|
|
404
|
+
FIVE_DAY: :five_day
|
|
397
405
|
|
|
398
406
|
def self?.values: -> ::Array[Straddle::Models::Embed::AccountPagedV1::Data::Settings::Charges::funding_time]
|
|
399
407
|
end
|
|
@@ -441,7 +449,13 @@ module Straddle
|
|
|
441
449
|
}
|
|
442
450
|
|
|
443
451
|
type funding_time =
|
|
444
|
-
:immediate
|
|
452
|
+
:immediate
|
|
453
|
+
| :next_day
|
|
454
|
+
| :one_day
|
|
455
|
+
| :two_day
|
|
456
|
+
| :three_day
|
|
457
|
+
| :four_day
|
|
458
|
+
| :five_day
|
|
445
459
|
|
|
446
460
|
module FundingTime
|
|
447
461
|
extend Straddle::Internal::Type::Enum
|
|
@@ -451,6 +465,8 @@ module Straddle
|
|
|
451
465
|
ONE_DAY: :one_day
|
|
452
466
|
TWO_DAY: :two_day
|
|
453
467
|
THREE_DAY: :three_day
|
|
468
|
+
FOUR_DAY: :four_day
|
|
469
|
+
FIVE_DAY: :five_day
|
|
454
470
|
|
|
455
471
|
def self?.values: -> ::Array[Straddle::Models::Embed::AccountPagedV1::Data::Settings::Payouts::funding_time]
|
|
456
472
|
end
|
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
module Embed
|
|
4
4
|
type account_simulate_params =
|
|
5
5
|
{
|
|
6
|
+
account_id: String,
|
|
6
7
|
final_status: Straddle::Models::Embed::AccountSimulateParams::final_status,
|
|
7
8
|
correlation_id: String,
|
|
8
9
|
idempotency_key: String,
|
|
@@ -14,6 +15,8 @@ module Straddle
|
|
|
14
15
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
15
16
|
include Straddle::Internal::Type::RequestParameters
|
|
16
17
|
|
|
18
|
+
attr_accessor account_id: String
|
|
19
|
+
|
|
17
20
|
attr_reader final_status: Straddle::Models::Embed::AccountSimulateParams::final_status?
|
|
18
21
|
|
|
19
22
|
def final_status=: (
|
|
@@ -33,6 +36,7 @@ module Straddle
|
|
|
33
36
|
def request_id=: (String) -> String
|
|
34
37
|
|
|
35
38
|
def initialize: (
|
|
39
|
+
account_id: String,
|
|
36
40
|
?final_status: Straddle::Models::Embed::AccountSimulateParams::final_status,
|
|
37
41
|
?correlation_id: String,
|
|
38
42
|
?idempotency_key: String,
|
|
@@ -41,6 +45,7 @@ module Straddle
|
|
|
41
45
|
) -> void
|
|
42
46
|
|
|
43
47
|
def to_hash: -> {
|
|
48
|
+
account_id: String,
|
|
44
49
|
final_status: Straddle::Models::Embed::AccountSimulateParams::final_status,
|
|
45
50
|
correlation_id: String,
|
|
46
51
|
idempotency_key: String,
|
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
module Embed
|
|
4
4
|
type account_update_params =
|
|
5
5
|
{
|
|
6
|
+
account_id: String,
|
|
6
7
|
business_profile: Straddle::Embed::BusinessProfileV1,
|
|
7
8
|
external_id: String?,
|
|
8
9
|
metadata: ::Hash[Symbol, String?]?,
|
|
@@ -16,6 +17,8 @@ module Straddle
|
|
|
16
17
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
17
18
|
include Straddle::Internal::Type::RequestParameters
|
|
18
19
|
|
|
20
|
+
attr_accessor account_id: String
|
|
21
|
+
|
|
19
22
|
attr_accessor business_profile: Straddle::Embed::BusinessProfileV1
|
|
20
23
|
|
|
21
24
|
attr_accessor external_id: String?
|
|
@@ -35,6 +38,7 @@ module Straddle
|
|
|
35
38
|
def request_id=: (String) -> String
|
|
36
39
|
|
|
37
40
|
def initialize: (
|
|
41
|
+
account_id: String,
|
|
38
42
|
business_profile: Straddle::Embed::BusinessProfileV1,
|
|
39
43
|
?external_id: String?,
|
|
40
44
|
?metadata: ::Hash[Symbol, String?]?,
|
|
@@ -45,6 +49,7 @@ module Straddle
|
|
|
45
49
|
) -> void
|
|
46
50
|
|
|
47
51
|
def to_hash: -> {
|
|
52
|
+
account_id: String,
|
|
48
53
|
business_profile: Straddle::Embed::BusinessProfileV1,
|
|
49
54
|
external_id: String?,
|
|
50
55
|
metadata: ::Hash[Symbol, String?]?,
|
|
@@ -384,7 +384,13 @@ module Straddle
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
type funding_time =
|
|
387
|
-
:immediate
|
|
387
|
+
:immediate
|
|
388
|
+
| :next_day
|
|
389
|
+
| :one_day
|
|
390
|
+
| :two_day
|
|
391
|
+
| :three_day
|
|
392
|
+
| :four_day
|
|
393
|
+
| :five_day
|
|
388
394
|
|
|
389
395
|
module FundingTime
|
|
390
396
|
extend Straddle::Internal::Type::Enum
|
|
@@ -394,6 +400,8 @@ module Straddle
|
|
|
394
400
|
ONE_DAY: :one_day
|
|
395
401
|
TWO_DAY: :two_day
|
|
396
402
|
THREE_DAY: :three_day
|
|
403
|
+
FOUR_DAY: :four_day
|
|
404
|
+
FIVE_DAY: :five_day
|
|
397
405
|
|
|
398
406
|
def self?.values: -> ::Array[Straddle::Models::Embed::AccountV1::Data::Settings::Charges::funding_time]
|
|
399
407
|
end
|
|
@@ -441,7 +449,13 @@ module Straddle
|
|
|
441
449
|
}
|
|
442
450
|
|
|
443
451
|
type funding_time =
|
|
444
|
-
:immediate
|
|
452
|
+
:immediate
|
|
453
|
+
| :next_day
|
|
454
|
+
| :one_day
|
|
455
|
+
| :two_day
|
|
456
|
+
| :three_day
|
|
457
|
+
| :four_day
|
|
458
|
+
| :five_day
|
|
445
459
|
|
|
446
460
|
module FundingTime
|
|
447
461
|
extend Straddle::Internal::Type::Enum
|
|
@@ -451,6 +465,8 @@ module Straddle
|
|
|
451
465
|
ONE_DAY: :one_day
|
|
452
466
|
TWO_DAY: :two_day
|
|
453
467
|
THREE_DAY: :three_day
|
|
468
|
+
FOUR_DAY: :four_day
|
|
469
|
+
FIVE_DAY: :five_day
|
|
454
470
|
|
|
455
471
|
def self?.values: -> ::Array[Straddle::Models::Embed::AccountV1::Data::Settings::Payouts::funding_time]
|
|
456
472
|
end
|
|
@@ -4,6 +4,7 @@ module Straddle
|
|
|
4
4
|
module Accounts
|
|
5
5
|
type capability_request_create_params =
|
|
6
6
|
{
|
|
7
|
+
account_id: String,
|
|
7
8
|
businesses: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Businesses,
|
|
8
9
|
charges: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Charges,
|
|
9
10
|
individuals: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Individuals,
|
|
@@ -20,6 +21,8 @@ module Straddle
|
|
|
20
21
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
21
22
|
include Straddle::Internal::Type::RequestParameters
|
|
22
23
|
|
|
24
|
+
attr_accessor account_id: String
|
|
25
|
+
|
|
23
26
|
attr_reader businesses: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Businesses?
|
|
24
27
|
|
|
25
28
|
def businesses=: (
|
|
@@ -69,6 +72,7 @@ module Straddle
|
|
|
69
72
|
def request_id=: (String) -> String
|
|
70
73
|
|
|
71
74
|
def initialize: (
|
|
75
|
+
account_id: String,
|
|
72
76
|
?businesses: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Businesses,
|
|
73
77
|
?charges: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Charges,
|
|
74
78
|
?individuals: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Individuals,
|
|
@@ -82,6 +86,7 @@ module Straddle
|
|
|
82
86
|
) -> void
|
|
83
87
|
|
|
84
88
|
def to_hash: -> {
|
|
89
|
+
account_id: String,
|
|
85
90
|
businesses: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Businesses,
|
|
86
91
|
charges: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Charges,
|
|
87
92
|
individuals: Straddle::Embed::Accounts::CapabilityRequestCreateParams::Individuals,
|
|
@@ -4,6 +4,7 @@ module Straddle
|
|
|
4
4
|
module Accounts
|
|
5
5
|
type capability_request_list_params =
|
|
6
6
|
{
|
|
7
|
+
account_id: String,
|
|
7
8
|
category: Straddle::Models::Embed::Accounts::CapabilityRequestListParams::category,
|
|
8
9
|
page_number: Integer,
|
|
9
10
|
page_size: Integer,
|
|
@@ -20,6 +21,8 @@ module Straddle
|
|
|
20
21
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
21
22
|
include Straddle::Internal::Type::RequestParameters
|
|
22
23
|
|
|
24
|
+
attr_accessor account_id: String
|
|
25
|
+
|
|
23
26
|
attr_reader category: Straddle::Models::Embed::Accounts::CapabilityRequestListParams::category?
|
|
24
27
|
|
|
25
28
|
def category=: (
|
|
@@ -65,6 +68,7 @@ module Straddle
|
|
|
65
68
|
def request_id=: (String) -> String
|
|
66
69
|
|
|
67
70
|
def initialize: (
|
|
71
|
+
account_id: String,
|
|
68
72
|
?category: Straddle::Models::Embed::Accounts::CapabilityRequestListParams::category,
|
|
69
73
|
?page_number: Integer,
|
|
70
74
|
?page_size: Integer,
|
|
@@ -78,6 +82,7 @@ module Straddle
|
|
|
78
82
|
) -> void
|
|
79
83
|
|
|
80
84
|
def to_hash: -> {
|
|
85
|
+
account_id: String,
|
|
81
86
|
category: Straddle::Models::Embed::Accounts::CapabilityRequestListParams::category,
|
|
82
87
|
page_number: Integer,
|
|
83
88
|
page_size: Integer,
|
|
@@ -34,6 +34,7 @@ module Straddle
|
|
|
34
34
|
account_id: String,
|
|
35
35
|
category: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::category,
|
|
36
36
|
created_at: Time,
|
|
37
|
+
enable: bool,
|
|
37
38
|
status: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::status,
|
|
38
39
|
type: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::type_,
|
|
39
40
|
updated_at: Time,
|
|
@@ -49,6 +50,8 @@ module Straddle
|
|
|
49
50
|
|
|
50
51
|
attr_accessor created_at: Time
|
|
51
52
|
|
|
53
|
+
attr_accessor enable: bool
|
|
54
|
+
|
|
52
55
|
attr_accessor status: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::status
|
|
53
56
|
|
|
54
57
|
attr_accessor type: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::type_
|
|
@@ -62,6 +65,7 @@ module Straddle
|
|
|
62
65
|
account_id: String,
|
|
63
66
|
category: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::category,
|
|
64
67
|
created_at: Time,
|
|
68
|
+
enable: bool,
|
|
65
69
|
status: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::status,
|
|
66
70
|
type: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::type_,
|
|
67
71
|
updated_at: Time,
|
|
@@ -73,6 +77,7 @@ module Straddle
|
|
|
73
77
|
account_id: String,
|
|
74
78
|
category: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::category,
|
|
75
79
|
created_at: Time,
|
|
80
|
+
enable: bool,
|
|
76
81
|
status: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::status,
|
|
77
82
|
type: Straddle::Models::Embed::Accounts::CapabilityRequestPagedV1::Data::type_,
|
|
78
83
|
updated_at: Time,
|
|
@@ -3,58 +3,43 @@ module Straddle
|
|
|
3
3
|
module Embed
|
|
4
4
|
type address_v1 =
|
|
5
5
|
{
|
|
6
|
-
:address1 => String,
|
|
7
6
|
city: String?,
|
|
7
|
+
:line1 => String?,
|
|
8
|
+
postal_code: String?,
|
|
8
9
|
state: String?,
|
|
9
|
-
zip: String,
|
|
10
|
-
:address2 => String?,
|
|
11
10
|
country: String?,
|
|
12
|
-
:
|
|
13
|
-
:line2 => String?,
|
|
14
|
-
postal_code: String?
|
|
11
|
+
:line2 => String?
|
|
15
12
|
}
|
|
16
13
|
|
|
17
14
|
class AddressV1 < Straddle::Internal::Type::BaseModel
|
|
18
|
-
attr_accessor address1: String
|
|
19
|
-
|
|
20
15
|
attr_accessor city: String?
|
|
21
16
|
|
|
22
|
-
attr_accessor
|
|
17
|
+
attr_accessor line1: String?
|
|
23
18
|
|
|
24
|
-
attr_accessor
|
|
19
|
+
attr_accessor postal_code: String?
|
|
25
20
|
|
|
26
|
-
attr_accessor
|
|
21
|
+
attr_accessor state: String?
|
|
27
22
|
|
|
28
23
|
attr_accessor country: String?
|
|
29
24
|
|
|
30
|
-
attr_accessor line1: String?
|
|
31
|
-
|
|
32
25
|
attr_accessor line2: String?
|
|
33
26
|
|
|
34
|
-
attr_accessor postal_code: String?
|
|
35
|
-
|
|
36
27
|
def initialize: (
|
|
37
|
-
address1: String,
|
|
38
28
|
city: String?,
|
|
29
|
+
line1: String?,
|
|
30
|
+
postal_code: String?,
|
|
39
31
|
state: String?,
|
|
40
|
-
zip: String,
|
|
41
|
-
?address2: String?,
|
|
42
32
|
?country: String?,
|
|
43
|
-
?
|
|
44
|
-
?line2: String?,
|
|
45
|
-
?postal_code: String?
|
|
33
|
+
?line2: String?
|
|
46
34
|
) -> void
|
|
47
35
|
|
|
48
36
|
def to_hash: -> {
|
|
49
|
-
:address1 => String,
|
|
50
37
|
city: String?,
|
|
38
|
+
:line1 => String?,
|
|
39
|
+
postal_code: String?,
|
|
51
40
|
state: String?,
|
|
52
|
-
zip: String,
|
|
53
|
-
:address2 => String?,
|
|
54
41
|
country: String?,
|
|
55
|
-
:
|
|
56
|
-
:line2 => String?,
|
|
57
|
-
postal_code: String?
|
|
42
|
+
:line2 => String?
|
|
58
43
|
}
|
|
59
44
|
end
|
|
60
45
|
end
|
|
@@ -2,13 +2,20 @@ module Straddle
|
|
|
2
2
|
module Models
|
|
3
3
|
module Embed
|
|
4
4
|
type linked_bank_account_cancel_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
linked_bank_account_id: String,
|
|
7
|
+
correlation_id: String,
|
|
8
|
+
idempotency_key: String,
|
|
9
|
+
request_id: String
|
|
10
|
+
}
|
|
6
11
|
& Straddle::Internal::Type::request_parameters
|
|
7
12
|
|
|
8
13
|
class LinkedBankAccountCancelParams < Straddle::Internal::Type::BaseModel
|
|
9
14
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
10
15
|
include Straddle::Internal::Type::RequestParameters
|
|
11
16
|
|
|
17
|
+
attr_accessor linked_bank_account_id: String
|
|
18
|
+
|
|
12
19
|
attr_reader correlation_id: String?
|
|
13
20
|
|
|
14
21
|
def correlation_id=: (String) -> String
|
|
@@ -22,6 +29,7 @@ module Straddle
|
|
|
22
29
|
def request_id=: (String) -> String
|
|
23
30
|
|
|
24
31
|
def initialize: (
|
|
32
|
+
linked_bank_account_id: String,
|
|
25
33
|
?correlation_id: String,
|
|
26
34
|
?idempotency_key: String,
|
|
27
35
|
?request_id: String,
|
|
@@ -29,6 +37,7 @@ module Straddle
|
|
|
29
37
|
) -> void
|
|
30
38
|
|
|
31
39
|
def to_hash: -> {
|
|
40
|
+
linked_bank_account_id: String,
|
|
32
41
|
correlation_id: String,
|
|
33
42
|
idempotency_key: String,
|
|
34
43
|
request_id: String,
|
|
@@ -2,13 +2,19 @@ module Straddle
|
|
|
2
2
|
module Models
|
|
3
3
|
module Embed
|
|
4
4
|
type linked_bank_account_get_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
linked_bank_account_id: String,
|
|
7
|
+
correlation_id: String,
|
|
8
|
+
request_id: String
|
|
9
|
+
}
|
|
6
10
|
& Straddle::Internal::Type::request_parameters
|
|
7
11
|
|
|
8
12
|
class LinkedBankAccountGetParams < Straddle::Internal::Type::BaseModel
|
|
9
13
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
10
14
|
include Straddle::Internal::Type::RequestParameters
|
|
11
15
|
|
|
16
|
+
attr_accessor linked_bank_account_id: String
|
|
17
|
+
|
|
12
18
|
attr_reader correlation_id: String?
|
|
13
19
|
|
|
14
20
|
def correlation_id=: (String) -> String
|
|
@@ -18,12 +24,14 @@ module Straddle
|
|
|
18
24
|
def request_id=: (String) -> String
|
|
19
25
|
|
|
20
26
|
def initialize: (
|
|
27
|
+
linked_bank_account_id: String,
|
|
21
28
|
?correlation_id: String,
|
|
22
29
|
?request_id: String,
|
|
23
30
|
?request_options: Straddle::request_opts
|
|
24
31
|
) -> void
|
|
25
32
|
|
|
26
33
|
def to_hash: -> {
|
|
34
|
+
linked_bank_account_id: String,
|
|
27
35
|
correlation_id: String,
|
|
28
36
|
request_id: String,
|
|
29
37
|
request_options: Straddle::RequestOptions
|
|
@@ -2,13 +2,19 @@ module Straddle
|
|
|
2
2
|
module Models
|
|
3
3
|
module Embed
|
|
4
4
|
type linked_bank_account_unmask_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
linked_bank_account_id: String,
|
|
7
|
+
correlation_id: String,
|
|
8
|
+
request_id: String
|
|
9
|
+
}
|
|
6
10
|
& Straddle::Internal::Type::request_parameters
|
|
7
11
|
|
|
8
12
|
class LinkedBankAccountUnmaskParams < Straddle::Internal::Type::BaseModel
|
|
9
13
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
10
14
|
include Straddle::Internal::Type::RequestParameters
|
|
11
15
|
|
|
16
|
+
attr_accessor linked_bank_account_id: String
|
|
17
|
+
|
|
12
18
|
attr_reader correlation_id: String?
|
|
13
19
|
|
|
14
20
|
def correlation_id=: (String) -> String
|
|
@@ -18,12 +24,14 @@ module Straddle
|
|
|
18
24
|
def request_id=: (String) -> String
|
|
19
25
|
|
|
20
26
|
def initialize: (
|
|
27
|
+
linked_bank_account_id: String,
|
|
21
28
|
?correlation_id: String,
|
|
22
29
|
?request_id: String,
|
|
23
30
|
?request_options: Straddle::request_opts
|
|
24
31
|
) -> void
|
|
25
32
|
|
|
26
33
|
def to_hash: -> {
|
|
34
|
+
linked_bank_account_id: String,
|
|
27
35
|
correlation_id: String,
|
|
28
36
|
request_id: String,
|
|
29
37
|
request_options: Straddle::RequestOptions
|
|
@@ -3,6 +3,7 @@ module Straddle
|
|
|
3
3
|
module Embed
|
|
4
4
|
type linked_bank_account_update_params =
|
|
5
5
|
{
|
|
6
|
+
linked_bank_account_id: String,
|
|
6
7
|
bank_account: Straddle::Embed::LinkedBankAccountUpdateParams::BankAccount,
|
|
7
8
|
metadata: ::Hash[Symbol, String?]?,
|
|
8
9
|
correlation_id: String,
|
|
@@ -15,6 +16,8 @@ module Straddle
|
|
|
15
16
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
16
17
|
include Straddle::Internal::Type::RequestParameters
|
|
17
18
|
|
|
19
|
+
attr_accessor linked_bank_account_id: String
|
|
20
|
+
|
|
18
21
|
attr_accessor bank_account: Straddle::Embed::LinkedBankAccountUpdateParams::BankAccount
|
|
19
22
|
|
|
20
23
|
attr_accessor metadata: ::Hash[Symbol, String?]?
|
|
@@ -32,6 +35,7 @@ module Straddle
|
|
|
32
35
|
def request_id=: (String) -> String
|
|
33
36
|
|
|
34
37
|
def initialize: (
|
|
38
|
+
linked_bank_account_id: String,
|
|
35
39
|
bank_account: Straddle::Embed::LinkedBankAccountUpdateParams::BankAccount,
|
|
36
40
|
?metadata: ::Hash[Symbol, String?]?,
|
|
37
41
|
?correlation_id: String,
|
|
@@ -41,6 +45,7 @@ module Straddle
|
|
|
41
45
|
) -> void
|
|
42
46
|
|
|
43
47
|
def to_hash: -> {
|
|
48
|
+
linked_bank_account_id: String,
|
|
44
49
|
bank_account: Straddle::Embed::LinkedBankAccountUpdateParams::BankAccount,
|
|
45
50
|
metadata: ::Hash[Symbol, String?]?,
|
|
46
51
|
correlation_id: String,
|
|
@@ -2,13 +2,15 @@ module Straddle
|
|
|
2
2
|
module Models
|
|
3
3
|
module Embed
|
|
4
4
|
type organization_get_params =
|
|
5
|
-
{ correlation_id: String, request_id: String }
|
|
5
|
+
{ organization_id: String, correlation_id: String, request_id: String }
|
|
6
6
|
& Straddle::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class OrganizationGetParams < Straddle::Internal::Type::BaseModel
|
|
9
9
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Straddle::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
attr_accessor organization_id: String
|
|
13
|
+
|
|
12
14
|
attr_reader correlation_id: String?
|
|
13
15
|
|
|
14
16
|
def correlation_id=: (String) -> String
|
|
@@ -18,12 +20,14 @@ module Straddle
|
|
|
18
20
|
def request_id=: (String) -> String
|
|
19
21
|
|
|
20
22
|
def initialize: (
|
|
23
|
+
organization_id: String,
|
|
21
24
|
?correlation_id: String,
|
|
22
25
|
?request_id: String,
|
|
23
26
|
?request_options: Straddle::request_opts
|
|
24
27
|
) -> void
|
|
25
28
|
|
|
26
29
|
def to_hash: -> {
|
|
30
|
+
organization_id: String,
|
|
27
31
|
correlation_id: String,
|
|
28
32
|
request_id: String,
|
|
29
33
|
request_options: Straddle::RequestOptions
|