stripe 19.3.0.pre.alpha.1 → 19.3.0.pre.alpha.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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_requestor.rb +3 -0
  3. data/lib/stripe/api_version.rb +1 -1
  4. data/lib/stripe/event_types.rb +4 -0
  5. data/lib/stripe/events/v2_signals_account_signal_merchant_delinquency_ready_event.rb +44 -0
  6. data/lib/stripe/object_types.rb +6 -0
  7. data/lib/stripe/params/account_create_params.rb +35 -0
  8. data/lib/stripe/params/account_person_create_params.rb +28 -0
  9. data/lib/stripe/params/account_person_update_params.rb +28 -0
  10. data/lib/stripe/params/account_update_params.rb +35 -0
  11. data/lib/stripe/params/delegated_checkout/order_retrieve_params.rb +15 -0
  12. data/lib/stripe/params/delegated_checkout/requested_session_list_orders_params.rb +24 -0
  13. data/lib/stripe/params/delegated_checkout/requested_session_order_list_params.rb +24 -0
  14. data/lib/stripe/params/payment_intent_confirm_params.rb +12 -3
  15. data/lib/stripe/params/payment_intent_create_params.rb +16 -15
  16. data/lib/stripe/params/payment_intent_update_params.rb +12 -3
  17. data/lib/stripe/params/payment_location_capability_list_params.rb +1 -1
  18. data/lib/stripe/params/payment_location_capability_retrieve_params.rb +1 -1
  19. data/lib/stripe/params/payment_location_capability_update_params.rb +1 -1
  20. data/lib/stripe/params/payment_location_list_params.rb +10 -1
  21. data/lib/stripe/params/payment_location_update_params.rb +1 -1
  22. data/lib/stripe/params/token_create_params.rb +70 -0
  23. data/lib/stripe/params/v2/billing/contract_activate_params.rb +17 -0
  24. data/lib/stripe/params/v2/billing/contract_cancel_params.rb +17 -0
  25. data/lib/stripe/params/v2/billing/contract_create_params.rb +831 -0
  26. data/lib/stripe/params/v2/billing/contract_list_params.rb +20 -0
  27. data/lib/stripe/params/v2/billing/contract_retrieve_params.rb +17 -0
  28. data/lib/stripe/params/v2/billing/contract_update_params.rb +522 -0
  29. data/lib/stripe/params/v2/billing/contracts/license_pricing/quantity_change_list_quantity_changes_params.rb +21 -0
  30. data/lib/stripe/params/v2/core/account_create_params.rb +4 -1
  31. data/lib/stripe/params/v2/core/account_update_params.rb +4 -1
  32. data/lib/stripe/params/v2/data/reporting/query_run_retrieve_params.rb +8 -1
  33. data/lib/stripe/params/v2/money_management/outbound_payment_create_params.rb +1 -1
  34. data/lib/stripe/params/v2/money_management/outbound_transfer_create_params.rb +1 -1
  35. data/lib/stripe/params/v2/reporting/report_run_retrieve_params.rb +8 -1
  36. data/lib/stripe/params/v2/signals/account_signal_list_params.rb +35 -0
  37. data/lib/stripe/params/v2/signals/account_signal_retrieve_params.rb +10 -0
  38. data/lib/stripe/params.rb +33 -0
  39. data/lib/stripe/resources/delegated_checkout/order.rb +142 -0
  40. data/lib/stripe/resources/delegated_checkout/order_event.rb +118 -0
  41. data/lib/stripe/resources/delegated_checkout/requested_session.rb +20 -0
  42. data/lib/stripe/resources/issuing/authorization.rb +6 -0
  43. data/lib/stripe/resources/issuing/token.rb +8 -0
  44. data/lib/stripe/resources/payment_intent.rb +2 -0
  45. data/lib/stripe/resources/payment_location.rb +1 -1
  46. data/lib/stripe/resources/payment_location_capability.rb +6 -6
  47. data/lib/stripe/resources/person.rb +26 -0
  48. data/lib/stripe/resources/v2/billing/contract.rb +978 -0
  49. data/lib/stripe/resources/v2/billing/contract_license_pricing_quantity_change.rb +43 -0
  50. data/lib/stripe/resources/v2/data/reporting/query_run.rb +18 -1
  51. data/lib/stripe/resources/v2/reporting/report_run.rb +18 -1
  52. data/lib/stripe/resources/v2/signals/account_signal.rb +144 -0
  53. data/lib/stripe/resources.rb +19 -0
  54. data/lib/stripe/services/delegated_checkout/order_service.rb +19 -0
  55. data/lib/stripe/services/delegated_checkout/requested_session_order_service.rb +19 -0
  56. data/lib/stripe/services/delegated_checkout/requested_session_service.rb +7 -0
  57. data/lib/stripe/services/delegated_checkout_service.rb +2 -1
  58. data/lib/stripe/services/payment_location_capability_service.rb +3 -3
  59. data/lib/stripe/services/v2/billing/contract_service.rb +91 -0
  60. data/lib/stripe/services/v2/billing/contracts/license_pricing/quantity_change_service.rb +25 -0
  61. data/lib/stripe/services/v2/billing/contracts/license_pricing_service.rb +20 -0
  62. data/lib/stripe/services/v2/billing_service.rb +2 -1
  63. data/lib/stripe/services/v2/{payment_service.rb → payments_service.rb} +1 -1
  64. data/lib/stripe/services/v2/signals/account_signal_service.rb +32 -0
  65. data/lib/stripe/services/v2/signals_service.rb +15 -0
  66. data/lib/stripe/services/v2_services.rb +3 -2
  67. data/lib/stripe/services.rb +26 -2
  68. data/lib/stripe/stripe_event_notification_handler.rb +6 -0
  69. data/lib/stripe/version.rb +1 -1
  70. data/rbi/stripe.rbi +4986 -715
  71. metadata +28 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ac4a82166c38ba01597f9e5b66e33933118cd4f66ec1b80a2741bcea9895765
