Sha256: 09608d2ce1bd924717fe2209af42238e7f802b5d732e734e1765383683c4da03

Contents?: true

Size: 742 Bytes

Versions: 3

Compression:

Stored size: 742 Bytes

Contents

require_relative 'models/model_base'
require_relative 'utils/requestor'

module CorePro
  class AccountClose < Models::ModelBase
    attr_accessor :customerId
    attr_accessor :accountId
    attr_accessor :closeToAccountId
    attr_accessor :transactionId
    attr_accessor :transactionTag
    attr_accessor :closingBalanceAmount
    attr_accessor :interestPaidAmount
    attr_accessor :backupWithholdingAmount
    attr_accessor :totalClosingAmount
    attr_accessor :isClosedToExternalAccount

    def close(connection = nil, loggingObject = nil)
      connection ||= Connection.createFromConfig()
      CorePro::Utils::Requestor.post('/account/close', AccountClose, self, connection, loggingObject)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
corepro-0.0.6 lib/corepro/account_close.rb
corepro-0.0.5 lib/corepro/account_close.rb
corepro-0.0.4 lib/CorePro/account_close.rb