stripe 20.2.0.pre.alpha.1 → 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.
Files changed (143) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +28 -0
  3. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  4. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  5. data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
  6. data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
  7. data/lib/stripe/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
  8. data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
  9. data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
  10. data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
  11. data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
  12. data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
  13. data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
  14. data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
  15. data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
  16. data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
  17. data/lib/stripe/object_types.rb +5 -0
  18. data/lib/stripe/params/account_session_create_params.rb +200 -0
  19. data/lib/stripe/params/checkout/session_create_params.rb +46 -1
  20. data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
  21. data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
  22. data/lib/stripe/params/customer_update_params.rb +55 -0
  23. data/lib/stripe/params/fx_quote_create_params.rb +2 -2
  24. data/lib/stripe/params/invoice_create_params.rb +8 -1
  25. data/lib/stripe/params/invoice_update_params.rb +8 -1
  26. data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +58 -1
  27. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
  28. data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -1
  29. data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
  30. data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
  31. data/lib/stripe/params/payment_intent_create_params.rb +91 -1
  32. data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
  33. data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
  34. data/lib/stripe/params/payment_intent_update_params.rb +91 -1
  35. data/lib/stripe/params/payment_method_configuration_create_params.rb +42 -0
  36. data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
  37. data/lib/stripe/params/payment_method_create_params.rb +21 -0
  38. data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
  39. data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
  40. data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
  41. data/lib/stripe/params/quote_create_params.rb +1 -1
  42. data/lib/stripe/params/quote_update_params.rb +1 -1
  43. data/lib/stripe/params/radar/payment_evaluation_create_params.rb +19 -1
  44. data/lib/stripe/params/refund_create_params.rb +4 -0
  45. data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
  46. data/lib/stripe/params/setup_intent_create_params.rb +50 -1
  47. data/lib/stripe/params/setup_intent_update_params.rb +34 -1
  48. data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -0
  49. data/lib/stripe/params/subscription_create_params.rb +4 -0
  50. data/lib/stripe/params/subscription_list_params.rb +5 -1
  51. data/lib/stripe/params/subscription_update_params.rb +4 -0
  52. data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
  53. data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
  54. data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
  55. data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
  56. data/lib/stripe/params/tax/form_create_params.rb +504 -0
  57. data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
  58. data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
  59. data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
  60. data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
  61. data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
  62. data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
  63. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +22 -1
  64. data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
  65. data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
  66. data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
  67. data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
  68. data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
  69. data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
  70. data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
  71. data/lib/stripe/params.rb +27 -0
  72. data/lib/stripe/resources/account_session.rb +81 -0
  73. data/lib/stripe/resources/apps/install.rb +1 -1
  74. data/lib/stripe/resources/balance_transaction.rb +1 -1
  75. data/lib/stripe/resources/charge.rb +373 -5
  76. data/lib/stripe/resources/checkout/session.rb +32 -0
  77. data/lib/stripe/resources/confirmation_token.rb +103 -3
  78. data/lib/stripe/resources/coupon.rb +6 -3
  79. data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
  80. data/lib/stripe/resources/identity/verification_report.rb +34 -0
  81. data/lib/stripe/resources/invoice.rb +3 -0
  82. data/lib/stripe/resources/mandate.rb +16 -0
  83. data/lib/stripe/resources/payment_attempt_record.rb +151 -2
  84. data/lib/stripe/resources/payment_intent.rb +126 -2
  85. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
  86. data/lib/stripe/resources/payment_method.rb +103 -3
  87. data/lib/stripe/resources/payment_method_configuration.rb +68 -0
  88. data/lib/stripe/resources/payment_record.rb +151 -2
  89. data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
  90. data/lib/stripe/resources/refund.rb +38 -0
  91. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  92. data/lib/stripe/resources/reserve/hold.rb +2 -2
  93. data/lib/stripe/resources/reserve/plan.rb +1 -1
  94. data/lib/stripe/resources/reserve/release.rb +1 -1
  95. data/lib/stripe/resources/setup_attempt.rb +21 -2
  96. data/lib/stripe/resources/setup_intent.rb +38 -2
  97. data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
  98. data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
  99. data/lib/stripe/resources/subscription.rb +3 -1
  100. data/lib/stripe/resources/tax/certificate.rb +81 -0
  101. data/lib/stripe/resources/tax/form.rb +11 -0
  102. data/lib/stripe/resources/tax/form_correction.rb +43 -0
  103. data/lib/stripe/resources/terminal/reader.rb +18 -1
  104. data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
  105. data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
  106. data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
  107. data/lib/stripe/resources/v2/core/account_session.rb +27 -0
  108. data/lib/stripe/resources/v2/core/event.rb +1 -1
  109. data/lib/stripe/resources/v2/core/event_base.rb +36 -0
  110. data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
  111. data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
  112. data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
  113. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +74 -1
  114. data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
  115. data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
  116. data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
  117. data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
  118. data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
  119. data/lib/stripe/resources.rb +46 -0
  120. data/lib/stripe/services/apps/install_service.rb +1 -1
  121. data/lib/stripe/services/checkout/session_service.rb +2 -0
  122. data/lib/stripe/services/reserve/hold_service.rb +2 -2
  123. data/lib/stripe/services/reserve/plan_service.rb +2 -2
  124. data/lib/stripe/services/reserve/release_service.rb +2 -2
  125. data/lib/stripe/services/tax/certificate_service.rb +52 -0
  126. data/lib/stripe/services/tax/form_service.rb +11 -0
  127. data/lib/stripe/services/tax_service.rb +2 -1
  128. data/lib/stripe/services/v2/core/vault/network_token_service.rb +1 -0
  129. data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
  130. data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
  131. data/lib/stripe/services/v2/extend_service.rb +2 -1
  132. data/lib/stripe/services/v2/money_management/received_debit_mandate_service.rb +3 -0
  133. data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
  134. data/lib/stripe/services/v2/money_management_service.rb +2 -1
  135. data/lib/stripe/services.rb +11 -0
  136. data/lib/stripe/stripe_event_notification_handler.rb +28 -0
  137. data/lib/stripe/stripe_service.rb +13 -9
  138. data/lib/stripe/version.rb +1 -1
  139. data/lib/stripe/webhook.rb +68 -3
  140. data/lib/stripe/workload_identity_exchange.rb +2 -2
  141. data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
  142. data/rbi/stripe.rbi +5856 -213
  143. metadata +32 -2
