Class: MetrifoxSDK::Wallets::Module
Instance Attribute Summary
Attributes inherited from BaseModule
#client
Instance Method Summary
collapse
Methods inherited from BaseModule
#initialize
Instance Method Details
#get_credit_allocation(allocation_id) ⇒ Object
17
18
19
20
|
# File 'lib/metrifox_sdk/wallets/module.rb', line 17
def get_credit_allocation(allocation_id)
validate_api_key!
api.get_credit_allocation(base_url, api_key, allocation_id)
end
|
#list(customer_key) ⇒ Object
7
8
9
10
|
# File 'lib/metrifox_sdk/wallets/module.rb', line 7
def list(customer_key)
validate_api_key!
api.list_wallets(base_url, api_key, customer_key)
end
|
#list_credit_allocations(wallet_id, status: nil) ⇒ Object
12
13
14
15
|
# File 'lib/metrifox_sdk/wallets/module.rb', line 12
def list_credit_allocations(wallet_id, status: nil)
validate_api_key!
api.list_credit_allocations(base_url, api_key, wallet_id, status: status)
end
|