stripe 15.1.0.pre.beta.1 → 15.1.0.pre.beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_operations/nested_resource.rb +35 -35
- data/lib/stripe/api_requestor.rb +1 -1
- data/lib/stripe/connection_manager.rb +1 -3
- data/lib/stripe/oauth.rb +1 -1
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/resources/account.rb +51 -2
- data/lib/stripe/resources/balance_settings.rb +5 -1
- data/lib/stripe/resources/capital/financing_offer.rb +4 -4
- data/lib/stripe/resources/capital/financing_summary.rb +6 -6
- data/lib/stripe/resources/charge.rb +18 -0
- data/lib/stripe/resources/checkout/session.rb +74 -3
- data/lib/stripe/resources/confirmation_token.rb +6 -1
- data/lib/stripe/resources/coupon.rb +30 -1
- data/lib/stripe/resources/funding_instructions.rb +1 -1
- data/lib/stripe/resources/fx_quote.rb +184 -0
- data/lib/stripe/resources/invoice.rb +0 -52
- data/lib/stripe/resources/payment_intent.rb +87 -3
- data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +65 -0
- data/lib/stripe/resources/payment_method.rb +10 -2
- data/lib/stripe/resources/payment_method_configuration.rb +59 -0
- data/lib/stripe/resources/person.rb +25 -1
- data/lib/stripe/resources/privacy/redaction_job.rb +3 -0
- data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +0 -29
- data/lib/stripe/resources/refund.rb +2 -0
- data/lib/stripe/resources/setup_intent.rb +12 -3
- data/lib/stripe/resources/source.rb +1 -1
- data/lib/stripe/resources/tax/registration.rb +160 -0
- data/lib/stripe/resources/token.rb +61 -0
- data/lib/stripe/resources/transfer.rb +6 -0
- data/lib/stripe/resources/treasury/outbound_payment.rb +4 -1
- data/lib/stripe/resources.rb +2 -0
- data/lib/stripe/services/account_person_service.rb +84 -0
- data/lib/stripe/services/account_service.rb +39 -1
- data/lib/stripe/services/application_fee_service.rb +1 -1
- data/lib/stripe/services/apps_service.rb +1 -1
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal_service.rb +1 -1
- data/lib/stripe/services/billing_service.rb +1 -1
- data/lib/stripe/services/capital_service.rb +1 -1
- data/lib/stripe/services/charge_service.rb +16 -0
- data/lib/stripe/services/checkout/session_service.rb +75 -4
- data/lib/stripe/services/checkout_service.rb +1 -1
- data/lib/stripe/services/climate_service.rb +1 -1
- data/lib/stripe/services/coupon_service.rb +17 -1
- data/lib/stripe/services/credit_note_service.rb +1 -1
- data/lib/stripe/services/customer_service.rb +1 -1
- data/lib/stripe/services/entitlements_service.rb +1 -1
- data/lib/stripe/services/financial_connections/account_service.rb +1 -1
- data/lib/stripe/services/financial_connections_service.rb +1 -1
- data/lib/stripe/services/forwarding_service.rb +1 -1
- data/lib/stripe/services/fx_quote_service.rb +123 -0
- data/lib/stripe/services/gift_cards_service.rb +1 -1
- data/lib/stripe/services/identity_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +2 -37
- data/lib/stripe/services/issuing_service.rb +1 -1
- data/lib/stripe/services/order_service.rb +1 -1
- data/lib/stripe/services/{invoice_payment_service.rb → payment_intent_amount_details_line_item_service.rb} +4 -24
- data/lib/stripe/services/payment_intent_service.rb +63 -3
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_method_configuration_service.rb +42 -0
- data/lib/stripe/services/payment_method_service.rb +8 -2
- data/lib/stripe/services/privacy/redaction_job_service.rb +1 -1
- data/lib/stripe/services/privacy_service.rb +1 -1
- data/lib/stripe/services/product_service.rb +1 -1
- data/lib/stripe/services/quote_service.rb +1 -1
- data/lib/stripe/services/radar_service.rb +1 -1
- data/lib/stripe/services/reporting_service.rb +1 -1
- data/lib/stripe/services/setup_intent_service.rb +12 -3
- data/lib/stripe/services/sigma_service.rb +1 -1
- data/lib/stripe/services/source_service.rb +1 -1
- data/lib/stripe/services/tax/calculation_service.rb +1 -1
- data/lib/stripe/services/tax/registration_service.rb +104 -0
- data/lib/stripe/services/tax/transaction_service.rb +1 -1
- data/lib/stripe/services/tax_service.rb +1 -1
- data/lib/stripe/services/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/confirmation_token_service.rb +4 -1
- data/lib/stripe/services/test_helpers/issuing_service.rb +1 -1
- data/lib/stripe/services/test_helpers/terminal_service.rb +1 -1
- data/lib/stripe/services/test_helpers/treasury_service.rb +1 -1
- data/lib/stripe/services/test_helpers_service.rb +1 -1
- data/lib/stripe/services/token_service.rb +61 -0
- data/lib/stripe/services/transfer_service.rb +5 -1
- data/lib/stripe/services/treasury/financial_account_service.rb +1 -1
- data/lib/stripe/services/treasury/outbound_payment_service.rb +4 -1
- data/lib/stripe/services/treasury_service.rb +1 -1
- data/lib/stripe/services/v1_services.rb +3 -2
- data/lib/stripe/services/v2/billing_service.rb +1 -1
- data/lib/stripe/services/v2/core/account_service.rb +1 -1
- data/lib/stripe/services/v2/core/vault_service.rb +1 -1
- data/lib/stripe/services/v2/core_service.rb +1 -1
- data/lib/stripe/services/v2/money_management_service.rb +1 -1
- data/lib/stripe/services/v2/test_helper_service.rb +1 -1
- data/lib/stripe/services/v2_services.rb +1 -1
- data/lib/stripe/services.rb +2 -1
- data/lib/stripe/version.rb +1 -1
- data/lib/stripe.rb +0 -2
- data/rbi/stripe.rbi +1675 -239
- metadata +6 -4
- data/lib/stripe/request_signing_authenticator.rb +0 -79
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fc9731736cbcaa7fc5eb7af91f4d006c1a582578ea8214ab6f4f6931a7abae7
|
4
|
+
data.tar.gz: 854bd0b37606972d4e72775e5b47cc2f9aa6a5506f0cf0d39c4dcccea1c5e68e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9dc3bce5a79ba09dd048d080bfdec50a39072d7060eccd8ab7dcbf3bc9e7ba04dfa1298c81b0e7172c30298122dac538dfceafa20ab53fbca092f7365c22414
|
7
|
+
data.tar.gz: c696fd9853059c7284c964b15338252f4b2f0fa8639bc74d5a467d4690af51114896eac855ef81a728e658de610b29f68c403550fb3e799b00cb3c333eb8bbf4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,27 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 15.1.0-beta.2 - 2025-04-17
|
4
|
+
* [#1578](https://github.com/stripe/stripe-ruby/pull/1578) Update generated code for beta
|
5
|
+
* Add support for new resources `FxQuote` and `PaymentIntentAmountDetailsLineItem`
|
6
|
+
* Add support for `create`, `list`, and `retrieve` methods on resource `FxQuote`
|
7
|
+
* Remove support for `attach_payment_intent` method on resource `Invoice`
|
8
|
+
* Add support for `registration_date` on `Account::Company`, `Account::CreateParams::Company`, `Account::UpdateParams::Company`, and `Token::CreateParams::Account::Company`
|
9
|
+
* Add support for `customer_reference` and `order_reference` on `Charge::CaptureParams::PaymentDetail`, `Charge::UpdateParams::PaymentDetail`, `PaymentIntent::CaptureParams::PaymentDetail`, `PaymentIntent::ConfirmParams::PaymentDetail`, `PaymentIntent::CreateParams::PaymentDetail`, `PaymentIntent::PaymentDetail`, and `PaymentIntent::UpdateParams::PaymentDetail`
|
10
|
+
* Add support for `tax_id` on `Charge::BillingDetail`, `ConfirmationToken::CreateParams::PaymentMethodDatum::BillingDetail`, `ConfirmationToken::PaymentMethodPreview::BillingDetail`, `PaymentIntent::ConfirmParams::PaymentMethodDatum::BillingDetail`, `PaymentIntent::CreateParams::PaymentMethodDatum::BillingDetail`, `PaymentIntent::UpdateParams::PaymentMethodDatum::BillingDetail`, `PaymentMethod::BillingDetail`, `PaymentMethod::CreateParams::BillingDetail`, `PaymentMethod::UpdateParams::BillingDetail`, `SetupIntent::ConfirmParams::PaymentMethodDatum::BillingDetail`, `SetupIntent::CreateParams::PaymentMethodDatum::BillingDetail`, `SetupIntent::UpdateParams::PaymentMethodDatum::BillingDetail`, and `TreasuryOutboundPayment::CreateParams::DestinationPaymentMethodDatum::BillingDetail`
|
11
|
+
* Add support for `price_data` on `CheckoutSession::UpdateParams::LineItem`
|
12
|
+
* Change type of `CheckoutSession::UpdateParams::LineItem.quantity` from `longInteger` to `emptyable(longInteger)`
|
13
|
+
* Add support for `script` on `Coupon::CreateParams` and `Coupon`
|
14
|
+
* Add support for `type` on `Coupon`
|
15
|
+
* Add support for `fx_quote` on `PaymentIntent::ConfirmParams`, `PaymentIntent::CreateParams`, `PaymentIntent::UpdateParams`, `PaymentIntent`, `Transfer::CreateParams`, and `Transfer`
|
16
|
+
* Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent::AmountDetail`
|
17
|
+
* Add support for `pix` on `PaymentMethodConfiguration::CreateParams`, `PaymentMethodConfiguration::UpdateParams`, and `PaymentMethodConfiguration`
|
18
|
+
* Add support for `us_cfpb_data` on `Person` and `Token::CreateParams::Person`
|
19
|
+
* Add support for `pending_reason` on `Refund`
|
20
|
+
* Add support for `aw`, `az`, `bd`, `bj`, `et`, `kg`, `la`, and `ph` on `TaxRegistration::CountryOption` and `TaxRegistration::CreateParams::CountryOption`
|
21
|
+
* [#1588](https://github.com/stripe/stripe-ruby/pull/1588) Removed Request signing authenticator
|
22
|
+
- Removed `RequestSigningAuthenticator` class as request signing is not supported by Stripe APIs yet. This allows us to remove the dependency on base64
|
23
|
+
* [#1582](https://github.com/stripe/stripe-ruby/pull/1582) Prathmesh/merge ruby beta
|
24
|
+
|
3
25
|
## 15.1.0-beta.1 - 2025-04-10
|
4
26
|
* [#1569](https://github.com/stripe/stripe-ruby/pull/1569) Update generated code for beta
|
5
27
|
|
data/Gemfile
CHANGED
@@ -24,7 +24,7 @@ group :development do
|
|
24
24
|
# up-to-date, but it's not the end of the world if it's not.
|
25
25
|
#
|
26
26
|
# The latest version of rubocop is only compatible with Ruby 2.7+
|
27
|
-
gem "rubocop", "1.
|
27
|
+
gem "rubocop", "1.75.2" if RUBY_VERSION >= "2.7"
|
28
28
|
|
29
29
|
gem "sorbet"
|
30
30
|
gem "tapioca"
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v1697
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
15.1.0-beta.
|
1
|
+
15.1.0-beta.2
|
@@ -45,53 +45,53 @@ module Stripe
|
|
45
45
|
when :create
|
46
46
|
define_singleton_method(:"create_#{resource}") \
|
47
47
|
do |id, params = {}, opts = {}|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
48
|
+
request_stripe_object(
|
49
|
+
method: :post,
|
50
|
+
path: send(resource_url_method, id),
|
51
|
+
params: params,
|
52
|
+
opts: opts
|
53
|
+
)
|
54
|
+
end
|
55
55
|
when :retrieve
|
56
56
|
define_singleton_method(:"retrieve_#{resource}") \
|
57
57
|
do |id, nested_id, params = {}, opts = {}|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
58
|
+
request_stripe_object(
|
59
|
+
method: :get,
|
60
|
+
path: send(resource_url_method, id, nested_id),
|
61
|
+
params: params,
|
62
|
+
opts: opts
|
63
|
+
)
|
64
|
+
end
|
65
65
|
when :update
|
66
66
|
define_singleton_method(:"update_#{resource}") \
|
67
67
|
do |id, nested_id, params = {}, opts = {}|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
68
|
+
request_stripe_object(
|
69
|
+
method: :post,
|
70
|
+
path: send(resource_url_method, id, nested_id),
|
71
|
+
params: params,
|
72
|
+
opts: opts
|
73
|
+
)
|
74
|
+
end
|
75
75
|
when :delete
|
76
76
|
define_singleton_method(:"delete_#{resource}") \
|
77
77
|
do |id, nested_id, params = {}, opts = {}|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
78
|
+
request_stripe_object(
|
79
|
+
method: :delete,
|
80
|
+
path: send(resource_url_method, id, nested_id),
|
81
|
+
params: params,
|
82
|
+
opts: opts
|
83
|
+
)
|
84
|
+
end
|
85
85
|
when :list
|
86
86
|
define_singleton_method(:"list_#{resource_plural}") \
|
87
87
|
do |id, params = {}, opts = {}|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
88
|
+
request_stripe_object(
|
89
|
+
method: :get,
|
90
|
+
path: send(resource_url_method, id),
|
91
|
+
params: params,
|
92
|
+
opts: opts
|
93
|
+
)
|
94
|
+
end
|
95
95
|
else
|
96
96
|
raise ArgumentError, "Unknown operation: #{operation.inspect}"
|
97
97
|
end
|
data/lib/stripe/api_requestor.rb
CHANGED
data/lib/stripe/oauth.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -78,6 +78,7 @@ module Stripe
|
|
78
78
|
FinancialConnections::Transaction.object_name => FinancialConnections::Transaction,
|
79
79
|
Forwarding::Request.object_name => Forwarding::Request,
|
80
80
|
FundingInstructions.object_name => FundingInstructions,
|
81
|
+
FxQuote.object_name => FxQuote,
|
81
82
|
GiftCards::Card.object_name => GiftCards::Card,
|
82
83
|
GiftCards::Transaction.object_name => GiftCards::Transaction,
|
83
84
|
Identity::VerificationReport.object_name => Identity::VerificationReport,
|
@@ -106,6 +107,7 @@ module Stripe
|
|
106
107
|
Order.object_name => Order,
|
107
108
|
PaymentAttemptRecord.object_name => PaymentAttemptRecord,
|
108
109
|
PaymentIntent.object_name => PaymentIntent,
|
110
|
+
PaymentIntentAmountDetailsLineItem.object_name => PaymentIntentAmountDetailsLineItem,
|
109
111
|
PaymentLink.object_name => PaymentLink,
|
110
112
|
PaymentMethod.object_name => PaymentMethod,
|
111
113
|
PaymentMethodConfiguration.object_name => PaymentMethodConfiguration,
|
@@ -304,6 +304,15 @@ module Stripe
|
|
304
304
|
attr_reader :user_agent
|
305
305
|
end
|
306
306
|
|
307
|
+
class RegistrationDate < Stripe::StripeObject
|
308
|
+
# The day of registration, between 1 and 31.
|
309
|
+
attr_reader :day
|
310
|
+
# The month of registration, between 1 and 12.
|
311
|
+
attr_reader :month
|
312
|
+
# The four-digit year of registration.
|
313
|
+
attr_reader :year
|
314
|
+
end
|
315
|
+
|
307
316
|
class Verification < Stripe::StripeObject
|
308
317
|
class Document < Stripe::StripeObject
|
309
318
|
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
|
@@ -348,6 +357,8 @@ module Stripe
|
|
348
357
|
attr_reader :ownership_exemption_reason
|
349
358
|
# The company's phone number (used for verification).
|
350
359
|
attr_reader :phone
|
360
|
+
# Attribute for field registration_date
|
361
|
+
attr_reader :registration_date
|
351
362
|
# The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
|
352
363
|
attr_reader :structure
|
353
364
|
# Whether the company's business ID number was provided.
|
@@ -1962,6 +1973,21 @@ module Stripe
|
|
1962
1973
|
end
|
1963
1974
|
end
|
1964
1975
|
|
1976
|
+
class RegistrationDate < Stripe::RequestParams
|
1977
|
+
# The day of registration, between 1 and 31.
|
1978
|
+
attr_accessor :day
|
1979
|
+
# The month of registration, between 1 and 12.
|
1980
|
+
attr_accessor :month
|
1981
|
+
# The four-digit year of registration.
|
1982
|
+
attr_accessor :year
|
1983
|
+
|
1984
|
+
def initialize(day: nil, month: nil, year: nil)
|
1985
|
+
@day = day
|
1986
|
+
@month = month
|
1987
|
+
@year = year
|
1988
|
+
end
|
1989
|
+
end
|
1990
|
+
|
1965
1991
|
class Verification < Stripe::RequestParams
|
1966
1992
|
class Document < Stripe::RequestParams
|
1967
1993
|
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -2011,6 +2037,8 @@ module Stripe
|
|
2011
2037
|
attr_accessor :ownership_exemption_reason
|
2012
2038
|
# The company's phone number (used for verification).
|
2013
2039
|
attr_accessor :phone
|
2040
|
+
# Attribute for param field registration_date
|
2041
|
+
attr_accessor :registration_date
|
2014
2042
|
# 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).
|
2015
2043
|
attr_accessor :registration_number
|
2016
2044
|
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
|
@@ -2040,6 +2068,7 @@ module Stripe
|
|
2040
2068
|
ownership_declaration: nil,
|
2041
2069
|
ownership_exemption_reason: nil,
|
2042
2070
|
phone: nil,
|
2071
|
+
registration_date: nil,
|
2043
2072
|
registration_number: nil,
|
2044
2073
|
structure: nil,
|
2045
2074
|
tax_id: nil,
|
@@ -2062,6 +2091,7 @@ module Stripe
|
|
2062
2091
|
@ownership_declaration = ownership_declaration
|
2063
2092
|
@ownership_exemption_reason = ownership_exemption_reason
|
2064
2093
|
@phone = phone
|
2094
|
+
@registration_date = registration_date
|
2065
2095
|
@registration_number = registration_number
|
2066
2096
|
@structure = structure
|
2067
2097
|
@tax_id = tax_id
|
@@ -4204,6 +4234,21 @@ module Stripe
|
|
4204
4234
|
end
|
4205
4235
|
end
|
4206
4236
|
|
4237
|
+
class RegistrationDate < Stripe::RequestParams
|
4238
|
+
# The day of registration, between 1 and 31.
|
4239
|
+
attr_accessor :day
|
4240
|
+
# The month of registration, between 1 and 12.
|
4241
|
+
attr_accessor :month
|
4242
|
+
# The four-digit year of registration.
|
4243
|
+
attr_accessor :year
|
4244
|
+
|
4245
|
+
def initialize(day: nil, month: nil, year: nil)
|
4246
|
+
@day = day
|
4247
|
+
@month = month
|
4248
|
+
@year = year
|
4249
|
+
end
|
4250
|
+
end
|
4251
|
+
|
4207
4252
|
class Verification < Stripe::RequestParams
|
4208
4253
|
class Document < Stripe::RequestParams
|
4209
4254
|
# The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size.
|
@@ -4253,6 +4298,8 @@ module Stripe
|
|
4253
4298
|
attr_accessor :ownership_exemption_reason
|
4254
4299
|
# The company's phone number (used for verification).
|
4255
4300
|
attr_accessor :phone
|
4301
|
+
# Attribute for param field registration_date
|
4302
|
+
attr_accessor :registration_date
|
4256
4303
|
# 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).
|
4257
4304
|
attr_accessor :registration_number
|
4258
4305
|
# The category identifying the legal structure of the company or legal entity. See [Business structure](/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
|
@@ -4282,6 +4329,7 @@ module Stripe
|
|
4282
4329
|
ownership_declaration: nil,
|
4283
4330
|
ownership_exemption_reason: nil,
|
4284
4331
|
phone: nil,
|
4332
|
+
registration_date: nil,
|
4285
4333
|
registration_number: nil,
|
4286
4334
|
structure: nil,
|
4287
4335
|
tax_id: nil,
|
@@ -4304,6 +4352,7 @@ module Stripe
|
|
4304
4352
|
@ownership_declaration = ownership_declaration
|
4305
4353
|
@ownership_exemption_reason = ownership_exemption_reason
|
4306
4354
|
@phone = phone
|
4355
|
+
@registration_date = registration_date
|
4307
4356
|
@registration_number = registration_number
|
4308
4357
|
@structure = structure
|
4309
4358
|
@tax_id = tax_id
|
@@ -5466,7 +5515,7 @@ module Stripe
|
|
5466
5515
|
opts = id
|
5467
5516
|
id = nil
|
5468
5517
|
end
|
5469
|
-
super
|
5518
|
+
super
|
5470
5519
|
end
|
5471
5520
|
|
5472
5521
|
# We are not adding a helper for capabilities here as the Account object
|
@@ -5506,7 +5555,7 @@ module Stripe
|
|
5506
5555
|
entity_update[:additional_owners] =
|
5507
5556
|
serialize_additional_owners(entity, owners)
|
5508
5557
|
end
|
5509
|
-
if (individual = @values[:individual]) &&
|
5558
|
+
if (individual = @values[:individual]) && individual.is_a?(Person) && !update_hash.key?(:individual)
|
5510
5559
|
update_hash[:individual] = individual.serialize_params(options)
|
5511
5560
|
end
|
5512
5561
|
update_hash
|
@@ -2,7 +2,11 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Stripe
|
5
|
-
# Options for customizing account balances
|
5
|
+
# Options for customizing account balances and payout settings for a Stripe platform's connected accounts.
|
6
|
+
#
|
7
|
+
# This API is only available for users enrolled in the public preview for Accounts v2 on Stripe Connect.
|
8
|
+
# If you are not in this preview, please use the [Accounts v1 API](https://docs.stripe.com/api/accounts?api-version=2025-03-31.basil)
|
9
|
+
# to manage your connected accounts' balance settings instead.
|
6
10
|
class BalanceSettings < SingletonAPIResource
|
7
11
|
include Stripe::APIOperations::SingletonSave
|
8
12
|
|
@@ -14,11 +14,11 @@ module Stripe
|
|
14
14
|
end
|
15
15
|
|
16
16
|
class AcceptedTerms < Stripe::StripeObject
|
17
|
-
# Amount of financing offered, in minor units.
|
17
|
+
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
18
18
|
attr_reader :advance_amount
|
19
19
|
# Currency that the financing offer is transacted in. For example, `usd`.
|
20
20
|
attr_reader :currency
|
21
|
-
# Fixed fee amount, in minor units.
|
21
|
+
# Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
22
22
|
attr_reader :fee_amount
|
23
23
|
# Populated when the `product_type` of the `financingoffer` is `refill`.
|
24
24
|
# Represents the discount amount on remaining premium for the existing loan at payout time.
|
@@ -28,13 +28,13 @@ module Stripe
|
|
28
28
|
end
|
29
29
|
|
30
30
|
class OfferedTerms < Stripe::StripeObject
|
31
|
-
# Amount of financing offered, in minor units.
|
31
|
+
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
32
32
|
attr_reader :advance_amount
|
33
33
|
# Describes the type of user the offer is being extended to.
|
34
34
|
attr_reader :campaign_type
|
35
35
|
# Currency that the financing offer is transacted in. For example, `usd`.
|
36
36
|
attr_reader :currency
|
37
|
-
# Fixed fee amount, in minor units.
|
37
|
+
# Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
38
38
|
attr_reader :fee_amount
|
39
39
|
# Populated when the `product_type` of the `financingoffer` is `refill`.
|
40
40
|
# Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer`
|
@@ -16,12 +16,12 @@ module Stripe
|
|
16
16
|
# The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited.
|
17
17
|
# Given in seconds since unix epoch.
|
18
18
|
attr_reader :due_at
|
19
|
-
# The amount that has already been paid in the current repayment interval.
|
19
|
+
# The amount that has already been paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
|
20
20
|
attr_reader :paid_amount
|
21
|
-
# The amount that is yet to be paid in the current repayment interval.
|
21
|
+
# The amount that is yet to be paid in the current repayment interval, in minor units. For example, $100 USD will be represented as 10000.
|
22
22
|
attr_reader :remaining_amount
|
23
23
|
end
|
24
|
-
# Amount of financing offered, in minor units.
|
24
|
+
# Amount of financing offered, in minor units. For example, $1,000 USD will be represented as 100000.
|
25
25
|
attr_reader :advance_amount
|
26
26
|
# The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch.
|
27
27
|
attr_reader :advance_paid_out_at
|
@@ -29,11 +29,11 @@ module Stripe
|
|
29
29
|
attr_reader :currency
|
30
30
|
# The chronologically current repayment interval for the financing offer.
|
31
31
|
attr_reader :current_repayment_interval
|
32
|
-
# Fixed fee amount, in minor units.
|
32
|
+
# Fixed fee amount, in minor units. For example, $100 USD will be represented as 10000.
|
33
33
|
attr_reader :fee_amount
|
34
|
-
# The amount the Connected account has paid toward the financing debt so far.
|
34
|
+
# The amount the Connected account has paid toward the financing debt so far, in minor units. For example, $1,000 USD will be represented as 100000.
|
35
35
|
attr_reader :paid_amount
|
36
|
-
# The balance remaining to be paid on the financing, in minor units.
|
36
|
+
# The balance remaining to be paid on the financing, in minor units. For example, $1,000 USD will be represented as 100000.
|
37
37
|
attr_reader :remaining_amount
|
38
38
|
# The time at which Capital will begin withholding from payments. Given in seconds since unix epoch.
|
39
39
|
attr_reader :repayments_begin_at
|
@@ -43,6 +43,8 @@ module Stripe
|
|
43
43
|
attr_reader :name
|
44
44
|
# Billing phone number (including extension).
|
45
45
|
attr_reader :phone
|
46
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
47
|
+
attr_reader :tax_id
|
46
48
|
end
|
47
49
|
|
48
50
|
class FraudDetails < Stripe::StripeObject
|
@@ -2134,26 +2136,34 @@ module Stripe
|
|
2134
2136
|
end
|
2135
2137
|
# Car rental details for this PaymentIntent.
|
2136
2138
|
attr_accessor :car_rental
|
2139
|
+
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
2140
|
+
attr_accessor :customer_reference
|
2137
2141
|
# Event details for this PaymentIntent
|
2138
2142
|
attr_accessor :event_details
|
2139
2143
|
# Flight reservation details for this PaymentIntent
|
2140
2144
|
attr_accessor :flight
|
2141
2145
|
# Lodging reservation details for this PaymentIntent
|
2142
2146
|
attr_accessor :lodging
|
2147
|
+
# A unique value assigned by the business to identify the transaction.
|
2148
|
+
attr_accessor :order_reference
|
2143
2149
|
# Subscription details for this PaymentIntent
|
2144
2150
|
attr_accessor :subscription
|
2145
2151
|
|
2146
2152
|
def initialize(
|
2147
2153
|
car_rental: nil,
|
2154
|
+
customer_reference: nil,
|
2148
2155
|
event_details: nil,
|
2149
2156
|
flight: nil,
|
2150
2157
|
lodging: nil,
|
2158
|
+
order_reference: nil,
|
2151
2159
|
subscription: nil
|
2152
2160
|
)
|
2153
2161
|
@car_rental = car_rental
|
2162
|
+
@customer_reference = customer_reference
|
2154
2163
|
@event_details = event_details
|
2155
2164
|
@flight = flight
|
2156
2165
|
@lodging = lodging
|
2166
|
+
@order_reference = order_reference
|
2157
2167
|
@subscription = subscription
|
2158
2168
|
end
|
2159
2169
|
end
|
@@ -2908,26 +2918,34 @@ module Stripe
|
|
2908
2918
|
end
|
2909
2919
|
# Car rental details for this PaymentIntent.
|
2910
2920
|
attr_accessor :car_rental
|
2921
|
+
# Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
|
2922
|
+
attr_accessor :customer_reference
|
2911
2923
|
# Event details for this PaymentIntent
|
2912
2924
|
attr_accessor :event_details
|
2913
2925
|
# Flight reservation details for this PaymentIntent
|
2914
2926
|
attr_accessor :flight
|
2915
2927
|
# Lodging reservation details for this PaymentIntent
|
2916
2928
|
attr_accessor :lodging
|
2929
|
+
# A unique value assigned by the business to identify the transaction.
|
2930
|
+
attr_accessor :order_reference
|
2917
2931
|
# Subscription details for this PaymentIntent
|
2918
2932
|
attr_accessor :subscription
|
2919
2933
|
|
2920
2934
|
def initialize(
|
2921
2935
|
car_rental: nil,
|
2936
|
+
customer_reference: nil,
|
2922
2937
|
event_details: nil,
|
2923
2938
|
flight: nil,
|
2924
2939
|
lodging: nil,
|
2940
|
+
order_reference: nil,
|
2925
2941
|
subscription: nil
|
2926
2942
|
)
|
2927
2943
|
@car_rental = car_rental
|
2944
|
+
@customer_reference = customer_reference
|
2928
2945
|
@event_details = event_details
|
2929
2946
|
@flight = flight
|
2930
2947
|
@lodging = lodging
|
2948
|
+
@order_reference = order_reference
|
2931
2949
|
@subscription = subscription
|
2932
2950
|
end
|
2933
2951
|
end
|
@@ -3292,7 +3292,7 @@ module Stripe
|
|
3292
3292
|
# prioritize the most relevant payment methods based on the customer's location and
|
3293
3293
|
# other characteristics.
|
3294
3294
|
attr_accessor :payment_method_types
|
3295
|
-
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
|
3295
|
+
# This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. Can only be set when creating `embedded` or `custom` sessions.
|
3296
3296
|
#
|
3297
3297
|
# For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
|
3298
3298
|
attr_accessor :permissions
|
@@ -3496,14 +3496,83 @@ module Stripe
|
|
3496
3496
|
@minimum = minimum
|
3497
3497
|
end
|
3498
3498
|
end
|
3499
|
+
|
3500
|
+
class PriceData < Stripe::RequestParams
|
3501
|
+
class ProductData < Stripe::RequestParams
|
3502
|
+
# The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
3503
|
+
attr_accessor :description
|
3504
|
+
# A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
3505
|
+
attr_accessor :images
|
3506
|
+
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
3507
|
+
attr_accessor :metadata
|
3508
|
+
# The product's name, meant to be displayable to the customer.
|
3509
|
+
attr_accessor :name
|
3510
|
+
# A [tax code](https://stripe.com/docs/tax/tax-categories) ID.
|
3511
|
+
attr_accessor :tax_code
|
3512
|
+
|
3513
|
+
def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil)
|
3514
|
+
@description = description
|
3515
|
+
@images = images
|
3516
|
+
@metadata = metadata
|
3517
|
+
@name = name
|
3518
|
+
@tax_code = tax_code
|
3519
|
+
end
|
3520
|
+
end
|
3521
|
+
|
3522
|
+
class Recurring < Stripe::RequestParams
|
3523
|
+
# Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
3524
|
+
attr_accessor :interval
|
3525
|
+
# The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
3526
|
+
attr_accessor :interval_count
|
3527
|
+
|
3528
|
+
def initialize(interval: nil, interval_count: nil)
|
3529
|
+
@interval = interval
|
3530
|
+
@interval_count = interval_count
|
3531
|
+
end
|
3532
|
+
end
|
3533
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
3534
|
+
attr_accessor :currency
|
3535
|
+
# The ID of the [Product](https://docs.stripe.com/api/products) that this [Price](https://docs.stripe.com/api/prices) will belong to. One of `product` or `product_data` is required.
|
3536
|
+
attr_accessor :product
|
3537
|
+
# Data used to generate a new [Product](https://docs.stripe.com/api/products) object inline. One of `product` or `product_data` is required.
|
3538
|
+
attr_accessor :product_data
|
3539
|
+
# The recurring components of a price such as `interval` and `interval_count`.
|
3540
|
+
attr_accessor :recurring
|
3541
|
+
# Only required if a [default tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#setting-a-default-tax-behavior-(recommended)) was not provided in the Stripe Tax settings. Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
|
3542
|
+
attr_accessor :tax_behavior
|
3543
|
+
# A non-negative integer in cents (or local equivalent) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required.
|
3544
|
+
attr_accessor :unit_amount
|
3545
|
+
# Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set.
|
3546
|
+
attr_accessor :unit_amount_decimal
|
3547
|
+
|
3548
|
+
def initialize(
|
3549
|
+
currency: nil,
|
3550
|
+
product: nil,
|
3551
|
+
product_data: nil,
|
3552
|
+
recurring: nil,
|
3553
|
+
tax_behavior: nil,
|
3554
|
+
unit_amount: nil,
|
3555
|
+
unit_amount_decimal: nil
|
3556
|
+
)
|
3557
|
+
@currency = currency
|
3558
|
+
@product = product
|
3559
|
+
@product_data = product_data
|
3560
|
+
@recurring = recurring
|
3561
|
+
@tax_behavior = tax_behavior
|
3562
|
+
@unit_amount = unit_amount
|
3563
|
+
@unit_amount_decimal = unit_amount_decimal
|
3564
|
+
end
|
3565
|
+
end
|
3499
3566
|
# When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.
|
3500
3567
|
attr_accessor :adjustable_quantity
|
3501
3568
|
# ID of an existing line item.
|
3502
3569
|
attr_accessor :id
|
3503
3570
|
# Set of [key-value pairs](https://stripe.com/docs/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`.
|
3504
3571
|
attr_accessor :metadata
|
3505
|
-
# The ID of the [Price](https://stripe.com/docs/api/prices).
|
3572
|
+
# The ID of the [Price](https://stripe.com/docs/api/prices). One of `price` or `price_data` is required when creating a new line item.
|
3506
3573
|
attr_accessor :price
|
3574
|
+
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required when creating a new line item.
|
3575
|
+
attr_accessor :price_data
|
3507
3576
|
# The quantity of the line item being purchased.
|
3508
3577
|
attr_accessor :quantity
|
3509
3578
|
# The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
|
@@ -3514,6 +3583,7 @@ module Stripe
|
|
3514
3583
|
id: nil,
|
3515
3584
|
metadata: nil,
|
3516
3585
|
price: nil,
|
3586
|
+
price_data: nil,
|
3517
3587
|
quantity: nil,
|
3518
3588
|
tax_rates: nil
|
3519
3589
|
)
|
@@ -3521,6 +3591,7 @@ module Stripe
|
|
3521
3591
|
@id = id
|
3522
3592
|
@metadata = metadata
|
3523
3593
|
@price = price
|
3594
|
+
@price_data = price_data
|
3524
3595
|
@quantity = quantity
|
3525
3596
|
@tax_rates = tax_rates
|
3526
3597
|
end
|
@@ -3631,7 +3702,7 @@ module Stripe
|
|
3631
3702
|
@shipping_rate_data = shipping_rate_data
|
3632
3703
|
end
|
3633
3704
|
end
|
3634
|
-
# Information about the customer collected within the Checkout Session.
|
3705
|
+
# Information about the customer collected within the Checkout Session. Can only be set when updating `embedded` or `custom` sessions.
|
3635
3706
|
attr_accessor :collected_information
|
3636
3707
|
# Specifies which fields in the response should be expanded.
|
3637
3708
|
attr_accessor :expand
|
@@ -120,6 +120,8 @@ module Stripe
|
|
120
120
|
attr_reader :name
|
121
121
|
# Billing phone number (including extension).
|
122
122
|
attr_reader :phone
|
123
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
124
|
+
attr_reader :tax_id
|
123
125
|
end
|
124
126
|
|
125
127
|
class Blik < Stripe::StripeObject; end
|
@@ -978,12 +980,15 @@ module Stripe
|
|
978
980
|
attr_accessor :name
|
979
981
|
# Billing phone number (including extension).
|
980
982
|
attr_accessor :phone
|
983
|
+
# Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.
|
984
|
+
attr_accessor :tax_id
|
981
985
|
|
982
|
-
def initialize(address: nil, email: nil, name: nil, phone: nil)
|
986
|
+
def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
|
983
987
|
@address = address
|
984
988
|
@email = email
|
985
989
|
@name = name
|
986
990
|
@phone = phone
|
991
|
+
@tax_id = tax_id
|
987
992
|
end
|
988
993
|
end
|
989
994
|
|