@@ -870,6 +870,23 @@ module Stripe
870
870
  end
871
871
  end
872
872
 
873
+ class RakutenPay < ::Stripe::RequestParams
874
+ class DisplayPreference < ::Stripe::RequestParams
875
+ # The account's preference for whether or not to display this payment method.
876
+ attr_accessor :preference
877
+
878
+ def initialize(preference: nil)
879
+ @preference = preference
880
+ end
881
+ end
882
+ # Whether or not the payment method should be displayed.
883
+ attr_accessor :display_preference
884
+
885
+ def initialize(display_preference: nil)
886
+ @display_preference = display_preference
887
+ end
888
+ end
889
+
873
890
  class RevolutPay < ::Stripe::RequestParams
874
891
  class DisplayPreference < ::Stripe::RequestParams
875
892
  # The account's preference for whether or not to display this payment method.
@@ -1040,6 +1057,23 @@ module Stripe
1040
1057
  end
1041
1058
  end
1042
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
+
1043
1077
  class Twint < ::Stripe::RequestParams
1044
1078
  class DisplayPreference < ::Stripe::RequestParams
1045
1079
  # The account's preference for whether or not to display this payment method.
@@ -1249,6 +1283,8 @@ module Stripe
1249
1283
  attr_accessor :promptpay
1250
1284
  # QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
1251
1285
  attr_accessor :qris
1286
+ # Rakuten Pay is a single-use payment method that requires customers to authenticate their payment. Customers pay by being redirected from your website or app, authorizing the payment with Rakuten Pay, then returning to your website or app. You get immediate notification of whether the payment succeeded or failed.
1287
+ attr_accessor :rakuten_pay
1252
1288
  # Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
1253
1289
  attr_accessor :revolut_pay
1254
1290
  # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
@@ -1269,6 +1305,8 @@ module Stripe
1269
1305
  attr_accessor :sunbit
1270
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.
1271
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
1272
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.
1273
1311
  attr_accessor :twint
1274
1312
  # Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.
@@ -1337,6 +1375,7 @@ module Stripe
1337
1375
  pix: nil,
1338
1376
  promptpay: nil,
1339
1377
  qris: nil,
1378
+ rakuten_pay: nil,
1340
1379
  revolut_pay: nil,
1341
1380
  samsung_pay: nil,
