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
|
@@ -19,6 +19,7 @@ module Stripe
|
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
22
23
|
class Affirm < ::Stripe::RequestParams; end
|
|
23
24
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
24
25
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -37,6 +38,8 @@ module Stripe
|
|
|
37
38
|
end
|
|
38
39
|
end
|
|
39
40
|
|
|
41
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
42
|
+
|
|
40
43
|
class BacsDebit < ::Stripe::RequestParams
|
|
41
44
|
# Account number of the bank account that the funds will be debited from.
|
|
42
45
|
attr_accessor :account_number
|
|
@@ -119,6 +122,7 @@ module Stripe
|
|
|
119
122
|
class Cashapp < ::Stripe::RequestParams; end
|
|
120
123
|
class Crypto < ::Stripe::RequestParams; end
|
|
121
124
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
125
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
122
126
|
|
|
123
127
|
class Eps < ::Stripe::RequestParams
|
|
124
128
|
# The customer's bank.
|
|
@@ -204,6 +208,7 @@ module Stripe
|
|
|
204
208
|
class KrCard < ::Stripe::RequestParams; end
|
|
205
209
|
class Link < ::Stripe::RequestParams; end
|
|
206
210
|
class MbWay < ::Stripe::RequestParams; end
|
|
211
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
207
212
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
208
213
|
class Multibanco < ::Stripe::RequestParams; end
|
|
209
214
|
|
|
@@ -432,6 +437,8 @@ module Stripe
|
|
|
432
437
|
class Zip < ::Stripe::RequestParams; end
|
|
433
438
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
434
439
|
attr_accessor :acss_debit
|
|
440
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
441
|
+
attr_accessor :aeon_pay
|
|
435
442
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
436
443
|
attr_accessor :affirm
|
|
437
444
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -446,6 +453,8 @@ module Stripe
|
|
|
446
453
|
attr_accessor :amazon_pay
|
|
447
454
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
448
455
|
attr_accessor :au_becs_debit
|
|
456
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
457
|
+
attr_accessor :au_pay
|
|
449
458
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
450
459
|
attr_accessor :bacs_debit
|
|
451
460
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -468,6 +477,8 @@ module Stripe
|
|
|
468
477
|
attr_accessor :crypto
|
|
469
478
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
470
479
|
attr_accessor :customer_balance
|
|
480
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
481
|
+
attr_accessor :dbarai
|
|
471
482
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
472
483
|
attr_accessor :eps
|
|
473
484
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
@@ -500,6 +511,8 @@ module Stripe
|
|
|
500
511
|
attr_accessor :link
|
|
501
512
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
502
513
|
attr_accessor :mb_way
|
|
514
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
515
|
+
attr_accessor :merpay
|
|
503
516
|
# 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`.
|
|
504
517
|
attr_accessor :metadata
|
|
505
518
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -585,6 +598,7 @@ module Stripe
|
|
|
585
598
|
|
|
586
599
|
def initialize(
|
|
587
600
|
acss_debit: nil,
|
|
601
|
+
aeon_pay: nil,
|
|
588
602
|
affirm: nil,
|
|
589
603
|
afterpay_clearpay: nil,
|
|
590
604
|
alipay: nil,
|
|
@@ -592,6 +606,7 @@ module Stripe
|
|
|
592
606
|
alma: nil,
|
|
593
607
|
amazon_pay: nil,
|
|
594
608
|
au_becs_debit: nil,
|
|
609
|
+
au_pay: nil,
|
|
595
610
|
bacs_debit: nil,
|
|
596
611
|
bancontact: nil,
|
|
597
612
|
billie: nil,
|
|
@@ -603,6 +618,7 @@ module Stripe
|
|
|
603
618
|
cashapp: nil,
|
|
604
619
|
crypto: nil,
|
|
605
620
|
customer_balance: nil,
|
|
621
|
+
dbarai: nil,
|
|
606
622
|
eps: nil,
|
|
607
623
|
fpx: nil,
|
|
608
624
|
getflex: nil,
|
|
@@ -619,6 +635,7 @@ module Stripe
|
|
|
619
635
|
kr_card: nil,
|
|
620
636
|
link: nil,
|
|
621
637
|
mb_way: nil,
|
|
638
|
+
merpay: nil,
|
|
622
639
|
metadata: nil,
|
|
623
640
|
mobilepay: nil,
|
|
624
641
|
multibanco: nil,
|
|
@@ -662,6 +679,7 @@ module Stripe
|
|
|
662
679
|
zip: nil
|
|
663
680
|
)
|
|
664
681
|
@acss_debit = acss_debit
|
|
682
|
+
@aeon_pay = aeon_pay
|
|
665
683
|
@affirm = affirm
|
|
666
684
|
@afterpay_clearpay = afterpay_clearpay
|
|
667
685
|
@alipay = alipay
|
|
@@ -669,6 +687,7 @@ module Stripe
|
|
|
669
687
|
@alma = alma
|
|
670
688
|
@amazon_pay = amazon_pay
|
|
671
689
|
@au_becs_debit = au_becs_debit
|
|
690
|
+
@au_pay = au_pay
|
|
672
691
|
@bacs_debit = bacs_debit
|
|
673
692
|
@bancontact = bancontact
|
|
674
693
|
@billie = billie
|
|
@@ -680,6 +699,7 @@ module Stripe
|
|
|
680
699
|
@cashapp = cashapp
|
|
681
700
|
@crypto = crypto
|
|
682
701
|
@customer_balance = customer_balance
|
|
702
|
+
@dbarai = dbarai
|
|
683
703
|
@eps = eps
|
|
684
704
|
@fpx = fpx
|
|
685
705
|
@getflex = getflex
|
|
@@ -696,6 +716,7 @@ module Stripe
|
|
|
696
716
|
@kr_card = kr_card
|
|
697
717
|
@link = link
|
|
698
718
|
@mb_way = mb_way
|
|
719
|
+
@merpay = merpay
|
|
699
720
|
@metadata = metadata
|
|
700
721
|
@mobilepay = mobilepay
|
|
701
722
|
@multibanco = multibanco
|
|
@@ -24,12 +24,32 @@ module Stripe
|
|
|
24
24
|
end
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
class ReasonDetails < ::Stripe::RequestParams
|
|
28
|
+
class Other < ::Stripe::RequestParams
|
|
29
|
+
# A free-text description of the exemption reason. Maximum 5000 characters.
|
|
30
|
+
attr_accessor :reason_text
|
|
31
|
+
|
|
32
|
+
def initialize(reason_text: nil)
|
|
33
|
+
@reason_text = reason_text
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
# Details for the `other` exemption reason.
|
|
37
|
+
attr_accessor :other
|
|
38
|
+
|
|
39
|
+
def initialize(other: nil)
|
|
40
|
+
@other = other
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
27
44
|
class Us < ::Stripe::RequestParams
|
|
28
45
|
# Two-letter US state code (ISO 3166-2).
|
|
29
46
|
attr_accessor :state
|
|
47
|
+
# The group of tax codes this exemption applies to. Defaults to `all`. `saas` is only available when `state` is `CA`.
|
|
48
|
+
attr_accessor :tax_code_group
|
|
30
49
|
|
|
31
|
-
def initialize(state: nil)
|
|
50
|
+
def initialize(state: nil, tax_code_group: nil)
|
|
32
51
|
@state = state
|
|
52
|
+
@tax_code_group = tax_code_group
|
|
33
53
|
end
|
|
34
54
|
end
|
|
35
55
|
# Canada-specific exemption details. Required when country is CA; must be absent otherwise.
|
|
@@ -44,6 +64,10 @@ module Stripe
|
|
|
44
64
|
attr_accessor :expand
|
|
45
65
|
# ISO 8601 date (YYYY-MM-DD) when the exemption expires.
|
|
46
66
|
attr_accessor :expiration_date
|
|
67
|
+
# The reason the customer is exempt. Required when `us.tax_code_group` is `saas`.
|
|
68
|
+
attr_accessor :reason
|
|
69
|
+
# Additional details about the exemption reason.
|
|
70
|
+
attr_accessor :reason_details
|
|
47
71
|
# US-specific exemption details. Required when country is US; must be absent otherwise.
|
|
48
72
|
attr_accessor :us
|
|
49
73
|
|
|
@@ -54,6 +78,8 @@ module Stripe
|
|
|
54
78
|
es: nil,
|
|
55
79
|
expand: nil,
|
|
56
80
|
expiration_date: nil,
|
|
81
|
+
reason: nil,
|
|
82
|
+
reason_details: nil,
|
|
57
83
|
us: nil
|
|
58
84
|
)
|
|
59
85
|
@ca = ca
|
|
@@ -62,6 +88,8 @@ module Stripe
|
|
|
62
88
|
@es = es
|
|
63
89
|
@expand = expand
|
|
64
90
|
@expiration_date = expiration_date
|
|
91
|
+
@reason = reason
|
|
92
|
+
@reason_details = reason_details
|
|
65
93
|
@us = us
|
|
66
94
|
end
|
|
67
95
|
end
|
|
@@ -355,7 +355,14 @@ module Stripe
|
|
|
355
355
|
end
|
|
356
356
|
end
|
|
357
357
|
|
|
358
|
-
class SepaDebit < ::Stripe::RequestParams
|
|
358
|
+
class SepaDebit < ::Stripe::RequestParams
|
|
359
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
360
|
+
attr_accessor :target_date
|
|
361
|
+
|
|
362
|
+
def initialize(target_date: nil)
|
|
363
|
+
@target_date = target_date
|
|
364
|
+
end
|
|
365
|
+
end
|
|
359
366
|
|
|
360
367
|
class Upi < ::Stripe::RequestParams
|
|
361
368
|
class MandateOptions < ::Stripe::RequestParams
|
|
@@ -334,7 +334,14 @@ module Stripe
|
|
|
334
334
|
end
|
|
335
335
|
end
|
|
336
336
|
|
|
337
|
-
class SepaDebit < ::Stripe::RequestParams
|
|
337
|
+
class SepaDebit < ::Stripe::RequestParams
|
|
338
|
+
# Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
339
|
+
attr_accessor :target_date
|
|
340
|
+
|
|
341
|
+
def initialize(target_date: nil)
|
|
342
|
+
@target_date = target_date
|
|
343
|
+
end
|
|
344
|
+
end
|
|
338
345
|
|
|
339
346
|
class Upi < ::Stripe::RequestParams
|
|
340
347
|
class MandateOptions < ::Stripe::RequestParams
|
|
@@ -3,17 +3,65 @@
|
|
|
3
3
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class PaymentAttemptRecordReportAuthenticatedParams < ::Stripe::RequestParams
|
|
6
|
+
class PaymentMethodDetails < ::Stripe::RequestParams
|
|
7
|
+
class Card < ::Stripe::RequestParams
|
|
8
|
+
class ThreeDSecure < ::Stripe::RequestParams
|
|
9
|
+
# For authenticated transactions: Indicates how the issuing bank authenticated the customer.
|
|
10
|
+
attr_accessor :authentication_flow
|
|
11
|
+
# The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
|
|
12
|
+
attr_accessor :electronic_commerce_indicator
|
|
13
|
+
# The exemption requested via 3DS and accepted by the issuer at authentication time.
|
|
14
|
+
attr_accessor :exemption_indicator
|
|
15
|
+
# Indicates the outcome of 3D Secure authentication.
|
|
16
|
+
attr_accessor :result
|
|
17
|
+
# The version of 3D Secure that was used.
|
|
18
|
+
attr_accessor :version
|
|
19
|
+
|
|
20
|
+
def initialize(
|
|
21
|
+
authentication_flow: nil,
|
|
22
|
+
electronic_commerce_indicator: nil,
|
|
23
|
+
exemption_indicator: nil,
|
|
24
|
+
result: nil,
|
|
25
|
+
version: nil
|
|
26
|
+
)
|
|
27
|
+
@authentication_flow = authentication_flow
|
|
28
|
+
@electronic_commerce_indicator = electronic_commerce_indicator
|
|
29
|
+
@exemption_indicator = exemption_indicator
|
|
30
|
+
@result = result
|
|
31
|
+
@version = version
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
# Populated if this transaction used 3D Secure authentication.
|
|
35
|
+
attr_accessor :three_d_secure
|
|
36
|
+
|
|
37
|
+
def initialize(three_d_secure: nil)
|
|
38
|
+
@three_d_secure = three_d_secure
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
# Information about the card payment method used to make this payment.
|
|
42
|
+
attr_accessor :card
|
|
43
|
+
# The type of the payment method details. An additional hash is included on the payment_method_details with a name matching this value. It contains additional information specific to the type.
|
|
44
|
+
attr_accessor :type
|
|
45
|
+
|
|
46
|
+
def initialize(card: nil, type: nil)
|
|
47
|
+
@card = card
|
|
48
|
+
@type = type
|
|
49
|
+
end
|
|
50
|
+
end
|
|
6
51
|
# When the reported payment was authenticated. Measured in seconds since the Unix epoch.
|
|
7
52
|
attr_accessor :authenticated_at
|
|
8
53
|
# Specifies which fields in the response should be expanded.
|
|
9
54
|
attr_accessor :expand
|
|
10
55
|
# 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`.
|
|
11
56
|
attr_accessor :metadata
|
|
57
|
+
# Information about the Payment Method debited for this payment.
|
|
58
|
+
attr_accessor :payment_method_details
|
|
12
59
|
|
|
13
|
-
def initialize(authenticated_at: nil, expand: nil, metadata: nil)
|
|
60
|
+
def initialize(authenticated_at: nil, expand: nil, metadata: nil, payment_method_details: nil)
|
|
14
61
|
@authenticated_at = authenticated_at
|
|
15
62
|
@expand = expand
|
|
16
63
|
@metadata = metadata
|
|
64
|
+
@payment_method_details = payment_method_details
|
|
17
65
|
end
|
|
18
66
|
end
|
|
19
67
|
end
|
|
@@ -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
|
|
|
@@ -2321,6 +2377,7 @@ module Stripe
|
|
|
2321
2377
|
end
|
|
2322
2378
|
end
|
|
2323
2379
|
|
|
2380
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
2324
2381
|
class Affirm < ::Stripe::RequestParams; end
|
|
2325
2382
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
2326
2383
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -2339,6 +2396,8 @@ module Stripe
|
|
|
2339
2396
|
end
|
|
2340
2397
|
end
|
|
2341
2398
|
|
|
2399
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
2400
|
+
|
|
2342
2401
|
class BacsDebit < ::Stripe::RequestParams
|
|
2343
2402
|
# Account number of the bank account that the funds will be debited from.
|
|
2344
2403
|
attr_accessor :account_number
|
|
@@ -2421,6 +2480,7 @@ module Stripe
|
|
|
2421
2480
|
class Cashapp < ::Stripe::RequestParams; end
|
|
2422
2481
|
class Crypto < ::Stripe::RequestParams; end
|
|
2423
2482
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
2483
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
2424
2484
|
|
|
2425
2485
|
class Eps < ::Stripe::RequestParams
|
|
2426
2486
|
# The customer's bank.
|
|
@@ -2506,6 +2566,7 @@ module Stripe
|
|
|
2506
2566
|
class KrCard < ::Stripe::RequestParams; end
|
|
2507
2567
|
class Link < ::Stripe::RequestParams; end
|
|
2508
2568
|
class MbWay < ::Stripe::RequestParams; end
|
|
2569
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
2509
2570
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
2510
2571
|
class Multibanco < ::Stripe::RequestParams; end
|
|
2511
2572
|
|
|
@@ -2734,6 +2795,8 @@ module Stripe
|
|
|
2734
2795
|
class Zip < ::Stripe::RequestParams; end
|
|
2735
2796
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
2736
2797
|
attr_accessor :acss_debit
|
|
2798
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
2799
|
+
attr_accessor :aeon_pay
|
|
2737
2800
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
2738
2801
|
attr_accessor :affirm
|
|
2739
2802
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -2748,6 +2811,8 @@ module Stripe
|
|
|
2748
2811
|
attr_accessor :amazon_pay
|
|
2749
2812
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
2750
2813
|
attr_accessor :au_becs_debit
|
|
2814
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
2815
|
+
attr_accessor :au_pay
|
|
2751
2816
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
2752
2817
|
attr_accessor :bacs_debit
|
|
2753
2818
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -2770,6 +2835,8 @@ module Stripe
|
|
|
2770
2835
|
attr_accessor :crypto
|
|
2771
2836
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
2772
2837
|
attr_accessor :customer_balance
|
|
2838
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
2839
|
+
attr_accessor :dbarai
|
|
2773
2840
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
2774
2841
|
attr_accessor :eps
|
|
2775
2842
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
@@ -2802,6 +2869,8 @@ module Stripe
|
|
|
2802
2869
|
attr_accessor :link
|
|
2803
2870
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
2804
2871
|
attr_accessor :mb_way
|
|
2872
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
2873
|
+
attr_accessor :merpay
|
|
2805
2874
|
# 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`.
|
|
2806
2875
|
attr_accessor :metadata
|
|
2807
2876
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -2887,6 +2956,7 @@ module Stripe
|
|
|
2887
2956
|
|
|
2888
2957
|
def initialize(
|
|
2889
2958
|
acss_debit: nil,
|
|
2959
|
+
aeon_pay: nil,
|
|
2890
2960
|
affirm: nil,
|
|
2891
2961
|
afterpay_clearpay: nil,
|
|
2892
2962
|
alipay: nil,
|
|
@@ -2894,6 +2964,7 @@ module Stripe
|
|
|
2894
2964
|
alma: nil,
|
|
2895
2965
|
amazon_pay: nil,
|
|
2896
2966
|
au_becs_debit: nil,
|
|
2967
|
+
au_pay: nil,
|
|
2897
2968
|
bacs_debit: nil,
|
|
2898
2969
|
bancontact: nil,
|
|
2899
2970
|
billie: nil,
|
|
@@ -2905,6 +2976,7 @@ module Stripe
|
|
|
2905
2976
|
cashapp: nil,
|
|
2906
2977
|
crypto: nil,
|
|
2907
2978
|
customer_balance: nil,
|
|
2979
|
+
dbarai: nil,
|
|
2908
2980
|
eps: nil,
|
|
2909
2981
|
fpx: nil,
|
|
2910
2982
|
getflex: nil,
|
|
@@ -2921,6 +2993,7 @@ module Stripe
|
|
|
2921
2993
|
kr_card: nil,
|
|
2922
2994
|
link: nil,
|
|
2923
2995
|
mb_way: nil,
|
|
2996
|
+
merpay: nil,
|
|
2924
2997
|
metadata: nil,
|
|
2925
2998
|
mobilepay: nil,
|
|
2926
2999
|
multibanco: nil,
|
|
@@ -2964,6 +3037,7 @@ module Stripe
|
|
|
2964
3037
|
zip: nil
|
|
2965
3038
|
)
|
|
2966
3039
|
@acss_debit = acss_debit
|
|
3040
|
+
@aeon_pay = aeon_pay
|
|
2967
3041
|
@affirm = affirm
|
|
2968
3042
|
@afterpay_clearpay = afterpay_clearpay
|
|
2969
3043
|
@alipay = alipay
|
|
@@ -2971,6 +3045,7 @@ module Stripe
|
|
|
2971
3045
|
@alma = alma
|
|
2972
3046
|
@amazon_pay = amazon_pay
|
|
2973
3047
|
@au_becs_debit = au_becs_debit
|
|
3048
|
+
@au_pay = au_pay
|
|
2974
3049
|
@bacs_debit = bacs_debit
|
|
2975
3050
|
@bancontact = bancontact
|
|
2976
3051
|
@billie = billie
|
|
@@ -2982,6 +3057,7 @@ module Stripe
|
|
|
2982
3057
|
@cashapp = cashapp
|
|
2983
3058
|
@crypto = crypto
|
|
2984
3059
|
@customer_balance = customer_balance
|
|
3060
|
+
@dbarai = dbarai
|
|
2985
3061
|
@eps = eps
|
|
2986
3062
|
@fpx = fpx
|
|
2987
3063
|
@getflex = getflex
|
|
@@ -2998,6 +3074,7 @@ module Stripe
|
|
|
2998
3074
|
@kr_card = kr_card
|
|
2999
3075
|
@link = link
|
|
3000
3076
|
@mb_way = mb_way
|
|
3077
|
+
@merpay = merpay
|
|
3001
3078
|
@metadata = metadata
|
|
3002
3079
|
@mobilepay = mobilepay
|
|
3003
3080
|
@multibanco = multibanco
|
|
@@ -3226,6 +3303,15 @@ module Stripe
|
|
|
3226
3303
|
end
|
|
3227
3304
|
|
|
3228
3305
|
class BacsDebit < ::Stripe::RequestParams
|
|
3306
|
+
class FinancialConnections < ::Stripe::RequestParams
|
|
3307
|
+
# 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.
|
|
3308
|
+
attr_accessor :return_url
|
|
3309
|
+
|
|
3310
|
+
def initialize(return_url: nil)
|
|
3311
|
+
@return_url = return_url
|
|
3312
|
+
end
|
|
3313
|
+
end
|
|
3314
|
+
|
|
3229
3315
|
class MandateOptions < ::Stripe::RequestParams
|
|
3230
3316
|
# 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'.
|
|
3231
3317
|
attr_accessor :reference_prefix
|
|
@@ -3234,6 +3320,8 @@ module Stripe
|
|
|
3234
3320
|
@reference_prefix = reference_prefix
|
|
3235
3321
|
end
|
|
3236
3322
|
end
|
|
3323
|
+
# Additional fields for Financial Connections session creation.
|
|
3324
|
+
attr_accessor :financial_connections
|
|
3237
3325
|
# Additional fields for Mandate creation
|
|
3238
3326
|
attr_accessor :mandate_options
|
|
3239
3327
|
# Indicates that you intend to make future payments with this PaymentIntent's payment method.
|
|
@@ -3252,11 +3340,13 @@ module Stripe
|
|
|
3252
3340
|
attr_accessor :verification_method
|
|
3253
3341
|
|
|
3254
3342
|
def initialize(
|
|
3343
|
+
financial_connections: nil,
|
|
3255
3344
|
mandate_options: nil,
|
|
3256
3345
|
setup_future_usage: nil,
|
|
3257
3346
|
target_date: nil,
|
|
3258
3347
|
verification_method: nil
|
|
3259
3348
|
)
|
|
3349
|
+
@financial_connections = financial_connections
|
|
3260
3350
|
@mandate_options = mandate_options
|
|
3261
3351
|
@setup_future_usage = setup_future_usage
|
|
3262
3352
|
@target_date = target_date
|