4
- data.tar.gz: 939416a3e6c26a7562c3c50d9ec599e1d093473a632a5a19f0251b26da0ef7db
3
+ metadata.gz: 264fab771119158352f8b34c45f00ea443ce746ab873e518777c3228a0e66f92
4
+ data.tar.gz: 250dc9e48e5853857726238358f8ad8785467039403cf88cb00d1de190ae7f01
5
5
  SHA512:
6
- metadata.gz: 3c47ba2c1263e8258082d0ed18dcea06bec3e835b1eada862db39bb1a0eb7bc7b54fcbc10b1b86f641c0de6ac1ced146ac772d0d7978e9a580ce8d03ab090e72
7
- data.tar.gz: 7fb7701a17412895680e76f2f8d17273f4127a214e7923f9dbf9d8cc2373e762c0b53b51f430408e6e42b3485a33891384f571c0b5445dd1a957bc012ea6c570
6
+ metadata.gz: 161e6ba143626a03a2d38d34e51532dcdf2d2980497c61d24322d1e27258aa662d375b398a87573598e9379e1e5e6fd00d4195cd6720fc6b168fb6534997db95
7
+ data.tar.gz: 87b7ce17cf4ca124d4ef3070a9eaaecad38963ad1951c4d78481bbf5b8d02881ee97ea591dc6c0305311473793bf2e771847608fde694631b4c5fc5be1316a20
@@ -201,6 +201,9 @@ module Stripe
201
201
  )
202
202
  req_opts = RequestOptions.extract_opts_from_hash(req_opts)
203
203
 
204
+ notice = http_resp["stripe-notice"]
205
+ warn("WARNING: #{notice}") if notice
206
+
204
207
  resp = interpret_response(http_resp)
205
208
 
206
209
  # If being called from `APIRequestor#request`, put the last response in
@@ -3,6 +3,6 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2026-05-27.preview"
6
+ CURRENT = "2026-06-03.preview"
7
7
  end
8
8
  end
@@ -638,6 +638,8 @@ module Stripe
638
638
  Events::V2ReportingReportRunUpdatedEvent.lookup_type => Events::V2ReportingReportRunUpdatedEvent,
639
639
  Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent.lookup_type =>
640
640
  Events::V2SignalsAccountSignalFraudulentMerchantReadyEvent,
641
+ Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent.lookup_type =>
642
+ Events::V2SignalsAccountSignalMerchantDelinquencyReadyEvent,
641
643
  # v2 event types: The end of the section generated from our OpenAPI spec
