class BtcPay::Client::Api::StorePullPayments
Constants
- PATH
Public Instance Methods
all(store_id, **opts)
click to toggle source
# 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
Also aliased as: index
create(store_id, payload, **opts)
click to toggle source
@see docs.btcpayserver.org/API/Greenfield/v1/#operation/PaymentRequests_CreatePaymentRequest
# 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)
click to toggle source
# 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
Protected Instance Methods
set_base_path()
click to toggle source
# File lib/btcpay/client/api/store_pull_payments.rb, line 28 def set_base_path @base_path = PATH.dup end