stripe 8.6.0.pre.beta.1 → 8.6.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/account_session.rb +3 -3
- data/lib/stripe/resources/tax/calculation.rb +3 -1
- data/lib/stripe/resources/tax/transaction.rb +3 -1
- data/lib/stripe/resources/terminal/reader.rb +36 -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: 1b51765f7e0a00e3c7e757a9e7959af0511cd8a3b08b4514f6dd0cf465206f4a
|
4
|
+
data.tar.gz: a735dda919d79edda717051b862bb6dd0767efc5ddf2293284be9e865c71d0d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19a6751739586398a67de1384983910cf0c9ed6615264d409cbc3ef1ad729a799f4a1be5a6c3b1c20b3bd473150b2cedd7cca2786d2709c31b524b66e185cfbc
|
7
|
+
data.tar.gz: 18ded4cf0d4466e896d1b8844949e8b3a6c7e03b4594cead22405604ca59afcdf027d1f72385745723ca49a261babdbf4eeef5859ac62cc6c00cc585aad60fa2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 8.6.0-beta.2 - 2023-04-13
|
4
|
+
* [#1206](https://github.com/stripe/stripe-ruby/pull/1206) Update generated code for beta
|
5
|
+
* Add support for `collect_payment_method` and `confirm_payment_intent` methods on resource `Terminal.Reader`
|
6
|
+
* [#1205](https://github.com/stripe/stripe-ruby/pull/1205) Update generated code for beta
|
7
|
+
|
8
|
+
|
3
9
|
## 8.6.0-beta.1 - 2023-03-30
|
4
10
|
* [#1202](https://github.com/stripe/stripe-ruby/pull/1202) Update generated code for beta
|
5
11
|
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v296
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.6.0-beta.
|
1
|
+
8.6.0-beta.2
|
@@ -2,13 +2,13 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Stripe
|
5
|
-
# An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded
|
5
|
+
# An AccountSession allows a Connect platform to grant access to a connected account in Connect embedded components.
|
6
6
|
#
|
7
|
-
# We recommend that you create an AccountSession each time you need to display an embedded
|
7
|
+
# We recommend that you create an AccountSession each time you need to display an embedded component
|
8
8
|
# to your user. Do not save AccountSessions to your database as they expire relatively
|
9
9
|
# quickly, and cannot be used more than once.
|
10
10
|
#
|
11
|
-
# Related guide: [Connect embedded
|
11
|
+
# Related guide: [Connect embedded components](https://stripe.com/docs/connect/get-started-connect-embedded-components).
|
12
12
|
class AccountSession < APIResource
|
13
13
|
extend Stripe::APIOperations::Create
|
14
14
|
|
@@ -3,7 +3,9 @@
|
|
3
3
|
|
4
4
|
module Stripe
|
5
5
|
module Tax
|
6
|
-
# A Tax
|
6
|
+
# A Tax Calculation allows you to calculate the tax to collect from your customer.
|
7
|
+
#
|
8
|
+
# Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom).
|
7
9
|
class Calculation < APIResource
|
8
10
|
extend Stripe::APIOperations::Create
|
9
11
|
|
@@ -3,7 +3,9 @@
|
|
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
|
+
#
|
8
|
+
# Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom#tax-transaction).
|
7
9
|
class Transaction < APIResource
|
8
10
|
OBJECT_NAME = "tax.transaction"
|
9
11
|
|
@@ -32,6 +32,24 @@ module Stripe
|
|
32
32
|
)
|
33
33
|
end
|
34
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
|
+
|
35
53
|
def process_payment_intent(params = {}, opts = {})
|
36
54
|
request_stripe_object(
|
37
55
|
method: :post,
|
@@ -86,6 +104,24 @@ module Stripe
|
|
86
104
|
)
|
87
105
|
end
|
88
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
|
+
|
89
125
|
def self.process_payment_intent(reader, params = {}, opts = {})
|
90
126
|
request_stripe_object(
|
91
127
|
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.6.0.pre.beta.
|
4
|
+
version: 8.6.0.pre.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-13 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.
|