stripe 19.6.0.pre.alpha.2 → 19.7.0.pre.alpha.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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_version.rb +1 -1
  3. data/lib/stripe/object_types.rb +1 -0
  4. data/lib/stripe/params/account_session_create_params.rb +1 -1
  5. data/lib/stripe/params/billing_portal/session_create_params.rb +13 -0
  6. data/lib/stripe/params/checkout/session_create_params.rb +8 -17
  7. data/lib/stripe/params/customer_tax_exemption_create_params.rb +55 -0
  8. data/lib/stripe/params/customer_tax_exemption_delete_params.rb +6 -0
  9. data/lib/stripe/params/customer_tax_exemption_list_params.rb +25 -0
  10. data/lib/stripe/params/customer_tax_exemption_retrieve_params.rb +13 -0
  11. data/lib/stripe/params/identity/verification_session_create_params.rb +19 -0
  12. data/lib/stripe/params/identity/verification_session_update_params.rb +20 -1
  13. data/lib/stripe/params/invoice_create_params.rb +72 -0
  14. data/lib/stripe/params/invoice_create_preview_params.rb +2 -2
  15. data/lib/stripe/params/invoice_update_params.rb +72 -0
  16. data/lib/stripe/params/issuing/authorization_create_params.rb +4 -0
  17. data/lib/stripe/params/issuing/card_create_params.rb +22 -0
  18. data/lib/stripe/params/issuing/card_update_params.rb +13 -0
  19. data/lib/stripe/params/issuing/cardholder_create_params.rb +1 -1
  20. data/lib/stripe/params/issuing/cardholder_update_params.rb +1 -1
  21. data/lib/stripe/params/payment_attempt_record_report_authorized_params.rb +48 -1
  22. data/lib/stripe/params/payment_intent_confirm_params.rb +94 -1
  23. data/lib/stripe/params/payment_intent_create_params.rb +94 -1
  24. data/lib/stripe/params/payment_intent_update_params.rb +94 -1
  25. data/lib/stripe/params/{payment_record_create_params.rb → payment_record_report_dispute_params.rb} +1 -1
  26. data/lib/stripe/params/subscription_create_params.rb +71 -2
  27. data/lib/stripe/params/subscription_schedule_create_params.rb +1 -1
  28. data/lib/stripe/params/subscription_schedule_update_params.rb +1 -1
  29. data/lib/stripe/params/subscription_update_params.rb +71 -2
  30. data/lib/stripe/params/test_helpers/issuing/authorization_create_params.rb +4 -0
  31. data/lib/stripe/params/v2/core/account_create_params.rb +32 -0
  32. data/lib/stripe/params/v2/core/account_update_params.rb +32 -0
  33. data/lib/stripe/params.rb +10 -2
  34. data/lib/stripe/request_params.rb +30 -1
  35. data/lib/stripe/resources/account.rb +30 -4
  36. data/lib/stripe/resources/account_session.rb +30 -0
  37. data/lib/stripe/resources/bank_account.rb +30 -2
  38. data/lib/stripe/resources/capability.rb +30 -2
  39. data/lib/stripe/resources/charge.rb +4 -17
  40. data/lib/stripe/resources/checkout/session.rb +34 -19
  41. data/lib/stripe/resources/confirmation_token.rb +0 -13
  42. data/lib/stripe/resources/customer.rb +1 -0
  43. data/lib/stripe/resources/customer_tax_exemption.rb +70 -0
  44. data/lib/stripe/resources/dispute.rb +1 -1
  45. data/lib/stripe/resources/ephemeral_key.rb +4 -0
  46. data/lib/stripe/resources/financial_connections/transaction.rb +26 -3
  47. data/lib/stripe/resources/invoice.rb +48 -1
  48. data/lib/stripe/resources/issuing/authorization.rb +2 -0
  49. data/lib/stripe/resources/issuing/card.rb +22 -0
  50. data/lib/stripe/resources/issuing/cardholder.rb +1 -1
  51. data/lib/stripe/resources/payment_attempt_record.rb +0 -16
  52. data/lib/stripe/resources/payment_intent.rb +47 -25
  53. data/lib/stripe/resources/payment_record.rb +16 -22
  54. data/lib/stripe/resources/person.rb +30 -2
  55. data/lib/stripe/resources/quote_preview_invoice.rb +48 -1
  56. data/lib/stripe/resources/subscription.rb +46 -3
  57. data/lib/stripe/resources/treasury/financial_account.rb +2 -2
  58. data/lib/stripe/resources/v2/core/account.rb +146 -0
  59. data/lib/stripe/resources/v2/iam/activity_log.rb +162 -1
  60. data/lib/stripe/resources.rb +2 -0
  61. data/lib/stripe/services/customer_service.rb +2 -1
  62. data/lib/stripe/services/customer_tax_exemption_service.rb +50 -0
  63. data/lib/stripe/services/payment_record_service.rb +9 -9
  64. data/lib/stripe/services.rb +2 -0
  65. data/lib/stripe/stripe_client.rb +22 -0
  66. data/lib/stripe/stripe_event_notification_handler.rb +971 -1784
  67. data/lib/stripe/stripe_object.rb +28 -1
  68. data/lib/stripe/v2_type_coercion.rb +35 -2
  69. data/lib/stripe/version.rb +1 -1
  70. data/rbi/stripe/stripe_client.rbi +21 -0
  71. data/rbi/stripe.rbi +2295 -207
  72. metadata +9 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e747ec38e78a2cce5154bc5dd8680438e30cb711bd330e7ebb0621bfbf9ada96
