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
@@ -691,20 +691,11 @@ module Stripe
|
|
691
691
|
end
|
692
692
|
end
|
693
693
|
|
694
|
-
class Affirm < Stripe::RequestParams
|
695
|
-
end
|
696
|
-
|
697
|
-
class
|
698
|
-
end
|
699
|
-
|
700
|
-
class Alipay < Stripe::RequestParams
|
701
|
-
end
|
702
|
-
|
703
|
-
class Alma < Stripe::RequestParams
|
704
|
-
end
|
705
|
-
|
706
|
-
class AmazonPay < Stripe::RequestParams
|
707
|
-
end
|
694
|
+
class Affirm < Stripe::RequestParams; end
|
695
|
+
class AfterpayClearpay < Stripe::RequestParams; end
|
696
|
+
class Alipay < Stripe::RequestParams; end
|
697
|
+
class Alma < Stripe::RequestParams; end
|
698
|
+
class AmazonPay < Stripe::RequestParams; end
|
708
699
|
|
709
700
|
class AuBecsDebit < Stripe::RequestParams
|
710
701
|
# The account number for the bank account.
|
@@ -730,11 +721,8 @@ module Stripe
|
|
730
721
|
end
|
731
722
|
end
|
732
723
|
|
733
|
-
class Bancontact < Stripe::RequestParams
|
734
|
-
end
|
735
|
-
|
736
|
-
class Billie < Stripe::RequestParams
|
737
|
-
end
|
724
|
+
class Bancontact < Stripe::RequestParams; end
|
725
|
+
class Billie < Stripe::RequestParams; end
|
738
726
|
|
739
727
|
class BillingDetails < Stripe::RequestParams
|
740
728
|
class Address < Stripe::RequestParams
|
@@ -787,8 +775,7 @@ module Stripe
|
|
787
775
|
end
|
788
776
|
end
|
789
777
|
|
790
|
-
class Blik < Stripe::RequestParams
|
791
|
-
end
|
778
|
+
class Blik < Stripe::RequestParams; end
|
792
779
|
|
793
780
|
class Boleto < Stripe::RequestParams
|
794
781
|
# The tax ID of the customer (CPF for individual consumers or CNPJ for businesses consumers)
|
@@ -838,11 +825,8 @@ module Stripe
|
|
838
825
|
end
|
839
826
|
end
|
840
827
|
|
841
|
-
class Cashapp < Stripe::RequestParams
|
842
|
-
end
|
843
|
-
|
844
|
-
class CustomerBalance < Stripe::RequestParams
|
845
|
-
end
|
828
|
+
class Cashapp < Stripe::RequestParams; end
|
829
|
+
class CustomerBalance < Stripe::RequestParams; end
|
846
830
|
|
847
831
|
class Eps < Stripe::RequestParams
|
848
832
|
# The customer's bank.
|
@@ -865,11 +849,8 @@ module Stripe
|
|
865
849
|
end
|
866
850
|
end
|
867
851
|
|
868
|
-
class Giropay < Stripe::RequestParams
|
869
|
-
end
|
870
|
-
|
871
|
-
class Grabpay < Stripe::RequestParams
|
872
|
-
end
|
852
|
+
class Giropay < Stripe::RequestParams; end
|
853
|
+
class Grabpay < Stripe::RequestParams; end
|
873
854
|
|
874
855
|
class Ideal < Stripe::RequestParams
|
875
856
|
# The customer's bank. Only use this parameter for existing customers. Don't use it for new customers.
|
@@ -880,11 +861,8 @@ module Stripe
|
|
880
861
|
end
|
881
862
|
end
|
882
863
|
|
883
|
-
class InteracPresent < Stripe::RequestParams
|
884
|
-
end
|
885
|
-
|
886
|
-
class KakaoPay < Stripe::RequestParams
|
887
|
-
end
|
864
|
+
class InteracPresent < Stripe::RequestParams; end
|
865
|
+
class KakaoPay < Stripe::RequestParams; end
|
888
866
|
|
889
867
|
class Klarna < Stripe::RequestParams
|
890
868
|
class Dob < Stripe::RequestParams
|
@@ -909,20 +887,11 @@ module Stripe
|
|
909
887
|
end
|
910
888
|
end
|
911
889
|
|
912
|
-
class Konbini < Stripe::RequestParams
|
913
|
-
end
|
914
|
-
|
915
|
-
class
|
916
|
-
end
|
917
|
-
|
918
|
-
class Link < Stripe::RequestParams
|
919
|
-
end
|
920
|
-
|
921
|
-
class Mobilepay < Stripe::RequestParams
|
922
|
-
end
|
923
|
-
|
924
|
-
class Multibanco < Stripe::RequestParams
|
925
|
-
end
|
890
|
+
class Konbini < Stripe::RequestParams; end
|
891
|
+
class KrCard < Stripe::RequestParams; end
|
892
|
+
class Link < Stripe::RequestParams; end
|
893
|
+
class Mobilepay < Stripe::RequestParams; end
|
894
|
+
class Multibanco < Stripe::RequestParams; end
|
926
895
|
|
927
896
|
class NaverPay < Stripe::RequestParams
|
928
897
|
# Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`.
|
@@ -964,8 +933,7 @@ module Stripe
|
|
964
933
|
end
|
965
934
|
end
|
966
935
|
|
967
|
-
class Oxxo < Stripe::RequestParams
|
968
|
-
end
|
936
|
+
class Oxxo < Stripe::RequestParams; end
|
969
937
|
|
970
938
|
class P24 < Stripe::RequestParams
|
971
939
|
# The customer's bank.
|
@@ -976,23 +944,12 @@ module Stripe
|
|
976
944
|
end
|
977
945
|
end
|
978
946
|
|
979
|
-
class PayByBank < Stripe::RequestParams
|
980
|
-
end
|
981
|
-
|
982
|
-
class
|
983
|
-
end
|
984
|
-
|
985
|
-
class Paynow < Stripe::RequestParams
|
986
|
-
end
|
987
|
-
|
988
|
-
class Paypal < Stripe::RequestParams
|
989
|
-
end
|
990
|
-
|
991
|
-
class Pix < Stripe::RequestParams
|
992
|
-
end
|
993
|
-
|
994
|
-
class Promptpay < Stripe::RequestParams
|
995
|
-
end
|
947
|
+
class PayByBank < Stripe::RequestParams; end
|
948
|
+
class Payco < Stripe::RequestParams; end
|
949
|
+
class Paynow < Stripe::RequestParams; end
|
950
|
+
class Paypal < Stripe::RequestParams; end
|
951
|
+
class Pix < Stripe::RequestParams; end
|
952
|
+
class Promptpay < Stripe::RequestParams; end
|
996
953
|
|
997
954
|
class RadarOptions < Stripe::RequestParams
|
998
955
|
# A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
@@ -1003,14 +960,9 @@ module Stripe
|
|
1003
960
|
end
|
1004
961
|
end
|
1005
962
|
|
1006
|
-
class RevolutPay < Stripe::RequestParams
|
1007
|
-
end
|
1008
|
-
|
1009
|
-
class SamsungPay < Stripe::RequestParams
|
1010
|
-
end
|
1011
|
-
|
1012
|
-
class Satispay < Stripe::RequestParams
|
1013
|
-
end
|
963
|
+
class RevolutPay < Stripe::RequestParams; end
|
964
|
+
class SamsungPay < Stripe::RequestParams; end
|
965
|
+
class Satispay < Stripe::RequestParams; end
|
1014
966
|
|
1015
967
|
class SepaDebit < Stripe::RequestParams
|
1016
968
|
# IBAN of the bank account.
|
@@ -1030,11 +982,8 @@ module Stripe
|
|
1030
982
|
end
|
1031
983
|
end
|
1032
984
|
|
1033
|
-
class Swish < Stripe::RequestParams
|
1034
|
-
end
|
1035
|
-
|
1036
|
-
class Twint < Stripe::RequestParams
|
1037
|
-
end
|
985
|
+
class Swish < Stripe::RequestParams; end
|
986
|
+
class Twint < Stripe::RequestParams; end
|
1038
987
|
|
1039
988
|
class UsBankAccount < Stripe::RequestParams
|
1040
989
|
# Account holder type: individual or company.
|
@@ -1063,11 +1012,8 @@ module Stripe
|
|
1063
1012
|
end
|
1064
1013
|
end
|
1065
1014
|
|
1066
|
-
class WechatPay < Stripe::RequestParams
|
1067
|
-
end
|
1068
|
-
|
1069
|
-
class Zip < Stripe::RequestParams
|
1070
|
-
end
|
1015
|
+
class WechatPay < Stripe::RequestParams; end
|
1016
|
+
class Zip < Stripe::RequestParams; end
|
1071
1017
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
1072
1018
|
attr_accessor :acss_debit
|
1073
1019
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
@@ -1373,11 +1319,8 @@ module Stripe
|
|
1373
1319
|
end
|
1374
1320
|
end
|
1375
1321
|
|
1376
|
-
class Link < Stripe::RequestParams
|
1377
|
-
end
|
1378
|
-
|
1379
|
-
class PayByBank < Stripe::RequestParams
|
1380
|
-
end
|
1322
|
+
class Link < Stripe::RequestParams; end
|
1323
|
+
class PayByBank < Stripe::RequestParams; end
|
1381
1324
|
|
1382
1325
|
class UsBankAccount < Stripe::RequestParams
|
1383
1326
|
# Bank account holder type.
|
@@ -1569,16 +1512,16 @@ module Stripe
|
|
1569
1512
|
|
1570
1513
|
# Attaches a PaymentMethod object to a Customer.
|
1571
1514
|
#
|
1572
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
1573
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1515
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
|
1516
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1574
1517
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
1575
1518
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
1576
1519
|
# future use, which makes later declines and payment friction more likely.
|
1577
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1520
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1578
1521
|
# future payments.
|
1579
1522
|
#
|
1580
1523
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
1581
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1524
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1582
1525
|
# on the Customer to the PaymentMethod's ID.
|
1583
1526
|
def attach(params = {}, opts = {})
|
1584
1527
|
request_stripe_object(
|
@@ -1591,16 +1534,16 @@ module Stripe
|
|
1591
1534
|
|
1592
1535
|
# Attaches a PaymentMethod object to a Customer.
|
1593
1536
|
#
|
1594
|
-
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://stripe.com/docs/api/setup_intents)
|
1595
|
-
# or a PaymentIntent with [setup_future_usage](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1537
|
+
# To attach a new PaymentMethod to a customer for future payments, we recommend you use a [SetupIntent](https://docs.stripe.com/docs/api/setup_intents)
|
1538
|
+
# or a PaymentIntent with [setup_future_usage](https://docs.stripe.com/docs/api/payment_intents/create#create_payment_intent-setup_future_usage).
|
1596
1539
|
# These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the /v1/payment_methods/:id/attach
|
1597
1540
|
# endpoint without first using a SetupIntent or PaymentIntent with setup_future_usage does not optimize the PaymentMethod for
|
1598
1541
|
# future use, which makes later declines and payment friction more likely.
|
1599
|
-
# See [Optimizing cards for future payments](https://stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1542
|
+
# See [Optimizing cards for future payments](https://docs.stripe.com/docs/payments/payment-intents#future-usage) for more information about setting up
|
1600
1543
|
# future payments.
|
1601
1544
|
#
|
1602
1545
|
# To use this PaymentMethod as the default for invoice or subscription payments,
|
1603
|
-
# set [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1546
|
+
# set [invoice_settings.default_payment_method](https://docs.stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method),
|
1604
1547
|
# on the Customer to the PaymentMethod's ID.
|
1605
1548
|
def self.attach(payment_method, params = {}, opts = {})
|
1606
1549
|
request_stripe_object(
|
@@ -1611,9 +1554,9 @@ module Stripe
|
|
1611
1554
|
)
|
1612
1555
|
end
|
1613
1556
|
|
1614
|
-
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
1557
|
+
# Creates a PaymentMethod object. Read the [Stripe.js reference](https://docs.stripe.com/docs/stripe-js/reference#stripe-create-payment-method) to learn how to create PaymentMethods via Stripe.js.
|
1615
1558
|
#
|
1616
|
-
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
1559
|
+
# Instead of creating a PaymentMethod directly, we recommend using the [PaymentIntents API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent](https://docs.stripe.com/docs/payments/accept-a-payment) API to collect payment method details ahead of a future payment.
|
1617
1560
|
def self.create(params = {}, opts = {})
|
1618
1561
|
request_stripe_object(method: :post, path: "/v1/payment_methods", params: params, opts: opts)
|
1619
1562
|
end
|
@@ -1638,7 +1581,7 @@ module Stripe
|
|
1638
1581
|
)
|
1639
1582
|
end
|
1640
1583
|
|
1641
|
-
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://stripe.com/docs/api/payment_methods/customer_list) API instead.
|
1584
|
+
# Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the [List a Customer's PaymentMethods](https://docs.stripe.com/docs/api/payment_methods/customer_list) API instead.
|
1642
1585
|
def self.list(params = {}, opts = {})
|
1643
1586
|
request_stripe_object(method: :get, path: "/v1/payment_methods", params: params, opts: opts)
|
1644
1587
|
end
|