stripe 15.5.0.pre.beta.2 → 15.6.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 -1
- data/CHANGELOG.md +53 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_requestor.rb +18 -18
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/errors.rb +23 -23
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/account_session.rb +94 -13
- data/lib/stripe/resources/balance.rb +2 -7
- data/lib/stripe/resources/balance_settings.rb +72 -65
- data/lib/stripe/resources/billing/meter.rb +2 -2
- data/lib/stripe/resources/billing/meter_usage_row.rb +1 -1
- data/lib/stripe/resources/billing_portal/configuration.rb +12 -2
- data/lib/stripe/resources/charge.rb +40 -5
- data/lib/stripe/resources/checkout/session.rb +109 -5
- data/lib/stripe/resources/credit_note.rb +3 -3
- data/lib/stripe/resources/dispute.rb +1 -1
- data/lib/stripe/resources/file.rb +1 -1
- data/lib/stripe/resources/file_link.rb +1 -1
- data/lib/stripe/resources/invoice.rb +44 -1
- data/lib/stripe/resources/invoice_payment.rb +1 -1
- data/lib/stripe/resources/issuing/card.rb +8 -0
- data/lib/stripe/resources/mandate.rb +65 -1
- data/lib/stripe/resources/payment_attempt_record.rb +90 -10
- data/lib/stripe/resources/payment_intent.rb +182 -4
- data/lib/stripe/resources/payment_link.rb +1 -1
- data/lib/stripe/resources/payment_method.rb +2 -0
- data/lib/stripe/resources/payment_record.rb +111 -14
- data/lib/stripe/resources/promotion_code.rb +5 -2
- data/lib/stripe/resources/quote_preview_invoice.rb +1 -1
- data/lib/stripe/resources/quote_preview_subscription_schedule.rb +24 -0
- data/lib/stripe/resources/setup_attempt.rb +4 -1
- data/lib/stripe/resources/setup_intent.rb +194 -1
- data/lib/stripe/resources/subscription.rb +107 -9
- data/lib/stripe/resources/subscription_schedule.rb +124 -2
- data/lib/stripe/resources/terminal/configuration.rb +82 -0
- data/lib/stripe/resources/terminal/reader.rb +22 -0
- data/lib/stripe/resources/v2/core/account.rb +8 -0
- data/lib/stripe/resources/v2/money_management/financial_account.rb +2 -0
- data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +1 -1
- data/lib/stripe/resources/v2/money_management/transaction.rb +2 -0
- data/lib/stripe/resources/v2/money_management/transaction_entry.rb +2 -0
- data/lib/stripe/services/account_session_service.rb +64 -13
- data/lib/stripe/services/balance_settings_service.rb +44 -41
- data/lib/stripe/services/billing/meter_service.rb +1 -1
- data/lib/stripe/services/billing_portal/configuration_service.rb +10 -2
- data/lib/stripe/services/checkout/session_service.rb +86 -4
- data/lib/stripe/services/credit_note_preview_lines_service.rb +1 -1
- data/lib/stripe/services/credit_note_service.rb +2 -2
- data/lib/stripe/services/customer_service.rb +4 -4
- data/lib/stripe/services/file_link_service.rb +1 -1
- data/lib/stripe/services/file_service.rb +1 -1
- data/lib/stripe/services/invoice_payment_service.rb +1 -1
- data/lib/stripe/services/invoice_service.rb +43 -0
- data/lib/stripe/services/issuing/card_service.rb +8 -0
- data/lib/stripe/services/mandate_service.rb +40 -0
- data/lib/stripe/services/payment_attempt_record_service.rb +4 -1
- data/lib/stripe/services/payment_intent_service.rb +157 -3
- data/lib/stripe/services/payment_link_service.rb +1 -1
- data/lib/stripe/services/payment_record_service.rb +25 -5
- data/lib/stripe/services/quote_service.rb +4 -4
- data/lib/stripe/services/setup_intent_service.rb +153 -0
- data/lib/stripe/services/subscription_schedule_service.rb +100 -2
- data/lib/stripe/services/subscription_service.rb +107 -9
- data/lib/stripe/services/terminal/configuration_service.rb +64 -0
- data/lib/stripe/services/test_helpers/terminal/reader_service.rb +22 -0
- data/lib/stripe/services/v1_services.rb +5 -5
- data/lib/stripe/services/v2/billing_service.rb +2 -2
- data/lib/stripe/services/v2/core/account_service.rb +16 -2
- data/lib/stripe/services/v2/core_service.rb +3 -3
- data/lib/stripe/services/v2/money_management/financial_account_service.rb +4 -1
- data/lib/stripe/services/v2/money_management_service.rb +3 -3
- data/lib/stripe/stripe_service.rb +3 -1
- data/lib/stripe/version.rb +1 -1
- data/rbi/stripe.rbi +142341 -140132
- metadata +2 -2
@@ -169,6 +169,7 @@ module Stripe
|
|
169
169
|
class NzBankAccount < Stripe::StripeObject; end
|
170
170
|
class Paypal < Stripe::StripeObject; end
|
171
171
|
class Payto < Stripe::StripeObject; end
|
172
|
+
class Pix < Stripe::StripeObject; end
|
172
173
|
class RevolutPay < Stripe::StripeObject; end
|
173
174
|
class SepaDebit < Stripe::StripeObject; end
|
174
175
|
|
@@ -233,6 +234,8 @@ module Stripe
|
|
233
234
|
attr_reader :paypal
|
234
235
|
# Attribute for field payto
|
235
236
|
attr_reader :payto
|
237
|
+
# Attribute for field pix
|
238
|
+
attr_reader :pix
|
236
239
|
# Attribute for field revolut_pay
|
237
240
|
attr_reader :revolut_pay
|
238
241
|
# Attribute for field sepa_debit
|
@@ -262,7 +265,7 @@ module Stripe
|
|
262
265
|
attr_reader :message
|
263
266
|
# For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
264
267
|
attr_reader :network_advice_code
|
265
|
-
# For
|
268
|
+
# For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
|
266
269
|
attr_reader :network_decline_code
|
267
270
|
# If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
|
268
271
|
attr_reader :param
|
@@ -57,7 +57,7 @@ module Stripe
|
|
57
57
|
attr_reader :message
|
58
58
|
# For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
59
59
|
attr_reader :network_advice_code
|
60
|
-
# For
|
60
|
+
# For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
|
61
61
|
attr_reader :network_decline_code
|
62
62
|
# If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
|
63
63
|
attr_reader :param
|
@@ -129,6 +129,19 @@ module Stripe
|
|
129
129
|
attr_reader :qr_code
|
130
130
|
end
|
131
131
|
|
132
|
+
class PixDisplayQrCode < Stripe::StripeObject
|
133
|
+
# The raw data string used to generate QR code, it should be used together with QR code library.
|
134
|
+
attr_reader :data
|
135
|
+
# The date (unix timestamp) when the PIX expires.
|
136
|
+
attr_reader :expires_at
|
137
|
+
# The URL to the hosted pix instructions page, which allows customers to view the pix QR code.
|
138
|
+
attr_reader :hosted_instructions_url
|
139
|
+
# The image_url_png string used to render png QR code
|
140
|
+
attr_reader :image_url_png
|
141
|
+
# The image_url_svg string used to render svg QR code
|
142
|
+
attr_reader :image_url_svg
|
143
|
+
end
|
144
|
+
|
132
145
|
class RedirectToUrl < Stripe::StripeObject
|
133
146
|
# If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
134
147
|
attr_reader :return_url
|
@@ -146,6 +159,8 @@ module Stripe
|
|
146
159
|
end
|
147
160
|
# Attribute for field cashapp_handle_redirect_or_display_qr_code
|
148
161
|
attr_reader :cashapp_handle_redirect_or_display_qr_code
|
162
|
+
# Attribute for field pix_display_qr_code
|
163
|
+
attr_reader :pix_display_qr_code
|
149
164
|
# Attribute for field redirect_to_url
|
150
165
|
attr_reader :redirect_to_url
|
151
166
|
# Type of the next action to perform. Refer to the other child attributes under `next_action` for available values. Examples include: `redirect_to_url`, `use_stripe_sdk`, `alipay_handle_redirect`, `oxxo_display_details`, or `verify_with_microdeposits`.
|
@@ -271,6 +286,29 @@ module Stripe
|
|
271
286
|
attr_reader :mandate_options
|
272
287
|
end
|
273
288
|
|
289
|
+
class Pix < Stripe::StripeObject
|
290
|
+
class MandateOptions < Stripe::StripeObject
|
291
|
+
# Amount to be charged for future payments.
|
292
|
+
attr_reader :amount
|
293
|
+
# Determines if the amount includes the IOF tax.
|
294
|
+
attr_reader :amount_includes_iof
|
295
|
+
# Type of amount.
|
296
|
+
attr_reader :amount_type
|
297
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
|
298
|
+
attr_reader :currency
|
299
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
|
300
|
+
attr_reader :end_date
|
301
|
+
# Schedule at which the future payments will be charged.
|
302
|
+
attr_reader :payment_schedule
|
303
|
+
# Subscription name displayed to buyers in their bank app.
|
304
|
+
attr_reader :reference
|
305
|
+
# Start date of the mandate, in `YYYY-MM-DD`.
|
306
|
+
attr_reader :start_date
|
307
|
+
end
|
308
|
+
# Attribute for field mandate_options
|
309
|
+
attr_reader :mandate_options
|
310
|
+
end
|
311
|
+
|
274
312
|
class SepaDebit < Stripe::StripeObject
|
275
313
|
class MandateOptions < Stripe::StripeObject
|
276
314
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -334,6 +372,8 @@ module Stripe
|
|
334
372
|
attr_reader :paypal
|
335
373
|
# Attribute for field payto
|
336
374
|
attr_reader :payto
|
375
|
+
# Attribute for field pix
|
376
|
+
attr_reader :pix
|
337
377
|
# Attribute for field sepa_debit
|
338
378
|
attr_reader :sepa_debit
|
339
379
|
# Attribute for field us_bank_account
|
@@ -1433,6 +1473,53 @@ module Stripe
|
|
1433
1473
|
end
|
1434
1474
|
end
|
1435
1475
|
|
1476
|
+
class Pix < Stripe::RequestParams
|
1477
|
+
class MandateOptions < Stripe::RequestParams
|
1478
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
1479
|
+
attr_accessor :amount
|
1480
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
1481
|
+
attr_accessor :amount_includes_iof
|
1482
|
+
# Type of amount. Defaults to `maximum`.
|
1483
|
+
attr_accessor :amount_type
|
1484
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
1485
|
+
attr_accessor :currency
|
1486
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
1487
|
+
attr_accessor :end_date
|
1488
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
1489
|
+
attr_accessor :payment_schedule
|
1490
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
1491
|
+
attr_accessor :reference
|
1492
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
1493
|
+
attr_accessor :start_date
|
1494
|
+
|
1495
|
+
def initialize(
|
1496
|
+
amount: nil,
|
1497
|
+
amount_includes_iof: nil,
|
1498
|
+
amount_type: nil,
|
1499
|
+
currency: nil,
|
1500
|
+
end_date: nil,
|
1501
|
+
payment_schedule: nil,
|
1502
|
+
reference: nil,
|
1503
|
+
start_date: nil
|
1504
|
+
)
|
1505
|
+
@amount = amount
|
1506
|
+
@amount_includes_iof = amount_includes_iof
|
1507
|
+
@amount_type = amount_type
|
1508
|
+
@currency = currency
|
1509
|
+
@end_date = end_date
|
1510
|
+
@payment_schedule = payment_schedule
|
1511
|
+
@reference = reference
|
1512
|
+
@start_date = start_date
|
1513
|
+
end
|
1514
|
+
end
|
1515
|
+
# Additional fields for mandate creation.
|
1516
|
+
attr_accessor :mandate_options
|
1517
|
+
|
1518
|
+
def initialize(mandate_options: nil)
|
1519
|
+
@mandate_options = mandate_options
|
1520
|
+
end
|
1521
|
+
end
|
1522
|
+
|
1436
1523
|
class SepaDebit < Stripe::RequestParams
|
1437
1524
|
class MandateOptions < Stripe::RequestParams
|
1438
1525
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -1554,6 +1641,8 @@ module Stripe
|
|
1554
1641
|
attr_accessor :paypal
|
1555
1642
|
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
1556
1643
|
attr_accessor :payto
|
1644
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
1645
|
+
attr_accessor :pix
|
1557
1646
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
1558
1647
|
attr_accessor :sepa_debit
|
1559
1648
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -1569,6 +1658,7 @@ module Stripe
|
|
1569
1658
|
link: nil,
|
1570
1659
|
paypal: nil,
|
1571
1660
|
payto: nil,
|
1661
|
+
pix: nil,
|
1572
1662
|
sepa_debit: nil,
|
1573
1663
|
us_bank_account: nil
|
1574
1664
|
)
|
@@ -1581,6 +1671,7 @@ module Stripe
|
|
1581
1671
|
@link = link
|
1582
1672
|
@paypal = paypal
|
1583
1673
|
@payto = payto
|
1674
|
+
@pix = pix
|
1584
1675
|
@sepa_debit = sepa_debit
|
1585
1676
|
@us_bank_account = us_bank_account
|
1586
1677
|
end
|
@@ -2678,6 +2769,53 @@ module Stripe
|
|
2678
2769
|
end
|
2679
2770
|
end
|
2680
2771
|
|
2772
|
+
class Pix < Stripe::RequestParams
|
2773
|
+
class MandateOptions < Stripe::RequestParams
|
2774
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
2775
|
+
attr_accessor :amount
|
2776
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
2777
|
+
attr_accessor :amount_includes_iof
|
2778
|
+
# Type of amount. Defaults to `maximum`.
|
2779
|
+
attr_accessor :amount_type
|
2780
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
2781
|
+
attr_accessor :currency
|
2782
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
2783
|
+
attr_accessor :end_date
|
2784
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
2785
|
+
attr_accessor :payment_schedule
|
2786
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
2787
|
+
attr_accessor :reference
|
2788
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
2789
|
+
attr_accessor :start_date
|
2790
|
+
|
2791
|
+
def initialize(
|
2792
|
+
amount: nil,
|
2793
|
+
amount_includes_iof: nil,
|
2794
|
+
amount_type: nil,
|
2795
|
+
currency: nil,
|
2796
|
+
end_date: nil,
|
2797
|
+
payment_schedule: nil,
|
2798
|
+
reference: nil,
|
2799
|
+
start_date: nil
|
2800
|
+
)
|
2801
|
+
@amount = amount
|
2802
|
+
@amount_includes_iof = amount_includes_iof
|
2803
|
+
@amount_type = amount_type
|
2804
|
+
@currency = currency
|
2805
|
+
@end_date = end_date
|
2806
|
+
@payment_schedule = payment_schedule
|
2807
|
+
@reference = reference
|
2808
|
+
@start_date = start_date
|
2809
|
+
end
|
2810
|
+
end
|
2811
|
+
# Additional fields for mandate creation.
|
2812
|
+
attr_accessor :mandate_options
|
2813
|
+
|
2814
|
+
def initialize(mandate_options: nil)
|
2815
|
+
@mandate_options = mandate_options
|
2816
|
+
end
|
2817
|
+
end
|
2818
|
+
|
2681
2819
|
class SepaDebit < Stripe::RequestParams
|
2682
2820
|
class MandateOptions < Stripe::RequestParams
|
2683
2821
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -2799,6 +2937,8 @@ module Stripe
|
|
2799
2937
|
attr_accessor :paypal
|
2800
2938
|
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
2801
2939
|
attr_accessor :payto
|
2940
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
2941
|
+
attr_accessor :pix
|
2802
2942
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
2803
2943
|
attr_accessor :sepa_debit
|
2804
2944
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -2814,6 +2954,7 @@ module Stripe
|
|
2814
2954
|
link: nil,
|
2815
2955
|
paypal: nil,
|
2816
2956
|
payto: nil,
|
2957
|
+
pix: nil,
|
2817
2958
|
sepa_debit: nil,
|
2818
2959
|
us_bank_account: nil
|
2819
2960
|
)
|
@@ -2826,6 +2967,7 @@ module Stripe
|
|
2826
2967
|
@link = link
|
2827
2968
|
@paypal = paypal
|
2828
2969
|
@payto = payto
|
2970
|
+
@pix = pix
|
2829
2971
|
@sepa_debit = sepa_debit
|
2830
2972
|
@us_bank_account = us_bank_account
|
2831
2973
|
end
|
@@ -3922,6 +4064,53 @@ module Stripe
|
|
3922
4064
|
end
|
3923
4065
|
end
|
3924
4066
|
|
4067
|
+
class Pix < Stripe::RequestParams
|
4068
|
+
class MandateOptions < Stripe::RequestParams
|
4069
|
+
# Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
|
4070
|
+
attr_accessor :amount
|
4071
|
+
# Determines if the amount includes the IOF tax. Defaults to `never`.
|
4072
|
+
attr_accessor :amount_includes_iof
|
4073
|
+
# Type of amount. Defaults to `maximum`.
|
4074
|
+
attr_accessor :amount_type
|
4075
|
+
# Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
|
4076
|
+
attr_accessor :currency
|
4077
|
+
# Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
4078
|
+
attr_accessor :end_date
|
4079
|
+
# Schedule at which the future payments will be charged. Defaults to `weekly`.
|
4080
|
+
attr_accessor :payment_schedule
|
4081
|
+
# Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
|
4082
|
+
attr_accessor :reference
|
4083
|
+
# Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
|
4084
|
+
attr_accessor :start_date
|
4085
|
+
|
4086
|
+
def initialize(
|
4087
|
+
amount: nil,
|
4088
|
+
amount_includes_iof: nil,
|
4089
|
+
amount_type: nil,
|
4090
|
+
currency: nil,
|
4091
|
+
end_date: nil,
|
4092
|
+
payment_schedule: nil,
|
4093
|
+
reference: nil,
|
4094
|
+
start_date: nil
|
4095
|
+
)
|
4096
|
+
@amount = amount
|
4097
|
+
@amount_includes_iof = amount_includes_iof
|
4098
|
+
@amount_type = amount_type
|
4099
|
+
@currency = currency
|
4100
|
+
@end_date = end_date
|
4101
|
+
@payment_schedule = payment_schedule
|
4102
|
+
@reference = reference
|
4103
|
+
@start_date = start_date
|
4104
|
+
end
|
4105
|
+
end
|
4106
|
+
# Additional fields for mandate creation.
|
4107
|
+
attr_accessor :mandate_options
|
4108
|
+
|
4109
|
+
def initialize(mandate_options: nil)
|
4110
|
+
@mandate_options = mandate_options
|
4111
|
+
end
|
4112
|
+
end
|
4113
|
+
|
3925
4114
|
class SepaDebit < Stripe::RequestParams
|
3926
4115
|
class MandateOptions < Stripe::RequestParams
|
3927
4116
|
# Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'.
|
@@ -4043,6 +4232,8 @@ module Stripe
|
|
4043
4232
|
attr_accessor :paypal
|
4044
4233
|
# If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
|
4045
4234
|
attr_accessor :payto
|
4235
|
+
# If this is a `pix` SetupIntent, this sub-hash contains details about the Pix payment method options.
|
4236
|
+
attr_accessor :pix
|
4046
4237
|
# If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
|
4047
4238
|
attr_accessor :sepa_debit
|
4048
4239
|
# If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options.
|
@@ -4058,6 +4249,7 @@ module Stripe
|
|
4058
4249
|
link: nil,
|
4059
4250
|
paypal: nil,
|
4060
4251
|
payto: nil,
|
4252
|
+
pix: nil,
|
4061
4253
|
sepa_debit: nil,
|
4062
4254
|
us_bank_account: nil
|
4063
4255
|
)
|
@@ -4070,6 +4262,7 @@ module Stripe
|
|
4070
4262
|
@link = link
|
4071
4263
|
@paypal = paypal
|
4072
4264
|
@payto = payto
|
4265
|
+
@pix = pix
|
4073
4266
|
@sepa_debit = sepa_debit
|
4074
4267
|
@us_bank_account = us_bank_account
|
4075
4268
|
end
|
@@ -343,6 +343,41 @@ module Stripe
|
|
343
343
|
end
|
344
344
|
end
|
345
345
|
|
346
|
+
class Period < Stripe::RequestParams
|
347
|
+
class End < Stripe::RequestParams
|
348
|
+
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
349
|
+
attr_accessor :timestamp
|
350
|
+
# Select how to calculate the end of the invoice item period.
|
351
|
+
attr_accessor :type
|
352
|
+
|
353
|
+
def initialize(timestamp: nil, type: nil)
|
354
|
+
@timestamp = timestamp
|
355
|
+
@type = type
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
class Start < Stripe::RequestParams
|
360
|
+
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
361
|
+
attr_accessor :timestamp
|
362
|
+
# Select how to calculate the start of the invoice item period.
|
363
|
+
attr_accessor :type
|
364
|
+
|
365
|
+
def initialize(timestamp: nil, type: nil)
|
366
|
+
@timestamp = timestamp
|
367
|
+
@type = type
|
368
|
+
end
|
369
|
+
end
|
370
|
+
# End of the invoice item period.
|
371
|
+
attr_accessor :end
|
372
|
+
# Start of the invoice item period.
|
373
|
+
attr_accessor :start
|
374
|
+
|
375
|
+
def initialize(end_: nil, start: nil)
|
376
|
+
@end = end_
|
377
|
+
@start = start
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
346
381
|
class PriceData < Stripe::RequestParams
|
347
382
|
# 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).
|
348
383
|
attr_accessor :currency
|
@@ -371,6 +406,10 @@ module Stripe
|
|
371
406
|
end
|
372
407
|
# The coupons to redeem into discounts for the item.
|
373
408
|
attr_accessor :discounts
|
409
|
+
# 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`.
|
410
|
+
attr_accessor :metadata
|
411
|
+
# The period associated with this invoice item. Defaults to the current period of the subscription.
|
412
|
+
attr_accessor :period
|
374
413
|
# The ID of the price object. One of `price` or `price_data` is required.
|
375
414
|
attr_accessor :price
|
376
415
|
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
@@ -380,8 +419,18 @@ module Stripe
|
|
380
419
|
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
381
420
|
attr_accessor :tax_rates
|
382
421
|
|
383
|
-
def initialize(
|
422
|
+
def initialize(
|
423
|
+
discounts: nil,
|
424
|
+
metadata: nil,
|
425
|
+
period: nil,
|
426
|
+
price: nil,
|
427
|
+
price_data: nil,
|
428
|
+
quantity: nil,
|
429
|
+
tax_rates: nil
|
430
|
+
)
|
384
431
|
@discounts = discounts
|
432
|
+
@metadata = metadata
|
433
|
+
@period = period
|
385
434
|
@price = price
|
386
435
|
@price_data = price_data
|
387
436
|
@quantity = quantity
|
@@ -1137,9 +1186,9 @@ module Stripe
|
|
1137
1186
|
attr_accessor :collection_method
|
1138
1187
|
# Only return subscriptions that were created during the given date interval.
|
1139
1188
|
attr_accessor :created
|
1140
|
-
# Only return subscriptions whose current_period_end falls within the given date interval.
|
1189
|
+
# Only return subscriptions whose minimum item current_period_end falls within the given date interval.
|
1141
1190
|
attr_accessor :current_period_end
|
1142
|
-
# Only return subscriptions whose current_period_start falls within the given date interval.
|
1191
|
+
# Only return subscriptions whose maximum item current_period_start falls within the given date interval.
|
1143
1192
|
attr_accessor :current_period_start
|
1144
1193
|
# The ID of the customer whose subscriptions will be retrieved.
|
1145
1194
|
attr_accessor :customer
|
@@ -1242,6 +1291,41 @@ module Stripe
|
|
1242
1291
|
end
|
1243
1292
|
end
|
1244
1293
|
|
1294
|
+
class Period < Stripe::RequestParams
|
1295
|
+
class End < Stripe::RequestParams
|
1296
|
+
# A precise Unix timestamp for the end of the invoice item period. Must be greater than or equal to `period.start`.
|
1297
|
+
attr_accessor :timestamp
|
1298
|
+
# Select how to calculate the end of the invoice item period.
|
1299
|
+
attr_accessor :type
|
1300
|
+
|
1301
|
+
def initialize(timestamp: nil, type: nil)
|
1302
|
+
@timestamp = timestamp
|
1303
|
+
@type = type
|
1304
|
+
end
|
1305
|
+
end
|
1306
|
+
|
1307
|
+
class Start < Stripe::RequestParams
|
1308
|
+
# A precise Unix timestamp for the start of the invoice item period. Must be less than or equal to `period.end`.
|
1309
|
+
attr_accessor :timestamp
|
1310
|
+
# Select how to calculate the start of the invoice item period.
|
1311
|
+
attr_accessor :type
|
1312
|
+
|
1313
|
+
def initialize(timestamp: nil, type: nil)
|
1314
|
+
@timestamp = timestamp
|
1315
|
+
@type = type
|
1316
|
+
end
|
1317
|
+
end
|
1318
|
+
# End of the invoice item period.
|
1319
|
+
attr_accessor :end
|
1320
|
+
# Start of the invoice item period.
|
1321
|
+
attr_accessor :start
|
1322
|
+
|
1323
|
+
def initialize(end_: nil, start: nil)
|
1324
|
+
@end = end_
|
1325
|
+
@start = start
|
1326
|
+
end
|
1327
|
+
end
|
1328
|
+
|
1245
1329
|
class PriceData < Stripe::RequestParams
|
1246
1330
|
# 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).
|
1247
1331
|
attr_accessor :currency
|
@@ -1270,6 +1354,10 @@ module Stripe
|
|
1270
1354
|
end
|
1271
1355
|
# The coupons to redeem into discounts for the item.
|
1272
1356
|
attr_accessor :discounts
|
1357
|
+
# 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`.
|
1358
|
+
attr_accessor :metadata
|
1359
|
+
# The period associated with this invoice item. Defaults to the current period of the subscription.
|
1360
|
+
attr_accessor :period
|
1273
1361
|
# The ID of the price object. One of `price` or `price_data` is required.
|
1274
1362
|
attr_accessor :price
|
1275
1363
|
# Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
@@ -1279,8 +1367,18 @@ module Stripe
|
|
1279
1367
|
# The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
|
1280
1368
|
attr_accessor :tax_rates
|
1281
1369
|
|
1282
|
-
def initialize(
|
1370
|
+
def initialize(
|
1371
|
+
discounts: nil,
|
1372
|
+
metadata: nil,
|
1373
|
+
period: nil,
|
1374
|
+
price: nil,
|
1375
|
+
price_data: nil,
|
1376
|
+
quantity: nil,
|
1377
|
+
tax_rates: nil
|
1378
|
+
)
|
1283
1379
|
@discounts = discounts
|
1380
|
+
@metadata = metadata
|
1381
|
+
@period = period
|
1284
1382
|
@price = price
|
1285
1383
|
@price_data = price_data
|
1286
1384
|
@quantity = quantity
|
@@ -1312,15 +1410,15 @@ module Stripe
|
|
1312
1410
|
end
|
1313
1411
|
|
1314
1412
|
class BillingCycleAnchorConfig < Stripe::RequestParams
|
1315
|
-
# The day of the month the
|
1413
|
+
# The day of the month the anchor should be. Ranges from 1 to 31.
|
1316
1414
|
attr_accessor :day_of_month
|
1317
|
-
# The hour of the day the
|
1415
|
+
# The hour of the day the anchor should be. Ranges from 0 to 23.
|
1318
1416
|
attr_accessor :hour
|
1319
|
-
# The minute of the hour the
|
1417
|
+
# The minute of the hour the anchor should be. Ranges from 0 to 59.
|
1320
1418
|
attr_accessor :minute
|
1321
|
-
# The month to start full cycle
|
1419
|
+
# The month to start full cycle periods. Ranges from 1 to 12.
|
1322
1420
|
attr_accessor :month
|
1323
|
-
# The second of the minute the
|
1421
|
+
# The second of the minute the anchor should be. Ranges from 0 to 59.
|
1324
1422
|
attr_accessor :second
|
1325
1423
|
|
1326
1424
|
def initialize(day_of_month: nil, hour: nil, minute: nil, month: nil, second: nil)
|