stripe 9.4.0.pre.beta.3 → 9.4.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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -212
  3. data/OPENAPI_VERSION +1 -1
  4. data/README.md +0 -11
  5. data/VERSION +1 -1
  6. data/lib/data/ca-certificates.crt +290 -3340
  7. data/lib/stripe/api_operations/request.rb +0 -2
  8. data/lib/stripe/api_version.rb +0 -1
  9. data/lib/stripe/object_types.rb +1 -17
  10. data/lib/stripe/resources/financial_connections/account.rb +0 -39
  11. data/lib/stripe/resources/issuing/token.rb +14 -0
  12. data/lib/stripe/resources/payment_method_configuration.rb +14 -1
  13. data/lib/stripe/resources/quote.rb +0 -94
  14. data/lib/stripe/resources/setup_intent.rb +11 -12
  15. data/lib/stripe/resources/subscription_schedule.rb +0 -18
  16. data/lib/stripe/resources/terminal/reader.rb +0 -54
  17. data/lib/stripe/resources/token.rb +11 -11
  18. data/lib/stripe/resources.rb +1 -17
  19. data/lib/stripe/stripe_client.rb +26 -60
  20. data/lib/stripe/stripe_configuration.rb +0 -2
  21. data/lib/stripe/util.rb +1 -8
  22. data/lib/stripe/version.rb +1 -1
  23. data/lib/stripe.rb +0 -46
  24. metadata +9 -26
  25. data/lib/stripe/request_signing_authenticator.rb +0 -83
  26. data/lib/stripe/resources/capital/financing_offer.rb +0 -32
  27. data/lib/stripe/resources/capital/financing_summary.rb +0 -12
  28. data/lib/stripe/resources/capital/financing_transaction.rb +0 -13
  29. data/lib/stripe/resources/confirmation_token.rb +0 -11
  30. data/lib/stripe/resources/customer_session.rb +0 -12
  31. data/lib/stripe/resources/financial_connections/inferred_balance.rb +0 -13
  32. data/lib/stripe/resources/financial_connections/transaction.rb +0 -13
  33. data/lib/stripe/resources/gift_cards/card.rb +0 -25
  34. data/lib/stripe/resources/gift_cards/transaction.rb +0 -56
  35. data/lib/stripe/resources/issuing/personalization_design.rb +0 -77
  36. data/lib/stripe/resources/issuing/physical_bundle.rb +0 -13
  37. data/lib/stripe/resources/order.rb +0 -89
  38. data/lib/stripe/resources/quote_phase.rb +0 -29
  39. data/lib/stripe/resources/quote_preview_invoice.rb +0 -42
  40. data/lib/stripe/resources/quote_preview_schedule.rb +0 -10
  41. data/lib/stripe/resources/tax/form.rb +0 -39
  42. data/lib/stripe/resources/tax/registration.rb +0 -19
@@ -47,7 +47,6 @@ module Stripe
47
47
  api_key = headers.delete(:api_key)
48
48
  api_base = headers.delete(:api_base)
49
49
  client = headers.delete(:client)
50
- api_mode = headers.delete(:api_mode)
51
50
  # Assume all remaining opts must be headers
52
51
 
53
52
  resp, opts[:api_key] = client.send(
@@ -55,7 +54,6 @@ module Stripe
55
54
  method, url,
56
55
  api_base: api_base, api_key: api_key,
57
56
  headers: headers, params: params,
58
- api_mode: api_mode,
59
57
  &read_body_chunk_block
60
58
  )
61
59
 
@@ -4,6 +4,5 @@
4
4
  module Stripe
5
5
  module ApiVersion
6
6
  CURRENT = "2023-08-16"
7
- PREVIEW = "2023-09-15.preview-v2"
8
7
  end
9
8
  end
@@ -25,14 +25,10 @@ module Stripe
25
25
  BillingPortal::Configuration::OBJECT_NAME => BillingPortal::Configuration,
