stripe 18.1.0.pre.alpha.2 → 18.1.0.pre.alpha.4

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/event_types.rb +20 -0
  3. data/lib/stripe/events/v2_iam_api_key_created_event.rb +20 -0
  4. data/lib/stripe/events/v2_iam_api_key_default_secret_revealed_event.rb +20 -0
  5. data/lib/stripe/events/v2_iam_api_key_expired_event.rb +20 -0
  6. data/lib/stripe/events/v2_iam_api_key_permissions_updated_event.rb +20 -0
  7. data/lib/stripe/events/v2_iam_api_key_rotated_event.rb +38 -0
  8. data/lib/stripe/events/v2_iam_api_key_updated_event.rb +20 -0
  9. data/lib/stripe/object_types.rb +1 -0
  10. data/lib/stripe/params/account_create_params.rb +4 -4
  11. data/lib/stripe/params/account_person_create_params.rb +4 -4
  12. data/lib/stripe/params/account_person_update_params.rb +4 -4
  13. data/lib/stripe/params/account_update_params.rb +4 -4
  14. data/lib/stripe/params/delegated_checkout/requested_session_create_params.rb +2 -2
  15. data/lib/stripe/params/delegated_checkout/requested_session_update_params.rb +2 -2
  16. data/lib/stripe/params/payment_intent_create_params.rb +14 -1
  17. data/lib/stripe/params/product_catalog/trial_offer_create_params.rb +60 -0
  18. data/lib/stripe/params/token_create_params.rb +8 -8
  19. data/lib/stripe/params/v2/core/event_list_params.rb +4 -1
  20. data/lib/stripe/params/v2/core/event_retrieve_params.rb +8 -1
  21. data/lib/stripe/params.rb +1 -0
  22. data/lib/stripe/resources/account_session.rb +27 -0
  23. data/lib/stripe/resources/delegated_checkout/requested_session.rb +6 -14
  24. data/lib/stripe/resources/payment_intent.rb +16 -0
  25. data/lib/stripe/resources/person.rb +2 -2
  26. data/lib/stripe/resources/product_catalog/trial_offer.rb +101 -0
  27. data/lib/stripe/resources/v2/core/event.rb +50 -1
  28. data/lib/stripe/resources/v2/money_management/received_credit.rb +16 -0
  29. data/lib/stripe/resources/v2/money_management/received_debit.rb +37 -1
  30. data/lib/stripe/resources.rb +7 -0
  31. data/lib/stripe/services/product_catalog/trial_offer_service.rb +19 -0
  32. data/lib/stripe/services/product_catalog_service.rb +13 -0
  33. data/lib/stripe/services/v1_services.rb +2 -1
  34. data/lib/stripe/services.rb +2 -0
  35. data/lib/stripe/stripe_object.rb +22 -1
  36. data/lib/stripe/version.rb +1 -1
  37. data/rbi/stripe.rbi +398 -56
  38. metadata +12 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30ad9aa4a31acdb141705e03d7f76000d1d5cad439a8d392aa422f2c1d99ad8d
4
- data.tar.gz: '00484e0942ec1c2458128d51d3983692e1cdf3ceeb6bdf324329c95a6982eae0'
3
+ metadata.gz: 79581144d5d51843e5a8c338736096c241555d9e7e82ba36a0335757556c12d2
4
+ data.tar.gz: 394b2d88eb250fb763c6a8a1d3150064aa02a0d6fff9ca3bc87525fe130bf764
5
5
  SHA512:
