Class JournalLine.Builder

  • Enclosing class:
    JournalLine

    public static final class JournalLine.Builder
    extends java.lang.Object
    • Method Detail

      • id

        public JournalLine.Builder id​(java.lang.String id)
        Unique identifier for the journal line
      • id

        public JournalLine.Builder id​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)
        Unique identifier for the journal line
      • accountId

        public JournalLine.Builder accountId​(java.lang.String accountId)
        ID of the ledger account this line references
      • accountId

        public JournalLine.Builder accountId​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId)
        ID of the ledger account this line references
      • accountType

        public JournalLine.Builder accountType​(org.openapitools.jackson.nullable.JsonNullable<? extends AccountType> accountType)
        Type of the account
      • description

        public JournalLine.Builder description​(java.lang.String description)
        Description of the journal line
      • description

        public JournalLine.Builder description​(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)
        Description of the journal line
      • exchangeRate

        public JournalLine.Builder exchangeRate​(double exchangeRate)
        Exchange rate to company base currency
      • exchangeRate

        public JournalLine.Builder exchangeRate​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> exchangeRate)
        Exchange rate to company base currency
      • amount

        public JournalLine.Builder amount​(double amount)
        Amount of the journal line in minor units, e.g. 10010 for 100.10 USD. Positive for debit, negative for credit
      • amount

        public JournalLine.Builder amount​(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 JournalLine.Builder taxAmount​(double taxAmount)
        Tax amount of the line in minor units, e.g. 10010 for 100.10 USD
      • taxAmount

        public JournalLine.Builder taxAmount​(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 JournalLine.Builder taxRatePercentage​(double taxRatePercentage)
        Tax rate percentage
      • taxRatePercentage

        public JournalLine.Builder taxRatePercentage​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxRatePercentage)
        Tax rate percentage