26
26
  BillingPortal::Session::OBJECT_NAME => BillingPortal::Session,
27
27
  Capability::OBJECT_NAME => Capability,
28
- Capital::FinancingOffer::OBJECT_NAME => Capital::FinancingOffer,
29
- Capital::FinancingSummary::OBJECT_NAME => Capital::FinancingSummary,
30
- Capital::FinancingTransaction::OBJECT_NAME => Capital::FinancingTransaction,
31
28
  Card::OBJECT_NAME => Card,
32
29
  CashBalance::OBJECT_NAME => CashBalance,
33
30
  Charge::OBJECT_NAME => Charge,
34
31
  Checkout::Session::OBJECT_NAME => Checkout::Session,
35
- ConfirmationToken::OBJECT_NAME => ConfirmationToken,
36
32
  CountrySpec::OBJECT_NAME => CountrySpec,
37
33
  Coupon::OBJECT_NAME => Coupon,
38
34
  CreditNote::OBJECT_NAME => CreditNote,
@@ -40,7 +36,6 @@ module Stripe
40
36
  Customer::OBJECT_NAME => Customer,
41
37
  CustomerBalanceTransaction::OBJECT_NAME => CustomerBalanceTransaction,
42
38
  CustomerCashBalanceTransaction::OBJECT_NAME => CustomerCashBalanceTransaction,
43
- CustomerSession::OBJECT_NAME => CustomerSession,
44
39
  Discount::OBJECT_NAME => Discount,
45
40
  Dispute::OBJECT_NAME => Dispute,
46
41
  EphemeralKey::OBJECT_NAME => EphemeralKey,
@@ -53,12 +48,8 @@ module Stripe
53
48
  FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
54
49
  FinancialConnections::AccountOwnership::OBJECT_NAME =>
55
50
  FinancialConnections::AccountOwnership,
56
- FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
57
51
  FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
58
- FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
59
52
  FundingInstructions::OBJECT_NAME => FundingInstructions,
60
- GiftCards::Card::OBJECT_NAME => GiftCards::Card,
61
- GiftCards::Transaction::OBJECT_NAME => GiftCards::Transaction,
62
53
  Identity::VerificationReport::OBJECT_NAME => Identity::VerificationReport,
63
54
  Identity::VerificationSession::OBJECT_NAME => Identity::VerificationSession,
64
55
  Invoice::OBJECT_NAME => Invoice,
@@ -68,13 +59,11 @@ module Stripe
68
59
  Issuing::Card::OBJECT_NAME => Issuing::Card,
69
60
  Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
70
61
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
71
- Issuing::PersonalizationDesign::OBJECT_NAME => Issuing::PersonalizationDesign,
72
- Issuing::PhysicalBundle::OBJECT_NAME => Issuing::PhysicalBundle,
62
+ Issuing::Token::OBJECT_NAME => Issuing::Token,
73
63
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
74
64
  LineItem::OBJECT_NAME => LineItem,
75
65
  LoginLink::OBJECT_NAME => LoginLink,
76
66
  Mandate::OBJECT_NAME => Mandate,
77
- Order::OBJECT_NAME => Order,
78
67
  PaymentIntent::OBJECT_NAME => PaymentIntent,
79
68
  PaymentLink::OBJECT_NAME => PaymentLink,
80
69
  PaymentMethod::OBJECT_NAME => PaymentMethod,
@@ -87,9 +76,6 @@ module Stripe
87
76
  Product::OBJECT_NAME => Product,
88
77
  PromotionCode::OBJECT_NAME => PromotionCode,
89
78
  Quote::OBJECT_NAME => Quote,
90
- QuotePhase::OBJECT_NAME => QuotePhase,
91
- QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
92
- QuotePreviewSchedule::OBJECT_NAME => QuotePreviewSchedule,
93
79
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
94
80
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
95
81
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -109,8 +95,6 @@ module Stripe
109
95
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
110
96
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
111
97
  Tax::CalculationLineItem::OBJECT_NAME => Tax::CalculationLineItem,
