Sha256: f5ef5e2acbe589c95dc64bc47f3c15b12f74a8899f527f1d005794979dcdc02e
Contents?: true
Size: 689 Bytes
Versions: 3
Compression:
Stored size: 689 Bytes
Contents
module Gocoin class Invoices def initialize(api) @api = api end def create(merchant_id, params) @api.client.logger.debug 'Gocoin::Invoices#create called.' route = "/merchants/#{merchant_id}/invoices" options = { method: 'POST', payload: params } @api.request route, options end def get(id) @api.client.logger.debug 'Gocoin::Invoices#get called.' route = "/invoices/#{id}" options = {} @api.request route, options end def search(params = {}) @api.client.logger.debug 'Gocoin::Invoices#search called.' route = "/invoices/search?#{Util.hash_to_url_params(params)}" options = {} @api.request route, options end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gocoin-0.1.4 | lib/gocoin/api/invoices.rb |
gocoin-0.1.3 | lib/gocoin/api/invoices.rb |
gocoin-0.1.2 | lib/gocoin/api/invoices.rb |