stripe 15.2.0.pre.beta.1 → 15.3.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +92 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +10 -7
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/event_types.rb +9 -0
  9. data/lib/stripe/events/v2_core_account_link_completed_event.rb +1 -1
  10. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +1 -1
  11. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +1 -1
  12. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +1 -1
  13. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +1 -1
  14. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +1 -1
  15. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +1 -1
  16. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +1 -1
  17. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +1 -1
  18. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +1 -1
  19. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +1 -1
  20. data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +21 -0
  21. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  22. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +21 -0
  23. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  24. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  25. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  26. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  27. data/lib/stripe/object_types.rb +1 -3
  28. data/lib/stripe/resources/account.rb +47 -20
  29. data/lib/stripe/resources/account_session.rb +85 -24
  30. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  31. data/lib/stripe/resources/balance.rb +42 -0
  32. data/lib/stripe/resources/balance_transaction.rb +2 -0
  33. data/lib/stripe/resources/bank_account.rb +2 -2
  34. data/lib/stripe/resources/billing_portal/session.rb +1 -1
  35. data/lib/stripe/resources/capability.rb +1 -1
  36. data/lib/stripe/resources/charge.rb +85 -9
  37. data/lib/stripe/resources/checkout/session.rb +22 -6
  38. data/lib/stripe/resources/confirmation_token.rb +37 -97
  39. data/lib/stripe/resources/country_spec.rb +1 -1
  40. data/lib/stripe/resources/coupon.rb +1 -2
  41. data/lib/stripe/resources/credit_note.rb +10 -11
  42. data/lib/stripe/resources/customer.rb +2 -4
  43. data/lib/stripe/resources/customer_session.rb +3 -3
  44. data/lib/stripe/resources/dispute.rb +2 -2
  45. data/lib/stripe/resources/event.rb +1 -1
  46. data/lib/stripe/resources/file.rb +1 -1
  47. data/lib/stripe/resources/financial_connections/account.rb +2 -0
  48. data/lib/stripe/resources/financial_connections/institution.rb +2 -0
  49. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  50. data/lib/stripe/resources/identity/verification_session.rb +17 -11
  51. data/lib/stripe/resources/invoice.rb +70 -43
  52. data/lib/stripe/resources/invoice_item.rb +2 -3
  53. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  54. data/lib/stripe/resources/invoice_payment.rb +9 -2
  55. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  56. data/lib/stripe/resources/issuing/card.rb +1 -1
  57. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  58. data/lib/stripe/resources/order.rb +2 -55
  59. data/lib/stripe/resources/payment_attempt_record.rb +8 -0
  60. data/lib/stripe/resources/payment_intent.rb +439 -411
  61. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -0
  62. data/lib/stripe/resources/payment_method.rb +50 -113
  63. data/lib/stripe/resources/payment_method_configuration.rb +297 -2
  64. data/lib/stripe/resources/payment_method_domain.rb +2 -2
  65. data/lib/stripe/resources/payment_record.rb +8 -0
  66. data/lib/stripe/resources/payout.rb +4 -4
  67. data/lib/stripe/resources/person.rb +2 -2
  68. data/lib/stripe/resources/plan.rb +2 -3
  69. data/lib/stripe/resources/price.rb +1 -1
  70. data/lib/stripe/resources/privacy/redaction_job.rb +52 -29
  71. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +12 -4
  72. data/lib/stripe/resources/product.rb +1 -61
  73. data/lib/stripe/resources/quote.rb +1 -1
  74. data/lib/stripe/resources/quote_preview_invoice.rb +2 -2
  75. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +26 -1
  76. data/lib/stripe/resources/radar/value_list.rb +1 -2
  77. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  78. data/lib/stripe/resources/refund.rb +6 -1
  79. data/lib/stripe/resources/reversal.rb +1 -1
  80. data/lib/stripe/resources/review.rb +1 -1
  81. data/lib/stripe/resources/setup_intent.rb +123 -311
  82. data/lib/stripe/resources/source.rb +1 -1
  83. data/lib/stripe/resources/subscription.rb +132 -37
  84. data/lib/stripe/resources/subscription_item.rb +33 -0
  85. data/lib/stripe/resources/subscription_schedule.rb +120 -5
  86. data/lib/stripe/resources/tax/association.rb +8 -31
  87. data/lib/stripe/resources/tax/calculation.rb +4 -0
  88. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  89. data/lib/stripe/resources/tax/registration.rb +1 -1
  90. data/lib/stripe/resources/tax_id.rb +1 -2
  91. data/lib/stripe/resources/tax_rate.rb +2 -2
  92. data/lib/stripe/resources/terminal/configuration.rb +1 -2
  93. data/lib/stripe/resources/terminal/location.rb +2 -3
  94. data/lib/stripe/resources/terminal/reader.rb +26 -4
  95. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  96. data/lib/stripe/resources/token.rb +2 -2
  97. data/lib/stripe/resources/transfer.rb +1 -1
  98. data/lib/stripe/resources/v2/core/account.rb +5 -5
  99. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -20
  100. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -24
  101. data/lib/stripe/resources/v2/payments/off_session_payment.rb +74 -0
  102. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  103. data/lib/stripe/resources.rb +8 -3
  104. data/lib/stripe/services/account_external_account_service.rb +2 -3
  105. data/lib/stripe/services/account_login_link_service.rb +1 -1
  106. data/lib/stripe/services/account_person_service.rb +1 -2
  107. data/lib/stripe/services/account_service.rb +38 -13
  108. data/lib/stripe/services/account_session_service.rb +49 -24
  109. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  110. data/lib/stripe/services/balance_service.rb +1 -1
  111. data/lib/stripe/services/balance_settings_service.rb +2 -2
  112. data/lib/stripe/services/charge_service.rb +76 -8
  113. data/lib/stripe/services/checkout/session_service.rb +14 -6
  114. data/lib/stripe/services/coupon_service.rb +1 -2
  115. data/lib/stripe/services/credit_note_service.rb +7 -8
  116. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  117. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  118. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  119. data/lib/stripe/services/customer_service.rb +3 -5
  120. data/lib/stripe/services/customer_tax_id_service.rb +1 -2
  121. data/lib/stripe/services/dispute_service.rb +1 -1
  122. data/lib/stripe/services/external_account_service.rb +2 -3
  123. data/lib/stripe/services/file_service.rb +1 -1
  124. data/lib/stripe/services/identity/verification_session_service.rb +5 -5
  125. data/lib/stripe/services/invoice_item_service.rb +1 -2
  126. data/lib/stripe/services/invoice_service.rb +65 -35
  127. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  128. data/lib/stripe/services/issuing/card_service.rb +1 -1
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/order_service.rb +1 -33
  131. data/lib/stripe/services/payment_intent_service.rb +385 -386
  132. data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
  133. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  134. data/lib/stripe/services/payment_method_service.rb +47 -110
  135. data/lib/stripe/services/payout_service.rb +2 -2
  136. data/lib/stripe/services/plan_service.rb +2 -3
  137. data/lib/stripe/services/price_service.rb +2 -2
  138. data/lib/stripe/services/privacy/redaction_job_service.rb +22 -13
  139. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +1 -1
  140. data/lib/stripe/services/product_feature_service.rb +1 -2
  141. data/lib/stripe/services/product_service.rb +2 -41
  142. data/lib/stripe/services/promotion_code_service.rb +1 -1
  143. data/lib/stripe/services/quote_service.rb +1 -1
  144. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  145. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  146. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  147. data/lib/stripe/services/setup_intent_service.rb +122 -310
  148. data/lib/stripe/services/source_service.rb +1 -1
  149. data/lib/stripe/services/subscription_item_service.rb +26 -0
  150. data/lib/stripe/services/subscription_schedule_service.rb +94 -4
  151. data/lib/stripe/services/subscription_service.rb +103 -33
  152. data/lib/stripe/services/tax/calculation_service.rb +4 -0
  153. data/lib/stripe/services/tax/registration_service.rb +1 -1
  154. data/lib/stripe/services/tax_id_service.rb +1 -2
  155. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  156. data/lib/stripe/services/terminal/location_service.rb +2 -3
  157. data/lib/stripe/services/terminal/reader_service.rb +17 -3
  158. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +37 -97
  159. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  160. data/lib/stripe/services/token_service.rb +1 -1
  161. data/lib/stripe/services/transfer_service.rb +1 -1
  162. data/lib/stripe/services/v1_services.rb +1 -2
  163. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  164. data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -4
  165. data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
  166. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  167. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +3 -7
  168. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +2 -4
  169. data/lib/stripe/services/v2/money_management/adjustment_service.rb +1 -2
  170. data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -2
  171. data/lib/stripe/services/v2/money_management/financial_address_service.rb +1 -1
  172. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +1 -2
  173. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +1 -2
  174. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +2 -4
  175. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -4
  176. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +2 -4
  177. data/lib/stripe/services/v2/money_management/payout_method_service.rb +3 -7
  178. data/lib/stripe/services/v2/money_management/received_credit_service.rb +1 -2
  179. data/lib/stripe/services/v2/money_management/received_debit_service.rb +1 -2
  180. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +1 -2
  181. data/lib/stripe/services/v2/money_management/transaction_service.rb +1 -2
  182. data/lib/stripe/services/v2/payment_service.rb +15 -0
  183. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +138 -0
  184. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +1 -2
  185. data/lib/stripe/services/v2_services.rb +2 -1
  186. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  187. data/lib/stripe/services.rb +2 -3
  188. data/lib/stripe/version.rb +1 -1
  189. data/rbi/stripe.rbi +3903 -4131
  190. metadata +13 -8
  191. data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
  192. data/lib/stripe/resources/gift_cards/card.rb +0 -208
  193. data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
  194. data/lib/stripe/services/gift_cards/card_service.rb +0 -170
  195. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
  196. data/lib/stripe/services/gift_cards_service.rb +0 -14