112
- Tax::Form::OBJECT_NAME => Tax::Form,
113
- Tax::Registration::OBJECT_NAME => Tax::Registration,
114
98
  Tax::Settings::OBJECT_NAME => Tax::Settings,
115
99
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
116
100
  Tax::TransactionLineItem::OBJECT_NAME => Tax::TransactionLineItem,
@@ -6,12 +6,9 @@ module Stripe
6
6
  # A Financial Connections Account represents an account that exists outside of Stripe, to which you have been granted some degree of access.
7
7
  class Account < APIResource
8
8
  extend Stripe::APIOperations::List
9
- extend Stripe::APIOperations::NestedResource
10
9
 
11
10
  OBJECT_NAME = "financial_connections.account"
12
11
 
13
- nested_resource_class_methods :inferred_balance, operations: %i[list]
14
-
15
12
  def disconnect(params = {}, opts = {})
16
13
  request_stripe_object(
17
14
  method: :post,
@@ -39,24 +36,6 @@ module Stripe
39
36
  )
40
37
  end
41
38
 
42
- def subscribe(params = {}, opts = {})
43
- request_stripe_object(
44
- method: :post,
45
- path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(self["id"]) }),
46
- params: params,
47
- opts: opts
48
- )
49
- end
50
-
51
- def unsubscribe(params = {}, opts = {})
52
- request_stripe_object(
53
- method: :post,
54
- path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(self["id"]) }),
55
- params: params,
56
- opts: opts
57
- )
58
- end
59
-
60
39
  def self.disconnect(account, params = {}, opts = {})
61
40
  request_stripe_object(
62
41
  method: :post,
@@ -83,24 +62,6 @@ module Stripe
83
62
  opts: opts
84
63
  )
85
64
  end
86
-
87
- def self.subscribe(account, params = {}, opts = {})
88
- request_stripe_object(
89
- method: :post,
90
- path: format("/v1/financial_connections/accounts/%<account>s/subscribe", { account: CGI.escape(account) }),
91
- params: params,
92
- opts: opts
93
- )
94
- end
95
-
96
- def self.unsubscribe(account, params = {}, opts = {})
97
- request_stripe_object(
98
- method: :post,
99
- path: format("/v1/financial_connections/accounts/%<account>s/unsubscribe", { account: CGI.escape(account) }),
100
- params: params,
101
- opts: opts
102
- )
103
- end
104
65
  end
105
66
  end
106
67
  end
@@ -0,0 +1,14 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Issuing
6
+ # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can view and manage these tokens through Stripe.
7
+ class Token < APIResource
8
+ extend Stripe::APIOperations::List
9
+ include Stripe::APIOperations::Save
10
+
11
+ OBJECT_NAME = "issuing.token"
12
+ end
13
+ end
14
+ end
@@ -2,7 +2,20 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # An object detailing payment method configurations.
5
+ # PaymentMethodConfigurations control which payment methods are displayed to your customers when you don't explicitly specify payment method types. You can have multiple configurations with different sets of payment methods for different scenarios.
6
+ #
7
+ # There are two types of PaymentMethodConfigurations. Which is used depends on the [charge type](https://stripe.com/docs/connect/charges):
8
+ #
9
+ # **Direct** configurations apply to payments created on your account, including Connect destination charges, Connect separate charges and transfers, and payments not involving Connect.
10
+ #
11
+ # **Child** configurations apply to payments created on your connected accounts using direct charges, and charges with the on_behalf_of parameter.
12
+ #
13
+ # Child configurations have a `parent` that sets default values and controls which settings connected accounts may override. You can specify a parent ID at payment time, and Stripe will automatically resolve the connected account's associated child configuration. Parent configurations are [managed in the dashboard](https://dashboard.stripe.com/settings/payment_methods/connected_accounts) and are not available in this API.
14
+ #
15
+ # Related guides:
16
+ # - [Payment Method Configurations API](https://stripe.com/docs/connect/payment-method-configurations)
17
+ # - [Multiple payment method configurations on dynamic payment methods](https://stripe.com/docs/payments/multiple-payment-method-configs)
18
+ # - [Multiple configurations for your Connect accounts](https://stripe.com/docs/connect/multiple-payment-method-configurations)
6
19
  class PaymentMethodConfiguration < APIResource
