Class: CurrencyCloud::Reference
- Inherits:
-
Object
- Object
- CurrencyCloud::Reference
show all
- Includes:
- Resource
- Defined in:
- lib/currency_cloud/reference.rb
Instance Attribute Summary
Attributes included from Resource
#changed_attributes
Class Method Summary
collapse
Methods included from Resource
included, #initialize, #inspect
Class Method Details
.bank_details(params = {}) ⇒ Object
41
42
43
44
|
# File 'lib/currency_cloud/reference.rb', line 41
def self.bank_details(params = {})
bank_details = client.post('bank_details/find', params)
BankDetails.new(bank_details)
end
|
.beneficiary_required_details(params = {}) ⇒ Object
7
8
9
|
# File 'lib/currency_cloud/reference.rb', line 7
def self.beneficiary_required_details(params = {})
client.get('beneficiary_required_details', params)['details']
end
|
.conversion_dates(params) ⇒ Object
11
12
13
14
|
# File 'lib/currency_cloud/reference.rb', line 11
def self.conversion_dates(params)
dates = client.get('conversion_dates', params)
ConversionDates.new(dates)
end
|
.currencies ⇒ Object
16
17
18
19
|
# File 'lib/currency_cloud/reference.rb', line 16
def self.currencies
response = client.get('currencies')
response['currencies'].map { |c| Currency.new(c) }
end
|
.payer_required_details(params) ⇒ Object
21
22
23
24
|
# File 'lib/currency_cloud/reference.rb', line 21
def self.payer_required_details(params)
response = client.get('payer_required_details', params)
response['details'].map { |prd| PayerRequiredDetails.new(prd) }
end
|
.payment_dates(params) ⇒ Object
26
27
28
29
|
# File 'lib/currency_cloud/reference.rb', line 26
def self.payment_dates(params)
dates = client.get('payment_dates', params)
PaymentDates.new(dates)
end
|
.payment_fee_rules(params = {}) ⇒ Object
46
47
48
49
|
# File 'lib/currency_cloud/reference.rb', line 46
def self.payment_fee_rules(params = {})
response = client.get('payment_fee_rules', params)
response['payment_fee_rules'].map { |s| PaymentFeeRule.new(s) }
end
|
.payment_purpose_codes(params) ⇒ Object
31
32
33
34
|
# File 'lib/currency_cloud/reference.rb', line 31
def self.payment_purpose_codes(params)
response = client.get('payment_purpose_codes', params)
response['purpose_codes'].map { |pc| PurposeCode.new(pc) }
end
|
.settlement_accounts(params = {}) ⇒ Object
36
37
38
39
|
# File 'lib/currency_cloud/reference.rb', line 36
def self.settlement_accounts(params = {})
response = client.get('settlement_accounts', params)
response['settlement_accounts'].map { |s| SettlementAccount.new(s) }
end
|