642
644
  }
643
645
  end
@@ -1403,6 +1405,8 @@ module Stripe
1403
1405
  Events::V2ReportingReportRunUpdatedEventNotification,
1404
1406
  Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification.lookup_type =>
1405
1407
  Events::V2SignalsAccountSignalFraudulentMerchantReadyEventNotification,
1408
+ Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification.lookup_type =>
1409
+ Events::V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification,
1406
1410
  # event notification types: The end of the section generated from our OpenAPI spec
1407
1411
  }
1408
1412
  end
@@ -0,0 +1,44 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when a merchant delinquency signal is ready for an account.
7
+ class V2SignalsAccountSignalMerchantDelinquencyReadyEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.signals.account_signal.merchant_delinquency_ready"
10
+ end
11
+
12
+ # Retrieves the related object from the API. Makes an API request on every call.
13
+ def fetch_related_object
14
+ _request(
15
+ method: :get,
16
+ path: related_object.url,
17
+ base_address: :api,
18
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" }
19
+ )
20
+ end
21
+ attr_reader :related_object
22
+ end
23
+
24
+ # Occurs when a merchant delinquency signal is ready for an account.
25
+ class V2SignalsAccountSignalMerchantDelinquencyReadyEventNotification < Stripe::V2::Core::EventNotification
26
+ def self.lookup_type
27
+ "v2.signals.account_signal.merchant_delinquency_ready"
28
+ end
29
+
30
+ attr_reader :related_object
31
+
32
+ # Retrieves the AccountSignal related to this EventNotification from the Stripe API. Makes an API request on every call.
33
+ def fetch_related_object
34
+ resp = @client.raw_request(
35
+ :get,
36
+ related_object.url,
37
+ opts: { stripe_context: context, "Stripe-Request-Trigger": "event=#{id}" },
38
+ usage: ["fetch_related_object"]
39
+ )
40
+ @client.deserialize(resp.http_body, api_mode: Util.get_api_mode(related_object.url))
41
+ end
42
+ end
43
+ end
44
+ end
@@ -62,6 +62,8 @@ module Stripe
62
62
  CustomerBalanceTransaction.object_name => CustomerBalanceTransaction,
63
63
  CustomerCashBalanceTransaction.object_name => CustomerCashBalanceTransaction,
64
64
  CustomerSession.object_name => CustomerSession,
65
+ DelegatedCheckout::Order.object_name => DelegatedCheckout::Order,
66
+ DelegatedCheckout::OrderEvent.object_name => DelegatedCheckout::OrderEvent,
65
67
  DelegatedCheckout::RequestedSession.object_name => DelegatedCheckout::RequestedSession,
66
68
  Discount.object_name => Discount,
67
69
  Dispute.object_name => Dispute,
@@ -219,6 +221,9 @@ module Stripe
219
221
  V2::Billing::CadenceSpendModifier.object_name => V2::Billing::CadenceSpendModifier,
220
222
  V2::Billing::CollectionSetting.object_name => V2::Billing::CollectionSetting,
221
223
  V2::Billing::CollectionSettingVersion.object_name => V2::Billing::CollectionSettingVersion,
224
+ V2::Billing::Contract.object_name => V2::Billing::Contract,
225
+ V2::Billing::ContractLicensePricingQuantityChange.object_name =>
226
+ V2::Billing::ContractLicensePricingQuantityChange,
222
227
  V2::Billing::CustomPricingUnit.object_name => V2::Billing::CustomPricingUnit,
223
228
  V2::Billing::Intent.object_name => V2::Billing::Intent,
224
229
  V2::Billing::IntentAction.object_name => V2::Billing::IntentAction,
@@ -297,6 +302,7 @@ module Stripe
297
302
  V2::Payments::SettlementAllocationIntentSplit,
298
303
  V2::Reporting::Report.object_name => V2::Reporting::Report,
299
304
  V2::Reporting::ReportRun.object_name => V2::Reporting::ReportRun,
305
+ V2::Signals::AccountSignal.object_name => V2::Signals::AccountSignal,
300
306
  V2::Tax::ManualRule.object_name => V2::Tax::ManualRule,
301
307
  # v2 object classes: The end of the section generated from our OpenAPI spec
302
308
  }
