Class JournalLine


  • public class JournalLine
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JournalLine.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)  
    • 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
      • 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​(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​(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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object