Sha256: 158ad6373bf9b7402ec0645b8ef96039424ec0f99190999d95c9aa1de82c4cf2
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
module Stripe class Invoice < APIResource include Stripe::APIOperations::List include Stripe::APIOperations::Update include Stripe::APIOperations::Create def self.upcoming(params, opts={}) opts = Util.normalize_opts(opts) response, api_key = Stripe.request(:get, upcoming_url, opts, params) Util.convert_to_stripe_object(response, opts) end def pay response, opts = Stripe.request(:post, pay_url, @opts, {}) refresh_from(response, opts) end private def self.upcoming_url url + '/upcoming' end def pay_url url + '/pay' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stripe-1.19.0 | lib/stripe/invoice.rb |