stripe 14.1.0.pre.beta.1 → 15.1.0.pre.beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -1
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +3 -3
  5. data/VERSION +1 -1
  6. data/lib/stripe/api_operations/save.rb +2 -1
  7. data/lib/stripe/api_operations/singleton_save.rb +2 -1
  8. data/lib/stripe/api_requestor.rb +3 -1
  9. data/lib/stripe/api_resource.rb +10 -3
  10. data/lib/stripe/object_types.rb +3 -0
  11. data/lib/stripe/request_options.rb +2 -1
  12. data/lib/stripe/resources/account.rb +10 -0
  13. data/lib/stripe/resources/account_session.rb +52 -0
  14. data/lib/stripe/resources/balance_settings.rb +1 -1
  15. data/lib/stripe/resources/checkout/session.rb +35 -3
  16. data/lib/stripe/resources/confirmation_token.rb +3 -3
  17. data/lib/stripe/resources/invoice.rb +1 -1
  18. data/lib/stripe/resources/login_link.rb +2 -1
  19. data/lib/stripe/resources/payment_attempt_record.rb +4 -4
  20. data/lib/stripe/resources/payment_intent.rb +9 -9
  21. data/lib/stripe/resources/payment_method.rb +3 -3
  22. data/lib/stripe/resources/payment_method_domain.rb +13 -0
  23. data/lib/stripe/resources/payment_record.rb +6 -6
  24. data/lib/stripe/resources/privacy/redaction_job.rb +251 -0
  25. data/lib/stripe/resources/privacy/redaction_job_root_objects.rb +35 -0
  26. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +54 -0
  27. data/lib/stripe/resources/setup_intent.rb +9 -9
  28. data/lib/stripe/resources/subscription.rb +3 -3
  29. data/lib/stripe/resources/tax/registration.rb +20 -0
  30. data/lib/stripe/resources.rb +3 -0
  31. data/lib/stripe/services/account_service.rb +8 -0
  32. data/lib/stripe/services/account_session_service.rb +52 -0
  33. data/lib/stripe/services/checkout/session_service.rb +23 -2
  34. data/lib/stripe/services/external_account_service.rb +112 -0
  35. data/lib/stripe/services/invoice_service.rb +1 -1
  36. data/lib/stripe/services/payment_intent_service.rb +9 -9
  37. data/lib/stripe/services/payment_method_service.rb +3 -3
  38. data/lib/stripe/services/payment_record_service.rb +2 -2
  39. data/lib/stripe/services/privacy/redaction_job_service.rb +231 -0
  40. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +57 -0
  41. data/lib/stripe/services/privacy_service.rb +13 -0
  42. data/lib/stripe/services/setup_intent_service.rb +9 -9
  43. data/lib/stripe/services/subscription_service.rb +2 -2
  44. data/lib/stripe/services/tax/registration_service.rb +13 -0
  45. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +3 -3
  46. data/lib/stripe/services/v1_services.rb +2 -1
  47. data/lib/stripe/services/v2/core/event_service.rb +5 -3
  48. data/lib/stripe/services.rb +3 -0
  49. data/lib/stripe/stripe_object.rb +13 -3
  50. data/lib/stripe/util.rb +11 -0
  51. data/lib/stripe/version.rb +1 -1
  52. data/rbi/stripe.rbi +973 -91
  53. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3686d5cb7e65f5dbc991c8ecb1e14d633c72fccb201dc25c0349fd0d4038f4c9
4
- data.tar.gz: 07252bbf8957ea3ad8282d88fb09f293108b866c059f60a2d7b2dbc03939ac1e
3
+ metadata.gz: 8f9e6d0a02fe887517c19eb29282769d7dcd764385644cfce7e6714fcd0bb882
4
+ data.tar.gz: f22ed598d6ecf8a83dddd3663e42f0ea0b67826e88039c57ae9a29e992ce41d2
5
5
  SHA512:
6
- metadata.gz: e7344c3cea5b1a92d6e560623b8af398e05a2c7a57f3556de048ea1b5e458ea73ee4b63ad52a88e7768dc01b2b571a138fa08722cf32720aaa1405348b8d1d40
7
- data.tar.gz: 65ab2909c931520b80ba657ad6cba42361da7c17eb19e121554852414baf06db0901a9b51fca6210b2661b5a9582b2b155c65a8580ec12369c7fb455f9655775
6
+ metadata.gz: ae10478502be10ff91e9db34b9f339cc0a25aa6fb92805461d3c481f7736162d58d6874228c7f1368764dc479b4938b0c86206743f29d08b13075aeebd575456
7
+ data.tar.gz: 51c9ec38c145cc56d7fd4d9817423cf948234bfb2e676bd9750d07537f4c2bdffebe376760b958306c3d57e88766be05f9af66322746ae8c80e7abfa3baa3875
data/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Changelog
2
2
 
3
+ ## 15.1.0-beta.1 - 2025-04-10
4
+ * [#1569](https://github.com/stripe/stripe-ruby/pull/1569) Update generated code for beta
5
+
6
+ ### Breaking changes
7
+ * Change type of `V2MoneyManagementReceivedDebit.status_transitions` from `an object` to `nullable(an object)`
8
+
9
+ ### Additions
10
+ * Add support for new resources `Privacy::RedactionJobRootObjects`, `Privacy::RedactionJobValidationError`, and `Privacy::RedactionJob`
11
+ * Add support for `cancel`, `create`, `list`, `retrieve`, `run`, `update`, and `validate` methods on resource `RedactionJob`
12
+ * Add support for `list` and `retrieve` methods on resource `RedactionJobValidationError`
13
+ * Add support for `minority_owned_business_designation` on `Account::BusinessProfile`, `Account::CreateParams::BusinessProfile`, and `Account::UpdateParams::BusinessProfile`
14
+ * Add support for `export_tax_transactions` and `payment_disputes` on `AccountSession::CreateParams::Component`
15
+ * Add support for `wallet_options` on `CheckoutSession::CreateParams` and `CheckoutSession`
16
+ * Add support for `klarna` on `PaymentMethodDomain`
17
+ * Change type of `TaxCalculationLineItem.reference` from `nullable(string)` to `string`
18
+ * Add support for `in` on `TaxRegistration::CountryOption` and `TaxRegistration::CreateParams::CountryOption`
19
+ * [#1572](https://github.com/stripe/stripe-ruby/pull/1572) Handle external_account field
20
+ - Changes `external_account` field in `external_accounts.create` from a `string` to a union type.
21
+
22
+ ## 15.0.0 - 2025-04-09
23
+
24
+ ### Breaking change
25
+ * [#1574](https://github.com/stripe/stripe-ruby/pull/1574) Rename `object_id` in V2::Core::EventService::ListParams to `object_id_`
26
+ * ⚠️ Change name of parameter from `object_id` to `object_id_` on `Stripe::V2::Core::EventService::ListParams` to avoid conflict with Ruby native attribute, as found in https://github.com/stripe/stripe-ruby/issues/1567
27
+ * This is a no-op unless you are using this specific parameter that was introduced in `v14.0.0`
28
+
29
+ * [#1576](https://github.com/stripe/stripe-ruby/pull/1576) Explicitly pass through custom headers in retrieve
30
+ * Fix custom options passing for resource-based retrieve
31
+ * [#1571](https://github.com/stripe/stripe-ruby/pull/1571) Validate all instance variable keys returned from the API
32
+ * Validate all keys returned from the API, including custom response fields, to make sure they can be set in an instance variable, as brought up in https://github.com/stripe/stripe-ruby/issues/1564
33
+ * We do not set instance variables for invalid field names (as defined by the [Ruby spec](https://ruby-doc.org/docs/ruby-doc-bundle/Manual/man-1.4/syntax.html#ident)). We recommend for custom hash map response fields, use the `[]` accessor.
34
+ ```ruby
35
+ c = client.v1.customers.retrieve("cus_123")
36
+ c.metadata["invalid-variable-name!"]
37
+ c.metadata["valid_key_name_works_too"]
38
+ ```
39
+ * [#1575](https://github.com/stripe/stripe-ruby/pull/1575) Remove unused youtube playlist link
40
+ * [#1573](https://github.com/stripe/stripe-ruby/pull/1573) Remove link for stale youtube video playlist
41
+
3
42
  ## 14.1.0-beta.1 - 2025-04-02
4
43
  * [#1563](https://github.com/stripe/stripe-ruby/pull/1563), [#1558](https://github.com/stripe/stripe-ruby/pull/1558), [#1547](https://github.com/stripe/stripe-ruby/pull/1547) Update generated code for beta
5
44
 
@@ -55,7 +94,6 @@
55
94
  * [#1557](https://github.com/stripe/stripe-ruby/pull/1557) Update Stripe.add_beta_version
56
95
  * `stripe.add_beta_version` will use the highest version number used for a beta feature instead of raising an `Error` on a conflict as it had done previously.
57
96
 
58
-
59
97
  ## 14.0.0 - 2025-04-01
60
98
  * [#1559](https://github.com/stripe/stripe-ruby/pull/1559) Add RBI annotations for fields and params
61
99
  * Adds explicit field types for resources and parameters for methods, and add RBI static annotations for all resources and services
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1648
1
+ v1669
data/README.md CHANGED
@@ -20,8 +20,6 @@ The library also provides other features. For example:
20
20
 
21
21
  See the [Ruby API docs](https://stripe.com/docs/api?lang=ruby).
22
22
 
23
- See [video demonstrations][youtube-playlist] covering how to use the library.
24
-
25
23
  ## Installation
26
24
 
27
25
  You don't need this source code unless you want to modify the gem. If you just
@@ -158,6 +156,9 @@ print(customer.last_response.http_status) # to retrieve status code
158
156
  print(customer.last_response.http_headers) # to retrieve headers
159
157
  ```
160
158
 
159
+ If you are accessing a response field with custom hashes provided by you, such as `Customer.metadata`,
160
+ please access your fields with the `[]` accessor.
161
+
161
162
  ### Configuring a proxy
162
163
 
163
164
  A proxy can be configured with `Stripe.proxy`:
@@ -444,7 +445,6 @@ Update the bundled [stripe-mock] by editing the version number found in
444
445
  [idempotency-keys]: https://stripe.com/docs/api/idempotent_requests?lang=ruby
445
446
  [stripe-mock]: https://github.com/stripe/stripe-mock
446
447
  [versioning]: https://stripe.com/docs/api/versioning?lang=ruby
447
- [youtube-playlist]: https://www.youtube.com/playlist?list=PLy1nL-pvL2M50RmP6ie-gdcSnfOuQCRYk
448
448
 
449
449
  <!--
450
450
  # vim: set tw=79:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 14.1.0-beta.1
1
+ 15.1.0-beta.1
@@ -67,7 +67,8 @@ module Stripe
67
67
  values.delete(:id)
68
68
  opts = Util.normalize_opts(opts)
69
69
  APIRequestor.active_requestor.execute_request_initialize_from(:post, save_url, :api, self,
70
- params: values, opts: opts,
70
+ params: values,
71
+ opts: RequestOptions.extract_opts_from_hash(opts),
71
72
  usage: ["save"])
72
73
  end
73
74
  extend Gem::Deprecate
@@ -64,7 +64,8 @@ module Stripe
64
64
  opts = Util.normalize_opts(opts)
65
65
 
66
66
  APIRequestor.active_requestor.execute_request_initialize_from(:post, resource_url, :api, self,
67
- params: values, opts: opts,
67
+ params: values,
68
+ opts: RequestOptions.extract_opts_from_hash(opts),
68
69
  usage: ["save"])
69
70
  end
70
71
  extend Gem::Deprecate
@@ -220,9 +220,11 @@ module Stripe
220
220
  # with future non-major changes.
221
221
  def execute_request_initialize_from(method, path, base_address, object,
222
222
  params: {}, opts: {}, usage: [])
223
- opts = RequestOptions.combine_opts(object.instance_variable_get(:@opts), opts)
223
+ opts = RequestOptions.combine_opts(object.instance_variable_get(:@opts) || {}, opts)
224
224
  opts = Util.normalize_opts(opts)
225
+
225
226
  params = params.to_h if params.is_a?(RequestParams)
227
+
226
228
  http_resp, req_opts = execute_request_internal(
227
229
  method, path, base_address, params, opts, usage
228
230
  )
@@ -98,7 +98,10 @@ module Stripe
98
98
  "It is not possible to refresh v2 objects. Please retrieve the object using the StripeClient instead."
99
99
  end
100
100
 
101
- @obj = @requestor.execute_request_initialize_from(:get, resource_url, :api, self, params: @retrieve_params)
101
+ opts = RequestOptions.extract_opts_from_hash(@retrieve_opts || {})
102
+ @retrieve_opts = {} # Make sure to clear the retrieve options
103
+ @obj = @requestor.execute_request_initialize_from(:get, resource_url, :api, self, params: @retrieve_params,
104
+ opts: opts)
102
105
  initialize_from(
103
106
  @obj.last_response.data,
104
107
  @obj.instance_variable_get(:@opts),
@@ -114,8 +117,12 @@ module Stripe
114
117
  "It is not possible to retrieve v2 objects on the resource. Please use the StripeClient instead."
115
118
  end
116
119
 
117
- opts = Util.normalize_opts(opts)
118
- instance = new(id, opts)
120
+ instance = new(id)
121
+ # Explicitly send options for the retrieve call, to preserve custom headers
122
+ # This is so we can pass custom headers from this static function
123
+ # to the instance variable method call
124
+ # The custom headers will be cleaned up with the rest of the RequestOptions
125
+ instance.instance_variable_set(:@retrieve_opts, Util.normalize_opts(opts))
119
126
  instance.refresh
120
127
  end
121
128
 
@@ -115,6 +115,9 @@ module Stripe
115
115
  Person.object_name => Person,
116
116
  Plan.object_name => Plan,
117
117
  Price.object_name => Price,
118
+ Privacy::RedactionJob.object_name => Privacy::RedactionJob,
119
+ Privacy::RedactionJobRootObjects.object_name => Privacy::RedactionJobRootObjects,
120
+ Privacy::RedactionJobValidationError.object_name => Privacy::RedactionJobValidationError,
118
121
  Product.object_name => Product,
119
122
  ProductFeature.object_name => ProductFeature,
120
123
  PromotionCode.object_name => PromotionCode,
@@ -56,7 +56,7 @@ module Stripe
56
56
  # Merges requestor options hash on a StripeObject
57
57
  # with a per-request options hash, giving precedence
58
58
  # to the per-request options. Returns the merged request options.
59
- # Expects two hashes.
59
+ # Expects two hashes, expects extract_opts_from_hash to be called first!!!
60
60
  def self.combine_opts(object_opts, req_opts)
61
61
  merged_opts = {
62
62
  api_key: req_opts[:api_key] || object_opts[:api_key],
@@ -64,6 +64,7 @@ module Stripe
64
64
  stripe_account: req_opts[:stripe_account] || object_opts[:stripe_account],
65
65
  stripe_context: req_opts[:stripe_context] || object_opts[:stripe_context],
66
66
  stripe_version: req_opts[:stripe_version] || object_opts[:stripe_version],
67
+ headers: req_opts[:headers] || {},
67
68
  }
68
69
 
69
70
  # Remove nil values from headers
@@ -71,6 +71,8 @@ module Stripe
71
71
  attr_reader :estimated_worker_count
72
72
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
73
73
  attr_reader :mcc
74
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
75
+ attr_reader :minority_owned_business_designation
74
76
  # Attribute for field monthly_estimated_revenue
75
77
  attr_reader :monthly_estimated_revenue
76
78
  # The customer-facing business name.
@@ -769,6 +771,8 @@ module Stripe
769
771
  attr_accessor :estimated_worker_count
770
772
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
771
773
  attr_accessor :mcc
774
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
775
+ attr_accessor :minority_owned_business_designation
772
776
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
773
777
  attr_accessor :monthly_estimated_revenue
774
778
  # The customer-facing business name.
@@ -790,6 +794,7 @@ module Stripe
790
794
  annual_revenue: nil,
791
795
  estimated_worker_count: nil,
792
796
  mcc: nil,
797
+ minority_owned_business_designation: nil,
793
798
  monthly_estimated_revenue: nil,
794
799
  name: nil,
795
800
  product_description: nil,
@@ -802,6 +807,7 @@ module Stripe
802
807
  @annual_revenue = annual_revenue
803
808
  @estimated_worker_count = estimated_worker_count
804
809
  @mcc = mcc
810
+ @minority_owned_business_designation = minority_owned_business_designation
805
811
  @monthly_estimated_revenue = monthly_estimated_revenue
806
812
  @name = name
807
813
  @product_description = product_description
@@ -3007,6 +3013,8 @@ module Stripe
3007
3013
  attr_accessor :estimated_worker_count
3008
3014
  # [The merchant category code for the account](/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
3009
3015
  attr_accessor :mcc
3016
+ # Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
3017
+ attr_accessor :minority_owned_business_designation
3010
3018
  # An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
3011
3019
  attr_accessor :monthly_estimated_revenue
3012
3020
  # The customer-facing business name.
@@ -3028,6 +3036,7 @@ module Stripe
3028
3036
  annual_revenue: nil,
3029
3037
  estimated_worker_count: nil,
3030
3038
  mcc: nil,
3039
+ minority_owned_business_designation: nil,
3031
3040
  monthly_estimated_revenue: nil,
3032
3041
  name: nil,
3033
3042
  product_description: nil,
@@ -3040,6 +3049,7 @@ module Stripe
3040
3049
  @annual_revenue = annual_revenue
3041
3050
  @estimated_worker_count = estimated_worker_count
3042
3051
  @mcc = mcc
3052
+ @minority_owned_business_designation = minority_owned_business_designation
3043
3053
  @monthly_estimated_revenue = monthly_estimated_revenue
3044
3054
  @name = name
3045
3055
  @product_description = product_description
@@ -488,6 +488,20 @@ module Stripe
488
488
  end
489
489
  end
490
490
 
491
+ class ExportTaxTransactions < Stripe::RequestParams
492
+ class Features < Stripe::RequestParams
493
+ end
494
+ # Whether the embedded component is enabled.
495
+ attr_accessor :enabled
496
+ # The list of features enabled in the embedded component.
497
+ attr_accessor :features
498
+
499
+ def initialize(enabled: nil, features: nil)
500
+ @enabled = enabled
501
+ @features = features
502
+ end
503
+ end
504
+
491
505
  class FinancialAccount < Stripe::RequestParams
492
506
  class Features < Stripe::RequestParams
493
507
  # Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don’t set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false.
@@ -674,6 +688,36 @@ module Stripe
674
688
  end
675
689
  end
676
690
 
691
+ class PaymentDisputes < Stripe::RequestParams
692
+ class Features < Stripe::RequestParams
693
+ # Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
694
+ attr_accessor :destination_on_behalf_of_charge_management
695
+ # Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
696
+ attr_accessor :dispute_management
697
+ # Whether to allow sending refunds. This is `true` by default.
698
+ attr_accessor :refund_management
699
+
700
+ def initialize(
701
+ destination_on_behalf_of_charge_management: nil,
702
+ dispute_management: nil,
703
+ refund_management: nil
704
+ )
705
+ @destination_on_behalf_of_charge_management = destination_on_behalf_of_charge_management
706
+ @dispute_management = dispute_management
707
+ @refund_management = refund_management
708
+ end
709
+ end
710
+ # Whether the embedded component is enabled.
711
+ attr_accessor :enabled
712
+ # The list of features enabled in the embedded component.
713
+ attr_accessor :features
714
+
715
+ def initialize(enabled: nil, features: nil)
716
+ @enabled = enabled
717
+ @features = features
718
+ end
719
+ end
720
+
677
721
  class PaymentMethodSettings < Stripe::RequestParams
678
722
  class Features < Stripe::RequestParams
679
723
  end
@@ -883,6 +927,8 @@ module Stripe
883
927
  attr_accessor :capital_overview
884
928
  # Configuration for the documents embedded component.
885
929
  attr_accessor :documents
930
+ # Configuration for the export tax transactions embedded component.
931
+ attr_accessor :export_tax_transactions
886
932
  # Configuration for the financial account embedded component.
887
933
  attr_accessor :financial_account
888
934
  # Configuration for the financial account transactions embedded component.
@@ -895,6 +941,8 @@ module Stripe
895
941
  attr_accessor :notification_banner
896
942
  # Configuration for the payment details embedded component.
897
943
  attr_accessor :payment_details
944
+ # Configuration for the payment disputes embedded component.
945
+ attr_accessor :payment_disputes
898
946
  # Configuration for the payment method settings embedded component.
899
947
  attr_accessor :payment_method_settings
900
948
  # Configuration for the payments embedded component.
@@ -927,12 +975,14 @@ module Stripe
927
975
  capital_financing_promotion: nil,
928
976
  capital_overview: nil,
929
977
  documents: nil,
978
+ export_tax_transactions: nil,
930
979
  financial_account: nil,
931
980
  financial_account_transactions: nil,
932
981
  issuing_card: nil,
933
982
  issuing_cards_list: nil,
934
983
  notification_banner: nil,
935
984
  payment_details: nil,
985
+ payment_disputes: nil,
936
986
  payment_method_settings: nil,
937
987
  payments: nil,
938
988
  payouts: nil,
@@ -954,12 +1004,14 @@ module Stripe
954
1004
  @capital_financing_promotion = capital_financing_promotion
955
1005
  @capital_overview = capital_overview
956
1006
  @documents = documents
1007
+ @export_tax_transactions = export_tax_transactions
957
1008
  @financial_account = financial_account
958
1009
  @financial_account_transactions = financial_account_transactions
959
1010
  @issuing_card = issuing_card
960
1011
  @issuing_cards_list = issuing_cards_list
961
1012
  @notification_banner = notification_banner
962
1013
  @payment_details = payment_details
1014
+ @payment_disputes = payment_disputes
963
1015
  @payment_method_settings = payment_method_settings
964
1016
  @payments = payments
965
1017
  @payouts = payouts
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # "Options for customizing account balances within Stripe."
5
+ # Options for customizing account balances within Stripe.
6
6
  class BalanceSettings < SingletonAPIResource
7
7
  include Stripe::APIOperations::SingletonSave
8
8
 
@@ -1093,6 +1093,15 @@ module Stripe
1093
1093
  attr_reader :breakdown
1094
1094
  end
1095
1095
 
1096
+ class WalletOptions < Stripe::StripeObject
1097
+ class Link < Stripe::StripeObject
1098
+ # Describes whether Checkout should display Link. Defaults to `auto`.
1099
+ attr_reader :display
1100
+ end
1101
+ # Attribute for field link
1102
+ attr_reader :link
1103
+ end
1104
+
1096
1105
  class ListParams < Stripe::RequestParams
1097
1106
  class Created < Stripe::RequestParams
1098
1107
  # Minimum value to filter by (exclusive)
@@ -3155,6 +3164,23 @@ module Stripe
3155
3164
  @required = required
3156
3165
  end
3157
3166
  end
3167
+
3168
+ class WalletOptions < Stripe::RequestParams
3169
+ class Link < Stripe::RequestParams
3170
+ # Specifies whether Checkout should display Link as a payment option. By default, Checkout will display all the supported wallets that the Checkout Session was created with. This is the `auto` behavior, and it is the default choice.
3171
+ attr_accessor :display
3172
+
3173
+ def initialize(display: nil)
3174
+ @display = display
3175
+ end
3176
+ end
3177
+ # contains details about the Link wallet options.
3178
+ attr_accessor :link
3179
+
3180
+ def initialize(link: nil)
3181
+ @link = link
3182
+ end
3183
+ end
3158
3184
  # Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing).
3159
3185
  attr_accessor :adaptive_pricing
3160
3186
  # Configure actions after a Checkout Session has expired.
@@ -3268,7 +3294,7 @@ module Stripe
3268
3294
  attr_accessor :payment_method_types
3269
3295
  # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
3270
3296
  #
3271
- # For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
3297
+ # For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
3272
3298
  attr_accessor :permissions
3273
3299
  # Controls phone number collection settings for the session.
3274
3300
  #
@@ -3306,6 +3332,8 @@ module Stripe
3306
3332
  attr_accessor :tax_id_collection
3307
3333
  # The UI mode of the Session. Defaults to `hosted`.
3308
3334
  attr_accessor :ui_mode
3335
+ # Wallet-specific configuration.
3336
+ attr_accessor :wallet_options
3309
3337
 
3310
3338
  def initialize(
3311
3339
  adaptive_pricing: nil,
@@ -3351,7 +3379,8 @@ module Stripe
3351
3379
  subscription_data: nil,
3352
3380
  success_url: nil,
3353
3381
  tax_id_collection: nil,
3354
- ui_mode: nil
3382
+ ui_mode: nil,
3383
+ wallet_options: nil
3355
3384
  )
3356
3385
  @adaptive_pricing = adaptive_pricing
3357
3386
  @after_expiration = after_expiration
@@ -3397,6 +3426,7 @@ module Stripe
3397
3426
  @success_url = success_url
3398
3427
  @tax_id_collection = tax_id_collection
3399
3428
  @ui_mode = ui_mode
3429
+ @wallet_options = wallet_options
3400
3430
  end
3401
3431
  end
3402
3432
 
@@ -3764,7 +3794,7 @@ module Stripe
3764
3794
  attr_reader :payment_status
3765
3795
  # This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
3766
3796
  #
3767
- # For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
3797
+ # For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`.
3768
3798
  attr_reader :permissions
3769
3799
  # Attribute for field phone_number_collection
3770
3800
  attr_reader :phone_number_collection
@@ -3806,6 +3836,8 @@ module Stripe
3806
3836
  # The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted`. Redirect customers to this URL to take them to Checkout. If you’re using [Custom Domains](https://stripe.com/docs/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it’ll use `checkout.stripe.com.`
3807
3837
  # This value is only present when the session is active.
3808
3838
  attr_reader :url
3839
+ # Wallet-specific configuration for this Checkout Session.
3840
+ attr_reader :wallet_options
3809
3841
 
3810
3842
  # Creates a Checkout Session object.
3811
3843
  def self.create(params = {}, opts = {})
@@ -1320,7 +1320,7 @@ module Stripe
1320
1320
  attr_accessor :bacs_debit
1321
1321
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
1322
1322
  attr_accessor :bancontact
1323
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
1323
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
1324
1324
  attr_accessor :billie
1325
1325
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
1326
1326
  attr_accessor :billing_details
@@ -1394,11 +1394,11 @@ module Stripe
1394
1394
  attr_accessor :radar_options
1395
1395
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1396
1396
  attr_accessor :rechnung
1397
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1397
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1398
1398
  attr_accessor :revolut_pay
1399
1399
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
1400
1400
  attr_accessor :samsung_pay
1401
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
1401
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
1402
1402
  attr_accessor :satispay
1403
1403
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1404
1404
  attr_accessor :sepa_debit
@@ -1162,7 +1162,7 @@ module Stripe
1162
1162
  attr_accessor :created
1163
1163
  # Only return invoices for the customer specified by this customer ID.
1164
1164
  attr_accessor :customer
1165
- # Attribute for param field customer_account
1165
+ # Only return invoices for the account specified by this account ID.
1166
1166
  attr_accessor :customer_account
1167
1167
  # Attribute for param field due_date
1168
1168
  attr_accessor :due_date
@@ -2,7 +2,8 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Login Links are single-use URLs for a connected account to access the Express Dashboard. The connected account's [account.controller.stripe_dashboard.type](https://stripe.com/api/accounts/object#account_object-controller-stripe_dashboard-type) must be `express` to have access to the Express Dashboard.
5
+ # Login Links are single-use URLs that takes an Express account to the login page for their Stripe dashboard.
6
+ # A Login Link differs from an [Account Link](https://stripe.com/docs/api/account_links) in that it takes the user directly to their [Express dashboard for the specified account](https://stripe.com/docs/connect/integrate-express-dashboard#create-login-link)
6
7
  class LoginLink < APIResource
7
8
  OBJECT_NAME = "login_link"
8
9
  def self.object_name
@@ -17,28 +17,28 @@ module Stripe
17
17
  class AmountCanceled < Stripe::StripeObject
18
18
  # 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).
19
19
  attr_reader :currency
20
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
20
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
21
21
  attr_reader :value
22
22
  end
23
23
 
24
24
  class AmountFailed < Stripe::StripeObject
25
25
  # 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).
26
26
  attr_reader :currency
27
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
27
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
28
28
  attr_reader :value
29
29
  end
30
30
 
31
31
  class AmountGuaranteed < Stripe::StripeObject
32
32
  # 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).
33
33
  attr_reader :currency
34
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
34
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
35
35
  attr_reader :value
36
36
  end
37
37
 
38
38
  class AmountRequested < Stripe::StripeObject
39
39
  # 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).
40
40
  attr_reader :currency
41
- # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) e.g., 100 cents for $1.00 or 100 for ¥100, a zero-decimal currency).
41
+ # A positive integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) for example, 100 cents for 1 USD or 100 for 100 JPY, a zero-decimal currency.
42
42
  attr_reader :value
43
43
  end
44
44
 
@@ -3157,7 +3157,7 @@ module Stripe
3157
3157
  attr_accessor :bacs_debit
3158
3158
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
3159
3159
  attr_accessor :bancontact
3160
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
3160
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
3161
3161
  attr_accessor :billie
3162
3162
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
3163
3163
  attr_accessor :billing_details
@@ -3231,11 +3231,11 @@ module Stripe
3231
3231
  attr_accessor :radar_options
3232
3232
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
3233
3233
  attr_accessor :rechnung
3234
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3234
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3235
3235
  attr_accessor :revolut_pay
3236
3236
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
3237
3237
  attr_accessor :samsung_pay
3238
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
3238
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
3239
3239
  attr_accessor :satispay
3240
3240
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
3241
3241
  attr_accessor :sepa_debit
@@ -6645,7 +6645,7 @@ module Stripe
6645
6645
  attr_accessor :bacs_debit
6646
6646
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
6647
6647
  attr_accessor :bancontact
6648
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
6648
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
6649
6649
  attr_accessor :billie
6650
6650
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
6651
6651
  attr_accessor :billing_details
@@ -6719,11 +6719,11 @@ module Stripe
6719
6719
  attr_accessor :radar_options
6720
6720
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
6721
6721
  attr_accessor :rechnung
6722
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
6722
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
6723
6723
  attr_accessor :revolut_pay
6724
6724
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
6725
6725
  attr_accessor :samsung_pay
6726
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
6726
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
6727
6727
  attr_accessor :satispay
6728
6728
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
6729
6729
  attr_accessor :sepa_debit
@@ -10865,7 +10865,7 @@ module Stripe
10865
10865
  attr_accessor :bacs_debit
10866
10866
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
10867
10867
  attr_accessor :bancontact
10868
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
10868
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
10869
10869
  attr_accessor :billie
10870
10870
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
10871
10871
  attr_accessor :billing_details
@@ -10939,11 +10939,11 @@ module Stripe
10939
10939
  attr_accessor :radar_options
10940
10940
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
10941
10941
  attr_accessor :rechnung
10942
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
10942
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
10943
10943
  attr_accessor :revolut_pay
10944
10944
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
10945
10945
  attr_accessor :samsung_pay
10946
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
10946
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
10947
10947
  attr_accessor :satispay
10948
10948
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
10949
10949
  attr_accessor :sepa_debit
@@ -1206,7 +1206,7 @@ module Stripe
1206
1206
  attr_accessor :bacs_debit
1207
1207
  # If this is a `bancontact` PaymentMethod, this hash contains details about the Bancontact payment method.
1208
1208
  attr_accessor :bancontact
1209
- # If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
1209
+ # If this is a `billie` PaymentMethod, this hash contains details about the Billie payment method.
1210
1210
  attr_accessor :billie
1211
1211
  # Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
1212
1212
  attr_accessor :billing_details
@@ -1288,11 +1288,11 @@ module Stripe
1288
1288
  attr_accessor :radar_options
1289
1289
  # If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1290
1290
  attr_accessor :rechnung
1291
- # If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1291
+ # If this is a `revolut_pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1292
1292
  attr_accessor :revolut_pay
1293
1293
  # If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method.
1294
1294
  attr_accessor :samsung_pay
1295
- # If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
1295
+ # If this is a `satispay` PaymentMethod, this hash contains details about the Satispay payment method.
1296
1296
  attr_accessor :satispay
1297
1297
  # If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
1298
1298
  attr_accessor :sepa_debit