stripe 9.4.0.pre.beta.3 → 9.5.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a614dc902059fe7cd8fc457e2b3074fe27852175e85149506696e59e6383f09
4
- data.tar.gz: e337556039216583207283b2cf00c5e8e3853e76c087dc3fb97f9efb46317048
3
+ metadata.gz: ffa1ec982a25761b4fbcde466352c0d7b33c271b4984cfd6d8952f022c708d28
4
+ data.tar.gz: d0b809023169184e8988ed38b95056cbe266198a171ff057016f95ca0b42a731
5
5
  SHA512:
6
- metadata.gz: 8a5a634c8a31aea738af218070c71e0d138a4132f18701928e677c0166571b67bc65d5a960f3c1e7f506d478072e61f4311d03555844c1f2c39514dd96d02286
7
- data.tar.gz: c9e0957347da262d0141e070b941192b1f3ffcb7c2939676abf50cc8c3ef6fbc2c548a3adff0fc814f7b0b15fc84ed2e8e75b05fb29fb315bd428390e0963c8a
6
+ metadata.gz: 28575518bc3d43f30b58cec8f077e9ee19d1a8b289bfba46a2229c13436dc1f48e857ac33a2cb7ce7e7a085a7411bb78ebd33ee49d8f14482e39b269e0aea8cf
7
+ data.tar.gz: 840eb431868dd83b08ebb1800983e49eb3a9f2842745c570ec54944e6d0e9c30c9057f776c7c37b39596ff561e0469116c215824841fc0584fbe0fbd596aad42
data/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.5.0-beta.1 - 2023-10-05
4
+ * [#1278](https://github.com/stripe/stripe-ruby/pull/1278) Update generated code for beta
5
+ * Add support for `mark_draft` and `mark_stale` methods on resource `Quote`
6
+ * Remove support for `draft_quote` and `mark_stale_quote` methods on resource `Quote`
7
+ * Rename `preview_invoice_lines` to `list_preview_invoice_lines` on resource `Quote`
8
+
9
+
3
10
  ## 9.4.0-beta.3 - 2023-09-28
4
11
  * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
5
- * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
12
+ * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
6
13
 
7
14
  ## 9.4.0-beta.2 - 2023-09-21
8
15
  * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v569
1
+ v582
data/VERSION CHANGED
@@ -1 +1 @@
1
- 9.4.0-beta.3
1
+ 9.5.0-beta.1
@@ -50,10 +50,11 @@ module Stripe
50
50
  File::OBJECT_NAME_ALT => File,
51
51
  FileLink::OBJECT_NAME => FileLink,
52
52
  FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
53
+ FinancialConnections::AccountInferredBalance::OBJECT_NAME =>
54
+ FinancialConnections::AccountInferredBalance,
53
55
  FinancialConnections::AccountOwner::OBJECT_NAME => FinancialConnections::AccountOwner,
54
56
  FinancialConnections::AccountOwnership::OBJECT_NAME =>
55
57
  FinancialConnections::AccountOwnership,
56
- FinancialConnections::InferredBalance::OBJECT_NAME => FinancialConnections::InferredBalance,
57
58
  FinancialConnections::Session::OBJECT_NAME => FinancialConnections::Session,
58
59
  FinancialConnections::Transaction::OBJECT_NAME => FinancialConnections::Transaction,
59
60
  FundingInstructions::OBJECT_NAME => FundingInstructions,
@@ -70,6 +71,7 @@ module Stripe
70
71
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
71
72
  Issuing::PersonalizationDesign::OBJECT_NAME => Issuing::PersonalizationDesign,
72
73
  Issuing::PhysicalBundle::OBJECT_NAME => Issuing::PhysicalBundle,
74
+ Issuing::Token::OBJECT_NAME => Issuing::Token,
73
75
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
74
76
  LineItem::OBJECT_NAME => LineItem,
75
77
  LoginLink::OBJECT_NAME => LoginLink,
@@ -89,7 +91,7 @@ module Stripe
89
91
  Quote::OBJECT_NAME => Quote,
90
92
  QuotePhase::OBJECT_NAME => QuotePhase,
91
93
  QuotePreviewInvoice::OBJECT_NAME => QuotePreviewInvoice,
92
- QuotePreviewSchedule::OBJECT_NAME => QuotePreviewSchedule,
94
+ QuotePreviewSubscriptionSchedule::OBJECT_NAME => QuotePreviewSubscriptionSchedule,
93
95
  Radar::EarlyFraudWarning::OBJECT_NAME => Radar::EarlyFraudWarning,
94
96
  Radar::ValueList::OBJECT_NAME => Radar::ValueList,
95
97
  Radar::ValueListItem::OBJECT_NAME => Radar::ValueListItem,
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module FinancialConnections
6
6
  # A historical balance for the account on a particular day. It may be sourced from a balance snapshot provided by a financial institution, or inferred using transactions data.
7
- class InferredBalance < APIResource
7
+ class AccountInferredBalance < APIResource
8
8
  extend Stripe::APIOperations::List
9
9
 
10
10
  OBJECT_NAME = "financial_connections.account_inferred_balance"
@@ -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
@@ -33,15 +33,6 @@ module Stripe
33
33
  )