@@ -1904,6 +1904,37 @@ module Stripe
1904
1904
  end
1905
1905
  end
1906
1906
 
1907
+ class BirthAddress < ::Stripe::RequestParams
1908
+ # City, district, suburb, town, or village.
1909
+ attr_accessor :city
1910
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1911
+ attr_accessor :country
1912
+ # Address line 1, such as the street, PO Box, or company name.
1913
+ attr_accessor :line1
1914
+ # Address line 2, such as the apartment, suite, unit, or building.
1915
+ attr_accessor :line2
1916
+ # ZIP or postal code.
1917
+ attr_accessor :postal_code
1918
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1919
+ attr_accessor :state
1920
+
1921
+ def initialize(
1922
+ city: nil,
1923
+ country: nil,
1924
+ line1: nil,
1925
+ line2: nil,
1926
+ postal_code: nil,
1927
+ state: nil
1928
+ )
1929
+ @city = city
1930
+ @country = country
1931
+ @line1 = line1
1932
+ @line2 = line2
1933
+ @postal_code = postal_code
1934
+ @state = state
1935
+ end
1936
+ end
1937
+
1907
1938
  class Dob < ::Stripe::RequestParams
1908
1939
  # The day of birth, between 1 and 31.
1909
1940
  attr_accessor :day
@@ -2041,6 +2072,8 @@ module Stripe
2041
2072
  attr_accessor :address_kana
2042
2073
  # The Kanji variation of the individual's primary address (Japan only).
2043
2074
  attr_accessor :address_kanji
2075
+ # Attribute for param field birth_address
2076
+ attr_accessor :birth_address
2044
2077
  # The individual's date of birth.
2045
2078
  attr_accessor :dob
2046
2079
  # The individual's email address.
@@ -2090,6 +2123,7 @@ module Stripe
2090
2123
  address: nil,
2091
2124
  address_kana: nil,
2092
2125
  address_kanji: nil,
2126
+ birth_address: nil,
2093
2127
  dob: nil,
2094
2128
  email: nil,
2095
2129
  first_name: nil,
@@ -2116,6 +2150,7 @@ module Stripe
2116
2150
  @address = address
2117
2151
  @address_kana = address_kana
2118
2152
  @address_kanji = address_kanji
2153
+ @birth_address = birth_address
2119
2154
  @dob = dob
2120
2155
  @email = email
2121
2156
  @first_name = first_name
@@ -120,6 +120,30 @@ module Stripe
120
120
  end
121
121
  end
122
122
 
123
+ class BirthAddress < ::Stripe::RequestParams
124
+ # City, district, suburb, town, or village.
125
+ attr_accessor :city
126
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
127
+ attr_accessor :country
128
+ # Address line 1, such as the street, PO Box, or company name.
129
+ attr_accessor :line1
130
+ # Address line 2, such as the apartment, suite, unit, or building.
131
+ attr_accessor :line2
132
+ # ZIP or postal code.
133
+ attr_accessor :postal_code
134
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
135
+ attr_accessor :state
136
+
137
+ def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
138
+ @city = city
139
+ @country = country
140
+ @line1 = line1
141
+ @line2 = line2
142
+ @postal_code = postal_code
143
+ @state = state
144
+ end
145
+ end
146
+
123
147
  class Dob < ::Stripe::RequestParams
124
148
  # The day of birth, between 1 and 31.
125
149
  attr_accessor :day
@@ -343,6 +367,8 @@ module Stripe
343
367
  attr_accessor :address_kana
344
368
  # The Kanji variation of the person's address (Japan only).
345
369
  attr_accessor :address_kanji
370
+ # The person's place of birth.
371
+ attr_accessor :birth_address
346
372
  # The person's date of birth.
347
373
  attr_accessor :dob
348
374
  # Documents that may be submitted to satisfy various informational requests.
@@ -403,6 +429,7 @@ module Stripe
403
429
  address: nil,
404
430
  address_kana: nil,
405
431
  address_kanji: nil,
432
+ birth_address: nil,
406
433
  dob: nil,
407
434
  documents: nil,
408
435
  email: nil,
@@ -435,6 +462,7 @@ module Stripe
435
462
  @address = address
436
463
  @address_kana = address_kana
437
464
  @address_kanji = address_kanji
