Skip to content

Latest commit

 

History

History
43 lines (38 loc) · 4.07 KB

File metadata and controls

43 lines (38 loc) · 4.07 KB

DearInventoryRuby::Account

Properties

Name Type Description Notes
code String Unique code of Account
name String Account Name
type String Type
status String Account status
description String Account description [optional]
_class String Should be one of the following values: `ASSET`, `LIABILITY`, `EXPENSE`, `EQUITY`, `REVENUE` [optional]
system_account String SystemAccount [optional]
system_account_code String SystemAccountCode [optional]
for_payments String Account status [optional]
display_name String Account display name. Read-only. [optional]
old_code String Read-only. [optional]
bank String Name of the Bank. Only for PUT and POST. Required if Account Type is BANK. [optional]
bank_account_number String Bank Account Number. Only for PUT and POST. Required if Account Type is BANK. [optional]
bank_account_id String Bank Account ID to which the Account is linked. Read-only. [optional]
currency String Currency. Read-only. [optional]

Code Sample

require 'DearInventoryRuby'

instance = DearInventoryRuby::Account.new(code: nil,
                                 name: nil,
                                 type: nil,
                                 status: nil,
                                 description: nil,
                                 _class: nil,
                                 system_account: nil,
                                 system_account_code: nil,
                                 for_payments: nil,
                                 display_name: nil,
                                 old_code: nil,
                                 bank: nil,
                                 bank_account_number: nil,
                                 bank_account_id: nil,
                                 currency: nil)