stripe 8.4.0.pre.beta.3 → 8.5.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 +14 -0
- data/Makefile +7 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/payment_link.rb +1 -1
- data/lib/stripe/resources/product.rb +1 -1
- data/lib/stripe/resources/quote.rb +9 -4
- data/lib/stripe/resources/tax/transaction.rb +10 -1
- data/lib/stripe/resources/terminal/reader.rb +18 -0
- data/lib/stripe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6edd2851f27d78a812305d91437e211b82d8042d4a13724f0e4a7d3d9c23c0bf
|
4
|
+
data.tar.gz: 9d30ba6a7a56e175f3ea2872c825ef55462aabd6acb2a3e8783a32d713f76de6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdef2a42feb77e8b27c9f9b622ec6cdad691da6f12a758f66e03cfdaf396ab2f53eb70c14478ec875dac3054c4bfa14cc093ef2c24dc93a5d202bb7ad4628121
|
7
|
+
data.tar.gz: dd29a3e0969396b4b98818153f465a811374d1840e025a27fffc10900db2eb24745b2d9447a61fe3ca7f4a64ac92651a20fc16c6891746e9f5be93e1fbc5fa60
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 8.5.0-beta.1 - 2023-03-23
|
4
|
+
* [#1194](https://github.com/stripe/stripe-ruby/pull/1194) Update generated code for beta (new)
|
5
|
+
* Add support for new resources `Tax.CalculationLineItem` and `Tax.TransactionLineItem`
|
6
|
+
* Add support for `collect_inputs` method on resource `Terminal.Reader`
|
7
|
+
|
8
|
+
## 8.4.0-beta.4 - 2023-03-16
|
9
|
+
* [#1189](https://github.com/stripe/stripe-ruby/pull/1189) Update generated code for beta (new)
|
10
|
+
* Add support for `create_from_calculation` method on resource `Tax.Transaction`
|
11
|
+
* [#1188](https://github.com/stripe/stripe-ruby/pull/1188) Update generated code for beta (new)
|
12
|
+
* Remove support for resources `Capital.FinancingOffer` and `Capital.FinancingSummary`
|
13
|
+
* Remove support for `list`, `mark_delivered`, and `retrieve` methods on resource `FinancingOffer`
|
14
|
+
* Remove support for `retrieve` method on resource `FinancingSummary`
|
15
|
+
* [#1187](https://github.com/stripe/stripe-ruby/pull/1187) Merge upstream master
|
16
|
+
|
3
17
|
## 8.4.0-beta.3 - 2023-03-09
|
4
18
|
* [#1184](https://github.com/stripe/stripe-ruby/pull/1184) API Updates for beta branch
|
5
19
|
* Updated stable APIs to the latest version
|
data/Makefile
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
-
.PHONY: update-version codegen-format
|
1
|
+
.PHONY: update-version codegen-format test ci-test
|
2
2
|
update-version:
|
3
3
|
@echo "$(VERSION)" > VERSION
|
4
4
|
@perl -pi -e 's|VERSION = "[.\-\w\d]+"|VERSION = "$(VERSION)"|' lib/stripe/version.rb
|
5
5
|
|
6
6
|
codegen-format:
|
7
|
+
bundle install --quiet
|
7
8
|
bundle exec rubocop -o /dev/null --auto-correct
|
9
|
+
|
10
|
+
ci-test:
|
11
|
+
bundle install && bundle exec rake test
|
12
|
+
|
13
|
+
test: ci-test
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v277
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.
|
1
|
+
8.5.0-beta.1
|
@@ -6,7 +6,7 @@ module Stripe
|
|
6
6
|
#
|
7
7
|
# When a customer opens a payment link it will open a new [checkout session](https://stripe.com/docs/api/checkout/sessions) to render the payment page. You can use [checkout session events](https://stripe.com/docs/api/events/types#event_types-checkout.session.completed) to track payments through payment links.
|
8
8
|
#
|
9
|
-
# Related guide: [Payment Links API](https://stripe.com/docs/
|
9
|
+
# Related guide: [Payment Links API](https://stripe.com/docs/payment-links)
|
10
10
|
class PaymentLink < APIResource
|
11
11
|
extend Stripe::APIOperations::Create
|
12
12
|
extend Stripe::APIOperations::List
|
@@ -7,7 +7,7 @@ module Stripe
|
|
7
7
|
# They can be used in conjunction with [Prices](https://stripe.com/docs/api#prices) to configure pricing in Payment Links, Checkout, and Subscriptions.
|
8
8
|
#
|
9
9
|
# Related guides: [Set up a subscription](https://stripe.com/docs/billing/subscriptions/set-up-subscription),
|
10
|
-
# [share a Payment Link](https://stripe.com/docs/
|
10
|
+
# [share a Payment Link](https://stripe.com/docs/payment-links),
|
11
11
|
# [accept payments with Checkout](https://stripe.com/docs/payments/accept-a-payment#create-product-prices-upfront),
|
12
12
|
# and more about [Products and Prices](https://stripe.com/docs/products-prices/overview)
|
13
13
|
class Product < APIResource
|
@@ -83,10 +83,10 @@ module Stripe
|
|
83
83
|
)
|
84
84
|
end
|
85
85
|
|
86
|
-
def preview_invoice_lines(params = {}, opts = {})
|
86
|
+
def preview_invoice_lines(preview_invoice, params = {}, opts = {})
|
87
87
|
request_stripe_object(
|
88
88
|
method: :get,
|
89
|
-
path: format("/v1/quotes/%<quote>s/
|
89
|
+
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(self["id"]), preview_invoice: CGI.escape(preview_invoice) }),
|
90
90
|
params: params,
|
91
91
|
opts: opts
|
92
92
|
)
|
@@ -191,10 +191,15 @@ module Stripe
|
|
191
191
|
)
|
192
192
|
end
|
193
193
|
|
194
|
-
def self.preview_invoice_lines(
|
194
|
+
def self.preview_invoice_lines(
|
195
|
+
quote,
|
196
|
+
preview_invoice,
|
197
|
+
params = {},
|
198
|
+
opts = {}
|
199
|
+
)
|
195
200
|
request_stripe_object(
|
196
201
|
method: :get,
|
197
|
-
path: format("/v1/quotes/%<quote>s/
|
202
|
+
path: format("/v1/quotes/%<quote>s/preview_invoices/%<preview_invoice>s/lines", { quote: CGI.escape(quote), preview_invoice: CGI.escape(preview_invoice) }),
|
198
203
|
params: params,
|
199
204
|
opts: opts
|
200
205
|
)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
module Tax
|
6
|
-
# A Tax
|
6
|
+
# A Tax transaction records the tax collected from or refunded to your customer.
|
7
7
|
class Transaction < APIResource
|
8
8
|
extend Stripe::APIOperations::Create
|
9
9
|
|
@@ -18,6 +18,15 @@ module Stripe
|
|
18
18
|
)
|
19
19
|
end
|
20
20
|
|
21
|
+
def self.create_from_calculation(params = {}, opts = {})
|
22
|
+
request_stripe_object(
|
23
|
+
method: :post,
|
24
|
+
path: "/v1/tax/transactions/create_from_calculation",
|
25
|
+
params: params,
|
26
|
+
opts: opts
|
27
|
+
)
|
28
|
+
end
|
29
|
+
|
21
30
|
def self.create_reversal(params = {}, opts = {})
|
22
31
|
request_stripe_object(
|
23
32
|
method: :post,
|
@@ -23,6 +23,15 @@ 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
|
+
|
26
35
|
def process_payment_intent(params = {}, opts = {})
|
27
36
|
request_stripe_object(
|
28
37
|
method: :post,
|
@@ -68,6 +77,15 @@ module Stripe
|
|
68
77
|
)
|
69
78
|
end
|
70
79
|
|
80
|
+
def self.collect_inputs(reader, params = {}, opts = {})
|
81
|
+
request_stripe_object(
|
82
|
+
method: :post,
|
83
|
+
path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
|
84
|
+
params: params,
|
85
|
+
opts: opts
|
86
|
+
)
|
87
|
+
end
|
88
|
+
|
71
89
|
def self.process_payment_intent(reader, params = {}, opts = {})
|
72
90
|
request_stripe_object(
|
73
91
|
method: :post,
|
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: 8.
|
4
|
+
version: 8.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-03-
|
11
|
+
date: 2023-03-23 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.
|