34
34
  end
35
35
 
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
36
  def finalize_quote(params = {}, opts = {})
46
37
  request_stripe_object(
47
38
  method: :post,
@@ -78,7 +69,25 @@ module Stripe
78
69
  )
79
70
  end
80
71
 
81
- def mark_stale_quote(params = {}, opts = {})
72
+ def list_preview_invoice_lines(preview_invoice, params = {}, opts = {})
73
+ request_stripe_object(
74
+ method: :get,
75
+ path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
76
+ params: params,
77
+ opts: opts
78
+ )
79
+ end
80
+
81
+ def mark_draft(params = {}, opts = {})
82
+ request_stripe_object(
83
+ method: :post,
84
+ path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(self["id"]) }),
85
+ params: params,
86
+ opts: opts
87
+ )
88
+ end
89
+
90
+ def mark_stale(params = {}, opts = {})
82
91
  request_stripe_object(
83
92
  method: :post,
84
93
  path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(self["id"]) }),
@@ -99,15 +108,6 @@ module Stripe
99
108
  )
100
109
  end
101
110
 
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
111
  def reestimate(params = {}, opts = {})
112
112
  request_stripe_object(
113
113
  method: :post,
@@ -135,15 +135,6 @@ module Stripe
135
135
  )
136
136
  end
137
137
 
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
138
  def self.finalize_quote(quote, params = {}, opts = {})
148
139
  request_stripe_object(
149
140
  method: :post,
@@ -180,7 +171,25 @@ module Stripe
180
171
  )
181
172
  end
182
173
 
183
- def self.mark_stale_quote(quote, params = {}, opts = {})
174
+ def self.list_preview_invoice_lines(quote, preview_invoice, params = {}, opts = {})
175
+ request_stripe_object(
176
+ method: :get,
177
+ path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
178
+ params: params,
179
+ opts: opts
180
+ )
181
+ end
182
+
183
+ def self.mark_draft(quote, params = {}, opts = {})
184
+ request_stripe_object(
185
+ method: :post,
186
+ path: format("/v1/quotes/%<quote>s/mark_draft", { quote: CGI.escape(quote) }),
187
+ params: params,
188
+ opts: opts
189
+ )
190
+ end
191
+
192
+ def self.mark_stale(quote, params = {}, opts = {})
184
193
  request_stripe_object(
185
194
  method: :post,
186
195
  path: format("/v1/quotes/%<quote>s/mark_stale", { quote: CGI.escape(quote) }),
@@ -201,15 +210,6 @@ module Stripe
201
210
  )
202
211
  end
203
212
 
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
213
  def self.reestimate(quote, params = {}, opts = {})
