Class: Betsy::ShopReceiptTransaction

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

Class Method Summary collapse

Methods included from Model

included, #initialize

Class Method Details

.get_shop_receipt_transaction(shop_id, transaction_id, options = {}) ⇒ Object



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

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

.get_shop_receipt_transactions_by_listing(shop_id, listing_id, options = {}) ⇒ Object



38
39
40
# File 'lib/betsy/shop_receipt_transaction.rb', line 38

def self.get_shop_receipt_transactions_by_listing(shop_id, listing_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/listings/#{listing_id}/transactions", options)
end

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



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

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

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



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

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