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
@@ -456,6 +456,23 @@ module Stripe
|
|
456
456
|
end
|
457
457
|
end
|
458
458
|
|
459
|
+
class KakaoPay < Stripe::RequestParams
|
460
|
+
class DisplayPreference < Stripe::RequestParams
|
461
|
+
# The account's preference for whether or not to display this payment method.
|
462
|
+
attr_accessor :preference
|
463
|
+
|
464
|
+
def initialize(preference: nil)
|
465
|
+
@preference = preference
|
466
|
+
end
|
467
|
+
end
|
468
|
+
# Whether or not the payment method should be displayed.
|
469
|
+
attr_accessor :display_preference
|
470
|
+
|
471
|
+
def initialize(display_preference: nil)
|
472
|
+
@display_preference = display_preference
|
473
|
+
end
|
474
|
+
end
|
475
|
+
|
459
476
|
class Klarna < Stripe::RequestParams
|
460
477
|
class DisplayPreference < Stripe::RequestParams
|
461
478
|
# The account's preference for whether or not to display this payment method.
|
@@ -490,6 +507,23 @@ module Stripe
|
|
490
507
|
end
|
491
508
|
end
|
492
509
|
|
510
|
+
class KrCard < Stripe::RequestParams
|
511
|
+
class DisplayPreference < Stripe::RequestParams
|
512
|
+
# The account's preference for whether or not to display this payment method.
|
513
|
+
attr_accessor :preference
|
514
|
+
|
515
|
+
def initialize(preference: nil)
|
516
|
+
@preference = preference
|
517
|
+
end
|
518
|
+
end
|
519
|
+
# Whether or not the payment method should be displayed.
|
520
|
+
attr_accessor :display_preference
|
521
|
+
|
522
|
+
def initialize(display_preference: nil)
|
523
|
+
@display_preference = display_preference
|
524
|
+
end
|
525
|
+
end
|
526
|
+
|
493
527
|
class Link < Stripe::RequestParams
|
494
528
|
class DisplayPreference < Stripe::RequestParams
|
495
529
|
# The account's preference for whether or not to display this payment method.
|
@@ -541,6 +575,23 @@ module Stripe
|
|
541
575
|
end
|
542
576
|
end
|
543
577
|
|
578
|
+
class NaverPay < Stripe::RequestParams
|
579
|
+
class DisplayPreference < Stripe::RequestParams
|
580
|
+
# The account's preference for whether or not to display this payment method.
|
581
|
+
attr_accessor :preference
|
582
|
+
|
583
|
+
def initialize(preference: nil)
|
584
|
+
@preference = preference
|
585
|
+
end
|
586
|
+
end
|
587
|
+
# Whether or not the payment method should be displayed.
|
588
|
+
attr_accessor :display_preference
|
589
|
+
|
590
|
+
def initialize(display_preference: nil)
|
591
|
+
@display_preference = display_preference
|
592
|
+
end
|
593
|
+
end
|
594
|
+
|
544
595
|
class NzBankAccount < Stripe::RequestParams
|
545
596
|
class DisplayPreference < Stripe::RequestParams
|
546
597
|
# The account's preference for whether or not to display this payment method.
|
@@ -609,6 +660,23 @@ module Stripe
|
|
609
660
|
end
|
610
661
|
end
|
611
662
|
|
663
|
+
class Payco < Stripe::RequestParams
|
664
|
+
class DisplayPreference < Stripe::RequestParams
|
665
|
+
# The account's preference for whether or not to display this payment method.
|
666
|
+
attr_accessor :preference
|
667
|
+
|
668
|
+
def initialize(preference: nil)
|
669
|
+
@preference = preference
|
670
|
+
end
|
671
|
+
end
|
672
|
+
# Whether or not the payment method should be displayed.
|
673
|
+
attr_accessor :display_preference
|
674
|
+
|
675
|
+
def initialize(display_preference: nil)
|
676
|
+
@display_preference = display_preference
|
677
|
+
end
|
678
|
+
end
|
679
|
+
|
612
680
|
class Paynow < Stripe::RequestParams
|
613
681
|
class DisplayPreference < Stripe::RequestParams
|
614
682
|
# The account's preference for whether or not to display this payment method.
|
@@ -694,6 +762,23 @@ module Stripe
|
|
694
762
|
end
|
695
763
|
end
|
696
764
|
|
765
|
+
class SamsungPay < Stripe::RequestParams
|
766
|
+
class DisplayPreference < Stripe::RequestParams
|
767
|
+
# The account's preference for whether or not to display this payment method.
|
768
|
+
attr_accessor :preference
|
769
|
+
|
770
|
+
def initialize(preference: nil)
|
771
|
+
@preference = preference
|
772
|
+
end
|
773
|
+
end
|
774
|
+
# Whether or not the payment method should be displayed.
|
775
|
+
attr_accessor :display_preference
|
776
|
+
|
777
|
+
def initialize(display_preference: nil)
|
778
|
+
@display_preference = display_preference
|
779
|
+
end
|
780
|
+
end
|
781
|
+
|
697
782
|
class Satispay < Stripe::RequestParams
|
698
783
|
class DisplayPreference < Stripe::RequestParams
|
699
784
|
# The account's preference for whether or not to display this payment method.
|
@@ -841,7 +926,7 @@ module Stripe
|
|
841
926
|
attr_accessor :alma
|
842
927
|
# Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
|
843
928
|
attr_accessor :amazon_pay
|
844
|
-
# 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.
|
929
|
+
# 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.
|
845
930
|
attr_accessor :apple_pay
|
846
931
|
# 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.
|
847
932
|
attr_accessor :apple_pay_later
|
@@ -881,10 +966,14 @@ module Stripe
|
|
881
966
|
attr_accessor :ideal
|
882
967
|
# 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.
|
883
968
|
attr_accessor :jcb
|
969
|
+
# Kakao Pay is a popular local wallet available in South Korea.
|
970
|
+
attr_accessor :kakao_pay
|
884
971
|
# 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.
|
885
972
|
attr_accessor :klarna
|
886
973
|
# 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.
|
887
974
|
attr_accessor :konbini
|
975
|
+
# Korean cards let users pay using locally issued cards from South Korea.
|
976
|
+
attr_accessor :kr_card
|
888
977
|
# [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.
|
889
978
|
attr_accessor :link
|
890
979
|
# 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.
|
@@ -893,6 +982,8 @@ module Stripe
|
|
893
982
|
attr_accessor :multibanco
|
894
983
|
# Configuration name.
|
895
984
|
attr_accessor :name
|
985
|
+
# Naver Pay is a popular local wallet available in South Korea.
|
986
|
+
attr_accessor :naver_pay
|
896
987
|
# 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.
|
897
988
|
attr_accessor :nz_bank_account
|
898
989
|
# 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.
|
@@ -903,6 +994,8 @@ module Stripe
|
|
903
994
|
attr_accessor :parent
|
904
995
|
# 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.
|
905
996
|
attr_accessor :pay_by_bank
|
997
|
+
# PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
|
998
|
+
attr_accessor :payco
|
906
999
|
# 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.
|
907
1000
|
attr_accessor :paynow
|
908
1001
|
# 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.
|
@@ -913,6 +1006,8 @@ module Stripe
|
|
913
1006
|
attr_accessor :promptpay
|
914
1007
|
# 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.
|
915
1008
|
attr_accessor :revolut_pay
|
1009
|
+
# Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
|
1010
|
+
attr_accessor :samsung_pay
|
916
1011
|
# 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.
|
917
1012
|
attr_accessor :satispay
|
918
1013
|
# 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.
|
@@ -957,22 +1052,27 @@ module Stripe
|
|
957
1052
|
grabpay: nil,
|
958
1053
|
ideal: nil,
|
959
1054
|
jcb: nil,
|
1055
|
+
kakao_pay: nil,
|
960
1056
|
klarna: nil,
|
961
1057
|
konbini: nil,
|
1058
|
+
kr_card: nil,
|
962
1059
|
link: nil,
|
963
1060
|
mobilepay: nil,
|
964
1061
|
multibanco: nil,
|
965
1062
|
name: nil,
|
1063
|
+
naver_pay: nil,
|
966
1064
|
nz_bank_account: nil,
|
967
1065
|
oxxo: nil,
|
968
1066
|
p24: nil,
|
969
1067
|
parent: nil,
|
970
1068
|
pay_by_bank: nil,
|
1069
|
+
payco: nil,
|
971
1070
|
paynow: nil,
|
972
1071
|
paypal: nil,
|
973
1072
|
pix: nil,
|
974
1073
|
promptpay: nil,
|
975
1074
|
revolut_pay: nil,
|
1075
|
+
samsung_pay: nil,
|
976
1076
|
satispay: nil,
|
977
1077
|
sepa_debit: nil,
|
978
1078
|
sofort: nil,
|
@@ -1008,22 +1108,27 @@ module Stripe
|
|
1008
1108
|
@grabpay = grabpay
|
1009
1109
|
@ideal = ideal
|
1010
1110
|
@jcb = jcb
|
1111
|
+
@kakao_pay = kakao_pay
|
1011
1112
|
@klarna = klarna
|
1012
1113
|
@konbini = konbini
|
1114
|
+
@kr_card = kr_card
|
1013
1115
|
@link = link
|
1014
1116
|
@mobilepay = mobilepay
|
1015
1117
|
@multibanco = multibanco
|
1016
1118
|
@name = name
|
1119
|
+
@naver_pay = naver_pay
|
1017
1120
|
@nz_bank_account = nz_bank_account
|
1018
1121
|
@oxxo = oxxo
|
1019
1122
|
@p24 = p24
|
1020
1123
|
@parent = parent
|
1021
1124
|
@pay_by_bank = pay_by_bank
|
1125
|
+
@payco = payco
|
1022
1126
|
@paynow = paynow
|
1023
1127
|
@paypal = paypal
|
1024
1128
|
@pix = pix
|
1025
1129
|
@promptpay = promptpay
|
1026
1130
|
@revolut_pay = revolut_pay
|
1131
|
+
@samsung_pay = samsung_pay
|
1027
1132
|
@satispay = satispay
|
1028
1133
|
@sepa_debit = sepa_debit
|
1029
1134
|
@sofort = sofort
|
@@ -1470,6 +1575,23 @@ module Stripe
|
|
1470
1575
|
end
|
1471
1576
|
end
|
1472
1577
|
|
1578
|
+
class KakaoPay < Stripe::RequestParams
|
1579
|
+
class DisplayPreference < Stripe::RequestParams
|
1580
|
+
# The account's preference for whether or not to display this payment method.
|
1581
|
+
attr_accessor :preference
|
1582
|
+
|
1583
|
+
def initialize(preference: nil)
|
1584
|
+
@preference = preference
|
1585
|
+
end
|
1586
|
+
end
|
1587
|
+
# Whether or not the payment method should be displayed.
|
1588
|
+
attr_accessor :display_preference
|
1589
|
+
|
1590
|
+
def initialize(display_preference: nil)
|
1591
|
+
@display_preference = display_preference
|
1592
|
+
end
|
1593
|
+
end
|
1594
|
+
|
1473
1595
|
class Klarna < Stripe::RequestParams
|
1474
1596
|
class DisplayPreference < Stripe::RequestParams
|
1475
1597
|
# The account's preference for whether or not to display this payment method.
|
@@ -1504,6 +1626,23 @@ module Stripe
|
|
1504
1626
|
end
|
1505
1627
|
end
|
1506
1628
|
|
1629
|
+
class KrCard < Stripe::RequestParams
|
1630
|
+
class DisplayPreference < Stripe::RequestParams
|
1631
|
+
# The account's preference for whether or not to display this payment method.
|
1632
|
+
attr_accessor :preference
|
1633
|
+
|
1634
|
+
def initialize(preference: nil)
|
1635
|
+
@preference = preference
|
1636
|
+
end
|
1637
|
+
end
|
1638
|
+
# Whether or not the payment method should be displayed.
|
1639
|
+
attr_accessor :display_preference
|
1640
|
+
|
1641
|
+
def initialize(display_preference: nil)
|
1642
|
+
@display_preference = display_preference
|
1643
|
+
end
|
1644
|
+
end
|
1645
|
+
|
1507
1646
|
class Link < Stripe::RequestParams
|
1508
1647
|
class DisplayPreference < Stripe::RequestParams
|
1509
1648
|
# The account's preference for whether or not to display this payment method.
|
@@ -1555,6 +1694,23 @@ module Stripe
|
|
1555
1694
|
end
|
1556
1695
|
end
|
1557
1696
|
|
1697
|
+
class NaverPay < Stripe::RequestParams
|
1698
|
+
class DisplayPreference < Stripe::RequestParams
|
1699
|
+
# The account's preference for whether or not to display this payment method.
|
1700
|
+
attr_accessor :preference
|
1701
|
+
|
1702
|
+
def initialize(preference: nil)
|
1703
|
+
@preference = preference
|
1704
|
+
end
|
1705
|
+
end
|
1706
|
+
# Whether or not the payment method should be displayed.
|
1707
|
+
attr_accessor :display_preference
|
1708
|
+
|
1709
|
+
def initialize(display_preference: nil)
|
1710
|
+
@display_preference = display_preference
|
1711
|
+
end
|
1712
|
+
end
|
1713
|
+
|
1558
1714
|
class NzBankAccount < Stripe::RequestParams
|
1559
1715
|
class DisplayPreference < Stripe::RequestParams
|
1560
1716
|
# The account's preference for whether or not to display this payment method.
|
@@ -1623,6 +1779,23 @@ module Stripe
|
|
1623
1779
|
end
|
1624
1780
|
end
|
1625
1781
|
|
1782
|
+
class Payco < Stripe::RequestParams
|
1783
|
+
class DisplayPreference < Stripe::RequestParams
|
1784
|
+
# The account's preference for whether or not to display this payment method.
|
1785
|
+
attr_accessor :preference
|
1786
|
+
|
1787
|
+
def initialize(preference: nil)
|
1788
|
+
@preference = preference
|
1789
|
+
end
|
1790
|
+
end
|
1791
|
+
# Whether or not the payment method should be displayed.
|
1792
|
+
attr_accessor :display_preference
|
1793
|
+
|
1794
|
+
def initialize(display_preference: nil)
|
1795
|
+
@display_preference = display_preference
|
1796
|
+
end
|
1797
|
+
end
|
1798
|
+
|
1626
1799
|
class Paynow < Stripe::RequestParams
|
1627
1800
|
class DisplayPreference < Stripe::RequestParams
|
1628
1801
|
# The account's preference for whether or not to display this payment method.
|
@@ -1708,6 +1881,23 @@ module Stripe
|
|
1708
1881
|
end
|
1709
1882
|
end
|
1710
1883
|
|
1884
|
+
class SamsungPay < Stripe::RequestParams
|
1885
|
+
class DisplayPreference < Stripe::RequestParams
|
1886
|
+
# The account's preference for whether or not to display this payment method.
|
1887
|
+
attr_accessor :preference
|
1888
|
+
|
1889
|
+
def initialize(preference: nil)
|
1890
|
+
@preference = preference
|
1891
|
+
end
|
1892
|
+
end
|
1893
|
+
# Whether or not the payment method should be displayed.
|
1894
|
+
attr_accessor :display_preference
|
1895
|
+
|
1896
|
+
def initialize(display_preference: nil)
|
1897
|
+
@display_preference = display_preference
|
1898
|
+
end
|
1899
|
+
end
|
1900
|
+
|
1711
1901
|
class Satispay < Stripe::RequestParams
|
1712
1902
|
class DisplayPreference < Stripe::RequestParams
|
1713
1903
|
# The account's preference for whether or not to display this payment method.
|
@@ -1857,7 +2047,7 @@ module Stripe
|
|
1857
2047
|
attr_accessor :alma
|
1858
2048
|
# Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
|
1859
2049
|
attr_accessor :amazon_pay
|
1860
|
-
# 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.
|
2050
|
+
# 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.
|
1861
2051
|
attr_accessor :apple_pay
|
1862
2052
|
# 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.
|
1863
2053
|
attr_accessor :apple_pay_later
|
@@ -1897,10 +2087,14 @@ module Stripe
|
|
1897
2087
|
attr_accessor :ideal
|
1898
2088
|
# 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.
|
1899
2089
|
attr_accessor :jcb
|
2090
|
+
# Kakao Pay is a popular local wallet available in South Korea.
|
2091
|
+
attr_accessor :kakao_pay
|
1900
2092
|
# 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.
|
1901
2093
|
attr_accessor :klarna
|
1902
2094
|
# 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.
|
1903
2095
|
attr_accessor :konbini
|
2096
|
+
# Korean cards let users pay using locally issued cards from South Korea.
|
2097
|
+
attr_accessor :kr_card
|
1904
2098
|
# [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.
|
1905
2099
|
attr_accessor :link
|
1906
2100
|
# 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.
|
@@ -1909,6 +2103,8 @@ module Stripe
|
|
1909
2103
|
attr_accessor :multibanco
|
1910
2104
|
# Configuration name.
|
1911
2105
|
attr_accessor :name
|
2106
|
+
# Naver Pay is a popular local wallet available in South Korea.
|
2107
|
+
attr_accessor :naver_pay
|
1912
2108
|
# 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.
|
1913
2109
|
attr_accessor :nz_bank_account
|
1914
2110
|
# 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.
|
@@ -1917,6 +2113,8 @@ module Stripe
|
|
1917
2113
|
attr_accessor :p24
|
1918
2114
|
# 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.
|
1919
2115
|
attr_accessor :pay_by_bank
|
2116
|
+
# PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
|
2117
|
+
attr_accessor :payco
|
1920
2118
|
# 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.
|
1921
2119
|
attr_accessor :paynow
|
1922
2120
|
# 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.
|
@@ -1927,6 +2125,8 @@ module Stripe
|
|
1927
2125
|
attr_accessor :promptpay
|
1928
2126
|
# 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.
|
1929
2127
|
attr_accessor :revolut_pay
|
2128
|
+
# Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
|
2129
|
+
attr_accessor :samsung_pay
|
1930
2130
|
# 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.
|
1931
2131
|
attr_accessor :satispay
|
1932
2132
|
# 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.
|
@@ -1972,21 +2172,26 @@ module Stripe
|
|
1972
2172
|
grabpay: nil,
|
1973
2173
|
ideal: nil,
|
1974
2174
|
jcb: nil,
|
2175
|
+
kakao_pay: nil,
|
1975
2176
|
klarna: nil,
|
1976
2177
|
konbini: nil,
|
2178
|
+
kr_card: nil,
|
1977
2179
|
link: nil,
|
1978
2180
|
mobilepay: nil,
|
1979
2181
|
multibanco: nil,
|
1980
2182
|
name: nil,
|
2183
|
+
naver_pay: nil,
|
1981
2184
|
nz_bank_account: nil,
|
1982
2185
|
oxxo: nil,
|
1983
2186
|
p24: nil,
|
1984
2187
|
pay_by_bank: nil,
|
2188
|
+
payco: nil,
|
1985
2189
|
paynow: nil,
|
1986
2190
|
paypal: nil,
|
1987
2191
|
pix: nil,
|
1988
2192
|
promptpay: nil,
|
1989
2193
|
revolut_pay: nil,
|
2194
|
+
samsung_pay: nil,
|
1990
2195
|
satispay: nil,
|
1991
2196
|
sepa_debit: nil,
|
1992
2197
|
sofort: nil,
|
@@ -2023,21 +2228,26 @@ module Stripe
|
|
2023
2228
|
@grabpay = grabpay
|
2024
2229
|
@ideal = ideal
|
2025
2230
|
@jcb = jcb
|
2231
|
+
@kakao_pay = kakao_pay
|
2026
2232
|
@klarna = klarna
|
2027
2233
|
@konbini = konbini
|
2234
|
+
@kr_card = kr_card
|
2028
2235
|
@link = link
|
2029
2236
|
@mobilepay = mobilepay
|
2030
2237
|
@multibanco = multibanco
|
2031
2238
|
@name = name
|
2239
|
+
@naver_pay = naver_pay
|
2032
2240
|
@nz_bank_account = nz_bank_account
|
2033
2241
|
@oxxo = oxxo
|
2034
2242
|
@p24 = p24
|
2035
2243
|
@pay_by_bank = pay_by_bank
|
2244
|
+
@payco = payco
|
2036
2245
|
@paynow = paynow
|
2037
2246
|
@paypal = paypal
|
2038
2247
|
@pix = pix
|
2039
2248
|
@promptpay = promptpay
|
2040
2249
|
@revolut_pay = revolut_pay
|
2250
|
+
@samsung_pay = samsung_pay
|
2041
2251
|
@satispay = satispay
|
2042
2252
|
@sepa_debit = sepa_debit
|
2043
2253
|
@sofort = sofort
|
@@ -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,
|