6
- metadata.gz: 9287d0d90909a4ed178f7027e408d882ee840872a7d8417c44c4f44bc5bd061c6605e0590effe273a468eb691386ca60c12a08293cfc5612b091eaeb054ca0e3
7
- data.tar.gz: 66316ce86c4792cea094db8ab4e6c87c5cc2b9c42d8ff6e2ba805fece43ef596704abe5bfe15923df779d5c117981812704f3d3d8660d3b382bb93f3eff62cec
6
+ metadata.gz: 5eb66560d7335a51d81dd7750c0ed69894d6a14502a0ffb88016682b58e14e8721697c5d9f6bcb4dfcf5204b6af81f7a50327748ab12642315708c5f4f60abdc
7
+ data.tar.gz: 282fbac131acea677a3a0fc964455c3eee64dcbd3c8f4580405880414b664990f58c7f5a3e9b3d3f0ee4a6bd85f5e7547ce9766bee29f3f2468beb6c2cc37452
@@ -145,6 +145,14 @@ module Stripe
145
145
  Events::V2CoreHealthWebhookLatencyFiringEvent,
146
146
  Events::V2CoreHealthWebhookLatencyResolvedEvent.lookup_type =>
147
147
  Events::V2CoreHealthWebhookLatencyResolvedEvent,
148
+ Events::V2IamApiKeyCreatedEvent.lookup_type => Events::V2IamApiKeyCreatedEvent,
149
+ Events::V2IamApiKeyDefaultSecretRevealedEvent.lookup_type =>
150
+ Events::V2IamApiKeyDefaultSecretRevealedEvent,
151
+ Events::V2IamApiKeyExpiredEvent.lookup_type => Events::V2IamApiKeyExpiredEvent,
152
+ Events::V2IamApiKeyPermissionsUpdatedEvent.lookup_type =>
153
+ Events::V2IamApiKeyPermissionsUpdatedEvent,
154
+ Events::V2IamApiKeyRotatedEvent.lookup_type => Events::V2IamApiKeyRotatedEvent,
155
+ Events::V2IamApiKeyUpdatedEvent.lookup_type => Events::V2IamApiKeyUpdatedEvent,
148
156
  Events::V2MoneyManagementAdjustmentCreatedEvent.lookup_type =>
149
157
  Events::V2MoneyManagementAdjustmentCreatedEvent,
150
158
  Events::V2MoneyManagementFinancialAccountCreatedEvent.lookup_type =>
@@ -415,6 +423,18 @@ module Stripe
415
423
  Events::V2CoreHealthWebhookLatencyFiringEventNotification,
416
424
  Events::V2CoreHealthWebhookLatencyResolvedEventNotification.lookup_type =>
417
425
  Events::V2CoreHealthWebhookLatencyResolvedEventNotification,
426
+ Events::V2IamApiKeyCreatedEventNotification.lookup_type =>
427
+ Events::V2IamApiKeyCreatedEventNotification,
428
+ Events::V2IamApiKeyDefaultSecretRevealedEventNotification.lookup_type =>
429
+ Events::V2IamApiKeyDefaultSecretRevealedEventNotification,
430
+ Events::V2IamApiKeyExpiredEventNotification.lookup_type =>
431
+ Events::V2IamApiKeyExpiredEventNotification,
432
+ Events::V2IamApiKeyPermissionsUpdatedEventNotification.lookup_type =>
433
+ Events::V2IamApiKeyPermissionsUpdatedEventNotification,
434
+ Events::V2IamApiKeyRotatedEventNotification.lookup_type =>
435
+ Events::V2IamApiKeyRotatedEventNotification,
436
+ Events::V2IamApiKeyUpdatedEventNotification.lookup_type =>
437
+ Events::V2IamApiKeyUpdatedEventNotification,
418
438
  Events::V2MoneyManagementAdjustmentCreatedEventNotification.lookup_type =>
419
439
  Events::V2MoneyManagementAdjustmentCreatedEventNotification,
