stripe 15.3.0.pre.beta.2 → 15.4.0.pre.beta.1
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/API_VERSION +1 -0
- data/CHANGELOG.md +42 -16
- data/OPENAPI_VERSION +1 -1
- data/README.md +13 -49
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +2 -2
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +3 -3
- data/lib/stripe/events/v2_core_event_destination_ping_event.rb +1 -1
- data/lib/stripe/resources/account.rb +89 -5
- data/lib/stripe/resources/account_session.rb +93 -93
- data/lib/stripe/resources/billing_portal/session.rb +2 -2
- data/lib/stripe/resources/charge.rb +28 -15
- data/lib/stripe/resources/checkout/session.rb +53 -7
- data/lib/stripe/resources/confirmation_token.rb +19 -11
- data/lib/stripe/resources/credit_note.rb +9 -9
- data/lib/stripe/resources/customer_session.rb +2 -2
- data/lib/stripe/resources/dispute.rb +2 -0
- data/lib/stripe/resources/event.rb +1 -1
- data/lib/stripe/resources/identity/verification_session.rb +34 -0
- data/lib/stripe/resources/invoice.rb +21 -3
- data/lib/stripe/resources/invoice_item.rb +1 -4
- data/lib/stripe/resources/mandate.rb +3 -0
- data/lib/stripe/resources/order.rb +154 -2
- data/lib/stripe/resources/payment_attempt_record.rb +30 -17
- data/lib/stripe/resources/payment_intent.rb +331 -12
- data/lib/stripe/resources/payment_method.rb +17 -9
- data/lib/stripe/resources/payment_record.rb +30 -17
- data/lib/stripe/resources/quote.rb +15 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +8 -1
- data/lib/stripe/resources/setup_attempt.rb +1 -1
- data/lib/stripe/resources/setup_intent.rb +285 -3
- data/lib/stripe/resources/subscription.rb +27 -10
- data/lib/stripe/resources/subscription_schedule.rb +17 -1
- data/lib/stripe/resources/tax/registration.rb +20 -0
- data/lib/stripe/resources/terminal/configuration.rb +1 -0
- data/lib/stripe/resources/terminal/reader.rb +10 -10
- data/lib/stripe/resources/token.rb +1 -1
- data/lib/stripe/resources/treasury/financial_account.rb +5 -1
- data/lib/stripe/resources/v2/core/account.rb +9 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +3 -3
- data/lib/stripe/resources/v2/money_management/outbound_payment.rb +1 -1
- data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +1 -1
- data/lib/stripe/resources/v2/money_management/received_credit.rb +8 -2
- data/lib/stripe/services/account_service.rb +83 -5
- data/lib/stripe/services/account_session_service.rb +62 -62
- data/lib/stripe/services/billing_portal/session_service.rb +1 -1
- data/lib/stripe/services/checkout/session_service.rb +53 -7
- data/lib/stripe/services/credit_note_preview_lines_service.rb +3 -3
- data/lib/stripe/services/credit_note_service.rb +6 -6
- data/lib/stripe/services/customer_session_service.rb +1 -1
- data/lib/stripe/services/identity/verification_session_service.rb +16 -0
- data/lib/stripe/services/invoice_service.rb +21 -3
- data/lib/stripe/services/order_service.rb +154 -2
- data/lib/stripe/services/payment_intent_service.rb +315 -9
- data/lib/stripe/services/payment_method_service.rb +5 -0
- data/lib/stripe/services/quote_service.rb +9 -0
- data/lib/stripe/services/setup_intent_service.rb +275 -2
- data/lib/stripe/services/subscription_schedule_service.rb +9 -0
- data/lib/stripe/services/subscription_service.rb +21 -4
- data/lib/stripe/services/tax/registration_service.rb +13 -0
- data/lib/stripe/services/terminal/reader_service.rb +4 -4
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +6 -1
- data/lib/stripe/services/token_service.rb +1 -1
- data/lib/stripe/services/treasury/financial_account_service.rb +5 -1
- data/lib/stripe/services/v2/billing_service.rb +2 -2
- data/lib/stripe/services/v2/core/account_service.rb +47 -15
- data/lib/stripe/services/v2/core/accounts/person_service.rb +9 -10
- data/lib/stripe/services/v2/core/event_destination_service.rb +16 -16
- data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +4 -5
- data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +2 -2
- data/lib/stripe/services/v2/core_service.rb +2 -2
- data/lib/stripe/services/v2/money_management/financial_address_service.rb +13 -12
- data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +36 -36
- data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +44 -45
- data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +10 -10
- data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +41 -41
- data/lib/stripe/services/v2/money_management/payout_method_service.rb +1 -2
- data/lib/stripe/services/v2/money_management_service.rb +4 -4
- data/lib/stripe/services/v2/payments/off_session_payment_service.rb +9 -10
- data/lib/stripe/services/v2_services.rb +3 -3
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe/webhook.rb +1 -1
- data/rbi/stripe.rbi +14445 -12226
- metadata +3 -2
@@ -4,6 +4,7 @@
|
|
4
4
|
module Stripe
|
5
5
|
module Terminal
|
6
6
|
# A Configurations object represents how features should be configured for terminal readers.
|
7
|
+
# For information about how to use it, see the [Terminal configurations documentation](https://docs.stripe.com/terminal/fleet/configurations-overview).
|
7
8
|
class Configuration < APIResource
|
8
9
|
extend Stripe::APIOperations::Create
|
9
10
|
include Stripe::APIOperations::Delete
|
@@ -118,7 +118,7 @@ module Stripe
|
|
118
118
|
# Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
|
119
119
|
attr_reader :amount_eligible
|
120
120
|
end
|
121
|
-
# Enable customer
|
121
|
+
# Enable customer-initiated cancellation when processing this payment.
|
122
122
|
attr_reader :enable_customer_cancellation
|
123
123
|
# Override showing a tipping selection screen on this transaction.
|
124
124
|
attr_reader :skip_tipping
|
@@ -141,7 +141,7 @@ module Stripe
|
|
141
141
|
|
142
142
|
class ConfirmPaymentIntent < Stripe::StripeObject
|
143
143
|
class ConfirmConfig < Stripe::StripeObject
|
144
|
-
# If the customer
|
144
|
+
# If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion.
|
145
145
|
attr_reader :return_url
|
146
146
|
end
|
147
147
|
# Account the payment intent belongs to.
|
@@ -158,9 +158,9 @@ module Stripe
|
|
158
158
|
# Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
|
159
159
|
attr_reader :amount_eligible
|
160
160
|
end
|
161
|
-
# Enable customer
|
161
|
+
# Enable customer-initiated cancellation when processing this payment.
|
162
162
|
attr_reader :enable_customer_cancellation
|
163
|
-
# If the customer
|
163
|
+
# If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion.
|
164
164
|
attr_reader :return_url
|
165
165
|
# Override showing a tipping selection screen on this transaction.
|
166
166
|
attr_reader :skip_tipping
|
@@ -177,7 +177,7 @@ module Stripe
|
|
177
177
|
|
178
178
|
class ProcessSetupIntent < Stripe::StripeObject
|
179
179
|
class ProcessConfig < Stripe::StripeObject
|
180
|
-
# Enable customer
|
180
|
+
# Enable customer-initiated cancellation when processing this SetupIntent.
|
181
181
|
attr_reader :enable_customer_cancellation
|
182
182
|
end
|
183
183
|
# ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
|
@@ -190,7 +190,7 @@ module Stripe
|
|
190
190
|
|
191
191
|
class RefundPayment < Stripe::StripeObject
|
192
192
|
class RefundPaymentConfig < Stripe::StripeObject
|
193
|
-
# Enable customer
|
193
|
+
# Enable customer-initiated cancellation when refunding this payment.
|
194
194
|
attr_reader :enable_customer_cancellation
|
195
195
|
end
|
196
196
|
# Account the payment intent belongs to.
|
@@ -476,11 +476,11 @@ module Stripe
|
|
476
476
|
@tipping = tipping
|
477
477
|
end
|
478
478
|
end
|
479
|
-
# Configuration overrides
|
479
|
+
# Configuration overrides.
|
480
480
|
attr_accessor :collect_config
|
481
481
|
# Specifies which fields in the response should be expanded.
|
482
482
|
attr_accessor :expand
|
483
|
-
# PaymentIntent ID
|
483
|
+
# PaymentIntent ID.
|
484
484
|
attr_accessor :payment_intent
|
485
485
|
|
486
486
|
def initialize(collect_config: nil, expand: nil, payment_intent: nil)
|
@@ -499,11 +499,11 @@ module Stripe
|
|
499
499
|
@return_url = return_url
|
500
500
|
end
|
501
501
|
end
|
502
|
-
# Configuration overrides
|
502
|
+
# Configuration overrides.
|
503
503
|
attr_accessor :confirm_config
|
504
504
|
# Specifies which fields in the response should be expanded.
|
505
505
|
attr_accessor :expand
|
506
|
-
# PaymentIntent ID
|
506
|
+
# PaymentIntent ID.
|
507
507
|
attr_accessor :payment_intent
|
508
508
|
|
509
509
|
def initialize(confirm_config: nil, expand: nil, payment_intent: nil)
|
@@ -230,7 +230,7 @@ module Stripe
|
|
230
230
|
attr_accessor :ownership_exemption_reason
|
231
231
|
# The company's phone number (used for verification).
|
232
232
|
attr_accessor :phone
|
233
|
-
#
|
233
|
+
# When the business was incorporated or registered.
|
234
234
|
attr_accessor :registration_date
|
235
235
|
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
|
236
236
|
attr_accessor :registration_number
|
@@ -89,19 +89,23 @@ module Stripe
|
|
89
89
|
attr_accessor :limit
|
90
90
|
# An object ID cursor for use in pagination.
|
91
91
|
attr_accessor :starting_after
|
92
|
+
# Only return FinancialAccounts that have the given status: `open` or `closed`
|
93
|
+
attr_accessor :status
|
92
94
|
|
93
95
|
def initialize(
|
94
96
|
created: nil,
|
95
97
|
ending_before: nil,
|
96
98
|
expand: nil,
|
97
99
|
limit: nil,
|
98
|
-
starting_after: nil
|
100
|
+
starting_after: nil,
|
101
|
+
status: nil
|
99
102
|
)
|
100
103
|
@created = created
|
101
104
|
@ending_before = ending_before
|
102
105
|
@expand = expand
|
103
106
|
@limit = limit
|
104
107
|
@starting_after = starting_after
|
108
|
+
@status = status
|
105
109
|
end
|
106
110
|
end
|
107
111
|
|
@@ -1236,6 +1236,13 @@ module Stripe
|
|
1236
1236
|
attr_reader :type
|
1237
1237
|
end
|
1238
1238
|
|
1239
|
+
class ProofOfAddress < Stripe::StripeObject
|
1240
|
+
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
1241
|
+
attr_reader :files
|
1242
|
+
# The format of the document. Currently supports `files` only.
|
1243
|
+
attr_reader :type
|
1244
|
+
end
|
1245
|
+
|
1239
1246
|
class ProofOfRegistration < Stripe::StripeObject
|
1240
1247
|
# One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`.
|
1241
1248
|
attr_reader :files
|
@@ -1263,6 +1270,8 @@ module Stripe
|
|
1263
1270
|
attr_reader :company_tax_id_verification
|
1264
1271
|
# A document verifying the business.
|
1265
1272
|
attr_reader :primary_verification
|
1273
|
+
# One or more documents that demonstrate proof of address.
|
1274
|
+
attr_reader :proof_of_address
|
1266
1275
|
# One or more documents showing the company’s proof of registration with the national business registry.
|
1267
1276
|
attr_reader :proof_of_registration
|
1268
1277
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
@@ -14,7 +14,7 @@ module Stripe
|
|
14
14
|
class Balance < Stripe::StripeObject
|
15
15
|
# Balance that can be used for money movement.
|
16
16
|
attr_reader :available
|
17
|
-
# Balance of inbound funds that will later transition to the `
|
17
|
+
# Balance of inbound funds that will later transition to the `available` balance.
|
18
18
|
attr_reader :inbound_pending
|
19
19
|
# Balance of funds that are being used for a pending outbound money movement.
|
20
20
|
attr_reader :outbound_pending
|
@@ -35,10 +35,10 @@ module Stripe
|
|
35
35
|
attr_reader :country
|
36
36
|
# Time at which the object was created.
|
37
37
|
attr_reader :created
|
38
|
-
# Attribute for field description
|
39
|
-
attr_reader :description
|
40
38
|
# Unique identifier for the object.
|
41
39
|
attr_reader :id
|
40
|
+
# Metadata associated with the FinancialAccount
|
41
|
+
attr_reader :metadata
|
42
42
|
# String representing the object's type. Objects of the same type share the same value of the object field.
|
43
43
|
attr_reader :object
|
44
44
|
# If this is a `other` FinancialAccount, this hash indicates what the actual type is. Upgrade your API version to see it reflected in `type`.
|
@@ -106,7 +106,7 @@ module Stripe
|
|
106
106
|
attr_reader :receipt_url
|
107
107
|
# Details about the OutboundPayment notification settings for recipient.
|
108
108
|
attr_reader :recipient_notification
|
109
|
-
# The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer).
|
109
|
+
# The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
|
110
110
|
attr_reader :statement_descriptor
|
111
111
|
# Closed Enum. Current status of the OutboundPayment: `processing`, `failed`, `posted`, `returned`, `canceled`.
|
112
112
|
# An OutboundPayment is `processing` if it has been created and is processing.
|
@@ -94,7 +94,7 @@ module Stripe
|
|
94
94
|
attr_reader :object
|
95
95
|
# A link to the Stripe-hosted receipt for this OutboundTransfer. The receipt link remains active for 60 days from the OutboundTransfer creation date. After this period, the link will expire and the receipt url value will be null.
|
96
96
|
attr_reader :receipt_url
|
97
|
-
# The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer).
|
97
|
+
# The description that appears on the receiving end for an OutboundTransfer (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings.
|
98
98
|
attr_reader :statement_descriptor
|
99
99
|
# Closed Enum. Current status of the OutboundTransfer: `processing`, `failed`, `posted`, `returned`, `canceled`.
|
100
100
|
# An OutboundTransfer is `processing` if it has been created and is processing.
|
@@ -40,10 +40,16 @@ module Stripe
|
|
40
40
|
end
|
41
41
|
|
42
42
|
class BalanceTransfer < Stripe::StripeObject
|
43
|
-
# The ID of the
|
44
|
-
attr_reader :
|
43
|
+
# The ID of the account that owns the source object originated the ReceivedCredit.
|
44
|
+
attr_reader :from_account
|
45
45
|
# Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit.
|
46
46
|
attr_reader :type
|
47
|
+
# The ID of the outbound payment object that originated the ReceivedCredit.
|
48
|
+
attr_reader :outbound_payment
|
49
|
+
# The ID of the outbound transfer object that originated the ReceivedCredit.
|
50
|
+
attr_reader :outbound_transfer
|
51
|
+
# The ID of the payout object that originated the ReceivedCredit.
|
52
|
+
attr_reader :payout_v1
|
47
53
|
end
|
48
54
|
|
49
55
|
class BankTransfer < Stripe::StripeObject
|
@@ -326,6 +326,15 @@ module Stripe
|
|
326
326
|
end
|
327
327
|
end
|
328
328
|
|
329
|
+
class CryptoPayments < Stripe::RequestParams
|
330
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
331
|
+
attr_accessor :requested
|
332
|
+
|
333
|
+
def initialize(requested: nil)
|
334
|
+
@requested = requested
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
329
338
|
class EpsPayments < Stripe::RequestParams
|
330
339
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
331
340
|
attr_accessor :requested
|
@@ -854,6 +863,8 @@ module Stripe
|
|
854
863
|
attr_accessor :cartes_bancaires_payments
|
855
864
|
# The cashapp_payments capability.
|
856
865
|
attr_accessor :cashapp_payments
|
866
|
+
# The crypto_payments capability.
|
867
|
+
attr_accessor :crypto_payments
|
857
868
|
# The eps_payments capability.
|
858
869
|
attr_accessor :eps_payments
|
859
870
|
# The fpx_payments capability.
|
@@ -983,6 +994,7 @@ module Stripe
|
|
983
994
|
card_payments: nil,
|
984
995
|
cartes_bancaires_payments: nil,
|
985
996
|
cashapp_payments: nil,
|
997
|
+
crypto_payments: nil,
|
986
998
|
eps_payments: nil,
|
987
999
|
fpx_payments: nil,
|
988
1000
|
gb_bank_transfer_payments: nil,
|
@@ -1056,6 +1068,7 @@ module Stripe
|
|
1056
1068
|
@card_payments = card_payments
|
1057
1069
|
@cartes_bancaires_payments = cartes_bancaires_payments
|
1058
1070
|
@cashapp_payments = cashapp_payments
|
1071
|
+
@crypto_payments = crypto_payments
|
1059
1072
|
@eps_payments = eps_payments
|
1060
1073
|
@fpx_payments = fpx_payments
|
1061
1074
|
@gb_bank_transfer_payments = gb_bank_transfer_payments
|
@@ -1511,6 +1524,15 @@ module Stripe
|
|
1511
1524
|
end
|
1512
1525
|
end
|
1513
1526
|
|
1527
|
+
class ProofOfAddress < Stripe::RequestParams
|
1528
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1529
|
+
attr_accessor :files
|
1530
|
+
|
1531
|
+
def initialize(files: nil)
|
1532
|
+
@files = files
|
1533
|
+
end
|
1534
|
+
end
|
1535
|
+
|
1514
1536
|
class ProofOfRegistration < Stripe::RequestParams
|
1515
1537
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
1516
1538
|
attr_accessor :files
|
@@ -1540,6 +1562,8 @@ module Stripe
|
|
1540
1562
|
attr_accessor :company_registration_verification
|
1541
1563
|
# One or more documents that demonstrate proof of a company's tax ID.
|
1542
1564
|
attr_accessor :company_tax_id_verification
|
1565
|
+
# One or more documents that demonstrate proof of address.
|
1566
|
+
attr_accessor :proof_of_address
|
1543
1567
|
# One or more documents showing the company’s proof of registration with the national business registry.
|
1544
1568
|
attr_accessor :proof_of_registration
|
1545
1569
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
@@ -1552,6 +1576,7 @@ module Stripe
|
|
1552
1576
|
company_ministerial_decree: nil,
|
1553
1577
|
company_registration_verification: nil,
|
1554
1578
|
company_tax_id_verification: nil,
|
1579
|
+
proof_of_address: nil,
|
1555
1580
|
proof_of_registration: nil,
|
1556
1581
|
proof_of_ultimate_beneficial_ownership: nil
|
1557
1582
|
)
|
@@ -1561,6 +1586,7 @@ module Stripe
|
|
1561
1586
|
@company_ministerial_decree = company_ministerial_decree
|
1562
1587
|
@company_registration_verification = company_registration_verification
|
1563
1588
|
@company_tax_id_verification = company_tax_id_verification
|
1589
|
+
@proof_of_address = proof_of_address
|
1564
1590
|
@proof_of_registration = proof_of_registration
|
1565
1591
|
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
1566
1592
|
end
|
@@ -2061,14 +2087,27 @@ module Stripe
|
|
2061
2087
|
attr_accessor :interval
|
2062
2088
|
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
2063
2089
|
attr_accessor :monthly_anchor
|
2090
|
+
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
|
2091
|
+
attr_accessor :monthly_payout_days
|
2064
2092
|
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
|
2065
2093
|
attr_accessor :weekly_anchor
|
2066
|
-
|
2067
|
-
|
2094
|
+
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
|
2095
|
+
attr_accessor :weekly_payout_days
|
2096
|
+
|
2097
|
+
def initialize(
|
2098
|
+
delay_days: nil,
|
2099
|
+
interval: nil,
|
2100
|
+
monthly_anchor: nil,
|
2101
|
+
monthly_payout_days: nil,
|
2102
|
+
weekly_anchor: nil,
|
2103
|
+
weekly_payout_days: nil
|
2104
|
+
)
|
2068
2105
|
@delay_days = delay_days
|
2069
2106
|
@interval = interval
|
2070
2107
|
@monthly_anchor = monthly_anchor
|
2108
|
+
@monthly_payout_days = monthly_payout_days
|
2071
2109
|
@weekly_anchor = weekly_anchor
|
2110
|
+
@weekly_payout_days = weekly_payout_days
|
2072
2111
|
end
|
2073
2112
|
end
|
2074
2113
|
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|
@@ -2609,6 +2648,15 @@ module Stripe
|
|
2609
2648
|
end
|
2610
2649
|
end
|
2611
2650
|
|
2651
|
+
class CryptoPayments < Stripe::RequestParams
|
2652
|
+
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2653
|
+
attr_accessor :requested
|
2654
|
+
|
2655
|
+
def initialize(requested: nil)
|
2656
|
+
@requested = requested
|
2657
|
+
end
|
2658
|
+
end
|
2659
|
+
|
2612
2660
|
class EpsPayments < Stripe::RequestParams
|
2613
2661
|
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
2614
2662
|
attr_accessor :requested
|
@@ -3137,6 +3185,8 @@ module Stripe
|
|
3137
3185
|
attr_accessor :cartes_bancaires_payments
|
3138
3186
|
# The cashapp_payments capability.
|
3139
3187
|
attr_accessor :cashapp_payments
|
3188
|
+
# The crypto_payments capability.
|
3189
|
+
attr_accessor :crypto_payments
|
3140
3190
|
# The eps_payments capability.
|
3141
3191
|
attr_accessor :eps_payments
|
3142
3192
|
# The fpx_payments capability.
|
@@ -3266,6 +3316,7 @@ module Stripe
|
|
3266
3316
|
card_payments: nil,
|
3267
3317
|
cartes_bancaires_payments: nil,
|
3268
3318
|
cashapp_payments: nil,
|
3319
|
+
crypto_payments: nil,
|
3269
3320
|
eps_payments: nil,
|
3270
3321
|
fpx_payments: nil,
|
3271
3322
|
gb_bank_transfer_payments: nil,
|
@@ -3339,6 +3390,7 @@ module Stripe
|
|
3339
3390
|
@card_payments = card_payments
|
3340
3391
|
@cartes_bancaires_payments = cartes_bancaires_payments
|
3341
3392
|
@cashapp_payments = cashapp_payments
|
3393
|
+
@crypto_payments = crypto_payments
|
3342
3394
|
@eps_payments = eps_payments
|
3343
3395
|
@fpx_payments = fpx_payments
|
3344
3396
|
@gb_bank_transfer_payments = gb_bank_transfer_payments
|
@@ -3675,7 +3727,7 @@ module Stripe
|
|
3675
3727
|
attr_accessor :ownership_exemption_reason
|
3676
3728
|
# The company's phone number (used for verification).
|
3677
3729
|
attr_accessor :phone
|
3678
|
-
#
|
3730
|
+
# When the business was incorporated or registered.
|
3679
3731
|
attr_accessor :registration_date
|
3680
3732
|
# The identification number given to a company when it is registered or incorporated, if distinct from the identification number used for filing taxes. (Examples are the CIN for companies and LLP IN for partnerships in India, and the Company Registration Number in Hong Kong).
|
3681
3733
|
attr_accessor :registration_number
|
@@ -3875,6 +3927,15 @@ module Stripe
|
|
3875
3927
|
end
|
3876
3928
|
end
|
3877
3929
|
|
3930
|
+
class ProofOfAddress < Stripe::RequestParams
|
3931
|
+
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3932
|
+
attr_accessor :files
|
3933
|
+
|
3934
|
+
def initialize(files: nil)
|
3935
|
+
@files = files
|
3936
|
+
end
|
3937
|
+
end
|
3938
|
+
|
3878
3939
|
class ProofOfRegistration < Stripe::RequestParams
|
3879
3940
|
# One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
|
3880
3941
|
attr_accessor :files
|
@@ -3904,6 +3965,8 @@ module Stripe
|
|
3904
3965
|
attr_accessor :company_registration_verification
|
3905
3966
|
# One or more documents that demonstrate proof of a company's tax ID.
|
3906
3967
|
attr_accessor :company_tax_id_verification
|
3968
|
+
# One or more documents that demonstrate proof of address.
|
3969
|
+
attr_accessor :proof_of_address
|
3907
3970
|
# One or more documents showing the company’s proof of registration with the national business registry.
|
3908
3971
|
attr_accessor :proof_of_registration
|
3909
3972
|
# One or more documents that demonstrate proof of ultimate beneficial ownership.
|
@@ -3916,6 +3979,7 @@ module Stripe
|
|
3916
3979
|
company_ministerial_decree: nil,
|
3917
3980
|
company_registration_verification: nil,
|
3918
3981
|
company_tax_id_verification: nil,
|
3982
|
+
proof_of_address: nil,
|
3919
3983
|
proof_of_registration: nil,
|
3920
3984
|
proof_of_ultimate_beneficial_ownership: nil
|
3921
3985
|
)
|
@@ -3925,6 +3989,7 @@ module Stripe
|
|
3925
3989
|
@company_ministerial_decree = company_ministerial_decree
|
3926
3990
|
@company_registration_verification = company_registration_verification
|
3927
3991
|
@company_tax_id_verification = company_tax_id_verification
|
3992
|
+
@proof_of_address = proof_of_address
|
3928
3993
|
@proof_of_registration = proof_of_registration
|
3929
3994
|
@proof_of_ultimate_beneficial_ownership = proof_of_ultimate_beneficial_ownership
|
3930
3995
|
end
|
@@ -4422,14 +4487,27 @@ module Stripe
|
|
4422
4487
|
attr_accessor :interval
|
4423
4488
|
# The day of the month when available funds are paid out, specified as a number between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly`.
|
4424
4489
|
attr_accessor :monthly_anchor
|
4490
|
+
# The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
|
4491
|
+
attr_accessor :monthly_payout_days
|
4425
4492
|
# The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
|
4426
4493
|
attr_accessor :weekly_anchor
|
4427
|
-
|
4428
|
-
|
4494
|
+
# The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
|
4495
|
+
attr_accessor :weekly_payout_days
|
4496
|
+
|
4497
|
+
def initialize(
|
4498
|
+
delay_days: nil,
|
4499
|
+
interval: nil,
|
4500
|
+
monthly_anchor: nil,
|
4501
|
+
monthly_payout_days: nil,
|
4502
|
+
weekly_anchor: nil,
|
4503
|
+
weekly_payout_days: nil
|
4504
|
+
)
|
4429
4505
|
@delay_days = delay_days
|
4430
4506
|
@interval = interval
|
4431
4507
|
@monthly_anchor = monthly_anchor
|
4508
|
+
@monthly_payout_days = monthly_payout_days
|
4432
4509
|
@weekly_anchor = weekly_anchor
|
4510
|
+
@weekly_payout_days = weekly_payout_days
|
4433
4511
|
end
|
4434
4512
|
end
|
4435
4513
|
# A Boolean indicating whether Stripe should try to reclaim negative balances from an attached bank account. For details, see [Understanding Connect Account Balances](/connect/account-balances).
|