stripe 20.2.0.pre.alpha.1 → 20.2.0.pre.alpha.3
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 +28 -0
- data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
- data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
- 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/events/v2_money_management_received_debit_mandate_canceled_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_created_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_expired_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_pending_cancellation_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_received_debit_mandate_updated_event.rb +2 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_canceled_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_created_event.rb +46 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_expired_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_pending_cancellation_event.rb +44 -0
- data/lib/stripe/events/v2_money_management_spending_mandate_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +5 -0
- data/lib/stripe/params/account_session_create_params.rb +200 -0
- data/lib/stripe/params/checkout/session_create_params.rb +46 -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/customer_update_params.rb +55 -0
- data/lib/stripe/params/fx_quote_create_params.rb +2 -2
- 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 +58 -1
- data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +35 -1
- data/lib/stripe/params/payment_attempt_record_report_guaranteed_params.rb +35 -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 +42 -0
- data/lib/stripe/params/payment_method_configuration_update_params.rb +42 -0
- data/lib/stripe/params/payment_method_create_params.rb +21 -0
- data/lib/stripe/params/payment_record_report_payment_attempt_guaranteed_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_attempt_params.rb +35 -1
- data/lib/stripe/params/payment_record_report_payment_params.rb +35 -1
- 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 +19 -1
- data/lib/stripe/params/refund_create_params.rb +4 -0
- data/lib/stripe/params/setup_intent_confirm_params.rb +50 -1
- data/lib/stripe/params/setup_intent_create_params.rb +50 -1
- data/lib/stripe/params/setup_intent_update_params.rb +34 -1
- data/lib/stripe/params/shared_payment/issued_token_create_params.rb +19 -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/v2/money_management/outbound_payment_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/outbound_setup_intent_create_params.rb +46 -0
- data/lib/stripe/params/v2/money_management/payout_intent_create_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/payout_intent_update_params.rb +22 -1
- data/lib/stripe/params/v2/money_management/received_debit_list_params.rb +5 -2
- data/lib/stripe/params/v2/money_management/spending_mandate_cancel_params.rb +10 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_list_params.rb +26 -0
- data/lib/stripe/params/v2/money_management/spending_mandate_retrieve_params.rb +10 -0
- data/lib/stripe/params.rb +27 -0
- data/lib/stripe/resources/account_session.rb +81 -0
- data/lib/stripe/resources/apps/install.rb +1 -1
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +373 -5
- data/lib/stripe/resources/checkout/session.rb +32 -0
- data/lib/stripe/resources/confirmation_token.rb +103 -3
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/customer_tax_exemption.rb +32 -1
- data/lib/stripe/resources/identity/verification_report.rb +34 -0
- data/lib/stripe/resources/invoice.rb +3 -0
- data/lib/stripe/resources/mandate.rb +16 -0
- data/lib/stripe/resources/payment_attempt_record.rb +151 -2
- data/lib/stripe/resources/payment_intent.rb +126 -2
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +46 -1
- data/lib/stripe/resources/payment_method.rb +103 -3
- data/lib/stripe/resources/payment_method_configuration.rb +68 -0
- data/lib/stripe/resources/payment_record.rb +151 -2
- data/lib/stripe/resources/radar/payment_evaluation.rb +41 -2
- data/lib/stripe/resources/refund.rb +38 -0
- data/lib/stripe/resources/reporting/report_run.rb +2 -0
- data/lib/stripe/resources/reserve/hold.rb +2 -2
- data/lib/stripe/resources/reserve/plan.rb +1 -1
- data/lib/stripe/resources/reserve/release.rb +1 -1
- data/lib/stripe/resources/setup_attempt.rb +21 -2
- data/lib/stripe/resources/setup_intent.rb +38 -2
- data/lib/stripe/resources/shared_payment/granted_token.rb +32 -2
- data/lib/stripe/resources/shared_payment/issued_token.rb +20 -0
- 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/terminal/reader.rb +18 -1
- 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/core/event.rb +1 -1
- data/lib/stripe/resources/v2/core/event_base.rb +36 -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/money_management/outbound_payment.rb +74 -1
- data/lib/stripe/resources/v2/money_management/payout_intent.rb +22 -1
- data/lib/stripe/resources/v2/money_management/payout_method.rb +40 -0
- data/lib/stripe/resources/v2/money_management/received_debit.rb +3 -0
- data/lib/stripe/resources/v2/money_management/spending_mandate.rb +121 -0
- data/lib/stripe/resources/v2/tax/operations_resolve_address_result.rb +1 -1
- data/lib/stripe/resources.rb +46 -0
- data/lib/stripe/services/apps/install_service.rb +1 -1
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/reserve/hold_service.rb +2 -2
- data/lib/stripe/services/reserve/plan_service.rb +2 -2
- data/lib/stripe/services/reserve/release_service.rb +2 -2
- 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/core/vault/network_token_service.rb +1 -0
- 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/v2/money_management/received_debit_mandate_service.rb +3 -0
- data/lib/stripe/services/v2/money_management/spending_mandate_service.rb +43 -0
- data/lib/stripe/services/v2/money_management_service.rb +2 -1
- data/lib/stripe/services.rb +11 -0
- data/lib/stripe/stripe_event_notification_handler.rb +28 -0
- data/lib/stripe/stripe_service.rb +13 -9
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +68 -3
- data/lib/stripe/workload_identity_exchange.rb +2 -2
- data/rbi/stripe/resources/v2/core/event_base.rbi +11 -0
- data/rbi/stripe.rbi +5856 -213
- metadata +32 -2
|
@@ -20,6 +20,7 @@ module Stripe
|
|
|
20
20
|
end
|
|
21
21
|
end
|
|
22
22
|
|
|
23
|
+
class AeonPay < ::Stripe::RequestParams; end
|
|
23
24
|
class Affirm < ::Stripe::RequestParams; end
|
|
24
25
|
class AfterpayClearpay < ::Stripe::RequestParams; end
|
|
25
26
|
class Alipay < ::Stripe::RequestParams; end
|
|
@@ -38,6 +39,8 @@ module Stripe
|
|
|
38
39
|
end
|
|
39
40
|
end
|
|
40
41
|
|
|
42
|
+
class AuPay < ::Stripe::RequestParams; end
|
|
43
|
+
|
|
41
44
|
class BacsDebit < ::Stripe::RequestParams
|
|
42
45
|
# Account number of the bank account that the funds will be debited from.
|
|
43
46
|
attr_accessor :account_number
|
|
@@ -120,6 +123,7 @@ module Stripe
|
|
|
120
123
|
class Cashapp < ::Stripe::RequestParams; end
|
|
121
124
|
class Crypto < ::Stripe::RequestParams; end
|
|
122
125
|
class CustomerBalance < ::Stripe::RequestParams; end
|
|
126
|
+
class Dbarai < ::Stripe::RequestParams; end
|
|
123
127
|
|
|
124
128
|
class Eps < ::Stripe::RequestParams
|
|
125
129
|
# The customer's bank.
|
|
@@ -205,6 +209,7 @@ module Stripe
|
|
|
205
209
|
class KrCard < ::Stripe::RequestParams; end
|
|
206
210
|
class Link < ::Stripe::RequestParams; end
|
|
207
211
|
class MbWay < ::Stripe::RequestParams; end
|
|
212
|
+
class Merpay < ::Stripe::RequestParams; end
|
|
208
213
|
class Mobilepay < ::Stripe::RequestParams; end
|
|
209
214
|
class Multibanco < ::Stripe::RequestParams; end
|
|
210
215
|
|
|
@@ -433,6 +438,8 @@ module Stripe
|
|
|
433
438
|
class Zip < ::Stripe::RequestParams; end
|
|
434
439
|
# If this is an `acss_debit` PaymentMethod, this hash contains details about the ACSS Debit payment method.
|
|
435
440
|
attr_accessor :acss_debit
|
|
441
|
+
# If this is a `aeon_pay` PaymentMethod, this hash contains details about the AEON Pay payment method.
|
|
442
|
+
attr_accessor :aeon_pay
|
|
436
443
|
# If this is an `affirm` PaymentMethod, this hash contains details about the Affirm payment method.
|
|
437
444
|
attr_accessor :affirm
|
|
438
445
|
# If this is an `AfterpayClearpay` PaymentMethod, this hash contains details about the AfterpayClearpay payment method.
|
|
@@ -447,6 +454,8 @@ module Stripe
|
|
|
447
454
|
attr_accessor :amazon_pay
|
|
448
455
|
# If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
|
|
449
456
|
attr_accessor :au_becs_debit
|
|
457
|
+
# If this is a `au_pay` PaymentMethod, this hash contains details about the au PAY payment method.
|
|
458
|
+
attr_accessor :au_pay
|
|
450
459
|
# If this is a `bacs_debit` PaymentMethod, this hash contains details about the Bacs Direct Debit bank account.
|
|
451
460
|
attr_accessor :bacs_debit
|
|
452
461
|
# If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
|
|
@@ -469,6 +478,8 @@ module Stripe
|
|
|
469
478
|
attr_accessor :crypto
|
|
470
479
|
# If this is a `customer_balance` PaymentMethod, this hash contains details about the CustomerBalance payment method.
|
|
471
480
|
attr_accessor :customer_balance
|
|
481
|
+
# If this is a `dbarai` PaymentMethod, this hash contains details about the d-Barai payment method.
|
|
482
|
+
attr_accessor :dbarai
|
|
472
483
|
# If this is an `eps` PaymentMethod, this hash contains details about the EPS payment method.
|
|
473
484
|
attr_accessor :eps
|
|
474
485
|
# If this is an `fpx` PaymentMethod, this hash contains details about the FPX payment method.
|
|
@@ -501,6 +512,8 @@ module Stripe
|
|
|
501
512
|
attr_accessor :link
|
|
502
513
|
# If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
|
|
503
514
|
attr_accessor :mb_way
|
|
515
|
+
# If this is a `merpay` PaymentMethod, this hash contains details about the Merpay payment method.
|
|
516
|
+
attr_accessor :merpay
|
|
504
517
|
# 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`.
|
|
505
518
|
attr_accessor :metadata
|
|
506
519
|
# If this is a `mobilepay` PaymentMethod, this hash contains details about the MobilePay payment method.
|
|
@@ -586,6 +599,7 @@ module Stripe
|
|
|
586
599
|
|
|
587
600
|
def initialize(
|
|
588
601
|
acss_debit: nil,
|
|
602
|
+
aeon_pay: nil,
|
|
589
603
|
affirm: nil,
|
|
590
604
|
afterpay_clearpay: nil,
|
|
591
605
|
alipay: nil,
|
|
@@ -593,6 +607,7 @@ module Stripe
|
|
|
593
607
|
alma: nil,
|
|
594
608
|
amazon_pay: nil,
|
|
595
609
|
au_becs_debit: nil,
|
|
610
|
+
au_pay: nil,
|
|
596
611
|
bacs_debit: nil,
|
|
597
612
|
bancontact: nil,
|
|
598
613
|
billie: nil,
|
|
@@ -604,6 +619,7 @@ module Stripe
|
|
|
604
619
|
cashapp: nil,
|
|
605
620
|
crypto: nil,
|
|
606
621
|
customer_balance: nil,
|
|
622
|
+
dbarai: nil,
|
|
607
623
|
eps: nil,
|
|
608
624
|
fpx: nil,
|
|
609
625
|
getflex: nil,
|
|
@@ -620,6 +636,7 @@ module Stripe
|
|
|
620
636
|
kr_card: nil,
|
|
621
637
|
link: nil,
|
|
622
638
|
mb_way: nil,
|
|
639
|
+
merpay: nil,
|
|
623
640
|
metadata: nil,
|
|
624
641
|
mobilepay: nil,
|
|
625
642
|
multibanco: nil,
|
|
@@ -663,6 +680,7 @@ module Stripe
|
|
|
663
680
|
zip: nil
|
|
664
681
|
)
|
|
665
682
|
@acss_debit = acss_debit
|
|
683
|
+
@aeon_pay = aeon_pay
|
|
666
684
|
@affirm = affirm
|
|
667
685
|
@afterpay_clearpay = afterpay_clearpay
|
|
668
686
|
@alipay = alipay
|
|
@@ -670,6 +688,7 @@ module Stripe
|
|
|
670
688
|
@alma = alma
|
|
671
689
|
@amazon_pay = amazon_pay
|
|
672
690
|
@au_becs_debit = au_becs_debit
|
|
691
|
+
@au_pay = au_pay
|
|
673
692
|
@bacs_debit = bacs_debit
|
|
674
693
|
@bancontact = bancontact
|
|
675
694
|
@billie = billie
|
|
@@ -681,6 +700,7 @@ module Stripe
|
|
|
681
700
|
@cashapp = cashapp
|
|
682
701
|
@crypto = crypto
|
|
683
702
|
@customer_balance = customer_balance
|
|
703
|
+
@dbarai = dbarai
|
|
684
704
|
@eps = eps
|
|
685
705
|
@fpx = fpx
|
|
686
706
|
@getflex = getflex
|
|
@@ -697,6 +717,7 @@ module Stripe
|
|
|
697
717
|
@kr_card = kr_card
|
|
698
718
|
@link = link
|
|
699
719
|
@mb_way = mb_way
|
|
720
|
+
@merpay = merpay
|
|
700
721
|
@metadata = metadata
|
|
701
722
|
@mobilepay = mobilepay
|
|
702
723
|
@multibanco = multibanco
|
|
@@ -78,6 +78,15 @@ module Stripe
|
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
+
class BusinessProfileManagement < ::Stripe::RequestParams
|
|
82
|
+
# Whether this embedded component is enabled.
|
|
83
|
+
attr_accessor :enabled
|
|
84
|
+
|
|
85
|
+
def initialize(enabled: nil)
|
|
86
|
+
@enabled = enabled
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
81
90
|
class CapitalFinancing < ::Stripe::RequestParams
|
|
82
91
|
# Whether this embedded component is enabled.
|
|
83
92
|
attr_accessor :enabled
|
|
@@ -372,6 +381,8 @@ module Stripe
|
|
|
372
381
|
attr_accessor :balances
|
|
373
382
|
# Settings for the Bills embedded component.
|
|
374
383
|
attr_accessor :bills
|
|
384
|
+
# Settings for the Business Profile Management embedded component.
|
|
385
|
+
attr_accessor :business_profile_management
|
|
375
386
|
# Settings for the Capital Financing embedded component.
|
|
376
387
|
attr_accessor :capital_financing
|
|
377
388
|
# Settings for the Capital Financing Application embedded component.
|
|
@@ -444,6 +455,7 @@ module Stripe
|
|
|
444
455
|
balance_report: nil,
|
|
445
456
|
balances: nil,
|
|
446
457
|
bills: nil,
|
|
458
|
+
business_profile_management: nil,
|
|
447
459
|
capital_financing: nil,
|
|
448
460
|
capital_financing_application: nil,
|
|
449
461
|
capital_financing_promotion: nil,
|
|
@@ -484,6 +496,7 @@ module Stripe
|
|
|
484
496
|
@balance_report = balance_report
|
|
485
497
|
@balances = balances
|
|
486
498
|
@bills = bills
|
|
499
|
+
@business_profile_management = business_profile_management
|
|
487
500
|
@capital_financing = capital_financing
|
|
488
501
|
@capital_financing_application = capital_financing_application
|
|
489
502
|
@capital_financing_promotion = capital_financing_promotion
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Extend
|
|
7
|
+
class ObjectDefinitionListParams < ::Stripe::RequestParams
|
|
8
|
+
# Maximum page size.
|
|
9
|
+
attr_accessor :limit
|
|
10
|
+
|
|
11
|
+
def initialize(limit: nil)
|
|
12
|
+
@limit = limit
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module Extend
|
|
7
|
+
module ObjectDefinitions
|
|
8
|
+
class VersionListParams < ::Stripe::RequestParams
|
|
9
|
+
# Maximum page size.
|
|
10
|
+
attr_accessor :limit
|
|
11
|
+
|
|
12
|
+
def initialize(limit: nil)
|
|
13
|
+
@limit = limit
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
|
@@ -94,11 +94,32 @@ module Stripe
|
|
|
94
94
|
@preferred_networks = preferred_networks
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
|
+
|
|
98
|
+
class CheckSend < ::Stripe::RequestParams
|
|
99
|
+
# The ID of a file to include as an attachment with the check.
|
|
100
|
+
attr_accessor :attachment_file
|
|
101
|
+
# Memo printed on the memo field of the check.
|
|
102
|
+
attr_accessor :memo
|
|
103
|
+
# Open Enum. Shipping speed of the check. Defaults to standard.
|
|
104
|
+
attr_accessor :shipping_speed
|
|
105
|
+
# Signature printed on the check.
|
|
106
|
+
attr_accessor :signature
|
|
107
|
+
|
|
108
|
+
def initialize(attachment_file: nil, memo: nil, shipping_speed: nil, signature: nil)
|
|
109
|
+
@attachment_file = attachment_file
|
|
110
|
+
@memo = memo
|
|
111
|
+
@shipping_speed = shipping_speed
|
|
112
|
+
@signature = signature
|
|
113
|
+
end
|
|
114
|
+
end
|
|
97
115
|
# Options for bank account payout methods.
|
|
98
116
|
attr_accessor :bank_account
|
|
117
|
+
# Options for check send payout methods.
|
|
118
|
+
attr_accessor :check_send
|
|
99
119
|
|
|
100
|
-
def initialize(bank_account: nil)
|
|
120
|
+
def initialize(bank_account: nil, check_send: nil)
|
|
101
121
|
@bank_account = bank_account
|
|
122
|
+
@check_send = check_send
|
|
102
123
|
end
|
|
103
124
|
end
|
|
104
125
|
# Describes the currency to send to the recipient.
|
|
@@ -83,6 +83,48 @@ module Stripe
|
|
|
83
83
|
end
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
class CheckSend < ::Stripe::RequestParams
|
|
87
|
+
class MailingAddress < ::Stripe::RequestParams
|
|
88
|
+
# City.
|
|
89
|
+
attr_accessor :city
|
|
90
|
+
# Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
91
|
+
attr_accessor :country
|
|
92
|
+
# Address line 1 (e.g., street, PO Box, or company name).
|
|
93
|
+
attr_accessor :line1
|
|
94
|
+
# Address line 2 (e.g., apartment, suite, unit, or building).
|
|
95
|
+
attr_accessor :line2
|
|
96
|
+
# ZIP or postal code.
|
|
97
|
+
attr_accessor :postal_code
|
|
98
|
+
# State.
|
|
99
|
+
attr_accessor :state
|
|
100
|
+
|
|
101
|
+
def initialize(
|
|
102
|
+
city: nil,
|
|
103
|
+
country: nil,
|
|
104
|
+
line1: nil,
|
|
105
|
+
line2: nil,
|
|
106
|
+
postal_code: nil,
|
|
107
|
+
state: nil
|
|
108
|
+
)
|
|
109
|
+
@city = city
|
|
110
|
+
@country = country
|
|
111
|
+
@line1 = line1
|
|
112
|
+
@line2 = line2
|
|
113
|
+
@postal_code = postal_code
|
|
114
|
+
@state = state
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
# The US mailing address the check is sent to.
|
|
118
|
+
attr_accessor :mailing_address
|
|
119
|
+
# The name printed on the check's payee line.
|
|
120
|
+
attr_accessor :payee_name
|
|
121
|
+
|
|
122
|
+
def initialize(mailing_address: nil, payee_name: nil)
|
|
123
|
+
@mailing_address = mailing_address
|
|
124
|
+
@payee_name = payee_name
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
86
128
|
class CryptoWallet < ::Stripe::RequestParams
|
|
87
129
|
# Crypto wallet address.
|
|
88
130
|
attr_accessor :address
|
|
@@ -117,6 +159,8 @@ module Stripe
|
|
|
117
159
|
attr_accessor :bank_account
|
|
118
160
|
# The type specific details of the card payout method.
|
|
119
161
|
attr_accessor :card
|
|
162
|
+
# The type specific details of the check send payout method.
|
|
163
|
+
attr_accessor :check_send
|
|
120
164
|
# The type specific details of the crypto wallet payout method.
|
|
121
165
|
attr_accessor :crypto_wallet
|
|
122
166
|
# The type specific details of the PIX payout method.
|
|
@@ -128,6 +172,7 @@ module Stripe
|
|
|
128
172
|
apple_pay: nil,
|
|
129
173
|
bank_account: nil,
|
|
130
174
|
card: nil,
|
|
175
|
+
check_send: nil,
|
|
131
176
|
crypto_wallet: nil,
|
|
132
177
|
pix: nil,
|
|
133
178
|
type: nil
|
|
@@ -135,6 +180,7 @@ module Stripe
|
|
|
135
180
|
@apple_pay = apple_pay
|
|
136
181
|
@bank_account = bank_account
|
|
137
182
|
@card = card
|
|
183
|
+
@check_send = check_send
|
|
138
184
|
@crypto_wallet = crypto_wallet
|
|
139
185
|
@pix = pix
|
|
140
186
|
@type = type
|
|
@@ -71,11 +71,32 @@ module Stripe
|
|
|
71
71
|
@preferred_networks = preferred_networks
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
|
+
|
|
75
|
+
class CheckSend < ::Stripe::RequestParams
|
|
76
|
+
# The ID of a file to include as an attachment with the check.
|
|
77
|
+
attr_accessor :attachment_file
|
|
78
|
+
# Memo printed on the memo field of the check.
|
|
79
|
+
attr_accessor :memo
|
|
80
|
+
# Open Enum. Shipping speed of the check. Defaults to standard.
|
|
81
|
+
attr_accessor :shipping_speed
|
|
82
|
+
# Signature printed on the check.
|
|
83
|
+
attr_accessor :signature
|
|
84
|
+
|
|
85
|
+
def initialize(attachment_file: nil, memo: nil, shipping_speed: nil, signature: nil)
|
|
86
|
+
@attachment_file = attachment_file
|
|
87
|
+
@memo = memo
|
|
88
|
+
@shipping_speed = shipping_speed
|
|
89
|
+
@signature = signature
|
|
90
|
+
end
|
|
91
|
+
end
|
|
74
92
|
# Options for bank account payout methods.
|
|
75
93
|
attr_accessor :bank_account
|
|
94
|
+
# Options for check send payout methods.
|
|
95
|
+
attr_accessor :check_send
|
|
76
96
|
|
|
77
|
-
def initialize(bank_account: nil)
|
|
97
|
+
def initialize(bank_account: nil, check_send: nil)
|
|
78
98
|
@bank_account = bank_account
|
|
99
|
+
@check_send = check_send
|
|
79
100
|
end
|
|
80
101
|
end
|
|
81
102
|
# The currency to send to the recipient.
|
|
@@ -59,11 +59,32 @@ module Stripe
|
|
|
59
59
|
@preferred_networks = preferred_networks
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
|
+
|
|
63
|
+
class CheckSend < ::Stripe::RequestParams
|
|
64
|
+
# The ID of a file to include as an attachment with the check.
|
|
65
|
+
attr_accessor :attachment_file
|
|
66
|
+
# Memo printed on the memo field of the check.
|
|
67
|
+
attr_accessor :memo
|
|
68
|
+
# Open Enum. Shipping speed of the check. Defaults to standard.
|
|
69
|
+
attr_accessor :shipping_speed
|
|
70
|
+
# Signature printed on the check.
|
|
71
|
+
attr_accessor :signature
|
|
72
|
+
|
|
73
|
+
def initialize(attachment_file: nil, memo: nil, shipping_speed: nil, signature: nil)
|
|
74
|
+
@attachment_file = attachment_file
|
|
75
|
+
@memo = memo
|
|
76
|
+
@shipping_speed = shipping_speed
|
|
77
|
+
@signature = signature
|
|
78
|
+
end
|
|
79
|
+
end
|
|
62
80
|
# Options for bank account payout methods.
|
|
63
81
|
attr_accessor :bank_account
|
|
82
|
+
# Options for check send payout methods.
|
|
83
|
+
attr_accessor :check_send
|
|
64
84
|
|
|
65
|
-
def initialize(bank_account: nil)
|
|
85
|
+
def initialize(bank_account: nil, check_send: nil)
|
|
66
86
|
@bank_account = bank_account
|
|
87
|
+
@check_send = check_send
|
|
67
88
|
end
|
|
68
89
|
end
|
|
69
90
|
# The currency to send to the recipient.
|
|
@@ -7,12 +7,15 @@ module Stripe
|
|
|
7
7
|
class ReceivedDebitListParams < ::Stripe::RequestParams
|
|
8
8
|
# The page limit.
|
|
9
9
|
attr_accessor :limit
|
|
10
|
-
# Filter by the received debit mandate ID.
|
|
10
|
+
# Filter by the received debit mandate ID. Deprecated: use `spending_mandate` instead.
|
|
11
11
|
attr_accessor :received_debit_mandate
|
|
12
|
+
# Filter by the SpendingMandate ID.
|
|
13
|
+
attr_accessor :spending_mandate
|
|
12
14
|
|
|
13
|
-
def initialize(limit: nil, received_debit_mandate: nil)
|
|
15
|
+
def initialize(limit: nil, received_debit_mandate: nil, spending_mandate: nil)
|
|
14
16
|
@limit = limit
|
|
15
17
|
@received_debit_mandate = received_debit_mandate
|
|
18
|
+
@spending_mandate = spending_mandate
|
|
16
19
|
end
|
|
17
20
|
end
|
|
18
21
|
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
module Stripe
|
|
5
|
+
module V2
|
|
6
|
+
module MoneyManagement
|
|
7
|
+
class SpendingMandateListParams < ::Stripe::RequestParams
|
|
8
|
+
# The ID of the FinancialAccount to filter by.
|
|
9
|
+
attr_accessor :financial_account
|
|
10
|
+
# The page limit.
|
|
11
|
+
attr_accessor :limit
|
|
12
|
+
# Filter by mandate status.
|
|
13
|
+
attr_accessor :statuses
|
|
14
|
+
# The type of SpendingMandate to filter by.
|
|
15
|
+
attr_accessor :type
|
|
16
|
+
|
|
17
|
+
def initialize(financial_account: nil, limit: nil, statuses: nil, type: nil)
|
|
18
|
+
@financial_account = financial_account
|
|
19
|
+
@limit = limit
|
|
20
|
+
@statuses = statuses
|
|
21
|
+
@type = type
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
data/lib/stripe/params.rb
CHANGED
|
@@ -733,6 +733,11 @@ module Stripe
|
|
|
733
733
|
autoload :CalculationLineItemListParams, "stripe/params/tax/calculation_line_item_list_params"
|
|
734
734
|
autoload :CalculationListLineItemsParams, "stripe/params/tax/calculation_list_line_items_params"
|
|
735
735
|
autoload :CalculationRetrieveParams, "stripe/params/tax/calculation_retrieve_params"
|
|
736
|
+
autoload :CertificateCreateParams, "stripe/params/tax/certificate_create_params"
|
|
737
|
+
autoload :CertificateDeleteParams, "stripe/params/tax/certificate_delete_params"
|
|
738
|
+
autoload :CertificateListParams, "stripe/params/tax/certificate_list_params"
|
|
739
|
+
autoload :CertificateRetrieveParams, "stripe/params/tax/certificate_retrieve_params"
|
|
740
|
+
autoload :FormCreateParams, "stripe/params/tax/form_create_params"
|
|
736
741
|
autoload :FormListParams, "stripe/params/tax/form_list_params"
|
|
737
742
|
autoload :FormPdfParams, "stripe/params/tax/form_pdf_params"
|
|
738
743
|
autoload :FormRetrieveParams, "stripe/params/tax/form_retrieve_params"
|
|
@@ -1207,11 +1212,18 @@ module Stripe
|
|
|
1207
1212
|
end
|
|
1208
1213
|
|
|
1209
1214
|
module Extend
|
|
1215
|
+
autoload :ObjectDefinitionListParams, "stripe/params/v2/extend/object_definition_list_params"
|
|
1216
|
+
autoload :ObjectDefinitionRetrieveParams, "stripe/params/v2/extend/object_definition_retrieve_params"
|
|
1210
1217
|
autoload :WorkflowInvokeParams, "stripe/params/v2/extend/workflow_invoke_params"
|
|
1211
1218
|
autoload :WorkflowListParams, "stripe/params/v2/extend/workflow_list_params"
|
|
1212
1219
|
autoload :WorkflowRetrieveParams, "stripe/params/v2/extend/workflow_retrieve_params"
|
|
1213
1220
|
autoload :WorkflowRunListParams, "stripe/params/v2/extend/workflow_run_list_params"
|
|
1214
1221
|
autoload :WorkflowRunRetrieveParams, "stripe/params/v2/extend/workflow_run_retrieve_params"
|
|
1222
|
+
|
|
1223
|
+
module ObjectDefinitions
|
|
1224
|
+
autoload :VersionListParams, "stripe/params/v2/extend/object_definitions/version_list_params"
|
|
1225
|
+
autoload :VersionRetrieveParams, "stripe/params/v2/extend/object_definitions/version_retrieve_params"
|
|
1226
|
+
end
|
|
1215
1227
|
end
|
|
1216
1228
|
|
|
1217
1229
|
module Iam
|
|
@@ -1331,6 +1343,9 @@ module Stripe
|
|
|
1331
1343
|
autoload :RewardProgramListParams, "stripe/params/v2/money_management/reward_program_list_params"
|
|
1332
1344
|
autoload :RewardProgramRetrieveParams, "stripe/params/v2/money_management/reward_program_retrieve_params"
|
|
1333
1345
|
autoload :RewardProgramUpdateParams, "stripe/params/v2/money_management/reward_program_update_params"
|
|
1346
|
+
autoload :SpendingMandateCancelParams, "stripe/params/v2/money_management/spending_mandate_cancel_params"
|
|
1347
|
+
autoload :SpendingMandateListParams, "stripe/params/v2/money_management/spending_mandate_list_params"
|
|
1348
|
+
autoload :SpendingMandateRetrieveParams, "stripe/params/v2/money_management/spending_mandate_retrieve_params"
|
|
1334
1349
|
autoload :TestHelperEarnedCreditsParams, "stripe/params/v2/money_management/test_helper_earned_credits_params"
|
|
1335
1350
|
autoload :TransactionEntryListParams, "stripe/params/v2/money_management/transaction_entry_list_params"
|
|
1336
1351
|
autoload :TransactionEntryRetrieveParams, "stripe/params/v2/money_management/transaction_entry_retrieve_params"
|
|
@@ -2098,6 +2113,11 @@ module Stripe
|
|
|
2098
2113
|
stripe/params/tax/calculation_line_item_list_params
|
|
2099
2114
|
stripe/params/tax/calculation_list_line_items_params
|
|
2100
2115
|
stripe/params/tax/calculation_retrieve_params
|
|
2116
|
+
stripe/params/tax/certificate_create_params
|
|
2117
|
+
stripe/params/tax/certificate_delete_params
|
|
2118
|
+
stripe/params/tax/certificate_list_params
|
|
2119
|
+
stripe/params/tax/certificate_retrieve_params
|
|
2120
|
+
stripe/params/tax/form_create_params
|
|
2101
2121
|
stripe/params/tax/form_list_params
|
|
2102
2122
|
stripe/params/tax/form_pdf_params
|
|
2103
2123
|
stripe/params/tax/form_retrieve_params
|
|
@@ -2467,6 +2487,10 @@ module Stripe
|
|
|
2467
2487
|
stripe/params/v2/data/reporting/query_run_retrieve_params
|
|
2468
2488
|
stripe/params/v2/data/schema_list_params
|
|
2469
2489
|
stripe/params/v2/data/schema_retrieve_params
|
|
2490
|
+
stripe/params/v2/extend/object_definition_list_params
|
|
2491
|
+
stripe/params/v2/extend/object_definition_retrieve_params
|
|
2492
|
+
stripe/params/v2/extend/object_definitions/version_list_params
|
|
2493
|
+
stripe/params/v2/extend/object_definitions/version_retrieve_params
|
|
2470
2494
|
stripe/params/v2/extend/workflow_invoke_params
|
|
2471
2495
|
stripe/params/v2/extend/workflow_list_params
|
|
2472
2496
|
stripe/params/v2/extend/workflow_retrieve_params
|
|
@@ -2574,6 +2598,9 @@ module Stripe
|
|
|
2574
2598
|
stripe/params/v2/money_management/reward_programs/rule_list_params
|
|
2575
2599
|
stripe/params/v2/money_management/reward_programs/rule_retrieve_params
|
|
2576
2600
|
stripe/params/v2/money_management/reward_programs/rule_update_params
|
|
2601
|
+
stripe/params/v2/money_management/spending_mandate_cancel_params
|
|
2602
|
+
stripe/params/v2/money_management/spending_mandate_list_params
|
|
2603
|
+
stripe/params/v2/money_management/spending_mandate_retrieve_params
|
|
2577
2604
|
stripe/params/v2/money_management/test_helper_earned_credits_params
|
|
2578
2605
|
stripe/params/v2/money_management/test_helpers/financial_address_credit_params
|
|
2579
2606
|
stripe/params/v2/money_management/test_helpers/financial_address_debit_params
|