stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.2
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/event_types.rb +8 -0
- data/lib/stripe/events/v2_extend_object_definition_created_event.rb +61 -0
- data/lib/stripe/events/v2_extend_object_definition_version_created_event.rb +65 -0
- data/lib/stripe/object_types.rb +4 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +42 -1
- data/lib/stripe/params/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/customer_tax_exemption_create_params.rb +29 -1
- data/lib/stripe/params/invoice_create_params.rb +8 -1
- data/lib/stripe/params/invoice_update_params.rb +8 -1
- data/lib/stripe/params/payment_attempt_record_report_authenticated_params.rb +49 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +57 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +91 -1
- data/lib/stripe/params/payment_intent_create_params.rb +91 -1
- data/lib/stripe/params/payment_intent_decrement_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_increment_authorization_params.rb +57 -1
- data/lib/stripe/params/payment_intent_update_params.rb +91 -1
- data/lib/stripe/params/payment_method_configuration_create_params.rb +21 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +21 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/quote_create_params.rb +1 -1
- data/lib/stripe/params/quote_update_params.rb +1 -1
- data/lib/stripe/params/radar/payment_evaluation_create_params.rb +13 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +37 -0
- data/lib/stripe/params/setup_intent_create_params.rb +37 -0
- data/lib/stripe/params/setup_intent_update_params.rb +21 -0
- data/lib/stripe/params/subscription_create_params.rb +4 -0
- data/lib/stripe/params/subscription_list_params.rb +5 -1
- data/lib/stripe/params/subscription_update_params.rb +4 -0
- data/lib/stripe/params/tax/certificate_create_params.rb +21 -0
- data/lib/stripe/params/tax/certificate_delete_params.rb +8 -0
- data/lib/stripe/params/tax/certificate_list_params.rb +33 -0
- data/lib/stripe/params/tax/certificate_retrieve_params.rb +15 -0
- data/lib/stripe/params/tax/form_create_params.rb +504 -0
- data/lib/stripe/params/test_helpers/confirmation_token_create_params.rb +21 -0
- data/lib/stripe/params/v2/core/account_session_create_params.rb +13 -0
- data/lib/stripe/params/v2/extend/object_definition_list_params.rb +17 -0
- data/lib/stripe/params/v2/extend/object_definition_retrieve_params.rb +10 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_list_params.rb +19 -0
- data/lib/stripe/params/v2/extend/object_definitions/version_retrieve_params.rb +12 -0
- data/lib/stripe/params.rb +21 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/charge.rb +354 -2
- data/lib/stripe/resources/checkout/session.rb +30 -0
- data/lib/stripe/resources/confirmation_token.rb +84 -0
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/payment_attempt_record.rb +133 -0
- data/lib/stripe/resources/payment_intent.rb +100 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +84 -0
- data/lib/stripe/resources/payment_method_configuration.rb +34 -0
- data/lib/stripe/resources/payment_record.rb +133 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +37 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/setup_attempt.rb +3 -0
- data/lib/stripe/resources/setup_intent.rb +19 -1
- data/lib/stripe/resources/subscription.rb +3 -1
- data/lib/stripe/resources/tax/certificate.rb +81 -0
- data/lib/stripe/resources/tax/form.rb +11 -0
- data/lib/stripe/resources/tax/form_correction.rb +43 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_payment.rb +29 -1
- data/lib/stripe/resources/treasury/outbound_transfer.rb +29 -1
- data/lib/stripe/resources/v2/core/account_session.rb +27 -0
- data/lib/stripe/resources/v2/data/search_result_list.rb +1 -1
- data/lib/stripe/resources/v2/extend/object_definition.rb +40 -0
- data/lib/stripe/resources/v2/extend/object_definition_version.rb +168 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/tax/certificate_service.rb +52 -0
- data/lib/stripe/services/tax/form_service.rb +11 -0
- data/lib/stripe/services/tax_service.rb +2 -1
- data/lib/stripe/services/v2/extend/object_definition_service.rb +39 -0
- data/lib/stripe/services/v2/extend/object_definitions/version_service.rb +34 -0
- data/lib/stripe/services/v2/extend_service.rb +2 -1
- data/lib/stripe/services.rb +9 -0
- data/lib/stripe/stripe_event_notification_handler.rb +8 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +7 -1
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe.rbi +4320 -69
- metadata +20 -2
|
@@ -81,11 +81,67 @@ module Stripe
|
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
class CardPresent < ::Stripe::RequestParams
|
|
84
|
+
class EvCharging < ::Stripe::RequestParams
|
|
85
|
+
# The carbon footprint avoided by the charging session, in grams of CO2.
|
|
86
|
+
attr_accessor :carbon_footprint_avoided_grams_co2
|
|
87
|
+
# The time the charging session ended, measured in seconds since the Unix epoch.
|
|
88
|
+
attr_accessor :charging_ended_at
|
|
89
|
+
# The power output capacity of the charging station, in kilowatts (kW).
|
|
90
|
+
attr_accessor :charging_power_output_capacity_kw
|
|
91
|
+
# The time the charging session started, measured in seconds since the Unix epoch.
|
|
92
|
+
attr_accessor :charging_started_at
|
|
93
|
+
# The type of connector used for the charging session.
|
|
94
|
+
attr_accessor :connector_type
|
|
95
|
+
# The estimated distance in kilometers or miles added to the vehicle during the charging session.
|
|
96
|
+
attr_accessor :estimated_range_added
|
|
97
|
+
# The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
|
|
98
|
+
attr_accessor :estimated_range_left
|
|
99
|
+
# The maximum power dispensed during the charging session, in kilowatts (kW).
|
|
100
|
+
attr_accessor :maximum_power_dispensed_kw
|
|
101
|
+
|
|
102
|
+
def initialize(
|
|
103
|
+
carbon_footprint_avoided_grams_co2: nil,
|
|
104
|
+
charging_ended_at: nil,
|
|
105
|
+
charging_power_output_capacity_kw: nil,
|
|
106
|
+
charging_started_at: nil,
|
|
107
|
+
connector_type: nil,
|
|
108
|
+
estimated_range_added: nil,
|
|
109
|
+
estimated_range_left: nil,
|
|
110
|
+
maximum_power_dispensed_kw: nil
|
|
111
|
+
)
|
|
112
|
+
@carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
|
|
113
|
+
@charging_ended_at = charging_ended_at
|
|
114
|
+
@charging_power_output_capacity_kw = charging_power_output_capacity_kw
|
|
115
|
+
@charging_started_at = charging_started_at
|
|
116
|
+
@connector_type = connector_type
|
|
117
|
+
@estimated_range_added = estimated_range_added
|
|
118
|
+
@estimated_range_left = estimated_range_left
|
|
119
|
+
@maximum_power_dispensed_kw = maximum_power_dispensed_kw
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
class FleetData < ::Stripe::RequestParams
|
|
124
|
+
# The type of product being purchased at this line item.
|
|
125
|
+
attr_accessor :product_type
|
|
126
|
+
# The type of service received at the acceptor location.
|
|
127
|
+
attr_accessor :service_type
|
|
128
|
+
|
|
129
|
+
def initialize(product_type: nil, service_type: nil)
|
|
130
|
+
@product_type = product_type
|
|
131
|
+
@service_type = service_type
|
|
132
|
+
end
|
|
133
|
+
end
|
|
84
134
|
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
85
135
|
attr_accessor :commodity_code
|
|
136
|
+
# EV charging data for this line item.
|
|
137
|
+
attr_accessor :ev_charging
|
|
138
|
+
# Fleet data for this line item.
|
|
139
|
+
attr_accessor :fleet_data
|
|
86
140
|
|
|
87
|
-
def initialize(commodity_code: nil)
|
|
141
|
+
def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
|
|
88
142
|
@commodity_code = commodity_code
|
|
143
|
+
@ev_charging = ev_charging
|
|
144
|
+
@fleet_data = fleet_data
|
|
89
145
|
end
|
|
90
146
|
end
|
|
91
147
|
|
|
@@ -2335,6 +2391,7 @@ module Stripe
|
|
|
2335
2391
|
end
|
|
2336
2392
|
end
|
|
2337
2393
|
|
|
2394
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
2338
2395
|
class Affirm < ::Stripe::RequestParams; end
|
|
2339
2396
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
2340
2397
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -2353,6 +2410,8 @@ module Stripe
|
|
|
2353
2410
|
end
|
|
2354
2411
|
end
|
|
2355
2412
|
|
|
2413
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
2414
|
+
|
|
2356
2415
|
class BacsDebit < ::Stripe::RequestParams
|
|
2357
2416
|
# Account number of the bank account that the funds will be debited from.
|
|
2358
2417
|
attr_accessor :account_number
|
|
@@ -2435,6 +2494,7 @@ module Stripe
|
|
|
2435
2494
|
class Cashapp < ::Stripe::RequestParams; end
|
|
2436
2495
|
class Crypto < ::Stripe::RequestParams; end
|
|
2437
2496
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
2497
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
2438
2498
|
|
|
2439
2499
|
class Eps < ::Stripe::RequestParams
|
|
2440
2500
|
# The customer's bank.
|
|
@@ -2520,6 +2580,7 @@ module Stripe
|
|
|
2520
2580
|
class KrCard < ::Stripe::RequestParams; end
|
|
2521
2581
|
class Link < ::Stripe::RequestParams; end
|
|
2522
2582
|
class MbWay < ::Stripe::RequestParams; end
|
|
2583
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
2523
2584
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
2524
2585
|
class Multibanco < ::Stripe::RequestParams; end
|
|
2525
2586
|
|
|
@@ -2748,6 +2809,8 @@ module Stripe
|
|
|
2748
2809
|
class Zip < ::Stripe::RequestParams; end
|
|
2749
2810
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
2750
2811
|
attr_accessor :acss_debit
|
|
2812
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
2813
|
+
attr_accessor :aeon_pay
|
|
2751
2814
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
2752
2815
|
attr_accessor :affirm
|
|
2753
2816
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -2762,6 +2825,8 @@ module Stripe
|
|
|
2762
2825
|
attr_accessor :amazon_pay
|
|
2763
2826
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
2764
2827
|
attr_accessor :au_becs_debit
|
|
2828
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
2829
|
+
attr_accessor :au_pay
|
|
2765
2830
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
2766
2831
|
attr_accessor :bacs_debit
|
|
2767
2832
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -2784,6 +2849,8 @@ module Stripe
|
|
|
2784
2849
|
attr_accessor :crypto
|
|
2785
2850
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
2786
2851
|
attr_accessor :customer_balance
|
|
2852
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
2853
|
+
attr_accessor :dbarai
|
|
2787
2854
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
2788
2855
|
attr_accessor :eps
|
|
2789
2856
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
@@ -2816,6 +2883,8 @@ module Stripe
|
|
|
2816
2883
|
attr_accessor :link
|
|
2817
2884
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
2818
2885
|
attr_accessor :mb_way
|
|
2886
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
2887
|
+
attr_accessor :merpay
|
|
2819
2888
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2820
2889
|
attr_accessor :metadata
|
|
2821
2890
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -2901,6 +2970,7 @@ module Stripe
|
|
|
2901
2970
|
|
|
2902
2971
|
def initialize(
|
|
2903
2972
|
acss_debit: nil,
|
|
2973
|
+
aeon_pay: nil,
|
|
2904
2974
|
affirm: nil,
|
|
2905
2975
|
afterpay_clearpay: nil,
|
|
2906
2976
|
alipay: nil,
|
|
@@ -2908,6 +2978,7 @@ module Stripe
|
|
|
2908
2978
|
alma: nil,
|
|
2909
2979
|
amazon_pay: nil,
|
|
2910
2980
|
au_becs_debit: nil,
|
|
2981
|
+
au_pay: nil,
|
|
2911
2982
|
bacs_debit: nil,
|
|
2912
2983
|
bancontact: nil,
|
|
2913
2984
|
billie: nil,
|
|
@@ -2919,6 +2990,7 @@ module Stripe
|
|
|
2919
2990
|
cashapp: nil,
|
|
2920
2991
|
crypto: nil,
|
|
2921
2992
|
customer_balance: nil,
|
|
2993
|
+
dbarai: nil,
|
|
2922
2994
|
eps: nil,
|
|
2923
2995
|
fpx: nil,
|
|
2924
2996
|
getflex: nil,
|
|
@@ -2935,6 +3007,7 @@ module Stripe
|
|
|
2935
3007
|
kr_card: nil,
|
|
2936
3008
|
link: nil,
|
|
2937
3009
|
mb_way: nil,
|
|
3010
|
+
merpay: nil,
|
|
2938
3011
|
metadata: nil,
|
|
2939
3012
|
mobilepay: nil,
|
|
2940
3013
|
multibanco: nil,
|
|
@@ -2978,6 +3051,7 @@ module Stripe
|
|
|
2978
3051
|
zip: nil
|
|
2979
3052
|
)
|
|
2980
3053
|
@acss_debit = acss_debit
|
|
3054
|
+
@aeon_pay = aeon_pay
|
|
2981
3055
|
@affirm = affirm
|
|
2982
3056
|
@afterpay_clearpay = afterpay_clearpay
|
|
2983
3057
|
@alipay = alipay
|
|
@@ -2985,6 +3059,7 @@ module Stripe
|
|
|
2985
3059
|
@alma = alma
|
|
2986
3060
|
@amazon_pay = amazon_pay
|
|
2987
3061
|
@au_becs_debit = au_becs_debit
|
|
3062
|
+
@au_pay = au_pay
|
|
2988
3063
|
@bacs_debit = bacs_debit
|
|
2989
3064
|
@bancontact = bancontact
|
|
2990
3065
|
@billie = billie
|
|
@@ -2996,6 +3071,7 @@ module Stripe
|
|
|
2996
3071
|
@cashapp = cashapp
|
|
2997
3072
|
@crypto = crypto
|
|
2998
3073
|
@customer_balance = customer_balance
|
|
3074
|
+
@dbarai = dbarai
|
|
2999
3075
|
@eps = eps
|
|
3000
3076
|
@fpx = fpx
|
|
3001
3077
|
@getflex = getflex
|
|
@@ -3012,6 +3088,7 @@ module Stripe
|
|
|
3012
3088
|
@kr_card = kr_card
|
|
3013
3089
|
@link = link
|
|
3014
3090
|
@mb_way = mb_way
|
|
3091
|
+
@merpay = merpay
|
|
3015
3092
|
@metadata = metadata
|
|
3016
3093
|
@mobilepay = mobilepay
|
|
3017
3094
|
@multibanco = multibanco
|
|
@@ -3240,6 +3317,15 @@ module Stripe
|
|
|
3240
3317
|
end
|
|
3241
3318
|
|
|
3242
3319
|
class BacsDebit < ::Stripe::RequestParams
|
|
3320
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
3321
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
3322
|
+
attr_accessor :return_url
|
|
3323
|
+
|
|
3324
|
+
def initialize(return_url: nil)
|
|
3325
|
+
@return_url = return_url
|
|
3326
|
+
end
|
|
3327
|
+
end
|
|
3328
|
+
|
|
3243
3329
|
class MandateOptions < ::Stripe::RequestParams
|
|
3244
3330
|
# 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 'DDIC' or 'STRIPE'.
|
|
3245
3331
|
attr_accessor :reference_prefix
|
|
@@ -3248,6 +3334,8 @@ module Stripe
|
|
|
3248
3334
|
@reference_prefix = reference_prefix
|
|
3249
3335
|
end
|
|
3250
3336
|
end
|
|
3337
|
+
# Additional fields for Financial Connections session creation.
|
|
3338
|
+
attr_accessor :financial_connections
|
|
3251
3339
|
# Additional fields for Mandate creation
|
|
3252
3340
|
attr_accessor :mandate_options
|
|
3253
3341
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -3266,11 +3354,13 @@ module Stripe
|
|
|
3266
3354
|
attr_accessor :verification_method
|
|
3267
3355
|
|
|
3268
3356
|
def initialize(
|
|
3357
|
+
financial_connections: nil,
|
|
3269
3358
|
mandate_options: nil,
|
|
3270
3359
|
setup_future_usage: nil,
|
|
3271
3360
|
target_date: nil,
|
|
3272
3361
|
verification_method: nil
|
|
3273
3362
|
)
|
|
3363
|
+
@financial_connections = financial_connections
|
|
3274
3364
|
@mandate_options = mandate_options
|
|
3275
3365
|
@setup_future_usage = setup_future_usage
|
|
3276
3366
|
@target_date = target_date
|
|
@@ -72,11 +72,67 @@ module Stripe
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
class CardPresent < ::Stripe::RequestParams
|
|
75
|
+
class EvCharging < ::Stripe::RequestParams
|
|
76
|
+
# The carbon footprint avoided by the charging session, in grams of CO2.
|
|
77
|
+
attr_accessor :carbon_footprint_avoided_grams_co2
|
|
78
|
+
# The time the charging session ended, measured in seconds since the Unix epoch.
|
|
79
|
+
attr_accessor :charging_ended_at
|
|
80
|
+
# The power output capacity of the charging station, in kilowatts (kW).
|
|
81
|
+
attr_accessor :charging_power_output_capacity_kw
|
|
82
|
+
# The time the charging session started, measured in seconds since the Unix epoch.
|
|
83
|
+
attr_accessor :charging_started_at
|
|
84
|
+
# The type of connector used for the charging session.
|
|
85
|
+
attr_accessor :connector_type
|
|
86
|
+
# The estimated distance in kilometers or miles added to the vehicle during the charging session.
|
|
87
|
+
attr_accessor :estimated_range_added
|
|
88
|
+
# The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
|
|
89
|
+
attr_accessor :estimated_range_left
|
|
90
|
+
# The maximum power dispensed during the charging session, in kilowatts (kW).
|
|
91
|
+
attr_accessor :maximum_power_dispensed_kw
|
|
92
|
+
|
|
93
|
+
def initialize(
|
|
94
|
+
carbon_footprint_avoided_grams_co2: nil,
|
|
95
|
+
charging_ended_at: nil,
|
|
96
|
+
charging_power_output_capacity_kw: nil,
|
|
97
|
+
charging_started_at: nil,
|
|
98
|
+
connector_type: nil,
|
|
99
|
+
estimated_range_added: nil,
|
|
100
|
+
estimated_range_left: nil,
|
|
101
|
+
maximum_power_dispensed_kw: nil
|
|
102
|
+
)
|
|
103
|
+
@carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
|
|
104
|
+
@charging_ended_at = charging_ended_at
|
|
105
|
+
@charging_power_output_capacity_kw = charging_power_output_capacity_kw
|
|
106
|
+
@charging_started_at = charging_started_at
|
|
107
|
+
@connector_type = connector_type
|
|
108
|
+
@estimated_range_added = estimated_range_added
|
|
109
|
+
@estimated_range_left = estimated_range_left
|
|
110
|
+
@maximum_power_dispensed_kw = maximum_power_dispensed_kw
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
class FleetData < ::Stripe::RequestParams
|
|
115
|
+
# The type of product being purchased at this line item.
|
|
116
|
+
attr_accessor :product_type
|
|
117
|
+
# The type of service received at the acceptor location.
|
|
118
|
+
attr_accessor :service_type
|
|
119
|
+
|
|
120
|
+
def initialize(product_type: nil, service_type: nil)
|
|
121
|
+
@product_type = product_type
|
|
122
|
+
@service_type = service_type
|
|
123
|
+
end
|
|
124
|
+
end
|
|
75
125
|
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
76
126
|
attr_accessor :commodity_code
|
|
127
|
+
# EV charging data for this line item.
|
|
128
|
+
attr_accessor :ev_charging
|
|
129
|
+
# Fleet data for this line item.
|
|
130
|
+
attr_accessor :fleet_data
|
|
77
131
|
|
|
78
|
-
def initialize(commodity_code: nil)
|
|
132
|
+
def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
|
|
79
133
|
@commodity_code = commodity_code
|
|
134
|
+
@ev_charging = ev_charging
|
|
135
|
+
@fleet_data = fleet_data
|
|
80
136
|
end
|
|
81
137
|
end
|
|
82
138
|
|
|
@@ -72,11 +72,67 @@ module Stripe
|
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
class CardPresent < ::Stripe::RequestParams
|
|
75
|
+
class EvCharging < ::Stripe::RequestParams
|
|
76
|
+
# The carbon footprint avoided by the charging session, in grams of CO2.
|
|
77
|
+
attr_accessor :carbon_footprint_avoided_grams_co2
|
|
78
|
+
# The time the charging session ended, measured in seconds since the Unix epoch.
|
|
79
|
+
attr_accessor :charging_ended_at
|
|
80
|
+
# The power output capacity of the charging station, in kilowatts (kW).
|
|
81
|
+
attr_accessor :charging_power_output_capacity_kw
|
|
82
|
+
# The time the charging session started, measured in seconds since the Unix epoch.
|
|
83
|
+
attr_accessor :charging_started_at
|
|
84
|
+
# The type of connector used for the charging session.
|
|
85
|
+
attr_accessor :connector_type
|
|
86
|
+
# The estimated distance in kilometers or miles added to the vehicle during the charging session.
|
|
87
|
+
attr_accessor :estimated_range_added
|
|
88
|
+
# The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
|
|
89
|
+
attr_accessor :estimated_range_left
|
|
90
|
+
# The maximum power dispensed during the charging session, in kilowatts (kW).
|
|
91
|
+
attr_accessor :maximum_power_dispensed_kw
|
|
92
|
+
|
|
93
|
+
def initialize(
|
|
94
|
+
carbon_footprint_avoided_grams_co2: nil,
|
|
95
|
+
charging_ended_at: nil,
|
|
96
|
+
charging_power_output_capacity_kw: nil,
|
|
97
|
+
charging_started_at: nil,
|
|
98
|
+
connector_type: nil,
|
|
99
|
+
estimated_range_added: nil,
|
|
100
|
+
estimated_range_left: nil,
|
|
101
|
+
maximum_power_dispensed_kw: nil
|
|
102
|
+
)
|
|
103
|
+
@carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
|
|
104
|
+
@charging_ended_at = charging_ended_at
|
|
105
|
+
@charging_power_output_capacity_kw = charging_power_output_capacity_kw
|
|
106
|
+
@charging_started_at = charging_started_at
|
|
107
|
+
@connector_type = connector_type
|
|
108
|
+
@estimated_range_added = estimated_range_added
|
|
109
|
+
@estimated_range_left = estimated_range_left
|
|
110
|
+
@maximum_power_dispensed_kw = maximum_power_dispensed_kw
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
class FleetData < ::Stripe::RequestParams
|
|
115
|
+
# The type of product being purchased at this line item.
|
|
116
|
+
attr_accessor :product_type
|
|
117
|
+
# The type of service received at the acceptor location.
|
|
118
|
+
attr_accessor :service_type
|
|
119
|
+
|
|
120
|
+
def initialize(product_type: nil, service_type: nil)
|
|
121
|
+
@product_type = product_type
|
|
122
|
+
@service_type = service_type
|
|
123
|
+
end
|
|
124
|
+
end
|
|
75
125
|
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
76
126
|
attr_accessor :commodity_code
|
|
127
|
+
# EV charging data for this line item.
|
|
128
|
+
attr_accessor :ev_charging
|
|
129
|
+
# Fleet data for this line item.
|
|
130
|
+
attr_accessor :fleet_data
|
|
77
131
|
|
|
78
|
-
def initialize(commodity_code: nil)
|
|
132
|
+
def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
|
|
79
133
|
@commodity_code = commodity_code
|
|
134
|
+
@ev_charging = ev_charging
|
|
135
|
+
@fleet_data = fleet_data
|
|
80
136
|
end
|
|
81
137
|
end
|
|
82
138
|
|
|
@@ -81,11 +81,67 @@ module Stripe
|
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
class CardPresent < ::Stripe::RequestParams
|
|
84
|
+
class EvCharging < ::Stripe::RequestParams
|
|
85
|
+
# The carbon footprint avoided by the charging session, in grams of CO2.
|
|
86
|
+
attr_accessor :carbon_footprint_avoided_grams_co2
|
|
87
|
+
# The time the charging session ended, measured in seconds since the Unix epoch.
|
|
88
|
+
attr_accessor :charging_ended_at
|
|
89
|
+
# The power output capacity of the charging station, in kilowatts (kW).
|
|
90
|
+
attr_accessor :charging_power_output_capacity_kw
|
|
91
|
+
# The time the charging session started, measured in seconds since the Unix epoch.
|
|
92
|
+
attr_accessor :charging_started_at
|
|
93
|
+
# The type of connector used for the charging session.
|
|
94
|
+
attr_accessor :connector_type
|
|
95
|
+
# The estimated distance in kilometers or miles added to the vehicle during the charging session.
|
|
96
|
+
attr_accessor :estimated_range_added
|
|
97
|
+
# The estimated distance in kilometers or miles remaining in the vehicle after the charging session.
|
|
98
|
+
attr_accessor :estimated_range_left
|
|
99
|
+
# The maximum power dispensed during the charging session, in kilowatts (kW).
|
|
100
|
+
attr_accessor :maximum_power_dispensed_kw
|
|
101
|
+
|
|
102
|
+
def initialize(
|
|
103
|
+
carbon_footprint_avoided_grams_co2: nil,
|
|
104
|
+
charging_ended_at: nil,
|
|
105
|
+
charging_power_output_capacity_kw: nil,
|
|
106
|
+
charging_started_at: nil,
|
|
107
|
+
connector_type: nil,
|
|
108
|
+
estimated_range_added: nil,
|
|
109
|
+
estimated_range_left: nil,
|
|
110
|
+
maximum_power_dispensed_kw: nil
|
|
111
|
+
)
|
|
112
|
+
@carbon_footprint_avoided_grams_co2 = carbon_footprint_avoided_grams_co2
|
|
113
|
+
@charging_ended_at = charging_ended_at
|
|
114
|
+
@charging_power_output_capacity_kw = charging_power_output_capacity_kw
|
|
115
|
+
@charging_started_at = charging_started_at
|
|
116
|
+
@connector_type = connector_type
|
|
117
|
+
@estimated_range_added = estimated_range_added
|
|
118
|
+
@estimated_range_left = estimated_range_left
|
|
119
|
+
@maximum_power_dispensed_kw = maximum_power_dispensed_kw
|
|
120
|
+
end
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
class FleetData < ::Stripe::RequestParams
|
|
124
|
+
# The type of product being purchased at this line item.
|
|
125
|
+
attr_accessor :product_type
|
|
126
|
+
# The type of service received at the acceptor location.
|
|
127
|
+
attr_accessor :service_type
|
|
128
|
+
|
|
129
|
+
def initialize(product_type: nil, service_type: nil)
|
|
130
|
+
@product_type = product_type
|
|
131
|
+
@service_type = service_type
|
|
132
|
+
end
|
|
133
|
+
end
|
|
84
134
|
# Identifier that categorizes the items being purchased using a standardized commodity scheme such as (but not limited to) UNSPSC, NAICS, NAPCS, and so on.
|
|
85
135
|
attr_accessor :commodity_code
|
|
136
|
+
# EV charging data for this line item.
|
|
137
|
+
attr_accessor :ev_charging
|
|
138
|
+
# Fleet data for this line item.
|
|
139
|
+
attr_accessor :fleet_data
|
|
86
140
|
|
|
87
|
-
def initialize(commodity_code: nil)
|
|
141
|
+
def initialize(commodity_code: nil, ev_charging: nil, fleet_data: nil)
|
|
88
142
|
@commodity_code = commodity_code
|
|
143
|
+
@ev_charging = ev_charging
|
|
144
|
+
@fleet_data = fleet_data
|
|
89
145
|
end
|
|
90
146
|
end
|
|
91
147
|
|
|
@@ -2313,6 +2369,7 @@ module Stripe
|
|
|
2313
2369
|
end
|
|
2314
2370
|
end
|
|
2315
2371
|
|
|
2372
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
2316
2373
|
class Affirm < ::Stripe::RequestParams; end
|
|
2317
2374
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
2318
2375
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -2331,6 +2388,8 @@ module Stripe
|
|
|
2331
2388
|
end
|
|
2332
2389
|
end
|
|
2333
2390
|
|
|
2391
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
2392
|
+
|
|
2334
2393
|
class BacsDebit < ::Stripe::RequestParams
|
|
2335
2394
|
# Account number of the bank account that the funds will be debited from.
|
|
2336
2395
|
attr_accessor :account_number
|
|
@@ -2413,6 +2472,7 @@ module Stripe
|
|
|
2413
2472
|
class Cashapp < ::Stripe::RequestParams; end
|
|
2414
2473
|
class Crypto < ::Stripe::RequestParams; end
|
|
2415
2474
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
2475
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
2416
2476
|
|
|
2417
2477
|
class Eps < ::Stripe::RequestParams
|
|
2418
2478
|
# The customer's bank.
|
|
@@ -2498,6 +2558,7 @@ module Stripe
|
|
|
2498
2558
|
class KrCard < ::Stripe::RequestParams; end
|
|
2499
2559
|
class Link < ::Stripe::RequestParams; end
|
|
2500
2560
|
class MbWay < ::Stripe::RequestParams; end
|
|
2561
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
2501
2562
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
2502
2563
|
class Multibanco < ::Stripe::RequestParams; end
|
|
2503
2564
|
|
|
@@ -2726,6 +2787,8 @@ module Stripe
|
|
|
2726
2787
|
class Zip < ::Stripe::RequestParams; end
|
|
2727
2788
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
2728
2789
|
attr_accessor :acss_debit
|
|
2790
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
2791
|
+
attr_accessor :aeon_pay
|
|
2729
2792
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
2730
2793
|
attr_accessor :affirm
|
|
2731
2794
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -2740,6 +2803,8 @@ module Stripe
|
|
|
2740
2803
|
attr_accessor :amazon_pay
|
|
2741
2804
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
2742
2805
|
attr_accessor :au_becs_debit
|
|
2806
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
2807
|
+
attr_accessor :au_pay
|
|
2743
2808
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
2744
2809
|
attr_accessor :bacs_debit
|
|
2745
2810
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -2762,6 +2827,8 @@ module Stripe
|
|
|
2762
2827
|
attr_accessor :crypto
|
|
2763
2828
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
2764
2829
|
attr_accessor :customer_balance
|
|
2830
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
2831
|
+
attr_accessor :dbarai
|
|
2765
2832
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
2766
2833
|
attr_accessor :eps
|
|
2767
2834
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
@@ -2794,6 +2861,8 @@ module Stripe
|
|
|
2794
2861
|
attr_accessor :link
|
|
2795
2862
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
2796
2863
|
attr_accessor :mb_way
|
|
2864
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
2865
|
+
attr_accessor :merpay
|
|
2797
2866
|
# Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2798
2867
|
attr_accessor :metadata
|
|
2799
2868
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -2879,6 +2948,7 @@ module Stripe
|
|
|
2879
2948
|
|
|
2880
2949
|
def initialize(
|
|
2881
2950
|
acss_debit: nil,
|
|
2951
|
+
aeon_pay: nil,
|
|
2882
2952
|
affirm: nil,
|
|
2883
2953
|
afterpay_clearpay: nil,
|
|
2884
2954
|
alipay: nil,
|
|
@@ -2886,6 +2956,7 @@ module Stripe
|
|
|
2886
2956
|
alma: nil,
|
|
2887
2957
|
amazon_pay: nil,
|
|
2888
2958
|
au_becs_debit: nil,
|
|
2959
|
+
au_pay: nil,
|
|
2889
2960
|
bacs_debit: nil,
|
|
2890
2961
|
bancontact: nil,
|
|
2891
2962
|
billie: nil,
|
|
@@ -2897,6 +2968,7 @@ module Stripe
|
|
|
2897
2968
|
cashapp: nil,
|
|
2898
2969
|
crypto: nil,
|
|
2899
2970
|
customer_balance: nil,
|
|
2971
|
+
dbarai: nil,
|
|
2900
2972
|
eps: nil,
|
|
2901
2973
|
fpx: nil,
|
|
2902
2974
|
getflex: nil,
|
|
@@ -2913,6 +2985,7 @@ module Stripe
|
|
|
2913
2985
|
kr_card: nil,
|
|
2914
2986
|
link: nil,
|
|
2915
2987
|
mb_way: nil,
|
|
2988
|
+
merpay: nil,
|
|
2916
2989
|
metadata: nil,
|
|
2917
2990
|
mobilepay: nil,
|
|
2918
2991
|
multibanco: nil,
|
|
@@ -2956,6 +3029,7 @@ module Stripe
|
|
|
2956
3029
|
zip: nil
|
|
2957
3030
|
)
|
|
2958
3031
|
@acss_debit = acss_debit
|
|
3032
|
+
@aeon_pay = aeon_pay
|
|
2959
3033
|
@affirm = affirm
|
|
2960
3034
|
@afterpay_clearpay = afterpay_clearpay
|
|
2961
3035
|
@alipay = alipay
|
|
@@ -2963,6 +3037,7 @@ module Stripe
|
|
|
2963
3037
|
@alma = alma
|
|
2964
3038
|
@amazon_pay = amazon_pay
|
|
2965
3039
|
@au_becs_debit = au_becs_debit
|
|
3040
|
+
@au_pay = au_pay
|
|
2966
3041
|
@bacs_debit = bacs_debit
|
|
2967
3042
|
@bancontact = bancontact
|
|
2968
3043
|
@billie = billie
|
|
@@ -2974,6 +3049,7 @@ module Stripe
|
|
|
2974
3049
|
@cashapp = cashapp
|
|
2975
3050
|
@crypto = crypto
|
|
2976
3051
|
@customer_balance = customer_balance
|
|
3052
|
+
@dbarai = dbarai
|
|
2977
3053
|
@eps = eps
|
|
2978
3054
|
@fpx = fpx
|
|
2979
3055
|
@getflex = getflex
|
|
@@ -2990,6 +3066,7 @@ module Stripe
|
|
|
2990
3066
|
@kr_card = kr_card
|
|
2991
3067
|
@link = link
|
|
2992
3068
|
@mb_way = mb_way
|
|
3069
|
+
@merpay = merpay
|
|
2993
3070
|
@metadata = metadata
|
|
2994
3071
|
@mobilepay = mobilepay
|
|
2995
3072
|
@multibanco = multibanco
|
|
@@ -3218,6 +3295,15 @@ module Stripe
|
|
|
3218
3295
|
end
|
|
3219
3296
|
|
|
3220
3297
|
class BacsDebit < ::Stripe::RequestParams
|
|
3298
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
3299
|
+
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
|
|
3300
|
+
attr_accessor :return_url
|
|
3301
|
+
|
|
3302
|
+
def initialize(return_url: nil)
|
|
3303
|
+
@return_url = return_url
|
|
3304
|
+
end
|
|
3305
|
+
end
|
|
3306
|
+
|
|
3221
3307
|
class MandateOptions < ::Stripe::RequestParams
|
|
3222
3308
|
# 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 'DDIC' or 'STRIPE'.
|
|
3223
3309
|
attr_accessor :reference_prefix
|
|
@@ -3226,6 +3312,8 @@ module Stripe
|
|
|
3226
3312
|
@reference_prefix = reference_prefix
|
|
3227
3313
|
end
|
|
3228
3314
|
end
|
|
3315
|
+
# Additional fields for Financial Connections session creation.
|
|
3316
|
+
attr_accessor :financial_connections
|
|
3229
3317
|
# Additional fields for Mandate creation
|
|
3230
3318
|
attr_accessor :mandate_options
|
|
3231
3319
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -3244,11 +3332,13 @@ module Stripe
|
|
|
3244
3332
|
attr_accessor :verification_method
|
|
3245
3333
|
|
|
3246
3334
|
def initialize(
|
|
3335
|
+
financial_connections: nil,
|
|
3247
3336
|
mandate_options: nil,
|
|
3248
3337
|
setup_future_usage: nil,
|
|
3249
3338
|
target_date: nil,
|
|
3250
3339
|
verification_method: nil
|
|
3251
3340
|
)
|
|
3341
|
+
@financial_connections = financial_connections
|
|
3252
3342
|
@mandate_options = mandate_options
|
|
3253
3343
|
@setup_future_usage = setup_future_usage
|
|
3254
3344
|
@target_date = target_date
|
|
@@ -870,6 +870,23 @@ module Stripe
|
|
|
870
870
|
end
|
|
871
871
|
end
|
|
872
872
|
|
|
873
|
+
class RakutenPay < ::Stripe::RequestParams
|
|
874
|
+
class DisplayPreference < ::Stripe::RequestParams
|
|
875
|
+
# The account's preference for whether or not to display this payment method.
|
|
876
|
+
attr_accessor :preference
|
|
877
|
+
|
|
878
|
+
def initialize(preference: nil)
|
|
879
|
+
@preference = preference
|
|
880
|
+
end
|
|
881
|
+
end
|
|
882
|
+
# Whether or not the payment method should be displayed.
|
|
883
|
+
attr_accessor :display_preference
|
|
884
|
+
|
|
885
|
+
def initialize(display_preference: nil)
|
|
886
|
+
@display_preference = display_preference
|
|
887
|
+
end
|
|
888
|
+
end
|
|
889
|
+
|
|
873
890
|
class RevolutPay < ::Stripe::RequestParams
|
|
874
891
|
class DisplayPreference < ::Stripe::RequestParams
|
|
875
892
|
# The account's preference for whether or not to display this payment method.
|
|
@@ -1249,6 +1266,8 @@ module Stripe
|
|
|
1249
1266
|
attr_accessor :promptpay
|
|
1250
1267
|
# QRIS is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Indonesia. When paying with QRIS, customers authenticate and approve payments by scanning a QR code in their preferred digital wallet app.
|
|
1251
1268
|
attr_accessor :qris
|
|
1269
|
+
# Rakuten Pay is a single-use payment method that requires customers to authenticate their payment. Customers pay by being redirected from your website or app, authorizing the payment with Rakuten Pay, then returning to your website or app. You get immediate notification of whether the payment succeeded or failed.
|
|
1270
|
+
attr_accessor :rakuten_pay
|
|
1252
1271
|
# Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
|
|
1253
1272
|
attr_accessor :revolut_pay
|
|
1254
1273
|
# Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
|
|
@@ -1337,6 +1356,7 @@ module Stripe
|
|
|
1337
1356
|
pix: nil,
|
|
1338
1357
|
promptpay: nil,
|
|
1339
1358
|
qris: nil,
|
|
1359
|
+
rakuten_pay: nil,
|
|
1340
1360
|
revolut_pay: nil,
|
|
1341
1361
|
samsung_pay: nil,
|
|
1342
1362
|
satispay: nil,
|
|
@@ -1408,6 +1428,7 @@ module Stripe
|
|
|
1408
1428
|
@pix = pix
|
|
1409
1429
|
@promptpay = promptpay
|
|
1410
1430
|
@qris = qris
|
|
1431
|
+
@rakuten_pay = rakuten_pay
|
|
1411
1432
|
@revolut_pay = revolut_pay
|
|
1412
1433
|
@samsung_pay = samsung_pay
|
|
1413
1434
|
@satispay = satispay
|