stripe 21.0.0 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/stripe/api_operations/request.rb +16 -7
- data/lib/stripe/api_operations/save.rb +4 -4
- data/lib/stripe/api_requestor.rb +54 -34
- data/lib/stripe/api_resource.rb +1 -2
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/connection_manager.rb +3 -0
- data/lib/stripe/event_types.rb +20 -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_core_claimable_sandbox_claimed_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
- data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
- data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
- data/lib/stripe/params/checkout/session_create_params.rb +8 -1
- data/lib/stripe/params/coupon_create_params.rb +1 -1
- data/lib/stripe/params/financial_connections/session_create_params.rb +1 -1
- data/lib/stripe/params/invoice_item_create_params.rb +1 -1
- data/lib/stripe/params/payment_intent_capture_params.rb +663 -1
- data/lib/stripe/params/payment_intent_confirm_params.rb +663 -1
- data/lib/stripe/params/payment_intent_create_params.rb +664 -2
- data/lib/stripe/params/payment_intent_update_params.rb +664 -2
- data/lib/stripe/params/payment_link_update_params.rb +4 -0
- data/lib/stripe/params/product_create_params.rb +4 -1
- data/lib/stripe/params/product_update_params.rb +4 -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/reporting/report_run_create_params.rb +4 -0
- data/lib/stripe/params/tax/registration_create_params.rb +13 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +23 -1
- data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
- data/lib/stripe/params/v2/core/account_create_params.rb +138 -4
- data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
- data/lib/stripe/params/v2/core/account_update_params.rb +138 -4
- data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
- data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +17 -0
- data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
- data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
- data/lib/stripe/params.rb +7 -0
- data/lib/stripe/request_options.rb +19 -2
- data/lib/stripe/resources/apps/install.rb +2 -2
- data/lib/stripe/resources/balance_transaction.rb +1 -1
- data/lib/stripe/resources/charge.rb +274 -5
- data/lib/stripe/resources/checkout/session.rb +4 -0
- data/lib/stripe/resources/confirmation_token.rb +2 -2
- data/lib/stripe/resources/coupon.rb +6 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/event.rb +2 -2
- data/lib/stripe/resources/issuing/card.rb +1 -1
- data/lib/stripe/resources/payment_attempt_record.rb +4 -1
- data/lib/stripe/resources/payment_intent.rb +575 -2
- data/lib/stripe/resources/payment_method.rb +2 -2
- data/lib/stripe/resources/payment_record.rb +4 -1
- data/lib/stripe/resources/product.rb +2 -0
- data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
- 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 +1 -1
- data/lib/stripe/resources/setup_attempt.rb +2 -2
- data/lib/stripe/resources/setup_intent.rb +1 -1
- data/lib/stripe/resources/tax/registration.rb +16 -1
- data/lib/stripe/resources/treasury/inbound_transfer.rb +35 -7
- data/lib/stripe/resources/treasury/outbound_payment.rb +37 -9
- data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -9
- data/lib/stripe/resources/treasury/received_credit.rb +1 -1
- data/lib/stripe/resources/treasury/received_debit.rb +1 -1
- data/lib/stripe/resources/v2/core/account.rb +246 -3
- data/lib/stripe/resources/v2/core/account_link.rb +18 -1
- data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
- data/lib/stripe/resources/v2/core/account_token.rb +3 -1
- data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
- data/lib/stripe/resources/v2/core/event_base.rb +8 -25
- data/lib/stripe/resources/v2/core/event_notification.rb +32 -0
- data/lib/stripe/resources.rb +17 -0
- data/lib/stripe/services/apps/install_service.rb +2 -2
- data/lib/stripe/services/checkout/session_service.rb +2 -0
- data/lib/stripe/services/event_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
- data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
- data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
- data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
- data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
- data/lib/stripe/services/v2/core_service.rb +2 -1
- data/lib/stripe/services.rb +2 -0
- data/lib/stripe/stripe_client.rb +6 -0
- data/lib/stripe/stripe_configuration.rb +9 -2
- data/lib/stripe/stripe_event_notification_handler.rb +26 -0
- data/lib/stripe/stripe_object.rb +22 -9
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +6888 -221
- metadata +12 -2
|
@@ -191,10 +191,13 @@ module Stripe
|
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
class MarketingFeature < ::Stripe::RequestParams
|
|
194
|
+
# Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you update `marketing_features`, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it.
|
|
195
|
+
attr_accessor :loss_message
|
|
194
196
|
# The marketing feature name. Up to 80 characters long.
|
|
195
197
|
attr_accessor :name
|
|
196
198
|
|
|
197
|
-
def initialize(name: nil)
|
|
199
|
+
def initialize(loss_message: nil, name: nil)
|
|
200
|
+
@loss_message = loss_message
|
|
198
201
|
@name = name
|
|
199
202
|
end
|
|
200
203
|
end
|
|
@@ -4,10 +4,13 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
class ProductUpdateParams < ::Stripe::RequestParams
|
|
6
6
|
class MarketingFeature < ::Stripe::RequestParams
|
|
7
|
+
# Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you update `marketing_features`, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it.
|
|
8
|
+
attr_accessor :loss_message
|
|
7
9
|
# The marketing feature name. Up to 80 characters long.
|
|
8
10
|
attr_accessor :name
|
|
9
11
|
|
|
10
|
-
def initialize(name: nil)
|
|
12
|
+
def initialize(loss_message: nil, name: nil)
|
|
13
|
+
@loss_message = loss_message
|
|
11
14
|
@name = name
|
|
12
15
|
end
|
|
13
16
|
end
|
|
@@ -164,7 +164,7 @@ module Stripe
|
|
|
164
164
|
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
165
165
|
end
|
|
166
166
|
end
|
|
167
|
-
# The discounts applied to this line item.
|
|
167
|
+
# The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
|
|
168
168
|
attr_accessor :discounts
|
|
169
169
|
# The ID of the price object. One of `price` or `price_data` is required.
|
|
170
170
|
attr_accessor :price
|
|
@@ -152,7 +152,7 @@ module Stripe
|
|
|
152
152
|
@field_encodings = { unit_amount_decimal: :decimal_string }
|
|
153
153
|
end
|
|
154
154
|
end
|
|
155
|
-
# The discounts applied to this line item.
|
|
155
|
+
# The discounts applied to this line item. Repeating coupons are only supported for recurring prices.
|
|
156
156
|
attr_accessor :discounts
|
|
157
157
|
# The ID of an existing line item on the quote.
|
|
158
158
|
attr_accessor :id
|
|
@@ -19,6 +19,8 @@ module Stripe
|
|
|
19
19
|
attr_accessor :payout
|
|
20
20
|
# Category of balance transactions to be included in the report run.
|
|
21
21
|
attr_accessor :reporting_category
|
|
22
|
+
# The tax invoice month in YYYY-MM format.
|
|
23
|
+
attr_accessor :tax_invoice_month
|
|
22
24
|
# Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`.
|
|
23
25
|
attr_accessor :timezone
|
|
24
26
|
|
|
@@ -30,6 +32,7 @@ module Stripe
|
|
|
30
32
|
interval_start: nil,
|
|
31
33
|
payout: nil,
|
|
32
34
|
reporting_category: nil,
|
|
35
|
+
tax_invoice_month: nil,
|
|
33
36
|
timezone: nil
|
|
34
37
|
)
|
|
35
38
|
@columns = columns
|
|
@@ -39,6 +42,7 @@ module Stripe
|
|
|
39
42
|
@interval_start = interval_start
|
|
40
43
|
@payout = payout
|
|
41
44
|
@reporting_category = reporting_category
|
|
45
|
+
@tax_invoice_month = tax_invoice_month
|
|
42
46
|
@timezone = timezone
|
|
43
47
|
end
|
|
44
48
|
end
|
|
@@ -563,6 +563,15 @@ module Stripe
|
|
|
563
563
|
end
|
|
564
564
|
|
|
565
565
|
class Es < ::Stripe::RequestParams
|
|
566
|
+
class Igic < ::Stripe::RequestParams
|
|
567
|
+
# Place of supply scheme used in an IGIC registration.
|
|
568
|
+
attr_accessor :place_of_supply_scheme
|
|
569
|
+
|
|
570
|
+
def initialize(place_of_supply_scheme: nil)
|
|
571
|
+
@place_of_supply_scheme = place_of_supply_scheme
|
|
572
|
+
end
|
|
573
|
+
end
|
|
574
|
+
|
|
566
575
|
class Standard < ::Stripe::RequestParams
|
|
567
576
|
# Place of supply scheme used in an EU standard registration.
|
|
568
577
|
attr_accessor :place_of_supply_scheme
|
|
@@ -571,12 +580,15 @@ module Stripe
|
|
|
571
580
|
@place_of_supply_scheme = place_of_supply_scheme
|
|
572
581
|
end
|
|
573
582
|
end
|
|
583
|
+
# Options for the IGIC registration.
|
|
584
|
+
attr_accessor :igic
|
|
574
585
|
# Options for the standard registration.
|
|
575
586
|
attr_accessor :standard
|
|
576
587
|
# Type of registration to be created in ES.
|
|
577
588
|
attr_accessor :type
|
|
578
589
|
|
|
579
|
-
def initialize(standard: nil, type: nil)
|
|
590
|
+
def initialize(igic: nil, standard: nil, type: nil)
|
|
591
|
+
@igic = igic
|
|
580
592
|
@standard = standard
|
|
581
593
|
@type = type
|
|
582
594
|
end
|
|
@@ -6,11 +6,33 @@ module Stripe
|
|
|
6
6
|
module Treasury
|
|
7
7
|
class InboundTransferFailParams < ::Stripe::RequestParams
|
|
8
8
|
class FailureDetails < ::Stripe::RequestParams
|
|
9
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
10
|
+
class Ach < ::Stripe::RequestParams
|
|
11
|
+
# NACHA ACH return code.
|
|
12
|
+
attr_accessor :return_code
|
|
13
|
+
|
|
14
|
+
def initialize(return_code: nil)
|
|
15
|
+
@return_code = return_code
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
# ACH network failure details.
|
|
19
|
+
attr_accessor :ach
|
|
20
|
+
# The network used to transfer funds.
|
|
21
|
+
attr_accessor :type
|
|
22
|
+
|
|
23
|
+
def initialize(ach: nil, type: nil)
|
|
24
|
+
@ach = ach
|
|
25
|
+
@type = type
|
|
26
|
+
end
|
|
27
|
+
end
|
|
9
28
|
# Reason for the failure.
|
|
10
29
|
attr_accessor :code
|
|
30
|
+
# Network specific details for the failure.
|
|
31
|
+
attr_accessor :network_details
|
|
11
32
|
|
|
12
|
-
def initialize(code: nil)
|
|
33
|
+
def initialize(code: nil, network_details: nil)
|
|
13
34
|
@code = code
|
|
35
|
+
@network_details = network_details
|
|
14
36
|
end
|
|
15
37
|
end
|
|
16
38
|
# Specifies which fields in the response should be expanded.
|
data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb
CHANGED
|
@@ -5,11 +5,44 @@ module Stripe
|
|
|
5
5
|
module TestHelpers
|
|
6
6
|
module Treasury
|
|
7
7
|
class InboundTransferReturnInboundTransferParams < ::Stripe::RequestParams
|
|
8
|
+
class FailureDetails < ::Stripe::RequestParams
|
|
9
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
10
|
+
class Ach < ::Stripe::RequestParams
|
|
11
|
+
# NACHA ACH return code.
|
|
12
|
+
attr_accessor :return_code
|
|
13
|
+
|
|
14
|
+
def initialize(return_code: nil)
|
|
15
|
+
@return_code = return_code
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
# ACH network failure details.
|
|
19
|
+
attr_accessor :ach
|
|
20
|
+
# The network used to transfer funds.
|
|
21
|
+
attr_accessor :type
|
|
22
|
+
|
|
23
|
+
def initialize(ach: nil, type: nil)
|
|
24
|
+
@ach = ach
|
|
25
|
+
@type = type
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
# Reason for the failure.
|
|
29
|
+
attr_accessor :code
|
|
30
|
+
# Network specific details for the failure.
|
|
31
|
+
attr_accessor :network_details
|
|
32
|
+
|
|
33
|
+
def initialize(code: nil, network_details: nil)
|
|
34
|
+
@code = code
|
|
35
|
+
@network_details = network_details
|
|
36
|
+
end
|
|
37
|
+
end
|
|
8
38
|
# Specifies which fields in the response should be expanded.
|
|
9
39
|
attr_accessor :expand
|
|
40
|
+
# Details about a returned InboundTransfer.
|
|
41
|
+
attr_accessor :failure_details
|
|
10
42
|
|
|
11
|
-
def initialize(expand: nil)
|
|
43
|
+
def initialize(expand: nil, failure_details: nil)
|
|
12
44
|
@expand = expand
|
|
45
|
+
@failure_details = failure_details
|
|
13
46
|
end
|
|
14
47
|
end
|
|
15
48
|
end
|
|
@@ -5,11 +5,33 @@ module Stripe
|
|
|
5
5
|
module Treasury
|
|
6
6
|
class InboundTransferFailParams < ::Stripe::RequestParams
|
|
7
7
|
class FailureDetails < ::Stripe::RequestParams
|
|
8
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
9
|
+
class Ach < ::Stripe::RequestParams
|
|
10
|
+
# NACHA ACH return code.
|
|
11
|
+
attr_accessor :return_code
|
|
12
|
+
|
|
13
|
+
def initialize(return_code: nil)
|
|
14
|
+
@return_code = return_code
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
# ACH network failure details.
|
|
18
|
+
attr_accessor :ach
|
|
19
|
+
# The network used to transfer funds.
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
def initialize(ach: nil, type: nil)
|
|
23
|
+
@ach = ach
|
|
24
|
+
@type = type
|
|
25
|
+
end
|
|
26
|
+
end
|
|
8
27
|
# Reason for the failure.
|
|
9
28
|
attr_accessor :code
|
|
29
|
+
# Network specific details for the failure.
|
|
30
|
+
attr_accessor :network_details
|
|
10
31
|
|
|
11
|
-
def initialize(code: nil)
|
|
32
|
+
def initialize(code: nil, network_details: nil)
|
|
12
33
|
@code = code
|
|
34
|
+
@network_details = network_details
|
|
13
35
|
end
|
|
14
36
|
end
|
|
15
37
|
# Specifies which fields in the response should be expanded.
|
|
@@ -4,11 +4,44 @@
|
|
|
4
4
|
module Stripe
|
|
5
5
|
module Treasury
|
|
6
6
|
class InboundTransferReturnInboundTransferParams < ::Stripe::RequestParams
|
|
7
|
+
class FailureDetails < ::Stripe::RequestParams
|
|
8
|
+
class NetworkDetails < ::Stripe::RequestParams
|
|
9
|
+
class Ach < ::Stripe::RequestParams
|
|
10
|
+
# NACHA ACH return code.
|
|
11
|
+
attr_accessor :return_code
|
|
12
|
+
|
|
13
|
+
def initialize(return_code: nil)
|
|
14
|
+
@return_code = return_code
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
# ACH network failure details.
|
|
18
|
+
attr_accessor :ach
|
|
19
|
+
# The network used to transfer funds.
|
|
20
|
+
attr_accessor :type
|
|
21
|
+
|
|
22
|
+
def initialize(ach: nil, type: nil)
|
|
23
|
+
@ach = ach
|
|
24
|
+
@type = type
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
# Reason for the failure.
|
|
28
|
+
attr_accessor :code
|
|
29
|
+
# Network specific details for the failure.
|
|
30
|
+
attr_accessor :network_details
|
|
31
|
+
|
|
32
|
+
def initialize(code: nil, network_details: nil)
|
|
33
|
+
@code = code
|
|
34
|
+
@network_details = network_details
|
|
35
|
+
end
|
|
36
|
+
end
|
|
7
37
|
# Specifies which fields in the response should be expanded.
|
|
8
38
|
attr_accessor :expand
|
|
39
|
+
# Details about a returned InboundTransfer.
|
|
40
|
+
attr_accessor :failure_details
|
|
9
41
|
|
|
10
|
-
def initialize(expand: nil)
|
|
42
|
+
def initialize(expand: nil, failure_details: nil)
|
|
11
43
|
@expand = expand
|
|
44
|
+
@failure_details = failure_details
|
|
12
45
|
end
|
|
13
46
|
end
|
|
14
47
|
end
|
|
@@ -274,6 +274,15 @@ module Stripe
|
|
|
274
274
|
end
|
|
275
275
|
end
|
|
276
276
|
|
|
277
|
+
class BilliePayments < ::Stripe::RequestParams
|
|
278
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
279
|
+
attr_accessor :requested
|
|
280
|
+
|
|
281
|
+
def initialize(requested: nil)
|
|
282
|
+
@requested = requested
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
|
|
277
286
|
class BlikPayments < ::Stripe::RequestParams
|
|
278
287
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
279
288
|
attr_accessor :requested
|
|
@@ -436,6 +445,15 @@ module Stripe
|
|
|
436
445
|
end
|
|
437
446
|
end
|
|
438
447
|
|
|
448
|
+
class MbWayPayments < ::Stripe::RequestParams
|
|
449
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
450
|
+
attr_accessor :requested
|
|
451
|
+
|
|
452
|
+
def initialize(requested: nil)
|
|
453
|
+
@requested = requested
|
|
454
|
+
end
|
|
455
|
+
end
|
|
456
|
+
|
|
439
457
|
class MobilepayPayments < ::Stripe::RequestParams
|
|
440
458
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
441
459
|
attr_accessor :requested
|
|
@@ -472,6 +490,15 @@ module Stripe
|
|
|
472
490
|
end
|
|
473
491
|
end
|
|
474
492
|
|
|
493
|
+
class NzBankAccountBecsDebitPayments < ::Stripe::RequestParams
|
|
494
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
495
|
+
attr_accessor :requested
|
|
496
|
+
|
|
497
|
+
def initialize(requested: nil)
|
|
498
|
+
@requested = requested
|
|
499
|
+
end
|
|
500
|
+
end
|
|
501
|
+
|
|
475
502
|
class OxxoPayments < ::Stripe::RequestParams
|
|
476
503
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
477
504
|
attr_accessor :requested
|
|
@@ -517,6 +544,24 @@ module Stripe
|
|
|
517
544
|
end
|
|
518
545
|
end
|
|
519
546
|
|
|
547
|
+
class PaypayPayments < ::Stripe::RequestParams
|
|
548
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
549
|
+
attr_accessor :requested
|
|
550
|
+
|
|
551
|
+
def initialize(requested: nil)
|
|
552
|
+
@requested = requested
|
|
553
|
+
end
|
|
554
|
+
end
|
|
555
|
+
|
|
556
|
+
class PixPayments < ::Stripe::RequestParams
|
|
557
|
+
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
558
|
+
attr_accessor :requested
|
|
559
|
+
|
|
560
|
+
def initialize(requested: nil)
|
|
561
|
+
@requested = requested
|
|
562
|
+
end
|
|
563
|
+
end
|
|
564
|
+
|
|
520
565
|
class PromptpayPayments < ::Stripe::RequestParams
|
|
521
566
|
# To request a new Capability for an account, pass true. There can be a delay before the requested Capability becomes active.
|
|
522
567
|
attr_accessor :requested
|
|
@@ -642,6 +687,8 @@ module Stripe
|
|
|
642
687
|
attr_accessor :bacs_debit_payments
|
|
643
688
|
# Allow the merchant to process Bancontact payments.
|
|
644
689
|
attr_accessor :bancontact_payments
|
|
690
|
+
# Allow the merchant to process Billie payments.
|
|
691
|
+
attr_accessor :billie_payments
|
|
645
692
|
# Allow the merchant to process BLIK payments.
|
|
646
693
|
attr_accessor :blik_payments
|
|
647
694
|
# Allow the merchant to process recurring BLIK payments.
|
|
@@ -678,6 +725,8 @@ module Stripe
|
|
|
678
725
|
attr_accessor :kr_card_payments
|
|
679
726
|
# Allow the merchant to process Link payments.
|
|
680
727
|
attr_accessor :link_payments
|
|
728
|
+
# Allow the merchant to process MB WAY payments.
|
|
729
|
+
attr_accessor :mb_way_payments
|
|
681
730
|
# Allow the merchant to process MobilePay payments.
|
|
682
731
|
attr_accessor :mobilepay_payments
|
|
683
732
|
# Allow the merchant to process Multibanco payments.
|
|
@@ -686,6 +735,8 @@ module Stripe
|
|
|
686
735
|
attr_accessor :mx_bank_transfer_payments
|
|
687
736
|
# Allow the merchant to process Naver Pay payments.
|
|
688
737
|
attr_accessor :naver_pay_payments
|
|
738
|
+
# Allow the merchant to process New Zealand BECS Direct Debit payments.
|
|
739
|
+
attr_accessor :nz_bank_account_becs_debit_payments
|
|
689
740
|
# Allow the merchant to process OXXO payments.
|
|
690
741
|
attr_accessor :oxxo_payments
|
|
691
742
|
# Allow the merchant to process Przelewy24 (P24) payments.
|
|
@@ -696,6 +747,10 @@ module Stripe
|
|
|
696
747
|
attr_accessor :payco_payments
|
|
697
748
|
# Allow the merchant to process PayNow payments.
|
|
698
749
|
attr_accessor :paynow_payments
|
|
750
|
+
# Allow the merchant to process PayPay payments.
|
|
751
|
+
attr_accessor :paypay_payments
|
|
752
|
+
# Allow the merchant to process Pix payments.
|
|
753
|
+
attr_accessor :pix_payments
|
|
699
754
|
# Allow the merchant to process PromptPay payments.
|
|
700
755
|
attr_accessor :promptpay_payments
|
|
701
756
|
# Allow the merchant to process Revolut Pay payments.
|
|
@@ -731,6 +786,7 @@ module Stripe
|
|
|
731
786
|
au_becs_debit_payments: nil,
|
|
732
787
|
bacs_debit_payments: nil,
|
|
733
788
|
bancontact_payments: nil,
|
|
789
|
+
billie_payments: nil,
|
|
734
790
|
blik_payments: nil,
|
|
735
791
|
blik_recurring_payments: nil,
|
|
736
792
|
boleto_payments: nil,
|
|
@@ -749,15 +805,19 @@ module Stripe
|
|
|
749
805
|
konbini_payments: nil,
|
|
750
806
|
kr_card_payments: nil,
|
|
751
807
|
link_payments: nil,
|
|
808
|
+
mb_way_payments: nil,
|
|
752
809
|
mobilepay_payments: nil,
|
|
753
810
|
multibanco_payments: nil,
|
|
754
811
|
mx_bank_transfer_payments: nil,
|
|
755
812
|
naver_pay_payments: nil,
|
|
813
|
+
nz_bank_account_becs_debit_payments: nil,
|
|
756
814
|
oxxo_payments: nil,
|
|
757
815
|
p24_payments: nil,
|
|
758
816
|
pay_by_bank_payments: nil,
|
|
759
817
|
payco_payments: nil,
|
|
760
818
|
paynow_payments: nil,
|
|
819
|
+
paypay_payments: nil,
|
|
820
|
+
pix_payments: nil,
|
|
761
821
|
promptpay_payments: nil,
|
|
762
822
|
revolut_pay_payments: nil,
|
|
763
823
|
samsung_pay_payments: nil,
|
|
@@ -780,6 +840,7 @@ module Stripe
|
|
|
780
840
|
@au_becs_debit_payments = au_becs_debit_payments
|
|
781
841
|
@bacs_debit_payments = bacs_debit_payments
|
|
782
842
|
@bancontact_payments = bancontact_payments
|
|
843
|
+
@billie_payments = billie_payments
|
|
783
844
|
@blik_payments = blik_payments
|
|
784
845
|
@blik_recurring_payments = blik_recurring_payments
|
|
785
846
|
@boleto_payments = boleto_payments
|
|
@@ -798,15 +859,19 @@ module Stripe
|
|
|
798
859
|
@konbini_payments = konbini_payments
|
|
799
860
|
@kr_card_payments = kr_card_payments
|
|
800
861
|
@link_payments = link_payments
|
|
862
|
+
@mb_way_payments = mb_way_payments
|
|
801
863
|
@mobilepay_payments = mobilepay_payments
|
|
802
864
|
@multibanco_payments = multibanco_payments
|
|
803
865
|
@mx_bank_transfer_payments = mx_bank_transfer_payments
|
|
804
866
|
@naver_pay_payments = naver_pay_payments
|
|
867
|
+
@nz_bank_account_becs_debit_payments = nz_bank_account_becs_debit_payments
|
|
805
868
|
@oxxo_payments = oxxo_payments
|
|
806
869
|
@p24_payments = p24_payments
|
|
807
870
|
@pay_by_bank_payments = pay_by_bank_payments
|
|
808
871
|
@payco_payments = payco_payments
|
|
809
872
|
@paynow_payments = paynow_payments
|
|
873
|
+
@paypay_payments = paypay_payments
|
|
874
|
+
@pix_payments = pix_payments
|
|
810
875
|
@promptpay_payments = promptpay_payments
|
|
811
876
|
@revolut_pay_payments = revolut_pay_payments
|
|
812
877
|
@samsung_pay_payments = samsung_pay_payments
|
|
@@ -868,14 +933,79 @@ module Stripe
|
|
|
868
933
|
@phone = phone
|
|
869
934
|
end
|
|
870
935
|
end
|
|
936
|
+
# Information provided to support the onboarding process for Konbini payments.
|
|
937
|
+
attr_accessor :additional_material
|
|
871
938
|
# Support for Konbini payments.
|
|
872
939
|
attr_accessor :support
|
|
873
940
|
|
|
874
|
-
def initialize(support: nil)
|
|
941
|
+
def initialize(additional_material: nil, support: nil)
|
|
942
|
+
@additional_material = additional_material
|
|
875
943
|
@support = support
|
|
876
944
|
end
|
|
877
945
|
end
|
|
878
946
|
|
|
947
|
+
class PaypayPayments < ::Stripe::RequestParams
|
|
948
|
+
class Site < ::Stripe::RequestParams
|
|
949
|
+
class Accessible < ::Stripe::RequestParams; end
|
|
950
|
+
|
|
951
|
+
class InDevelopment < ::Stripe::RequestParams
|
|
952
|
+
# The password needed to access the business's website.
|
|
953
|
+
attr_accessor :password
|
|
954
|
+
# The username needed to access the business's website.
|
|
955
|
+
attr_accessor :username
|
|
956
|
+
|
|
957
|
+
def initialize(password: nil, username: nil)
|
|
958
|
+
@password = password
|
|
959
|
+
@username = username
|
|
960
|
+
end
|
|
961
|
+
end
|
|
962
|
+
|
|
963
|
+
class Restricted < ::Stripe::RequestParams
|
|
964
|
+
# The file explaining the payment flow for the business.
|
|
965
|
+
attr_accessor :payment_flow_file
|
|
966
|
+
|
|
967
|
+
def initialize(payment_flow_file: nil)
|
|
968
|
+
@payment_flow_file = payment_flow_file
|
|
969
|
+
end
|
|
970
|
+
end
|
|
971
|
+
# Additional information about the business's website when it's accessible.
|
|
972
|
+
attr_accessor :accessible
|
|
973
|
+
# Additional information about the business's website when it's in development.
|
|
974
|
+
attr_accessor :in_development
|
|
975
|
+
# Additional information about the business's website when it has restricted access.
|
|
976
|
+
attr_accessor :restricted
|
|
977
|
+
# The status of the business's website.
|
|
978
|
+
attr_accessor :type
|
|
979
|
+
|
|
980
|
+
def initialize(accessible: nil, in_development: nil, restricted: nil, type: nil)
|
|
981
|
+
@accessible = accessible
|
|
982
|
+
@in_development = in_development
|
|
983
|
+
@restricted = restricted
|
|
984
|
+
@type = type
|
|
985
|
+
end
|
|
986
|
+
end
|
|
987
|
+
# Additional files supporting PayPay payments configuration.
|
|
988
|
+
attr_accessor :additional_files
|
|
989
|
+
# The type of goods sold by the merchant for PayPay payments.
|
|
990
|
+
attr_accessor :goods_type
|
|
991
|
+
# The business's website for PayPay payments.
|
|
992
|
+
attr_accessor :site
|
|
993
|
+
# URL to the Specified Commercial Transactions Act page for PayPay payments.
|
|
994
|
+
attr_accessor :specified_commercial_transactions_act_url
|
|
995
|
+
|
|
996
|
+
def initialize(
|
|
997
|
+
additional_files: nil,
|
|
998
|
+
goods_type: nil,
|
|
999
|
+
site: nil,
|
|
1000
|
+
specified_commercial_transactions_act_url: nil
|
|
1001
|
+
)
|
|
1002
|
+
@additional_files = additional_files
|
|
1003
|
+
@goods_type = goods_type
|
|
1004
|
+
@site = site
|
|
1005
|
+
@specified_commercial_transactions_act_url = specified_commercial_transactions_act_url
|
|
1006
|
+
end
|
|
1007
|
+
end
|
|
1008
|
+
|
|
879
1009
|
class ScriptStatementDescriptor < ::Stripe::RequestParams
|
|
880
1010
|
class Kana < ::Stripe::RequestParams
|
|
881
1011
|
# The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don’t set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation.
|
|
@@ -995,6 +1125,8 @@ module Stripe
|
|
|
995
1125
|
attr_accessor :konbini_payments
|
|
996
1126
|
# The Merchant Category Code (MCC) for the Merchant Configuration. MCCs classify businesses based on the goods or services they provide.
|
|
997
1127
|
attr_accessor :mcc
|
|
1128
|
+
# Settings for PayPay payments.
|
|
1129
|
+
attr_accessor :paypay_payments
|
|
998
1130
|
# Settings for the default text that appears on statements for language variations.
|
|
999
1131
|
attr_accessor :script_statement_descriptor
|
|
1000
1132
|
# Settings used for SEPA Direct Debit payments.
|
|
@@ -1011,6 +1143,7 @@ module Stripe
|
|
|
1011
1143
|
card_payments: nil,
|
|
1012
1144
|
konbini_payments: nil,
|
|
1013
1145
|
mcc: nil,
|
|
1146
|
+
paypay_payments: nil,
|
|
1014
1147
|
script_statement_descriptor: nil,
|
|
1015
1148
|
sepa_debit_payments: nil,
|
|
1016
1149
|
statement_descriptor: nil,
|
|
@@ -1022,6 +1155,7 @@ module Stripe
|
|
|
1022
1155
|
@card_payments = card_payments
|
|
1023
1156
|
@konbini_payments = konbini_payments
|
|
1024
1157
|
@mcc = mcc
|
|
1158
|
+
@paypay_payments = paypay_payments
|
|
1025
1159
|
@script_statement_descriptor = script_statement_descriptor
|
|
1026
1160
|
@sepa_debit_payments = sepa_debit_payments
|
|
1027
1161
|
@statement_descriptor = statement_descriptor
|
|
@@ -1204,9 +1338,9 @@ module Stripe
|
|
|
1204
1338
|
end
|
|
1205
1339
|
|
|
1206
1340
|
class Responsibilities < ::Stripe::RequestParams
|
|
1207
|
-
#
|
|
1341
|
+
# Controls who pays Stripe fees for direct charges and other pricing-control-eligible Stripe products. For new integrations, setting `losses_collector=application` requires `fees_collector=application`; legacy Custom and Express accounts can also use `application_custom` or `application_express`. For destination charges and separate charges and transfers, Stripe bills the platform regardless of this setting. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior), including application fees and pricing considerations.
|
|
1208
1342
|
attr_accessor :fees_collector
|
|
1209
|
-
#
|
|
1343
|
+
# Controls who is responsible for payment-related negative balances on this account. The platform remains liable for negative balances on its own account. To use Stripe negative balance liability, your integration must meet [Managed Risk requirements](https://docs.stripe.com/connect/risk-management/managed-risk).
|
|
1210
1344
|
attr_accessor :losses_collector
|
|
1211
1345
|
|
|
1212
1346
|
def initialize(fees_collector: nil, losses_collector: nil)
|
|
@@ -2338,7 +2472,7 @@ module Stripe
|
|
|
2338
2472
|
attr_accessor :contact_email
|
|
2339
2473
|
# The default contact phone for the Account.
|
|
2340
2474
|
attr_accessor :contact_phone
|
|
2341
|
-
#
|
|
2475
|
+
# Specifies the account's Stripe-hosted Dashboard access. Available values depend on the configurations enabled for the account. Learn more about [configuring Dashboard access](https://docs.stripe.com/connect/accounts-v2/connected-account-configuration#set-dashboard-access).
|
|
2342
2476
|
attr_accessor :dashboard
|
|
2343
2477
|
# Default values to be used on Account Configurations.
|
|
2344
2478
|
attr_accessor :defaults
|
|
@@ -6,6 +6,16 @@ module Stripe
|
|
|
6
6
|
module Core
|
|
7
7
|
class AccountLinkCreateParams < ::Stripe::RequestParams
|
|
8
8
|
class UseCase < ::Stripe::RequestParams
|
|
9
|
+
class AccountDashboard < ::Stripe::RequestParams
|
|
10
|
+
# The URL to redirect to if the Account Link has expired or has already
|
|
11
|
+
# been used. Authenticate the user before generating a replacement link.
|
|
12
|
+
attr_accessor :refresh_url
|
|
13
|
+
|
|
14
|
+
def initialize(refresh_url: nil)
|
|
15
|
+
@refresh_url = refresh_url
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
|
|
9
19
|
class AccountOnboarding < ::Stripe::RequestParams
|
|
10
20
|
class CollectionOptions < ::Stripe::RequestParams
|
|
11
21
|
# Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don’t specify collection_options, the default value is currently_due.
|
|
@@ -57,6 +67,8 @@ module Stripe
|
|
|
57
67
|
@return_url = return_url
|
|
58
68
|
end
|
|
59
69
|
end
|
|
70
|
+
# Hash containing configuration options for an Account Link that provides access to the account's Stripe-hosted Dashboard.
|
|
71
|
+
attr_accessor :account_dashboard
|
|
60
72
|
# Hash containing configuration options for an Account Link object that onboards a new account.
|
|
61
73
|
attr_accessor :account_onboarding
|
|
62
74
|
# Hash containing configuration options for an Account Link that updates an existing account.
|
|
@@ -64,7 +76,13 @@ module Stripe
|
|
|
64
76
|
# Open Enum. The type of Account Link the user is requesting.
|
|
65
77
|
attr_accessor :type
|
|
66
78
|
|
|
67
|
-
def initialize(
|
|
79
|
+
def initialize(
|
|
80
|
+
account_dashboard: nil,
|
|
81
|
+
account_onboarding: nil,
|
|
82
|
+
account_update: nil,
|
|
83
|
+
type: nil
|
|
84
|
+
)
|
|
85
|
+
@account_dashboard = account_dashboard
|
|
68
86
|
@account_onboarding = account_onboarding
|
|
69
87
|
@account_update = account_update
|
|
70
88
|
@type = type
|