Files
sdk/docs/BooksPnLLine.md

4.0 KiB

BooksPnLLine

Properties

Name Type Description Notes
Account Pointer to string Account is the chart-of-accounts number this line reports on. [optional]
Amount Pointer to int64 Amount is the account's movement over the period in whole cents, in its NATURAL sign: positive when the account behaved normally, for income and expense alike. Income is credit-normal so its stored net is flipped once here for display; the ledger underneath is never sign-flipped. A negative amount therefore means the account ran backwards — a refunded sale, a reversed cost. [optional]
Name Pointer to string Name is that account's human name from the fixed chart. [optional]
Type Pointer to string Type is the account's fundamental class, which on this statement is always income or expense — it tells a reader which half of the statement the line came from without re-deriving it from the array it arrived in. [optional]

Methods

NewBooksPnLLine

func NewBooksPnLLine() *BooksPnLLine

NewBooksPnLLine instantiates a new BooksPnLLine object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewBooksPnLLineWithDefaults

func NewBooksPnLLineWithDefaults() *BooksPnLLine

NewBooksPnLLineWithDefaults instantiates a new BooksPnLLine object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetAccount

func (o *BooksPnLLine) GetAccount() string

GetAccount returns the Account field if non-nil, zero value otherwise.

GetAccountOk

func (o *BooksPnLLine) GetAccountOk() (*string, bool)

GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAccount

func (o *BooksPnLLine) SetAccount(v string)

SetAccount sets Account field to given value.

HasAccount

func (o *BooksPnLLine) HasAccount() bool

HasAccount returns a boolean if a field has been set.

GetAmount

func (o *BooksPnLLine) GetAmount() int64

GetAmount returns the Amount field if non-nil, zero value otherwise.

GetAmountOk

func (o *BooksPnLLine) GetAmountOk() (*int64, bool)

GetAmountOk returns a tuple with the Amount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAmount

func (o *BooksPnLLine) SetAmount(v int64)

SetAmount sets Amount field to given value.

HasAmount

func (o *BooksPnLLine) HasAmount() bool

HasAmount returns a boolean if a field has been set.

GetName

func (o *BooksPnLLine) GetName() string

GetName returns the Name field if non-nil, zero value otherwise.

GetNameOk

func (o *BooksPnLLine) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetName

func (o *BooksPnLLine) SetName(v string)

SetName sets Name field to given value.

HasName

func (o *BooksPnLLine) HasName() bool

HasName returns a boolean if a field has been set.

GetType

func (o *BooksPnLLine) GetType() string

GetType returns the Type field if non-nil, zero value otherwise.

GetTypeOk

func (o *BooksPnLLine) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetType

func (o *BooksPnLLine) SetType(v string)

SetType sets Type field to given value.

HasType

func (o *BooksPnLLine) HasType() bool

HasType returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]