Class JournalLine
- java.lang.Object
-
- com.stackone.stackone_client_java.models.components.JournalLine
-
public class JournalLine extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJournalLine.Builder
-
Constructor Summary
Constructors Constructor Description JournalLine()JournalLine(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId, org.openapitools.jackson.nullable.JsonNullable<? extends AccountType> accountType, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description, org.openapitools.jackson.nullable.JsonNullable<? extends JournalLineCurrencyCode> currencyCode, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> exchangeRate, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxRatePercentage)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.openapitools.jackson.nullable.JsonNullable<java.lang.String>accountId()ID of the ledger account this line referencesorg.openapitools.jackson.nullable.JsonNullable<AccountType>accountType()Type of the accountorg.openapitools.jackson.nullable.JsonNullable<java.lang.Double>amount()Amount of the journal line in minor units, e.g.static JournalLine.Builderbuilder()org.openapitools.jackson.nullable.JsonNullable<JournalLineCurrencyCode>currencyCode()Currency code for this lineorg.openapitools.jackson.nullable.JsonNullable<java.lang.String>description()Description of the journal linebooleanequals(java.lang.Object o)org.openapitools.jackson.nullable.JsonNullable<java.lang.Double>exchangeRate()Exchange rate to company base currencyinthashCode()org.openapitools.jackson.nullable.JsonNullable<java.lang.String>id()Unique identifier for the journal lineorg.openapitools.jackson.nullable.JsonNullable<java.lang.Double>taxAmount()Tax amount of the line in minor units, e.g.org.openapitools.jackson.nullable.JsonNullable<java.lang.Double>taxRatePercentage()Tax rate percentagejava.lang.StringtoString()JournalLinewithAccountId(java.lang.String accountId)ID of the ledger account this line referencesJournalLinewithAccountId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId)ID of the ledger account this line referencesJournalLinewithAccountType(AccountType accountType)Type of the accountJournalLinewithAccountType(org.openapitools.jackson.nullable.JsonNullable<? extends AccountType> accountType)Type of the accountJournalLinewithAmount(double amount)Amount of the journal line in minor units, e.g.JournalLinewithAmount(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount)Amount of the journal line in minor units, e.g.JournalLinewithCurrencyCode(JournalLineCurrencyCode currencyCode)Currency code for this lineJournalLinewithCurrencyCode(org.openapitools.jackson.nullable.JsonNullable<? extends JournalLineCurrencyCode> currencyCode)Currency code for this lineJournalLinewithDescription(java.lang.String description)Description of the journal lineJournalLinewithDescription(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)Description of the journal lineJournalLinewithExchangeRate(double exchangeRate)Exchange rate to company base currencyJournalLinewithExchangeRate(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> exchangeRate)Exchange rate to company base currencyJournalLinewithId(java.lang.String id)Unique identifier for the journal lineJournalLinewithId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)Unique identifier for the journal lineJournalLinewithTaxAmount(double taxAmount)Tax amount of the line in minor units, e.g.JournalLinewithTaxAmount(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount)Tax amount of the line in minor units, e.g.JournalLinewithTaxRatePercentage(double taxRatePercentage)Tax rate percentageJournalLinewithTaxRatePercentage(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxRatePercentage)Tax rate percentage
-
-
-
Constructor Detail
-
JournalLine
public JournalLine(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId, org.openapitools.jackson.nullable.JsonNullable<? extends AccountType> accountType, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description, org.openapitools.jackson.nullable.JsonNullable<? extends JournalLineCurrencyCode> currencyCode, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> exchangeRate, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxRatePercentage)
-
JournalLine
public JournalLine()
-
-
Method Detail
-
id
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id()
Unique identifier for the journal line
-
accountId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId()
ID of the ledger account this line references
-
accountType
public org.openapitools.jackson.nullable.JsonNullable<AccountType> accountType()
Type of the account
-
description
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description()
Description of the journal line
-
currencyCode
public org.openapitools.jackson.nullable.JsonNullable<JournalLineCurrencyCode> currencyCode()
Currency code for this line
-
exchangeRate
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> exchangeRate()
Exchange rate to company base currency
-
amount
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount()
Amount of the journal line in minor units, e.g. 10010 for 100.10 USD. Positive for debit, negative for credit
-
taxAmount
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount()
Tax amount of the line in minor units, e.g. 10010 for 100.10 USD
-
taxRatePercentage
public org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxRatePercentage()
Tax rate percentage
-
builder
public static JournalLine.Builder builder()
-
withId
public JournalLine withId(java.lang.String id)
Unique identifier for the journal line
-
withId
public JournalLine withId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)
Unique identifier for the journal line
-
withAccountId
public JournalLine withAccountId(java.lang.String accountId)
ID of the ledger account this line references
-
withAccountId
public JournalLine withAccountId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId)
ID of the ledger account this line references
-
withAccountType
public JournalLine withAccountType(AccountType accountType)
Type of the account
-
withAccountType
public JournalLine withAccountType(org.openapitools.jackson.nullable.JsonNullable<? extends AccountType> accountType)
Type of the account
-
withDescription
public JournalLine withDescription(java.lang.String description)
Description of the journal line
-
withDescription
public JournalLine withDescription(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)
Description of the journal line
-
withCurrencyCode
public JournalLine withCurrencyCode(JournalLineCurrencyCode currencyCode)
Currency code for this line
-
withCurrencyCode
public JournalLine withCurrencyCode(org.openapitools.jackson.nullable.JsonNullable<? extends JournalLineCurrencyCode> currencyCode)
Currency code for this line
-
withExchangeRate
public JournalLine withExchangeRate(double exchangeRate)
Exchange rate to company base currency
-
withExchangeRate
public JournalLine withExchangeRate(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> exchangeRate)
Exchange rate to company base currency
-
withAmount
public JournalLine withAmount(double amount)
Amount of the journal line in minor units, e.g. 10010 for 100.10 USD. Positive for debit, negative for credit
-
withAmount
public JournalLine withAmount(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount)
Amount of the journal line in minor units, e.g. 10010 for 100.10 USD. Positive for debit, negative for credit
-
withTaxAmount
public JournalLine withTaxAmount(double taxAmount)
Tax amount of the line in minor units, e.g. 10010 for 100.10 USD
-
withTaxAmount
public JournalLine withTaxAmount(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount)
Tax amount of the line in minor units, e.g. 10010 for 100.10 USD
-
withTaxRatePercentage
public JournalLine withTaxRatePercentage(double taxRatePercentage)
Tax rate percentage
-
withTaxRatePercentage
public JournalLine withTaxRatePercentage(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxRatePercentage)
Tax rate percentage
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-