Compare commits

..

6 Commits

Author SHA1 Message Date
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
Pavel Krymets
f649ed3824 Bump version to 7.1.0-beta.1 2022-08-03 14:04:17 -07:00
pakrym-stripe
32a95902cc
Merge pull request #1107 from stripe/latest-codegen-beta
API Updates for beta branch
2022-08-03 13:49:41 -07:00
6 changed files with 36 additions and 11 deletions

View File

@ -1,5 +1,10 @@
# Changelog
## 7.1.0-beta.1 - 2022-08-03
* [#1107](https://github.com/stripe/stripe-ruby/pull/1107) API Updates for beta branch
- Updated stable APIs to the latest version
- Added the `Order` resource support
## 7.0.0 - 2022-08-02
Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v7. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.

View File

@ -1 +1 @@
v175
v178

View File

@ -1 +1 @@
6.6.0-beta.1
7.1.0-beta.1

View File

@ -3,6 +3,8 @@
module Stripe
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

View File

@ -38,6 +38,15 @@ module Stripe
)
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 = {})
request_stripe_object(
method: :post,
@ -74,6 +83,15 @@ module Stripe
)
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 = {})
request_stripe_object(
method: :post,

View File

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