Compare commits

..

6 Commits

Author SHA1 Message Date
Pavel Krymets
2db4fd9d06 Bump version to 7.1.0-beta.2 2022-08-11 15:42:00 -07:00
pakrym-stripe
6797f906e1
Merge pull request #1113 from stripe/latest-codegen-beta
API Updates for beta branch
2022-08-11 15:39:47 -07:00
Pavel Krymets
59f2d4d0fe suppress linting error 2022-08-11 15:03:49 -07:00
Pavel Krymets
0d1b570bfa Codegen for openapi v178 2022-08-11 14:50:55 -07:00
Pavel Krymets
d7d3c1b425 Reset version to 7.1.0-beta.1 2022-08-11 14:50:25 -07:00
Pavel Krymets
7df619de69 Set version to 7.0.0 to simplify merge 2022-08-11 14:50:24 -07:00
6 changed files with 29 additions and 4 deletions

View File

@ -1,5 +1,10 @@
# Changelog # Changelog
## 7.1.0-beta.2 - 2022-08-11
* [#1113](https://github.com/stripe/stripe-ruby/pull/1113) API Updates for beta branch
- Updated stable APIs to the latest version
- Add `refund_payment` method to Terminal resource
## 7.1.0-beta.1 - 2022-08-03 ## 7.1.0-beta.1 - 2022-08-03
* [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch * [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
- Updated stable APIs to the latest version - Updated stable APIs to the latest version

View File

@ -1 +1 @@
v175 v178

View File

@ -1 +1 @@
7.1.0-beta.1 7.1.0-beta.2

View File

@ -3,6 +3,8 @@
module Stripe module Stripe
module ApiVersion module ApiVersion
CURRENT = "2022-08-01; server_side_confirmation_beta=v1; orders_beta=v4" # rubocop:disable Layout/LineLength
CURRENT = "2022-08-01; server_side_confirmation_beta=v1; orders_beta=v4; terminal_interac_refunds_beta=v1"
# rubocop:enable Layout/LineLength
end end
end end

View File

@ -38,6 +38,15 @@ module Stripe
) )
end end
def refund_payment(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end
def set_reader_display(params = {}, opts = {}) def set_reader_display(params = {}, opts = {})
request_stripe_object( request_stripe_object(
method: :post, method: :post,
@ -74,6 +83,15 @@ module Stripe
) )
end end
def self.refund_payment(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(reader) }),
params: params,
opts: opts
)
end
def self.set_reader_display(reader, params = {}, opts = {}) def self.set_reader_display(reader, params = {}, opts = {})
request_stripe_object( request_stripe_object(
method: :post, method: :post,

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module Stripe module Stripe
VERSION = "7.1.0-beta.1" VERSION = "7.1.0-beta.2"
end end