Class JournalLine.Builder
- java.lang.Object
-
- com.stackone.stackone_client_java.models.components.JournalLine.Builder
-
- Enclosing class:
- JournalLine
public static final class JournalLine.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JournalLine.BuilderaccountId(java.lang.String accountId)ID of the ledger account this line referencesJournalLine.BuilderaccountId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId)ID of the ledger account this line referencesJournalLine.BuilderaccountType(JournalLineAccountType accountType)Type of the accountJournalLine.BuilderaccountType(org.openapitools.jackson.nullable.JsonNullable<? extends JournalLineAccountType> accountType)Type of the accountJournalLine.Builderamount(double amount)Amount of the journal line in minor units, e.g.JournalLine.Builderamount(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount)Amount of the journal line in minor units, e.g.JournalLinebuild()JournalLine.BuildercurrencyCode(JournalLineCurrencyCode currencyCode)Currency code for this lineJournalLine.BuildercurrencyCode(org.openapitools.jackson.nullable.JsonNullable<? extends JournalLineCurrencyCode> currencyCode)Currency code for this lineJournalLine.Builderdescription(java.lang.String description)Description of the journal lineJournalLine.Builderdescription(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)Description of the journal lineJournalLine.BuilderexchangeRate(double exchangeRate)Exchange rate to company base currencyJournalLine.BuilderexchangeRate(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> exchangeRate)Exchange rate to company base currencyJournalLine.Builderid(java.lang.String id)Unique identifier for the journal lineJournalLine.Builderid(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> id)Unique identifier for the journal lineJournalLine.BuildertaxAmount(double taxAmount)Tax amount of the line in minor units, e.g.JournalLine.BuildertaxAmount(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount)Tax amount of the line in minor units, e.g.JournalLine.BuildertaxRatePercentage(double taxRatePercentage)Tax rate percentageJournalLine.BuildertaxRatePercentage(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxRatePercentage)Tax rate percentage
-
-
-
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(JournalLineAccountType accountType)
Type of the account
-
accountType
public JournalLine.Builder accountType(org.openapitools.jackson.nullable.JsonNullable<? extends JournalLineAccountType> 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
-
currencyCode
public JournalLine.Builder currencyCode(JournalLineCurrencyCode currencyCode)
Currency code for this line
-
currencyCode
public JournalLine.Builder currencyCode(org.openapitools.jackson.nullable.JsonNullable<? extends JournalLineCurrencyCode> currencyCode)
Currency code for this 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
-
build
public JournalLine build()
-
-