7
20
  extend Stripe::APIOperations::Create
8
21
  extend Stripe::APIOperations::List
@@ -8,13 +8,9 @@ module Stripe
8
8
  extend Stripe::APIOperations::Create
9
9
  extend Stripe::APIOperations::List
10
10
  include Stripe::APIOperations::Save
11
- extend Stripe::APIOperations::NestedResource
12
11
 
13
12
  OBJECT_NAME = "quote"
14
13
 
15
- nested_resource_class_methods :preview_invoice, operations: %i[list]
16
- nested_resource_class_methods :preview_subscription_schedule, operations: %i[list]
17
-
18
14
  def accept(params = {}, opts = {})
19
15
  request_stripe_object(
20
16
  method: :post,
@@ -33,15 +29,6 @@ module Stripe
33
29
  )
34
30
  end
35
31
 
36
- def draft_quote(params = {}, opts = {})
37
- request_stripe_object(
38
- method: :post,
39
- path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
40
- params: params,
41
- opts: opts
42
- )
43
- end
44
-
45
32
  def finalize_quote(params = {}, opts = {})
46
33
  request_stripe_object(
47
34
  method: :post,
@@ -69,24 +56,6 @@ module Stripe
69
56
  )
70
57
  end
71
58
 
72
- def list_lines(params = {}, opts = {})
73
- request_stripe_object(
74
- method: :get,
75
- path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
76
- params: params,
77
- opts: opts
78
- )
79
- end
80
-
81
- def mark_stale_quote(params = {}, opts = {})
82
- request_stripe_object(
83
- method: :post,
84
- path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
85
- params: params,
86
- opts: opts
87
- )
88
- end
89
-
90
59
  def pdf(params = {}, opts = {}, &read_body_chunk_block)
91
60
  config = opts[:client]&.config || Stripe.config
92
61
  opts = { api_base: config.uploads_base }.merge(opts)
@@ -99,24 +68,6 @@ module Stripe
99
68
  )
100
69
  end
101
70
 
102
- def preview_invoice_lines(preview_invoice, params = {}, opts = {})
103
- request_stripe_object(
104
- method: :get,
105
- path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
106
- params: params,
107
- opts: opts
108
- )
109
- end
110
-
111
- def reestimate(params = {}, opts = {})
112
- request_stripe_object(
113
- method: :post,
114
- path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
115
- params: params,
116
- opts: opts
117
- )
118
- end
119
-
120
71
  def self.accept(quote, params = {}, opts = {})
121
72
  request_stripe_object(
122
73
  method: :post,
@@ -135,15 +86,6 @@ module Stripe
135
86
  )
136
87
  end
137
88
 
138
- def self.draft_quote(quote, params = {}, opts = {})
139
- request_stripe_object(
140
- method: :post,
141
- path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
142
- params: params,
143
- opts: opts
144
- )
145
- end
146
-
147
89
  def self.finalize_quote(quote, params = {}, opts = {})
148
90
  request_stripe_object(
149
91
  method: :post,
@@ -171,24 +113,6 @@ module Stripe
171
113
  )
172
114
  end
173
115
 
174
- def self.list_lines(quote, params = {}, opts = {})
175
- request_stripe_object(
176
- method: :get,
177
- path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
178
- params: params,
179
- opts: opts
180
- )
181
- end
182
-
183
- def self.mark_stale_quote(quote, params = {}, opts = {})
184
- request_stripe_object(
185
- method: :post,
186
- path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
187
- params: params,
188
- opts: opts
189
- )
190
- end
191
-
192
116
  def self.pdf(quote, params = {}, opts = {}, &read_body_chunk_block)
