Sha256: 3244ebc99ea57fd71ea3305b985f97df87fb9d05e3512c26aee6dd648dbfa0bd
Contents?: true
Size: 696 Bytes
Versions: 4
Compression:
Stored size: 696 Bytes
Contents
module Stripe class Invoice < APIResource extend Stripe::APIOperations::List include Stripe::APIOperations::Save extend Stripe::APIOperations::Create OBJECT_NAME = "invoice".freeze def self.upcoming(params, opts = {}) resp, opts = request(:get, upcoming_url, params, opts) Util.convert_to_stripe_object(resp.data, opts) end def pay(params = {}, opts = {}) resp, opts = request(:post, pay_url, params, opts) initialize_from(resp.data, opts) end def self.upcoming_url resource_url + "/upcoming" end private_class_method :upcoming_url def pay_url resource_url + "/pay" end private :pay_url end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stripe-3.5.2 | lib/stripe/invoice.rb |
stripe-3.5.1 | lib/stripe/invoice.rb |
stripe-3.5.0 | lib/stripe/invoice.rb |
stripe-3.4.1 | lib/stripe/invoice.rb |