@@ -490,6 +490,23 @@ module Stripe
490
490
  end
491
491
  end
492
492
 
493
+ class KakaoPay < Stripe::RequestParams
494
+ class DisplayPreference < Stripe::RequestParams
495
+ # The account's preference for whether or not to display this payment method.
496
+ attr_accessor :preference
497
+
498
+ def initialize(preference: nil)
499
+ @preference = preference
500
+ end
501
+ end
502
+ # Whether or not the payment method should be displayed.
503
+ attr_accessor :display_preference
504
+
505
+ def initialize(display_preference: nil)
506
+ @display_preference = display_preference
507
+ end
508
+ end
509
+
493
510
  class Klarna < Stripe::RequestParams
494
511
  class DisplayPreference < Stripe::RequestParams
495
512
  # The account's preference for whether or not to display this payment method.
@@ -524,6 +541,23 @@ module Stripe
524
541
  end
525
542
  end
526
543
 
544
+ class KrCard < Stripe::RequestParams
545
+ class DisplayPreference < Stripe::RequestParams
546
+ # The account's preference for whether or not to display this payment method.
547
+ attr_accessor :preference
548
+
549
+ def initialize(preference: nil)
550
+ @preference = preference
551
+ end
552
+ end
553
+ # Whether or not the payment method should be displayed.
554
+ attr_accessor :display_preference
555
+
556
+ def initialize(display_preference: nil)
557
+ @display_preference = display_preference
558
+ end
559
+ end
560
+
527
561
  class Link < Stripe::RequestParams