4
- data.tar.gz: 8f66e5168e6469a73a2ff77581de96d70e08e3d4859e51654d5c59e523f2d006
3
+ metadata.gz: 5653fbed13b8430be9d51388323134d5791388bf26b9ee45124aebdfb1a952ad
4
+ data.tar.gz: a3389ba99a2a8a4d9eef6f5a25e9a7b26db2da531288429b7247ac4da22b0cff
5
5
  SHA512:
6
- metadata.gz: a72057b85f4ed9cbc8fa5d24a829fe51f2348d6d4334edd9b64fd0dbdd82f691e488b64b9990439d72d3744c15e7d33753f7ac90faaeae6a24f69998ae310471
7
- data.tar.gz: 34c2b31b6bf1ed98cbf6655e1024f349941b98780d4532e2c3f46559858236cf4d122668c149fb3fb7dae7abff47d417fe1a832f2ffdf5c2d4d881d620f18e69
6
+ metadata.gz: 448c9effd99956ca82b579b115d830a3abc307c5f763c29a7c1438af7290a7ec20f0a871705c381303a6dd2e39402b2e4dac520ce6b20a572c7cb088741844f3
7
+ data.tar.gz: 6843fd6cdc991677544106bb51c4ffbeace9a7535d581d4e9e26a987302af992b5c48f7f636a41f916f6fef27678ea6745b8dafb9eaf409050d48285acd9005c
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-08-12.preview"
6
+ CURRENT = "2026-08-26.preview"
7
7
  CURRENT_MAJOR = ""
8
8
  end
9
9
  end
@@ -70,6 +70,7 @@ module Stripe
70
70
  CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
71
71
  CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
72
72
  CustomerSession.object_name => CustomerSession,
73
+ CustomerTaxExemption.object_name => CustomerTaxExemption,
73
74
  DelegatedCheckout::Order.object_name => DelegatedCheckout::Order,
74
75
  DelegatedCheckout::OrderEvent.object_name => DelegatedCheckout::OrderEvent,
75
76
  DelegatedCheckout::RequestedSession.object_name => DelegatedCheckout::RequestedSession,
@@ -545,7 +545,7 @@ module Stripe
545
545
  class Features < ::Stripe::RequestParams; end
546
546
  # Whether the embedded component is enabled.
547
547
  attr_accessor :enabled
548
- # An empty list, because this embedded component has no features.
548
+ # The list of features enabled in the embedded component.
549
549
  attr_accessor :features
550
550
 
