stripe 12.5.0.pre.beta.2 → 12.6.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: dc554758ca8830920301f94885c914422987e7eae1c436e8989493751d5d0f1b
4
- data.tar.gz: b33a87af50d984eac4c8283ead0da2f5284f9be073b233bdea2bcb5492aec82a
3
+ metadata.gz: a9f4ba2da7352ff0b55b6aaabb9403d86060bde47ca9c76cfdafb318e1c2bddc
4
+ data.tar.gz: fd8a86aad92a2fd84eea8745241a39ff81aed6071fa5b011f029a89b637ba312
5
5
  SHA512:
6
- metadata.gz: 95351924f884489d83c0f7e8cde2283488397f3e964baf1c121c3e5b8a0ccf14af5280f7051a40482754fb5395e09e7e7ce1abb6d6e37bd05dea752a66c9fa2b
7
- data.tar.gz: 31b17090ae1bea44968f84ad163b7ff54b0f899eb62a3bb1a7f7e70157135508dc63211da33f987ec213dd5b5bc566612557430aca03105b874d1a0f57efddfc
6
+ metadata.gz: f5ba81a88f03f0410784051a44a12cbcd0066b240b67184877aba58b24b7ddf676a131043958088853fe0a6777ac4cf228b373395f623a48596435ac3e272302
7
+ data.tar.gz: 6c626f8d4335a57e7a405ce33663b7991e36320ee25893f742d4ff0918b9c7b513dd31bb406bb6e4bd3da63cf00dc934808b0cd0ee1f1867346d1a7e3a7ec837
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 12.6.0-beta.1 - 2024-09-05
4
+ * [#1441](https://github.com/stripe/stripe-ruby/pull/1441) Update generated code for beta
5
+ * Add support for new resources `Billing.MeterErrorReport` and `Terminal.ReaderCollectedData`
6
+ * Add support for `retrieve` method on resource `ReaderCollectedData`
7
+
8
+ ## 12.5.0 - 2024-08-08
9
+ * [#1440](https://github.com/stripe/stripe-ruby/pull/1440) Update generated code
10
+ * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert`
11
+ * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Alert`
12
+ * Add support for `retrieve` method on resource `Tax.Calculation`
13
+
3
14
  ## 12.5.0-beta.2 - 2024-08-01
4
15
  * [#1439](https://github.com/stripe/stripe-ruby/pull/1439) Update generated code for beta
5
16
  * Add support for `attach_payment` method on resource `Invoice`
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1165
1
+ v1247
data/VERSION CHANGED
@@ -1 +1 @@
1
- 12.5.0-beta.2
1
+ 12.6.0-beta.1
@@ -4,6 +4,6 @@
4
4
  module Stripe
5
5
  module ApiVersion
6
6
  CURRENT = "2024-06-20"
7
- PREVIEW = "2024-07-16.preview-v2"
7
+ PREVIEW = "2024-09-05.preview-v2"
8
8
  end
9
9
  end
@@ -140,6 +140,7 @@ module Stripe
140
140
  Terminal::ConnectionToken.object_name => Terminal::ConnectionToken,
141
141
  Terminal::Location.object_name => Terminal::Location,
142
142
  Terminal::Reader.object_name => Terminal::Reader,
143
+ Terminal::ReaderCollectedData.object_name => Terminal::ReaderCollectedData,
143
144
  TestHelpers::TestClock.object_name => TestHelpers::TestClock,
144
145
  Token.object_name => Token,
145
146
  Topup.object_name => Topup,
@@ -48,7 +48,7 @@ module Stripe
48
48
  #
49
49
  # Test-mode accounts can be deleted at any time.
50
50
  #
51
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balanace_object) are zero.
51
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
52
52
  #
53
53
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
54
54
  def self.delete(id, params = {}, opts = {})
@@ -64,7 +64,7 @@ module Stripe
64
64
  #
65
65
  # Test-mode accounts can be deleted at any time.
66
66
  #
67
- # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balanace_object) are zero.
67
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balance_object) are zero.
68
68
  #
69
69
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
70
70
  def delete(params = {}, opts = {})
@@ -4,6 +4,10 @@
4
4
  module Stripe
5
5
  # A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
6
6
  # control over a Customer.
7
+ #
8
+ # Related guides: [Customer Session with the Payment Element](https://stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
9
+ # [Customer Session with the Pricing Table](https://stripe.com/payments/checkout/pricing-table#customer-session),
10
+ # [Customer Session with the Buy Button](https://stripe.com/payment-links/buy-button#pass-an-existing-customer).
7
11
  class CustomerSession < APIResource
8
12
  extend Stripe::APIOperations::Create
9
13
 
@@ -18,6 +18,23 @@ module Stripe
18
18
  "file"
19
19
  end
20
20
 
21
+ # To upload a file to Stripe, you need to send a request of type multipart/form-data. Include the file you want to upload in the request, and the parameters for creating a file.
22
+ #
23
+ # All of Stripe's officially supported Client libraries support sending multipart/form-data.
24
+ def self.create(params = {}, opts = {})
25
+ config = opts[:client]&.config || Stripe.config
26
+ upload_base = config.uploads_base
27
+ opts = { api_base: upload_base }.merge(Util.normalize_opts(opts))
28
+
29
+ if params[:file] && !params[:file].is_a?(String) && !params[:file].respond_to?(:read)
30
+ raise ArgumentError, "file must respond to `#read`"
31
+ end
32
+
33
+ opts = { content_type: MultipartEncoder::MULTIPART_FORM_DATA }.merge(Util.normalize_opts(opts))
34
+
35
+ request_stripe_object(method: :post, path: "/v1/files", params: params, opts: opts)
36
+ end
37
+
21
38
  # Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.
22
39
  def self.list(filters = {}, opts = {})
23
40
  request_stripe_object(method: :get, path: "/v1/files", params: filters, opts: opts)
@@ -35,18 +52,5 @@ module Stripe
35
52
  def self.resource_url
36
53
  "/v1/files"
37
54
  end
38
-
39
- def self.create(params = {}, opts = {})
40
- if params[:file] && !params[:file].is_a?(String) && !params[:file].respond_to?(:read)
41
- raise ArgumentError, "file must respond to `#read`"
42
- end
43
-
44
- config = opts[:client]&.config || Stripe.config
45
- opts = {
46
- api_base: config.uploads_base,
47
- content_type: MultipartEncoder::MULTIPART_FORM_DATA,
48
- }.merge(Util.normalize_opts(opts))
49
- super
50
- end
51
55
  end
52
56
  end
@@ -2,6 +2,9 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
+ # Invoice Line Items represent the individual lines within an [invoice](https://stripe.com/docs/api/invoices) and only exist within the context of an invoice.
6
+ #
7
+ # Each line item is backed by either an [invoice item](https://stripe.com/docs/api/invoiceitems) or a [subscription item](https://stripe.com/docs/api/subscription_items).
5
8
  class InvoiceLineItem < StripeObject
6
9
  include Stripe::APIOperations::Save
7
10
 
@@ -122,6 +122,9 @@ module Stripe
122
122
  # after those actions are completed. Your server needs to then
123
123
  # explicitly re-confirm the PaymentIntent to initiate the next payment
124
124
  # attempt.
125
+ # There is a variable upper limit on how many times a PaymentIntent can be confirmed.
126
+ # After this limit is reached, any further calls to this endpoint will
127
+ # transition the PaymentIntent to the canceled state.
125
128
  def confirm(params = {}, opts = {})
126
129
  request_stripe_object(
127
130
  method: :post,
@@ -153,6 +156,9 @@ module Stripe
153
156
  # after those actions are completed. Your server needs to then
154
157
  # explicitly re-confirm the PaymentIntent to initiate the next payment
155
158
  # attempt.
159
+ # There is a variable upper limit on how many times a PaymentIntent can be confirmed.
160
+ # After this limit is reached, any further calls to this endpoint will
161
+ # transition the PaymentIntent to the canceled state.
156
162
  def self.confirm(intent, params = {}, opts = {})
157
163
  request_stripe_object(
158
164
  method: :post,
@@ -208,7 +208,7 @@ module Stripe
208
208
  )
209
209
  end
210
210
 
211
- # Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.corp.stripe.com/quotes/overview#quote_pdf)
211
+ # Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
212
212
  def pdf(params = {}, opts = {}, &read_body_chunk_block)
213
213
  config = opts[:client]&.config || Stripe.config
214
214
  opts = { api_base: config.uploads_base }.merge(opts)
@@ -221,7 +221,7 @@ module Stripe
221
221
  )
222
222
  end
223
223
 
224
- # Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.corp.stripe.com/quotes/overview#quote_pdf)
224
+ # Download the PDF for a finalized quote. Explanation for special handling can be found [here](https://docs.stripe.com/quotes/overview#quote_pdf)
225
225
  def self.pdf(quote, params = {}, opts = {}, &read_body_chunk_block)
226
226
  config = opts[:client]&.config || Stripe.config
227
227
  opts = { api_base: config.uploads_base }.merge(opts)
@@ -0,0 +1,14 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Terminal
6
+ # Returns data collected by Terminal readers. This data is only stored for 24 hours.
7
+ class ReaderCollectedData < APIResource
8
+ OBJECT_NAME = "terminal.reader_collected_data"
9
+ def self.object_name
10
+ "terminal.reader_collected_data"
11
+ end
12
+ end
13
+ end
14
+ end
@@ -3,7 +3,9 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
- # Use [InboundTransfers](https://stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
6
+ # Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://stripe.com/docs/api#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
7
+ #
8
+ # Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers)
7
9
  class InboundTransfer < APIResource
8
10
  extend Stripe::APIOperations::Create
9
11
  extend Stripe::APIOperations::List
@@ -3,9 +3,11 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
- # Use OutboundPayments to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
6
+ # Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://stripe.com/docs/api#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://stripe.com/docs/api#outbound_transfers).
7
7
  #
8
8
  # Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects.
9
+ #
10
+ # Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments)
9
11
  class OutboundPayment < APIResource
10
12
  extend Stripe::APIOperations::Create
11
13
  extend Stripe::APIOperations::List
@@ -3,9 +3,11 @@
3
3
 
4
4
  module Stripe
5
5
  module Treasury
6
- # Use OutboundTransfers to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
6
+ # Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://stripe.com/docs/api#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://stripe.com/docs/api#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account.
7
7
  #
8
8
  # Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects.
9
+ #
10
+ # Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers)
9
11
  class OutboundTransfer < APIResource
10
12
  extend Stripe::APIOperations::Create
11
13
  extend Stripe::APIOperations::List
@@ -127,6 +127,7 @@ require "stripe/resources/terminal/configuration"
127
127
  require "stripe/resources/terminal/connection_token"
128
128
  require "stripe/resources/terminal/location"
129
129
  require "stripe/resources/terminal/reader"
130
+ require "stripe/resources/terminal/reader_collected_data"
130
131
  require "stripe/resources/test_helpers/test_clock"
131
132
  require "stripe/resources/token"
132
133
  require "stripe/resources/topup"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "12.5.0-beta.2"
4
+ VERSION = "12.6.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: 12.5.0.pre.beta.2
4
+ version: 12.6.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-08-01 00:00:00.000000000 Z
11
+ date: 2024-09-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.
@@ -181,6 +181,7 @@ files:
181
181
  - lib/stripe/resources/terminal/connection_token.rb
182
182
  - lib/stripe/resources/terminal/location.rb
183
183
  - lib/stripe/resources/terminal/reader.rb
184
+ - lib/stripe/resources/terminal/reader_collected_data.rb
184
185
  - lib/stripe/resources/test_helpers/test_clock.rb
185
186
  - lib/stripe/resources/token.rb
186
187
  - lib/stripe/resources/topup.rb