465
+ @birth_address = birth_address
438
466
  @dob = dob
439
467
  @documents = documents
440
468
  @email = email
@@ -120,6 +120,30 @@ module Stripe
120
120
  end
121
121
  end
122
122
 
123
+ class BirthAddress < ::Stripe::RequestParams
124
+ # City, district, suburb, town, or village.
125
+ attr_accessor :city
126
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
127
+ attr_accessor :country
128
+ # Address line 1, such as the street, PO Box, or company name.
129
+ attr_accessor :line1
130
+ # Address line 2, such as the apartment, suite, unit, or building.
131
+ attr_accessor :line2
132
+ # ZIP or postal code.
133
+ attr_accessor :postal_code
134
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
135
+ attr_accessor :state
136
+
137
+ def initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
138
+ @city = city
139
+ @country = country
140
+ @line1 = line1
141
+ @line2 = line2
142
+ @postal_code = postal_code
143
+ @state = state
144
+ end
145
+ end
146
+
123
147
  class Dob < ::Stripe::RequestParams
124
148
  # The day of birth, between 1 and 31.
125
149
  attr_accessor :day
@@ -343,6 +367,8 @@ module Stripe
343
367
  attr_accessor :address_kana
344
368
  # The Kanji variation of the person's address (Japan only).
345
369
  attr_accessor :address_kanji
370
+ # The person's place of birth.
371
+ attr_accessor :birth_address
346
372
  # The person's date of birth.
347
373
  attr_accessor :dob
348
374
  # Documents that may be submitted to satisfy various informational requests.
@@ -403,6 +429,7 @@ module Stripe
403
429
  address: nil,
404
430
  address_kana: nil,
405
431
  address_kanji: nil,
432
+ birth_address: nil,
406
433
  dob: nil,
407
434
  documents: nil,
408
435
  email: nil,
@@ -435,6 +462,7 @@ module Stripe
435
462
  @address = address
436
463
  @address_kana = address_kana
437
464
  @address_kanji = address_kanji
465
+ @birth_address = birth_address
438
466
  @dob = dob
439
467
  @documents = documents
440
468
  @email = email
@@ -1823,6 +1823,37 @@ module Stripe
1823
1823
  end
1824
1824
  end
1825
1825
 
1826
+ class BirthAddress < ::Stripe::RequestParams
1827
+ # City, district, suburb, town, or village.
1828
+ attr_accessor :city
1829
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1830
+ attr_accessor :country
1831
+ # Address line 1, such as the street, PO Box, or company name.
1832
+ attr_accessor :line1
1833
+ # Address line 2, such as the apartment, suite, unit, or building.
1834
+ attr_accessor :line2
1835
+ # ZIP or postal code.
1836
+ attr_accessor :postal_code
1837
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1838
+ attr_accessor :state
1839
+
1840
+ def initialize(
1841
+ city: nil,
1842
+ country: nil,
1843
+ line1: nil,
1844
+ line2: nil,
1845
+ postal_code: nil,
1846
+ state: nil
1847
+ )
1848
+ @city = city
1849
+ @country = country
1850
+ @line1 = line1
1851
+ @line2 = line2
1852
+ @postal_code = postal_code
1853
+ @state = state
1854
+ end
1855
+ end
1856
+
1826
1857
  class Dob < ::Stripe::RequestParams
1827
1858
  # The day of birth, between 1 and 31.
1828
1859
  attr_accessor :day
@@ -1960,6 +1991,8 @@ module Stripe
1960
1991
  attr_accessor :address_kana
1961
1992
  # The Kanji variation of the individual's primary address (Japan only).
1962
1993
  attr_accessor :address_kanji
1994
+ # Attribute for param field birth_address
1995
+ attr_accessor :birth_address
1963
1996
  # The individual's date of birth.
1964
1997
  attr_accessor :dob
1965
1998
  # The individual's email address.
@@ -2009,6 +2042,7 @@ module Stripe
2009
2042
  address: nil,
2010
2043
  address_kana: nil,
2011
2044
  address_kanji: nil,
2045
+ birth_address: nil,
2012
2046
  dob: nil,
2013
2047
  email: nil,
2014
2048
  first_name: nil,
@@ -2035,6 +2069,7 @@ module Stripe
2035
2069
  @address = address
