Class: Betsy::ShopReceipt

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/betsy/shop_receipt.rb

Class Method Summary collapse

Methods included from Model

included, #initialize

Class Method Details

.create_receipt_shipment(shop_id, receipt_id, options = {}) ⇒ Object



50
51
52
# File 'lib/betsy/shop_receipt.rb', line 50

def self.create_receipt_shipment(shop_id, receipt_id, options = {})
  make_request(:post, "/v3/application/shops/#{shop_id}/receipts/#{receipt_id}/tracking", options)
end

.get_shop_receipt(shop_id, receipt_id, options = {}) ⇒ Object



42
43
44
# File 'lib/betsy/shop_receipt.rb', line 42

def self.get_shop_receipt(shop_id, receipt_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/receipts/#{receipt_id}", options)
end

.get_shop_receipts(shop_id, options = {}) ⇒ Object



46
47
48
# File 'lib/betsy/shop_receipt.rb', line 46

def self.get_shop_receipts(shop_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/receipts", options)
end