straddle 0.1.0.pre.alpha.1
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 +7 -0
- data/.ignore +2 -0
- data/CHANGELOG.md +9 -0
- data/README.md +344 -0
- data/SECURITY.md +27 -0
- data/lib/straddle/client.rb +125 -0
- data/lib/straddle/errors.rb +214 -0
- data/lib/straddle/file_part.rb +55 -0
- data/lib/straddle/internal/page_number_schema.rb +127 -0
- data/lib/straddle/internal/transport/base_client.rb +563 -0
- data/lib/straddle/internal/transport/pooled_net_requester.rb +209 -0
- data/lib/straddle/internal/type/array_of.rb +167 -0
- data/lib/straddle/internal/type/base_model.rb +536 -0
- data/lib/straddle/internal/type/base_page.rb +55 -0
- data/lib/straddle/internal/type/boolean.rb +77 -0
- data/lib/straddle/internal/type/converter.rb +300 -0
- data/lib/straddle/internal/type/enum.rb +131 -0
- data/lib/straddle/internal/type/file_input.rb +108 -0
- data/lib/straddle/internal/type/hash_of.rb +187 -0
- data/lib/straddle/internal/type/request_parameters.rb +42 -0
- data/lib/straddle/internal/type/union.rb +235 -0
- data/lib/straddle/internal/type/unknown.rb +81 -0
- data/lib/straddle/internal/util.rb +914 -0
- data/lib/straddle/internal.rb +20 -0
- data/lib/straddle/models/bridge/link_bank_account_params.rb +122 -0
- data/lib/straddle/models/bridge/link_create_paykey_params.rb +98 -0
- data/lib/straddle/models/bridge/link_create_paykey_response.rb +411 -0
- data/lib/straddle/models/bridge/link_create_tan_params.rb +122 -0
- data/lib/straddle/models/bridge/link_create_tan_response.rb +411 -0
- data/lib/straddle/models/bridge/link_plaid_params.rb +95 -0
- data/lib/straddle/models/bridge_initialize_params.rb +76 -0
- data/lib/straddle/models/bridge_token_v1.rb +74 -0
- data/lib/straddle/models/charge_cancel_params.rb +43 -0
- data/lib/straddle/models/charge_create_params.rb +191 -0
- data/lib/straddle/models/charge_get_params.rb +32 -0
- data/lib/straddle/models/charge_hold_params.rb +43 -0
- data/lib/straddle/models/charge_release_params.rb +43 -0
- data/lib/straddle/models/charge_unmask_params.rb +32 -0
- data/lib/straddle/models/charge_unmask_response.rb +485 -0
- data/lib/straddle/models/charge_update_params.rb +72 -0
- data/lib/straddle/models/charge_v1.rb +485 -0
- data/lib/straddle/models/customer_address_v1.rb +51 -0
- data/lib/straddle/models/customer_create_params.rb +287 -0
- data/lib/straddle/models/customer_delete_params.rb +32 -0
- data/lib/straddle/models/customer_details_v1.rb +63 -0
- data/lib/straddle/models/customer_get_params.rb +32 -0
- data/lib/straddle/models/customer_list_params.rb +173 -0
- data/lib/straddle/models/customer_refresh_review_params.rb +32 -0
- data/lib/straddle/models/customer_summary_paged_v1.rb +248 -0
- data/lib/straddle/models/customer_unmasked_params.rb +32 -0
- data/lib/straddle/models/customer_unmasked_v1.rb +366 -0
- data/lib/straddle/models/customer_update_params.rb +239 -0
- data/lib/straddle/models/customer_v1.rb +371 -0
- data/lib/straddle/models/customers/customer_review_v1.rb +1091 -0
- data/lib/straddle/models/customers/identity_verification_breakdown_v1.rb +79 -0
- data/lib/straddle/models/customers/review_decision_params.rb +56 -0
- data/lib/straddle/models/customers/review_get_params.rb +34 -0
- data/lib/straddle/models/device_info_v1.rb +20 -0
- data/lib/straddle/models/device_unmasked_v1.rb +20 -0
- data/lib/straddle/models/embed/account_create_params.rb +106 -0
- data/lib/straddle/models/embed/account_get_params.rb +28 -0
- data/lib/straddle/models/embed/account_list_params.rb +116 -0
- data/lib/straddle/models/embed/account_onboard_params.rb +34 -0
- data/lib/straddle/models/embed/account_paged_v1.rb +561 -0
- data/lib/straddle/models/embed/account_simulate_params.rb +44 -0
- data/lib/straddle/models/embed/account_update_params.rb +58 -0
- data/lib/straddle/models/embed/account_v1.rb +557 -0
- data/lib/straddle/models/embed/accounts/capability_request_create_params.rb +227 -0
- data/lib/straddle/models/embed/accounts/capability_request_list_params.rb +139 -0
- data/lib/straddle/models/embed/accounts/capability_request_paged_v1.rb +201 -0
- data/lib/straddle/models/embed/address_v1.rb +84 -0
- data/lib/straddle/models/embed/business_profile_v1.rb +88 -0
- data/lib/straddle/models/embed/capability_v1.rb +28 -0
- data/lib/straddle/models/embed/industry_v1.rb +37 -0
- data/lib/straddle/models/embed/linked_bank_account_create_params.rb +90 -0
- data/lib/straddle/models/embed/linked_bank_account_get_params.rb +28 -0
- data/lib/straddle/models/embed/linked_bank_account_list_params.rb +98 -0
- data/lib/straddle/models/embed/linked_bank_account_paged_v1.rb +271 -0
- data/lib/straddle/models/embed/linked_bank_account_unmask_params.rb +28 -0
- data/lib/straddle/models/embed/linked_bank_account_unmask_v1.rb +262 -0
- data/lib/straddle/models/embed/linked_bank_account_update_params.rb +81 -0
- data/lib/straddle/models/embed/linked_bank_account_v1.rb +263 -0
- data/lib/straddle/models/embed/organization_create_params.rb +59 -0
- data/lib/straddle/models/embed/organization_get_params.rb +28 -0
- data/lib/straddle/models/embed/organization_list_params.rb +89 -0
- data/lib/straddle/models/embed/organization_paged_v1.rb +120 -0
- data/lib/straddle/models/embed/organization_v1.rb +121 -0
- data/lib/straddle/models/embed/representative.rb +351 -0
- data/lib/straddle/models/embed/representative_create_params.rb +160 -0
- data/lib/straddle/models/embed/representative_get_params.rb +28 -0
- data/lib/straddle/models/embed/representative_list_params.rb +112 -0
- data/lib/straddle/models/embed/representative_paged.rb +352 -0
- data/lib/straddle/models/embed/representative_unmask_params.rb +28 -0
- data/lib/straddle/models/embed/representative_update_params.rb +152 -0
- data/lib/straddle/models/embed/support_channels_v1.rb +34 -0
- data/lib/straddle/models/embed/terms_of_service_v1.rb +68 -0
- data/lib/straddle/models/funding_event_get_params.rb +32 -0
- data/lib/straddle/models/funding_event_list_params.rb +161 -0
- data/lib/straddle/models/funding_event_summary_item_v1.rb +167 -0
- data/lib/straddle/models/funding_event_summary_paged_v1.rb +249 -0
- data/lib/straddle/models/paged_response_metadata.rb +93 -0
- data/lib/straddle/models/paykey_cancel_params.rb +38 -0
- data/lib/straddle/models/paykey_details_v1.rb +45 -0
- data/lib/straddle/models/paykey_get_params.rb +32 -0
- data/lib/straddle/models/paykey_list_params.rb +137 -0
- data/lib/straddle/models/paykey_reveal_params.rb +32 -0
- data/lib/straddle/models/paykey_reveal_response.rb +405 -0
- data/lib/straddle/models/paykey_summary_paged_v1.rb +431 -0
- data/lib/straddle/models/paykey_unmasked_params.rb +32 -0
- data/lib/straddle/models/paykey_unmasked_v1.rb +399 -0
- data/lib/straddle/models/paykey_v1.rb +403 -0
- data/lib/straddle/models/payment_list_params.rb +361 -0
- data/lib/straddle/models/payment_summary_paged_v1.rb +325 -0
- data/lib/straddle/models/payout_cancel_params.rb +43 -0
- data/lib/straddle/models/payout_create_params.rb +145 -0
- data/lib/straddle/models/payout_get_params.rb +32 -0
- data/lib/straddle/models/payout_hold_params.rb +43 -0
- data/lib/straddle/models/payout_release_params.rb +43 -0
- data/lib/straddle/models/payout_unmask_params.rb +32 -0
- data/lib/straddle/models/payout_unmask_response.rb +433 -0
- data/lib/straddle/models/payout_update_params.rb +72 -0
- data/lib/straddle/models/payout_v1.rb +434 -0
- data/lib/straddle/models/report_create_total_customers_by_status_params.rb +32 -0
- data/lib/straddle/models/report_create_total_customers_by_status_response.rb +98 -0
- data/lib/straddle/models/response_metadata.rb +26 -0
- data/lib/straddle/models/status_details_v1.rb +102 -0
- data/lib/straddle/models.rb +149 -0
- data/lib/straddle/request_options.rb +77 -0
- data/lib/straddle/resources/bridge/link.rb +204 -0
- data/lib/straddle/resources/bridge.rb +58 -0
- data/lib/straddle/resources/charges.rb +305 -0
- data/lib/straddle/resources/customers/review.rb +99 -0
- data/lib/straddle/resources/customers.rb +349 -0
- data/lib/straddle/resources/embed/accounts/capability_requests.rb +115 -0
- data/lib/straddle/resources/embed/accounts.rb +251 -0
- data/lib/straddle/resources/embed/linked_bank_accounts.rb +199 -0
- data/lib/straddle/resources/embed/organizations.rb +129 -0
- data/lib/straddle/resources/embed/representatives.rb +233 -0
- data/lib/straddle/resources/embed.rb +30 -0
- data/lib/straddle/resources/funding_events.rb +114 -0
- data/lib/straddle/resources/paykeys.rb +207 -0
- data/lib/straddle/resources/payments.rb +131 -0
- data/lib/straddle/resources/payouts.rb +303 -0
- data/lib/straddle/resources/reports.rb +42 -0
- data/lib/straddle/version.rb +5 -0
- data/lib/straddle.rb +172 -0
- data/manifest.yaml +15 -0
- data/rbi/straddle/client.rbi +93 -0
- data/rbi/straddle/errors.rbi +178 -0
- data/rbi/straddle/file_part.rbi +37 -0
- data/rbi/straddle/internal/page_number_schema.rbi +79 -0
- data/rbi/straddle/internal/transport/base_client.rbi +293 -0
- data/rbi/straddle/internal/transport/pooled_net_requester.rbi +79 -0
- data/rbi/straddle/internal/type/array_of.rbi +104 -0
- data/rbi/straddle/internal/type/base_model.rbi +302 -0
- data/rbi/straddle/internal/type/base_page.rbi +42 -0
- data/rbi/straddle/internal/type/boolean.rbi +58 -0
- data/rbi/straddle/internal/type/converter.rbi +162 -0
- data/rbi/straddle/internal/type/enum.rbi +82 -0
- data/rbi/straddle/internal/type/file_input.rbi +59 -0
- data/rbi/straddle/internal/type/hash_of.rbi +104 -0
- data/rbi/straddle/internal/type/request_parameters.rbi +29 -0
- data/rbi/straddle/internal/type/union.rbi +121 -0
- data/rbi/straddle/internal/type/unknown.rbi +58 -0
- data/rbi/straddle/internal/util.rbi +487 -0
- data/rbi/straddle/internal.rbi +16 -0
- data/rbi/straddle/models/bridge/link_bank_account_params.rbi +248 -0
- data/rbi/straddle/models/bridge/link_create_paykey_params.rbi +196 -0
- data/rbi/straddle/models/bridge/link_create_paykey_response.rbi +976 -0
- data/rbi/straddle/models/bridge/link_create_tan_params.rbi +243 -0
- data/rbi/straddle/models/bridge/link_create_tan_response.rbi +972 -0
- data/rbi/straddle/models/bridge/link_plaid_params.rbi +192 -0
- data/rbi/straddle/models/bridge_initialize_params.rbi +169 -0
- data/rbi/straddle/models/bridge_token_v1.rbi +122 -0
- data/rbi/straddle/models/charge_cancel_params.rbi +70 -0
- data/rbi/straddle/models/charge_create_params.rbi +369 -0
- data/rbi/straddle/models/charge_get_params.rbi +62 -0
- data/rbi/straddle/models/charge_hold_params.rbi +70 -0
- data/rbi/straddle/models/charge_release_params.rbi +70 -0
- data/rbi/straddle/models/charge_unmask_params.rbi +62 -0
- data/rbi/straddle/models/charge_unmask_response.rbi +1078 -0
- data/rbi/straddle/models/charge_update_params.rbi +98 -0
- data/rbi/straddle/models/charge_v1.rbi +932 -0
- data/rbi/straddle/models/customer_address_v1.rbi +71 -0
- data/rbi/straddle/models/customer_create_params.rbi +542 -0
- data/rbi/straddle/models/customer_delete_params.rbi +62 -0
- data/rbi/straddle/models/customer_details_v1.rbi +101 -0
- data/rbi/straddle/models/customer_get_params.rbi +62 -0
- data/rbi/straddle/models/customer_list_params.rbi +306 -0
- data/rbi/straddle/models/customer_refresh_review_params.rbi +65 -0
- data/rbi/straddle/models/customer_summary_paged_v1.rbi +432 -0
- data/rbi/straddle/models/customer_unmasked_params.rbi +62 -0
- data/rbi/straddle/models/customer_unmasked_v1.rbi +700 -0
- data/rbi/straddle/models/customer_update_params.rbi +381 -0
- data/rbi/straddle/models/customer_v1.rbi +667 -0
- data/rbi/straddle/models/customers/customer_review_v1.rbi +2212 -0
- data/rbi/straddle/models/customers/identity_verification_breakdown_v1.rbi +194 -0
- data/rbi/straddle/models/customers/review_decision_params.rbi +110 -0
- data/rbi/straddle/models/customers/review_get_params.rbi +67 -0
- data/rbi/straddle/models/device_info_v1.rbi +29 -0
- data/rbi/straddle/models/device_unmasked_v1.rbi +29 -0
- data/rbi/straddle/models/embed/account_create_params.rbi +190 -0
- data/rbi/straddle/models/embed/account_get_params.rbi +54 -0
- data/rbi/straddle/models/embed/account_list_params.rbi +250 -0
- data/rbi/straddle/models/embed/account_onboard_params.rbi +71 -0
- data/rbi/straddle/models/embed/account_paged_v1.rbi +1193 -0
- data/rbi/straddle/models/embed/account_simulate_params.rbi +111 -0
- data/rbi/straddle/models/embed/account_update_params.rbi +91 -0
- data/rbi/straddle/models/embed/account_v1.rbi +1162 -0
- data/rbi/straddle/models/embed/accounts/capability_request_create_params.rbi +434 -0
- data/rbi/straddle/models/embed/accounts/capability_request_list_params.rbi +364 -0
- data/rbi/straddle/models/embed/accounts/capability_request_paged_v1.rbi +409 -0
- data/rbi/straddle/models/embed/address_v1.rbi +104 -0
- data/rbi/straddle/models/embed/business_profile_v1.rbi +125 -0
- data/rbi/straddle/models/embed/capability_v1.rbi +70 -0
- data/rbi/straddle/models/embed/industry_v1.rbi +55 -0
- data/rbi/straddle/models/embed/linked_bank_account_create_params.rbi +149 -0
- data/rbi/straddle/models/embed/linked_bank_account_get_params.rbi +54 -0
- data/rbi/straddle/models/embed/linked_bank_account_list_params.rbi +213 -0
- data/rbi/straddle/models/embed/linked_bank_account_paged_v1.rbi +539 -0
- data/rbi/straddle/models/embed/linked_bank_account_unmask_params.rbi +54 -0
- data/rbi/straddle/models/embed/linked_bank_account_unmask_v1.rbi +535 -0
- data/rbi/straddle/models/embed/linked_bank_account_update_params.rbi +139 -0
- data/rbi/straddle/models/embed/linked_bank_account_v1.rbi +532 -0
- data/rbi/straddle/models/embed/organization_create_params.rbi +86 -0
- data/rbi/straddle/models/embed/organization_get_params.rbi +54 -0
- data/rbi/straddle/models/embed/organization_list_params.rbi +169 -0
- data/rbi/straddle/models/embed/organization_paged_v1.rbi +206 -0
- data/rbi/straddle/models/embed/organization_v1.rbi +202 -0
- data/rbi/straddle/models/embed/representative.rbi +609 -0
- data/rbi/straddle/models/embed/representative_create_params.rbi +225 -0
- data/rbi/straddle/models/embed/representative_get_params.rbi +54 -0
- data/rbi/straddle/models/embed/representative_list_params.rbi +229 -0
- data/rbi/straddle/models/embed/representative_paged.rbi +623 -0
- data/rbi/straddle/models/embed/representative_unmask_params.rbi +54 -0
- data/rbi/straddle/models/embed/representative_update_params.rbi +217 -0
- data/rbi/straddle/models/embed/support_channels_v1.rbi +58 -0
- data/rbi/straddle/models/embed/terms_of_service_v1.rbi +113 -0
- data/rbi/straddle/models/funding_event_get_params.rbi +62 -0
- data/rbi/straddle/models/funding_event_list_params.rbi +311 -0
- data/rbi/straddle/models/funding_event_summary_item_v1.rbi +319 -0
- data/rbi/straddle/models/funding_event_summary_paged_v1.rbi +451 -0
- data/rbi/straddle/models/paged_response_metadata.rbi +125 -0
- data/rbi/straddle/models/paykey_cancel_params.rbi +68 -0
- data/rbi/straddle/models/paykey_details_v1.rbi +65 -0
- data/rbi/straddle/models/paykey_get_params.rbi +62 -0
- data/rbi/straddle/models/paykey_list_params.rbi +253 -0
- data/rbi/straddle/models/paykey_reveal_params.rbi +62 -0
- data/rbi/straddle/models/paykey_reveal_response.rbi +953 -0
- data/rbi/straddle/models/paykey_summary_paged_v1.rbi +926 -0
- data/rbi/straddle/models/paykey_unmasked_params.rbi +62 -0
- data/rbi/straddle/models/paykey_unmasked_v1.rbi +871 -0
- data/rbi/straddle/models/paykey_v1.rbi +800 -0
- data/rbi/straddle/models/payment_list_params.rbi +781 -0
- data/rbi/straddle/models/payment_summary_paged_v1.rbi +536 -0
- data/rbi/straddle/models/payout_cancel_params.rbi +70 -0
- data/rbi/straddle/models/payout_create_params.rbi +275 -0
- data/rbi/straddle/models/payout_get_params.rbi +62 -0
- data/rbi/straddle/models/payout_hold_params.rbi +70 -0
- data/rbi/straddle/models/payout_release_params.rbi +70 -0
- data/rbi/straddle/models/payout_unmask_params.rbi +62 -0
- data/rbi/straddle/models/payout_unmask_response.rbi +966 -0
- data/rbi/straddle/models/payout_update_params.rbi +98 -0
- data/rbi/straddle/models/payout_v1.rbi +836 -0
- data/rbi/straddle/models/report_create_total_customers_by_status_params.rbi +65 -0
- data/rbi/straddle/models/report_create_total_customers_by_status_response.rbi +191 -0
- data/rbi/straddle/models/response_metadata.rbi +42 -0
- data/rbi/straddle/models/status_details_v1.rbi +207 -0
- data/rbi/straddle/models.rbi +112 -0
- data/rbi/straddle/request_options.rbi +59 -0
- data/rbi/straddle/resources/bridge/link.rbi +175 -0
- data/rbi/straddle/resources/bridge.rbi +44 -0
- data/rbi/straddle/resources/charges.rbi +242 -0
- data/rbi/straddle/resources/customers/review.rbi +75 -0
- data/rbi/straddle/resources/customers.rbi +307 -0
- data/rbi/straddle/resources/embed/accounts/capability_requests.rbi +116 -0
- data/rbi/straddle/resources/embed/accounts.rbi +216 -0
- data/rbi/straddle/resources/embed/linked_bank_accounts.rbi +169 -0
- data/rbi/straddle/resources/embed/organizations.rbi +110 -0
- data/rbi/straddle/resources/embed/representatives.rbi +208 -0
- data/rbi/straddle/resources/embed.rbi +24 -0
- data/rbi/straddle/resources/funding_events.rbi +94 -0
- data/rbi/straddle/resources/paykeys.rbi +161 -0
- data/rbi/straddle/resources/payments.rbi +125 -0
- data/rbi/straddle/resources/payouts.rbi +237 -0
- data/rbi/straddle/resources/reports.rbi +31 -0
- data/rbi/straddle/version.rbi +5 -0
- data/sig/straddle/client.rbs +48 -0
- data/sig/straddle/errors.rbs +110 -0
- data/sig/straddle/file_part.rbs +21 -0
- data/sig/straddle/internal/page_number_schema.rbs +52 -0
- data/sig/straddle/internal/transport/base_client.rbs +131 -0
- data/sig/straddle/internal/transport/pooled_net_requester.rbs +45 -0
- data/sig/straddle/internal/type/array_of.rbs +48 -0
- data/sig/straddle/internal/type/base_model.rbs +102 -0
- data/sig/straddle/internal/type/base_page.rbs +24 -0
- data/sig/straddle/internal/type/boolean.rbs +26 -0
- data/sig/straddle/internal/type/converter.rbs +62 -0
- data/sig/straddle/internal/type/enum.rbs +32 -0
- data/sig/straddle/internal/type/file_input.rbs +25 -0
- data/sig/straddle/internal/type/hash_of.rbs +48 -0
- data/sig/straddle/internal/type/request_parameters.rbs +17 -0
- data/sig/straddle/internal/type/union.rbs +52 -0
- data/sig/straddle/internal/type/unknown.rbs +26 -0
- data/sig/straddle/internal/util.rbs +185 -0
- data/sig/straddle/internal.rbs +9 -0
- data/sig/straddle/models/bridge/link_bank_account_params.rbs +122 -0
- data/sig/straddle/models/bridge/link_create_paykey_params.rbs +101 -0
- data/sig/straddle/models/bridge/link_create_paykey_response.rbs +389 -0
- data/sig/straddle/models/bridge/link_create_tan_params.rbs +122 -0
- data/sig/straddle/models/bridge/link_create_tan_response.rbs +389 -0
- data/sig/straddle/models/bridge/link_plaid_params.rbs +101 -0
- data/sig/straddle/models/bridge_initialize_params.rbs +89 -0
- data/sig/straddle/models/bridge_token_v1.rbs +53 -0
- data/sig/straddle/models/charge_cancel_params.rbs +47 -0
- data/sig/straddle/models/charge_create_params.rbs +172 -0
- data/sig/straddle/models/charge_get_params.rbs +42 -0
- data/sig/straddle/models/charge_hold_params.rbs +47 -0
- data/sig/straddle/models/charge_release_params.rbs +47 -0
- data/sig/straddle/models/charge_unmask_params.rbs +42 -0
- data/sig/straddle/models/charge_unmask_response.rbs +437 -0
- data/sig/straddle/models/charge_update_params.rbs +62 -0
- data/sig/straddle/models/charge_v1.rbs +427 -0
- data/sig/straddle/models/customer_address_v1.rbs +40 -0
- data/sig/straddle/models/customer_create_params.rbs +235 -0
- data/sig/straddle/models/customer_delete_params.rbs +42 -0
- data/sig/straddle/models/customer_details_v1.rbs +51 -0
- data/sig/straddle/models/customer_get_params.rbs +42 -0
- data/sig/straddle/models/customer_list_params.rbs +182 -0
- data/sig/straddle/models/customer_refresh_review_params.rbs +42 -0
- data/sig/straddle/models/customer_summary_paged_v1.rbs +194 -0
- data/sig/straddle/models/customer_unmasked_params.rbs +42 -0
- data/sig/straddle/models/customer_unmasked_v1.rbs +285 -0
- data/sig/straddle/models/customer_update_params.rbs +173 -0
- data/sig/straddle/models/customer_v1.rbs +297 -0
- data/sig/straddle/models/customers/customer_review_v1.rbs +1001 -0
- data/sig/straddle/models/customers/identity_verification_breakdown_v1.rbs +81 -0
- data/sig/straddle/models/customers/review_decision_params.rbs +60 -0
- data/sig/straddle/models/customers/review_get_params.rbs +44 -0
- data/sig/straddle/models/device_info_v1.rbs +13 -0
- data/sig/straddle/models/device_unmasked_v1.rbs +13 -0
- data/sig/straddle/models/embed/account_create_params.rbs +89 -0
- data/sig/straddle/models/embed/account_get_params.rbs +34 -0
- data/sig/straddle/models/embed/account_list_params.rbs +127 -0
- data/sig/straddle/models/embed/account_onboard_params.rbs +42 -0
- data/sig/straddle/models/embed/account_paged_v1.rbs +493 -0
- data/sig/straddle/models/embed/account_simulate_params.rbs +57 -0
- data/sig/straddle/models/embed/account_update_params.rbs +52 -0
- data/sig/straddle/models/embed/account_v1.rbs +493 -0
- data/sig/straddle/models/embed/accounts/capability_request_create_params.rbs +207 -0
- data/sig/straddle/models/embed/accounts/capability_request_list_params.rbs +153 -0
- data/sig/straddle/models/embed/accounts/capability_request_paged_v1.rbs +153 -0
- data/sig/straddle/models/embed/address_v1.rbs +62 -0
- data/sig/straddle/models/embed/business_profile_v1.rbs +75 -0
- data/sig/straddle/models/embed/capability_v1.rbs +33 -0
- data/sig/straddle/models/embed/industry_v1.rbs +23 -0
- data/sig/straddle/models/embed/linked_bank_account_create_params.rbs +79 -0
- data/sig/straddle/models/embed/linked_bank_account_get_params.rbs +34 -0
- data/sig/straddle/models/embed/linked_bank_account_list_params.rbs +105 -0
- data/sig/straddle/models/embed/linked_bank_account_paged_v1.rbs +215 -0
- data/sig/straddle/models/embed/linked_bank_account_unmask_params.rbs +34 -0
- data/sig/straddle/models/embed/linked_bank_account_unmask_v1.rbs +210 -0
- data/sig/straddle/models/embed/linked_bank_account_update_params.rbs +74 -0
- data/sig/straddle/models/embed/linked_bank_account_v1.rbs +215 -0
- data/sig/straddle/models/embed/organization_create_params.rbs +52 -0
- data/sig/straddle/models/embed/organization_get_params.rbs +34 -0
- data/sig/straddle/models/embed/organization_list_params.rbs +92 -0
- data/sig/straddle/models/embed/organization_paged_v1.rbs +87 -0
- data/sig/straddle/models/embed/organization_v1.rbs +87 -0
- data/sig/straddle/models/embed/representative.rbs +260 -0
- data/sig/straddle/models/embed/representative_create_params.rbs +119 -0
- data/sig/straddle/models/embed/representative_get_params.rbs +34 -0
- data/sig/straddle/models/embed/representative_list_params.rbs +119 -0
- data/sig/straddle/models/embed/representative_paged.rbs +260 -0
- data/sig/straddle/models/embed/representative_unmask_params.rbs +34 -0
- data/sig/straddle/models/embed/representative_update_params.rbs +114 -0
- data/sig/straddle/models/embed/support_channels_v1.rbs +24 -0
- data/sig/straddle/models/embed/terms_of_service_v1.rbs +53 -0
- data/sig/straddle/models/funding_event_get_params.rbs +42 -0
- data/sig/straddle/models/funding_event_list_params.rbs +155 -0
- data/sig/straddle/models/funding_event_summary_item_v1.rbs +123 -0
- data/sig/straddle/models/funding_event_summary_paged_v1.rbs +191 -0
- data/sig/straddle/models/paged_response_metadata.rbs +71 -0
- data/sig/straddle/models/paykey_cancel_params.rbs +47 -0
- data/sig/straddle/models/paykey_details_v1.rbs +30 -0
- data/sig/straddle/models/paykey_get_params.rbs +42 -0
- data/sig/straddle/models/paykey_list_params.rbs +151 -0
- data/sig/straddle/models/paykey_reveal_params.rbs +42 -0
- data/sig/straddle/models/paykey_reveal_response.rbs +386 -0
- data/sig/straddle/models/paykey_summary_paged_v1.rbs +401 -0
- data/sig/straddle/models/paykey_unmasked_params.rbs +42 -0
- data/sig/straddle/models/paykey_unmasked_v1.rbs +386 -0
- data/sig/straddle/models/paykey_v1.rbs +386 -0
- data/sig/straddle/models/payment_list_params.rbs +391 -0
- data/sig/straddle/models/payment_summary_paged_v1.rbs +252 -0
- data/sig/straddle/models/payout_cancel_params.rbs +47 -0
- data/sig/straddle/models/payout_create_params.rbs +143 -0
- data/sig/straddle/models/payout_get_params.rbs +42 -0
- data/sig/straddle/models/payout_hold_params.rbs +47 -0
- data/sig/straddle/models/payout_release_params.rbs +47 -0
- data/sig/straddle/models/payout_unmask_params.rbs +42 -0
- data/sig/straddle/models/payout_unmask_response.rbs +404 -0
- data/sig/straddle/models/payout_update_params.rbs +62 -0
- data/sig/straddle/models/payout_v1.rbs +394 -0
- data/sig/straddle/models/report_create_total_customers_by_status_params.rbs +42 -0
- data/sig/straddle/models/report_create_total_customers_by_status_response.rbs +80 -0
- data/sig/straddle/models/response_metadata.rbs +19 -0
- data/sig/straddle/models/status_details_v1.rbs +104 -0
- data/sig/straddle/models.rbs +109 -0
- data/sig/straddle/request_options.rbs +34 -0
- data/sig/straddle/resources/bridge/link.rbs +57 -0
- data/sig/straddle/resources/bridge.rbs +18 -0
- data/sig/straddle/resources/charges.rbs +79 -0
- data/sig/straddle/resources/customers/review.rbs +26 -0
- data/sig/straddle/resources/customers.rbs +94 -0
- data/sig/straddle/resources/embed/accounts/capability_requests.rbs +38 -0
- data/sig/straddle/resources/embed/accounts.rbs +69 -0
- data/sig/straddle/resources/embed/linked_bank_accounts.rbs +53 -0
- data/sig/straddle/resources/embed/organizations.rbs +37 -0
- data/sig/straddle/resources/embed/representatives.rbs +67 -0
- data/sig/straddle/resources/embed.rbs +15 -0
- data/sig/straddle/resources/funding_events.rbs +31 -0
- data/sig/straddle/resources/paykeys.rbs +54 -0
- data/sig/straddle/resources/payments.rbs +40 -0
- data/sig/straddle/resources/payouts.rbs +78 -0
- data/sig/straddle/resources/reports.rbs +14 -0
- data/sig/straddle/version.rbs +3 -0
- metadata +485 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Straddle
|
|
4
|
+
module Models
|
|
5
|
+
module Embed
|
|
6
|
+
# @see Straddle::Resources::Embed::LinkedBankAccounts#unmask
|
|
7
|
+
class LinkedBankAccountUnmaskV1 < Straddle::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data]
|
|
11
|
+
required :data, -> { Straddle::Embed::LinkedBankAccountUnmaskV1::Data }
|
|
12
|
+
|
|
13
|
+
# @!attribute meta
|
|
14
|
+
# Metadata about the API request, including an identifier and timestamp.
|
|
15
|
+
#
|
|
16
|
+
# @return [Straddle::Models::ResponseMetadata]
|
|
17
|
+
required :meta, -> { Straddle::ResponseMetadata }
|
|
18
|
+
|
|
19
|
+
# @!attribute response_type
|
|
20
|
+
# Indicates the structure of the returned content.
|
|
21
|
+
#
|
|
22
|
+
# - "object" means the `data` field contains a single JSON object.
|
|
23
|
+
# - "array" means the `data` field contains an array of objects.
|
|
24
|
+
# - "error" means the `data` field contains an error object with details of the
|
|
25
|
+
# issue.
|
|
26
|
+
# - "none" means no data is returned.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::ResponseType]
|
|
29
|
+
required :response_type, enum: -> { Straddle::Embed::LinkedBankAccountUnmaskV1::ResponseType }
|
|
30
|
+
|
|
31
|
+
# @!method initialize(data:, meta:, response_type:)
|
|
32
|
+
# Some parameter documentations has been truncated, see
|
|
33
|
+
# {Straddle::Models::Embed::LinkedBankAccountUnmaskV1} for more details.
|
|
34
|
+
#
|
|
35
|
+
# @param data [Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data]
|
|
36
|
+
#
|
|
37
|
+
# @param meta [Straddle::Models::ResponseMetadata] Metadata about the API request, including an identifier and timestamp.
|
|
38
|
+
#
|
|
39
|
+
# @param response_type [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::ResponseType] Indicates the structure of the returned content.
|
|
40
|
+
|
|
41
|
+
# @see Straddle::Models::Embed::LinkedBankAccountUnmaskV1#data
|
|
42
|
+
class Data < Straddle::Internal::Type::BaseModel
|
|
43
|
+
# @!attribute id
|
|
44
|
+
# Unique identifier for the linked bank account.
|
|
45
|
+
#
|
|
46
|
+
# @return [String]
|
|
47
|
+
required :id, String
|
|
48
|
+
|
|
49
|
+
# @!attribute account_id
|
|
50
|
+
# Unique identifier for the Straddle account related to this bank account.
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
required :account_id, String
|
|
54
|
+
|
|
55
|
+
# @!attribute bank_account
|
|
56
|
+
# The bank account details associated with the linked bank account.
|
|
57
|
+
#
|
|
58
|
+
# @return [Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::BankAccount]
|
|
59
|
+
required :bank_account, -> { Straddle::Embed::LinkedBankAccountUnmaskV1::Data::BankAccount }
|
|
60
|
+
|
|
61
|
+
# @!attribute created_at
|
|
62
|
+
# Timestamp of when the linked bank account was created.
|
|
63
|
+
#
|
|
64
|
+
# @return [Time]
|
|
65
|
+
required :created_at, Time
|
|
66
|
+
|
|
67
|
+
# @!attribute status
|
|
68
|
+
# The current status of the linked bank account.
|
|
69
|
+
#
|
|
70
|
+
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::Status]
|
|
71
|
+
required :status, enum: -> { Straddle::Embed::LinkedBankAccountUnmaskV1::Data::Status }
|
|
72
|
+
|
|
73
|
+
# @!attribute status_detail
|
|
74
|
+
# Additional details about the current status of the linked bank account.
|
|
75
|
+
#
|
|
76
|
+
# @return [Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail]
|
|
77
|
+
required :status_detail, -> { Straddle::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail }
|
|
78
|
+
|
|
79
|
+
# @!attribute updated_at
|
|
80
|
+
# Timestamp of when the linked bank account was last updated.
|
|
81
|
+
#
|
|
82
|
+
# @return [Time]
|
|
83
|
+
required :updated_at, Time
|
|
84
|
+
|
|
85
|
+
# @!attribute metadata
|
|
86
|
+
#
|
|
87
|
+
# @return [Hash{Symbol=>String, nil}, nil]
|
|
88
|
+
optional :metadata, Straddle::Internal::Type::HashOf[String, nil?: true], nil?: true
|
|
89
|
+
|
|
90
|
+
# @!method initialize(id:, account_id:, bank_account:, created_at:, status:, status_detail:, updated_at:, metadata: nil)
|
|
91
|
+
# @param id [String] Unique identifier for the linked bank account.
|
|
92
|
+
#
|
|
93
|
+
# @param account_id [String] Unique identifier for the Straddle account related to this bank account.
|
|
94
|
+
#
|
|
95
|
+
# @param bank_account [Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::BankAccount] The bank account details associated with the linked bank account.
|
|
96
|
+
#
|
|
97
|
+
# @param created_at [Time] Timestamp of when the linked bank account was created.
|
|
98
|
+
#
|
|
99
|
+
# @param status [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::Status] The current status of the linked bank account.
|
|
100
|
+
#
|
|
101
|
+
# @param status_detail [Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail] Additional details about the current status of the linked bank account.
|
|
102
|
+
#
|
|
103
|
+
# @param updated_at [Time] Timestamp of when the linked bank account was last updated.
|
|
104
|
+
#
|
|
105
|
+
# @param metadata [Hash{Symbol=>String, nil}, nil]
|
|
106
|
+
|
|
107
|
+
# @see Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data#bank_account
|
|
108
|
+
class BankAccount < Straddle::Internal::Type::BaseModel
|
|
109
|
+
# @!attribute account_holder
|
|
110
|
+
#
|
|
111
|
+
# @return [String]
|
|
112
|
+
required :account_holder, String
|
|
113
|
+
|
|
114
|
+
# @!attribute account_number
|
|
115
|
+
#
|
|
116
|
+
# @return [String]
|
|
117
|
+
required :account_number, String
|
|
118
|
+
|
|
119
|
+
# @!attribute institution_name
|
|
120
|
+
#
|
|
121
|
+
# @return [String]
|
|
122
|
+
required :institution_name, String
|
|
123
|
+
|
|
124
|
+
# @!attribute routing_number
|
|
125
|
+
#
|
|
126
|
+
# @return [String]
|
|
127
|
+
required :routing_number, String
|
|
128
|
+
|
|
129
|
+
# @!method initialize(account_holder:, account_number:, institution_name:, routing_number:)
|
|
130
|
+
# The bank account details associated with the linked bank account.
|
|
131
|
+
#
|
|
132
|
+
# @param account_holder [String]
|
|
133
|
+
# @param account_number [String]
|
|
134
|
+
# @param institution_name [String]
|
|
135
|
+
# @param routing_number [String]
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
# The current status of the linked bank account.
|
|
139
|
+
#
|
|
140
|
+
# @see Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data#status
|
|
141
|
+
module Status
|
|
142
|
+
extend Straddle::Internal::Type::Enum
|
|
143
|
+
|
|
144
|
+
CREATED = :created
|
|
145
|
+
ONBOARDING = :onboarding
|
|
146
|
+
ACTIVE = :active
|
|
147
|
+
REJECTED = :rejected
|
|
148
|
+
INACTIVE = :inactive
|
|
149
|
+
|
|
150
|
+
# @!method self.values
|
|
151
|
+
# @return [Array<Symbol>]
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# @see Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data#status_detail
|
|
155
|
+
class StatusDetail < Straddle::Internal::Type::BaseModel
|
|
156
|
+
# @!attribute code
|
|
157
|
+
# A machine-readable code for the specific status, useful for programmatic
|
|
158
|
+
# handling.
|
|
159
|
+
#
|
|
160
|
+
# @return [String]
|
|
161
|
+
required :code, String
|
|
162
|
+
|
|
163
|
+
# @!attribute message
|
|
164
|
+
# A human-readable message describing the current status.
|
|
165
|
+
#
|
|
166
|
+
# @return [String]
|
|
167
|
+
required :message, String
|
|
168
|
+
|
|
169
|
+
# @!attribute reason
|
|
170
|
+
# A machine-readable identifier for the specific status, useful for programmatic
|
|
171
|
+
# handling.
|
|
172
|
+
#
|
|
173
|
+
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Reason]
|
|
174
|
+
required :reason,
|
|
175
|
+
enum: -> {
|
|
176
|
+
Straddle::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Reason
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
# @!attribute source
|
|
180
|
+
# Identifies the origin of the status change (e.g., `watchtower`). This helps in
|
|
181
|
+
# tracking the cause of status updates.
|
|
182
|
+
#
|
|
183
|
+
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Source]
|
|
184
|
+
required :source,
|
|
185
|
+
enum: -> {
|
|
186
|
+
Straddle::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Source
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
# @!method initialize(code:, message:, reason:, source:)
|
|
190
|
+
# Some parameter documentations has been truncated, see
|
|
191
|
+
# {Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail} for
|
|
192
|
+
# more details.
|
|
193
|
+
#
|
|
194
|
+
# Additional details about the current status of the linked bank account.
|
|
195
|
+
#
|
|
196
|
+
# @param code [String] A machine-readable code for the specific status, useful for programmatic handlin
|
|
197
|
+
#
|
|
198
|
+
# @param message [String] A human-readable message describing the current status.
|
|
199
|
+
#
|
|
200
|
+
# @param reason [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Reason] A machine-readable identifier for the specific status, useful for programmatic h
|
|
201
|
+
#
|
|
202
|
+
# @param source [Symbol, Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail::Source] Identifies the origin of the status change (e.g., `watchtower`). This helps in t
|
|
203
|
+
|
|
204
|
+
# A machine-readable identifier for the specific status, useful for programmatic
|
|
205
|
+
# handling.
|
|
206
|
+
#
|
|
207
|
+
# @see Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail#reason
|
|
208
|
+
module Reason
|
|
209
|
+
extend Straddle::Internal::Type::Enum
|
|
210
|
+
|
|
211
|
+
UNVERIFIED = :unverified
|
|
212
|
+
IN_REVIEW = :in_review
|
|
213
|
+
PENDING = :pending
|
|
214
|
+
STUCK = :stuck
|
|
215
|
+
VERIFIED = :verified
|
|
216
|
+
FAILED_VERIFICATION = :failed_verification
|
|
217
|
+
DISABLED = :disabled
|
|
218
|
+
NEW = :new
|
|
219
|
+
|
|
220
|
+
# @!method self.values
|
|
221
|
+
# @return [Array<Symbol>]
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Identifies the origin of the status change (e.g., `watchtower`). This helps in
|
|
225
|
+
# tracking the cause of status updates.
|
|
226
|
+
#
|
|
227
|
+
# @see Straddle::Models::Embed::LinkedBankAccountUnmaskV1::Data::StatusDetail#source
|
|
228
|
+
module Source
|
|
229
|
+
extend Straddle::Internal::Type::Enum
|
|
230
|
+
|
|
231
|
+
WATCHTOWER = :watchtower
|
|
232
|
+
|
|
233
|
+
# @!method self.values
|
|
234
|
+
# @return [Array<Symbol>]
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Indicates the structure of the returned content.
|
|
240
|
+
#
|
|
241
|
+
# - "object" means the `data` field contains a single JSON object.
|
|
242
|
+
# - "array" means the `data` field contains an array of objects.
|
|
243
|
+
# - "error" means the `data` field contains an error object with details of the
|
|
244
|
+
# issue.
|
|
245
|
+
# - "none" means no data is returned.
|
|
246
|
+
#
|
|
247
|
+
# @see Straddle::Models::Embed::LinkedBankAccountUnmaskV1#response_type
|
|
248
|
+
module ResponseType
|
|
249
|
+
extend Straddle::Internal::Type::Enum
|
|
250
|
+
|
|
251
|
+
OBJECT = :object
|
|
252
|
+
ARRAY = :array
|
|
253
|
+
ERROR = :error
|
|
254
|
+
NONE = :none
|
|
255
|
+
|
|
256
|
+
# @!method self.values
|
|
257
|
+
# @return [Array<Symbol>]
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Straddle
|
|
4
|
+
module Models
|
|
5
|
+
module Embed
|
|
6
|
+
# @see Straddle::Resources::Embed::LinkedBankAccounts#update
|
|
7
|
+
class LinkedBankAccountUpdateParams < Straddle::Internal::Type::BaseModel
|
|
8
|
+
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Straddle::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute bank_account
|
|
12
|
+
#
|
|
13
|
+
# @return [Straddle::Models::Embed::LinkedBankAccountUpdateParams::BankAccount]
|
|
14
|
+
required :bank_account, -> { Straddle::Embed::LinkedBankAccountUpdateParams::BankAccount }
|
|
15
|
+
|
|
16
|
+
# @!attribute metadata
|
|
17
|
+
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
18
|
+
# information about the linked bank account in a structured format.
|
|
19
|
+
#
|
|
20
|
+
# @return [Hash{Symbol=>String, nil}, nil]
|
|
21
|
+
optional :metadata, Straddle::Internal::Type::HashOf[String, nil?: true], nil?: true
|
|
22
|
+
|
|
23
|
+
# @!attribute correlation_id
|
|
24
|
+
#
|
|
25
|
+
# @return [String, nil]
|
|
26
|
+
optional :correlation_id, String
|
|
27
|
+
|
|
28
|
+
# @!attribute request_id
|
|
29
|
+
#
|
|
30
|
+
# @return [String, nil]
|
|
31
|
+
optional :request_id, String
|
|
32
|
+
|
|
33
|
+
# @!method initialize(bank_account:, metadata: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
34
|
+
# Some parameter documentations has been truncated, see
|
|
35
|
+
# {Straddle::Models::Embed::LinkedBankAccountUpdateParams} for more details.
|
|
36
|
+
#
|
|
37
|
+
# @param bank_account [Straddle::Models::Embed::LinkedBankAccountUpdateParams::BankAccount]
|
|
38
|
+
#
|
|
39
|
+
# @param metadata [Hash{Symbol=>String, nil}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
40
|
+
#
|
|
41
|
+
# @param correlation_id [String]
|
|
42
|
+
#
|
|
43
|
+
# @param request_id [String]
|
|
44
|
+
#
|
|
45
|
+
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
46
|
+
|
|
47
|
+
class BankAccount < Straddle::Internal::Type::BaseModel
|
|
48
|
+
# @!attribute account_holder
|
|
49
|
+
# The name of the account holder as it appears on the bank account. Typically,
|
|
50
|
+
# this is the legal name of the business associated with the account.
|
|
51
|
+
#
|
|
52
|
+
# @return [String]
|
|
53
|
+
required :account_holder, String
|
|
54
|
+
|
|
55
|
+
# @!attribute account_number
|
|
56
|
+
# The bank account number.
|
|
57
|
+
#
|
|
58
|
+
# @return [String]
|
|
59
|
+
required :account_number, String
|
|
60
|
+
|
|
61
|
+
# @!attribute routing_number
|
|
62
|
+
# The routing number of the bank account.
|
|
63
|
+
#
|
|
64
|
+
# @return [String]
|
|
65
|
+
required :routing_number, String
|
|
66
|
+
|
|
67
|
+
# @!method initialize(account_holder:, account_number:, routing_number:)
|
|
68
|
+
# Some parameter documentations has been truncated, see
|
|
69
|
+
# {Straddle::Models::Embed::LinkedBankAccountUpdateParams::BankAccount} for more
|
|
70
|
+
# details.
|
|
71
|
+
#
|
|
72
|
+
# @param account_holder [String] The name of the account holder as it appears on the bank account. Typically, thi
|
|
73
|
+
#
|
|
74
|
+
# @param account_number [String] The bank account number.
|
|
75
|
+
#
|
|
76
|
+
# @param routing_number [String] The routing number of the bank account.
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Straddle
|
|
4
|
+
module Models
|
|
5
|
+
module Embed
|
|
6
|
+
# @see Straddle::Resources::Embed::LinkedBankAccounts#create
|
|
7
|
+
class LinkedBankAccountV1 < Straddle::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute data
|
|
9
|
+
#
|
|
10
|
+
# @return [Straddle::Models::Embed::LinkedBankAccountV1::Data]
|
|
11
|
+
required :data, -> { Straddle::Embed::LinkedBankAccountV1::Data }
|
|
12
|
+
|
|
13
|
+
# @!attribute meta
|
|
14
|
+
# Metadata about the API request, including an identifier and timestamp.
|
|
15
|
+
#
|
|
16
|
+
# @return [Straddle::Models::ResponseMetadata]
|
|
17
|
+
required :meta, -> { Straddle::ResponseMetadata }
|
|
18
|
+
|
|
19
|
+
# @!attribute response_type
|
|
20
|
+
# Indicates the structure of the returned content.
|
|
21
|
+
#
|
|
22
|
+
# - "object" means the `data` field contains a single JSON object.
|
|
23
|
+
# - "array" means the `data` field contains an array of objects.
|
|
24
|
+
# - "error" means the `data` field contains an error object with details of the
|
|
25
|
+
# issue.
|
|
26
|
+
# - "none" means no data is returned.
|
|
27
|
+
#
|
|
28
|
+
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountV1::ResponseType]
|
|
29
|
+
required :response_type, enum: -> { Straddle::Embed::LinkedBankAccountV1::ResponseType }
|
|
30
|
+
|
|
31
|
+
# @!method initialize(data:, meta:, response_type:)
|
|
32
|
+
# Some parameter documentations has been truncated, see
|
|
33
|
+
# {Straddle::Models::Embed::LinkedBankAccountV1} for more details.
|
|
34
|
+
#
|
|
35
|
+
# @param data [Straddle::Models::Embed::LinkedBankAccountV1::Data]
|
|
36
|
+
#
|
|
37
|
+
# @param meta [Straddle::Models::ResponseMetadata] Metadata about the API request, including an identifier and timestamp.
|
|
38
|
+
#
|
|
39
|
+
# @param response_type [Symbol, Straddle::Models::Embed::LinkedBankAccountV1::ResponseType] Indicates the structure of the returned content.
|
|
40
|
+
|
|
41
|
+
# @see Straddle::Models::Embed::LinkedBankAccountV1#data
|
|
42
|
+
class Data < Straddle::Internal::Type::BaseModel
|
|
43
|
+
# @!attribute id
|
|
44
|
+
# Unique identifier for the linked bank account.
|
|
45
|
+
#
|
|
46
|
+
# @return [String]
|
|
47
|
+
required :id, String
|
|
48
|
+
|
|
49
|
+
# @!attribute account_id
|
|
50
|
+
# The unique identifier of the Straddle account related to this bank account.
|
|
51
|
+
#
|
|
52
|
+
# @return [String, nil]
|
|
53
|
+
required :account_id, String, nil?: true
|
|
54
|
+
|
|
55
|
+
# @!attribute bank_account
|
|
56
|
+
#
|
|
57
|
+
# @return [Straddle::Models::Embed::LinkedBankAccountV1::Data::BankAccount]
|
|
58
|
+
required :bank_account, -> { Straddle::Embed::LinkedBankAccountV1::Data::BankAccount }
|
|
59
|
+
|
|
60
|
+
# @!attribute created_at
|
|
61
|
+
# Timestamp of when the bank account object was created.
|
|
62
|
+
#
|
|
63
|
+
# @return [Time]
|
|
64
|
+
required :created_at, Time
|
|
65
|
+
|
|
66
|
+
# @!attribute status
|
|
67
|
+
# The current status of the linked bank account.
|
|
68
|
+
#
|
|
69
|
+
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountV1::Data::Status]
|
|
70
|
+
required :status, enum: -> { Straddle::Embed::LinkedBankAccountV1::Data::Status }
|
|
71
|
+
|
|
72
|
+
# @!attribute status_detail
|
|
73
|
+
#
|
|
74
|
+
# @return [Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail]
|
|
75
|
+
required :status_detail, -> { Straddle::Embed::LinkedBankAccountV1::Data::StatusDetail }
|
|
76
|
+
|
|
77
|
+
# @!attribute updated_at
|
|
78
|
+
# Timestamp of the most recent update to the linked bank account.
|
|
79
|
+
#
|
|
80
|
+
# @return [Time]
|
|
81
|
+
required :updated_at, Time
|
|
82
|
+
|
|
83
|
+
# @!attribute metadata
|
|
84
|
+
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
85
|
+
# information about the linked bank account in a structured format.
|
|
86
|
+
#
|
|
87
|
+
# @return [Hash{Symbol=>String, nil}, nil]
|
|
88
|
+
optional :metadata, Straddle::Internal::Type::HashOf[String, nil?: true], nil?: true
|
|
89
|
+
|
|
90
|
+
# @!attribute platform_id
|
|
91
|
+
# The unique identifier of the Straddle Platform relatd to this bank account.
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :platform_id, String, nil?: true
|
|
95
|
+
|
|
96
|
+
# @!method initialize(id:, account_id:, bank_account:, created_at:, status:, status_detail:, updated_at:, metadata: nil, platform_id: nil)
|
|
97
|
+
# Some parameter documentations has been truncated, see
|
|
98
|
+
# {Straddle::Models::Embed::LinkedBankAccountV1::Data} for more details.
|
|
99
|
+
#
|
|
100
|
+
# @param id [String] Unique identifier for the linked bank account.
|
|
101
|
+
#
|
|
102
|
+
# @param account_id [String, nil] The unique identifier of the Straddle account related to this bank account.
|
|
103
|
+
#
|
|
104
|
+
# @param bank_account [Straddle::Models::Embed::LinkedBankAccountV1::Data::BankAccount]
|
|
105
|
+
#
|
|
106
|
+
# @param created_at [Time] Timestamp of when the bank account object was created.
|
|
107
|
+
#
|
|
108
|
+
# @param status [Symbol, Straddle::Models::Embed::LinkedBankAccountV1::Data::Status] The current status of the linked bank account.
|
|
109
|
+
#
|
|
110
|
+
# @param status_detail [Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail]
|
|
111
|
+
#
|
|
112
|
+
# @param updated_at [Time] Timestamp of the most recent update to the linked bank account.
|
|
113
|
+
#
|
|
114
|
+
# @param metadata [Hash{Symbol=>String, nil}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
115
|
+
#
|
|
116
|
+
# @param platform_id [String, nil] The unique identifier of the Straddle Platform relatd to this bank account.
|
|
117
|
+
|
|
118
|
+
# @see Straddle::Models::Embed::LinkedBankAccountV1::Data#bank_account
|
|
119
|
+
class BankAccount < Straddle::Internal::Type::BaseModel
|
|
120
|
+
# @!attribute account_holder
|
|
121
|
+
#
|
|
122
|
+
# @return [String]
|
|
123
|
+
required :account_holder, String
|
|
124
|
+
|
|
125
|
+
# @!attribute account_mask
|
|
126
|
+
#
|
|
127
|
+
# @return [String]
|
|
128
|
+
required :account_mask, String
|
|
129
|
+
|
|
130
|
+
# @!attribute institution_name
|
|
131
|
+
#
|
|
132
|
+
# @return [String]
|
|
133
|
+
required :institution_name, String
|
|
134
|
+
|
|
135
|
+
# @!attribute routing_number
|
|
136
|
+
#
|
|
137
|
+
# @return [String]
|
|
138
|
+
required :routing_number, String
|
|
139
|
+
|
|
140
|
+
# @!method initialize(account_holder:, account_mask:, institution_name:, routing_number:)
|
|
141
|
+
# @param account_holder [String]
|
|
142
|
+
# @param account_mask [String]
|
|
143
|
+
# @param institution_name [String]
|
|
144
|
+
# @param routing_number [String]
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# The current status of the linked bank account.
|
|
148
|
+
#
|
|
149
|
+
# @see Straddle::Models::Embed::LinkedBankAccountV1::Data#status
|
|
150
|
+
module Status
|
|
151
|
+
extend Straddle::Internal::Type::Enum
|
|
152
|
+
|
|
153
|
+
CREATED = :created
|
|
154
|
+
ONBOARDING = :onboarding
|
|
155
|
+
ACTIVE = :active
|
|
156
|
+
REJECTED = :rejected
|
|
157
|
+
INACTIVE = :inactive
|
|
158
|
+
|
|
159
|
+
# @!method self.values
|
|
160
|
+
# @return [Array<Symbol>]
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# @see Straddle::Models::Embed::LinkedBankAccountV1::Data#status_detail
|
|
164
|
+
class StatusDetail < Straddle::Internal::Type::BaseModel
|
|
165
|
+
# @!attribute code
|
|
166
|
+
# A machine-readable code for the specific status, useful for programmatic
|
|
167
|
+
# handling.
|
|
168
|
+
#
|
|
169
|
+
# @return [String]
|
|
170
|
+
required :code, String
|
|
171
|
+
|
|
172
|
+
# @!attribute message
|
|
173
|
+
# A human-readable message describing the current status.
|
|
174
|
+
#
|
|
175
|
+
# @return [String]
|
|
176
|
+
required :message, String
|
|
177
|
+
|
|
178
|
+
# @!attribute reason
|
|
179
|
+
# A machine-readable identifier for the specific status, useful for programmatic
|
|
180
|
+
# handling.
|
|
181
|
+
#
|
|
182
|
+
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail::Reason]
|
|
183
|
+
required :reason, enum: -> { Straddle::Embed::LinkedBankAccountV1::Data::StatusDetail::Reason }
|
|
184
|
+
|
|
185
|
+
# @!attribute source
|
|
186
|
+
# Identifies the origin of the status change (e.g., `watchtower`). This helps in
|
|
187
|
+
# tracking the cause of status updates.
|
|
188
|
+
#
|
|
189
|
+
# @return [Symbol, Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail::Source]
|
|
190
|
+
required :source, enum: -> { Straddle::Embed::LinkedBankAccountV1::Data::StatusDetail::Source }
|
|
191
|
+
|
|
192
|
+
# @!method initialize(code:, message:, reason:, source:)
|
|
193
|
+
# Some parameter documentations has been truncated, see
|
|
194
|
+
# {Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail} for more
|
|
195
|
+
# details.
|
|
196
|
+
#
|
|
197
|
+
# @param code [String] A machine-readable code for the specific status, useful for programmatic handlin
|
|
198
|
+
#
|
|
199
|
+
# @param message [String] A human-readable message describing the current status.
|
|
200
|
+
#
|
|
201
|
+
# @param reason [Symbol, Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail::Reason] A machine-readable identifier for the specific status, useful for programmatic h
|
|
202
|
+
#
|
|
203
|
+
# @param source [Symbol, Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail::Source] Identifies the origin of the status change (e.g., `watchtower`). This helps in t
|
|
204
|
+
|
|
205
|
+
# A machine-readable identifier for the specific status, useful for programmatic
|
|
206
|
+
# handling.
|
|
207
|
+
#
|
|
208
|
+
# @see Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail#reason
|
|
209
|
+
module Reason
|
|
210
|
+
extend Straddle::Internal::Type::Enum
|
|
211
|
+
|
|
212
|
+
UNVERIFIED = :unverified
|
|
213
|
+
IN_REVIEW = :in_review
|
|
214
|
+
PENDING = :pending
|
|
215
|
+
STUCK = :stuck
|
|
216
|
+
VERIFIED = :verified
|
|
217
|
+
FAILED_VERIFICATION = :failed_verification
|
|
218
|
+
DISABLED = :disabled
|
|
219
|
+
NEW = :new
|
|
220
|
+
|
|
221
|
+
# @!method self.values
|
|
222
|
+
# @return [Array<Symbol>]
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# Identifies the origin of the status change (e.g., `watchtower`). This helps in
|
|
226
|
+
# tracking the cause of status updates.
|
|
227
|
+
#
|
|
228
|
+
# @see Straddle::Models::Embed::LinkedBankAccountV1::Data::StatusDetail#source
|
|
229
|
+
module Source
|
|
230
|
+
extend Straddle::Internal::Type::Enum
|
|
231
|
+
|
|
232
|
+
WATCHTOWER = :watchtower
|
|
233
|
+
|
|
234
|
+
# @!method self.values
|
|
235
|
+
# @return [Array<Symbol>]
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Indicates the structure of the returned content.
|
|
241
|
+
#
|
|
242
|
+
# - "object" means the `data` field contains a single JSON object.
|
|
243
|
+
# - "array" means the `data` field contains an array of objects.
|
|
244
|
+
# - "error" means the `data` field contains an error object with details of the
|
|
245
|
+
# issue.
|
|
246
|
+
# - "none" means no data is returned.
|
|
247
|
+
#
|
|
248
|
+
# @see Straddle::Models::Embed::LinkedBankAccountV1#response_type
|
|
249
|
+
module ResponseType
|
|
250
|
+
extend Straddle::Internal::Type::Enum
|
|
251
|
+
|
|
252
|
+
OBJECT = :object
|
|
253
|
+
ARRAY = :array
|
|
254
|
+
ERROR = :error
|
|
255
|
+
NONE = :none
|
|
256
|
+
|
|
257
|
+
# @!method self.values
|
|
258
|
+
# @return [Array<Symbol>]
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
263
|
+
end
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Straddle
|
|
4
|
+
module Models
|
|
5
|
+
module Embed
|
|
6
|
+
# @see Straddle::Resources::Embed::Organizations#create
|
|
7
|
+
class OrganizationCreateParams < Straddle::Internal::Type::BaseModel
|
|
8
|
+
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Straddle::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute name
|
|
12
|
+
# The name of the organization.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :name, String
|
|
16
|
+
|
|
17
|
+
# @!attribute external_id
|
|
18
|
+
# Unique identifier for the organization in your database, used for
|
|
19
|
+
# cross-referencing between Straddle and your systems.
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :external_id, String, nil?: true
|
|
23
|
+
|
|
24
|
+
# @!attribute metadata
|
|
25
|
+
# Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
26
|
+
# information about the organization in a structured format.
|
|
27
|
+
#
|
|
28
|
+
# @return [Hash{Symbol=>String, nil}, nil]
|
|
29
|
+
optional :metadata, Straddle::Internal::Type::HashOf[String, nil?: true], nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute correlation_id
|
|
32
|
+
#
|
|
33
|
+
# @return [String, nil]
|
|
34
|
+
optional :correlation_id, String
|
|
35
|
+
|
|
36
|
+
# @!attribute request_id
|
|
37
|
+
#
|
|
38
|
+
# @return [String, nil]
|
|
39
|
+
optional :request_id, String
|
|
40
|
+
|
|
41
|
+
# @!method initialize(name:, external_id: nil, metadata: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
42
|
+
# Some parameter documentations has been truncated, see
|
|
43
|
+
# {Straddle::Models::Embed::OrganizationCreateParams} for more details.
|
|
44
|
+
#
|
|
45
|
+
# @param name [String] The name of the organization.
|
|
46
|
+
#
|
|
47
|
+
# @param external_id [String, nil] Unique identifier for the organization in your database, used for cross-referenc
|
|
48
|
+
#
|
|
49
|
+
# @param metadata [Hash{Symbol=>String, nil}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
50
|
+
#
|
|
51
|
+
# @param correlation_id [String]
|
|
52
|
+
#
|
|
53
|
+
# @param request_id [String]
|
|
54
|
+
#
|
|
55
|
+
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Straddle
|
|
4
|
+
module Models
|
|
5
|
+
module Embed
|
|
6
|
+
# @see Straddle::Resources::Embed::Organizations#get
|
|
7
|
+
class OrganizationGetParams < Straddle::Internal::Type::BaseModel
|
|
8
|
+
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
|
+
include Straddle::Internal::Type::RequestParameters
|
|
10
|
+
|
|
11
|
+
# @!attribute correlation_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :correlation_id, String
|
|
15
|
+
|
|
16
|
+
# @!attribute request_id
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :request_id, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(correlation_id: nil, request_id: nil, request_options: {})
|
|
22
|
+
# @param correlation_id [String]
|
|
23
|
+
# @param request_id [String]
|
|
24
|
+
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|