2036
2070
  @address_kana = address_kana
2037
2071
  @address_kanji = address_kanji
2072
+ @birth_address = birth_address
2038
2073
  @dob = dob
2039
2074
  @email = email
2040
2075
  @first_name = first_name
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class OrderRetrieveParams < ::Stripe::RequestParams
7
+ # Specifies which fields in the response should be expanded.
8
+ attr_accessor :expand
9
+
10
+ def initialize(expand: nil)
11
+ @expand = expand
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class RequestedSessionListOrdersParams < ::Stripe::RequestParams
7
+ # 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.
8
+ attr_accessor :ending_before
9
+ # Specifies which fields in the response should be expanded.
10
+ attr_accessor :expand
11
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
12
+ attr_accessor :limit
13
+ # 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.
14
+ attr_accessor :starting_after
15
+
16
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
17
+ @ending_before = ending_before
18
+ @expand = expand
19
+ @limit = limit
20
+ @starting_after = starting_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module DelegatedCheckout
6
+ class RequestedSessionOrderListParams < ::Stripe::RequestParams
7
+ # 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.
8
+ attr_accessor :ending_before
9
+ # Specifies which fields in the response should be expanded.
10
+ attr_accessor :expand
11
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
12
+ attr_accessor :limit
13
+ # 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.
14
+ attr_accessor :starting_after
15
+
16
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
17
+ @ending_before = ending_before
18
+ @expand = expand
19
+ @limit = limit
20
+ @starting_after = starting_after
21
+ end
22
+ end
23
+ end
24
+ end
@@ -3332,12 +3332,15 @@ module Stripe
3332
3332
  @staged_purchase = staged_purchase
3333
3333
  end
3334
3334
  end
3335
+ # The category of digital asset being acquired through this account funding transaction.
3336
+ attr_accessor :digital_asset_category
3335
3337
  # Details for a liquid asset (crypto or security) funding transaction.
3336
3338
  attr_accessor :liquid_asset
3337
3339
  # Details for a wallet funding transaction.
3338
3340
  attr_accessor :wallet
3339
3341
 
3340
- def initialize(liquid_asset: nil, wallet: nil)
3342
+ def initialize(digital_asset_category: nil, liquid_asset: nil, wallet: nil)
3343
+ @digital_asset_category = digital_asset_category
3341
3344
  @liquid_asset = liquid_asset
3342
3345
  @wallet = wallet
3343
3346
  end
@@ -3640,12 +3643,15 @@ module Stripe
3640
3643
  @staged_purchase = staged_purchase
3641
3644
  end
3642
3645
  end
3646
+ # The category of digital asset being acquired through this account funding transaction.
3647
+ attr_accessor :digital_asset_category
3643
3648
  # Details for a liquid asset (crypto or security) funding transaction.
3644
3649
  attr_accessor :liquid_asset
3645
3650
  # Details for a wallet funding transaction.
3646
3651
  attr_accessor :wallet
3647
3652
 
3648
- def initialize(liquid_asset: nil, wallet: nil)
3653
+ def initialize(digital_asset_category: nil, liquid_asset: nil, wallet: nil)
3654
+ @digital_asset_category = digital_asset_category
3649
3655
  @liquid_asset = liquid_asset
3650
3656
  @wallet = wallet
3651
3657
  end
@@ -3735,9 +3741,12 @@ module Stripe
3735
3741
  class DepositOptions < ::Stripe::RequestParams
3736
3742
  # The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
3737
3743
  attr_accessor :networks
3744
+ # If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
3745
+ attr_accessor :static_address
3738
3746
 
3739
- def initialize(networks: nil)
3747
+ def initialize(networks: nil, static_address: nil)
3740
3748
  @networks = networks
3749
+ @static_address = static_address
3741
3750
  end
3742
3751
  end
3743
3752
  # Specific configuration for this PaymentIntent when the mode is `deposit`.
@@ -3346,12 +3346,15 @@ module Stripe
3346
3346
  @staged_purchase = staged_purchase
3347
3347
  end
3348
3348
  end
3349
+ # The category of digital asset being acquired through this account funding transaction.
3350
+ attr_accessor :digital_asset_category
3349
3351
  # Details for a liquid asset (crypto or security) funding transaction.
