stripe 20.2.0.pre.alpha.2 → 20.2.0.pre.alpha.3
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/lib/stripe/event_types.rb +20 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/checkout/session_create_params.rb +4 -0
- data/lib/stripe/params/customer_update_params.rb +55 -0
- data/lib/stripe/params/fx_quote_create_params.rb +2 -2
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +10 -1
- data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +7 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +13 -1
- data/lib/stripe/params/setup_intent_create_params.rb +13 -1
- data/lib/stripe/params/setup_intent_update_params.rb +13 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -0
- data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
- data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +6 -0
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +23 -7
- data/lib/stripe/resources/checkout/session.rb +2 -0
- data/lib/stripe/resources/confirmation_token.rb +19 -3
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/mandate.rb +16 -0
- data/lib/stripe/resources/payment_attempt_record.rb +18 -2
- data/lib/stripe/resources/payment_intent.rb +26 -0
- data/lib/stripe/resources/payment_method.rb +19 -3
- data/lib/stripe/resources/payment_method_configuration.rb +34 -0
- data/lib/stripe/resources/payment_record.rb +18 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +4 -0
- data/lib/stripe/resources/reserve/hold.rb +2 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/reserve/release.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +18 -2
- data/lib/stripe/resources/setup_intent.rb +19 -1
- data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
- data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
- data/lib/stripe/resources/terminal/reader.rb +18 -1
- data/lib/stripe/resources/v2/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +74 -1
- data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
- data/lib/stripe/resources.rb +29 -0
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/reserve/hold_service.rb +2 -2
- data/lib/stripe/services/reserve/plan_service.rb +2 -2
- data/lib/stripe/services/reserve/release_service.rb +2 -2
- data/lib/stripe/services/v2/core/vault/network_token_service.rb +1 -0
- data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +3 -0
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +2 -1
- data/lib/stripe/services.rb +2 -0
- data/lib/stripe/stripe_event_notification_handler.rb +20 -0
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +61 -2
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe.rbi +1464 -72
- metadata +14 -2
|
@@ -1057,6 +1057,23 @@ module Stripe
|
|
|
1057
1057
|
end
|
|
1058
1058
|
end
|
|
1059
1059
|
|
|
1060
|
+
class TossPay < ::Stripe::RequestParams
|
|
1061
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
1062
|
+
# The account's preference for whether or not to display this payment method.
|
|
1063
|
+
attr_accessor :preference
|
|
1064
|
+
|
|
1065
|
+
def initialize(preference: nil)
|
|
1066
|
+
@preference = preference
|
|
1067
|
+
end
|
|
1068
|
+
end
|
|
1069
|
+
# Whether or not the payment method should be displayed.
|
|
1070
|
+
attr_accessor :display_preference
|
|
1071
|
+
|
|
1072
|
+
def initialize(display_preference: nil)
|
|
1073
|
+
@display_preference = display_preference
|
|
1074
|
+
end
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1060
1077
|
class Twint < ::Stripe::RequestParams
|
|
1061
1078
|
class DisplayPreference < ::Stripe::RequestParams
|
|
1062
1079
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -1288,6 +1305,8 @@ module Stripe
|
|
|
1288
1305
|
attr_accessor :sunbit
|
|
1289
1306
|
# Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details.
|
|
1290
1307
|
attr_accessor :swish
|
|
1308
|
+
# Customers are redirected to Toss Pay to authenticate their payment, then return to your website or app. You receive immediate notification of whether the payment succeeded or failed. With recurring access, customers can authorize a reusable mandate for future off-session payments.
|
|
1309
|
+
attr_accessor :toss_pay
|
|
1291
1310
|
# Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
|
|
1292
1311
|
attr_accessor :twint
|
|
1293
1312
|
# Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.
|
|
@@ -1367,6 +1386,7 @@ module Stripe
|
|
|
1367
1386
|
sofort: nil,
|
|
1368
1387
|
sunbit: nil,
|
|
1369
1388
|
swish: nil,
|
|
1389
|
+
toss_pay: nil,
|
|
1370
1390
|
twint: nil,
|
|
1371
1391
|
upi: nil,
|
|
1372
1392
|
us_bank_account: nil,
|
|
@@ -1439,6 +1459,7 @@ module Stripe
|
|
|
1439
1459
|
@sofort = sofort
|
|
1440
1460
|
@sunbit = sunbit
|
|
1441
1461
|
@swish = swish
|
|
1462
|
+
@toss_pay = toss_pay
|
|
1442
1463
|
@twint = twint
|
|
1443
1464
|
@upi = upi
|
|
1444
1465
|
@us_bank_account = us_bank_account
|
|
@@ -1057,6 +1057,23 @@ module Stripe
|
|
|
1057
1057
|
end
|
|
1058
1058
|
end
|
|
1059
1059
|
|
|
1060
|
+
class TossPay < ::Stripe::RequestParams
|
|
1061
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
1062
|
+
# The account's preference for whether or not to display this payment method.
|
|
1063
|
+
attr_accessor :preference
|
|
1064
|
+
|
|
1065
|
+
def initialize(preference: nil)
|
|
1066
|
+
@preference = preference
|
|
1067
|
+
end
|
|
1068
|
+
end
|
|
1069
|
+
# Whether or not the payment method should be displayed.
|
|
1070
|
+
attr_accessor :display_preference
|
|
1071
|
+
|
|
1072
|
+
def initialize(display_preference: nil)
|
|
1073
|
+
@display_preference = display_preference
|
|
1074
|
+
end
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1060
1077
|
class Twint < ::Stripe::RequestParams
|
|
1061
1078
|
class DisplayPreference < ::Stripe::RequestParams
|
|
1062
1079
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -1288,6 +1305,8 @@ module Stripe
|
|
|
1288
1305
|
attr_accessor :sunbit
|
|
1289
1306
|
# Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details.
|
|
1290
1307
|
attr_accessor :swish
|
|
1308
|
+
# Customers are redirected to Toss Pay to authenticate their payment, then return to your website or app. You receive immediate notification of whether the payment succeeded or failed. With recurring access, customers can authorize a reusable mandate for future off-session payments.
|
|
1309
|
+
attr_accessor :toss_pay
|
|
1291
1310
|
# Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
|
|
1292
1311
|
attr_accessor :twint
|
|
1293
1312
|
# Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.
|
|
@@ -1367,6 +1386,7 @@ module Stripe
|
|
|
1367
1386
|
sofort: nil,
|
|
1368
1387
|
sunbit: nil,
|
|
1369
1388
|
swish: nil,
|
|
1389
|
+
toss_pay: nil,
|
|
1370
1390
|
twint: nil,
|
|
1371
1391
|
upi: nil,
|
|
1372
1392
|
us_bank_account: nil,
|
|
@@ -1439,6 +1459,7 @@ module Stripe
|
|
|
1439
1459
|
@sofort = sofort
|
|
1440
1460
|
@sunbit = sunbit
|
|
1441
1461
|
@swish = swish
|
|
1462
|
+
@toss_pay = toss_pay
|
|
1442
1463
|
@twint = twint
|
|
1443
1464
|
@upi = upi
|
|
1444
1465
|
@us_bank_account = us_bank_account
|
|
@@ -19,11 +19,45 @@ module Stripe
|
|
|
19
19
|
@cvc_check = cvc_check
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
|
+
|
|
23
|
+
class ThreeDSecure < ::Stripe::RequestParams
|
|
24
|
+
# For authenticated transactions: Indicates how the issuing bank authenticated the customer.
|
|
25
|
+
attr_accessor :authentication_flow
|
|
26
|
+
# The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
|
|
27
|
+
attr_accessor :electronic_commerce_indicator
|
|
28
|
+
# The exemption requested via 3DS and accepted by the issuer at authentication time.
|
|
29
|
+
attr_accessor :exemption_indicator
|
|
30
|
+
# Indicates the outcome of 3D Secure authentication.
|
|
31
|
+
attr_accessor :result
|
|
32
|
+
# Additional information about why 3D Secure succeeded or failed, based on the `result`.
|
|
33
|
+
attr_accessor :result_reason
|
|
34
|
+
# The version of 3D Secure that was used.
|
|
35
|
+
attr_accessor :version
|
|
36
|
+
|
|
37
|
+
def initialize(
|
|
38
|
+
authentication_flow: nil,
|
|
39
|
+
electronic_commerce_indicator: nil,
|
|
40
|
+
exemption_indicator: nil,
|
|
41
|
+
result: nil,
|
|
42
|
+
result_reason: nil,
|
|
43
|
+
version: nil
|
|
44
|
+
)
|
|
45
|
+
@authentication_flow = authentication_flow
|
|
46
|
+
@electronic_commerce_indicator = electronic_commerce_indicator
|
|
47
|
+
@exemption_indicator = exemption_indicator
|
|
48
|
+
@result = result
|
|
49
|
+
@result_reason = result_reason
|
|
50
|
+
@version = version
|
|
51
|
+
end
|
|
52
|
+
end
|
|
22
53
|
# Verification checks performed on the card.
|
|
23
54
|
attr_accessor :checks
|
|
55
|
+
# Populated if this transaction used 3D Secure authentication.
|
|
56
|
+
attr_accessor :three_d_secure
|
|
24
57
|
|
|
25
|
-
def initialize(checks: nil)
|
|
58
|
+
def initialize(checks: nil, three_d_secure: nil)
|
|
26
59
|
@checks = checks
|
|
60
|
+
@three_d_secure = three_d_secure
|
|
27
61
|
end
|
|
28
62
|
end
|
|
29
63
|
# Information about the card payment method used to make this payment.
|
|
@@ -158,11 +158,45 @@ module Stripe
|
|
|
158
158
|
@cvc_check = cvc_check
|
|
159
159
|
end
|
|
160
160
|
end
|
|
161
|
+
|
|
162
|
+
class ThreeDSecure < ::Stripe::RequestParams
|
|
163
|
+
# For authenticated transactions: Indicates how the issuing bank authenticated the customer.
|
|
164
|
+
attr_accessor :authentication_flow
|
|
165
|
+
# The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
|
|
166
|
+
attr_accessor :electronic_commerce_indicator
|
|
167
|
+
# The exemption requested via 3DS and accepted by the issuer at authentication time.
|
|
168
|
+
attr_accessor :exemption_indicator
|
|
169
|
+
# Indicates the outcome of 3D Secure authentication.
|
|
170
|
+
attr_accessor :result
|
|
171
|
+
# Additional information about why 3D Secure succeeded or failed, based on the `result`.
|
|
172
|
+
attr_accessor :result_reason
|
|
173
|
+
# The version of 3D Secure that was used.
|
|
174
|
+
attr_accessor :version
|
|
175
|
+
|
|
176
|
+
def initialize(
|
|
177
|
+
authentication_flow: nil,
|
|
178
|
+
electronic_commerce_indicator: nil,
|
|
179
|
+
exemption_indicator: nil,
|
|
180
|
+
result: nil,
|
|
181
|
+
result_reason: nil,
|
|
182
|
+
version: nil
|
|
183
|
+
)
|
|
184
|
+
@authentication_flow = authentication_flow
|
|
185
|
+
@electronic_commerce_indicator = electronic_commerce_indicator
|
|
186
|
+
@exemption_indicator = exemption_indicator
|
|
187
|
+
@result = result
|
|
188
|
+
@result_reason = result_reason
|
|
189
|
+
@version = version
|
|
190
|
+
end
|
|
191
|
+
end
|
|
161
192
|
# Verification checks performed on the card.
|
|
162
193
|
attr_accessor :checks
|
|
194
|
+
# Populated if this transaction used 3D Secure authentication.
|
|
195
|
+
attr_accessor :three_d_secure
|
|
163
196
|
|
|
164
|
-
def initialize(checks: nil)
|
|
197
|
+
def initialize(checks: nil, three_d_secure: nil)
|
|
165
198
|
@checks = checks
|
|
199
|
+
@three_d_secure = three_d_secure
|
|
166
200
|
end
|
|
167
201
|
end
|
|
168
202
|
|
|
@@ -188,11 +188,45 @@ module Stripe
|
|
|
188
188
|
@cvc_check = cvc_check
|
|
189
189
|
end
|
|
190
190
|
end
|
|
191
|
+
|
|
192
|
+
class ThreeDSecure < ::Stripe::RequestParams
|
|
193
|
+
# For authenticated transactions: Indicates how the issuing bank authenticated the customer.
|
|
194
|
+
attr_accessor :authentication_flow
|
|
195
|
+
# The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
|
|
196
|
+
attr_accessor :electronic_commerce_indicator
|
|
197
|
+
# The exemption requested via 3DS and accepted by the issuer at authentication time.
|
|
198
|
+
attr_accessor :exemption_indicator
|
|
199
|
+
# Indicates the outcome of 3D Secure authentication.
|
|
200
|
+
attr_accessor :result
|
|
201
|
+
# Additional information about why 3D Secure succeeded or failed, based on the `result`.
|
|
202
|
+
attr_accessor :result_reason
|
|
203
|
+
# The version of 3D Secure that was used.
|
|
204
|
+
attr_accessor :version
|
|
205
|
+
|
|
206
|
+
def initialize(
|
|
207
|
+
authentication_flow: nil,
|
|
208
|
+
electronic_commerce_indicator: nil,
|
|
209
|
+
exemption_indicator: nil,
|
|
210
|
+
result: nil,
|
|
211
|
+
result_reason: nil,
|
|
212
|
+
version: nil
|
|
213
|
+
)
|
|
214
|
+
@authentication_flow = authentication_flow
|
|
215
|
+
@electronic_commerce_indicator = electronic_commerce_indicator
|
|
216
|
+
@exemption_indicator = exemption_indicator
|
|
217
|
+
@result = result
|
|
218
|
+
@result_reason = result_reason
|
|
219
|
+
@version = version
|
|
220
|
+
end
|
|
221
|
+
end
|
|
191
222
|
# Verification checks performed on the card.
|
|
192
223
|
attr_accessor :checks
|
|
224
|
+
# Populated if this transaction used 3D Secure authentication.
|
|
225
|
+
attr_accessor :three_d_secure
|
|
193
226
|
|
|
194
|
-
def initialize(checks: nil)
|
|
227
|
+
def initialize(checks: nil, three_d_secure: nil)
|
|
195
228
|
@checks = checks
|
|
229
|
+
@three_d_secure = three_d_secure
|
|
196
230
|
end
|
|
197
231
|
end
|
|
198
232
|
|
|
@@ -80,9 +80,15 @@ module Stripe
|
|
|
80
80
|
class SepaDebit < ::Stripe::RequestParams
|
|
81
81
|
# Supply the SEPA Creditor Identifier configured for the intended debit with your selected processor. Obtain it from your processor's SEPA configuration API or onboarding/support information. Do not supply a statement descriptor, IBAN, processor merchant-account ID, or mandate reference. If the creditor identifier is unknown, omit it.
|
|
82
82
|
attr_accessor :creditor_id
|
|
83
|
+
# Describes the presence of the customer during the payment.
|
|
84
|
+
attr_accessor :customer_presence
|
|
85
|
+
# Describes whether this payment is one-off or recurring.
|
|
86
|
+
attr_accessor :payment_type
|
|
83
87
|
|
|
84
|
-
def initialize(creditor_id: nil)
|
|
88
|
+
def initialize(creditor_id: nil, customer_presence: nil, payment_type: nil)
|
|
85
89
|
@creditor_id = creditor_id
|
|
90
|
+
@customer_presence = customer_presence
|
|
91
|
+
@payment_type = payment_type
|
|
86
92
|
end
|
|
87
93
|
end
|
|
88
94
|
|
|
@@ -847,6 +847,15 @@ module Stripe
|
|
|
847
847
|
class AmazonPay < ::Stripe::RequestParams; end
|
|
848
848
|
|
|
849
849
|
class BacsDebit < ::Stripe::RequestParams
|
|
850
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
851
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
852
|
+
attr_accessor :return_url
|
|
853
|
+
|
|
854
|
+
def initialize(return_url: nil)
|
|
855
|
+
@return_url = return_url
|
|
856
|
+
end
|
|
857
|
+
end
|
|
858
|
+
|
|
850
859
|
class MandateOptions < ::Stripe::RequestParams
|
|
851
860
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
|
852
861
|
attr_accessor :reference_prefix
|
|
@@ -855,12 +864,15 @@ module Stripe
|
|
|
855
864
|
@reference_prefix = reference_prefix
|
|
856
865
|
end
|
|
857
866
|
end
|
|
867
|
+
# Additional fields for Financial Connections session creation.
|
|
868
|
+
attr_accessor :financial_connections
|
|
858
869
|
# Additional fields for Mandate creation
|
|
859
870
|
attr_accessor :mandate_options
|
|
860
871
|
# Attribute for param field verification_method
|
|
861
872
|
attr_accessor :verification_method
|
|
862
873
|
|
|
863
|
-
def initialize(mandate_options: nil, verification_method: nil)
|
|
874
|
+
def initialize(financial_connections: nil, mandate_options: nil, verification_method: nil)
|
|
875
|
+
@financial_connections = financial_connections
|
|
864
876
|
@mandate_options = mandate_options
|
|
865
877
|
@verification_method = verification_method
|
|
866
878
|
end
|
|
@@ -861,6 +861,15 @@ module Stripe
|
|
|
861
861
|
class AmazonPay < ::Stripe::RequestParams; end
|
|
862
862
|
|
|
863
863
|
class BacsDebit < ::Stripe::RequestParams
|
|
864
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
865
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
866
|
+
attr_accessor :return_url
|
|
867
|
+
|
|
868
|
+
def initialize(return_url: nil)
|
|
869
|
+
@return_url = return_url
|
|
870
|
+
end
|
|
871
|
+
end
|
|
872
|
+
|
|
864
873
|
class MandateOptions < ::Stripe::RequestParams
|
|
865
874
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
|
866
875
|
attr_accessor :reference_prefix
|
|
@@ -869,12 +878,15 @@ module Stripe
|
|
|
869
878
|
@reference_prefix = reference_prefix
|
|
870
879
|
end
|
|
871
880
|
end
|
|
881
|
+
# Additional fields for Financial Connections session creation.
|
|
882
|
+
attr_accessor :financial_connections
|
|
872
883
|
# Additional fields for Mandate creation
|
|
873
884
|
attr_accessor :mandate_options
|
|
874
885
|
# Attribute for param field verification_method
|
|
875
886
|
attr_accessor :verification_method
|
|
876
887
|
|
|
877
|
-
def initialize(mandate_options: nil, verification_method: nil)
|
|
888
|
+
def initialize(financial_connections: nil, mandate_options: nil, verification_method: nil)
|
|
889
|
+
@financial_connections = financial_connections
|
|
878
890
|
@mandate_options = mandate_options
|
|
879
891
|
@verification_method = verification_method
|
|
880
892
|
end
|
|
@@ -808,6 +808,15 @@ module Stripe
|
|
|
808
808
|
class AmazonPay < ::Stripe::RequestParams; end
|
|
809
809
|
|
|
810
810
|
class BacsDebit < ::Stripe::RequestParams
|
|
811
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
812
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
813
|
+
attr_accessor :return_url
|
|
814
|
+
|
|
815
|
+
def initialize(return_url: nil)
|
|
816
|
+
@return_url = return_url
|
|
817
|
+
end
|
|
818
|
+
end
|
|
819
|
+
|
|
811
820
|
class MandateOptions < ::Stripe::RequestParams
|
|
812
821
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'.
|
|
813
822
|
attr_accessor :reference_prefix
|
|
@@ -816,12 +825,15 @@ module Stripe
|
|
|
816
825
|
@reference_prefix = reference_prefix
|
|
817
826
|
end
|
|
818
827
|
end
|
|
828
|
+
# Additional fields for Financial Connections session creation.
|
|
829
|
+
attr_accessor :financial_connections
|
|
819
830
|
# Additional fields for Mandate creation
|
|
820
831
|
attr_accessor :mandate_options
|
|
821
832
|
# Attribute for param field verification_method
|
|
822
833
|
attr_accessor :verification_method
|
|
823
834
|
|
|
824
|
-
def initialize(mandate_options: nil, verification_method: nil)
|
|
835
|
+
def initialize(financial_connections: nil, mandate_options: nil, verification_method: nil)
|
|
836
|
+
@financial_connections = financial_connections
|
|
825
837
|
@mandate_options = mandate_options
|
|
826
838
|
@verification_method = verification_method
|
|
827
839
|
end
|
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module SharedPayment
|
|
6
6
|
class IssuedTokenCreateParams < ::Stripe::RequestParams
|
|
7
|
+
class ReferralFeeDetails < ::Stripe::RequestParams
|
|
8
|
+
# The Customer to be invoiced for fees assessed.
|
|
9
|
+
attr_accessor :customer
|
|
10
|
+
# The account with a Customer configuration to be invoiced for fees assessed.
|
|
11
|
+
attr_accessor :customer_account
|
|
12
|
+
# The percentage of the payment to charge as a referral fee, from 0 through 50 with at most two decimal places.
|
|
13
|
+
attr_accessor :referral_fee_percent
|
|
14
|
+
|
|
15
|
+
def initialize(customer: nil, customer_account: nil, referral_fee_percent: nil)
|
|
16
|
+
@customer = customer
|
|
17
|
+
@customer_account = customer_account
|
|
18
|
+
@referral_fee_percent = referral_fee_percent
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
|
|
7
22
|
class SellerDetails < ::Stripe::RequestParams
|
|
8
23
|
# A unique id within a network that identifies a logical seller, usually this would be the unique merchant id.
|
|
9
24
|
attr_accessor :external_id
|
|
@@ -57,6 +72,8 @@ module Stripe
|
|
|
57
72
|
attr_accessor :expand
|
|
58
73
|
# The PaymentMethod that is going to be shared by the SharedPaymentIssuedToken.
|
|
59
74
|
attr_accessor :payment_method
|
|
75
|
+
# Referral fee details for this SharedPaymentToken.
|
|
76
|
+
attr_accessor :referral_fee_details
|
|
60
77
|
# If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
61
78
|
attr_accessor :return_url
|
|
62
79
|
# Seller details of the SharedPaymentIssuedToken, including network_id and external_id.
|
|
@@ -73,6 +90,7 @@ module Stripe
|
|
|
73
90
|
def initialize(
|
|
74
91
|
expand: nil,
|
|
75
92
|
payment_method: nil,
|
|
93
|
+
referral_fee_details: nil,
|
|
76
94
|
return_url: nil,
|
|
77
95
|
seller_details: nil,
|
|
78
96
|
setup_future_usage: nil,
|
|
@@ -82,6 +100,7 @@ module Stripe
|
|
|
82
100
|
)
|
|
83
101
|
@expand = expand
|
|
84
102
|
@payment_method = payment_method
|
|
103
|
+
@referral_fee_details = referral_fee_details
|
|
85
104
|
@return_url = return_url
|
|
86
105
|
@seller_details = seller_details
|
|
87
106
|
@setup_future_usage = setup_future_usage
|
|
@@ -94,11 +94,32 @@ module Stripe
|
|
|
94
94
|
@preferred_networks = preferred_networks
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
|
+
|
|
98
|
+
class CheckSend < ::Stripe::RequestParams
|
|
99
|
+
# The ID of a file to include as an attachment with the check.
|
|
100
|
+
attr_accessor :attachment_file
|
|
101
|
+
# Memo printed on the memo field of the check.
|
|
102
|
+
attr_accessor :memo
|
|
103
|
+
# Open Enum. Shipping speed of the check. Defaults to standard.
|
|
104
|
+
attr_accessor :shipping_speed
|
|
105
|
+
# Signature printed on the check.
|
|
106
|
+
attr_accessor :signature
|
|
107
|
+
|
|
108
|
+
def initialize(attachment_file: nil, memo: nil, shipping_speed: nil, signature: nil)
|
|
109
|
+
@attachment_file = attachment_file
|
|
110
|
+
@memo = memo
|
|
111
|
+
@shipping_speed = shipping_speed
|
|
112
|
+
@signature = signature
|
|
113
|
+
end
|
|
114
|
+
end
|
|
97
115
|
# Options for bank account payout methods.
|
|
98
116
|
attr_accessor :bank_account
|
|
117
|
+
# Options for check send payout methods.
|
|
118
|
+
attr_accessor :check_send
|
|
99
119
|
|
|
100
|
-
def initialize(bank_account: nil)
|
|
120
|
+
def initialize(bank_account: nil, check_send: nil)
|
|
101
121
|
@bank_account = bank_account
|
|
122
|
+
@check_send = check_send
|
|
102
123
|
end
|
|
103
124
|
end
|
|
104
125
|
# Describes the currency to send to the recipient.
|
|
@@ -83,6 +83,48 @@ module Stripe
|
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
class CheckSend < ::Stripe::RequestParams
|
|
87
|
+
class MailingAddress < ::Stripe::RequestParams
|
|
88
|
+
# City.
|
|
89
|
+
attr_accessor :city
|
|
90
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
91
|
+
attr_accessor :country
|
|
92
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
93
|
+
attr_accessor :line1
|
|
94
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
95
|
+
attr_accessor :line2
|
|
96
|
+
# ZIP or postal code.
|
|
97
|
+
attr_accessor :postal_code
|
|
98
|
+
# State.
|
|
99
|
+
attr_accessor :state
|
|
100
|
+
|
|
101
|
+
def initialize(
|
|
102
|
+
city: nil,
|
|
103
|
+
country: nil,
|
|
104
|
+
line1: nil,
|
|
105
|
+
line2: nil,
|
|
106
|
+
postal_code: nil,
|
|
107
|
+
state: nil
|
|
108
|
+
)
|
|
109
|
+
@city = city
|
|
110
|
+
@country = country
|
|
111
|
+
@line1 = line1
|
|
112
|
+
@line2 = line2
|
|
113
|
+
@postal_code = postal_code
|
|
114
|
+
@state = state
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
# The US mailing address the check is sent to.
|
|
118
|
+
attr_accessor :mailing_address
|
|
119
|
+
# The name printed on the check's payee line.
|
|
120
|
+
attr_accessor :payee_name
|
|
121
|
+
|
|
122
|
+
def initialize(mailing_address: nil, payee_name: nil)
|
|
123
|
+
@mailing_address = mailing_address
|
|
124
|
+
@payee_name = payee_name
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
86
128
|
class CryptoWallet < ::Stripe::RequestParams
|
|
87
129
|
# Crypto wallet address.
|
|
88
130
|
attr_accessor :address
|
|
@@ -117,6 +159,8 @@ module Stripe
|
|
|
117
159
|
attr_accessor :bank_account
|
|
118
160
|
# The type specific details of the card payout method.
|
|
119
161
|
attr_accessor :card
|
|
162
|
+
# The type specific details of the check send payout method.
|
|
163
|
+
attr_accessor :check_send
|
|
120
164
|
# The type specific details of the crypto wallet payout method.
|
|
121
165
|
attr_accessor :crypto_wallet
|
|
122
166
|
# The type specific details of the PIX payout method.
|
|
@@ -128,6 +172,7 @@ module Stripe
|
|
|
128
172
|
apple_pay: nil,
|
|
129
173
|
bank_account: nil,
|
|
130
174
|
card: nil,
|
|
175
|
+
check_send: nil,
|
|
131
176
|
crypto_wallet: nil,
|
|
132
177
|
pix: nil,
|
|
133
178
|
type: nil
|
|
@@ -135,6 +180,7 @@ module Stripe
|
|
|
135
180
|
@apple_pay = apple_pay
|
|
136
181
|
@bank_account = bank_account
|
|
137
182
|
@card = card
|
|
183
|
+
@check_send = check_send
|
|
138
184
|
@crypto_wallet = crypto_wallet
|
|
139
185
|
@pix = pix
|
|
140
186
|
@type = type
|
|
@@ -71,11 +71,32 @@ module Stripe
|
|
|
71
71
|
@preferred_networks = preferred_networks
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
|
+
|
|
75
|
+
class CheckSend < ::Stripe::RequestParams
|
|
76
|
+
# The ID of a file to include as an attachment with the check.
|
|
77
|
+
attr_accessor :attachment_file
|
|
78
|
+
# Memo printed on the memo field of the check.
|
|
79
|
+
attr_accessor :memo
|
|
80
|
+
# Open Enum. Shipping speed of the check. Defaults to standard.
|
|
81
|
+
attr_accessor :shipping_speed
|
|
82
|
+
# Signature printed on the check.
|
|
83
|
+
attr_accessor :signature
|
|
84
|
+
|
|
85
|
+
def initialize(attachment_file: nil, memo: nil, shipping_speed: nil, signature: nil)
|
|
86
|
+
@attachment_file = attachment_file
|
|
87
|
+
@memo = memo
|
|
88
|
+
@shipping_speed = shipping_speed
|
|
89
|
+
@signature = signature
|
|
90
|
+
end
|
|
91
|
+
end
|
|
74
92
|
# Options for bank account payout methods.
|
|
75
93
|
attr_accessor :bank_account
|
|
94
|
+
# Options for check send payout methods.
|
|
95
|
+
attr_accessor :check_send
|
|
76
96
|
|
|
77
|
-
def initialize(bank_account: nil)
|
|
97
|
+
def initialize(bank_account: nil, check_send: nil)
|
|
78
98
|
@bank_account = bank_account
|
|
99
|
+
@check_send = check_send
|
|
79
100
|
end
|
|
80
101
|
end
|
|
81
102
|
# The currency to send to the recipient.
|
|
@@ -59,11 +59,32 @@ module Stripe
|
|
|
59
59
|
@preferred_networks = preferred_networks
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
|
+
|
|
63
|
+
class CheckSend < ::Stripe::RequestParams
|
|
64
|
+
# The ID of a file to include as an attachment with the check.
|
|
65
|
+
attr_accessor :attachment_file
|
|
66
|
+
# Memo printed on the memo field of the check.
|
|
67
|
+
attr_accessor :memo
|
|
68
|
+
# Open Enum. Shipping speed of the check. Defaults to standard.
|
|
69
|
+
attr_accessor :shipping_speed
|
|
70
|
+
# Signature printed on the check.
|
|
71
|
+
attr_accessor :signature
|
|
72
|
+
|
|
73
|
+
def initialize(attachment_file: nil, memo: nil, shipping_speed: nil, signature: nil)
|
|
74
|
+
@attachment_file = attachment_file
|
|
75
|
+
@memo = memo
|
|
76
|
+
@shipping_speed = shipping_speed
|
|
77
|
+
@signature = signature
|
|
78
|
+
end
|
|
79
|
+
end
|
|
62
80
|
# Options for bank account payout methods.
|
|
63
81
|
attr_accessor :bank_account
|
|
82
|
+
# Options for check send payout methods.
|
|
83
|
+
attr_accessor :check_send
|
|
64
84
|
|
|
65
|
-
def initialize(bank_account: nil)
|
|
85
|
+
def initialize(bank_account: nil, check_send: nil)
|
|
66
86
|
@bank_account = bank_account
|
|
87
|
+
@check_send = check_send
|
|
67
88
|
end
|
|
68
89
|
end
|
|
69
90
|
# The currency to send to the recipient.
|
|
@@ -7,12 +7,15 @@ module Stripe
|
|
|
7
7
|
class ReceivedDebitListParams < ::Stripe::RequestParams
|
|
8
8
|
# The page limit.
|
|
9
9
|
attr_accessor :limit
|
|
10
|
-
# Filter by the received debit mandate ID.
|
|
10
|
+
# Filter by the received debit mandate ID. Deprecated: use `spending_mandate` instead.
|
|
11
11
|
attr_accessor :received_debit_mandate
|
|
12
|
+
# Filter by the SpendingMandate ID.
|
|
13
|
+
attr_accessor :spending_mandate
|
|
12
14
|
|
|
13
|
-
def initialize(limit: nil, received_debit_mandate: nil)
|
|
15
|
+
def initialize(limit: nil, received_debit_mandate: nil, spending_mandate: nil)
|
|
14
16
|
@limit = limit
|
|
15
17
|
@received_debit_mandate = received_debit_mandate
|
|
18
|
+
@spending_mandate = spending_mandate
|
|
16
19
|
end
|
|
17
20
|
end
|
|
18
21
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
class SpendingMandateListParams < ::Stripe::RequestParams
|
|
8
|
+
# The ID of the FinancialAccount to filter by.
|
|
9
|
+
attr_accessor :financial_account
|
|
10
|
+
# The page limit.
|
|
11
|
+
attr_accessor :limit
|
|
12
|
+
# Filter by mandate status.
|
|
13
|
+
attr_accessor :statuses
|
|
14
|
+
# The type of SpendingMandate to filter by.
|
|
15
|
+
attr_accessor :type
|
|
16
|
+
|
|
17
|
+
def initialize(financial_account: nil, limit: nil, statuses: nil, type: nil)
|
|
18
|
+
@financial_account = financial_account
|
|
19
|
+
@limit = limit
|
|
20
|
+
@statuses = statuses
|
|
21
|
+
@type = type
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|