1342
1381
  satispay: nil,
@@ -1347,6 +1386,7 @@ module Stripe
1347
1386
  sofort: nil,
1348
1387
  sunbit: nil,
1349
1388
  swish: nil,
1389
+ toss_pay: nil,
1350
1390
  twint: nil,
1351
1391
  upi: nil,
1352
1392
  us_bank_account: nil,
@@ -1408,6 +1448,7 @@ module Stripe
1408
1448
  @pix = pix
1409
1449
  @promptpay = promptpay
1410
1450
  @qris = qris
1451
+ @rakuten_pay = rakuten_pay
1411
1452
  @revolut_pay = revolut_pay
1412
1453
  @samsung_pay = samsung_pay
1413
1454
  @satispay = satispay
@@ -1418,6 +1459,7 @@ module Stripe
1418
1459
  @sofort = sofort
1419
1460
  @sunbit = sunbit
1420
1461
  @swish = swish
1462
+ @toss_pay = toss_pay
1421
1463
  @twint = twint
1422
1464
  @upi = upi
1423
1465
  @us_bank_account = us_bank_account
@@ -870,6 +870,23 @@ module Stripe
870
870
  end
871
871
  end
872
872
 
873
+ class RakutenPay < ::Stripe::RequestParams
874
+ class DisplayPreference < ::Stripe::RequestParams
875
+ # The account's preference for whether or not to display this payment method.
876
+ attr_accessor :preference
877
+
878
+ def initialize(preference: nil)
879
+ @preference = preference
880
+ end
881
+ end
882
+ # Whether or not the payment method should be displayed.
883
+ attr_accessor :display_preference
884
+
885
+ def initialize(display_preference: nil)
886
+ @display_preference = display_preference
887
+ end
888
+ end
889
+
873
890
  class RevolutPay < ::Stripe::RequestParams
874
891
  class DisplayPreference < ::Stripe::RequestParams
875
892
  # The account's preference for whether or not to display this payment method.
@@ -1040,6 +1057,23 @@ module Stripe
1040
1057
  end
1041
1058
  end
1042
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
+
1043
1077
  class Twint < ::Stripe::RequestParams
1044
1078
  class DisplayPreference < ::Stripe::RequestParams
1045
1079
  # The account's preference for whether or not to display this payment method.
@@ -1249,6 +1283,8 @@ module Stripe
1249
1283
  attr_accessor :promptpay
1250
1284
  # QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
1251
1285
  attr_accessor :qris
1286
+ # Rakuten Pay is a single-use payment method that requires customers to authenticate their payment. Customers pay by being redirected from your website or app, authorizing the payment with Rakuten Pay, then returning to your website or app. You get immediate notification of whether the payment succeeded or failed.
1287
+ attr_accessor :rakuten_pay
1252
1288
  # Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
1253
1289
  attr_accessor :revolut_pay
1254
1290
  # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
@@ -1269,6 +1305,8 @@ module Stripe
1269
1305
  attr_accessor :sunbit
1270
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.
1271
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
1272
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.
1273
1311
  attr_accessor :twint
1274
1312
  # Unified Payment Interface (UPI) is India's leading payment method with exponential growth since it launched in 2016.
@@ -1337,6 +1375,7 @@ module Stripe
1337
1375
  pix: nil,
1338
1376
  promptpay: nil,
1339
1377
  qris: nil,
1378
+ rakuten_pay: nil,
1340
1379
  revolut_pay: nil,
1341
1380
  samsung_pay: nil,
1342
1381
  satispay: nil,
@@ -1347,6 +1386,7 @@ module Stripe
1347
1386
  sofort: nil,
1348
1387
  sunbit: nil,
1349
1388
  swish: nil,
1389
+ toss_pay: nil,
1350
1390
  twint: nil,
1351
1391
  upi: nil,
1352
1392
  us_bank_account: nil,
@@ -1408,6 +1448,7 @@ module Stripe
1408
1448
  @pix = pix
1409
1449
  @promptpay = promptpay
1410
1450
  @qris = qris
1451
+ @rakuten_pay = rakuten_pay
1411
1452
  @revolut_pay = revolut_pay
1412
1453
  @samsung_pay = samsung_pay
1413
1454
  @satispay = satispay
@@ -1418,6 +1459,7 @@ module Stripe
1418
1459
  @sofort = sofort
1419
1460
  @sunbit = sunbit
1420
1461
  @swish = swish
