Class: BtcPay::Client::Api::StorePayouts
- Inherits:
-
Base
show all
- Defined in:
- lib/btcpay/client/api/store_payouts.rb
Constant Summary
collapse
- PATH =
'/stores/:store_id/payouts'
Instance Method Summary
collapse
Methods inherited from Service
#initialize
Instance Method Details
#approve(store_id, payout_id, payload, **opts) ⇒ Object
10
11
12
|
# File 'lib/btcpay/client/api/store_payouts.rb', line 10
def approve(store_id, payout_id, payload, **opts)
client.post(store_path(store_id, payout_id), payload: payload, options: opts)
end
|
#delete(store_id, payout_id, **opts) ⇒ Object
Also known as:
cancel
15
16
17
|
# File 'lib/btcpay/client/api/store_payouts.rb', line 15
def delete(store_id, payout_id, **opts)
client.delete(store_path(store_id, payout_id), options: opts)
end
|