lib/stripe/resources/terminal/reader.rb in stripe-10.7.0.pre.beta.3 vs lib/stripe/resources/terminal/reader.rb in stripe-10.7.0

- old
+ new

@@ -22,40 +22,10 @@ params: params, opts: opts ) end - # Initiates an input collection flow on a Reader. - 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 - - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. - 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 - - # Finalizes a payment on a Reader. - 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 - # Initiates a payment flow on a Reader. 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"]) }), @@ -97,39 +67,9 @@ # Cancels the current reader action. 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 - - # Initiates an input collection flow on a Reader. - 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 - - # Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation. - 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 - - # Finalizes a payment on a Reader. - 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