420
440
  Events::V2MoneyManagementFinancialAccountCreatedEventNotification.lookup_type =>
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key is created.
7
+ class V2IamApiKeyCreatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.created"
10
+ end
11
+ end
12
+
13
+ # Occurs when an API Key is created.
14
+ class V2IamApiKeyCreatedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.created"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when the default API Key's secret is revealed.
7
+ class V2IamApiKeyDefaultSecretRevealedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.default_secret_revealed"
10
+ end
11
+ end
12
+
13
+ # Occurs when the default API Key's secret is revealed.
14
+ class V2IamApiKeyDefaultSecretRevealedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.default_secret_revealed"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key is expired.
7
+ class V2IamApiKeyExpiredEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.expired"
10
+ end
11
+ end
12
+
13
+ # Occurs when an API Key is expired.
14
+ class V2IamApiKeyExpiredEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.expired"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key's permissions are updated.
7
+ class V2IamApiKeyPermissionsUpdatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.permissions_updated"
10
+ end
11
+ end
12
+
13
+ # Occurs when an API Key's permissions are updated.
14
+ class V2IamApiKeyPermissionsUpdatedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.permissions_updated"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,38 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key is rotated.
7
+ class V2IamApiKeyRotatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.rotated"
10
+ end
11
+
12
+ class V2IamApiKeyRotatedEventData < ::Stripe::StripeObject
13
+ # ID of the new key that was created due to rotation.
14
+ attr_reader :new_api_key
15
+
16
+ def self.inner_class_types
17
+ @inner_class_types = {}
18
+ end
19
+
20
+ def self.field_remappings
21
+ @field_remappings = {}
22
+ end
23
+ end
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = { data: V2IamApiKeyRotatedEventData }
27
+ end
28
+ attr_reader :data
29
+ end
30
+
31
+ # Occurs when an API Key is rotated.
32
+ class V2IamApiKeyRotatedEventNotification < Stripe::V2::Core::EventNotification
33
+ def self.lookup_type
34
+ "v2.iam.api_key.rotated"
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,20 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Events
6
+ # Occurs when an API Key is updated.
7
+ class V2IamApiKeyUpdatedEvent < Stripe::V2::Core::Event
8
+ def self.lookup_type
9
+ "v2.iam.api_key.updated"
10
+ end
11
+ end
12
+
13
+ # Occurs when an API Key is updated.
14
+ class V2IamApiKeyUpdatedEventNotification < Stripe::V2::Core::EventNotification
15
+ def self.lookup_type
16
+ "v2.iam.api_key.updated"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -124,6 +124,7 @@ module Stripe
124
124
  Privacy::RedactionJob.object_name => Privacy::RedactionJob,
125
125
  Privacy::RedactionJobValidationError.object_name => Privacy::RedactionJobValidationError,
126
126
  Product.object_name => Product,
127
+ ProductCatalog::TrialOffer.object_name => ProductCatalog::TrialOffer,
127
128
  ProductFeature.object_name => ProductFeature,
128
129
  PromotionCode.object_name => PromotionCode,
129
130
  Quote.object_name => Quote,
@@ -1872,9 +1872,9 @@ module Stripe
1872
1872
  end
1873
1873
 
1874
1874
  class SelfReportedIncome < ::Stripe::RequestParams
1875
- # Attribute for param field amount
1875
+ # The amount in the minor currency unit (for example, cents for USD).
1876
1876
  attr_accessor :amount
1877
- # Attribute for param field currency
1877
+ # 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).
1878
1878
  attr_accessor :currency
1879
1879
 
1880
1880
  def initialize(amount: nil, currency: nil)
@@ -1884,9 +1884,9 @@ module Stripe
1884
1884
  end
1885
1885
 
1886
1886
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1887
- # Attribute for param field amount
1887
+ # The amount in the minor currency unit (for example, cents for USD).
1888
1888
  attr_accessor :amount
1889
- # Attribute for param field currency
1889
+ # 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).
1890
1890
  attr_accessor :currency
1891
1891
 
1892
1892
  def initialize(amount: nil, currency: nil)
@@ -240,9 +240,9 @@ module Stripe
240
240
  end
241
241
 
242
242
  class SelfReportedIncome < ::Stripe::RequestParams