528
562
  class DisplayPreference < Stripe::RequestParams
529
563
  # The account's preference for whether or not to display this payment method.
@@ -575,6 +609,23 @@ module Stripe
575
609
  end
576
610
  end
577
611
 
612
+ class NaverPay < Stripe::RequestParams
613
+ class DisplayPreference < Stripe::RequestParams
614
+ # The account's preference for whether or not to display this payment method.
615
+ attr_accessor :preference
616
+
617
+ def initialize(preference: nil)
618
+ @preference = preference
619
+ end
620
+ end
621
+ # Whether or not the payment method should be displayed.
622
+ attr_accessor :display_preference
623
+
624
+ def initialize(display_preference: nil)
625
+ @display_preference = display_preference
626
+ end
627
+ end
628
+
578
629
  class NzBankAccount < Stripe::RequestParams
579
630
  class DisplayPreference < Stripe::RequestParams
580
631
  # The account's preference for whether or not to display this payment method.
@@ -643,6 +694,23 @@ module Stripe
643
694
  end
644
695
  end
645
696
 
697
+ class Payco < Stripe::RequestParams
698
+ class DisplayPreference < Stripe::RequestParams
699
+ # The account's preference for whether or not to display this payment method.
700
+ attr_accessor :preference
701
+
702
+ def initialize(preference: nil)
703
+ @preference = preference
704
+ end
705
+ end
706
+ # Whether or not the payment method should be displayed.
707
+ attr_accessor :display_preference
708
+
709
+ def initialize(display_preference: nil)
710
+ @display_preference = display_preference
711
+ end
712
+ end
713
+
646
714
  class Paynow < Stripe::RequestParams