3350
3352
  attr_accessor :liquid_asset
3351
3353
  # Details for a wallet funding transaction.
3352
3354
  attr_accessor :wallet
3353
3355
 
3354
- def initialize(liquid_asset: nil, wallet: nil)
3356
+ def initialize(digital_asset_category: nil, liquid_asset: nil, wallet: nil)
3357
+ @digital_asset_category = digital_asset_category
3355
3358
  @liquid_asset = liquid_asset
3356
3359
  @wallet = wallet
3357
3360
  end
@@ -3654,12 +3657,15 @@ module Stripe
3654
3657
  @staged_purchase = staged_purchase
3655
3658
  end
3656
3659
  end
3660
+ # The category of digital asset being acquired through this account funding transaction.
3661
+ attr_accessor :digital_asset_category
3657
3662
  # Details for a liquid asset (crypto or security) funding transaction.
3658
3663
  attr_accessor :liquid_asset
3659
3664
  # Details for a wallet funding transaction.
3660
3665
  attr_accessor :wallet
3661
3666
 
3662
- def initialize(liquid_asset: nil, wallet: nil)
3667
+ def initialize(digital_asset_category: nil, liquid_asset: nil, wallet: nil)
3668
+ @digital_asset_category = digital_asset_category
3663
3669
  @liquid_asset = liquid_asset
3664
3670
  @wallet = wallet
3665
3671
  end
@@ -3749,9 +3755,12 @@ module Stripe
3749
3755
  class DepositOptions < ::Stripe::RequestParams
3750
3756
  # The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
3751
3757
  attr_accessor :networks
3758
+ # If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
3759
+ attr_accessor :static_address
3752
3760
 
3753
- def initialize(networks: nil)
3761
+ def initialize(networks: nil, static_address: nil)
3754
3762
  @networks = networks
3763
+ @static_address = static_address
3755
3764
  end
3756
3765
  end
3757
3766
  # Specific configuration for this PaymentIntent when the mode is `deposit`.
@@ -6164,22 +6173,14 @@ module Stripe
6164
6173
  end
6165
6174
 
6166
6175
  class PaymentsOrchestration < ::Stripe::RequestParams
6167
- class PaymentDetails < ::Stripe::RequestParams
6168
- # Merchant-provided reference for this payment, used for reconciliation.
6169
- attr_accessor :reference
6170
-
6171
- def initialize(reference: nil)
6172
- @reference = reference
6173
- end
6174
- end
6175
6176
  # Whether this feature is enabled.
6176
6177
  attr_accessor :enabled
6177
- # Payment-level details for the orchestrated payment.
6178
- attr_accessor :payment_details
6178
+ # Merchant-provided reference for this payment, used for reconciliation.
6179
+ attr_accessor :payment_reference
6179
6180
 
6180
- def initialize(enabled: nil, payment_details: nil)
6181
+ def initialize(enabled: nil, payment_reference: nil)
6181
6182
  @enabled = enabled
6182
- @payment_details = payment_details
6183
+ @payment_reference = payment_reference
6183
6184
  end
6184
6185
  end
6185
6186
 
@@ -3324,12 +3324,15 @@ module Stripe
3324
3324
  @staged_purchase = staged_purchase
3325
3325
  end
3326
3326
  end
3327
+ # The category of digital asset being acquired through this account funding transaction.
3328
+ attr_accessor :digital_asset_category
3327
3329
  # Details for a liquid asset (crypto or security) funding transaction.
3328
3330
  attr_accessor :liquid_asset
3329
3331
  # Details for a wallet funding transaction.
3330
3332
  attr_accessor :wallet
3331
3333
 
3332
- def initialize(liquid_asset: nil, wallet: nil)
3334
+ def initialize(digital_asset_category: nil, liquid_asset: nil, wallet: nil)
3335
+ @digital_asset_category = digital_asset_category
3333
3336
  @liquid_asset = liquid_asset
3334
3337
  @wallet = wallet
3335
3338
  end
@@ -3632,12 +3635,15 @@ module Stripe
3632
3635
  @staged_purchase = staged_purchase
3633
3636
  end
3634
3637
  end
3638
+ # The category of digital asset being acquired through this account funding transaction.
3639
+ attr_accessor :digital_asset_category
3635
3640
  # Details for a liquid asset (crypto or security) funding transaction.
