Sha256: dfba7685839ed9cf9f8c9c20ffc1b4e5ab98705741bbd43a50990d3ff89303de

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

module ChargeBee
  class VirtualBankAccount < Model

  attr_accessor :id, :customer_id, :email, :bank_name, :account_number, :routing_number, :swift_code,
  :gateway, :gateway_account_id, :resource_version, :updated_at, :created_at, :reference_id, :deleted

  # OPERATIONS
  #-----------

  def self.create_using_permanent_token(params, env=nil, headers={})
    Request.send('post', uri_path("virtual_bank_accounts","create_using_permanent_token"), params, env, headers)
  end

  def self.create(params, env=nil, headers={})
    Request.send('post', uri_path("virtual_bank_accounts"), params, env, headers)
  end

  def self.retrieve(id, env=nil, headers={})
    Request.send('get', uri_path("virtual_bank_accounts",id.to_s), {}, env, headers)
  end

  def self.list(params={}, env=nil, headers={})
    Request.send_list_request('get', uri_path("virtual_bank_accounts"), params, env, headers)
  end

  def self.delete_local(id, env=nil, headers={})
    Request.send('post', uri_path("virtual_bank_accounts",id.to_s,"delete_local"), {}, env, headers)
  end

  end # ~VirtualBankAccount
end # ~ChargeBee

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chargebee-2.6.6 lib/chargebee/models/virtual_bank_account.rb
chargebee-2.6.5 lib/chargebee/models/virtual_bank_account.rb