647
715
  class DisplayPreference < Stripe::RequestParams
648
716
  # The account's preference for whether or not to display this payment method.
@@ -762,6 +830,23 @@ module Stripe
762
830
  end
763
831
  end
764
832
 
833
+ class SamsungPay < Stripe::RequestParams
834
+ class DisplayPreference < Stripe::RequestParams
835
+ # The account's preference for whether or not to display this payment method.
836
+ attr_accessor :preference
837
+
838
+ def initialize(preference: nil)
839
+ @preference = preference
840
+ end
841
+ end
842
+ # Whether or not the payment method should be displayed.
843
+ attr_accessor :display_preference
844
+
845
+ def initialize(display_preference: nil)
846
+ @display_preference = display_preference
847
+ end
848
+ end
849
+
765
850
  class Satispay < Stripe::RequestParams
766
851
  class DisplayPreference < Stripe::RequestParams
767
852
  # The account's preference for whether or not to display this payment method.
@@ -926,7 +1011,7 @@ module Stripe
926
1011
  attr_accessor :alma
927
1012
  # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
928
1013
  attr_accessor :amazon_pay
929
- # Stripe users can accept [Apple Pay](/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
1014
+ # Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
930
1015
  attr_accessor :apple_pay
931
1016
  # Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks.
932
1017
  attr_accessor :apple_pay_later
@@ -970,10 +1055,14 @@ module Stripe
970
1055
  attr_accessor :ideal
971
1056
  # JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.
972
1057
  attr_accessor :jcb
1058
+ # Kakao Pay is a popular local wallet available in South Korea.
1059
+ attr_accessor :kakao_pay
973
1060
  # Klarna gives customers a range of [payment options](https://stripe.com/docs/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://stripe.com/docs/payments/klarna) for more details.
974
1061
  attr_accessor :klarna
975
1062
  # Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. Check this [page](https://stripe.com/docs/payments/konbini) for more details.
976
1063
  attr_accessor :konbini
1064
+ # Korean cards let users pay using locally issued cards from South Korea.
1065
+ attr_accessor :kr_card
977
1066
  # [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
978
1067
  attr_accessor :link
979
1068
  # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
@@ -982,6 +1071,8 @@ module Stripe
982
1071
  attr_accessor :multibanco
983
1072
  # Configuration name.
984
1073
  attr_accessor :name
1074
+ # Naver Pay is a popular local wallet available in South Korea.
1075
+ attr_accessor :naver_pay
985
1076
  # Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
986
1077
  attr_accessor :nz_bank_account
987
1078
  # OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://stripe.com/docs/payments/oxxo) for more details.
@@ -992,6 +1083,8 @@ module Stripe
992
1083
  attr_accessor :parent
993
1084
  # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
994
1085
  attr_accessor :pay_by_bank
1086
+ # PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
1087
+ attr_accessor :payco
995
1088
  # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
996
1089
  attr_accessor :paynow
997
1090
  # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
@@ -1006,6 +1099,8 @@ module Stripe
1006
1099
  attr_accessor :qris
1007
1100
  # 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.
1008
1101
  attr_accessor :revolut_pay
1102
+ # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
1103
+ attr_accessor :samsung_pay
1009
1104
  # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