193
117
  config = opts[:client]&.config || Stripe.config
194
118
  opts = { api_base: config.uploads_base }.merge(opts)
@@ -200,23 +124,5 @@ module Stripe
200
124
  &read_body_chunk_block
201
125
  )
202
126
  end
203
-
204
- def self.preview_invoice_lines(quote, preview_invoice, params = {}, opts = {})
205
- request_stripe_object(
206
- method: :get,
207
- path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
208
- params: params,
209
- opts: opts
210
- )
211
- end
212
-
213
- def self.reestimate(quote, params = {}, opts = {})
214
- request_stripe_object(
215
- method: :post,
216
- path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
217
- params: params,
218
- opts: opts
219
- )
220
- end
221
127
  end
222
128
  end
@@ -3,25 +3,24 @@
3
3
 
4
4
  module Stripe
5
5
  # A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments.
6
- # For example, you could use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
6
+ # For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment.
7
7
  # Later, you can use [PaymentIntents](https://stripe.com/docs/api#payment_intents) to drive the payment flow.
8
8
  #
9
- # Create a SetupIntent as soon as you're ready to collect your customer's payment credentials.
10
- # Do not maintain long-lived, unconfirmed SetupIntents as they may no longer be valid.
11
- # The SetupIntent then transitions through multiple [statuses](https://stripe.com/docs/payments/intents#intent-statuses) as it guides
9
+ # Create a SetupIntent when you're ready to collect your customer's payment credentials.
10
+ # Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
11
+ # The SetupIntent transitions through multiple [statuses](https://stripe.com/docs/payments/intents#intent-statuses) as it guides
12
12
  # you through the setup process.
13
13
  #
14
14
  # Successful SetupIntents result in payment credentials that are optimized for future payments.
15
- # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) may need to be run through
16
- # [Strong Customer Authentication](https://stripe.com/docs/strong-customer-authentication) at the time of payment method collection
17
- # in order to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents).
18
- # If the SetupIntent is used with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer), upon success,
19
- # it will automatically attach the resulting payment method to that Customer.
15
+ # For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
16
+ # [Strong Customer Authentication](https://stripe.com/docs/strong-customer-authentication) during payment method collection
17
+ # to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents).
18
+ # If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
19
+ # it automatically attaches the resulting payment method to that Customer after successful setup.
20
20
  # We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
21
- # PaymentIntents to save payment methods in order to prevent saving invalid or unoptimized payment methods.
21
+ # PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
22
22
  #
23
- # By using SetupIntents, you ensure that your customers experience the minimum set of required friction,
24
- # even as regulations change over time.
23
+ # By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
25
24
  #
26
25
  # Related guide: [Setup Intents API](https://stripe.com/docs/payments/setup-intents)
27
26
  class SetupIntent < APIResource
@@ -12,15 +12,6 @@ module Stripe
12
12
 
13
13
  OBJECT_NAME = "subscription_schedule"
14
14
 
15
- def amend(params = {}, opts = {})
16
- request_stripe_object(
17
- method: :post,
18
- path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(self["id"]) }),
19
- params: params,
20
- opts: opts
21
- )
22
- end
23
-
24
15
  def cancel(params = {}, opts = {})
25
16
  request_stripe_object(
26
17
  method: :post,
@@ -39,15 +30,6 @@ module Stripe
39
30
  )
40
31
  end
41
32
 
42
- def self.amend(schedule, params = {}, opts = {})
43
- request_stripe_object(
44
- method: :post,
45
- path: format("/v1/subscription_schedules/%<schedule>s/amend", { schedule: CGI.escape(schedule) }),
46
- params: params,
47
- opts: opts
48
- )
49
- end
50
-
51
33
  def self.cancel(schedule, params = {}, opts = {})
52
34
  request_stripe_object(
53
35
  method: :post,
@@ -23,33 +23,6 @@ module Stripe
23
23
  )