214
214
  request_stripe_object(
215
215
  method: :post,
@@ -2,9 +2,9 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- class QuotePreviewSchedule < APIResource
5
+ class QuotePreviewSubscriptionSchedule < APIResource
6
6
  extend Stripe::APIOperations::List
7
7
 
8
- OBJECT_NAME = "quote_preview_schedule"
8
+ OBJECT_NAME = "quote_preview_subscription_schedule"
9
9
  end
10
10
  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
@@ -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
@@ -38,9 +38,9 @@ require "stripe/resources/exchange_rate"
38
38
  require "stripe/resources/file"
39
39
  require "stripe/resources/file_link"
40
40
  require "stripe/resources/financial_connections/account"
41
+ require "stripe/resources/financial_connections/account_inferred_balance"
41
42
  require "stripe/resources/financial_connections/account_owner"
42
43
  require "stripe/resources/financial_connections/account_ownership"
43
- require "stripe/resources/financial_connections/inferred_balance"
44
44
  require "stripe/resources/financial_connections/session"
45
45
  require "stripe/resources/financial_connections/transaction"
46
46
  require "stripe/resources/funding_instructions"
@@ -57,6 +57,7 @@ require "stripe/resources/issuing/cardholder"
57
57
  require "stripe/resources/issuing/dispute"
58
58
  require "stripe/resources/issuing/personalization_design"
59
59
  require "stripe/resources/issuing/physical_bundle"
60
+ require "stripe/resources/issuing/token"
60
61
  require "stripe/resources/issuing/transaction"
61
62
  require "stripe/resources/line_item"
62
63
  require "stripe/resources/login_link"
@@ -76,7 +77,7 @@ require "stripe/resources/promotion_code"
76
77
  require "stripe/resources/quote"
77
78
  require "stripe/resources/quote_phase"
78
79
  require "stripe/resources/quote_preview_invoice"
79
- require "stripe/resources/quote_preview_schedule"
80
+ require "stripe/resources/quote_preview_subscription_schedule"
80
81
  require "stripe/resources/radar/early_fraud_warning"
81
82
  require "stripe/resources/radar/value_list"
82
83
  require "stripe/resources/radar/value_list_item"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "9.4.0-beta.3"
4
+ VERSION = "9.5.0-beta.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.4.0.pre.beta.3
4
+ version: 9.5.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-29 00:00:00.000000000 Z
11
+ date: 2023-10-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.
@@ -90,9 +90,9 @@ files:
90
90
  - lib/stripe/resources/file.rb
91
91
  - lib/stripe/resources/file_link.rb
92
92
  - lib/stripe/resources/financial_connections/account.rb
93
+ - lib/stripe/resources/financial_connections/account_inferred_balance.rb
93
94
  - lib/stripe/resources/financial_connections/account_owner.rb
94
95
  - lib/stripe/resources/financial_connections/account_ownership.rb
95
- - lib/stripe/resources/financial_connections/inferred_balance.rb
96
96
  - lib/stripe/resources/financial_connections/session.rb
97
97
  - lib/stripe/resources/financial_connections/transaction.rb
98
98
  - lib/stripe/resources/funding_instructions.rb
@@ -109,6 +109,7 @@ files:
109
109
  - lib/stripe/resources/issuing/dispute.rb
110
110
  - lib/stripe/resources/issuing/personalization_design.rb
111
111
  - lib/stripe/resources/issuing/physical_bundle.rb
112
+ - lib/stripe/resources/issuing/token.rb
112
113
  - lib/stripe/resources/issuing/transaction.rb
113
114
  - lib/stripe/resources/line_item.rb
114
115
  - lib/stripe/resources/login_link.rb
@@ -128,7 +129,7 @@ files:
128
129
  - lib/stripe/resources/quote.rb
129
130
  - lib/stripe/resources/quote_phase.rb
130
131
  - lib/stripe/resources/quote_preview_invoice.rb
131
- - lib/stripe/resources/quote_preview_schedule.rb
132
+ - lib/stripe/resources/quote_preview_subscription_schedule.rb
132
133
  - lib/stripe/resources/radar/early_fraud_warning.rb
133
134
  - lib/stripe/resources/radar/value_list.rb
134
135
  - lib/stripe/resources/radar/value_list_item.rb