1010
1105
  attr_accessor :satispay
1011
1106
  # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details.
@@ -1054,17 +1149,21 @@ module Stripe
1054
1149
  id_bank_transfer: nil,
1055
1150
  ideal: nil,
1056
1151
  jcb: nil,
1152
+ kakao_pay: nil,
1057
1153
  klarna: nil,
1058
1154
  konbini: nil,
1155
+ kr_card: nil,
1059
1156
  link: nil,
1060
1157
  mobilepay: nil,
1061
1158
  multibanco: nil,
1062
1159
  name: nil,
1160
+ naver_pay: nil,
1063
1161
  nz_bank_account: nil,
1064
1162
  oxxo: nil,
1065
1163
  p24: nil,
1066
1164
  parent: nil,
1067
1165
  pay_by_bank: nil,
1166
+ payco: nil,
1068
1167
  paynow: nil,
1069
1168
  paypal: nil,
1070
1169
  payto: nil,
@@ -1072,6 +1171,7 @@ module Stripe
1072
1171
  promptpay: nil,
1073
1172
  qris: nil,
1074
1173
  revolut_pay: nil,
1174
+ samsung_pay: nil,
1075
1175
  satispay: nil,
1076
1176
  sepa_debit: nil,
1077
1177
  shopeepay: nil,
@@ -1110,17 +1210,21 @@ module Stripe
1110
1210
  @id_bank_transfer = id_bank_transfer
1111
1211
  @ideal = ideal
1112
1212
  @jcb = jcb
1213
+ @kakao_pay = kakao_pay
1113
1214
  @klarna = klarna
1114
1215
  @konbini = konbini
1216
+ @kr_card = kr_card
1115
1217
  @link = link
1116
1218
  @mobilepay = mobilepay
1117
1219
  @multibanco = multibanco
1118
1220
  @name = name
1221
+ @naver_pay = naver_pay
1119
1222
  @nz_bank_account = nz_bank_account
1120
1223
  @oxxo = oxxo
1121
1224
  @p24 = p24
1122
1225
  @parent = parent
1123
1226
  @pay_by_bank = pay_by_bank
1227
+ @payco = payco
1124
1228
  @paynow = paynow
1125
1229
  @paypal = paypal
1126
1230
  @payto = payto
@@ -1128,6 +1232,7 @@ module Stripe
1128
1232
  @promptpay = promptpay
1129
1233
  @qris = qris
1130
1234
  @revolut_pay = revolut_pay
1235
+ @samsung_pay = samsung_pay
1131
1236
  @satispay = satispay
1132
1237
  @sepa_debit = sepa_debit
1133
1238
  @shopeepay = shopeepay
@@ -1609,6 +1714,23 @@ module Stripe
1609
1714
  end
1610
1715
  end
1611
1716
 
1717
+ class KakaoPay < Stripe::RequestParams
1718
+ class DisplayPreference < Stripe::RequestParams
1719
+ # The account's preference for whether or not to display this payment method.
1720
+ attr_accessor :preference
1721
+
1722
+ def initialize(preference: nil)
1723
+ @preference = preference
1724
+ end
1725
+ end
1726
+ # Whether or not the payment method should be displayed.
1727
+ attr_accessor :display_preference
1728
+
1729
+ def initialize(display_preference: nil)
1730
+ @display_preference = display_preference
1731
+ end
1732
+ end
1733
+
1612
1734
  class Klarna < Stripe::RequestParams
1613
1735
  class DisplayPreference < Stripe::RequestParams
1614
1736
  # The account's preference for whether or not to display this payment method.
@@ -1643,6 +1765,23 @@ module Stripe
1643
1765
  end
1644
1766
  end
1645
1767
 
1768
+ class KrCard < Stripe::RequestParams
1769
+ class DisplayPreference < Stripe::RequestParams
1770
+ # The account's preference for whether or not to display this payment method.
1771
+ attr_accessor :preference
1772
+
1773
+ def initialize(preference: nil)
1774
+ @preference = preference
1775
+ end
1776
+ end
1777
+ # Whether or not the payment method should be displayed.
1778
+ attr_accessor :display_preference
1779
+
1780
+ def initialize(display_preference: nil)
1781
+ @display_preference = display_preference
1782
+ end
1783
+ end
1784
+
1646
1785
  class Link < Stripe::RequestParams
