stripe 7.1.0.pre.beta.1 → 7.1.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: 803504fb9cf5348f6c69d73dce412e713d60da6eeb583598a269fdf6e74d1519
4
- data.tar.gz: e2ec613485ac48c5118ce5bfdf9179fbf369f62f91ba4b38e3c4918050310f26
3
+ metadata.gz: e2e7b040047cac21858806b95ee7acbe05671f7e362fb251028c688214ca7f91
4
+ data.tar.gz: 9c33b413e3bb963a64d6ed7845f310f3a71b0e4b4cf23774d7b44004209cb6ce
5
5
  SHA512:
6
- metadata.gz: 9ca2cd6e815e5acbca268b1c6be2be3651b1486c7377334e4de6b016091b9602479782b0a774d9429ac3bf753199db5c0c21ee00e34faa100a85fba8eb31ea5a
7
- data.tar.gz: 459abca01397a4f89a6740c48e51e613e821ec7a877f24a1864d939ed993b2b45cac574a9b513f3187aa06a57987eeb10ee070b9a1f7cc81edb955285d69fbf2
6
+ metadata.gz: 7df8eded9e11c521b40aa83ac3808c2bbf6a019c7a94f164df095f0c1b17d9457616f3936ef5356c6ea4437555a28e37f2d23302835a2778028ad810f0c39432
7
+ data.tar.gz: 6ee25a16bae8c25ae4f431ad34ff7a0d5ac852557095b512f6ddd3705e77e713d7a25a52084c1bfac241f2b461984afeae44644f4329b9858ea47c75a54d8411
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.1.0-beta.2 - 2022-08-11
4
+ * [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
5
+ - Updated stable APIs to the latest version
6
+ - Add `refund_payment` method to Terminal resource
7
+
3
8
  ## 7.1.0-beta.1 - 2022-08-03
4
9
  * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
5
10
  - Updated stable APIs to the latest version
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v175
1
+ v178
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.1.0-beta.1
1
+ 7.1.0-beta.2
@@ -3,6 +3,8 @@
3
3
 
4
4
  module Stripe
5
5
  module ApiVersion
6
- CURRENT = "2022-08-01; server_side_confirmation_beta=v1; orders_beta=v4"
6
+ # rubocop:disable Layout/LineLength
7
+ CURRENT = "2022-08-01; server_side_confirmation_beta=v1; orders_beta=v4; terminal_interac_refunds_beta=v1"
8
+ # rubocop:enable Layout/LineLength
7
9
  end
8
10
  end
@@ -38,6 +38,15 @@ module Stripe
38
38
  )
39
39
  end
40
40
 
41
+ def refund_payment(params = {}, opts = {})
42
+ request_stripe_object(
43
+ method: :post,
44
+ path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(self["id"]) }),
45
+ params: params,
46
+ opts: opts
47
+ )
48
+ end
49
+
41
50
  def set_reader_display(params = {}, opts = {})
42
51
  request_stripe_object(
43
52
  method: :post,
@@ -74,6 +83,15 @@ module Stripe
74
83
  )
75
84
  end
76
85
 
86
+ def self.refund_payment(reader, params = {}, opts = {})
87
+ request_stripe_object(
88
+ method: :post,
89
+ path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(reader) }),
90
+ params: params,
91
+ opts: opts
92
+ )
93
+ end
94
+
77
95
  def self.set_reader_display(reader, params = {}, opts = {})
78
96
  request_stripe_object(
79
97
  method: :post,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "7.1.0-beta.1"
4
+ VERSION = "7.1.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: 7.1.0.pre.beta.1
4
+ version: 7.1.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: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-11 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.