Class: BtcPay::Client::Api::StorePullPayments

Inherits:
Base
  • Object
show all
Defined in:
lib/btcpay/client/api/store_pull_payments.rb

Constant Summary collapse

PATH =
'/stores/:store_id/pull-payments'

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from BtcPay::Client::Service

Instance Method Details

#all(store_id, **opts) ⇒ Object Also known as: index



10
11
12
# File 'lib/btcpay/client/api/store_pull_payments.rb', line 10

def all(store_id, **opts)
  client.get(store_path(store_id), options: opts)
end

#create(store_id, payload, **opts) ⇒ Object



17
18
19
# File 'lib/btcpay/client/api/store_pull_payments.rb', line 17

def create(store_id, payload, **opts)
  client.post(store_path(store_id), payload: payload, options: opts)
end

#delete(store_id, pull_payment_id, **opts) ⇒ Object



22
23
24
# File 'lib/btcpay/client/api/store_pull_payments.rb', line 22

def delete(store_id, pull_payment_id, **opts)
  client.delete(store_path(store_id, pull_payment_id), options: opts)
end