straddle 0.3.0 → 0.5.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 +127 -0
- data/README.md +32 -1
- data/lib/straddle/client.rb +49 -1
- data/lib/straddle/internal/transport/base_client.rb +5 -0
- data/lib/straddle/internal/transport/pooled_net_requester.rb +13 -11
- data/lib/straddle/internal/util.rb +61 -10
- data/lib/straddle/models/bridge/link_create_paykey_response.rb +8 -0
- data/lib/straddle/models/bridge/link_create_tan_response.rb +8 -0
- data/lib/straddle/models/charge_cancel_params.rb +8 -1
- data/lib/straddle/models/charge_create_params.rb +22 -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 +190 -5
- data/lib/straddle/models/charge_update_params.rb +11 -4
- data/lib/straddle/models/charge_v1.rb +188 -5
- data/lib/straddle/models/customer_delete_params.rb +7 -1
- data/lib/straddle/models/customer_get_params.rb +7 -1
- data/lib/straddle/models/customer_unmasked_params.rb +7 -1
- data/lib/straddle/models/customer_update_params.rb +8 -1
- data/lib/straddle/models/customers/review_decision_params.rb +8 -1
- data/lib/straddle/models/customers/review_get_params.rb +7 -1
- data/lib/straddle/models/customers/review_refresh_review_params.rb +7 -1
- data/lib/straddle/models/embed/account_get_params.rb +11 -1
- data/lib/straddle/models/embed/account_list_params.rb +8 -1
- data/lib/straddle/models/embed/account_onboard_params.rb +7 -1
- data/lib/straddle/models/embed/account_paged_v1.rb +4 -0
- data/lib/straddle/models/embed/account_simulate_params.rb +7 -1
- data/lib/straddle/models/embed/account_update_params.rb +8 -1
- data/lib/straddle/models/embed/account_v1.rb +4 -0
- data/lib/straddle/models/embed/accounts/capability_request_create_params.rb +8 -1
- data/lib/straddle/models/embed/accounts/capability_request_list_params.rb +8 -1
- data/lib/straddle/models/embed/accounts/capability_request_paged_v1.rb +9 -1
- data/lib/straddle/models/embed/address_v1.rb +14 -38
- data/lib/straddle/models/embed/linked_bank_account_cancel_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_get_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_unmask_params.rb +7 -1
- data/lib/straddle/models/embed/linked_bank_account_update_params.rb +8 -1
- data/lib/straddle/models/embed/organization_get_params.rb +7 -1
- data/lib/straddle/models/embed/representative.rb +2 -2
- data/lib/straddle/models/embed/representative_create_params.rb +2 -2
- data/lib/straddle/models/embed/representative_get_params.rb +7 -1
- data/lib/straddle/models/embed/representative_paged.rb +2 -2
- data/lib/straddle/models/embed/representative_unmask_params.rb +7 -1
- data/lib/straddle/models/embed/representative_update_params.rb +10 -3
- data/lib/straddle/models/funding_event_get_params.rb +7 -1
- data/lib/straddle/models/funding_event_list_params.rb +105 -1
- data/lib/straddle/models/funding_event_summary_item_v1.rb +128 -1
- data/lib/straddle/models/funding_event_summary_paged_v1.rb +128 -1
- data/lib/straddle/models/paykey_cancel_params.rb +7 -1
- data/lib/straddle/models/paykey_get_params.rb +7 -1
- data/lib/straddle/models/paykey_list_params.rb +40 -1
- data/lib/straddle/models/paykey_reveal_params.rb +7 -1
- data/lib/straddle/models/paykey_reveal_response.rb +8 -0
- data/lib/straddle/models/paykey_summary_paged_v1.rb +19 -1
- data/lib/straddle/models/paykey_unmasked_params.rb +7 -1
- data/lib/straddle/models/paykey_unmasked_v1.rb +8 -0
- data/lib/straddle/models/paykey_update_balance_params.rb +7 -1
- data/lib/straddle/models/paykey_v1.rb +19 -1
- data/lib/straddle/models/paykeys/review_decision_params.rb +7 -1
- data/lib/straddle/models/paykeys/review_get_params.rb +7 -1
- data/lib/straddle/models/paykeys/review_get_response.rb +19 -4
- data/lib/straddle/models/paykeys/review_refresh_review_params.rb +7 -1
- data/lib/straddle/models/payment_list_params.rb +71 -1
- data/lib/straddle/models/payment_summary_paged_v1.rb +110 -4
- data/lib/straddle/models/payout_cancel_params.rb +8 -1
- data/lib/straddle/models/payout_create_params.rb +22 -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 +193 -5
- data/lib/straddle/models/payout_update_params.rb +11 -4
- data/lib/straddle/models/payout_upload_authorization_document_params.rb +57 -0
- data/lib/straddle/models/payout_v1.rb +188 -5
- data/lib/straddle/models/status_details_v1.rb +7 -0
- data/lib/straddle/models.rb +2 -0
- data/lib/straddle/resources/bridge/link.rb +12 -6
- data/lib/straddle/resources/bridge.rb +13 -1
- data/lib/straddle/resources/charges.rb +13 -8
- data/lib/straddle/resources/customers/review.rb +7 -1
- data/lib/straddle/resources/customers.rb +23 -10
- data/lib/straddle/resources/embed/accounts/capability_requests.rb +9 -4
- data/lib/straddle/resources/embed/accounts.rb +29 -15
- data/lib/straddle/resources/embed/linked_bank_accounts.rb +11 -6
- data/lib/straddle/resources/embed/organizations.rb +7 -2
- data/lib/straddle/resources/embed/representatives.rb +15 -8
- data/lib/straddle/resources/embed.rb +19 -0
- data/lib/straddle/resources/funding_events.rb +22 -3
- data/lib/straddle/resources/paykeys/review.rb +7 -2
- data/lib/straddle/resources/paykeys.rb +42 -11
- data/lib/straddle/resources/payments.rb +30 -6
- data/lib/straddle/resources/payouts.rb +60 -7
- data/lib/straddle/version.rb +1 -1
- data/lib/straddle.rb +2 -0
- data/manifest.yaml +1 -0
- data/rbi/straddle/client.rbi +34 -0
- data/rbi/straddle/internal/util.rbi +29 -1
- data/rbi/straddle/models/bridge/link_create_paykey_response.rbi +40 -0
- data/rbi/straddle/models/bridge/link_create_tan_response.rbi +40 -0
- data/rbi/straddle/models/charge_cancel_params.rbi +6 -0
- data/rbi/straddle/models/charge_create_params.rbi +29 -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 +396 -6
- data/rbi/straddle/models/charge_update_params.rbi +9 -3
- data/rbi/straddle/models/charge_v1.rbi +364 -6
- data/rbi/straddle/models/customer_delete_params.rbi +6 -0
- data/rbi/straddle/models/customer_get_params.rbi +6 -0
- data/rbi/straddle/models/customer_unmasked_params.rbi +6 -0
- data/rbi/straddle/models/customer_update_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_decision_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_get_params.rbi +6 -0
- data/rbi/straddle/models/customers/review_refresh_review_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_get_params.rbi +13 -1
- data/rbi/straddle/models/embed/account_list_params.rbi +9 -0
- data/rbi/straddle/models/embed/account_onboard_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_paged_v1.rbi +20 -0
- data/rbi/straddle/models/embed/account_simulate_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_update_params.rbi +6 -0
- data/rbi/straddle/models/embed/account_v1.rbi +20 -0
- data/rbi/straddle/models/embed/accounts/capability_request_create_params.rbi +6 -0
- data/rbi/straddle/models/embed/accounts/capability_request_list_params.rbi +6 -0
- data/rbi/straddle/models/embed/accounts/capability_request_paged_v1.rbi +8 -0
- data/rbi/straddle/models/embed/address_v1.rbi +18 -42
- data/rbi/straddle/models/embed/linked_bank_account_cancel_params.rbi +6 -0
- data/rbi/straddle/models/embed/linked_bank_account_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/linked_bank_account_unmask_params.rbi +11 -1
- data/rbi/straddle/models/embed/linked_bank_account_update_params.rbi +6 -0
- data/rbi/straddle/models/embed/organization_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative.rbi +2 -2
- data/rbi/straddle/models/embed/representative_create_params.rbi +2 -2
- data/rbi/straddle/models/embed/representative_get_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative_paged.rbi +2 -2
- data/rbi/straddle/models/embed/representative_unmask_params.rbi +11 -1
- data/rbi/straddle/models/embed/representative_update_params.rbi +8 -2
- data/rbi/straddle/models/funding_event_get_params.rbi +6 -0
- data/rbi/straddle/models/funding_event_list_params.rbi +333 -0
- data/rbi/straddle/models/funding_event_summary_item_v1.rbi +392 -0
- data/rbi/straddle/models/funding_event_summary_paged_v1.rbi +393 -0
- data/rbi/straddle/models/paykey_cancel_params.rbi +6 -0
- data/rbi/straddle/models/paykey_get_params.rbi +6 -0
- data/rbi/straddle/models/paykey_list_params.rbi +52 -0
- data/rbi/straddle/models/paykey_reveal_params.rbi +6 -0
- data/rbi/straddle/models/paykey_reveal_response.rbi +40 -0
- data/rbi/straddle/models/paykey_summary_paged_v1.rbi +55 -3
- data/rbi/straddle/models/paykey_unmasked_params.rbi +6 -0
- data/rbi/straddle/models/paykey_unmasked_v1.rbi +40 -0
- data/rbi/straddle/models/paykey_update_balance_params.rbi +6 -0
- data/rbi/straddle/models/paykey_v1.rbi +52 -3
- data/rbi/straddle/models/paykeys/review_decision_params.rbi +6 -0
- data/rbi/straddle/models/paykeys/review_get_params.rbi +6 -0
- data/rbi/straddle/models/paykeys/review_get_response.rbi +55 -18
- data/rbi/straddle/models/paykeys/review_refresh_review_params.rbi +6 -0
- data/rbi/straddle/models/payment_list_params.rbi +126 -0
- data/rbi/straddle/models/payment_summary_paged_v1.rbi +214 -6
- data/rbi/straddle/models/payout_cancel_params.rbi +6 -0
- data/rbi/straddle/models/payout_create_params.rbi +29 -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 +393 -3
- data/rbi/straddle/models/payout_update_params.rbi +9 -3
- data/rbi/straddle/models/payout_upload_authorization_document_params.rbi +88 -0
- data/rbi/straddle/models/payout_v1.rbi +361 -3
- data/rbi/straddle/models/status_details_v1.rbi +29 -0
- data/rbi/straddle/models.rbi +3 -0
- data/rbi/straddle/resources/bridge/link.rbi +12 -6
- data/rbi/straddle/resources/bridge.rbi +13 -1
- data/rbi/straddle/resources/charges.rbi +13 -8
- data/rbi/straddle/resources/customers/review.rbi +7 -1
- data/rbi/straddle/resources/customers.rbi +20 -8
- data/rbi/straddle/resources/embed/accounts/capability_requests.rbi +6 -2
- data/rbi/straddle/resources/embed/accounts.rbi +22 -10
- data/rbi/straddle/resources/embed/linked_bank_accounts.rbi +8 -4
- data/rbi/straddle/resources/embed/organizations.rbi +4 -0
- data/rbi/straddle/resources/embed/representatives.rbi +12 -6
- data/rbi/straddle/resources/embed.rbi +19 -0
- data/rbi/straddle/resources/funding_events.rbi +27 -0
- data/rbi/straddle/resources/paykeys/review.rbi +7 -2
- data/rbi/straddle/resources/paykeys.rbi +32 -8
- data/rbi/straddle/resources/payments.rbi +28 -3
- data/rbi/straddle/resources/payouts.rbi +44 -7
- data/sig/straddle/internal/util.rbs +14 -0
- data/sig/straddle/models/bridge/link_create_paykey_response.rbs +17 -1
- data/sig/straddle/models/bridge/link_create_tan_response.rbs +17 -1
- data/sig/straddle/models/charge_cancel_params.rbs +5 -0
- data/sig/straddle/models/charge_create_params.rbs +18 -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 +166 -7
- data/sig/straddle/models/charge_update_params.rbs +9 -4
- data/sig/straddle/models/charge_v1.rbs +166 -7
- data/sig/straddle/models/customer_delete_params.rbs +5 -0
- data/sig/straddle/models/customer_get_params.rbs +5 -0
- data/sig/straddle/models/customer_unmasked_params.rbs +5 -0
- data/sig/straddle/models/customer_update_params.rbs +5 -0
- data/sig/straddle/models/customers/review_decision_params.rbs +5 -0
- data/sig/straddle/models/customers/review_get_params.rbs +5 -0
- data/sig/straddle/models/customers/review_refresh_review_params.rbs +5 -0
- data/sig/straddle/models/embed/account_get_params.rbs +5 -1
- data/sig/straddle/models/embed/account_list_params.rbs +7 -0
- data/sig/straddle/models/embed/account_onboard_params.rbs +5 -0
- data/sig/straddle/models/embed/account_paged_v1.rbs +18 -2
- data/sig/straddle/models/embed/account_simulate_params.rbs +5 -0
- data/sig/straddle/models/embed/account_update_params.rbs +5 -0
- data/sig/straddle/models/embed/account_v1.rbs +18 -2
- data/sig/straddle/models/embed/accounts/capability_request_create_params.rbs +5 -0
- data/sig/straddle/models/embed/accounts/capability_request_list_params.rbs +5 -0
- data/sig/straddle/models/embed/accounts/capability_request_paged_v1.rbs +5 -0
- data/sig/straddle/models/embed/address_v1.rbs +12 -27
- data/sig/straddle/models/embed/linked_bank_account_cancel_params.rbs +10 -1
- data/sig/straddle/models/embed/linked_bank_account_get_params.rbs +9 -1
- data/sig/straddle/models/embed/linked_bank_account_unmask_params.rbs +9 -1
- data/sig/straddle/models/embed/linked_bank_account_update_params.rbs +5 -0
- data/sig/straddle/models/embed/organization_get_params.rbs +5 -1
- data/sig/straddle/models/embed/representative_get_params.rbs +9 -1
- data/sig/straddle/models/embed/representative_unmask_params.rbs +9 -1
- data/sig/straddle/models/embed/representative_update_params.rbs +5 -0
- data/sig/straddle/models/funding_event_get_params.rbs +5 -0
- data/sig/straddle/models/funding_event_list_params.rbs +125 -0
- data/sig/straddle/models/funding_event_summary_item_v1.rbs +164 -0
- data/sig/straddle/models/funding_event_summary_paged_v1.rbs +164 -0
- data/sig/straddle/models/paykey_cancel_params.rbs +5 -0
- data/sig/straddle/models/paykey_get_params.rbs +5 -0
- data/sig/straddle/models/paykey_list_params.rbs +31 -1
- data/sig/straddle/models/paykey_reveal_params.rbs +5 -0
- data/sig/straddle/models/paykey_reveal_response.rbs +17 -1
- data/sig/straddle/models/paykey_summary_paged_v1.rbs +25 -4
- data/sig/straddle/models/paykey_unmasked_params.rbs +5 -0
- data/sig/straddle/models/paykey_unmasked_v1.rbs +17 -1
- data/sig/straddle/models/paykey_update_balance_params.rbs +5 -0
- data/sig/straddle/models/paykey_v1.rbs +25 -4
- data/sig/straddle/models/paykeys/review_decision_params.rbs +5 -0
- data/sig/straddle/models/paykeys/review_get_params.rbs +5 -0
- data/sig/straddle/models/paykeys/review_get_response.rbs +28 -10
- data/sig/straddle/models/paykeys/review_refresh_review_params.rbs +5 -0
- data/sig/straddle/models/payment_list_params.rbs +80 -2
- data/sig/straddle/models/payment_summary_paged_v1.rbs +89 -7
- data/sig/straddle/models/payout_cancel_params.rbs +5 -0
- data/sig/straddle/models/payout_create_params.rbs +18 -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 +163 -4
- data/sig/straddle/models/payout_update_params.rbs +9 -4
- data/sig/straddle/models/payout_upload_authorization_document_params.rbs +59 -0
- data/sig/straddle/models/payout_v1.rbs +163 -4
- data/sig/straddle/models/status_details_v1.rbs +14 -0
- data/sig/straddle/models.rbs +2 -0
- data/sig/straddle/resources/charges.rbs +2 -2
- data/sig/straddle/resources/embed/accounts.rbs +1 -0
- data/sig/straddle/resources/funding_events.rbs +4 -0
- data/sig/straddle/resources/paykeys.rbs +4 -0
- data/sig/straddle/resources/payments.rbs +7 -0
- data/sig/straddle/resources/payouts.rbs +12 -2
- metadata +19 -2
|
@@ -81,8 +81,8 @@ module Straddle
|
|
|
81
81
|
# @!attribute description
|
|
82
82
|
# An arbitrary description for the charge.
|
|
83
83
|
#
|
|
84
|
-
# @return [String]
|
|
85
|
-
required :description, String
|
|
84
|
+
# @return [String, nil]
|
|
85
|
+
required :description, String, nil?: true
|
|
86
86
|
|
|
87
87
|
# @!attribute device
|
|
88
88
|
# Information about the device used when the customer authorized the payment.
|
|
@@ -103,6 +103,24 @@ module Straddle
|
|
|
103
103
|
# @return [Array<String>]
|
|
104
104
|
required :funding_ids, Straddle::Internal::Type::ArrayOf[String]
|
|
105
105
|
|
|
106
|
+
# @!attribute has_refund
|
|
107
|
+
# Has the charge been refunded by an associated payout.
|
|
108
|
+
#
|
|
109
|
+
# @return [Boolean]
|
|
110
|
+
required :has_refund, Straddle::Internal::Type::Boolean
|
|
111
|
+
|
|
112
|
+
# @!attribute has_resubmit
|
|
113
|
+
# Has the charge been resubmitted.
|
|
114
|
+
#
|
|
115
|
+
# @return [Boolean]
|
|
116
|
+
required :has_resubmit, Straddle::Internal::Type::Boolean
|
|
117
|
+
|
|
118
|
+
# @!attribute is_resubmit
|
|
119
|
+
# Is the charge a resubmit of an original charge.
|
|
120
|
+
#
|
|
121
|
+
# @return [Boolean]
|
|
122
|
+
required :is_resubmit, Straddle::Internal::Type::Boolean
|
|
123
|
+
|
|
106
124
|
# @!attribute paykey
|
|
107
125
|
# Value of the `paykey` used for the charge.
|
|
108
126
|
#
|
|
@@ -135,6 +153,12 @@ module Straddle
|
|
|
135
153
|
required :status_history,
|
|
136
154
|
-> { Straddle::Internal::Type::ArrayOf[Straddle::ChargeV1::Data::StatusHistory] }
|
|
137
155
|
|
|
156
|
+
# @!attribute trace_ids
|
|
157
|
+
# Trace Ids.
|
|
158
|
+
#
|
|
159
|
+
# @return [Hash{Symbol=>String}]
|
|
160
|
+
required :trace_ids, Straddle::Internal::Type::HashOf[String]
|
|
161
|
+
|
|
138
162
|
# @!attribute updated_at
|
|
139
163
|
# Timestamp of when the charge was last updated.
|
|
140
164
|
#
|
|
@@ -147,6 +171,15 @@ module Straddle
|
|
|
147
171
|
# @return [Straddle::Models::CustomerDetailsV1, nil]
|
|
148
172
|
optional :customer_details, -> { Straddle::CustomerDetailsV1 }
|
|
149
173
|
|
|
174
|
+
# @!attribute documents
|
|
175
|
+
# Documents uploaded for this charge (e.g. proof of authorization), in the order
|
|
176
|
+
# they were uploaded.
|
|
177
|
+
#
|
|
178
|
+
# @return [Array<Straddle::Models::ChargeV1::Data::Document>, nil]
|
|
179
|
+
optional :documents,
|
|
180
|
+
-> { Straddle::Internal::Type::ArrayOf[Straddle::ChargeV1::Data::Document] },
|
|
181
|
+
nil?: true
|
|
182
|
+
|
|
150
183
|
# @!attribute effective_at
|
|
151
184
|
# Timestamp of when the charge was effective in the customer's bank account,
|
|
152
185
|
# otherwise known as the date on which the customer is debited.
|
|
@@ -180,7 +213,15 @@ module Straddle
|
|
|
180
213
|
# @return [Time, nil]
|
|
181
214
|
optional :processed_at, Time, nil?: true
|
|
182
215
|
|
|
183
|
-
# @!
|
|
216
|
+
# @!attribute related_payments
|
|
217
|
+
# Related payments.
|
|
218
|
+
#
|
|
219
|
+
# @return [Array<Straddle::Models::ChargeV1::Data::RelatedPayment>, nil]
|
|
220
|
+
optional :related_payments,
|
|
221
|
+
-> { Straddle::Internal::Type::ArrayOf[Straddle::ChargeV1::Data::RelatedPayment] },
|
|
222
|
+
nil?: true
|
|
223
|
+
|
|
224
|
+
# @!method initialize(id:, amount:, config:, consent_type:, created_at:, currency:, description:, device:, external_id:, funding_ids:, has_refund:, has_resubmit:, is_resubmit:, paykey:, payment_date:, status:, status_details:, status_history:, trace_ids:, updated_at:, customer_details: nil, documents: nil, effective_at: nil, metadata: nil, paykey_details: nil, payment_rail: nil, processed_at: nil, related_payments: nil)
|
|
184
225
|
# Some parameter documentations has been truncated, see
|
|
185
226
|
# {Straddle::Models::ChargeV1::Data} for more details.
|
|
186
227
|
#
|
|
@@ -196,7 +237,7 @@ module Straddle
|
|
|
196
237
|
#
|
|
197
238
|
# @param currency [String] The currency of the charge. Only USD is supported.
|
|
198
239
|
#
|
|
199
|
-
# @param description [String] An arbitrary description for the charge.
|
|
240
|
+
# @param description [String, nil] An arbitrary description for the charge.
|
|
200
241
|
#
|
|
201
242
|
# @param device [Straddle::Models::DeviceInfoV1] Information about the device used when the customer authorized the payment.
|
|
202
243
|
#
|
|
@@ -204,6 +245,12 @@ module Straddle
|
|
|
204
245
|
#
|
|
205
246
|
# @param funding_ids [Array<String>] Funding Ids
|
|
206
247
|
#
|
|
248
|
+
# @param has_refund [Boolean] Has the charge been refunded by an associated payout.
|
|
249
|
+
#
|
|
250
|
+
# @param has_resubmit [Boolean] Has the charge been resubmitted.
|
|
251
|
+
#
|
|
252
|
+
# @param is_resubmit [Boolean] Is the charge a resubmit of an original charge.
|
|
253
|
+
#
|
|
207
254
|
# @param paykey [String] Value of the `paykey` used for the charge.
|
|
208
255
|
#
|
|
209
256
|
# @param payment_date [Date] The desired date on which the payment should be occur. For charges, this means t
|
|
@@ -214,10 +261,14 @@ module Straddle
|
|
|
214
261
|
#
|
|
215
262
|
# @param status_history [Array<Straddle::Models::ChargeV1::Data::StatusHistory>] Status history.
|
|
216
263
|
#
|
|
264
|
+
# @param trace_ids [Hash{Symbol=>String}] Trace Ids.
|
|
265
|
+
#
|
|
217
266
|
# @param updated_at [Time, nil] Timestamp of when the charge was last updated.
|
|
218
267
|
#
|
|
219
268
|
# @param customer_details [Straddle::Models::CustomerDetailsV1] Information about the customer associated with the charge.
|
|
220
269
|
#
|
|
270
|
+
# @param documents [Array<Straddle::Models::ChargeV1::Data::Document>, nil] Documents uploaded for this charge (e.g. proof of authorization), in the order t
|
|
271
|
+
#
|
|
221
272
|
# @param effective_at [Time, nil] Timestamp of when the charge was effective in the customer's bank account, other
|
|
222
273
|
#
|
|
223
274
|
# @param metadata [Hash{Symbol=>String}, nil] Up to 20 additional user-defined key-value pairs. Useful for storing additional
|
|
@@ -227,6 +278,8 @@ module Straddle
|
|
|
227
278
|
# @param payment_rail [Symbol, Straddle::Models::ChargeV1::Data::PaymentRail] The payment rail that the charge will be processed through.
|
|
228
279
|
#
|
|
229
280
|
# @param processed_at [Time, nil] Timestamp of when the charge was processed by Straddle and originated to the pay
|
|
281
|
+
#
|
|
282
|
+
# @param related_payments [Array<Straddle::Models::ChargeV1::Data::RelatedPayment>, nil] Related payments.
|
|
230
283
|
|
|
231
284
|
# @see Straddle::Models::ChargeV1::Data#config
|
|
232
285
|
class Config < Straddle::Internal::Type::BaseModel
|
|
@@ -236,17 +289,33 @@ module Straddle
|
|
|
236
289
|
# @return [Symbol, Straddle::Models::ChargeV1::Data::Config::BalanceCheck]
|
|
237
290
|
required :balance_check, enum: -> { Straddle::ChargeV1::Data::Config::BalanceCheck }
|
|
238
291
|
|
|
292
|
+
# @!attribute auto_hold
|
|
293
|
+
# Defines whether to automatically place this charge on hold after being created.
|
|
294
|
+
#
|
|
295
|
+
# @return [Boolean, nil]
|
|
296
|
+
optional :auto_hold, Straddle::Internal::Type::Boolean, nil?: true
|
|
297
|
+
|
|
298
|
+
# @!attribute auto_hold_message
|
|
299
|
+
# The reason the charge is being automatically held on creation.
|
|
300
|
+
#
|
|
301
|
+
# @return [String, nil]
|
|
302
|
+
optional :auto_hold_message, String, nil?: true
|
|
303
|
+
|
|
239
304
|
# @!attribute sandbox_outcome
|
|
240
305
|
# Payment will simulate processing if not Standard.
|
|
241
306
|
#
|
|
242
307
|
# @return [Symbol, Straddle::Models::ChargeV1::Data::Config::SandboxOutcome, nil]
|
|
243
308
|
optional :sandbox_outcome, enum: -> { Straddle::ChargeV1::Data::Config::SandboxOutcome }
|
|
244
309
|
|
|
245
|
-
# @!method initialize(balance_check:, sandbox_outcome: nil)
|
|
310
|
+
# @!method initialize(balance_check:, auto_hold: nil, auto_hold_message: nil, sandbox_outcome: nil)
|
|
246
311
|
# Configuration options for the charge.
|
|
247
312
|
#
|
|
248
313
|
# @param balance_check [Symbol, Straddle::Models::ChargeV1::Data::Config::BalanceCheck] Defines whether to check the customer's balance before processing the charge.
|
|
249
314
|
#
|
|
315
|
+
# @param auto_hold [Boolean, nil] Defines whether to automatically place this charge on hold after being created.
|
|
316
|
+
#
|
|
317
|
+
# @param auto_hold_message [String, nil] The reason the charge is being automatically held on creation.
|
|
318
|
+
#
|
|
250
319
|
# @param sandbox_outcome [Symbol, Straddle::Models::ChargeV1::Data::Config::SandboxOutcome] Payment will simulate processing if not Standard.
|
|
251
320
|
|
|
252
321
|
# Defines whether to check the customer's balance before processing the charge.
|
|
@@ -280,6 +349,8 @@ module Straddle
|
|
|
280
349
|
REVERSED_CUSTOMER_DISPUTE = :reversed_customer_dispute
|
|
281
350
|
FAILED_CLOSED_BANK_ACCOUNT = :failed_closed_bank_account
|
|
282
351
|
REVERSED_CLOSED_BANK_ACCOUNT = :reversed_closed_bank_account
|
|
352
|
+
FAILED_NOT_AUTHORIZED = :failed_not_authorized
|
|
353
|
+
REVERSED_NOT_AUTHORIZED = :reversed_not_authorized
|
|
283
354
|
|
|
284
355
|
# @!method self.values
|
|
285
356
|
# @return [Array<Symbol>]
|
|
@@ -316,6 +387,7 @@ module Straddle
|
|
|
316
387
|
PENDING = :pending
|
|
317
388
|
PAID = :paid
|
|
318
389
|
REVERSED = :reversed
|
|
390
|
+
VALIDATING = :validating
|
|
319
391
|
|
|
320
392
|
# @!method self.values
|
|
321
393
|
# @return [Array<Symbol>]
|
|
@@ -405,6 +477,13 @@ module Straddle
|
|
|
405
477
|
OK = :ok
|
|
406
478
|
OTHER_NETWORK_RETURN = :other_network_return
|
|
407
479
|
PAYOUT_REFUSED = :payout_refused
|
|
480
|
+
CANCEL_REQUEST = :cancel_request
|
|
481
|
+
FAILED_VERIFICATION = :failed_verification
|
|
482
|
+
REQUIRE_REVIEW = :require_review
|
|
483
|
+
BLOCKED_BY_SYSTEM = :blocked_by_system
|
|
484
|
+
WATCHTOWER_REVIEW = :watchtower_review
|
|
485
|
+
VALIDATING = :validating
|
|
486
|
+
AUTO_HOLD = :auto_hold
|
|
408
487
|
|
|
409
488
|
# @!method self.values
|
|
410
489
|
# @return [Array<Symbol>]
|
|
@@ -441,6 +520,59 @@ module Straddle
|
|
|
441
520
|
PENDING = :pending
|
|
442
521
|
PAID = :paid
|
|
443
522
|
REVERSED = :reversed
|
|
523
|
+
VALIDATING = :validating
|
|
524
|
+
|
|
525
|
+
# @!method self.values
|
|
526
|
+
# @return [Array<Symbol>]
|
|
527
|
+
end
|
|
528
|
+
end
|
|
529
|
+
|
|
530
|
+
class Document < Straddle::Internal::Type::BaseModel
|
|
531
|
+
# @!attribute document_id
|
|
532
|
+
# Unique identifier for this document.
|
|
533
|
+
#
|
|
534
|
+
# @return [String]
|
|
535
|
+
required :document_id, String
|
|
536
|
+
|
|
537
|
+
# @!attribute document_name
|
|
538
|
+
# The file name of this document as uploaded.
|
|
539
|
+
#
|
|
540
|
+
# @return [String]
|
|
541
|
+
required :document_name, String
|
|
542
|
+
|
|
543
|
+
# @!attribute document_size
|
|
544
|
+
# The size of this document in bytes.
|
|
545
|
+
#
|
|
546
|
+
# @return [Integer]
|
|
547
|
+
required :document_size, Integer
|
|
548
|
+
|
|
549
|
+
# @!attribute document_type
|
|
550
|
+
#
|
|
551
|
+
# @return [Symbol, Straddle::Models::ChargeV1::Data::Document::DocumentType]
|
|
552
|
+
required :document_type, enum: -> { Straddle::ChargeV1::Data::Document::DocumentType }
|
|
553
|
+
|
|
554
|
+
# @!attribute uploaded_at
|
|
555
|
+
# The UTC timestamp when this document was uploaded.
|
|
556
|
+
#
|
|
557
|
+
# @return [Time]
|
|
558
|
+
required :uploaded_at, Time
|
|
559
|
+
|
|
560
|
+
# @!method initialize(document_id:, document_name:, document_size:, document_type:, uploaded_at:)
|
|
561
|
+
# @param document_id [String] Unique identifier for this document.
|
|
562
|
+
#
|
|
563
|
+
# @param document_name [String] The file name of this document as uploaded.
|
|
564
|
+
#
|
|
565
|
+
# @param document_size [Integer] The size of this document in bytes.
|
|
566
|
+
#
|
|
567
|
+
# @param document_type [Symbol, Straddle::Models::ChargeV1::Data::Document::DocumentType]
|
|
568
|
+
#
|
|
569
|
+
# @param uploaded_at [Time] The UTC timestamp when this document was uploaded.
|
|
570
|
+
|
|
571
|
+
# @see Straddle::Models::ChargeV1::Data::Document#document_type
|
|
572
|
+
module DocumentType
|
|
573
|
+
extend Straddle::Internal::Type::Enum
|
|
574
|
+
|
|
575
|
+
PAYMENT_AUTHORIZATION = :payment_authorization
|
|
444
576
|
|
|
445
577
|
# @!method self.values
|
|
446
578
|
# @return [Array<Symbol>]
|
|
@@ -458,6 +590,57 @@ module Straddle
|
|
|
458
590
|
# @!method self.values
|
|
459
591
|
# @return [Array<Symbol>]
|
|
460
592
|
end
|
|
593
|
+
|
|
594
|
+
class RelatedPayment < Straddle::Internal::Type::BaseModel
|
|
595
|
+
# @!attribute id
|
|
596
|
+
# The ID of the related payment.
|
|
597
|
+
#
|
|
598
|
+
# @return [String]
|
|
599
|
+
required :id, String
|
|
600
|
+
|
|
601
|
+
# @!attribute payment_type
|
|
602
|
+
# The type of payment.
|
|
603
|
+
#
|
|
604
|
+
# @return [Symbol, Straddle::Models::ChargeV1::Data::RelatedPayment::PaymentType]
|
|
605
|
+
required :payment_type, enum: -> { Straddle::ChargeV1::Data::RelatedPayment::PaymentType }
|
|
606
|
+
|
|
607
|
+
# @!attribute relationship
|
|
608
|
+
#
|
|
609
|
+
# @return [Symbol, Straddle::Models::ChargeV1::Data::RelatedPayment::Relationship]
|
|
610
|
+
required :relationship, enum: -> { Straddle::ChargeV1::Data::RelatedPayment::Relationship }
|
|
611
|
+
|
|
612
|
+
# @!method initialize(id:, payment_type:, relationship:)
|
|
613
|
+
# @param id [String] The ID of the related payment.
|
|
614
|
+
#
|
|
615
|
+
# @param payment_type [Symbol, Straddle::Models::ChargeV1::Data::RelatedPayment::PaymentType] The type of payment.
|
|
616
|
+
#
|
|
617
|
+
# @param relationship [Symbol, Straddle::Models::ChargeV1::Data::RelatedPayment::Relationship]
|
|
618
|
+
|
|
619
|
+
# The type of payment.
|
|
620
|
+
#
|
|
621
|
+
# @see Straddle::Models::ChargeV1::Data::RelatedPayment#payment_type
|
|
622
|
+
module PaymentType
|
|
623
|
+
extend Straddle::Internal::Type::Enum
|
|
624
|
+
|
|
625
|
+
CHARGE = :charge
|
|
626
|
+
PAYOUT = :payout
|
|
627
|
+
|
|
628
|
+
# @!method self.values
|
|
629
|
+
# @return [Array<Symbol>]
|
|
630
|
+
end
|
|
631
|
+
|
|
632
|
+
# @see Straddle::Models::ChargeV1::Data::RelatedPayment#relationship
|
|
633
|
+
module Relationship
|
|
634
|
+
extend Straddle::Internal::Type::Enum
|
|
635
|
+
|
|
636
|
+
ORIGINAL = :original
|
|
637
|
+
RESUBMIT = :resubmit
|
|
638
|
+
REFUND = :refund
|
|
639
|
+
|
|
640
|
+
# @!method self.values
|
|
641
|
+
# @return [Array<Symbol>]
|
|
642
|
+
end
|
|
643
|
+
end
|
|
461
644
|
end
|
|
462
645
|
|
|
463
646
|
# Indicates the structure of the returned content.
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute correlation_id
|
|
11
16
|
#
|
|
12
17
|
# @return [String, nil]
|
|
@@ -27,7 +32,8 @@ module Straddle
|
|
|
27
32
|
# @return [String, nil]
|
|
28
33
|
optional :straddle_account_id, String
|
|
29
34
|
|
|
30
|
-
# @!method initialize(correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
35
|
+
# @!method initialize(id:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
36
|
+
# @param id [String]
|
|
31
37
|
# @param correlation_id [String]
|
|
32
38
|
# @param idempotency_key [String]
|
|
33
39
|
# @param request_id [String]
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute correlation_id
|
|
11
16
|
#
|
|
12
17
|
# @return [String, nil]
|
|
@@ -22,7 +27,8 @@ module Straddle
|
|
|
22
27
|
# @return [String, nil]
|
|
23
28
|
optional :straddle_account_id, String
|
|
24
29
|
|
|
25
|
-
# @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
30
|
+
# @!method initialize(id:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
31
|
+
# @param id [String]
|
|
26
32
|
# @param correlation_id [String]
|
|
27
33
|
# @param request_id [String]
|
|
28
34
|
# @param straddle_account_id [String]
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute correlation_id
|
|
11
16
|
#
|
|
12
17
|
# @return [String, nil]
|
|
@@ -22,7 +27,8 @@ module Straddle
|
|
|
22
27
|
# @return [String, nil]
|
|
23
28
|
optional :straddle_account_id, String
|
|
24
29
|
|
|
25
|
-
# @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
30
|
+
# @!method initialize(id:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
31
|
+
# @param id [String]
|
|
26
32
|
# @param correlation_id [String]
|
|
27
33
|
# @param request_id [String]
|
|
28
34
|
# @param straddle_account_id [String]
|
|
@@ -7,6 +7,11 @@ module Straddle
|
|
|
7
7
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Straddle::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
+
# @!attribute id
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
10
15
|
# @!attribute device
|
|
11
16
|
#
|
|
12
17
|
# @return [Straddle::Models::DeviceUnmaskedV1]
|
|
@@ -86,10 +91,12 @@ module Straddle
|
|
|
86
91
|
# @return [String, nil]
|
|
87
92
|
optional :straddle_account_id, String
|
|
88
93
|
|
|
89
|
-
# @!method initialize(device:, email:, name:, phone:, status:, address: nil, compliance_profile: nil, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
94
|
+
# @!method initialize(id:, device:, email:, name:, phone:, status:, address: nil, compliance_profile: nil, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
90
95
|
# Some parameter documentations has been truncated, see
|
|
91
96
|
# {Straddle::Models::CustomerUpdateParams} for more details.
|
|
92
97
|
#
|
|
98
|
+
# @param id [String]
|
|
99
|
+
#
|
|
93
100
|
# @param device [Straddle::Models::DeviceUnmaskedV1]
|
|
94
101
|
#
|
|
95
102
|
# @param email [String] The customer's email address.
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute status
|
|
12
17
|
# The final status of the customer review.
|
|
13
18
|
#
|
|
@@ -34,7 +39,9 @@ module Straddle
|
|
|
34
39
|
# @return [String, nil]
|
|
35
40
|
optional :straddle_account_id, String
|
|
36
41
|
|
|
37
|
-
# @!method initialize(status:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
42
|
+
# @!method initialize(id:, status:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
43
|
+
# @param id [String]
|
|
44
|
+
#
|
|
38
45
|
# @param status [Symbol, Straddle::Models::Customers::ReviewDecisionParams::Status] The final status of the customer review.
|
|
39
46
|
#
|
|
40
47
|
# @param correlation_id [String]
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute correlation_id
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
@@ -23,7 +28,8 @@ module Straddle
|
|
|
23
28
|
# @return [String, nil]
|
|
24
29
|
optional :straddle_account_id, String
|
|
25
30
|
|
|
26
|
-
# @!method initialize(correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
31
|
+
# @!method initialize(id:, correlation_id: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
32
|
+
# @param id [String]
|
|
27
33
|
# @param correlation_id [String]
|
|
28
34
|
# @param request_id [String]
|
|
29
35
|
# @param straddle_account_id [String]
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute correlation_id
|
|
12
17
|
#
|
|
13
18
|
# @return [String, nil]
|
|
@@ -28,7 +33,8 @@ module Straddle
|
|
|
28
33
|
# @return [String, nil]
|
|
29
34
|
optional :straddle_account_id, String
|
|
30
35
|
|
|
31
|
-
# @!method initialize(correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
36
|
+
# @!method initialize(id:, correlation_id: nil, idempotency_key: nil, request_id: nil, straddle_account_id: nil, request_options: {})
|
|
37
|
+
# @param id [String]
|
|
32
38
|
# @param correlation_id [String]
|
|
33
39
|
# @param idempotency_key [String]
|
|
34
40
|
# @param request_id [String]
|
|
@@ -8,6 +8,12 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute account_id
|
|
12
|
+
# The unique identifier of the account to retrieve.
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :account_id, String
|
|
16
|
+
|
|
11
17
|
# @!attribute correlation_id
|
|
12
18
|
#
|
|
13
19
|
# @return [String, nil]
|
|
@@ -18,9 +24,13 @@ module Straddle
|
|
|
18
24
|
# @return [String, nil]
|
|
19
25
|
optional :request_id, String
|
|
20
26
|
|
|
21
|
-
# @!method initialize(correlation_id: nil, request_id: nil, request_options: {})
|
|
27
|
+
# @!method initialize(account_id:, correlation_id: nil, request_id: nil, request_options: {})
|
|
28
|
+
# @param account_id [String] The unique identifier of the account to retrieve.
|
|
29
|
+
#
|
|
22
30
|
# @param correlation_id [String]
|
|
31
|
+
#
|
|
23
32
|
# @param request_id [String]
|
|
33
|
+
#
|
|
24
34
|
# @param request_options [Straddle::RequestOptions, Hash{Symbol=>Object}]
|
|
25
35
|
end
|
|
26
36
|
end
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute external_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String, nil]
|
|
14
|
+
optional :external_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute page_number
|
|
12
17
|
# Results page number. Starts at page 1. Default value: 1
|
|
13
18
|
#
|
|
@@ -57,7 +62,9 @@ module Straddle
|
|
|
57
62
|
# @return [String, nil]
|
|
58
63
|
optional :request_id, String
|
|
59
64
|
|
|
60
|
-
# @!method initialize(page_number: nil, page_size: nil, search_text: nil, sort_by: nil, sort_order: nil, status: nil, type: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
65
|
+
# @!method initialize(external_id: nil, page_number: nil, page_size: nil, search_text: nil, sort_by: nil, sort_order: nil, status: nil, type: nil, correlation_id: nil, request_id: nil, request_options: {})
|
|
66
|
+
# @param external_id [String]
|
|
67
|
+
#
|
|
61
68
|
# @param page_number [Integer] Results page number. Starts at page 1. Default value: 1
|
|
62
69
|
#
|
|
63
70
|
# @param page_size [Integer] Page size. Default value: 100. Max value: 1000
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute account_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :account_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute terms_of_service
|
|
12
17
|
#
|
|
13
18
|
# @return [Straddle::Models::Embed::TermsOfServiceV1]
|
|
@@ -28,7 +33,8 @@ module Straddle
|
|
|
28
33
|
# @return [String, nil]
|
|
29
34
|
optional :request_id, String
|
|
30
35
|
|
|
31
|
-
# @!method initialize(terms_of_service:, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
36
|
+
# @!method initialize(account_id:, terms_of_service:, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
37
|
+
# @param account_id [String]
|
|
32
38
|
# @param terms_of_service [Straddle::Models::Embed::TermsOfServiceV1]
|
|
33
39
|
# @param correlation_id [String]
|
|
34
40
|
# @param idempotency_key [String]
|
|
@@ -439,6 +439,8 @@ module Straddle
|
|
|
439
439
|
ONE_DAY = :one_day
|
|
440
440
|
TWO_DAY = :two_day
|
|
441
441
|
THREE_DAY = :three_day
|
|
442
|
+
FOUR_DAY = :four_day
|
|
443
|
+
FIVE_DAY = :five_day
|
|
442
444
|
|
|
443
445
|
# @!method self.values
|
|
444
446
|
# @return [Array<Symbol>]
|
|
@@ -513,6 +515,8 @@ module Straddle
|
|
|
513
515
|
ONE_DAY = :one_day
|
|
514
516
|
TWO_DAY = :two_day
|
|
515
517
|
THREE_DAY = :three_day
|
|
518
|
+
FOUR_DAY = :four_day
|
|
519
|
+
FIVE_DAY = :five_day
|
|
516
520
|
|
|
517
521
|
# @!method self.values
|
|
518
522
|
# @return [Array<Symbol>]
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute account_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :account_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute final_status
|
|
12
17
|
#
|
|
13
18
|
# @return [Symbol, Straddle::Models::Embed::AccountSimulateParams::FinalStatus, nil]
|
|
@@ -28,7 +33,8 @@ module Straddle
|
|
|
28
33
|
# @return [String, nil]
|
|
29
34
|
optional :request_id, String
|
|
30
35
|
|
|
31
|
-
# @!method initialize(final_status: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
36
|
+
# @!method initialize(account_id:, final_status: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
37
|
+
# @param account_id [String]
|
|
32
38
|
# @param final_status [Symbol, Straddle::Models::Embed::AccountSimulateParams::FinalStatus]
|
|
33
39
|
# @param correlation_id [String]
|
|
34
40
|
# @param idempotency_key [String]
|
|
@@ -8,6 +8,11 @@ module Straddle
|
|
|
8
8
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include Straddle::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute account_id
|
|
12
|
+
#
|
|
13
|
+
# @return [String]
|
|
14
|
+
required :account_id, String
|
|
15
|
+
|
|
11
16
|
# @!attribute business_profile
|
|
12
17
|
#
|
|
13
18
|
# @return [Straddle::Models::Embed::BusinessProfileV1]
|
|
@@ -42,10 +47,12 @@ module Straddle
|
|
|
42
47
|
# @return [String, nil]
|
|
43
48
|
optional :request_id, String
|
|
44
49
|
|
|
45
|
-
# @!method initialize(business_profile:, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
50
|
+
# @!method initialize(account_id:, business_profile:, external_id: nil, metadata: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
46
51
|
# Some parameter documentations has been truncated, see
|
|
47
52
|
# {Straddle::Models::Embed::AccountUpdateParams} for more details.
|
|
48
53
|
#
|
|
54
|
+
# @param account_id [String]
|
|
55
|
+
#
|
|
49
56
|
# @param business_profile [Straddle::Models::Embed::BusinessProfileV1]
|
|
50
57
|
#
|
|
51
58
|
# @param external_id [String, nil] Unique identifier for the account in your database, used for cross-referencing b
|
|
@@ -439,6 +439,8 @@ module Straddle
|
|
|
439
439
|
ONE_DAY = :one_day
|
|
440
440
|
TWO_DAY = :two_day
|
|
441
441
|
THREE_DAY = :three_day
|
|
442
|
+
FOUR_DAY = :four_day
|
|
443
|
+
FIVE_DAY = :five_day
|
|
442
444
|
|
|
443
445
|
# @!method self.values
|
|
444
446
|
# @return [Array<Symbol>]
|
|
@@ -512,6 +514,8 @@ module Straddle
|
|
|
512
514
|
ONE_DAY = :one_day
|
|
513
515
|
TWO_DAY = :two_day
|
|
514
516
|
THREE_DAY = :three_day
|
|
517
|
+
FOUR_DAY = :four_day
|
|
518
|
+
FIVE_DAY = :five_day
|
|
515
519
|
|
|
516
520
|
# @!method self.values
|
|
517
521
|
# @return [Array<Symbol>]
|
|
@@ -9,6 +9,11 @@ module Straddle
|
|
|
9
9
|
extend Straddle::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Straddle::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
+
# @!attribute account_id
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :account_id, String
|
|
16
|
+
|
|
12
17
|
# @!attribute businesses
|
|
13
18
|
# Allows the account to accept payments from businesses.
|
|
14
19
|
#
|
|
@@ -63,11 +68,13 @@ module Straddle
|
|
|
63
68
|
# @return [String, nil]
|
|
64
69
|
optional :request_id, String
|
|
65
70
|
|
|
66
|
-
# @!method initialize(businesses: nil, charges: nil, individuals: nil, internet: nil, payouts: nil, signed_agreement: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
71
|
+
# @!method initialize(account_id:, businesses: nil, charges: nil, individuals: nil, internet: nil, payouts: nil, signed_agreement: nil, correlation_id: nil, idempotency_key: nil, request_id: nil, request_options: {})
|
|
67
72
|
# Some parameter documentations has been truncated, see
|
|
68
73
|
# {Straddle::Models::Embed::Accounts::CapabilityRequestCreateParams} for more
|
|
69
74
|
# details.
|
|
70
75
|
#
|
|
76
|
+
# @param account_id [String]
|
|
77
|
+
#
|
|
71
78
|
# @param businesses [Straddle::Models::Embed::Accounts::CapabilityRequestCreateParams::Businesses] Allows the account to accept payments from businesses.
|
|
72
79
|
#
|
|
73
80
|
# @param charges [Straddle::Models::Embed::Accounts::CapabilityRequestCreateParams::Charges] The charges capability settings for the account.
|