straddle 0.2.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 +97 -0
- data/README.md +10 -1
- data/lib/straddle/client.rb +34 -0
- data/lib/straddle/internal/transport/base_client.rb +7 -1
- data/lib/straddle/internal/transport/pooled_net_requester.rb +39 -27
- data/lib/straddle/internal/util.rb +44 -8
- data/lib/straddle/models/bridge/link_bank_account_params.rb +31 -2
- data/lib/straddle/models/bridge/link_create_paykey_params.rb +31 -2
- data/lib/straddle/models/bridge/link_create_paykey_response.rb +39 -2
- data/lib/straddle/models/bridge/link_create_tan_params.rb +30 -2
- data/lib/straddle/models/bridge/link_create_tan_response.rb +39 -2
- data/lib/straddle/models/bridge/link_plaid_params.rb +30 -2
- data/lib/straddle/models/bridge_initialize_params.rb +30 -2
- 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 +46 -0
- 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_list_params.rb +51 -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 +113 -1
- data/lib/straddle/models/funding_event_summary_item_v1.rb +152 -1
- data/lib/straddle/models/funding_event_summary_paged_v1.rb +152 -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 +39 -2
- data/lib/straddle/models/paykey_summary_paged_v1.rb +48 -2
- data/lib/straddle/models/paykey_unmasked_params.rb +7 -1
- data/lib/straddle/models/paykey_unmasked_v1.rb +38 -2
- data/lib/straddle/models/{customer_refresh_review_params.rb → paykey_update_balance_params.rb} +9 -3
- data/lib/straddle/models/paykey_v1.rb +48 -2
- data/lib/straddle/models/paykeys/review_decision_params.rb +62 -0
- data/lib/straddle/models/paykeys/review_get_params.rb +40 -0
- data/lib/straddle/models/paykeys/review_get_response.rb +657 -0
- data/lib/straddle/models/paykeys/review_refresh_review_params.rb +46 -0
- data/lib/straddle/models/payment_list_params.rb +17 -1
- data/lib/straddle/models/payment_summary_paged_v1.rb +21 -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/models.rb +3 -3
- data/lib/straddle/resources/bridge/link.rb +24 -10
- data/lib/straddle/resources/bridge.rb +16 -2
- data/lib/straddle/resources/charges.rb +13 -8
- data/lib/straddle/resources/customers/review.rb +44 -1
- data/lib/straddle/resources/customers.rb +23 -47
- 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 +25 -7
- 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 +25 -3
- data/lib/straddle/resources/paykeys/review.rb +133 -0
- data/lib/straddle/resources/paykeys.rb +72 -50
- 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 +9 -2
- data/manifest.yaml +2 -0
- data/rbi/straddle/client.rbi +34 -0
- data/rbi/straddle/internal/transport/base_client.rbi +5 -0
- data/rbi/straddle/internal/transport/pooled_net_requester.rbi +6 -2
- data/rbi/straddle/internal/type/base_model.rbi +8 -4
- data/rbi/straddle/internal/util.rbi +21 -1
- data/rbi/straddle/models/bridge/link_bank_account_params.rbi +76 -1
- data/rbi/straddle/models/bridge/link_create_paykey_params.rbi +76 -1
- data/rbi/straddle/models/bridge/link_create_paykey_response.rbi +116 -1
- data/rbi/straddle/models/bridge/link_create_tan_params.rbi +76 -1
- data/rbi/straddle/models/bridge/link_create_tan_response.rbi +116 -1
- data/rbi/straddle/models/bridge/link_plaid_params.rbi +76 -1
- data/rbi/straddle/models/bridge_initialize_params.rbi +76 -1
- 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 +82 -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_list_params.rbi +149 -0
- 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 +341 -0
- data/rbi/straddle/models/funding_event_summary_item_v1.rbi +416 -0
- data/rbi/straddle/models/funding_event_summary_paged_v1.rbi +417 -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 +116 -1
- data/rbi/straddle/models/paykey_summary_paged_v1.rbi +131 -4
- data/rbi/straddle/models/paykey_unmasked_params.rbi +6 -0
- data/rbi/straddle/models/paykey_unmasked_v1.rbi +116 -1
- data/rbi/straddle/models/{customer_refresh_review_params.rbi → paykey_update_balance_params.rbi} +8 -2
- data/rbi/straddle/models/paykey_v1.rbi +128 -4
- data/rbi/straddle/models/paykeys/review_decision_params.rbi +121 -0
- data/rbi/straddle/models/paykeys/review_get_params.rbi +73 -0
- data/rbi/straddle/models/paykeys/review_get_response.rbi +1561 -0
- data/rbi/straddle/models/paykeys/review_refresh_review_params.rbi +82 -0
- data/rbi/straddle/models/payment_list_params.rbi +51 -0
- data/rbi/straddle/models/payment_summary_paged_v1.rbi +24 -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/models.rbi +3 -3
- data/rbi/straddle/resources/bridge/link.rbi +28 -6
- data/rbi/straddle/resources/bridge.rbi +17 -1
- data/rbi/straddle/resources/charges.rbi +13 -8
- data/rbi/straddle/resources/customers/review.rbi +34 -1
- data/rbi/straddle/resources/customers.rbi +20 -35
- 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 +18 -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 +30 -0
- data/rbi/straddle/resources/paykeys/review.rbi +99 -0
- data/rbi/straddle/resources/paykeys.rbi +45 -29
- data/rbi/straddle/resources/payments.rbi +8 -3
- data/rbi/straddle/resources/payouts.rbi +11 -7
- data/sig/straddle/internal/transport/base_client.rbs +2 -0
- data/sig/straddle/internal/transport/pooled_net_requester.rbs +4 -1
- data/sig/straddle/internal/util.rbs +10 -0
- data/sig/straddle/models/bridge/link_bank_account_params.rbs +28 -1
- data/sig/straddle/models/bridge/link_create_paykey_params.rbs +28 -1
- data/sig/straddle/models/bridge/link_create_paykey_response.rbs +45 -2
- data/sig/straddle/models/bridge/link_create_tan_params.rbs +28 -1
- data/sig/straddle/models/bridge/link_create_tan_response.rbs +45 -2
- data/sig/straddle/models/bridge/link_plaid_params.rbs +28 -1
- data/sig/straddle/models/bridge_initialize_params.rbs +28 -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 +56 -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_list_params.rbs +46 -0
- 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 +130 -0
- data/sig/straddle/models/funding_event_summary_item_v1.rbs +179 -0
- data/sig/straddle/models/funding_event_summary_paged_v1.rbs +179 -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 +45 -2
- data/sig/straddle/models/paykey_summary_paged_v1.rbs +53 -5
- data/sig/straddle/models/paykey_unmasked_params.rbs +5 -0
- data/sig/straddle/models/paykey_unmasked_v1.rbs +45 -2
- data/sig/straddle/models/{customer_refresh_review_params.rbs → paykey_update_balance_params.rbs} +7 -2
- data/sig/straddle/models/paykey_v1.rbs +53 -5
- data/sig/straddle/models/paykeys/review_decision_params.rbs +72 -0
- data/sig/straddle/models/paykeys/review_get_params.rbs +49 -0
- data/sig/straddle/models/paykeys/review_get_response.rbs +645 -0
- data/sig/straddle/models/paykeys/review_refresh_review_params.rbs +56 -0
- data/sig/straddle/models/payment_list_params.rbs +23 -0
- data/sig/straddle/models/payment_summary_paged_v1.rbs +16 -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/models.rbs +3 -3
- data/sig/straddle/resources/bridge/link.rbs +4 -0
- data/sig/straddle/resources/bridge.rbs +1 -0
- data/sig/straddle/resources/charges.rbs +2 -2
- data/sig/straddle/resources/customers/review.rbs +9 -0
- data/sig/straddle/resources/customers.rbs +0 -9
- data/sig/straddle/resources/embed/linked_bank_accounts.rbs +2 -0
- data/sig/straddle/resources/funding_events.rbs +5 -0
- data/sig/straddle/resources/paykeys/review.rbs +36 -0
- data/sig/straddle/resources/paykeys.rbs +9 -6
- data/sig/straddle/resources/payments.rbs +1 -0
- data/sig/straddle/resources/payouts.rbs +2 -2
- metadata +37 -8
- data/lib/straddle/models/paykey_review_params.rb +0 -54
- data/rbi/straddle/models/paykey_review_params.rbi +0 -98
- data/sig/straddle/models/paykey_review_params.rbs +0 -65
|
@@ -3,15 +3,34 @@
|
|
|
3
3
|
module Straddle
|
|
4
4
|
module Resources
|
|
5
5
|
class Embed
|
|
6
|
+
# Accounts represent businesses using Straddle through your platform. Each account
|
|
7
|
+
# must complete automated verification before processing payments. Use accounts to
|
|
8
|
+
# manage your users' payment capabilities, track verification status, and control
|
|
9
|
+
# access to features. Accounts can be instantly created in sandbox and require
|
|
10
|
+
# additional verification for production access.
|
|
6
11
|
sig { returns(Straddle::Resources::Embed::Accounts) }
|
|
7
12
|
attr_reader :accounts
|
|
8
13
|
|
|
14
|
+
# Linked bank accounts connect your platform users' external bank accounts to
|
|
15
|
+
# Straddle for settlements and payment funding. Each linked account undergoes
|
|
16
|
+
# automated verification and continuous monitoring. Use linked accounts to manage
|
|
17
|
+
# where clients receive deposits, fund payouts, and track settlement preferences.
|
|
9
18
|
sig { returns(Straddle::Resources::Embed::LinkedBankAccounts) }
|
|
10
19
|
attr_reader :linked_bank_accounts
|
|
11
20
|
|
|
21
|
+
# Organizations are a powerful feature in Straddle that allow you to manage
|
|
22
|
+
# multiple accounts under a single umbrella. This hierarchical structure is
|
|
23
|
+
# particularly useful for businesses with complex operations, multiple
|
|
24
|
+
# departments, or legally related entities.
|
|
12
25
|
sig { returns(Straddle::Resources::Embed::Organizations) }
|
|
13
26
|
attr_reader :organizations
|
|
14
27
|
|
|
28
|
+
# Representatives are individuals who have legal authority or significant
|
|
29
|
+
# responsibility within a business entity associated with a Straddle account. Each
|
|
30
|
+
# representative undergoes automated verification as part of KYC/KYB compliance.
|
|
31
|
+
# Use representatives to collect and verify beneficial owners, control persons,
|
|
32
|
+
# and authorized signers required for account onboarding. Representatives also
|
|
33
|
+
# determine who can legally operate the account and make important changes.
|
|
15
34
|
sig { returns(Straddle::Resources::Embed::Representatives) }
|
|
16
35
|
attr_reader :representatives
|
|
17
36
|
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
module Straddle
|
|
4
4
|
module Resources
|
|
5
|
+
# Funding events represent all money movement between Straddle and an Account's
|
|
6
|
+
# external bank accounts. They are automatically generated when charges settle or
|
|
7
|
+
# payouts are initiated. Each event provides detailed tracking of settlement
|
|
8
|
+
# status, fee breakdowns, and reconciliation data across both incoming and
|
|
9
|
+
# outgoing transfers. Use funding events to monitor your platform's entire money
|
|
10
|
+
# movement lifecycle.
|
|
5
11
|
class FundingEvents
|
|
6
12
|
# Retrieves a list of funding events for your account. This endpoint supports
|
|
7
13
|
# advanced sorting and filtering options.
|
|
@@ -13,8 +19,22 @@ module Straddle
|
|
|
13
19
|
event_type: Straddle::FundingEventListParams::EventType::OrSymbol,
|
|
14
20
|
page_number: Integer,
|
|
15
21
|
page_size: Integer,
|
|
22
|
+
search_text: T.nilable(String),
|
|
16
23
|
sort_by: Straddle::FundingEventListParams::SortBy::OrSymbol,
|
|
17
24
|
sort_order: Straddle::FundingEventListParams::SortOrder::OrSymbol,
|
|
25
|
+
status:
|
|
26
|
+
T.nilable(
|
|
27
|
+
T::Array[Straddle::FundingEventListParams::Status::OrSymbol]
|
|
28
|
+
),
|
|
29
|
+
status_reason:
|
|
30
|
+
T.nilable(
|
|
31
|
+
T::Array[Straddle::FundingEventListParams::StatusReason::OrSymbol]
|
|
32
|
+
),
|
|
33
|
+
status_source:
|
|
34
|
+
T.nilable(
|
|
35
|
+
T::Array[Straddle::FundingEventListParams::StatusSource::OrSymbol]
|
|
36
|
+
),
|
|
37
|
+
trace_id: T.nilable(String),
|
|
18
38
|
trace_number: T.nilable(String),
|
|
19
39
|
correlation_id: String,
|
|
20
40
|
request_id: String,
|
|
@@ -43,10 +63,20 @@ module Straddle
|
|
|
43
63
|
page_number: nil,
|
|
44
64
|
# Query param: Results page size. Max value: 1000
|
|
45
65
|
page_size: nil,
|
|
66
|
+
# Query param: Search text.
|
|
67
|
+
search_text: nil,
|
|
46
68
|
# Query param: The field to sort the results by.
|
|
47
69
|
sort_by: nil,
|
|
48
70
|
# Query param: The order in which to sort the results.
|
|
49
71
|
sort_order: nil,
|
|
72
|
+
# Query param: Funding Event status.
|
|
73
|
+
status: nil,
|
|
74
|
+
# Query param: Reason for latest payment status change.
|
|
75
|
+
status_reason: nil,
|
|
76
|
+
# Query param: Source of latest payment status change.
|
|
77
|
+
status_source: nil,
|
|
78
|
+
# Query param: Trace Id.
|
|
79
|
+
trace_id: nil,
|
|
50
80
|
# Query param: Trace number.
|
|
51
81
|
trace_number: nil,
|
|
52
82
|
# Header param: Optional client generated identifier to trace and debug a series
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Straddle
|
|
4
|
+
module Resources
|
|
5
|
+
class Paykeys
|
|
6
|
+
# Paykeys are secure tokens that link verified customer identities to their bank
|
|
7
|
+
# accounts. Each Paykey includes built-in balance checking, fraud detection
|
|
8
|
+
# through LSTM machine learning models, and can be reused for subscriptions and
|
|
9
|
+
# recurring payments without storing sensitive data. Paykeys eliminate fraud by
|
|
10
|
+
# ensuring the person initiating payment owns the funding account.
|
|
11
|
+
class Review
|
|
12
|
+
# Update the status of a paykey when in review status
|
|
13
|
+
sig do
|
|
14
|
+
params(
|
|
15
|
+
id: String,
|
|
16
|
+
status: Straddle::Paykeys::ReviewDecisionParams::Status::OrSymbol,
|
|
17
|
+
correlation_id: String,
|
|
18
|
+
idempotency_key: String,
|
|
19
|
+
request_id: String,
|
|
20
|
+
straddle_account_id: String,
|
|
21
|
+
request_options: Straddle::RequestOptions::OrHash
|
|
22
|
+
).returns(Straddle::PaykeyV1)
|
|
23
|
+
end
|
|
24
|
+
def decision(
|
|
25
|
+
# Path param
|
|
26
|
+
id,
|
|
27
|
+
# Body param
|
|
28
|
+
status:,
|
|
29
|
+
# Header param: Optional client generated identifier to trace and debug a series
|
|
30
|
+
# of requests.
|
|
31
|
+
correlation_id: nil,
|
|
32
|
+
# Header param: Optional client generated value to use for idempotent requests.
|
|
33
|
+
idempotency_key: nil,
|
|
34
|
+
# Header param: Optional client generated identifier to trace and debug a request.
|
|
35
|
+
request_id: nil,
|
|
36
|
+
# Header param: For use by platforms to specify an account id and set scope of a
|
|
37
|
+
# request.
|
|
38
|
+
straddle_account_id: nil,
|
|
39
|
+
request_options: {}
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Get additional details about a paykey.
|
|
44
|
+
sig do
|
|
45
|
+
params(
|
|
46
|
+
id: String,
|
|
47
|
+
correlation_id: String,
|
|
48
|
+
request_id: String,
|
|
49
|
+
straddle_account_id: String,
|
|
50
|
+
request_options: Straddle::RequestOptions::OrHash
|
|
51
|
+
).returns(Straddle::Models::Paykeys::ReviewGetResponse)
|
|
52
|
+
end
|
|
53
|
+
def get(
|
|
54
|
+
id,
|
|
55
|
+
# Optional client generated identifier to trace and debug a series of requests.
|
|
56
|
+
correlation_id: nil,
|
|
57
|
+
# Optional client generated identifier to trace and debug a request.
|
|
58
|
+
request_id: nil,
|
|
59
|
+
# For use by platforms to specify an account id and set scope of a request.
|
|
60
|
+
straddle_account_id: nil,
|
|
61
|
+
request_options: {}
|
|
62
|
+
)
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Updates the decision of a paykey's review validation. This endpoint allows you
|
|
66
|
+
# to refresh the outcome of a paykey's decision and is useful for correcting or
|
|
67
|
+
# updating the status of a paykey's verification.
|
|
68
|
+
sig do
|
|
69
|
+
params(
|
|
70
|
+
id: String,
|
|
71
|
+
correlation_id: String,
|
|
72
|
+
idempotency_key: String,
|
|
73
|
+
request_id: String,
|
|
74
|
+
straddle_account_id: String,
|
|
75
|
+
request_options: Straddle::RequestOptions::OrHash
|
|
76
|
+
).returns(Straddle::PaykeyV1)
|
|
77
|
+
end
|
|
78
|
+
def refresh_review(
|
|
79
|
+
id,
|
|
80
|
+
# Optional client generated identifier to trace and debug a series of requests.
|
|
81
|
+
correlation_id: nil,
|
|
82
|
+
# Optional client generated value to use for idempotent requests.
|
|
83
|
+
idempotency_key: nil,
|
|
84
|
+
# Optional client generated identifier to trace and debug a request.
|
|
85
|
+
request_id: nil,
|
|
86
|
+
# For use by platforms to specify an account id and set scope of a request.
|
|
87
|
+
straddle_account_id: nil,
|
|
88
|
+
request_options: {}
|
|
89
|
+
)
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# @api private
|
|
93
|
+
sig { params(client: Straddle::Client).returns(T.attached_class) }
|
|
94
|
+
def self.new(client:)
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
@@ -2,7 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
module Straddle
|
|
4
4
|
module Resources
|
|
5
|
+
# Paykeys are secure tokens that link verified customer identities to their bank
|
|
6
|
+
# accounts. Each Paykey includes built-in balance checking, fraud detection
|
|
7
|
+
# through LSTM machine learning models, and can be reused for subscriptions and
|
|
8
|
+
# recurring payments without storing sensitive data. Paykeys eliminate fraud by
|
|
9
|
+
# ensuring the person initiating payment owns the funding account.
|
|
5
10
|
class Paykeys
|
|
11
|
+
# Paykeys are secure tokens that link verified customer identities to their bank
|
|
12
|
+
# accounts. Each Paykey includes built-in balance checking, fraud detection
|
|
13
|
+
# through LSTM machine learning models, and can be reused for subscriptions and
|
|
14
|
+
# recurring payments without storing sensitive data. Paykeys eliminate fraud by
|
|
15
|
+
# ensuring the person initiating payment owns the funding account.
|
|
16
|
+
sig { returns(Straddle::Resources::Paykeys::Review) }
|
|
17
|
+
attr_reader :review
|
|
18
|
+
|
|
6
19
|
# Returns a list of paykeys associated with a Straddle account. This endpoint
|
|
7
20
|
# supports advanced sorting and filtering options.
|
|
8
21
|
sig do
|
|
@@ -10,10 +23,12 @@ module Straddle
|
|
|
10
23
|
customer_id: String,
|
|
11
24
|
page_number: Integer,
|
|
12
25
|
page_size: Integer,
|
|
26
|
+
search_text: String,
|
|
13
27
|
sort_by: Straddle::PaykeyListParams::SortBy::OrSymbol,
|
|
14
28
|
sort_order: Straddle::PaykeyListParams::SortOrder::OrSymbol,
|
|
15
29
|
source: T::Array[Straddle::PaykeyListParams::Source::OrSymbol],
|
|
16
30
|
status: T::Array[Straddle::PaykeyListParams::Status::OrSymbol],
|
|
31
|
+
unblock_eligible: T::Boolean,
|
|
17
32
|
correlation_id: String,
|
|
18
33
|
request_id: String,
|
|
19
34
|
straddle_account_id: String,
|
|
@@ -31,14 +46,21 @@ module Straddle
|
|
|
31
46
|
page_number: nil,
|
|
32
47
|
# Query param: Number of results per page. Maximum: 1000.
|
|
33
48
|
page_size: nil,
|
|
34
|
-
# Query param:
|
|
49
|
+
# Query param: General search term to filter paykeys.
|
|
50
|
+
search_text: nil,
|
|
51
|
+
# Query param
|
|
35
52
|
sort_by: nil,
|
|
36
|
-
# Query param
|
|
53
|
+
# Query param
|
|
37
54
|
sort_order: nil,
|
|
38
55
|
# Query param: Filter paykeys by their source.
|
|
39
56
|
source: nil,
|
|
40
57
|
# Query param: Filter paykeys by their current status.
|
|
41
58
|
status: nil,
|
|
59
|
+
# Query param: Filter paykeys by unblock eligibility. When true, returns only
|
|
60
|
+
# blocked paykeys eligible for client-initiated unblocking (blocked due to R29
|
|
61
|
+
# returns and not previously unblocked). When false, returns only blocked paykeys
|
|
62
|
+
# that are not eligible for unblocking.
|
|
63
|
+
unblock_eligible: nil,
|
|
42
64
|
# Header param: Optional client generated identifier to trace and debug a series
|
|
43
65
|
# of requests.
|
|
44
66
|
correlation_id: nil,
|
|
@@ -63,9 +85,9 @@ module Straddle
|
|
|
63
85
|
).returns(Straddle::PaykeyV1)
|
|
64
86
|
end
|
|
65
87
|
def cancel(
|
|
66
|
-
# Path param
|
|
88
|
+
# Path param
|
|
67
89
|
id,
|
|
68
|
-
# Body param
|
|
90
|
+
# Body param
|
|
69
91
|
reason: nil,
|
|
70
92
|
# Header param: Optional client generated identifier to trace and debug a series
|
|
71
93
|
# of requests.
|
|
@@ -105,10 +127,9 @@ module Straddle
|
|
|
105
127
|
)
|
|
106
128
|
end
|
|
107
129
|
|
|
108
|
-
# Retrieves the details of a paykey that has previously been created
|
|
109
|
-
#
|
|
110
|
-
#
|
|
111
|
-
# information.
|
|
130
|
+
# Retrieves the details of a paykey that has previously been created. Supply the
|
|
131
|
+
# unique paykey ID that was returned from your previous request, and Straddle will
|
|
132
|
+
# return the corresponding paykey information including the unmasked token.
|
|
112
133
|
sig do
|
|
113
134
|
params(
|
|
114
135
|
id: String,
|
|
@@ -130,54 +151,49 @@ module Straddle
|
|
|
130
151
|
)
|
|
131
152
|
end
|
|
132
153
|
|
|
133
|
-
#
|
|
154
|
+
# Retrieves the unmasked details of an existing paykey. Supply the unique paykey
|
|
155
|
+
# `id` and Straddle will return the corresponding paykey record, including the
|
|
156
|
+
# unmasked bank account details. This endpoint needs to be enabled by Straddle for
|
|
157
|
+
# your account and should only be used when absolutely necessary.
|
|
134
158
|
sig do
|
|
135
159
|
params(
|
|
136
160
|
id: String,
|
|
137
|
-
status: Straddle::PaykeyReviewParams::Status::OrSymbol,
|
|
138
161
|
correlation_id: String,
|
|
139
|
-
idempotency_key: String,
|
|
140
162
|
request_id: String,
|
|
141
163
|
straddle_account_id: String,
|
|
142
164
|
request_options: Straddle::RequestOptions::OrHash
|
|
143
|
-
).returns(Straddle::
|
|
165
|
+
).returns(Straddle::PaykeyUnmaskedV1)
|
|
144
166
|
end
|
|
145
|
-
def
|
|
146
|
-
# Path param:
|
|
167
|
+
def unmasked(
|
|
147
168
|
id,
|
|
148
|
-
#
|
|
149
|
-
status:,
|
|
150
|
-
# Header param: Optional client generated identifier to trace and debug a series
|
|
151
|
-
# of requests.
|
|
169
|
+
# Optional client generated identifier to trace and debug a series of requests.
|
|
152
170
|
correlation_id: nil,
|
|
153
|
-
#
|
|
154
|
-
idempotency_key: nil,
|
|
155
|
-
# Header param: Optional client generated identifier to trace and debug a request.
|
|
171
|
+
# Optional client generated identifier to trace and debug a request.
|
|
156
172
|
request_id: nil,
|
|
157
|
-
#
|
|
158
|
-
# request.
|
|
173
|
+
# For use by platforms to specify an account id and set scope of a request.
|
|
159
174
|
straddle_account_id: nil,
|
|
160
175
|
request_options: {}
|
|
161
176
|
)
|
|
162
177
|
end
|
|
163
178
|
|
|
164
|
-
#
|
|
165
|
-
#
|
|
166
|
-
# unmasked bank account details. This endpoint needs to be enabled by Straddle for
|
|
167
|
-
# your account and should only be used when absolutely necessary.
|
|
179
|
+
# Updates the balance of a paykey. This endpoint allows you to refresh the balance
|
|
180
|
+
# of a paykey.
|
|
168
181
|
sig do
|
|
169
182
|
params(
|
|
170
183
|
id: String,
|
|
171
184
|
correlation_id: String,
|
|
185
|
+
idempotency_key: String,
|
|
172
186
|
request_id: String,
|
|
173
187
|
straddle_account_id: String,
|
|
174
188
|
request_options: Straddle::RequestOptions::OrHash
|
|
175
|
-
).returns(Straddle::
|
|
189
|
+
).returns(Straddle::PaykeyV1)
|
|
176
190
|
end
|
|
177
|
-
def
|
|
191
|
+
def update_balance(
|
|
178
192
|
id,
|
|
179
193
|
# Optional client generated identifier to trace and debug a series of requests.
|
|
180
194
|
correlation_id: nil,
|
|
195
|
+
# Optional client generated value to use for idempotent requests.
|
|
196
|
+
idempotency_key: nil,
|
|
181
197
|
# Optional client generated identifier to trace and debug a request.
|
|
182
198
|
request_id: nil,
|
|
183
199
|
# For use by platforms to specify an account id and set scope of a request.
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
module Straddle
|
|
4
4
|
module Resources
|
|
5
|
+
# Payments provide endpoints to filter both Charges and Payouts with multiple
|
|
6
|
+
# different parameters.
|
|
5
7
|
class Payments
|
|
6
8
|
# Search for payments, including `charges` and `payouts`, using a variety of
|
|
7
9
|
# criteria. This endpoint supports advanced sorting and filtering options.
|
|
@@ -14,6 +16,7 @@ module Straddle
|
|
|
14
16
|
Straddle::PaymentListParams::DefaultSortOrder::OrSymbol,
|
|
15
17
|
external_id: String,
|
|
16
18
|
funding_id: String,
|
|
19
|
+
include_metadata: T::Boolean,
|
|
17
20
|
max_amount: Integer,
|
|
18
21
|
max_created_at: Time,
|
|
19
22
|
max_effective_at: Time,
|
|
@@ -51,16 +54,18 @@ module Straddle
|
|
|
51
54
|
def list(
|
|
52
55
|
# Query param: Search using the `customer_id` of a `charge` or `payout`.
|
|
53
56
|
customer_id: nil,
|
|
54
|
-
# Query param
|
|
57
|
+
# Query param
|
|
55
58
|
default_page_size: nil,
|
|
56
59
|
# Query param: The field to sort the results by.
|
|
57
60
|
default_sort: nil,
|
|
58
|
-
# Query param
|
|
61
|
+
# Query param
|
|
59
62
|
default_sort_order: nil,
|
|
60
63
|
# Query param: Search using the `external_id` of a `charge` or `payout`.
|
|
61
64
|
external_id: nil,
|
|
62
65
|
# Query param: Search using the `funding_id` of a `charge` or `payout`.
|
|
63
66
|
funding_id: nil,
|
|
67
|
+
# Query param: Include the metadata for payments in the returned data.
|
|
68
|
+
include_metadata: nil,
|
|
64
69
|
# Query param: Search using a maximum `amount` of a `charge` or `payout`.
|
|
65
70
|
max_amount: nil,
|
|
66
71
|
# Query param: Search using the latest `created_at` date of a `charge` or
|
|
@@ -98,7 +103,7 @@ module Straddle
|
|
|
98
103
|
search_text: nil,
|
|
99
104
|
# Query param: The field to sort the results by.
|
|
100
105
|
sort_by: nil,
|
|
101
|
-
# Query param
|
|
106
|
+
# Query param
|
|
102
107
|
sort_order: nil,
|
|
103
108
|
# Query param: Reason for latest payment status change.
|
|
104
109
|
status_reason: nil,
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
module Straddle
|
|
4
4
|
module Resources
|
|
5
|
+
# Payouts represent transfers from Straddle to customer bank accounts. Create
|
|
6
|
+
# payouts to handle disbursements, process refunds, or manage marketplace
|
|
7
|
+
# settlements. Use payouts to send money quickly and securely with the most
|
|
8
|
+
# cost-effective rail automatically selected.
|
|
5
9
|
class Payouts
|
|
6
10
|
# Use payouts to send money to your customers.
|
|
7
11
|
sig do
|
|
8
12
|
params(
|
|
9
13
|
amount: Integer,
|
|
10
14
|
currency: String,
|
|
11
|
-
description: String,
|
|
15
|
+
description: T.nilable(String),
|
|
12
16
|
device: Straddle::DeviceInfoV1::OrHash,
|
|
13
17
|
external_id: String,
|
|
14
18
|
paykey: String,
|
|
@@ -40,7 +44,7 @@ module Straddle
|
|
|
40
44
|
# Body param: The desired date on which the payout should be occur. For payouts,
|
|
41
45
|
# this means the date you want the funds to be sent from your bank account.
|
|
42
46
|
payment_date:,
|
|
43
|
-
# Body param
|
|
47
|
+
# Body param
|
|
44
48
|
config: nil,
|
|
45
49
|
# Body param: Up to 20 additional user-defined key-value pairs. Useful for storing
|
|
46
50
|
# additional information about the payout in a structured format.
|
|
@@ -65,7 +69,7 @@ module Straddle
|
|
|
65
69
|
params(
|
|
66
70
|
id: String,
|
|
67
71
|
amount: Integer,
|
|
68
|
-
description: String,
|
|
72
|
+
description: T.nilable(String),
|
|
69
73
|
payment_date: Date,
|
|
70
74
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
|
71
75
|
correlation_id: String,
|
|
@@ -76,7 +80,7 @@ module Straddle
|
|
|
76
80
|
).returns(Straddle::PayoutV1)
|
|
77
81
|
end
|
|
78
82
|
def update(
|
|
79
|
-
# Path param
|
|
83
|
+
# Path param
|
|
80
84
|
id,
|
|
81
85
|
# Body param: The amount of the payout in cents.
|
|
82
86
|
amount:,
|
|
@@ -116,7 +120,7 @@ module Straddle
|
|
|
116
120
|
).returns(Straddle::PayoutV1)
|
|
117
121
|
end
|
|
118
122
|
def cancel(
|
|
119
|
-
# Path param
|
|
123
|
+
# Path param
|
|
120
124
|
id,
|
|
121
125
|
# Body param: Details about why the payout status was updated.
|
|
122
126
|
reason:,
|
|
@@ -171,7 +175,7 @@ module Straddle
|
|
|
171
175
|
).returns(Straddle::PayoutV1)
|
|
172
176
|
end
|
|
173
177
|
def hold(
|
|
174
|
-
# Path param
|
|
178
|
+
# Path param
|
|
175
179
|
id,
|
|
176
180
|
# Body param: Details about why the payout status was updated.
|
|
177
181
|
reason:,
|
|
@@ -203,7 +207,7 @@ module Straddle
|
|
|
203
207
|
).returns(Straddle::PayoutV1)
|
|
204
208
|
end
|
|
205
209
|
def release(
|
|
206
|
-
# Path param
|
|
210
|
+
# Path param
|
|
207
211
|
id,
|
|
208
212
|
# Body param: Details about why the payout status was updated.
|
|
209
213
|
reason:,
|
|
@@ -17,7 +17,10 @@ module Straddle
|
|
|
17
17
|
|
|
18
18
|
DEFAULT_MAX_CONNECTIONS: Integer
|
|
19
19
|
|
|
20
|
-
def self.connect: (
|
|
20
|
+
def self.connect: (
|
|
21
|
+
cert_store: OpenSSL::X509::Store,
|
|
22
|
+
url: URI::Generic
|
|
23
|
+
) -> top
|
|
21
24
|
|
|
22
25
|
def self.calibrate_socket_timeout: (top conn, Float deadline) -> void
|
|
23
26
|
|
|
@@ -106,6 +106,16 @@ module Straddle
|
|
|
106
106
|
JSON_CONTENT: Regexp
|
|
107
107
|
JSONL_CONTENT: Regexp
|
|
108
108
|
|
|
109
|
+
def encode_query_params: (
|
|
110
|
+
::Hash[Symbol, top] query
|
|
111
|
+
) -> ::Hash[Symbol, top]
|
|
112
|
+
|
|
113
|
+
private def write_query_param_element!: (
|
|
114
|
+
::Hash[Symbol, top] collection,
|
|
115
|
+
String key,
|
|
116
|
+
top element
|
|
117
|
+
) -> nil
|
|
118
|
+
|
|
109
119
|
def self?.write_multipart_content: (
|
|
110
120
|
Enumerator::Yielder y,
|
|
111
121
|
val: top,
|
|
@@ -8,6 +8,7 @@ module Straddle
|
|
|
8
8
|
customer_id: String,
|
|
9
9
|
routing_number: String,
|
|
10
10
|
config: Straddle::Bridge::LinkBankAccountParams::Config,
|
|
11
|
+
external_id: String?,
|
|
11
12
|
metadata: ::Hash[Symbol, String]?,
|
|
12
13
|
correlation_id: String,
|
|
13
14
|
idempotency_key: String,
|
|
@@ -34,6 +35,8 @@ module Straddle
|
|
|
34
35
|
Straddle::Bridge::LinkBankAccountParams::Config
|
|
35
36
|
) -> Straddle::Bridge::LinkBankAccountParams::Config
|
|
36
37
|
|
|
38
|
+
attr_accessor external_id: String?
|
|
39
|
+
|
|
37
40
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
38
41
|
|
|
39
42
|
attr_reader correlation_id: String?
|
|
@@ -58,6 +61,7 @@ module Straddle
|
|
|
58
61
|
customer_id: String,
|
|
59
62
|
routing_number: String,
|
|
60
63
|
?config: Straddle::Bridge::LinkBankAccountParams::Config,
|
|
64
|
+
?external_id: String?,
|
|
61
65
|
?metadata: ::Hash[Symbol, String]?,
|
|
62
66
|
?correlation_id: String,
|
|
63
67
|
?idempotency_key: String,
|
|
@@ -72,6 +76,7 @@ module Straddle
|
|
|
72
76
|
customer_id: String,
|
|
73
77
|
routing_number: String,
|
|
74
78
|
config: Straddle::Bridge::LinkBankAccountParams::Config,
|
|
79
|
+
external_id: String?,
|
|
75
80
|
metadata: ::Hash[Symbol, String]?,
|
|
76
81
|
correlation_id: String,
|
|
77
82
|
idempotency_key: String,
|
|
@@ -93,10 +98,17 @@ module Straddle
|
|
|
93
98
|
|
|
94
99
|
type config =
|
|
95
100
|
{
|
|
101
|
+
processing_method: Straddle::Models::Bridge::LinkBankAccountParams::Config::processing_method,
|
|
96
102
|
sandbox_outcome: Straddle::Models::Bridge::LinkBankAccountParams::Config::sandbox_outcome
|
|
97
103
|
}
|
|
98
104
|
|
|
99
105
|
class Config < Straddle::Internal::Type::BaseModel
|
|
106
|
+
attr_reader processing_method: Straddle::Models::Bridge::LinkBankAccountParams::Config::processing_method?
|
|
107
|
+
|
|
108
|
+
def processing_method=: (
|
|
109
|
+
Straddle::Models::Bridge::LinkBankAccountParams::Config::processing_method
|
|
110
|
+
) -> Straddle::Models::Bridge::LinkBankAccountParams::Config::processing_method
|
|
111
|
+
|
|
100
112
|
attr_reader sandbox_outcome: Straddle::Models::Bridge::LinkBankAccountParams::Config::sandbox_outcome?
|
|
101
113
|
|
|
102
114
|
def sandbox_outcome=: (
|
|
@@ -104,14 +116,28 @@ module Straddle
|
|
|
104
116
|
) -> Straddle::Models::Bridge::LinkBankAccountParams::Config::sandbox_outcome
|
|
105
117
|
|
|
106
118
|
def initialize: (
|
|
119
|
+
?processing_method: Straddle::Models::Bridge::LinkBankAccountParams::Config::processing_method,
|
|
107
120
|
?sandbox_outcome: Straddle::Models::Bridge::LinkBankAccountParams::Config::sandbox_outcome
|
|
108
121
|
) -> void
|
|
109
122
|
|
|
110
123
|
def to_hash: -> {
|
|
124
|
+
processing_method: Straddle::Models::Bridge::LinkBankAccountParams::Config::processing_method,
|
|
111
125
|
sandbox_outcome: Straddle::Models::Bridge::LinkBankAccountParams::Config::sandbox_outcome
|
|
112
126
|
}
|
|
113
127
|
|
|
114
|
-
type
|
|
128
|
+
type processing_method = :inline | :background | :skip
|
|
129
|
+
|
|
130
|
+
module ProcessingMethod
|
|
131
|
+
extend Straddle::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
INLINE: :inline
|
|
134
|
+
BACKGROUND: :background
|
|
135
|
+
SKIP: :skip
|
|
136
|
+
|
|
137
|
+
def self?.values: -> ::Array[Straddle::Models::Bridge::LinkBankAccountParams::Config::processing_method]
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
type sandbox_outcome = :standard | :active | :rejected | :review
|
|
115
141
|
|
|
116
142
|
module SandboxOutcome
|
|
117
143
|
extend Straddle::Internal::Type::Enum
|
|
@@ -119,6 +145,7 @@ module Straddle
|
|
|
119
145
|
STANDARD: :standard
|
|
120
146
|
ACTIVE: :active
|
|
121
147
|
REJECTED: :rejected
|
|
148
|
+
REVIEW: :review
|
|
122
149
|
|
|
123
150
|
def self?.values: -> ::Array[Straddle::Models::Bridge::LinkBankAccountParams::Config::sandbox_outcome]
|
|
124
151
|
end
|
|
@@ -6,6 +6,7 @@ module Straddle
|
|
|
6
6
|
customer_id: String,
|
|
7
7
|
quiltt_token: String,
|
|
8
8
|
config: Straddle::Bridge::LinkCreatePaykeyParams::Config,
|
|
9
|
+
external_id: String?,
|
|
9
10
|
metadata: ::Hash[Symbol, String]?,
|
|
10
11
|
correlation_id: String,
|
|
11
12
|
idempotency_key: String,
|
|
@@ -28,6 +29,8 @@ module Straddle
|
|
|
28
29
|
Straddle::Bridge::LinkCreatePaykeyParams::Config
|
|
29
30
|
) -> Straddle::Bridge::LinkCreatePaykeyParams::Config
|
|
30
31
|
|
|
32
|
+
attr_accessor external_id: String?
|
|
33
|
+
|
|
31
34
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
32
35
|
|
|
33
36
|
attr_reader correlation_id: String?
|
|
@@ -50,6 +53,7 @@ module Straddle
|
|
|
50
53
|
customer_id: String,
|
|
51
54
|
quiltt_token: String,
|
|
52
55
|
?config: Straddle::Bridge::LinkCreatePaykeyParams::Config,
|
|
56
|
+
?external_id: String?,
|
|
53
57
|
?metadata: ::Hash[Symbol, String]?,
|
|
54
58
|
?correlation_id: String,
|
|
55
59
|
?idempotency_key: String,
|
|
@@ -62,6 +66,7 @@ module Straddle
|
|
|
62
66
|
customer_id: String,
|
|
63
67
|
quiltt_token: String,
|
|
64
68
|
config: Straddle::Bridge::LinkCreatePaykeyParams::Config,
|
|
69
|
+
external_id: String?,
|
|
65
70
|
metadata: ::Hash[Symbol, String]?,
|
|
66
71
|
correlation_id: String,
|
|
67
72
|
idempotency_key: String,
|
|
@@ -72,10 +77,17 @@ module Straddle
|
|
|
72
77
|
|
|
73
78
|
type config =
|
|
74
79
|
{
|
|
80
|
+
processing_method: Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::processing_method,
|
|
75
81
|
sandbox_outcome: Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::sandbox_outcome
|
|
76
82
|
}
|
|
77
83
|
|
|
78
84
|
class Config < Straddle::Internal::Type::BaseModel
|
|
85
|
+
attr_reader processing_method: Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::processing_method?
|
|
86
|
+
|
|
87
|
+
def processing_method=: (
|
|
88
|
+
Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::processing_method
|
|
89
|
+
) -> Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::processing_method
|
|
90
|
+
|
|
79
91
|
attr_reader sandbox_outcome: Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::sandbox_outcome?
|
|
80
92
|
|
|
81
93
|
def sandbox_outcome=: (
|
|
@@ -83,14 +95,28 @@ module Straddle
|
|
|
83
95
|
) -> Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::sandbox_outcome
|
|
84
96
|
|
|
85
97
|
def initialize: (
|
|
98
|
+
?processing_method: Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::processing_method,
|
|
86
99
|
?sandbox_outcome: Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::sandbox_outcome
|
|
87
100
|
) -> void
|
|
88
101
|
|
|
89
102
|
def to_hash: -> {
|
|
103
|
+
processing_method: Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::processing_method,
|
|
90
104
|
sandbox_outcome: Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::sandbox_outcome
|
|
91
105
|
}
|
|
92
106
|
|
|
93
|
-
type
|
|
107
|
+
type processing_method = :inline | :background | :skip
|
|
108
|
+
|
|
109
|
+
module ProcessingMethod
|
|
110
|
+
extend Straddle::Internal::Type::Enum
|
|
111
|
+
|
|
112
|
+
INLINE: :inline
|
|
113
|
+
BACKGROUND: :background
|
|
114
|
+
SKIP: :skip
|
|
115
|
+
|
|
116
|
+
def self?.values: -> ::Array[Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::processing_method]
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
type sandbox_outcome = :standard | :active | :rejected | :review
|
|
94
120
|
|
|
95
121
|
module SandboxOutcome
|
|
96
122
|
extend Straddle::Internal::Type::Enum
|
|
@@ -98,6 +124,7 @@ module Straddle
|
|
|
98
124
|
STANDARD: :standard
|
|
99
125
|
ACTIVE: :active
|
|
100
126
|
REJECTED: :rejected
|
|
127
|
+
REVIEW: :review
|
|
101
128
|
|
|
102
129
|
def self?.values: -> ::Array[Straddle::Models::Bridge::LinkCreatePaykeyParams::Config::sandbox_outcome]
|
|
103
130
|
end
|