Sha256: 97a69771e88b577c07835c877b36a6038f8a01ff7ed21d19d978962ccd6c3acf
Contents?: true
Size: 632 Bytes
Versions: 4
Compression:
Stored size: 632 Bytes
Contents
module Stripe class Order < APIResource extend Stripe::APIOperations::List extend Stripe::APIOperations::Create include Stripe::APIOperations::Save OBJECT_NAME = "order".freeze def pay(params, opts = {}) resp, opts = request(:post, pay_url, params, opts) initialize_from(resp.data, opts) end def return_order(params, opts = {}) resp, opts = request(:post, returns_url, params, opts) Util.convert_to_stripe_object(resp.data, opts) end private def pay_url resource_url + "/pay" end def returns_url resource_url + "/returns" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stripe-3.5.2 | lib/stripe/order.rb |
stripe-3.5.1 | lib/stripe/order.rb |
stripe-3.5.0 | lib/stripe/order.rb |
stripe-3.4.1 | lib/stripe/order.rb |