243
- # Attribute for param field amount
243
+ # The amount in the minor currency unit (for example, cents for USD).
244
244
  attr_accessor :amount
245
- # Attribute for param field currency
245
+ # 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).
246
246
  attr_accessor :currency
247
247
 
248
248
  def initialize(amount: nil, currency: nil)
@@ -252,9 +252,9 @@ module Stripe
252
252
  end
253
253
 
254
254
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
255
- # Attribute for param field amount
255
+ # The amount in the minor currency unit (for example, cents for USD).
256
256
  attr_accessor :amount
257
- # Attribute for param field currency
257
+ # 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).
258
258
  attr_accessor :currency
259
259
 
260
260
  def initialize(amount: nil, currency: nil)
@@ -240,9 +240,9 @@ module Stripe
240
240
  end
241
241
 
242
242
  class SelfReportedIncome < ::Stripe::RequestParams
243
- # Attribute for param field amount
243
+ # The amount in the minor currency unit (for example, cents for USD).
244
244
  attr_accessor :amount
245
- # Attribute for param field currency
245
+ # 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).
246
246
  attr_accessor :currency
247
247
 
248
248
  def initialize(amount: nil, currency: nil)
@@ -252,9 +252,9 @@ module Stripe
252
252
  end
253
253
 
254
254
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
255
- # Attribute for param field amount
255
+ # The amount in the minor currency unit (for example, cents for USD).
256
256
  attr_accessor :amount
257
- # Attribute for param field currency
257
+ # 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).
258
258
  attr_accessor :currency
259
259
 
260
260
  def initialize(amount: nil, currency: nil)
@@ -1791,9 +1791,9 @@ module Stripe
1791
1791
  end
1792
1792
 
1793
1793
  class SelfReportedIncome < ::Stripe::RequestParams
1794
- # Attribute for param field amount
1794
+ # The amount in the minor currency unit (for example, cents for USD).
1795
1795
  attr_accessor :amount
1796
- # Attribute for param field currency
1796
+ # 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).
1797
1797
  attr_accessor :currency
1798
1798
 
1799
1799
  def initialize(amount: nil, currency: nil)
@@ -1803,9 +1803,9 @@ module Stripe
1803
1803
  end
1804
1804
 
1805
1805
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1806
- # Attribute for param field amount
1806
+ # The amount in the minor currency unit (for example, cents for USD).
1807
1807
  attr_accessor :amount
1808
- # Attribute for param field currency
1808
+ # 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).
1809
1809
  attr_accessor :currency
1810
1810
 
1811
1811
  def initialize(amount: nil, currency: nil)
@@ -16,7 +16,7 @@ module Stripe
16
16
  attr_accessor :line2
17
17
  # ZIP or postal code.
18
18
  attr_accessor :postal_code
19
- # State, county, province, or region.
19
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
20
20
  attr_accessor :state
21
21
 