24
24
  end
25
25
 
26
- def collect_inputs(params = {}, opts = {})
27
- request_stripe_object(
28
- method: :post,
29
- path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(self["id"]) }),
30
- params: params,
31
- opts: opts
32
- )
33
- end
34
-
35
- def collect_payment_method(params = {}, opts = {})
36
- request_stripe_object(
37
- method: :post,
38
- path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(self["id"]) }),
39
- params: params,
40
- opts: opts
41
- )
42
- end
43
-
44
- def confirm_payment_intent(params = {}, opts = {})
45
- request_stripe_object(
46
- method: :post,
47
- path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(self["id"]) }),
48
- params: params,
49
- opts: opts
50
- )
51
- end
52
-
53
26
  def process_payment_intent(params = {}, opts = {})
54
27
  request_stripe_object(
55
28
  method: :post,
@@ -95,33 +68,6 @@ module Stripe
95
68
  )
96
69
  end
97
70
 
98
- def self.collect_inputs(reader, params = {}, opts = {})
99
- request_stripe_object(
100
- method: :post,
101
- path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
102
- params: params,
103
- opts: opts
104
- )
105
- end
106
-
107
- def self.collect_payment_method(reader, params = {}, opts = {})
108
- request_stripe_object(
109
- method: :post,
110
- path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(reader) }),
111
- params: params,
112
- opts: opts
113
- )
114
- end
115
-
116
- def self.confirm_payment_intent(reader, params = {}, opts = {})
117
- request_stripe_object(
118
- method: :post,
119
- path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(reader) }),
120
- params: params,
121
- opts: opts
122
- )
123
- end
124
-
125
71
  def self.process_payment_intent(reader, params = {}, opts = {})
