class BtcPay::Client::Api::PullPayments

Constants

PATH

Public Instance Methods

create_payout(pull_payment_id, payload, **opts) click to toggle source

@see docs.btcpayserver.org/API/Greenfield/v1/#tag/Pull-payments-(Public)/paths/~1api~1v1~1pull-payments~1{pullPaymentId}~1payouts/post

# 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
find(pull_payment_id, **opts)
Alias for: get
get(pull_payment_id, **opts) click to toggle source

@see docs.btcpayserver.org/API/Greenfield/v1/#tag/Pull-payments-(Public)/paths/~1api~1v1~1pull-payments~1{pullPaymentId}/get

# 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
Also aliased as: find
payouts(pull_payment_id, **opts) click to toggle source

@see docs.btcpayserver.org/API/Greenfield/v1/#tag/Pull-payments-(Public)/paths/~1api~1v1~1pull-payments~1{pullPaymentId}~1payouts/get

# 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

Protected Instance Methods

set_base_path() click to toggle source
# File lib/btcpay/client/api/pull_payments.rb, line 28
def set_base_path
  @base_path = PATH.dup
end