lib/stripe/resources/terminal/reader.rb in stripe-9.1.0 vs lib/stripe/resources/terminal/reader.rb in stripe-9.2.0.pre.beta.1
- old
+ new
@@ -21,10 +21,37 @@
params: params,
opts: opts
)
end
+ def collect_inputs(params = {}, opts = {})
+ request_stripe_object(
+ method: :post,
+ path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(self["id"]) }),
+ params: params,
+ opts: opts
+ )
+ end
+
+ def collect_payment_method(params = {}, opts = {})
+ request_stripe_object(
+ method: :post,
+ path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(self["id"]) }),
+ params: params,
+ opts: opts
+ )
+ end
+
+ def confirm_payment_intent(params = {}, opts = {})
+ request_stripe_object(
+ method: :post,
+ path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(self["id"]) }),
+ params: params,
+ opts: opts
+ )
+ end
+
def process_payment_intent(params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(self["id"]) }),
params: params,
@@ -61,9 +88,36 @@
def self.cancel_action(reader, params = {}, opts = {})
request_stripe_object(
method: :post,
path: format("/v1/terminal/readers/%<reader>s/cancel_action", { reader: CGI.escape(reader) }),
+ params: params,
+ opts: opts
+ )
+ end
+
+ def self.collect_inputs(reader, params = {}, opts = {})
+ request_stripe_object(
+ method: :post,
+ path: format("/v1/terminal/readers/%<reader>s/collect_inputs", { reader: CGI.escape(reader) }),
+ params: params,
+ opts: opts
+ )
+ end
+
+ def self.collect_payment_method(reader, params = {}, opts = {})
+ request_stripe_object(
+ method: :post,
+ path: format("/v1/terminal/readers/%<reader>s/collect_payment_method", { reader: CGI.escape(reader) }),
+ params: params,
+ opts: opts
+ )
+ end
+
+ def self.confirm_payment_intent(reader, params = {}, opts = {})
+ request_stripe_object(
+ method: :post,
+ path: format("/v1/terminal/readers/%<reader>s/confirm_payment_intent", { reader: CGI.escape(reader) }),
params: params,
opts: opts
)
end