Module: RubyEtsy::Calls::Receipts

Included in:
RubyEtsy::Calls
Defined in:
lib/ruby-etsy/calls/receipts.rb

Instance Method Summary collapse

Instance Method Details

#get_receipt(id) ⇒ Object



9
10
11
# File 'lib/ruby-etsy/calls/receipts.rb', line 9

def get_receipt(id)
  client.action("/shops/#{client.shop_id}/receipts/#{id}", http_method: :get)
end

#get_receipts(query_params = {}) ⇒ Object



5
6
7
# File 'lib/ruby-etsy/calls/receipts.rb', line 5

def get_receipts(query_params={})
  client.action("/shops/#{client.shop_id}/receipts", http_method: :get, query_params: query_params)
end