Module: Justifi::Payout

Defined in:
lib/justifi/payout.rb

Class Method Summary collapse

Class Method Details

.get(payout_id:, headers: {}) ⇒ Object



13
14
15
16
17
# File 'lib/justifi/payout.rb', line 13

def get(payout_id:, headers: {})
  JustifiOperations.execute_get_request("/v1/payouts/#{payout_id}",
    {},
    headers)
end

.list(params: {}, headers: {}, seller_account_id: nil, sub_account_id: nil) ⇒ Object



6
7
8
9
10
11
# File 'lib/justifi/payout.rb', line 6

def list(params: {}, headers: {}, seller_account_id: nil, sub_account_id: nil)
  Justifi. if 
  headers[:sub_account] =  ||  if  || 

  JustifiOperations.execute_get_request("/v1/payouts", params, headers)
end

.update(payout_id:, params: {}, headers: {}, idempotency_key: nil) ⇒ Object



19
20
21
22
23
24
25
# File 'lib/justifi/payout.rb', line 19

def update(payout_id:, params: {}, headers: {}, idempotency_key: nil)
  JustifiOperations.idempotently_request("/v1/payouts/#{payout_id}",
    method: :patch,
    params: params,
    headers: {},
    idempotency_key: idempotency_key)
end