551
551
  def initialize(enabled: nil, features: nil)
@@ -68,6 +68,15 @@ module Stripe
68
68
  end
69
69
  end
70
70
 
71
+ class SubscriptionPause < ::Stripe::RequestParams
72
+ # The ID of the subscription to be paused.
73
+ attr_accessor :subscription
74
+
75
+ def initialize(subscription: nil)
76
+ @subscription = subscription
77
+ end
78
+ end
79
+
71
80
  class SubscriptionUpdate < ::Stripe::RequestParams
72
81
  # The ID of the subscription to be updated.
73
82
  attr_accessor :subscription
@@ -121,6 +130,8 @@ module Stripe
121
130
  attr_accessor :after_completion
122
131
  # Configuration when `flow_data.type=subscription_cancel`.
123
132
  attr_accessor :subscription_cancel
133
+ # Configuration when `flow_data.type=subscription_pause`.
134
+ attr_accessor :subscription_pause
124
135
  # Configuration when `flow_data.type=subscription_update`.
125
136
  attr_accessor :subscription_update
126
137
  # Configuration when `flow_data.type=subscription_update_confirm`.
@@ -131,12 +142,14 @@ module Stripe
131
142
  def initialize(
132
143
  after_completion: nil,
133
144
  subscription_cancel: nil,
145
+ subscription_pause: nil,
134
146
  subscription_update: nil,
135
147
  subscription_update_confirm: nil,
136
148
  type: nil
137
149
  )
138
150
  @after_completion = after_completion
139
151
  @subscription_cancel = subscription_cancel
152
+ @subscription_pause = subscription_pause
140
153
  @subscription_update = subscription_update
141
154
  @subscription_update_confirm = subscription_update_confirm
142
155
  @type = type
@@ -1124,26 +1124,17 @@ module Stripe
1124
1124
  attr_accessor :on_behalf_of
1125
1125
  # Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
1126
1126
  attr_accessor :receipt_email
1127
- # Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment
1128
- # method collected by this Checkout Session.
1127
+ # Indicates that you intend to [make future payments](https://docs.stripe.com/payments/payment-intents#future-usage) with the payment method collected by this Checkout Session.
1129
1128
  #
1130
- # When setting this to `on_session`, Checkout will show a notice to the
1131
- # customer that their payment details will be saved.
1129
+ # When setting this to `on_session`, Checkout will show a notice to the customer that their payment details will be saved.
1132
1130
  #
1133
- # When setting this to `off_session`, Checkout will show a notice to the
1134
- # customer that their payment details will be saved and used for future
1135
- # payments.
1131
+ # When setting this to `off_session`, Checkout will show a notice to the customer that their payment details will be saved and used for future payments.
1136
1132
  #
1137
- # If a Customer has been provided or Checkout creates a new Customer,
1138
- # Checkout will attach the payment method to the Customer.
1133
+ # If a Customer has been provided or Checkout creates a new Customer, Checkout will attach the payment method to the Customer.
1139
1134
  #
1140
- # If Checkout does not create a Customer, the payment method is not attached
1141
- # to a Customer. To reuse the payment method, you can retrieve it from the
1142
- # Checkout Session's PaymentIntent.
1135
+ # If Checkout does not create a Customer, the payment method is not attached to a Customer. To reuse the payment method, you can retrieve it from the Checkout Session's PaymentIntent.
1143
1136
  #
1144
- # When processing card payments, Checkout also uses `setup_future_usage`
1145
- # to dynamically optimize your payment flow and comply with regional
1146
- # legislation and network rules, such as SCA.
1137
+ # When processing card payments, Checkout also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as SCA.
1147
1138
  attr_accessor :setup_future_usage
1148
1139
  # Shipping information for this payment.
1149
1140
  attr_accessor :shipping
@@ -2568,7 +2559,7 @@ module Stripe
2568
2559
  #
2569
2560
  # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2570
2561
  #
2571
- # When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2562
+ # This parameter is only supported when `ui_mode=elements`.
2572
2563
  attr_accessor :shipping_details
