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 +4 -4
- data/CHANGELOG.md +11 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources/account.rb +2 -2
- data/lib/stripe/resources/customer_session.rb +4 -0
- data/lib/stripe/resources/file.rb +17 -13
- data/lib/stripe/resources/invoice_line_item.rb +3 -0
- data/lib/stripe/resources/payment_intent.rb +6 -0
- data/lib/stripe/resources/quote.rb +2 -2
- data/lib/stripe/resources/terminal/reader_collected_data.rb +14 -0
- data/lib/stripe/resources/treasury/inbound_transfer.rb +3 -1
- data/lib/stripe/resources/treasury/outbound_payment.rb +3 -1
- data/lib/stripe/resources/treasury/outbound_transfer.rb +3 -1
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9f4ba2da7352ff0b55b6aaabb9403d86060bde47ca9c76cfdafb318e1c2bddc
|
4
|
+
data.tar.gz: fd8a86aad92a2fd84eea8745241a39ff81aed6071fa5b011f029a89b637ba312
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
1
|
+
v1247
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
12.
|
1
|
+
12.6.0-beta.1
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -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/
|
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/
|
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.
|
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.
|
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
|
data/lib/stripe/resources.rb
CHANGED
@@ -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"
|
data/lib/stripe/version.rb
CHANGED
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.
|
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-
|
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
|