1462
+ @toss_pay = toss_pay
1421
1463
  @twint = twint
1422
1464
  @upi = upi
1423
1465
  @us_bank_account = us_bank_account
@@ -18,6 +18,7 @@ module Stripe
18
18
  end
19
19
  end
20
20
 
21
+ class AeonPay < ::Stripe::RequestParams; end
21
22
  class Affirm < ::Stripe::RequestParams; end
22
23
  class AfterpayClearpay < ::Stripe::RequestParams; end
23
24
  class Alipay < ::Stripe::RequestParams; end
@@ -36,6 +37,8 @@ module Stripe
36
37
  end
37
38
  end
38
39
 
40
+ class AuPay < ::Stripe::RequestParams; end
41
+
39
42
  class BacsDebit < ::Stripe::RequestParams
40
43
  # Account number of the bank account that the funds will be debited from.
41
44
  attr_accessor :account_number
@@ -167,6 +170,7 @@ module Stripe
167
170
  end
168
171
 
169
172
  class CustomerBalance < ::Stripe::RequestParams; end
173
+ class Dbarai < ::Stripe::RequestParams; end
170
174
 
171
175
  class Eps < ::Stripe::RequestParams
172
176
  # The customer's bank.
@@ -252,6 +256,7 @@ module Stripe
252
256
  class KrCard < ::Stripe::RequestParams; end
253
257
  class Link < ::Stripe::RequestParams; end
254
258
  class MbWay < ::Stripe::RequestParams; end
259
+ class Merpay < ::Stripe::RequestParams; end
255
260
  class Mobilepay < ::Stripe::RequestParams; end
256
261
  class Multibanco < ::Stripe::RequestParams; end
257
262
 
@@ -480,6 +485,8 @@ module Stripe
480
485
  class Zip < ::Stripe::RequestParams; end
481
486
  # If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
482
487
  attr_accessor :acss_debit
488
+ # If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
489
+ attr_accessor :aeon_pay
483
490
  # If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
484
491
  attr_accessor :affirm
485
492
  # If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
@@ -494,6 +501,8 @@ module Stripe
494
501
  attr_accessor :amazon_pay
495
502
  # If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
496
503
  attr_accessor :au_becs_debit
504
+ # If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
505
+ attr_accessor :au_pay
497
506
  # If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
498
507
  attr_accessor :bacs_debit
499
508
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
@@ -522,6 +531,8 @@ module Stripe
522
531
  attr_accessor :customer
523
532
  # If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
524
533
  attr_accessor :customer_balance
534
+ # If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
535
+ attr_accessor :dbarai
525
536
  # If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
526
537
  attr_accessor :eps
527
538
  # Specifies which fields in the response should be expanded.
@@ -556,6 +567,8 @@ module Stripe
556
567
  attr_accessor :link
557
568
  # If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
558
569
  attr_accessor :mb_way
570
+ # If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
571
+ attr_accessor :merpay
559
572
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
560
573
  attr_accessor :metadata
561
574
  # If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
@@ -641,6 +654,7 @@ module Stripe
641
654
 
642
655
  def initialize(
643
656
  acss_debit: nil,
657
+ aeon_pay: nil,
644
658
  affirm: nil,
645
659
  afterpay_clearpay: nil,
646
660
  alipay: nil,
@@ -648,6 +662,7 @@ module Stripe
648
662
  alma: nil,
649
663
  amazon_pay: nil,
650
664
  au_becs_debit: nil,
665
+ au_pay: nil,
651
666
  bacs_debit: nil,
652
667
  bancontact: nil,
653
668
  billie: nil,
@@ -662,6 +677,7 @@ module Stripe
662
677
  custom: nil,
663
678
  customer: nil,
664
679
  customer_balance: nil,
680
+ dbarai: nil,
665
681
  eps: nil,
666
682
  expand: nil,
667
683
  fpx: nil,
@@ -679,6 +695,7 @@ module Stripe
679
695
  kr_card: nil,
680
696
  link: nil,
681
697
  mb_way: nil,
698
+ merpay: nil,
682
699
  metadata: nil,
683
700
  mobilepay: nil,
684
701
  multibanco: nil,
@@ -722,6 +739,7 @@ module Stripe
722
739
  zip: nil
723
740
  )
724
741
  @acss_debit = acss_debit
742
+ @aeon_pay = aeon_pay
725
743
  @affirm = affirm
