Class: BtcPay::Client::Api::PullPayments
- Inherits:
-
Base
show all
- Defined in:
- lib/btcpay/client/api/pull_payments.rb
Constant Summary
collapse
- PATH =
'pull-payments'
Instance Method Summary
collapse
Methods inherited from Service
#initialize
Instance Method Details
#create_payout(pull_payment_id, payload, **opts) ⇒ Object
22
23
24
|
# File 'lib/btcpay/client/api/pull_payments.rb', line 22
def create_payout(pull_payment_id, payload, **opts)
client.post(path(pull_payment_id, 'payouts'), payload: payload, options: opts)
end
|
#get(pull_payment_id, **opts) ⇒ Object
Also known as:
find
10
11
12
|
# File 'lib/btcpay/client/api/pull_payments.rb', line 10
def get(pull_payment_id, **opts)
client.get(path(pull_payment_id), options: opts)
end
|
#payouts(pull_payment_id, **opts) ⇒ Object
17
18
19
|
# File 'lib/btcpay/client/api/pull_payments.rb', line 17
def payouts(pull_payment_id, **opts)
client.get(path(pull_payment_id, 'payouts'), options: opts)
end
|