2573
2564
 
2574
2565
  def initialize(line_items: nil, shipping_details: nil)
@@ -2592,7 +2583,7 @@ module Stripe
2592
2583
  #
2593
2584
  # Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
2594
2585
  #
2595
- # When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
2586
+ # This parameter is only supported when `ui_mode=elements`.
2596
2587
  attr_accessor :update_shipping_details
2597
2588
 
2598
2589
  def initialize(
@@ -0,0 +1,55 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class CustomerTaxExemptionCreateParams < ::Stripe::RequestParams
6
+ class Ca < ::Stripe::RequestParams
7
+ # Two-letter Canadian province code (ISO 3166-2). Required when tax_type is pst, qst, or rst.
8
+ attr_accessor :state
9
+ # The type of Canadian tax (gst_hst, PST, QST, RST).
10
+ attr_accessor :tax_type
11
+
12
+ def initialize(state: nil, tax_type: nil)
13
+ @state = state
14
+ @tax_type = tax_type
15
+ end
16
+ end
17
+
18
+ class Us < ::Stripe::RequestParams
19
+ # Two-letter US state code (ISO 3166-2).
20
+ attr_accessor :state
21
+
22
+ def initialize(state: nil)
23
+ @state = state
24
+ end
25
+ end
26
+ # Canada-specific exemption details. Required when country is CA; must be absent otherwise.
27
+ attr_accessor :ca
28
+ # Two-letter ISO country code for the exemption location.
29
+ attr_accessor :country
30
+ # ISO 8601 date (YYYY-MM-DD) when the exemption becomes effective. Must be no more than one year after today's UTC date (inclusive).
31
+ attr_accessor :effective_date
32
+ # Specifies which fields in the response should be expanded.
33
+ attr_accessor :expand
34
+ # ISO 8601 date (YYYY-MM-DD) when the exemption expires.
35
+ attr_accessor :expiration_date
36
+ # US-specific exemption details. Required when country is US; must be absent otherwise.
37
+ attr_accessor :us
38
+
39
+ def initialize(
40
+ ca: nil,
41
+ country: nil,
42
+ effective_date: nil,
43
+ expand: nil,
44
+ expiration_date: nil,
45
+ us: nil
46
+ )
47
+ @ca = ca
48
+ @country = country
49
+ @effective_date = effective_date
50
+ @expand = expand
51
+ @expiration_date = expiration_date
52
+ @us = us
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,6 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class CustomerTaxExemptionDeleteParams < ::Stripe::RequestParams; end
6
+ end
@@ -0,0 +1,25 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class CustomerTaxExemptionListParams < ::Stripe::RequestParams
6
+ # Filter by two-letter ISO country code (ISO 3166-1 alpha-2).
7
+ attr_accessor :country
8
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
9
+ attr_accessor :ending_before
10
+ # Specifies which fields in the response should be expanded.
11
+ attr_accessor :expand
12
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
13
+ attr_accessor :limit
14
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
15
+ attr_accessor :starting_after
16
+
17
+ def initialize(country: nil, ending_before: nil, expand: nil, limit: nil, starting_after: nil)
18
+ @country = country
19
+ @ending_before = ending_before
20
+ @expand = expand
21
+ @limit = limit
22
+ @starting_after = starting_after
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ class CustomerTaxExemptionRetrieveParams < ::Stripe::RequestParams
6
+ # Specifies which fields in the response should be expanded.
7
+ attr_accessor :expand
8
+
9
+ def initialize(expand: nil)
10
+ @expand = expand
11
+ end
12
+ end
13
+ end
@@ -58,6 +58,21 @@ module Stripe
58
58
  @person = person
59
59
  end
60
60
  end
61
+
62
+ class UserConsent < ::Stripe::RequestParams
63
+ # The time at which the user gave consent, as a Unix timestamp.
64
+ attr_accessor :date
65
+ # The IP address of the user when they gave consent.
66
+ attr_accessor :ip
67
+ # The user agent of the browser or device the user used to give consent.
68
+ attr_accessor :user_agent
69
+
70
+ def initialize(date: nil, ip: nil, user_agent: nil)
71
+ @date = date
72
+ @ip = ip
73
+ @user_agent = user_agent
74
+ end
75
+ end
61
76
  # A string to reference this user. This can be a customer ID, a session ID, or similar, and can be used to reconcile this verification with your internal systems.
62
77
  attr_accessor :client_reference_id
63
78
  # Confirm and submit the provided details for verification.
@@ -80,6 +95,8 @@ module Stripe
80
95
  attr_accessor :return_url
81
96
  # The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. You must provide a `type` if not passing `verification_flow`.
82
97
  attr_accessor :type
98
+ # Details on the user's consent to Stripe Terms of Service and Privacy Policy.
99
+ attr_accessor :user_consent
83
100
  # The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows.
84
101
  attr_accessor :verification_flow
85
102
 
@@ -95,6 +112,7 @@ module Stripe
95
112
  related_person: nil,
96
113
  return_url: nil,
97
114
  type: nil,
115
+ user_consent: nil,
98
116
  verification_flow: nil
99
117
  )
