lib/stripe/resources/terminal/reader.rb in stripe-7.1.0.pre.beta.1 vs lib/stripe/resources/terminal/reader.rb in stripe-7.1.0.pre.beta.2
- old
+ new
@@ -36,10 +36,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,
@@ -67,9 +76,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