stripe 19.1.0 → 19.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/lib/stripe/api_requestor.rb +3 -0
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/event_types.rb +16 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_failed_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_processing_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_event.rb +44 -0
- data/lib/stripe/events/v2_commerce_product_catalog_imports_succeeded_with_errors_event.rb +44 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/account_create_params.rb +26 -0
- data/lib/stripe/params/account_update_params.rb +26 -0
- data/lib/stripe/params/balance_settings_update_params.rb +42 -2
- data/lib/stripe/params/charge_create_params.rb +4 -1
- data/lib/stripe/params/checkout/session_create_params.rb +28 -15
- data/lib/stripe/params/confirmation_token_create_params.rb +11 -1
- data/lib/stripe/params/invoice_create_preview_params.rb +60 -0
- data/lib/stripe/params/payment_intent_capture_params.rb +2 -2
- data/lib/stripe/params/payment_intent_confirm_params.rb +38 -5
- data/lib/stripe/params/payment_intent_create_params.rb +65 -6
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +2 -2
- data/lib/stripe/params/payment_intent_update_params.rb +58 -5
- data/lib/stripe/params/payment_link_create_params.rb +30 -1
- data/lib/stripe/params/payment_link_update_params.rb +29 -0
- data/lib/stripe/params/payment_method_configuration_create_params.rb +43 -1
- data/lib/stripe/params/payment_method_configuration_list_params.rb +4 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +43 -1
- data/lib/stripe/params/payment_method_create_params.rb +11 -1
- data/lib/stripe/params/payout_create_params.rb +1 -1
- data/lib/stripe/params/setup_intent_confirm_params.rb +18 -2
- data/lib/stripe/params/setup_intent_create_params.rb +18 -2
- data/lib/stripe/params/setup_intent_update_params.rb +18 -2
- data/lib/stripe/params/subscription_create_params.rb +61 -11
- data/lib/stripe/params/subscription_item_create_params.rb +1 -7
- data/lib/stripe/params/subscription_item_delete_params.rb +1 -7
- data/lib/stripe/params/subscription_item_update_params.rb +1 -7
- data/lib/stripe/params/subscription_schedule_create_params.rb +4 -0
- data/lib/stripe/params/subscription_schedule_update_params.rb +4 -0
- data/lib/stripe/params/subscription_update_params.rb +62 -8
- data/lib/stripe/params/terminal/configuration_create_params.rb +52 -0
- data/lib/stripe/params/terminal/configuration_update_params.rb +52 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +11 -1
- data/lib/stripe/params/test_helpers/test_clock_create_params.rb +4 -1
- data/lib/stripe/params/v2/billing/meter_event_adjustment_create_params.rb +2 -2
- data/lib/stripe/params/v2/commerce/product_catalog/import_create_params.rb +25 -0
- data/lib/stripe/params/v2/commerce/product_catalog/import_list_params.rb +54 -0
- data/lib/stripe/params/v2/commerce/product_catalog/import_retrieve_params.rb +12 -0
- data/lib/stripe/params/v2/core/account_create_params.rb +28 -6
- data/lib/stripe/params/v2/core/account_token_create_params.rb +27 -5
- data/lib/stripe/params/v2/core/account_update_params.rb +29 -7
- data/lib/stripe/params/v2/core/event_destination_create_params.rb +23 -0
- data/lib/stripe/params.rb +1342 -614
- data/lib/stripe/railtie.rb +8 -0
- data/lib/stripe/resources/account.rb +4 -0
- data/lib/stripe/resources/balance_settings.rb +42 -2
- data/lib/stripe/resources/charge.rb +35 -0
- data/lib/stripe/resources/checkout/session.rb +23 -7
- data/lib/stripe/resources/confirmation_token.rb +26 -0
- data/lib/stripe/resources/discount.rb +2 -2
- data/lib/stripe/resources/invoice.rb +2 -0
- data/lib/stripe/resources/invoice_item.rb +34 -1
- data/lib/stripe/resources/issuing/dispute.rb +1 -1
- data/lib/stripe/resources/issuing/personalization_design.rb +1 -1
- data/lib/stripe/resources/mandate.rb +13 -0
- data/lib/stripe/resources/payment_attempt_record.rb +40 -10
- data/lib/stripe/resources/payment_intent.rb +71 -5
- data/lib/stripe/resources/payment_link.rb +40 -0
- data/lib/stripe/resources/payment_method.rb +26 -0
- data/lib/stripe/resources/payment_method_configuration.rb +68 -0
- data/lib/stripe/resources/payment_record.rb +40 -10
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- data/lib/stripe/resources/refund.rb +13 -0
- data/lib/stripe/resources/setup_attempt.rb +13 -0
- data/lib/stripe/resources/setup_intent.rb +26 -0
- data/lib/stripe/resources/subscription.rb +77 -4
- data/lib/stripe/resources/subscription_item.rb +2 -0
- data/lib/stripe/resources/subscription_schedule.rb +2 -0
- data/lib/stripe/resources/terminal/configuration.rb +64 -0
- data/lib/stripe/resources/terminal/reader.rb +116 -0
- data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +3 -3
- data/lib/stripe/resources/v2/billing/meter_event_session.rb +3 -3
- data/lib/stripe/resources/v2/commerce/product_catalog_import.rb +274 -0
- data/lib/stripe/resources/v2/core/account.rb +37 -10
- data/lib/stripe/resources/v2/core/account_token.rb +1 -1
- data/lib/stripe/resources/v2/core/event.rb +1 -0
- data/lib/stripe/resources/v2/core/event_destination.rb +24 -0
- data/lib/stripe/resources.rb +500 -178
- data/lib/stripe/services/payment_intent_service.rb +3 -1
- data/lib/stripe/services/subscription_service.rb +2 -2
- data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -1
- data/lib/stripe/services/v2/commerce/product_catalog/import_service.rb +45 -0
- data/lib/stripe/services/v2/commerce/product_catalog_service.rb +17 -0
- data/lib/stripe/services/v2/commerce_service.rb +15 -0
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +5 -1
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/event_service.rb +2 -1
- data/lib/stripe/services/v2_services.rb +2 -1
- data/lib/stripe/services.rb +469 -189
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +25 -4
- data/rbi/stripe.rbi +2785 -253
- metadata +14 -2
|
@@ -46,9 +46,9 @@ module Stripe
|
|
|
46
46
|
class Shipping < ::Stripe::StripeObject
|
|
47
47
|
# If a physical good is being shipped, the cost of shipping represented in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). An integer greater than or equal to 0.
|
|
48
48
|
attr_reader :amount
|
|
49
|
-
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
49
|
+
# If a physical good is being shipped, the postal code of where it is being shipped from. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
|
|
50
50
|
attr_reader :from_postal_code
|
|
51
|
-
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens are allowed.
|
|
51
|
+
# If a physical good is being shipped, the postal code of where it is being shipped to. At most 10 alphanumeric characters long, hyphens and spaces are allowed.
|
|
52
52
|
attr_reader :to_postal_code
|
|
53
53
|
|
|
54
54
|
def self.inner_class_types
|
|
@@ -275,6 +275,16 @@ module Stripe
|
|
|
275
275
|
end
|
|
276
276
|
end
|
|
277
277
|
|
|
278
|
+
class BlikAuthorize < ::Stripe::StripeObject
|
|
279
|
+
def self.inner_class_types
|
|
280
|
+
@inner_class_types = {}
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
def self.field_remappings
|
|
284
|
+
@field_remappings = {}
|
|
285
|
+
end
|
|
286
|
+
end
|
|
287
|
+
|
|
278
288
|
class BoletoDisplayDetails < ::Stripe::StripeObject
|
|
279
289
|
# The timestamp after which the boleto expires.
|
|
280
290
|
attr_reader :expires_at
|
|
@@ -1200,6 +1210,8 @@ module Stripe
|
|
|
1200
1210
|
end
|
|
1201
1211
|
# Attribute for field alipay_handle_redirect
|
|
1202
1212
|
attr_reader :alipay_handle_redirect
|
|
1213
|
+
# Attribute for field blik_authorize
|
|
1214
|
+
attr_reader :blik_authorize
|
|
1203
1215
|
# Attribute for field boleto_display_details
|
|
1204
1216
|
attr_reader :boleto_display_details
|
|
1205
1217
|
# Attribute for field card_await_notification
|
|
@@ -1244,6 +1256,7 @@ module Stripe
|
|
|
1244
1256
|
def self.inner_class_types
|
|
1245
1257
|
@inner_class_types = {
|
|
1246
1258
|
alipay_handle_redirect: AlipayHandleRedirect,
|
|
1259
|
+
blik_authorize: BlikAuthorize,
|
|
1247
1260
|
boleto_display_details: BoletoDisplayDetails,
|
|
1248
1261
|
card_await_notification: CardAwaitNotification,
|
|
1249
1262
|
cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode,
|
|
@@ -1538,6 +1551,16 @@ module Stripe
|
|
|
1538
1551
|
end
|
|
1539
1552
|
end
|
|
1540
1553
|
|
|
1554
|
+
class Bizum < ::Stripe::StripeObject
|
|
1555
|
+
def self.inner_class_types
|
|
1556
|
+
@inner_class_types = {}
|
|
1557
|
+
end
|
|
1558
|
+
|
|
1559
|
+
def self.field_remappings
|
|
1560
|
+
@field_remappings = {}
|
|
1561
|
+
end
|
|
1562
|
+
end
|
|
1563
|
+
|
|
1541
1564
|
class Blik < ::Stripe::StripeObject
|
|
1542
1565
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
1543
1566
|
#
|
|
@@ -2417,6 +2440,19 @@ module Stripe
|
|
|
2417
2440
|
end
|
|
2418
2441
|
end
|
|
2419
2442
|
|
|
2443
|
+
class Scalapay < ::Stripe::StripeObject
|
|
2444
|
+
# Controls when the funds will be captured from the customer's account.
|
|
2445
|
+
attr_reader :capture_method
|
|
2446
|
+
|
|
2447
|
+
def self.inner_class_types
|
|
2448
|
+
@inner_class_types = {}
|
|
2449
|
+
end
|
|
2450
|
+
|
|
2451
|
+
def self.field_remappings
|
|
2452
|
+
@field_remappings = {}
|
|
2453
|
+
end
|
|
2454
|
+
end
|
|
2455
|
+
|
|
2420
2456
|
class SepaDebit < ::Stripe::StripeObject
|
|
2421
2457
|
class MandateOptions < ::Stripe::StripeObject
|
|
2422
2458
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
|
@@ -2668,6 +2704,8 @@ module Stripe
|
|
|
2668
2704
|
attr_reader :bancontact
|
|
2669
2705
|
# Attribute for field billie
|
|
2670
2706
|
attr_reader :billie
|
|
2707
|
+
# Attribute for field bizum
|
|
2708
|
+
attr_reader :bizum
|
|
2671
2709
|
# Attribute for field blik
|
|
2672
2710
|
attr_reader :blik
|
|
2673
2711
|
# Attribute for field boleto
|
|
@@ -2738,6 +2776,8 @@ module Stripe
|
|
|
2738
2776
|
attr_reader :samsung_pay
|
|
2739
2777
|
# Attribute for field satispay
|
|
2740
2778
|
attr_reader :satispay
|
|
2779
|
+
# Attribute for field scalapay
|
|
2780
|
+
attr_reader :scalapay
|
|
2741
2781
|
# Attribute for field sepa_debit
|
|
2742
2782
|
attr_reader :sepa_debit
|
|
2743
2783
|
# Attribute for field sofort
|
|
@@ -2767,6 +2807,7 @@ module Stripe
|
|
|
2767
2807
|
bacs_debit: BacsDebit,
|
|
2768
2808
|
bancontact: Bancontact,
|
|
2769
2809
|
billie: Billie,
|
|
2810
|
+
bizum: Bizum,
|
|
2770
2811
|
blik: Blik,
|
|
2771
2812
|
boleto: Boleto,
|
|
2772
2813
|
card: Card,
|
|
@@ -2802,6 +2843,7 @@ module Stripe
|
|
|
2802
2843
|
revolut_pay: RevolutPay,
|
|
2803
2844
|
samsung_pay: SamsungPay,
|
|
2804
2845
|
satispay: Satispay,
|
|
2846
|
+
scalapay: Scalapay,
|
|
2805
2847
|
sepa_debit: SepaDebit,
|
|
2806
2848
|
sofort: Sofort,
|
|
2807
2849
|
swish: Swish,
|
|
@@ -2918,15 +2960,35 @@ module Stripe
|
|
|
2918
2960
|
end
|
|
2919
2961
|
|
|
2920
2962
|
class TransferData < ::Stripe::StripeObject
|
|
2963
|
+
class PaymentData < ::Stripe::StripeObject
|
|
2964
|
+
# An arbitrary string attached to the destination payment. Often useful for displaying to users.
|
|
2965
|
+
attr_reader :description
|
|
2966
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
2967
|
+
attr_reader :metadata
|
|
2968
|
+
|
|
2969
|
+
def self.inner_class_types
|
|
2970
|
+
@inner_class_types = {}
|
|
2971
|
+
end
|
|
2972
|
+
|
|
2973
|
+
def self.field_remappings
|
|
2974
|
+
@field_remappings = {}
|
|
2975
|
+
end
|
|
2976
|
+
end
|
|
2921
2977
|
# The amount transferred to the destination account. This transfer will occur automatically after the payment succeeds. If no amount is specified, by default the entire payment amount is transferred to the destination account.
|
|
2922
2978
|
# The amount must be less than or equal to the [amount](https://docs.stripe.com/api/payment_intents/object#payment_intent_object-amount), and must be a positive integer
|
|
2923
2979
|
# representing how much to transfer in the smallest currency unit (e.g., 100 cents to charge $1.00).
|
|
2924
2980
|
attr_reader :amount
|
|
2981
|
+
# An arbitrary string attached to the transfer. Often useful for displaying to users.
|
|
2982
|
+
attr_reader :description
|
|
2925
2983
|
# The account (if any) that the payment is attributed to for tax reporting, and where funds from the payment are transferred to after payment success.
|
|
2926
2984
|
attr_reader :destination
|
|
2985
|
+
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
2986
|
+
attr_reader :metadata
|
|
2987
|
+
# Attribute for field payment_data
|
|
2988
|
+
attr_reader :payment_data
|
|
2927
2989
|
|
|
2928
2990
|
def self.inner_class_types
|
|
2929
|
-
@inner_class_types = {}
|
|
2991
|
+
@inner_class_types = { payment_data: PaymentData }
|
|
2930
2992
|
end
|
|
2931
2993
|
|
|
2932
2994
|
def self.field_remappings
|
|
@@ -3236,7 +3298,9 @@ module Stripe
|
|
|
3236
3298
|
# Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
|
|
3237
3299
|
# After it's captured, a PaymentIntent can no longer be incremented.
|
|
3238
3300
|
#
|
|
3239
|
-
# Learn more about
|
|
3301
|
+
# Learn more about incremental authorizations with
|
|
3302
|
+
# [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and
|
|
3303
|
+
# [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements).
|
|
3240
3304
|
def increment_authorization(params = {}, opts = {})
|
|
3241
3305
|
request_stripe_object(
|
|
3242
3306
|
method: :post,
|
|
@@ -3269,7 +3333,9 @@ module Stripe
|
|
|
3269
3333
|
# Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
|
|
3270
3334
|
# After it's captured, a PaymentIntent can no longer be incremented.
|
|
3271
3335
|
#
|
|
3272
|
-
# Learn more about
|
|
3336
|
+
# Learn more about incremental authorizations with
|
|
3337
|
+
# [in-person payments](https://docs.stripe.com/docs/terminal/features/incremental-authorizations) and
|
|
3338
|
+
# [online payments](https://docs.stripe.com/docs/payments/incremental-authorization?platform=web&ui=elements).
|
|
3273
3339
|
def self.increment_authorization(intent, params = {}, opts = {})
|
|
3274
3340
|
request_stripe_object(
|
|
3275
3341
|
method: :post,
|
|
@@ -498,6 +498,43 @@ module Stripe
|
|
|
498
498
|
end
|
|
499
499
|
end
|
|
500
500
|
|
|
501
|
+
class PaymentMethodOptions < ::Stripe::StripeObject
|
|
502
|
+
class Card < ::Stripe::StripeObject
|
|
503
|
+
class Restrictions < ::Stripe::StripeObject
|
|
504
|
+
# The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment.
|
|
505
|
+
attr_reader :brands_blocked
|
|
506
|
+
|
|
507
|
+
def self.inner_class_types
|
|
508
|
+
@inner_class_types = {}
|
|
509
|
+
end
|
|
510
|
+
|
|
511
|
+
def self.field_remappings
|
|
512
|
+
@field_remappings = {}
|
|
513
|
+
end
|
|
514
|
+
end
|
|
515
|
+
# Restrictions to apply to the card payment method. For example, you can block specific card brands.
|
|
516
|
+
attr_reader :restrictions
|
|
517
|
+
|
|
518
|
+
def self.inner_class_types
|
|
519
|
+
@inner_class_types = { restrictions: Restrictions }
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
def self.field_remappings
|
|
523
|
+
@field_remappings = {}
|
|
524
|
+
end
|
|
525
|
+
end
|
|
526
|
+
# Configuration for `card` payment methods.
|
|
527
|
+
attr_reader :card
|
|
528
|
+
|
|
529
|
+
def self.inner_class_types
|
|
530
|
+
@inner_class_types = { card: Card }
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
def self.field_remappings
|
|
534
|
+
@field_remappings = {}
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
|
|
501
538
|
class PhoneNumberCollection < ::Stripe::StripeObject
|
|
502
539
|
# If `true`, a phone number will be collected during checkout.
|
|
503
540
|
attr_reader :enabled
|
|
@@ -719,6 +756,8 @@ module Stripe
|
|
|
719
756
|
attr_reader :payment_intent_data
|
|
720
757
|
# Configuration for collecting a payment method during checkout. Defaults to `always`.
|
|
721
758
|
attr_reader :payment_method_collection
|
|
759
|
+
# Payment-method-specific configuration.
|
|
760
|
+
attr_reader :payment_method_options
|
|
722
761
|
# The list of payment method types that customers can use. When `null`, Stripe will dynamically show relevant payment methods you've enabled in your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
|
|
723
762
|
attr_reader :payment_method_types
|
|
724
763
|
# Attribute for field phone_number_collection
|
|
@@ -792,6 +831,7 @@ module Stripe
|
|
|
792
831
|
name_collection: NameCollection,
|
|
793
832
|
optional_items: OptionalItem,
|
|
794
833
|
payment_intent_data: PaymentIntentData,
|
|
834
|
+
payment_method_options: PaymentMethodOptions,
|
|
795
835
|
phone_number_collection: PhoneNumberCollection,
|
|
796
836
|
restrictions: Restrictions,
|
|
797
837
|
shipping_address_collection: ShippingAddressCollection,
|
|
@@ -185,6 +185,16 @@ module Stripe
|
|
|
185
185
|
end
|
|
186
186
|
end
|
|
187
187
|
|
|
188
|
+
class Bizum < ::Stripe::StripeObject
|
|
189
|
+
def self.inner_class_types
|
|
190
|
+
@inner_class_types = {}
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
def self.field_remappings
|
|
194
|
+
@field_remappings = {}
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
188
198
|
class Blik < ::Stripe::StripeObject
|
|
189
199
|
def self.inner_class_types
|
|
190
200
|
@inner_class_types = {}
|
|
@@ -1249,6 +1259,16 @@ module Stripe
|
|
|
1249
1259
|
end
|
|
1250
1260
|
end
|
|
1251
1261
|
|
|
1262
|
+
class Scalapay < ::Stripe::StripeObject
|
|
1263
|
+
def self.inner_class_types
|
|
1264
|
+
@inner_class_types = {}
|
|
1265
|
+
end
|
|
1266
|
+
|
|
1267
|
+
def self.field_remappings
|
|
1268
|
+
@field_remappings = {}
|
|
1269
|
+
end
|
|
1270
|
+
end
|
|
1271
|
+
|
|
1252
1272
|
class SepaDebit < ::Stripe::StripeObject
|
|
1253
1273
|
class GeneratedFrom < ::Stripe::StripeObject
|
|
1254
1274
|
# The ID of the Charge that generated this PaymentMethod, if any.
|
|
@@ -1455,6 +1475,8 @@ module Stripe
|
|
|
1455
1475
|
attr_reader :billie
|
|
1456
1476
|
# Attribute for field billing_details
|
|
1457
1477
|
attr_reader :billing_details
|
|
1478
|
+
# Attribute for field bizum
|
|
1479
|
+
attr_reader :bizum
|
|
1458
1480
|
# Attribute for field blik
|
|
1459
1481
|
attr_reader :blik
|
|
1460
1482
|
# Attribute for field boleto
|
|
@@ -1543,6 +1565,8 @@ module Stripe
|
|
|
1543
1565
|
attr_reader :samsung_pay
|
|
1544
1566
|
# Attribute for field satispay
|
|
1545
1567
|
attr_reader :satispay
|
|
1568
|
+
# Attribute for field scalapay
|
|
1569
|
+
attr_reader :scalapay
|
|
1546
1570
|
# Attribute for field sepa_debit
|
|
1547
1571
|
attr_reader :sepa_debit
|
|
1548
1572
|
# Attribute for field sofort
|
|
@@ -1663,6 +1687,7 @@ module Stripe
|
|
|
1663
1687
|
bancontact: Bancontact,
|
|
1664
1688
|
billie: Billie,
|
|
1665
1689
|
billing_details: BillingDetails,
|
|
1690
|
+
bizum: Bizum,
|
|
1666
1691
|
blik: Blik,
|
|
1667
1692
|
boleto: Boleto,
|
|
1668
1693
|
card: Card,
|
|
@@ -1700,6 +1725,7 @@ module Stripe
|
|
|
1700
1725
|
revolut_pay: RevolutPay,
|
|
1701
1726
|
samsung_pay: SamsungPay,
|
|
1702
1727
|
satispay: Satispay,
|
|
1728
|
+
scalapay: Scalapay,
|
|
1703
1729
|
sepa_debit: SepaDebit,
|
|
1704
1730
|
sofort: Sofort,
|
|
1705
1731
|
sunbit: Sunbit,
|
|
@@ -367,6 +367,37 @@ module Stripe
|
|
|
367
367
|
end
|
|
368
368
|
end
|
|
369
369
|
|
|
370
|
+
class Bizum < ::Stripe::StripeObject
|
|
371
|
+
class DisplayPreference < ::Stripe::StripeObject
|
|
372
|
+
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
373
|
+
attr_reader :overridable
|
|
374
|
+
# The account's display preference.
|
|
375
|
+
attr_reader :preference
|
|
376
|
+
# The effective display preference value.
|
|
377
|
+
attr_reader :value
|
|
378
|
+
|
|
379
|
+
def self.inner_class_types
|
|
380
|
+
@inner_class_types = {}
|
|
381
|
+
end
|
|
382
|
+
|
|
383
|
+
def self.field_remappings
|
|
384
|
+
@field_remappings = {}
|
|
385
|
+
end
|
|
386
|
+
end
|
|
387
|
+
# Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
388
|
+
attr_reader :available
|
|
389
|
+
# Attribute for field display_preference
|
|
390
|
+
attr_reader :display_preference
|
|
391
|
+
|
|
392
|
+
def self.inner_class_types
|
|
393
|
+
@inner_class_types = { display_preference: DisplayPreference }
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
def self.field_remappings
|
|
397
|
+
@field_remappings = {}
|
|
398
|
+
end
|
|
399
|
+
end
|
|
400
|
+
|
|
370
401
|
class Blik < ::Stripe::StripeObject
|
|
371
402
|
class DisplayPreference < ::Stripe::StripeObject
|
|
372
403
|
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
@@ -1483,6 +1514,37 @@ module Stripe
|
|
|
1483
1514
|
end
|
|
1484
1515
|
end
|
|
1485
1516
|
|
|
1517
|
+
class Scalapay < ::Stripe::StripeObject
|
|
1518
|
+
class DisplayPreference < ::Stripe::StripeObject
|
|
1519
|
+
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
1520
|
+
attr_reader :overridable
|
|
1521
|
+
# The account's display preference.
|
|
1522
|
+
attr_reader :preference
|
|
1523
|
+
# The effective display preference value.
|
|
1524
|
+
attr_reader :value
|
|
1525
|
+
|
|
1526
|
+
def self.inner_class_types
|
|
1527
|
+
@inner_class_types = {}
|
|
1528
|
+
end
|
|
1529
|
+
|
|
1530
|
+
def self.field_remappings
|
|
1531
|
+
@field_remappings = {}
|
|
1532
|
+
end
|
|
1533
|
+
end
|
|
1534
|
+
# Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
|
|
1535
|
+
attr_reader :available
|
|
1536
|
+
# Attribute for field display_preference
|
|
1537
|
+
attr_reader :display_preference
|
|
1538
|
+
|
|
1539
|
+
def self.inner_class_types
|
|
1540
|
+
@inner_class_types = { display_preference: DisplayPreference }
|
|
1541
|
+
end
|
|
1542
|
+
|
|
1543
|
+
def self.field_remappings
|
|
1544
|
+
@field_remappings = {}
|
|
1545
|
+
end
|
|
1546
|
+
end
|
|
1547
|
+
|
|
1486
1548
|
class SepaDebit < ::Stripe::StripeObject
|
|
1487
1549
|
class DisplayPreference < ::Stripe::StripeObject
|
|
1488
1550
|
# For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
|
|
@@ -1787,6 +1849,8 @@ module Stripe
|
|
|
1787
1849
|
attr_reader :bancontact
|
|
1788
1850
|
# Attribute for field billie
|
|
1789
1851
|
attr_reader :billie
|
|
1852
|
+
# Attribute for field bizum
|
|
1853
|
+
attr_reader :bizum
|
|
1790
1854
|
# Attribute for field blik
|
|
1791
1855
|
attr_reader :blik
|
|
1792
1856
|
# Attribute for field boleto
|
|
@@ -1871,6 +1935,8 @@ module Stripe
|
|
|
1871
1935
|
attr_reader :samsung_pay
|
|
1872
1936
|
# Attribute for field satispay
|
|
1873
1937
|
attr_reader :satispay
|
|
1938
|
+
# Attribute for field scalapay
|
|
1939
|
+
attr_reader :scalapay
|
|
1874
1940
|
# Attribute for field sepa_debit
|
|
1875
1941
|
attr_reader :sepa_debit
|
|
1876
1942
|
# Attribute for field sofort
|
|
@@ -1933,6 +1999,7 @@ module Stripe
|
|
|
1933
1999
|
bacs_debit: BacsDebit,
|
|
1934
2000
|
bancontact: Bancontact,
|
|
1935
2001
|
billie: Billie,
|
|
2002
|
+
bizum: Bizum,
|
|
1936
2003
|
blik: Blik,
|
|
1937
2004
|
boleto: Boleto,
|
|
1938
2005
|
card: Card,
|
|
@@ -1969,6 +2036,7 @@ module Stripe
|
|
|
1969
2036
|
revolut_pay: RevolutPay,
|
|
1970
2037
|
samsung_pay: SamsungPay,
|
|
1971
2038
|
satispay: Satispay,
|
|
2039
|
+
scalapay: Scalapay,
|
|
1972
2040
|
sepa_debit: SepaDebit,
|
|
1973
2041
|
sofort: Sofort,
|
|
1974
2042
|
sunbit: Sunbit,
|
|
@@ -454,6 +454,19 @@ module Stripe
|
|
|
454
454
|
end
|
|
455
455
|
end
|
|
456
456
|
|
|
457
|
+
class Bizum < ::Stripe::StripeObject
|
|
458
|
+
# The Bizum transaction ID associated with this payment.
|
|
459
|
+
attr_reader :transaction_id
|
|
460
|
+
|
|
461
|
+
def self.inner_class_types
|
|
462
|
+
@inner_class_types = {}
|
|
463
|
+
end
|
|
464
|
+
|
|
465
|
+
def self.field_remappings
|
|
466
|
+
@field_remappings = {}
|
|
467
|
+
end
|
|
468
|
+
end
|
|
469
|
+
|
|
457
470
|
class Blik < ::Stripe::StripeObject
|
|
458
471
|
# A unique and immutable identifier assigned by BLIK to every buyer.
|
|
459
472
|
attr_reader :buyer_id
|
|
@@ -1069,11 +1082,9 @@ module Stripe
|
|
|
1069
1082
|
attr_reader :location
|
|
1070
1083
|
# The payer details for this transaction.
|
|
1071
1084
|
attr_reader :payer_details
|
|
1072
|
-
# The Klarna payment method used for this transaction.
|
|
1073
|
-
# Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
|
|
1085
|
+
# The Klarna payment method used for this transaction. Can be one of `pay_later`, `pay_now`, `pay_with_financing`, or `pay_in_installments`
|
|
1074
1086
|
attr_reader :payment_method_category
|
|
1075
|
-
# Preferred language of the Klarna authorization page that the customer is redirected to.
|
|
1076
|
-
# Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
|
|
1087
|
+
# Preferred language of the Klarna authorization page that the customer is redirected to. Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH`
|
|
1077
1088
|
attr_reader :preferred_locale
|
|
1078
1089
|
# ID of the [reader](https://docs.stripe.com/api/terminal/readers) this transaction was made on.
|
|
1079
1090
|
attr_reader :reader
|
|
@@ -1132,8 +1143,7 @@ module Stripe
|
|
|
1132
1143
|
end
|
|
1133
1144
|
|
|
1134
1145
|
class Link < ::Stripe::StripeObject
|
|
1135
|
-
# Two-letter ISO code representing the funding source country beneath the Link payment.
|
|
1136
|
-
# You could use this attribute to get a sense of international fees.
|
|
1146
|
+
# Two-letter ISO code representing the funding source country beneath the Link payment. You could use this attribute to get a sense of international fees.
|
|
1137
1147
|
attr_reader :country
|
|
1138
1148
|
|
|
1139
1149
|
def self.inner_class_types
|
|
@@ -1261,9 +1271,7 @@ module Stripe
|
|
|
1261
1271
|
attr_reader :bank
|
|
1262
1272
|
# Unique reference for this Przelewy24 payment.
|
|
1263
1273
|
attr_reader :reference
|
|
1264
|
-
# Owner's verified full name. Values are verified or provided by Przelewy24 directly
|
|
1265
|
-
# (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
1266
|
-
# Przelewy24 rarely provides this information so the attribute is usually empty.
|
|
1274
|
+
# Owner's verified full name. Values are verified or provided by Przelewy24 directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. Przelewy24 rarely provides this information so the attribute is usually empty.
|
|
1267
1275
|
attr_reader :verified_name
|
|
1268
1276
|
|
|
1269
1277
|
def self.inner_class_types
|
|
@@ -1429,7 +1437,7 @@ module Stripe
|
|
|
1429
1437
|
end
|
|
1430
1438
|
# Attribute for field card
|
|
1431
1439
|
attr_reader :card
|
|
1432
|
-
#
|
|
1440
|
+
# Funding type of the underlying payment method.
|
|
1433
1441
|
attr_reader :type
|
|
1434
1442
|
|
|
1435
1443
|
def self.inner_class_types
|
|
@@ -1482,6 +1490,19 @@ module Stripe
|
|
|
1482
1490
|
end
|
|
1483
1491
|
end
|
|
1484
1492
|
|
|
1493
|
+
class Scalapay < ::Stripe::StripeObject
|
|
1494
|
+
# The Scalapay transaction ID associated with this payment.
|
|
1495
|
+
attr_reader :transaction_id
|
|
1496
|
+
|
|
1497
|
+
def self.inner_class_types
|
|
1498
|
+
@inner_class_types = {}
|
|
1499
|
+
end
|
|
1500
|
+
|
|
1501
|
+
def self.field_remappings
|
|
1502
|
+
@field_remappings = {}
|
|
1503
|
+
end
|
|
1504
|
+
end
|
|
1505
|
+
|
|
1485
1506
|
class SepaCreditTransfer < ::Stripe::StripeObject
|
|
1486
1507
|
# Name of the bank associated with the bank account.
|
|
1487
1508
|
attr_reader :bank_name
|
|
@@ -1594,6 +1615,9 @@ module Stripe
|
|
|
1594
1615
|
end
|
|
1595
1616
|
|
|
1596
1617
|
class Twint < ::Stripe::StripeObject
|
|
1618
|
+
# ID of the multi use Mandate generated by the PaymentIntent
|
|
1619
|
+
attr_reader :mandate
|
|
1620
|
+
|
|
1597
1621
|
def self.inner_class_types
|
|
1598
1622
|
@inner_class_types = {}
|
|
1599
1623
|
end
|
|
@@ -1709,6 +1733,8 @@ module Stripe
|
|
|
1709
1733
|
attr_reader :billie
|
|
1710
1734
|
# The billing details associated with the method of payment.
|
|
1711
1735
|
attr_reader :billing_details
|
|
1736
|
+
# Attribute for field bizum
|
|
1737
|
+
attr_reader :bizum
|
|
1712
1738
|
# Attribute for field blik
|
|
1713
1739
|
attr_reader :blik
|
|
1714
1740
|
# Attribute for field boleto
|
|
@@ -1785,6 +1811,8 @@ module Stripe
|
|
|
1785
1811
|
attr_reader :samsung_pay
|
|
1786
1812
|
# Attribute for field satispay
|
|
1787
1813
|
attr_reader :satispay
|
|
1814
|
+
# Attribute for field scalapay
|
|
1815
|
+
attr_reader :scalapay
|
|
1788
1816
|
# Attribute for field sepa_credit_transfer
|
|
1789
1817
|
attr_reader :sepa_credit_transfer
|
|
1790
1818
|
# Attribute for field sepa_debit
|
|
@@ -1829,6 +1857,7 @@ module Stripe
|
|
|
1829
1857
|
bancontact: Bancontact,
|
|
1830
1858
|
billie: Billie,
|
|
1831
1859
|
billing_details: BillingDetails,
|
|
1860
|
+
bizum: Bizum,
|
|
1832
1861
|
blik: Blik,
|
|
1833
1862
|
boleto: Boleto,
|
|
1834
1863
|
card: Card,
|
|
@@ -1865,6 +1894,7 @@ module Stripe
|
|
|
1865
1894
|
revolut_pay: RevolutPay,
|
|
1866
1895
|
samsung_pay: SamsungPay,
|
|
1867
1896
|
satispay: Satispay,
|
|
1897
|
+
scalapay: Scalapay,
|
|
1868
1898
|
sepa_credit_transfer: SepaCreditTransfer,
|
|
1869
1899
|
sepa_debit: SepaDebit,
|
|
1870
1900
|
sofort: Sofort,
|
|
@@ -463,7 +463,7 @@ module Stripe
|
|
|
463
463
|
attr_reader :outcome
|
|
464
464
|
# Payment details attached to this payment evaluation.
|
|
465
465
|
attr_reader :payment_details
|
|
466
|
-
# Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block` and `
|
|
466
|
+
# Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`.
|
|
467
467
|
attr_reader :recommended_action
|
|
468
468
|
# Collection of signals for this payment evaluation.
|
|
469
469
|
attr_reader :signals
|
|
@@ -360,6 +360,16 @@ module Stripe
|
|
|
360
360
|
end
|
|
361
361
|
end
|
|
362
362
|
|
|
363
|
+
class Scalapay < ::Stripe::StripeObject
|
|
364
|
+
def self.inner_class_types
|
|
365
|
+
@inner_class_types = {}
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
def self.field_remappings
|
|
369
|
+
@field_remappings = {}
|
|
370
|
+
end
|
|
371
|
+
end
|
|
372
|
+
|
|
363
373
|
class Sofort < ::Stripe::StripeObject
|
|
364
374
|
def self.inner_class_types
|
|
365
375
|
@inner_class_types = {}
|
|
@@ -502,6 +512,8 @@ module Stripe
|
|
|
502
512
|
attr_reader :pix
|
|
503
513
|
# Attribute for field revolut
|
|
504
514
|
attr_reader :revolut
|
|
515
|
+
# Attribute for field scalapay
|
|
516
|
+
attr_reader :scalapay
|
|
505
517
|
# Attribute for field sofort
|
|
506
518
|
attr_reader :sofort
|
|
507
519
|
# Attribute for field swish
|
|
@@ -549,6 +561,7 @@ module Stripe
|
|
|
549
561
|
paypal: Paypal,
|
|
550
562
|
pix: Pix,
|
|
551
563
|
revolut: Revolut,
|
|
564
|
+
scalapay: Scalapay,
|
|
552
565
|
sofort: Sofort,
|
|
553
566
|
swish: Swish,
|
|
554
567
|
th_bank_transfer: ThBankTransfer,
|
|
@@ -421,6 +421,16 @@ module Stripe
|
|
|
421
421
|
end
|
|
422
422
|
end
|
|
423
423
|
|
|
424
|
+
class Twint < ::Stripe::StripeObject
|
|
425
|
+
def self.inner_class_types
|
|
426
|
+
@inner_class_types = {}
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
def self.field_remappings
|
|
430
|
+
@field_remappings = {}
|
|
431
|
+
end
|
|
432
|
+
end
|
|
433
|
+
|
|
424
434
|
class Upi < ::Stripe::StripeObject
|
|
425
435
|
def self.inner_class_types
|
|
426
436
|
@inner_class_types = {}
|
|
@@ -484,6 +494,8 @@ module Stripe
|
|
|
484
494
|
attr_reader :sepa_debit
|
|
485
495
|
# Attribute for field sofort
|
|
486
496
|
attr_reader :sofort
|
|
497
|
+
# Attribute for field twint
|
|
498
|
+
attr_reader :twint
|
|
487
499
|
# The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method.
|
|
488
500
|
attr_reader :type
|
|
489
501
|
# Attribute for field upi
|
|
@@ -515,6 +527,7 @@ module Stripe
|
|
|
515
527
|
revolut_pay: RevolutPay,
|
|
516
528
|
sepa_debit: SepaDebit,
|
|
517
529
|
sofort: Sofort,
|
|
530
|
+
twint: Twint,
|
|
518
531
|
upi: Upi,
|
|
519
532
|
us_bank_account: UsBankAccount,
|
|
520
533
|
}
|
|
@@ -141,6 +141,16 @@ module Stripe
|
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
class NextAction < ::Stripe::StripeObject
|
|
144
|
+
class BlikAuthorize < ::Stripe::StripeObject
|
|
145
|
+
def self.inner_class_types
|
|
146
|
+
@inner_class_types = {}
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
def self.field_remappings
|
|
150
|
+
@field_remappings = {}
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
|
|
144
154
|
class CashappHandleRedirectOrDisplayQrCode < ::Stripe::StripeObject
|
|
145
155
|
class QrCode < ::Stripe::StripeObject
|
|
146
156
|
# The date (unix timestamp) when the QR code expires.
|
|
@@ -257,6 +267,8 @@ module Stripe
|
|
|
257
267
|
@field_remappings = {}
|
|
258
268
|
end
|
|
259
269
|
end
|
|
270
|
+
# Attribute for field blik_authorize
|
|
271
|
+
attr_reader :blik_authorize
|
|
260
272
|
# Attribute for field cashapp_handle_redirect_or_display_qr_code
|
|
261
273
|
attr_reader :cashapp_handle_redirect_or_display_qr_code
|
|
262
274
|
# Attribute for field pix_display_qr_code
|
|
@@ -274,6 +286,7 @@ module Stripe
|
|
|
274
286
|
|
|
275
287
|
def self.inner_class_types
|
|
276
288
|
@inner_class_types = {
|
|
289
|
+
blik_authorize: BlikAuthorize,
|
|
277
290
|
cashapp_handle_redirect_or_display_qr_code: CashappHandleRedirectOrDisplayQrCode,
|
|
278
291
|
pix_display_qr_code: PixDisplayQrCode,
|
|
279
292
|
redirect_to_url: RedirectToUrl,
|
|
@@ -375,6 +388,16 @@ module Stripe
|
|
|
375
388
|
end
|
|
376
389
|
end
|
|
377
390
|
|
|
391
|
+
class Bizum < ::Stripe::StripeObject
|
|
392
|
+
def self.inner_class_types
|
|
393
|
+
@inner_class_types = {}
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
def self.field_remappings
|
|
397
|
+
@field_remappings = {}
|
|
398
|
+
end
|
|
399
|
+
end
|
|
400
|
+
|
|
378
401
|
class Card < ::Stripe::StripeObject
|
|
379
402
|
class MandateOptions < ::Stripe::StripeObject
|
|
380
403
|
# Amount to be charged for future payments, specified in the presentment currency.
|
|
@@ -673,6 +696,8 @@ module Stripe
|
|
|
673
696
|
attr_reader :amazon_pay
|
|
674
697
|
# Attribute for field bacs_debit
|
|
675
698
|
attr_reader :bacs_debit
|
|
699
|
+
# Attribute for field bizum
|
|
700
|
+
attr_reader :bizum
|
|
676
701
|
# Attribute for field card
|
|
677
702
|
attr_reader :card
|
|
678
703
|
# Attribute for field card_present
|
|
@@ -699,6 +724,7 @@ module Stripe
|
|
|
699
724
|
acss_debit: AcssDebit,
|
|
700
725
|
amazon_pay: AmazonPay,
|
|
701
726
|
bacs_debit: BacsDebit,
|
|
727
|
+
bizum: Bizum,
|
|
702
728
|
card: Card,
|
|
703
729
|
card_present: CardPresent,
|
|
704
730
|
klarna: Klarna,
|