1647
1786
  class DisplayPreference < Stripe::RequestParams
1648
1787
  # The account's preference for whether or not to display this payment method.
@@ -1694,6 +1833,23 @@ module Stripe
1694
1833
  end
1695
1834
  end
1696
1835
 
1836
+ class NaverPay < Stripe::RequestParams
1837
+ class DisplayPreference < Stripe::RequestParams
1838
+ # The account's preference for whether or not to display this payment method.
1839
+ attr_accessor :preference
1840
+
1841
+ def initialize(preference: nil)
1842
+ @preference = preference
1843
+ end
1844
+ end
1845
+ # Whether or not the payment method should be displayed.
1846
+ attr_accessor :display_preference
1847
+
1848
+ def initialize(display_preference: nil)
1849
+ @display_preference = display_preference
1850
+ end
1851
+ end
1852
+
1697
1853
  class NzBankAccount < Stripe::RequestParams
1698
1854
  class DisplayPreference < Stripe::RequestParams
1699
1855
  # The account's preference for whether or not to display this payment method.
@@ -1762,6 +1918,23 @@ module Stripe
1762
1918
  end
1763
1919
  end
1764
1920
 
1921
+ class Payco < Stripe::RequestParams
1922
+ class DisplayPreference < Stripe::RequestParams
1923
+ # The account's preference for whether or not to display this payment method.
1924
+ attr_accessor :preference
1925
+
1926
+ def initialize(preference: nil)
1927
+ @preference = preference
1928
+ end
1929
+ end
1930
+ # Whether or not the payment method should be displayed.
1931
+ attr_accessor :display_preference
1932
+
1933
+ def initialize(display_preference: nil)
1934
+ @display_preference = display_preference
1935
+ end
1936
+ end
1937
+
1765
1938
  class Paynow < Stripe::RequestParams
1766
1939
  class DisplayPreference < Stripe::RequestParams
1767
1940
  # The account's preference for whether or not to display this payment method.
@@ -1881,6 +2054,23 @@ module Stripe
1881
2054
  end
1882
2055
  end
1883
2056
 
2057
+ class SamsungPay < Stripe::RequestParams
2058
+ class DisplayPreference < Stripe::RequestParams
2059
+ # The account's preference for whether or not to display this payment method.
2060
+ attr_accessor :preference
2061
+
2062
+ def initialize(preference: nil)
2063
+ @preference = preference
2064
+ end
2065
+ end
2066
+ # Whether or not the payment method should be displayed.
2067
+ attr_accessor :display_preference
2068
+
2069
+ def initialize(display_preference: nil)
2070
+ @display_preference = display_preference
2071
+ end
2072
+ end
2073
+
1884
2074
  class Satispay < Stripe::RequestParams
1885
2075
  class DisplayPreference < Stripe::RequestParams
1886
2076
  # The account's preference for whether or not to display this payment method.
@@ -2047,7 +2237,7 @@ module Stripe
2047
2237
  attr_accessor :alma
2048
2238
  # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
2049
2239
  attr_accessor :amazon_pay
2050
- # Stripe users can accept [Apple Pay](/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
2240
+ # Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
2051
2241
  attr_accessor :apple_pay
2052
2242
  # Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks.
2053
2243
  attr_accessor :apple_pay_later
@@ -2091,10 +2281,14 @@ module Stripe
2091
2281
  attr_accessor :ideal
2092
2282
  # JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.
2093
2283
  attr_accessor :jcb
2284
+ # Kakao Pay is a popular local wallet available in South Korea.
2285
+ attr_accessor :kakao_pay
2094
2286
  # Klarna gives customers a range of [payment options](https://stripe.com/docs/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://stripe.com/docs/payments/klarna) for more details.
2095
2287
  attr_accessor :klarna
2096
2288
  # Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. Check this [page](https://stripe.com/docs/payments/konbini) for more details.
2097
2289
  attr_accessor :konbini