100
118
  @client_reference_id = client_reference_id
@@ -108,6 +126,7 @@ module Stripe
108
126
  @related_person = related_person
109
127
  @return_url = return_url
110
128
  @type = type
129
+ @user_consent = user_consent
111
130
  @verification_flow = verification_flow
112
131
  end
113
132
  end
@@ -46,6 +46,21 @@ module Stripe
46
46
  @phone = phone
47
47
  end
48
48
  end
49
+
50
+ class UserConsent < ::Stripe::RequestParams
51
+ # The time at which the user gave consent, as a Unix timestamp.
52
+ attr_accessor :date
53
+ # The IP address of the user when they gave consent.
54
+ attr_accessor :ip
55
+ # The user agent of the browser or device the user used to give consent.
56
+ attr_accessor :user_agent
57
+
58
+ def initialize(date: nil, ip: nil, user_agent: nil)
59
+ @date = date
60
+ @ip = ip
61
+ @user_agent = user_agent
62
+ end
63
+ end
49
64
  # Confirm and submit the provided details for verification.
50
65
  attr_accessor :confirm
51
66
  # Specifies which fields in the response should be expanded.
@@ -58,6 +73,8 @@ module Stripe
58
73
  attr_accessor :provided_details
59
74
  # The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed.
60
75
  attr_accessor :type
76
+ # Details on the user's consent to Stripe Terms of Service and Privacy Policy.
77
+ attr_accessor :user_consent
61
78
 
62
79
  def initialize(
63
80
  confirm: nil,
@@ -65,7 +82,8 @@ module Stripe
65
82
  metadata: nil,
66
83
  options: nil,
67
84
  provided_details: nil,
68
- type: nil
85
+ type: nil,
86
+ user_consent: nil
69
87
  )
70
88
  @confirm = confirm
71
89
  @expand = expand
@@ -73,6 +91,7 @@ module Stripe
73
91
  @options = options
74
92
  @provided_details = provided_details
75
93
  @type = type
94
+ @user_consent = user_consent
76
95
  end
77
96
  end
78
97
  end
@@ -163,6 +163,74 @@ module Stripe
163
163
  end
164
164
  end
165
165
 
