Module: Justifi::SubAccount

Defined in:
lib/justifi/sub_account.rb

Class Method Summary collapse

Class Method Details

.create(params:, headers: {}) ⇒ Object



6
7
8
# File 'lib/justifi/sub_account.rb', line 6

def create(params:, headers: {})
  JustifiOperations.execute_post_request("/v1/sub_accounts", params, headers)
end

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



14
15
16
17
18
# File 'lib/justifi/sub_account.rb', line 14

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

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



10
11
12
# File 'lib/justifi/sub_account.rb', line 10

def list(params: {}, headers: {})
  JustifiOperations.list("/v1/sub_accounts", params, headers)
end