3636
3641
  attr_accessor :liquid_asset
3637
3642
  # Details for a wallet funding transaction.
3638
3643
  attr_accessor :wallet
3639
3644
 
3640
- def initialize(liquid_asset: nil, wallet: nil)
3645
+ def initialize(digital_asset_category: nil, liquid_asset: nil, wallet: nil)
3646
+ @digital_asset_category = digital_asset_category
3641
3647
  @liquid_asset = liquid_asset
3642
3648
  @wallet = wallet
3643
3649
  end
@@ -3727,9 +3733,12 @@ module Stripe
3727
3733
  class DepositOptions < ::Stripe::RequestParams
3728
3734
  # The blockchain networks to support for deposits. Learn more about [supported networks and tokens](https://docs.stripe.com/payments/deposit-mode-stablecoin-payments#token-and-network-support).
3729
3735
  attr_accessor :networks
3736
+ # If true, provisions a permanent per-customer deposit address reused across PaymentIntents.
3737
+ attr_accessor :static_address
3730
3738
 
3731
- def initialize(networks: nil)
3739
+ def initialize(networks: nil, static_address: nil)
3732
3740
  @networks = networks
3741
+ @static_address = static_address
3733
3742
  end
3734
3743
  end
3735
3744
  # Specific configuration for this PaymentIntent when the mode is `deposit`.
@@ -5,7 +5,7 @@ module Stripe
5
5
  class PaymentLocationCapabilityListParams < ::Stripe::RequestParams
6
6
  # Specifies which fields in the response should be expanded.
7
7
  attr_accessor :expand
8
- # The location for which the capabilities enable functionality.
8
+ # The payment location that the capabilities enable functionality for.
9
9
  attr_accessor :location
10
10
 
11
11
  def initialize(expand: nil, location: nil)
@@ -5,7 +5,7 @@ module Stripe
5
5
  class PaymentLocationCapabilityRetrieveParams < ::Stripe::RequestParams
6
6
  # Specifies which fields in the response should be expanded.
7
7
  attr_accessor :expand
8
- # The payment location for which the capability enables functionality.
8
+ # The payment location that the capability enables functionality for.
9
9
  attr_accessor :location
10
10
 
11
11
  def initialize(expand: nil, location: nil)
@@ -5,7 +5,7 @@ module Stripe
5
5
  class PaymentLocationCapabilityUpdateParams < ::Stripe::RequestParams
6
6
  # Specifies which fields in the response should be expanded.
7
7
  attr_accessor :expand
8
- # The location for which the capability enables functionality.
8
+ # The location that the capability enables functionality for.
9
9
  attr_accessor :location
10
10
  # To request a new capability for the location, set this to `true`. You can remove it from the location by passing `false`.
11
11
  attr_accessor :requested
@@ -3,11 +3,20 @@
3
3
 
4
4
  module Stripe
5
5
  class PaymentLocationListParams < ::Stripe::RequestParams
6
+ # 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.
7
+ attr_accessor :ending_before
6
8
  # Specifies which fields in the response should be expanded.
7
9
  attr_accessor :expand
10
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
11
+ attr_accessor :limit
12
+ # 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.
13
+ attr_accessor :starting_after
8
14
 
9
- def initialize(expand: nil)
15
+ def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil)
16
+ @ending_before = ending_before
10
17
  @expand = expand
18
+ @limit = limit
19
+ @starting_after = starting_after
11
20
  end
12
21
  end
13
22
  end
@@ -43,7 +43,7 @@ module Stripe
43
43
  attr_accessor :display_name
44
44
  # Specifies which fields in the response should be expanded.
45
45
  attr_accessor :expand
46
- # Pass true when updating location fields that will trigger onboarding review for any of the location's active location capabilities. If this parameter is not set to true, updates that would trigger onboarding review will fail. Only applicable for locations with active location capabilities.
46
+ # Pass true when updating location fields that trigger onboarding review for any of the location's active location capabilities. If this parameter isn't set to true, updates that would trigger onboarding review fail. Only applicable for locations with active location capabilities.
47
47
  attr_accessor :onboarding_data_update_acknowledged
48
48
 
49
49
  def initialize(