166
+ class Billie < ::Stripe::RequestParams
167
+ class CompanyDetails < ::Stripe::RequestParams
168
+ class RegisteredAddress < ::Stripe::RequestParams
169
+ # City, district, suburb, town, or village.
170
+ attr_accessor :city
171
+ # Two-letter country code.
172
+ attr_accessor :country
173
+ # Address line 1 (for example, street, PO Box, or company name).
174
+ attr_accessor :line1
175
+ # Address line 2 (for example, apartment, suite, unit, or building).
176
+ attr_accessor :line2
177
+ # ZIP or postal code.
178
+ attr_accessor :postal_code
179
+ # State, county, province, or region.
180
+ attr_accessor :state
181
+
182
+ def initialize(
183
+ city: nil,
184
+ country: nil,
185
+ line1: nil,
186
+ line2: nil,
187
+ postal_code: nil,
188
+ state: nil
189
+ )
190
+ @city = city
191
+ @country = country
192
+ @line1 = line1
193
+ @line2 = line2
194
+ @postal_code = postal_code
195
+ @state = state
196
+ end
197
+ end
198
+ # The address the company or entity is registered with.
199
+ attr_accessor :registered_address
200
+ # Company or entity name.
201
+ attr_accessor :registered_name
202
+ # The official registration number for the given registration type.
203
+ attr_accessor :registration_number
204
+ # Type of registration the company or entity holds in their registered country.
205
+ attr_accessor :registration_type
206
+ # VAT ID number.
207
+ attr_accessor :vat
208
+
209
+ def initialize(
210
+ registered_address: nil,
211
+ registered_name: nil,
212
+ registration_number: nil,
213
+ registration_type: nil,
214
+ vat: nil
215
+ )
216
+ @registered_address = registered_address
217
+ @registered_name = registered_name
218
+ @registration_number = registration_number
219
+ @registration_type = registration_type
220
+ @vat = vat
221
+ end
222
+ end
223
+ # Registration details about the buyer's organization.
224
+ attr_accessor :company_details
225
+ # An identifier or reference that this payment corresponds to.
226
+ attr_accessor :reference
227
+
228
+ def initialize(company_details: nil, reference: nil)
229
+ @company_details = company_details
230
+ @reference = reference
231
+ end
232
+ end
233
+
166
234
  class Bizum < ::Stripe::RequestParams; end
167
235
  class Blik < ::Stripe::RequestParams; end
168
236
 
@@ -355,6 +423,8 @@ module Stripe
355
423
  attr_accessor :acss_debit
356
424
  # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
357
425
  attr_accessor :bancontact
426
+ # If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice’s PaymentIntent.
427
+ attr_accessor :billie
358
428
  # If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice’s PaymentIntent.
359
429
  attr_accessor :bizum
360
430
  # If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice’s PaymentIntent.
@@ -385,6 +455,7 @@ module Stripe
385
455
  def initialize(
386
456
  acss_debit: nil,
387
457
  bancontact: nil,
458
+ billie: nil,
388
459
  bizum: nil,
389
460
  blik: nil,
390
461
  card: nil,
@@ -401,6 +472,7 @@ module Stripe
401
472
  )
402
473
  @acss_debit = acss_debit
403
474
  @bancontact = bancontact
475
+ @billie = billie
404
476
  @bizum = bizum
405
477
  @blik = blik
406
478
  @card = card
@@ -1178,7 +1178,7 @@ module Stripe
1178
1178
  end
1179
1179
  # Configure billing schedule differently for individual subscription items.
1180
1180
  attr_accessor :applies_to
1181
- # The end date for the billing schedule.
1181
+ # The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
1182
1182
  attr_accessor :bill_until
1183
1183
  # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
1184
1184
  attr_accessor :key
@@ -2087,7 +2087,7 @@ module Stripe
2087
2087
  end
2088
2088
  # Configure billing schedule differently for individual subscription items.
2089
2089
  attr_accessor :applies_to
2090
- # The end date for the billing schedule.
2090
+ # The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
2091
2091
  attr_accessor :bill_until
2092
2092
  # Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
2093
2093
  attr_accessor :key
@@ -142,6 +142,74 @@ module Stripe
142
142
  end
143
143
  end
144
144
 
