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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bb18aa99427adfd4362824cf23ec3860ebe83d291e40a6006ac9fc59242fbcc
4
- data.tar.gz: 82a2ec4c057b6537d643d0c6e900eb5c2965654ba98dba5affb3c11440c83ed1
3
+ metadata.gz: 1b51765f7e0a00e3c7e757a9e7959af0511cd8a3b08b4514f6dd0cf465206f4a
4
+ data.tar.gz: a735dda919d79edda717051b862bb6dd0767efc5ddf2293284be9e865c71d0d9
5
5
  SHA512:
6
- metadata.gz: acf1af5b7188d27e6f9d064127d13ff22d713a743b81035a210f0881e261a21b49511f1019bf3cfff842979199d372b7d97cd38c7a8e6c201b6c1544d2d07537
7
- data.tar.gz: 2791cbf6e65421c6fb891bb4972146b52d289d8257e8a86ebcc073d03aedb66d83e71d8b66d94cec1d8ba06028fc9434aa98be64277d98410a116d16b5e67e88
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
- v287
1
+ v296
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.6.0-beta.1
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 UIs.
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 UI
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 UIs](https://stripe.com/docs/connect/get-started-connect-embedded-uis).
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 `Calculation` allows you to calculate the tax to collect from your customer.
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 transaction records the tax collected from or refunded to your customer.
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,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "8.6.0-beta.1"
4
+ VERSION = "8.6.0-beta.2"
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: 8.6.0.pre.beta.1
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-03-30 00:00:00.000000000 Z
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.