Class: CurrencyCloud::Beneficiary

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/currency_cloud/beneficiary.rb

Instance Attribute Summary

Attributes included from Resource

#changed_attributes

Class Method Summary collapse

Methods included from Resource

included, #initialize, #inspect

Class Method Details

.validate(params) ⇒ Object



9
10
11
# File 'lib/currency_cloud/beneficiary.rb', line 9

def self.validate(params)
  new(client.post('validate', params))
end

.verify_account(params) ⇒ Object



13
14
15
16
# File 'lib/currency_cloud/beneficiary.rb', line 13

def self.(params)
  attrs = client.post('account_verification', params)
  BeneficiaryAccountVerificationResult.new(attrs)
end