145
+ class Billie < ::Stripe::RequestParams
146
+ class CompanyDetails < ::Stripe::RequestParams
147
+ class RegisteredAddress < ::Stripe::RequestParams
148
+ # City, district, suburb, town, or village.
149
+ attr_accessor :city
150
+ # Two-letter country code.
151
+ attr_accessor :country
152
+ # Address line 1 (for example, street, PO Box, or company name).
153
+ attr_accessor :line1
154
+ # Address line 2 (for example, apartment, suite, unit, or building).
155
+ attr_accessor :line2
156
+ # ZIP or postal code.
157
+ attr_accessor :postal_code
158
+ # State, county, province, or region.
159
+ attr_accessor :state
160
+
161
+ def initialize(
162
+ city: nil,
163
+ country: nil,
164
+ line1: nil,
165
+ line2: nil,
166
+ postal_code: nil,
167
+ state: nil
168
+ )
169
+ @city = city
170
+ @country = country
171
+ @line1 = line1
172
+ @line2 = line2
173
+ @postal_code = postal_code
174
+ @state = state
175
+ end
176
+ end
177
+ # The address the company or entity is registered with.
178
+ attr_accessor :registered_address
179
+ # Company or entity name.
180
+ attr_accessor :registered_name
181
+ # The official registration number for the given registration type.
182
+ attr_accessor :registration_number
183
+ # Type of registration the company or entity holds in their registered country.
184
+ attr_accessor :registration_type
185
+ # VAT ID number.
186
+ attr_accessor :vat
187
+
188
+ def initialize(
189
+ registered_address: nil,
190
+ registered_name: nil,
191
+ registration_number: nil,
192
+ registration_type: nil,
193
+ vat: nil
194
+ )
195
+ @registered_address = registered_address
196
+ @registered_name = registered_name
197
+ @registration_number = registration_number
198
+ @registration_type = registration_type
199
+ @vat = vat
200
+ end
201
+ end
202
+ # Registration details about the buyer's organization.
203
+ attr_accessor :company_details
204
+ # An identifier or reference that this payment corresponds to.
205
+ attr_accessor :reference
206
+
207
+ def initialize(company_details: nil, reference: nil)
208
+ @company_details = company_details
209
+ @reference = reference
210
+ end
211
+ end
212
+
145
213
  class Bizum < ::Stripe::RequestParams; end
146
214
  class Blik < ::Stripe::RequestParams; end
147
215
 
@@ -334,6 +402,8 @@ module Stripe
334
402
  attr_accessor :acss_debit
335
403
  # If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice’s PaymentIntent.
336
404
  attr_accessor :bancontact
405
+ # If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice’s PaymentIntent.
406
+ attr_accessor :billie
337
407
  # If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice’s PaymentIntent.
338
408
  attr_accessor :bizum
339
409
  # If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice’s PaymentIntent.
@@ -364,6 +434,7 @@ module Stripe
364
434
  def initialize(
365
435
  acss_debit: nil,
366
436
  bancontact: nil,
437
+ billie: nil,
367
438
  bizum: nil,
368
439
  blik: nil,
369
440
  card: nil,
@@ -380,6 +451,7 @@ module Stripe
380
451
  )
381
452
  @acss_debit = acss_debit
382
453
  @bancontact = bancontact
454
+ @billie = billie
383
455
  @bizum = bizum
384
456
  @blik = blik
385
457
  @card = card
@@ -424,6 +424,8 @@ module Stripe
424
424
  attr_accessor :merchant_data
425
425
  # Details about the authorization, such as identifiers, set by the card network.
426
426
  attr_accessor :network_data
427
+ # The point-of-sale initiation condition for this test authorization.
428
+ attr_accessor :pos_condition
427
429
  # Stripe’s assessment of the fraud risk for this authorization.
428
430
  attr_accessor :risk_assessment
429
431
  # Verifications that Stripe performed on information that the cardholder provided to the merchant.
@@ -447,6 +449,7 @@ module Stripe
447
449
  merchant_currency: nil,
448
450
  merchant_data: nil,
449
451
  network_data: nil,
452
+ pos_condition: nil,
450
453
  risk_assessment: nil,
451
454
  verification_data: nil,
452
455
  wallet: nil
@@ -466,6 +469,7 @@ module Stripe
466
469
  @merchant_currency = merchant_currency
467
470
  @merchant_data = merchant_data
468
471
  @network_data = network_data
472
+ @pos_condition = pos_condition
469
473
  @risk_assessment = risk_assessment
470
474
  @verification_data = verification_data
471
475
  @wallet = wallet
