Sha256: 1a1e591fcbb10c519e3e14d5b3cce88f5996a6528959d7d69386cb3aee31db58

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

module Paid
  class Invoice < APIResource
    include Paid::APIOperations::List
    include Paid::APIOperations::Update
    include Paid::APIOperations::Create

    def issue(params={}, opts={})
      api_key, headers = Util.parse_opts(opts)
      response, api_key = Paid.request(
        :post, issue_url, api_key || @api_key, params, headers)
      refresh_from(response, api_key)
    end

    private

    def issue_url
      url + '/issue'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paid-0.0.3 lib/paid/invoice.rb
paid-0.0.2 lib/paid/invoice.rb