126
72
  request_stripe_object(
127
73
  method: :post,
@@ -5,21 +5,21 @@ module Stripe
5
5
  # Tokenization is the process Stripe uses to collect sensitive card or bank
6
6
  # account details, or personally identifiable information (PII), directly from
7
7
  # your customers in a secure manner. A token representing this information is
8
- # returned to your server to use. You should use our
8
+ # returned to your server to use. Use our
9
9
  # [recommended payments integrations](https://stripe.com/docs/payments) to perform this process
10
- # client-side. This ensures that no sensitive card data touches your server,
10
+ # on the client-side. This guarantees that no sensitive card data touches your server,
11
11
  # and allows your integration to operate in a PCI-compliant way.
12
12
  #
13
- # If you cannot use client-side tokenization, you can also create tokens using
14
- # the API with either your publishable or secret API key. Keep in mind that if
15
- # your integration uses this method, you are responsible for any PCI compliance
16
- # that may be required, and you must keep your secret API key safe. Unlike with
17
- # client-side tokenization, your customer's information is not sent directly to
18
- # Stripe, so we cannot determine how it is handled or stored.
13
+ # If you can't use client-side tokenization, you can also create tokens using
14
+ # the API with either your publishable or secret API key. If
15
+ # your integration uses this method, you're responsible for any PCI compliance
16
+ # that it might require, and you must keep your secret API key safe. Unlike with
17
+ # client-side tokenization, your customer's information isn't sent directly to
18
+ # Stripe, so we can't determine how it's handled or stored.
19
19
  #
20
- # Tokens cannot be stored or used more than once. To store card or bank account
21
- # information for later use, you can create [Customer](https://stripe.com/docs/api#customers)
22
- # objects or [Custom accounts](https://stripe.com/docs/api#external_accounts). Note that
20
+ # You can't store or use tokens more than once. To store card or bank account
21
+ # information for later use, create [Customer](https://stripe.com/docs/api#customers)
22
+ # objects or [Custom accounts](https://stripe.com/docs/api#external_accounts).
23
23
  # [Radar](https://stripe.com/docs/radar), our integrated solution for automatic fraud protection,
24
24
  # performs best with integrations that use client-side tokenization.
25
25
  class Token < APIResource
@@ -14,14 +14,10 @@ require "stripe/resources/bank_account"
14
14
  require "stripe/resources/billing_portal/configuration"
15
15
  require "stripe/resources/billing_portal/session"
16
16
  require "stripe/resources/capability"
17
- require "stripe/resources/capital/financing_offer"
18
- require "stripe/resources/capital/financing_summary"
19
- require "stripe/resources/capital/financing_transaction"
20
17
  require "stripe/resources/card"
21
18
  require "stripe/resources/cash_balance"
22
19
  require "stripe/resources/charge"
23
20
  require "stripe/resources/checkout/session"
24
- require "stripe/resources/confirmation_token"
25
21
  require "stripe/resources/country_spec"
26
22
  require "stripe/resources/coupon"
27
23
  require "stripe/resources/credit_note"
@@ -29,7 +25,6 @@ require "stripe/resources/credit_note_line_item"
29
25
  require "stripe/resources/customer"
30
26
  require "stripe/resources/customer_balance_transaction"
31
27
  require "stripe/resources/customer_cash_balance_transaction"
32
- require "stripe/resources/customer_session"
33
28
  require "stripe/resources/discount"
34
29
  require "stripe/resources/dispute"
35
30
  require "stripe/resources/ephemeral_key"
@@ -40,12 +35,8 @@ require "stripe/resources/file_link"
40
35
  require "stripe/resources/financial_connections/account"
41
36
  require "stripe/resources/financial_connections/account_owner"
42
37
  require "stripe/resources/financial_connections/account_ownership"
43
- require "stripe/resources/financial_connections/inferred_balance"
44
38
  require "stripe/resources/financial_connections/session"
45
- require "stripe/resources/financial_connections/transaction"
46
39
  require "stripe/resources/funding_instructions"
47
- require "stripe/resources/gift_cards/card"
48
- require "stripe/resources/gift_cards/transaction"
49
40
  require "stripe/resources/identity/verification_report"
50
41
  require "stripe/resources/identity/verification_session"
51
42
  require "stripe/resources/invoice"
@@ -55,13 +46,11 @@ require "stripe/resources/issuing/authorization"
55
46
  require "stripe/resources/issuing/card"
56
47
  require "stripe/resources/issuing/cardholder"
57
48
  require "stripe/resources/issuing/dispute"
58
- require "stripe/resources/issuing/personalization_design"
59
- require "stripe/resources/issuing/physical_bundle"
49
+ require "stripe/resources/issuing/token"
60
50
  require "stripe/resources/issuing/transaction"
61
51
  require "stripe/resources/line_item"
62
52
  require "stripe/resources/login_link"
63
53
  require "stripe/resources/mandate"
64
- require "stripe/resources/order"
65
54
  require "stripe/resources/payment_intent"
66
55
  require "stripe/resources/payment_link"
67
56
  require "stripe/resources/payment_method"
@@ -74,9 +63,6 @@ require "stripe/resources/price"
74
63
  require "stripe/resources/product"
75
64
  require "stripe/resources/promotion_code"
76
65
  require "stripe/resources/quote"
77
- require "stripe/resources/quote_phase"
78
- require "stripe/resources/quote_preview_invoice"
79
- require "stripe/resources/quote_preview_schedule"
80
66
  require "stripe/resources/radar/early_fraud_warning"
81
67
  require "stripe/resources/radar/value_list"
82
68
  require "stripe/resources/radar/value_list_item"
@@ -96,8 +82,6 @@ require "stripe/resources/subscription_item"
96
82
  require "stripe/resources/subscription_schedule"
97
83
  require "stripe/resources/tax/calculation"
98
84
  require "stripe/resources/tax/calculation_line_item"
99
- require "stripe/resources/tax/form"
100
- require "stripe/resources/tax/registration"
101
85
  require "stripe/resources/tax/settings"
102
86
  require "stripe/resources/tax/transaction"
103
87
  require "stripe/resources/tax/transaction_line_item"