Class: Betsy::Payment

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

Class Method Summary collapse

Methods included from Model

included, #initialize

Class Method Details

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



32
33
34
# File 'lib/betsy/payment.rb', line 32

def self.(shop_id, options = {})
  make_request(:get, "/v3/application/shops/#{shop_id}/payment-account/ledger-entries/payments", options)
end

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



40
41
42
# File 'lib/betsy/payment.rb', line 40

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

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



36
37
38
# File 'lib/betsy/payment.rb', line 36

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