@@ -4,6 +4,24 @@
4
4
  module Stripe
5
5
  module Issuing
6
6
  class CardCreateParams < ::Stripe::RequestParams
7
+ class CryptoWallet < ::Stripe::RequestParams
8
+ # The public address of the crypto wallet.
9
+ attr_accessor :address
10
+ # The blockchain network the wallet is on.
11
+ attr_accessor :chain
12
+ # The cryptocurrency held in the wallet.
13
+ attr_accessor :currency
14
+ # The type of wallet (standard or bridge_wallet).
15
+ attr_accessor :type
16
+
17
+ def initialize(address: nil, chain: nil, currency: nil, type: nil)
18
+ @address = address
19
+ @chain = chain
20
+ @currency = currency
21
+ @type = type
22
+ end
23
+ end
24
+
7
25
  class LifecycleControls < ::Stripe::RequestParams
8
26
  class CancelAfter < ::Stripe::RequestParams
9
27
  # The card is automatically cancelled when it makes this number of non-zero payment authorizations and transactions. The count includes penny authorizations, but doesn't include non-payment actions, such as authorization advice.
@@ -171,6 +189,8 @@ module Stripe
171
189
  end
172
190
  # The [Cardholder](https://docs.stripe.com/api#issuing_cardholder_object) object with which the card will be associated.
173
191
  attr_accessor :cardholder
192
+ # The crypto wallet to attach this card to for Bridge integration.
193
+ attr_accessor :crypto_wallet
174
194
  # The currency for the card.
175
195
  attr_accessor :currency
176
196
  # The desired expiration month (1-12) for this card if [specifying a custom expiration date](/issuing/cards/virtual/issue-cards?testing-method=with-code#exp-dates).
@@ -208,6 +228,7 @@ module Stripe
208
228
 
209
229
  def initialize(
210
230
  cardholder: nil,
231
+ crypto_wallet: nil,
211
232
  currency: nil,
212
233
  exp_month: nil,
213
234
  exp_year: nil,
@@ -227,6 +248,7 @@ module Stripe
227
248
  type: nil
228
249
  )
229
250
  @cardholder = cardholder
251
+ @crypto_wallet = crypto_wallet
230
252
  @currency = currency
231
253
  @exp_month = exp_month
232
254
  @exp_year = exp_year
@@ -4,6 +4,15 @@
4
4
  module Stripe
5
5
  module Issuing
6
6
  class CardUpdateParams < ::Stripe::RequestParams
7
+ class CryptoWallet < ::Stripe::RequestParams
8
+ # Updates the crypto wallet's funding currency for subsequent card movements. This doesn't convert existing balances or change the wallet's address, chain, or type.
9
+ attr_accessor :currency
10
+
11
+ def initialize(currency: nil)
12
+ @currency = currency
13
+ end
14
+ end
15
+
7
16
  class Pin < ::Stripe::RequestParams
8
17
  # The card's desired new PIN, encrypted under Stripe's public key.
9
18
  attr_accessor :encrypted_number
@@ -154,6 +163,8 @@ module Stripe
154
163
  end
155
164
  # Reason why the `status` of this card is `canceled`.
156
165
  attr_accessor :cancellation_reason
166
+ # Updates the cryptocurrency used to fund this card's existing crypto wallet.
167
+ attr_accessor :crypto_wallet
157
168
  # Specifies which fields in the response should be expanded.
158
169
  attr_accessor :expand
159
170
  # Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
@@ -173,6 +184,7 @@ module Stripe
173
184
 
174
185
  def initialize(
175
186
  cancellation_reason: nil,
187
+ crypto_wallet: nil,
176
188
  expand: nil,
177
189
  metadata: nil,
178
190
  personalization_design: nil,
@@ -183,6 +195,7 @@ module Stripe
183
195
  status: nil
184
196
  )
185
197
  @cancellation_reason = cancellation_reason
198
+ @crypto_wallet = crypto_wallet
186
199
  @expand = expand
187
200
  @metadata = metadata
188
201
  @personalization_design = personalization_design