lib/stripe/resources/terminal/reader.rb in stripe-8.1.0 vs lib/stripe/resources/terminal/reader.rb in stripe-8.2.0.pre.beta.1

- old
+ new

@@ -39,10 +39,19 @@ params: params, opts: opts ) 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, path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(self["id"]) }), params: params, @@ -70,9 +79,18 @@ def self.process_setup_intent(reader, params = {}, opts = {}) request_stripe_object( method: :post, path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(reader) }), + params: params, + opts: opts + ) + 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