2290
+ # Korean cards let users pay using locally issued cards from South Korea.
2291
+ attr_accessor :kr_card
2098
2292
  # [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
2099
2293
  attr_accessor :link
2100
2294
  # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
@@ -2103,6 +2297,8 @@ module Stripe
2103
2297
  attr_accessor :multibanco
2104
2298
  # Configuration name.
2105
2299
  attr_accessor :name
2300
+ # Naver Pay is a popular local wallet available in South Korea.
2301
+ attr_accessor :naver_pay
2106
2302
  # Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
2107
2303
  attr_accessor :nz_bank_account
2108
2304
  # OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://stripe.com/docs/payments/oxxo) for more details.
@@ -2111,6 +2307,8 @@ module Stripe
2111
2307
  attr_accessor :p24
2112
2308
  # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
2113
2309
  attr_accessor :pay_by_bank
2310
+ # PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
2311
+ attr_accessor :payco
2114
2312
  # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
2115
2313
  attr_accessor :paynow
2116
2314
  # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
@@ -2125,6 +2323,8 @@ module Stripe
2125
2323
  attr_accessor :qris
2126
2324
  # 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.
2127
2325
  attr_accessor :revolut_pay
2326
+ # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
2327
+ attr_accessor :samsung_pay
2128
2328
  # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
2129
2329
  attr_accessor :satispay
2130
2330
  # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details.
@@ -2174,16 +2374,20 @@ module Stripe
2174
2374
  id_bank_transfer: nil,
2175
2375
  ideal: nil,
2176
2376
  jcb: nil,
2377
+ kakao_pay: nil,
2177
2378
  klarna: nil,
2178
2379
  konbini: nil,
2380
+ kr_card: nil,
2179
2381
  link: nil,
2180
2382
  mobilepay: nil,
2181
2383
  multibanco: nil,
2182
2384
  name: nil,
2385
+ naver_pay: nil,
2183
2386
  nz_bank_account: nil,
2184
2387
  oxxo: nil,
2185
2388
  p24: nil,
2186
2389
  pay_by_bank: nil,
2390
+ payco: nil,
2187
2391
  paynow: nil,
2188
2392
  paypal: nil,
2189
2393
  payto: nil,
@@ -2191,6 +2395,7 @@ module Stripe
2191
2395
  promptpay: nil,
2192
2396
  qris: nil,
2193
2397
  revolut_pay: nil,
2398
+ samsung_pay: nil,
2194
2399
  satispay: nil,
2195
2400
  sepa_debit: nil,
2196
2401
  shopeepay: nil,
@@ -2230,16 +2435,20 @@ module Stripe
2230
2435
  @id_bank_transfer = id_bank_transfer
2231
2436
  @ideal = ideal
2232
2437
  @jcb = jcb
2438
+ @kakao_pay = kakao_pay
2233
2439
  @klarna = klarna
2234
2440
  @konbini = konbini
2441
+ @kr_card = kr_card
2235
2442
  @link = link
2236
2443
  @mobilepay = mobilepay
2237
2444
  @multibanco = multibanco
2238
2445
  @name = name
2446
+ @naver_pay = naver_pay
2239
2447
  @nz_bank_account = nz_bank_account
2240
2448
  @oxxo = oxxo
2241
2449
  @p24 = p24
2242
2450
  @pay_by_bank = pay_by_bank
2451
+ @payco = payco
2243
2452
  @paynow = paynow
2244
2453
  @paypal = paypal
2245
2454
  @payto = payto
@@ -2247,6 +2456,7 @@ module Stripe
2247
2456
  @promptpay = promptpay
2248
2457
  @qris = qris
2249
2458
  @revolut_pay = revolut_pay
2459
+ @samsung_pay = samsung_pay
2250
2460
  @satispay = satispay
2251
2461
  @sepa_debit = sepa_debit
2252
2462
  @shopeepay = shopeepay
@@ -128,7 +128,7 @@ module Stripe
128
128
  #
129
129
  # To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
130
130
  #
131
- # Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
131
+ # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration).
132
132
  def validate(payment_method_domain, params = {}, opts = {})
133
133
  request(
134
134
  method: :post,