stripe 15.1.0 → 15.2.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 +34 -6
- data/CONTRIBUTING.md +25 -0
- data/OPENAPI_VERSION +1 -1
- data/README.md +10 -7
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/resources/account.rb +47 -20
- data/lib/stripe/resources/account_session.rb +111 -7
- data/lib/stripe/resources/apple_pay_domain.rb +1 -2
- data/lib/stripe/resources/balance.rb +42 -0
- data/lib/stripe/resources/balance_transaction.rb +2 -0
- data/lib/stripe/resources/bank_account.rb +2 -2
- data/lib/stripe/resources/billing_portal/session.rb +1 -1
- data/lib/stripe/resources/capability.rb +1 -1
- data/lib/stripe/resources/charge.rb +13 -5
- data/lib/stripe/resources/checkout/session.rb +20 -4
- data/lib/stripe/resources/confirmation_token.rb +33 -87
- data/lib/stripe/resources/country_spec.rb +1 -1
- data/lib/stripe/resources/coupon.rb +1 -2
- data/lib/stripe/resources/credit_note.rb +12 -9
- data/lib/stripe/resources/customer.rb +2 -4
- data/lib/stripe/resources/customer_session.rb +3 -3
- data/lib/stripe/resources/dispute.rb +2 -2
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/identity/verification_report.rb +6 -0
- data/lib/stripe/resources/identity/verification_session.rb +17 -11
- data/lib/stripe/resources/invoice.rb +114 -27
- data/lib/stripe/resources/invoice_item.rb +2 -3
- data/lib/stripe/resources/invoice_line_item.rb +1 -1
- data/lib/stripe/resources/invoice_payment.rb +9 -2
- data/lib/stripe/resources/issuing/authorization.rb +8 -8
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/issuing/dispute.rb +3 -3
- data/lib/stripe/resources/payment_intent.rb +196 -302
- data/lib/stripe/resources/payment_method.rb +46 -103
- data/lib/stripe/resources/payment_method_configuration.rb +297 -2
- data/lib/stripe/resources/payment_method_domain.rb +2 -2
- data/lib/stripe/resources/payout.rb +4 -4
- data/lib/stripe/resources/person.rb +2 -2
- data/lib/stripe/resources/plan.rb +2 -3
- data/lib/stripe/resources/price.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -2
- data/lib/stripe/resources/radar/value_list.rb +1 -2
- data/lib/stripe/resources/radar/value_list_item.rb +1 -2
- data/lib/stripe/resources/refund.rb +6 -1
- data/lib/stripe/resources/reversal.rb +1 -1
- data/lib/stripe/resources/review.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +111 -281
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/subscription.rb +89 -29
- data/lib/stripe/resources/subscription_item.rb +33 -0
- data/lib/stripe/resources/subscription_schedule.rb +119 -4
- data/lib/stripe/resources/tax/calculation.rb +4 -0
- data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
- data/lib/stripe/resources/tax/registration.rb +1 -1
- data/lib/stripe/resources/tax_id.rb +1 -2
- data/lib/stripe/resources/tax_rate.rb +2 -2
- data/lib/stripe/resources/terminal/configuration.rb +1 -2
- data/lib/stripe/resources/terminal/location.rb +2 -3
- data/lib/stripe/resources/terminal/reader.rb +275 -3
- data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
- data/lib/stripe/resources/token.rb +2 -2
- data/lib/stripe/resources/transfer.rb +1 -1
- data/lib/stripe/resources/webhook_endpoint.rb +1 -2
- data/lib/stripe/services/account_external_account_service.rb +2 -3
- data/lib/stripe/services/account_login_link_service.rb +1 -1
- data/lib/stripe/services/account_person_service.rb +1 -2
- data/lib/stripe/services/account_service.rb +38 -13
- data/lib/stripe/services/account_session_service.rb +75 -7
- data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
- data/lib/stripe/services/balance_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +4 -4
- data/lib/stripe/services/checkout/session_service.rb +11 -3
- data/lib/stripe/services/coupon_service.rb +1 -2
- data/lib/stripe/services/credit_note_service.rb +7 -8
- data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
- data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
- data/lib/stripe/services/customer_payment_source_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +3 -5
- data/lib/stripe/services/customer_tax_id_service.rb +1 -2
- data/lib/stripe/services/dispute_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +5 -5
- data/lib/stripe/services/invoice_item_service.rb +1 -2
- data/lib/stripe/services/invoice_service.rb +92 -23
- data/lib/stripe/services/issuing/authorization_service.rb +4 -4
- data/lib/stripe/services/issuing/card_service.rb +1 -1
- data/lib/stripe/services/issuing/dispute_service.rb +2 -2
- data/lib/stripe/services/payment_intent_service.rb +176 -292
- data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
- data/lib/stripe/services/payment_method_domain_service.rb +1 -1
- data/lib/stripe/services/payment_method_service.rb +43 -100
- data/lib/stripe/services/payout_service.rb +2 -2
- data/lib/stripe/services/plan_service.rb +2 -3
- data/lib/stripe/services/price_service.rb +2 -2
- data/lib/stripe/services/product_feature_service.rb +1 -2
- data/lib/stripe/services/product_service.rb +2 -3
- data/lib/stripe/services/promotion_code_service.rb +1 -1
- data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
- data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
- data/lib/stripe/services/radar/value_list_service.rb +1 -2
- data/lib/stripe/services/setup_intent_service.rb +110 -280
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/subscription_item_service.rb +26 -0
- data/lib/stripe/services/subscription_schedule_service.rb +93 -3
- data/lib/stripe/services/subscription_service.rb +77 -26
- data/lib/stripe/services/tax/calculation_service.rb +4 -0
- data/lib/stripe/services/tax/registration_service.rb +1 -1
- data/lib/stripe/services/tax_id_service.rb +1 -2
- data/lib/stripe/services/terminal/configuration_service.rb +1 -2
- data/lib/stripe/services/terminal/location_service.rb +2 -3
- data/lib/stripe/services/terminal/reader_service.rb +106 -2
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +33 -87
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +43 -0
- data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/transfer_service.rb +1 -1
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
- data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
- data/lib/stripe/services/v2/core/event_service.rb +1 -2
- data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe/resources/account.rbi +46 -23
- data/rbi/stripe/resources/account_session.rbi +131 -12
- data/rbi/stripe/resources/apple_pay_domain.rbi +1 -3
- data/rbi/stripe/resources/balance.rbi +55 -0
- data/rbi/stripe/resources/balance_transaction.rbi +3 -0
- data/rbi/stripe/resources/bank_account.rbi +2 -2
- data/rbi/stripe/resources/billing/alert.rbi +2 -2
- data/rbi/stripe/resources/billing_portal/session.rbi +1 -1
- data/rbi/stripe/resources/capability.rbi +1 -1
- data/rbi/stripe/resources/charge.rbi +17 -5
- data/rbi/stripe/resources/checkout/session.rbi +22 -6
- data/rbi/stripe/resources/confirmation_token.rbi +33 -99
- data/rbi/stripe/resources/country_spec.rbi +1 -1
- data/rbi/stripe/resources/coupon.rbi +1 -3
- data/rbi/stripe/resources/credit_note.rbi +14 -9
- data/rbi/stripe/resources/customer.rbi +2 -6
- data/rbi/stripe/resources/customer_session.rbi +3 -3
- data/rbi/stripe/resources/dispute.rbi +2 -2
- data/rbi/stripe/resources/event.rbi +1 -1
- data/rbi/stripe/resources/file.rbi +1 -1
- data/rbi/stripe/resources/identity/verification_report.rbi +9 -0
- data/rbi/stripe/resources/identity/verification_session.rbi +20 -11
- data/rbi/stripe/resources/invoice.rbi +109 -33
- data/rbi/stripe/resources/invoice_item.rbi +2 -4
- data/rbi/stripe/resources/invoice_line_item.rbi +1 -1
- data/rbi/stripe/resources/invoice_payment.rbi +9 -2
- data/rbi/stripe/resources/issuing/authorization.rbi +8 -8
- data/rbi/stripe/resources/issuing/card.rbi +1 -1
- data/rbi/stripe/resources/issuing/dispute.rbi +3 -3
- data/rbi/stripe/resources/payment_intent.rbi +201 -349
- data/rbi/stripe/resources/payment_method.rbi +46 -116
- data/rbi/stripe/resources/payment_method_configuration.rbi +334 -4
- data/rbi/stripe/resources/payment_method_domain.rbi +2 -2
- data/rbi/stripe/resources/payout.rbi +4 -4
- data/rbi/stripe/resources/person.rbi +2 -2
- data/rbi/stripe/resources/plan.rbi +2 -4
- data/rbi/stripe/resources/price.rbi +1 -1
- data/rbi/stripe/resources/product.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list.rbi +1 -3
- data/rbi/stripe/resources/radar/value_list_item.rbi +1 -3
- data/rbi/stripe/resources/refund.rbi +5 -1
- data/rbi/stripe/resources/reversal.rbi +1 -1
- data/rbi/stripe/resources/review.rbi +1 -1
- data/rbi/stripe/resources/setup_intent.rbi +111 -325
- data/rbi/stripe/resources/source.rbi +1 -1
- data/rbi/stripe/resources/subscription.rbi +99 -36
- data/rbi/stripe/resources/subscription_item.rbi +36 -2
- data/rbi/stripe/resources/subscription_schedule.rbi +138 -10
- data/rbi/stripe/resources/tax/calculation.rbi +5 -1
- data/rbi/stripe/resources/tax/calculation_line_item.rbi +3 -0
- data/rbi/stripe/resources/tax/registration.rbi +1 -1
- data/rbi/stripe/resources/tax_id.rbi +1 -3
- data/rbi/stripe/resources/tax_rate.rbi +2 -2
- data/rbi/stripe/resources/terminal/configuration.rbi +1 -3
- data/rbi/stripe/resources/terminal/location.rbi +2 -4
- data/rbi/stripe/resources/terminal/reader.rbi +265 -5
- data/rbi/stripe/resources/test_helpers/test_clock.rbi +1 -3
- data/rbi/stripe/resources/token.rbi +2 -2
- data/rbi/stripe/resources/transfer.rbi +1 -1
- data/rbi/stripe/resources/webhook_endpoint.rbi +1 -3
- data/rbi/stripe/services/account_external_account_service.rbi +2 -4
- data/rbi/stripe/services/account_login_link_service.rbi +1 -1
- data/rbi/stripe/services/account_person_service.rbi +1 -3
- data/rbi/stripe/services/account_service.rbi +40 -16
- data/rbi/stripe/services/account_session_service.rbi +86 -12
- data/rbi/stripe/services/apple_pay_domain_service.rbi +1 -3
- data/rbi/stripe/services/balance_service.rbi +1 -1
- data/rbi/stripe/services/billing/alert_service.rbi +2 -2
- data/rbi/stripe/services/charge_service.rbi +4 -4
- data/rbi/stripe/services/checkout/session_service.rbi +12 -5
- data/rbi/stripe/services/coupon_service.rbi +1 -3
- data/rbi/stripe/services/credit_note_service.rbi +7 -8
- data/rbi/stripe/services/customer_balance_transaction_service.rbi +3 -3
- data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +2 -2
- data/rbi/stripe/services/customer_payment_source_service.rbi +1 -1
- data/rbi/stripe/services/customer_service.rbi +3 -7
- data/rbi/stripe/services/customer_tax_id_service.rbi +1 -3
- data/rbi/stripe/services/dispute_service.rbi +1 -1
- data/rbi/stripe/services/file_service.rbi +1 -1
- data/rbi/stripe/services/identity/verification_session_service.rbi +5 -5
- data/rbi/stripe/services/invoice_item_service.rbi +1 -3
- data/rbi/stripe/services/invoice_service.rbi +90 -29
- data/rbi/stripe/services/issuing/authorization_service.rbi +4 -4
- data/rbi/stripe/services/issuing/card_service.rbi +1 -1
- data/rbi/stripe/services/issuing/dispute_service.rbi +2 -2
- data/rbi/stripe/services/payment_intent_service.rbi +179 -339
- data/rbi/stripe/services/payment_method_configuration_service.rbi +236 -4
- data/rbi/stripe/services/payment_method_domain_service.rbi +1 -1
- data/rbi/stripe/services/payment_method_service.rbi +43 -113
- data/rbi/stripe/services/payout_service.rbi +2 -2
- data/rbi/stripe/services/plan_service.rbi +2 -4
- data/rbi/stripe/services/price_service.rbi +2 -2
- data/rbi/stripe/services/product_feature_service.rbi +1 -3
- data/rbi/stripe/services/product_service.rbi +2 -4
- data/rbi/stripe/services/promotion_code_service.rbi +1 -1
- data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +1 -1
- data/rbi/stripe/services/radar/value_list_item_service.rbi +1 -3
- data/rbi/stripe/services/radar/value_list_service.rbi +1 -3
- data/rbi/stripe/services/setup_intent_service.rbi +110 -324
- data/rbi/stripe/services/source_service.rbi +1 -1
- data/rbi/stripe/services/subscription_item_service.rbi +28 -2
- data/rbi/stripe/services/subscription_schedule_service.rbi +107 -9
- data/rbi/stripe/services/subscription_service.rbi +85 -33
- data/rbi/stripe/services/tax/calculation_service.rbi +5 -1
- data/rbi/stripe/services/tax/registration_service.rbi +1 -1
- data/rbi/stripe/services/tax_id_service.rbi +1 -3
- data/rbi/stripe/services/terminal/configuration_service.rbi +1 -3
- data/rbi/stripe/services/terminal/location_service.rbi +2 -4
- data/rbi/stripe/services/terminal/reader_service.rbi +115 -4
- data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +33 -99
- data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +31 -0
- data/rbi/stripe/services/test_helpers/test_clock_service.rbi +1 -3
- data/rbi/stripe/services/token_service.rbi +1 -1
- data/rbi/stripe/services/transfer_service.rbi +1 -1
- data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +1 -3
- data/rbi/stripe/services/v2/core/event_destination_service.rbi +4 -12
- data/rbi/stripe/services/v2/core/event_service.rbi +1 -3
- data/rbi/stripe/services/webhook_endpoint_service.rbi +1 -3
- metadata +3 -2
@@ -1104,21 +1104,11 @@ module Stripe
|
|
1104
1104
|
}
|
1105
1105
|
def initialize(account_number: nil, institution_number: nil, transit_number: nil); end
|
1106
1106
|
end
|
1107
|
-
class Affirm < Stripe::RequestParams
|
1108
|
-
|
1109
|
-
end
|
1110
|
-
class
|
1111
|
-
|
1112
|
-
end
|
1113
|
-
class Alipay < Stripe::RequestParams
|
1114
|
-
|
1115
|
-
end
|
1116
|
-
class Alma < Stripe::RequestParams
|
1117
|
-
|
1118
|
-
end
|
1119
|
-
class AmazonPay < Stripe::RequestParams
|
1120
|
-
|
1121
|
-
end
|
1107
|
+
class Affirm < Stripe::RequestParams; end
|
1108
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
1109
|
+
class Alipay < Stripe::RequestParams; end
|
1110
|
+
class Alma < Stripe::RequestParams; end
|
1111
|
+
class AmazonPay < Stripe::RequestParams; end
|
1122
1112
|
class AuBecsDebit < Stripe::RequestParams
|
1123
1113
|
# The account number for the bank account.
|
1124
1114
|
sig { returns(String) }
|
@@ -1139,12 +1129,8 @@ module Stripe
|
|
1139
1129
|
sig { params(account_number: T.nilable(String), sort_code: T.nilable(String)).void }
|
1140
1130
|
def initialize(account_number: nil, sort_code: nil); end
|
1141
1131
|
end
|
1142
|
-
class Bancontact < Stripe::RequestParams
|
1143
|
-
|
1144
|
-
end
|
1145
|
-
class Billie < Stripe::RequestParams
|
1146
|
-
|
1147
|
-
end
|
1132
|
+
class Bancontact < Stripe::RequestParams; end
|
1133
|
+
class Billie < Stripe::RequestParams; end
|
1148
1134
|
class BillingDetails < Stripe::RequestParams
|
1149
1135
|
class Address < Stripe::RequestParams
|
1150
1136
|
# City, district, suburb, town, or village.
|
@@ -1199,9 +1185,7 @@ module Stripe
|
|
1199
1185
|
}
|
1200
1186
|
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end
|
1201
1187
|
end
|
1202
|
-
class Blik < Stripe::RequestParams
|
1203
|
-
|
1204
|
-
end
|
1188
|
+
class Blik < Stripe::RequestParams; end
|
1205
1189
|
class Boleto < Stripe::RequestParams
|
1206
1190
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
1207
1191
|
sig { returns(String) }
|
@@ -1209,12 +1193,8 @@ module Stripe
|
|
1209
1193
|
sig { params(tax_id: String).void }
|
1210
1194
|
def initialize(tax_id: nil); end
|
1211
1195
|
end
|
1212
|
-
class Cashapp < Stripe::RequestParams
|
1213
|
-
|
1214
|
-
end
|
1215
|
-
class CustomerBalance < Stripe::RequestParams
|
1216
|
-
|
1217
|
-
end
|
1196
|
+
class Cashapp < Stripe::RequestParams; end
|
1197
|
+
class CustomerBalance < Stripe::RequestParams; end
|
1218
1198
|
class Eps < Stripe::RequestParams
|
1219
1199
|
# The customer's bank.
|
1220
1200
|
sig { returns(T.nilable(String)) }
|
@@ -1232,12 +1212,8 @@ module Stripe
|
|
1232
1212
|
sig { params(account_holder_type: T.nilable(String), bank: String).void }
|
1233
1213
|
def initialize(account_holder_type: nil, bank: nil); end
|
1234
1214
|
end
|
1235
|
-
class Giropay < Stripe::RequestParams
|
1236
|
-
|
1237
|
-
end
|
1238
|
-
class Grabpay < Stripe::RequestParams
|
1239
|
-
|
1240
|
-
end
|
1215
|
+
class Giropay < Stripe::RequestParams; end
|
1216
|
+
class Grabpay < Stripe::RequestParams; end
|
1241
1217
|
class Ideal < Stripe::RequestParams
|
1242
1218
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
1243
1219
|
sig { returns(T.nilable(String)) }
|
@@ -1245,12 +1221,8 @@ module Stripe
|
|
1245
1221
|
sig { params(bank: T.nilable(String)).void }
|
1246
1222
|
def initialize(bank: nil); end
|
1247
1223
|
end
|
1248
|
-
class InteracPresent < Stripe::RequestParams
|
1249
|
-
|
1250
|
-
end
|
1251
|
-
class KakaoPay < Stripe::RequestParams
|
1252
|
-
|
1253
|
-
end
|
1224
|
+
class InteracPresent < Stripe::RequestParams; end
|
1225
|
+
class KakaoPay < Stripe::RequestParams; end
|
1254
1226
|
class Klarna < Stripe::RequestParams
|
1255
1227
|
class Dob < Stripe::RequestParams
|
1256
1228
|
# The day of birth, between 1 and 31.
|
@@ -1275,21 +1247,11 @@ module Stripe
|
|
1275
1247
|
}
|
1276
1248
|
def initialize(dob: nil); end
|
1277
1249
|
end
|
1278
|
-
class Konbini < Stripe::RequestParams
|
1279
|
-
|
1280
|
-
end
|
1281
|
-
class
|
1282
|
-
|
1283
|
-
end
|
1284
|
-
class Link < Stripe::RequestParams
|
1285
|
-
|
1286
|
-
end
|
1287
|
-
class Mobilepay < Stripe::RequestParams
|
1288
|
-
|
1289
|
-
end
|
1290
|
-
class Multibanco < Stripe::RequestParams
|
1291
|
-
|
1292
|
-
end
|
1250
|
+
class Konbini < Stripe::RequestParams; end
|
1251
|
+
class KrCard < Stripe::RequestParams; end
|
1252
|
+
class Link < Stripe::RequestParams; end
|
1253
|
+
class Mobilepay < Stripe::RequestParams; end
|
1254
|
+
class Multibanco < Stripe::RequestParams; end
|
1293
1255
|
class NaverPay < Stripe::RequestParams
|
1294
1256
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
1295
1257
|
sig { returns(T.nilable(String)) }
|
@@ -1328,9 +1290,7 @@ module Stripe
|
|
1328
1290
|
suffix: nil
|
1329
1291
|
); end
|
1330
1292
|
end
|
1331
|
-
class Oxxo < Stripe::RequestParams
|
1332
|
-
|
1333
|
-
end
|
1293
|
+
class Oxxo < Stripe::RequestParams; end
|
1334
1294
|
class P24 < Stripe::RequestParams
|
1335
1295
|
# The customer's bank.
|
1336
1296
|
sig { returns(T.nilable(String)) }
|
@@ -1338,24 +1298,12 @@ module Stripe
|
|
1338
1298
|
sig { params(bank: T.nilable(String)).void }
|
1339
1299
|
def initialize(bank: nil); end
|
1340
1300
|
end
|
1341
|
-
class PayByBank < Stripe::RequestParams
|
1342
|
-
|
1343
|
-
end
|
1344
|
-
class
|
1345
|
-
|
1346
|
-
end
|
1347
|
-
class Paynow < Stripe::RequestParams
|
1348
|
-
|
1349
|
-
end
|
1350
|
-
class Paypal < Stripe::RequestParams
|
1351
|
-
|
1352
|
-
end
|
1353
|
-
class Pix < Stripe::RequestParams
|
1354
|
-
|
1355
|
-
end
|
1356
|
-
class Promptpay < Stripe::RequestParams
|
1357
|
-
|
1358
|
-
end
|
1301
|
+
class PayByBank < Stripe::RequestParams; end
|
1302
|
+
class Payco < Stripe::RequestParams; end
|
1303
|
+
class Paynow < Stripe::RequestParams; end
|
1304
|
+
class Paypal < Stripe::RequestParams; end
|
1305
|
+
class Pix < Stripe::RequestParams; end
|
1306
|
+
class Promptpay < Stripe::RequestParams; end
|
1359
1307
|
class RadarOptions < Stripe::RequestParams
|
1360
1308
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
1361
1309
|
sig { returns(T.nilable(String)) }
|
@@ -1363,15 +1311,9 @@ module Stripe
|
|
1363
1311
|
sig { params(session: T.nilable(String)).void }
|
1364
1312
|
def initialize(session: nil); end
|
1365
1313
|
end
|
1366
|
-
class RevolutPay < Stripe::RequestParams
|
1367
|
-
|
1368
|
-
end
|
1369
|
-
class SamsungPay < Stripe::RequestParams
|
1370
|
-
|
1371
|
-
end
|
1372
|
-
class Satispay < Stripe::RequestParams
|
1373
|
-
|
1374
|
-
end
|
1314
|
+
class RevolutPay < Stripe::RequestParams; end
|
1315
|
+
class SamsungPay < Stripe::RequestParams; end
|
1316
|
+
class Satispay < Stripe::RequestParams; end
|
1375
1317
|
class SepaDebit < Stripe::RequestParams
|
1376
1318
|
# IBAN of the bank account.
|
1377
1319
|
sig { returns(String) }
|
@@ -1386,12 +1328,8 @@ module Stripe
|
|
1386
1328
|
sig { params(country: String).void }
|
1387
1329
|
def initialize(country: nil); end
|
1388
1330
|
end
|
1389
|
-
class Swish < Stripe::RequestParams
|
1390
|
-
|
1391
|
-
end
|
1392
|
-
class Twint < Stripe::RequestParams
|
1393
|
-
|
1394
|
-
end
|
1331
|
+
class Swish < Stripe::RequestParams; end
|
1332
|
+
class Twint < Stripe::RequestParams; end
|
1395
1333
|
class UsBankAccount < Stripe::RequestParams
|
1396
1334
|
# Account holder type: individual or company.
|
1397
1335
|
sig { returns(T.nilable(String)) }
|
@@ -1419,12 +1357,8 @@ module Stripe
|
|
1419
1357
|
routing_number: nil
|
1420
1358
|
); end
|
1421
1359
|
end
|
1422
|
-
class WechatPay < Stripe::RequestParams
|
1423
|
-
|
1424
|
-
end
|
1425
|
-
class Zip < Stripe::RequestParams
|
1426
|
-
|
1427
|
-
end
|
1360
|
+
class WechatPay < Stripe::RequestParams; end
|
1361
|
+
class Zip < Stripe::RequestParams; end
|
1428
1362
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1429
1363
|
sig {
|
1430
1364
|
returns(T.nilable(::Stripe::ConfirmationToken::CreateParams::PaymentMethodData::AcssDebit))
|
@@ -8,7 +8,7 @@ module Stripe
|
|
8
8
|
# Country Specs API makes these rules available to your integration.
|
9
9
|
#
|
10
10
|
# You can also view the information from this API call as [an online
|
11
|
-
# guide](https://stripe.com/docs/connect/required-verification-information).
|
11
|
+
# guide](https://docs.stripe.com/docs/connect/required-verification-information).
|
12
12
|
class CountrySpec < APIResource
|
13
13
|
class VerificationFields < Stripe::StripeObject
|
14
14
|
class Company < Stripe::StripeObject
|
@@ -71,9 +71,7 @@ module Stripe
|
|
71
71
|
# Always true for a deleted object
|
72
72
|
sig { returns(T::Boolean) }
|
73
73
|
attr_reader :deleted
|
74
|
-
class DeleteParams < Stripe::RequestParams
|
75
|
-
|
76
|
-
end
|
74
|
+
class DeleteParams < Stripe::RequestParams; end
|
77
75
|
class UpdateParams < Stripe::RequestParams
|
78
76
|
class CurrencyOptions < Stripe::RequestParams
|
79
77
|
# A positive integer representing the amount to subtract from an invoice total.
|
@@ -152,6 +152,12 @@ module Stripe
|
|
152
152
|
# The link to download the PDF of the credit note.
|
153
153
|
sig { returns(String) }
|
154
154
|
attr_reader :pdf
|
155
|
+
# The amount of the credit note that was refunded to the customer, credited to the customer's balance, credited outside of Stripe, or any combination thereof.
|
156
|
+
sig { returns(Integer) }
|
157
|
+
attr_reader :post_payment_amount
|
158
|
+
# The amount of the credit note by which the invoice's `amount_remaining` and `amount_due` were reduced.
|
159
|
+
sig { returns(Integer) }
|
160
|
+
attr_reader :pre_payment_amount
|
155
161
|
# The pretax credit amounts (ex: discount, credit grants, etc) for all line items.
|
156
162
|
sig { returns(T::Array[PretaxCreditAmount]) }
|
157
163
|
attr_reader :pretax_credit_amounts
|
@@ -689,20 +695,19 @@ module Stripe
|
|
689
695
|
sig { params(expand: T.nilable(T::Array[String])).void }
|
690
696
|
def initialize(expand: nil); end
|
691
697
|
end
|
692
|
-
# Issue a credit note to adjust the amount of a finalized invoice.
|
693
|
-
#
|
694
|
-
# in any combination of the following:
|
698
|
+
# Issue a credit note to adjust the amount of a finalized invoice. A credit note will first reduce the invoice's amount_remaining (and amount_due), but not below zero.
|
699
|
+
# This amount is indicated by the credit note's pre_payment_amount. The excess amount is indicated by post_payment_amount, and it can result in any combination of the following:
|
695
700
|
#
|
696
701
|
#
|
697
|
-
#
|
702
|
+
# Refunds: create a new refund (using refund_amount) or link existing refunds (using refunds).
|
698
703
|
# Customer balance credit: credit the customer's balance (using credit_amount) which will be automatically applied to their next invoice when it's finalized.
|
699
704
|
# Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using out_of_band_amount).
|
700
705
|
#
|
701
706
|
#
|
702
|
-
#
|
707
|
+
# The sum of refunds, customer balance credits, and outside of Stripe credits must equal the post_payment_amount.
|
703
708
|
#
|
704
|
-
# You may issue multiple credit notes for an invoice. Each credit note
|
705
|
-
# or
|
709
|
+
# You may issue multiple credit notes for an invoice. Each credit note may increment the invoice's pre_payment_credit_notes_amount,
|
710
|
+
# post_payment_credit_notes_amount, or both, depending on the invoice's amount_remaining at the time of credit note creation.
|
706
711
|
sig {
|
707
712
|
params(params: T.any(::Stripe::CreditNote::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote)
|
708
713
|
}
|
@@ -732,13 +737,13 @@ module Stripe
|
|
732
737
|
}
|
733
738
|
def self.update(id, params = {}, opts = {}); end
|
734
739
|
|
735
|
-
# Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
|
740
|
+
# Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
|
736
741
|
sig {
|
737
742
|
params(params: T.any(::Stripe::CreditNote::VoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote)
|
738
743
|
}
|
739
744
|
def void_credit_note(params = {}, opts = {}); end
|
740
745
|
|
741
|
-
# Marks a credit note as void. Learn more about [voiding credit notes](https://stripe.com/docs/billing/invoices/credit-notes#voiding).
|
746
|
+
# Marks a credit note as void. Learn more about [voiding credit notes](https://docs.stripe.com/docs/billing/invoices/credit-notes#voiding).
|
742
747
|
sig {
|
743
748
|
params(id: String, params: T.any(::Stripe::CreditNote::VoidCreditNoteParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::CreditNote)
|
744
749
|
}
|
@@ -210,9 +210,7 @@ module Stripe
|
|
210
210
|
# Always true for a deleted object
|
211
211
|
sig { returns(T::Boolean) }
|
212
212
|
attr_reader :deleted
|
213
|
-
class DeleteParams < Stripe::RequestParams
|
214
|
-
|
215
|
-
end
|
213
|
+
class DeleteParams < Stripe::RequestParams; end
|
216
214
|
class UpdateParams < Stripe::RequestParams
|
217
215
|
class Address < Stripe::RequestParams
|
218
216
|
# City, district, suburb, town, or village.
|
@@ -459,9 +457,7 @@ module Stripe
|
|
459
457
|
validate: nil
|
460
458
|
); end
|
461
459
|
end
|
462
|
-
class DeleteDiscountParams < Stripe::RequestParams
|
463
|
-
|
464
|
-
end
|
460
|
+
class DeleteDiscountParams < Stripe::RequestParams; end
|
465
461
|
class ListParams < Stripe::RequestParams
|
466
462
|
class Created < Stripe::RequestParams
|
467
463
|
# Minimum value to filter by (exclusive)
|
@@ -6,9 +6,9 @@ module Stripe
|
|
6
6
|
# A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
|
7
7
|
# control over a Customer.
|
8
8
|
#
|
9
|
-
# Related guides: [Customer Session with the Payment Element](https://stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
|
10
|
-
# [Customer Session with the Pricing Table](https://stripe.com/payments/checkout/pricing-table#customer-session),
|
11
|
-
# [Customer Session with the Buy Button](https://stripe.com/payment-links/buy-button#pass-an-existing-customer).
|
9
|
+
# Related guides: [Customer Session with the Payment Element](https://docs.stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
|
10
|
+
# [Customer Session with the Pricing Table](https://docs.stripe.com/payments/checkout/pricing-table#customer-session),
|
11
|
+
# [Customer Session with the Buy Button](https://docs.stripe.com/payment-links/buy-button#pass-an-existing-customer).
|
12
12
|
class CustomerSession < APIResource
|
13
13
|
class Components < Stripe::StripeObject
|
14
14
|
class BuyButton < Stripe::StripeObject
|
@@ -340,7 +340,7 @@ module Stripe
|
|
340
340
|
# Attribute for field payment_method_details
|
341
341
|
sig { returns(PaymentMethodDetails) }
|
342
342
|
attr_reader :payment_method_details
|
343
|
-
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/docs/disputes/categories).
|
343
|
+
# Reason given by cardholder for dispute. Possible values are `bank_cannot_process`, `check_returned`, `credit_not_processed`, `customer_initiated`, `debit_not_authorized`, `duplicate`, `fraudulent`, `general`, `incorrect_account_details`, `insufficient_funds`, `noncompliant`, `product_not_received`, `product_unacceptable`, `subscription_canceled`, or `unrecognized`. Learn more about [dispute reasons](https://stripe.com/docs/disputes/categories).
|
344
344
|
sig { returns(String) }
|
345
345
|
attr_reader :reason
|
346
346
|
# Current status of dispute. Possible values are `warning_needs_response`, `warning_under_review`, `warning_closed`, `needs_response`, `under_review`, `won`, or `lost`.
|
@@ -752,7 +752,7 @@ module Stripe
|
|
752
752
|
|
753
753
|
# When you get a dispute, contacting your customer is always the best first step. If that doesn't work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your [dashboard](https://dashboard.stripe.com/disputes), but if you prefer, you can use the API to submit evidence programmatically.
|
754
754
|
#
|
755
|
-
# Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://stripe.com/docs/disputes/categories).
|
755
|
+
# Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our [guide to dispute types](https://docs.stripe.com/docs/disputes/categories).
|
756
756
|
sig {
|
757
757
|
params(dispute: String, params: T.any(::Stripe::Dispute::UpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Dispute)
|
758
758
|
}
|
@@ -56,7 +56,7 @@ module Stripe
|
|
56
56
|
# The Stripe API version used to render `data`. This property is populated only for events on or after October 31, 2014.
|
57
57
|
sig { returns(T.nilable(String)) }
|
58
58
|
attr_reader :api_version
|
59
|
-
#
|
59
|
+
# Authentication context needed to fetch the event or related object.
|
60
60
|
sig { returns(String) }
|
61
61
|
attr_reader :context
|
62
62
|
# Time at which the object was created. Measured in seconds since the Unix epoch.
|
@@ -7,7 +7,7 @@ module Stripe
|
|
7
7
|
# files with the [create file](https://stripe.com/docs/api#create_file) request
|
8
8
|
# (for example, when uploading dispute evidence). Stripe also
|
9
9
|
# creates files independently (for example, the results of a [Sigma scheduled
|
10
|
-
# query](https://stripe.com/
|
10
|
+
# query](https://docs.stripe.com/api#scheduled_queries)).
|
11
11
|
#
|
12
12
|
# Related guide: [File upload guide](https://stripe.com/docs/file-upload)
|
13
13
|
class File < APIResource
|
@@ -108,12 +108,21 @@ module Stripe
|
|
108
108
|
# Document ID number.
|
109
109
|
sig { returns(T.nilable(String)) }
|
110
110
|
attr_reader :number
|
111
|
+
# Sex of the person in the document.
|
112
|
+
sig { returns(T.nilable(String)) }
|
113
|
+
attr_reader :sex
|
111
114
|
# Status of this `document` check.
|
112
115
|
sig { returns(String) }
|
113
116
|
attr_reader :status
|
114
117
|
# Type of the document.
|
115
118
|
sig { returns(T.nilable(String)) }
|
116
119
|
attr_reader :type
|
120
|
+
# Place of birth as it appears in the document.
|
121
|
+
sig { returns(T.nilable(String)) }
|
122
|
+
attr_reader :unparsed_place_of_birth
|
123
|
+
# Sex as it appears in the document.
|
124
|
+
sig { returns(T.nilable(String)) }
|
125
|
+
attr_reader :unparsed_sex
|
117
126
|
end
|
118
127
|
class Email < Stripe::StripeObject
|
119
128
|
class Error < Stripe::StripeObject
|
@@ -6,11 +6,11 @@ module Stripe
|
|
6
6
|
module Identity
|
7
7
|
# A VerificationSession guides you through the process of collecting and verifying the identities
|
8
8
|
# of your users. It contains details about the type of verification, such as what [verification
|
9
|
-
# check](https://stripe.com/docs/identity/verification-checks) to perform. Only create one VerificationSession for
|
9
|
+
# check](https://docs.stripe.com/docs/identity/verification-checks) to perform. Only create one VerificationSession for
|
10
10
|
# each verification in your system.
|
11
11
|
#
|
12
12
|
# A VerificationSession transitions through [multiple
|
13
|
-
# statuses](https://stripe.com/docs/identity/how-sessions-work) throughout its lifetime as it progresses through
|
13
|
+
# statuses](https://docs.stripe.com/docs/identity/how-sessions-work) throughout its lifetime as it progresses through
|
14
14
|
# the verification flow. The VerificationSession contains the user's verified data after
|
15
15
|
# verification checks are complete.
|
16
16
|
#
|
@@ -132,6 +132,15 @@ module Stripe
|
|
132
132
|
# The user's verified phone number
|
133
133
|
sig { returns(T.nilable(String)) }
|
134
134
|
attr_reader :phone
|
135
|
+
# The user's verified sex.
|
136
|
+
sig { returns(T.nilable(String)) }
|
137
|
+
attr_reader :sex
|
138
|
+
# The user's verified place of birth as it appears in the document.
|
139
|
+
sig { returns(T.nilable(String)) }
|
140
|
+
attr_reader :unparsed_place_of_birth
|
141
|
+
# The user's verified sex as it appears in the document.
|
142
|
+
sig { returns(T.nilable(String)) }
|
143
|
+
attr_reader :unparsed_sex
|
135
144
|
end
|
136
145
|
# A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
|
137
146
|
sig { returns(T.nilable(String)) }
|
@@ -422,17 +431,17 @@ module Stripe
|
|
422
431
|
sig { params(expand: T.nilable(T::Array[String])).void }
|
423
432
|
def initialize(expand: nil); end
|
424
433
|
end
|
425
|
-
# A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
|
434
|
+
# A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
|
426
435
|
#
|
427
|
-
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
|
436
|
+
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
|
428
437
|
sig {
|
429
438
|
params(params: T.any(::Stripe::Identity::VerificationSession::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession)
|
430
439
|
}
|
431
440
|
def cancel(params = {}, opts = {}); end
|
432
441
|
|
433
|
-
# A VerificationSession object can be canceled when it is in requires_input [status](https://stripe.com/docs/identity/how-sessions-work).
|
442
|
+
# A VerificationSession object can be canceled when it is in requires_input [status](https://docs.stripe.com/docs/identity/how-sessions-work).
|
434
443
|
#
|
435
|
-
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://stripe.com/docs/identity/verification-sessions#cancel).
|
444
|
+
# Once canceled, future submission attempts are disabled. This cannot be undone. [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#cancel).
|
436
445
|
sig {
|
437
446
|
params(session: String, params: T.any(::Stripe::Identity::VerificationSession::CancelParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession)
|
438
447
|
}
|
@@ -444,7 +453,7 @@ module Stripe
|
|
444
453
|
#
|
445
454
|
# If your API key is in test mode, verification checks won't actually process, though everything else will occur as if in live mode.
|
446
455
|
#
|
447
|
-
# Related guide: [Verify your users' identity documents](https://stripe.com/docs/identity/verify-identity-documents)
|
456
|
+
# Related guide: [Verify your users' identity documents](https://docs.stripe.com/docs/identity/verify-identity-documents)
|
448
457
|
sig {
|
449
458
|
params(params: T.any(::Stripe::Identity::VerificationSession::CreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession)
|
450
459
|
}
|
@@ -461,7 +470,7 @@ module Stripe
|
|
461
470
|
# request logs, etc.
|
462
471
|
#
|
463
472
|
# A VerificationSession object can be redacted when it is in requires_input or verified
|
464
|
-
# [status](https://stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
473
|
+
# [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
465
474
|
# state will automatically cancel it.
|
466
475
|
#
|
467
476
|
# The redaction process may take up to four days. When the redaction process is in progress, the
|
@@ -474,7 +483,7 @@ module Stripe
|
|
474
483
|
# placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
|
475
484
|
# used for any purpose.
|
476
485
|
#
|
477
|
-
# [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
|
486
|
+
# [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
|
478
487
|
sig {
|
479
488
|
params(params: T.any(::Stripe::Identity::VerificationSession::RedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession)
|
480
489
|
}
|
@@ -485,7 +494,7 @@ module Stripe
|
|
485
494
|
# request logs, etc.
|
486
495
|
#
|
487
496
|
# A VerificationSession object can be redacted when it is in requires_input or verified
|
488
|
-
# [status](https://stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
497
|
+
# [status](https://docs.stripe.com/docs/identity/how-sessions-work). Redacting a VerificationSession in requires_action
|
489
498
|
# state will automatically cancel it.
|
490
499
|
#
|
491
500
|
# The redaction process may take up to four days. When the redaction process is in progress, the
|
@@ -498,7 +507,7 @@ module Stripe
|
|
498
507
|
# placeholder. The metadata field will also be erased. Redacted objects cannot be updated or
|
499
508
|
# used for any purpose.
|
500
509
|
#
|
501
|
-
# [Learn more](https://stripe.com/docs/identity/verification-sessions#redact).
|
510
|
+
# [Learn more](https://docs.stripe.com/docs/identity/verification-sessions#redact).
|
502
511
|
sig {
|
503
512
|
params(session: String, params: T.any(::Stripe::Identity::VerificationSession::RedactParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(Stripe::Identity::VerificationSession)
|
504
513
|
}
|