22
22
  def initialize(
@@ -77,7 +77,7 @@ module Stripe
77
77
  attr_accessor :line2
78
78
  # ZIP or postal code.
79
79
  attr_accessor :postal_code
80
- # State, county, province, or region.
80
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
81
81
  attr_accessor :state
82
82
 
83
83
  def initialize(
@@ -16,7 +16,7 @@ module Stripe
16
16
  attr_accessor :line2
17
17
  # ZIP or postal code.
18
18
  attr_accessor :postal_code
19
- # State, county, province, or region.
19
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
20
20
  attr_accessor :state
21
21
 
22
22
  def initialize(
@@ -106,7 +106,7 @@ module Stripe
106
106
  attr_accessor :line2
107
107
  # ZIP or postal code.
108
108
  attr_accessor :postal_code
109
- # State, county, province, or region.
109
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
110
110
  attr_accessor :state
111
111
 
112
112
  def initialize(
@@ -5517,6 +5517,15 @@ module Stripe
5517
5517
  end
5518
5518
  end
5519
5519
 
5520
+ class PaymentsOrchestration < ::Stripe::RequestParams
5521
+ # Whether this feature is enabled.
5522
+ attr_accessor :enabled
5523
+
5524
+ def initialize(enabled: nil)
5525
+ @enabled = enabled
5526
+ end
5527
+ end
5528
+
5520
5529
  class RadarOptions < ::Stripe::RequestParams
5521
5530
  # A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
5522
5531
  attr_accessor :session
@@ -5702,6 +5711,8 @@ module Stripe
5702
5711
  attr_accessor :transfer_group
5703
5712
  # Set to `true` when confirming server-side and using Stripe.js, iOS, or Android client-side SDKs to handle the next actions.
5704
5713
  attr_accessor :use_stripe_sdk
5714
+ # When you enable this parameter, this PaymentIntent will route your payment to processors that you configure in the dashboard.
5715
+ attr_accessor :payments_orchestration
5705
5716
 
5706
5717
  def initialize(
5707
5718
  allocated_funds: nil,
@@ -5743,7 +5754,8 @@ module Stripe
5743
5754
  statement_descriptor_suffix: nil,
5744
5755
  transfer_data: nil,
5745
5756
  transfer_group: nil,
5746
- use_stripe_sdk: nil
5757
+ use_stripe_sdk: nil,
5758
+ payments_orchestration: nil
5747
5759
  )
5748
5760
  @allocated_funds = allocated_funds
5749
5761
  @amount = amount
@@ -5785,6 +5797,7 @@ module Stripe
5785
5797
  @transfer_data = transfer_data
5786
5798
  @transfer_group = transfer_group
5787
5799
  @use_stripe_sdk = use_stripe_sdk
5800
+ @payments_orchestration = payments_orchestration
5788
5801
  end
5789
5802
  end
5790
5803
  end
@@ -0,0 +1,60 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module ProductCatalog
6
+ class TrialOfferCreateParams < ::Stripe::RequestParams
7
+ class Duration < ::Stripe::RequestParams
8
+ class Relative < ::Stripe::RequestParams
9
+ # The number of recurring price's interval to apply for the trial period.
10
+ attr_accessor :iterations
11
+
12
+ def initialize(iterations: nil)
13
+ @iterations = iterations
14
+ end
15
+ end
16
+ # The relative duration of the trial period computed as the number of recurring price intervals.
17
+ attr_accessor :relative
18
+ # Specifies how the trial offer duration is determined.
19
+ attr_accessor :type
20
+
21
+ def initialize(relative: nil, type: nil)
22
+ @relative = relative
23
+ @type = type
24
+ end
25
+ end
26
+
27
+ class EndBehavior < ::Stripe::RequestParams
28
+ class Transition < ::Stripe::RequestParams
29
+ # The price to transition the recurring item to when the trial offer ends.
30
+ attr_accessor :price
31
+
32
+ def initialize(price: nil)
33
+ @price = price
34
+ end
35
+ end
36
+ # The transition to apply when the trial offer ends.
37
+ attr_accessor :transition
38
+
39
+ def initialize(transition: nil)
40
+ @transition = transition
41
+ end
42
+ end
43
+ # Duration of one service period of the trial.
44
+ attr_accessor :duration
45
+ # Define behavior that occurs at the end of the trial.
46
+ attr_accessor :end_behavior
47
+ # Specifies which fields in the response should be expanded.
48
+ attr_accessor :expand
49
+ # Price configuration during the trial period (amount, billing scheme, etc).
50
+ attr_accessor :price
51
+
52
+ def initialize(duration: nil, end_behavior: nil, expand: nil, price: nil)
53
+ @duration = duration
54
+ @end_behavior = end_behavior
55
+ @expand = expand
56
+ @price = price
57
+ end
58
+ end
59
+ end
60
+ end
@@ -463,9 +463,9 @@ module Stripe
463
463
  end
464
464
 
465
465
  class SelfReportedIncome < ::Stripe::RequestParams
466
- # Attribute for param field amount
466
+ # The amount in the minor currency unit (for example, cents for USD).
467
467
  attr_accessor :amount
468
- # Attribute for param field currency
468
+ # 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).
469
469
  attr_accessor :currency
470
470
 
471
471
  def initialize(amount: nil, currency: nil)
@@ -475,9 +475,9 @@ module Stripe
475
475
  end
476
476
 
477
477
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
478
- # Attribute for param field amount
478
+ # The amount in the minor currency unit (for example, cents for USD).
479
479
  attr_accessor :amount
480
- # Attribute for param field currency
480
+ # 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).
481
481
  attr_accessor :currency
482
482
 
483
483
  def initialize(amount: nil, currency: nil)
@@ -1009,9 +1009,9 @@ module Stripe
1009
1009
  end
1010
1010
 
1011
1011
  class SelfReportedIncome < ::Stripe::RequestParams
1012
- # Attribute for param field amount
1012
+ # The amount in the minor currency unit (for example, cents for USD).
1013
1013
  attr_accessor :amount
1014
- # Attribute for param field currency
1014
+ # 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).
1015
1015
  attr_accessor :currency
1016
1016
 
1017
1017
  def initialize(amount: nil, currency: nil)
@@ -1021,9 +1021,9 @@ module Stripe
1021
1021
  end
1022
1022
 
1023
1023
  class SelfReportedMonthlyHousingPayment < ::Stripe::RequestParams
1024
- # Attribute for param field amount
1024
+ # The amount in the minor currency unit (for example, cents for USD).
1025
1025
  attr_accessor :amount
1026
- # Attribute for param field currency
1026
+ # 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).
1027
1027
  attr_accessor :currency
1028
1028
 
1029
1029
  def initialize(amount: nil, currency: nil)
@@ -24,6 +24,8 @@ module Stripe
24
24
  end
25
25
  # Set of filters to query events within a range of `created` timestamps.
26
26
  attr_accessor :created
27
+ # Additional fields to include in the response.
28
+ attr_accessor :include
27
29
  # The page size.
28
30
  attr_accessor :limit
29
31
  # Primary object ID used to retrieve related events.
@@ -33,8 +35,9 @@ module Stripe
33
35
  # An array of up to 20 strings containing specific event names.
34
36
  attr_accessor :types
35
37
 
36
- def initialize(created: nil, limit: nil, object_id_: nil, types: nil)
38
+ def initialize(created: nil, include: nil, limit: nil, object_id_: nil, types: nil)
37
39
  @created = created
40
+ @include = include
38
41
  @limit = limit
39
42
  @object_id_ = object_id_
40
43
  @types = types
@@ -4,7 +4,14 @@
4
4
  module Stripe
5
5
  module V2
6
6
  module Core
7
- class EventRetrieveParams < ::Stripe::RequestParams; end
7
+ class EventRetrieveParams < ::Stripe::RequestParams
8
+ # Additional fields to include in the response.
9
+ attr_accessor :include
10
+
11
+ def initialize(include: nil)
12
+ @include = include
13
+ end
14
+ end
8
15
  end
9
16
  end
10
17
  end
data/lib/stripe/params.rb CHANGED
@@ -402,6 +402,7 @@ require "stripe/params/privacy/redaction_job_run_params"
402
402
  require "stripe/params/privacy/redaction_job_update_params"
403
403
  require "stripe/params/privacy/redaction_job_validate_params"
404
404
  require "stripe/params/privacy/redaction_job_validation_error_list_params"
405
+ require "stripe/params/product_catalog/trial_offer_create_params"
405
406
  require "stripe/params/product_create_params"
406
407
  require "stripe/params/product_delete_params"
407
408
  require "stripe/params/product_feature_create_params"
@@ -183,6 +183,30 @@ module Stripe
183
183
  end
184
184
  end
185
185
 
186
+ class CheckScanning < ::Stripe::StripeObject
187
+ class Features < ::Stripe::StripeObject
188
+ def self.inner_class_types
189
+ @inner_class_types = {}
190
+ end
191
+
192
+ def self.field_remappings
193
+ @field_remappings = {}
194
+ end
195
+ end
196
+ # Whether the embedded component is enabled.
197
+ attr_reader :enabled
198
+ # Attribute for field features
199
+ attr_reader :features
200
+
201
+ def self.inner_class_types
202
+ @inner_class_types = { features: Features }
203
+ end
204
+
205
+ def self.field_remappings
206
+ @field_remappings = {}
207
+ end
208
+ end
209
+
186
210
  class DisputesList < ::Stripe::StripeObject
187
211
  class Features < ::Stripe::StripeObject
188
212
  # Whether to allow capturing and cancelling payment intents. This is `true` by default.
@@ -699,6 +723,8 @@ module Stripe
699
723
  attr_reader :tax_registrations
700
724
  # Attribute for field tax_settings
701
725
  attr_reader :tax_settings
726
+ # Configuration for the [check scanning](/connect/supported-embedded-components/check-scanning/) embedded component.
727
+ attr_reader :check_scanning
702
728
 
703
729
  def self.inner_class_types
704
730
  @inner_class_types = {
@@ -724,6 +750,7 @@ module Stripe
724
750
  payouts_list: PayoutsList,
725
751
  tax_registrations: TaxRegistrations,
726
752
  tax_settings: TaxSettings,
753
+ check_scanning: CheckScanning,
727
754
  }
728
755
  end
729
756
 
@@ -25,7 +25,7 @@ module Stripe
25
25
  attr_reader :line2
26
26
  # ZIP or postal code.
27
27
  attr_reader :postal_code
28
- # State, county, province, or region.
28
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
29
29
  attr_reader :state
30
30
 
31
31
  def self.inner_class_types
@@ -157,14 +157,6 @@ module Stripe
157
157
  attr_reader :amount_discount
158
158
  # The total before any discounts or taxes are applied.
159
159
  attr_reader :amount_subtotal
160
- # The total after discounts but before taxes are applied.
161
- attr_reader :amount_subtotal_after_discount
162
- # The total after discounts and taxes.
163
- attr_reader :amount_total
164
- # The per-unit amount of the item after discounts but before taxes are applied.
165
- attr_reader :unit_amount_after_discount
166
- # The per-unit discount amount. If no discount were applied, defaults to 0.
167
- attr_reader :unit_discount
168
160
 
169
161
  def self.inner_class_types
170
162
  @inner_class_types = {}
@@ -203,7 +195,7 @@ module Stripe
203
195
  attr_reader :line2
204
196
  # ZIP or postal code.
205
197
  attr_reader :postal_code
206
- # State, county, province, or region.
198
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
207
199
  attr_reader :state
208
200
 
209
201
  def self.inner_class_types
@@ -291,14 +283,14 @@ module Stripe
291
283
  @field_remappings = {}
292
284
  end
293
285
  end
294
- # The amount discount of the total details.
295
- attr_reader :amount_discount
296
286
  # The amount fulfillment of the total details.
297
287
  attr_reader :amount_fulfillment
298
288
  # The amount tax of the total details.
299
289
  attr_reader :amount_tax
300
- # Total of all items after discounts but before taxes are applied.
301
- attr_reader :amount_subtotal_after_discount
290
+ # The amount of order-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
291
+ attr_reader :amount_cart_discount
292
+ # The amount of item-level discounts applied to the cart. The total discount amount for this session can be computed by summing the cart discount and the item discounts.
293
+ attr_reader :amount_items_discount
302
294
  # The applicable fees of the total details.
303
295
  attr_reader :applicable_fees
304
296