726
744
  @afterpay_clearpay = afterpay_clearpay
727
745
  @alipay = alipay
@@ -729,6 +747,7 @@ module Stripe
729
747
  @alma = alma
730
748
  @amazon_pay = amazon_pay
731
749
  @au_becs_debit = au_becs_debit
750
+ @au_pay = au_pay
732
751
  @bacs_debit = bacs_debit
733
752
  @bancontact = bancontact
734
753
  @billie = billie
@@ -743,6 +762,7 @@ module Stripe
743
762
  @custom = custom
744
763
  @customer = customer
745
764
  @customer_balance = customer_balance
765
+ @dbarai = dbarai
746
766
  @eps = eps
747
767
  @expand = expand
748
768
  @fpx = fpx
@@ -760,6 +780,7 @@ module Stripe
760
780
  @kr_card = kr_card
761
781
  @link = link
762
782
  @mb_way = mb_way
783
+ @merpay = merpay
763
784
  @metadata = metadata
764
785
  @mobilepay = mobilepay
765
786
  @multibanco = multibanco
@@ -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
 
@@ -904,7 +904,7 @@ module Stripe
904
904
  @field_encodings = { unit_amount_decimal: :decimal_string }
905
905
  end
906
906
  end
907
- # The discounts applied to this line item.
907
+ # The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
908
908
  attr_accessor :discounts
909
909
  # The ID of the price object. One of `price` or `price_data` is required.
910
910
  attr_accessor :price
@@ -899,7 +899,7 @@ module Stripe
899
899
  @field_encodings = { unit_amount_decimal: :decimal_string }
900
900
  end
901
901
  end
902
- # The discounts applied to this line item.
902
+ # The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
903
903
  attr_accessor :discounts
904
904
  # The ID of an existing line item on the quote.
905
905
  attr_accessor :id
@@ -77,6 +77,21 @@ module Stripe
77
77
  end
78
78
  end
79
79
 
80
+ class SepaDebit < ::Stripe::RequestParams
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
+ 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
87
+
88
+ def initialize(creditor_id: nil, customer_presence: nil, payment_type: nil)
89
+ @creditor_id = creditor_id
90
+ @customer_presence = customer_presence
91
+ @payment_type = payment_type
92
+ end
93
+ end
94
+
80
95
  class UsBankAccount < ::Stripe::RequestParams
81
96
  # Describes the presence of the customer during the payment.
82
97
  attr_accessor :customer_presence
@@ -92,12 +107,15 @@ module Stripe
92
107
  attr_accessor :card
93
108
  # Describes the type of money movement.
94
109
  attr_accessor :money_movement_type
110
+ # Describes SEPA debit money movement details.
111
+ attr_accessor :sepa_debit
95
112
  # Describes US bank account money movement details.
96
113
  attr_accessor :us_bank_account
97
114
 
98
- def initialize(card: nil, money_movement_type: nil, us_bank_account: nil)
115
+ def initialize(card: nil, money_movement_type: nil, sepa_debit: nil, us_bank_account: nil)
99
116
  @card = card
100
117
  @money_movement_type = money_movement_type
118
+ @sepa_debit = sepa_debit
101
119
  @us_bank_account = us_bank_account
102
120
  end
103
121
  end
@@ -59,6 +59,8 @@ module Stripe
59
59
  attr_accessor :payment_attempt_record
60
60
  # The identifier of the PaymentIntent to refund.
61
61
  attr_accessor :payment_intent
62
+ # The ID of a PaymentMethod that will receive the refund.
63
+ attr_accessor :payment_method
62
64
  # Used to create the PaymentMethod that will receive the refund.
63
65
  attr_accessor :payment_method_data
64
66
  # Payment method-specific options for the refund.
@@ -83,6 +85,7 @@ module Stripe
83
85
  origin: nil,
84
86
  payment_attempt_record: nil,
85
87
  payment_intent: nil,
88
+ payment_method: nil,
86
89
  payment_method_data: nil,
87
90
  payment_method_options: nil,
88
91
  payment_record: nil,
@@ -100,6 +103,7 @@ module Stripe
100
103
  @origin = origin
101
104
  @payment_attempt_record = payment_attempt_record
102
105
  @payment_intent = payment_intent
106
+ @payment_method = payment_method
103
107
  @payment_method_data = payment_method_data
104
108
  @payment_method_options = payment_method_options
105
109
  @payment_record = payment_record