Class CreateJournalLine
- java.lang.Object
-
- com.stackone.stackone_client_java.models.components.CreateJournalLine
-
public class CreateJournalLine extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateJournalLine.Builder
-
Constructor Summary
Constructors Constructor Description CreateJournalLine()CreateJournalLine(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> taxRateId, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount)
-
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<java.lang.Double>amount()Amount of the journal line in minor units, e.g.static CreateJournalLine.Builderbuilder()org.openapitools.jackson.nullable.JsonNullable<java.lang.String>description()Description of the journal linebooleanequals(java.lang.Object o)inthashCode()org.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.String>taxRateId()ID of the tax rate appliedjava.lang.StringtoString()CreateJournalLinewithAccountId(java.lang.String accountId)ID of the ledger account this line referencesCreateJournalLinewithAccountId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId)ID of the ledger account this line referencesCreateJournalLinewithAmount(double amount)Amount of the journal line in minor units, e.g.CreateJournalLinewithAmount(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount)Amount of the journal line in minor units, e.g.CreateJournalLinewithDescription(java.lang.String description)Description of the journal lineCreateJournalLinewithDescription(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)Description of the journal lineCreateJournalLinewithTaxAmount(double taxAmount)Tax amount of the line in minor units, e.g.CreateJournalLinewithTaxAmount(org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount)Tax amount of the line in minor units, e.g.CreateJournalLinewithTaxRateId(java.lang.String taxRateId)ID of the tax rate appliedCreateJournalLinewithTaxRateId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> taxRateId)ID of the tax rate applied
-
-
-
Constructor Detail
-
CreateJournalLine
public CreateJournalLine(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> amount, org.openapitools.jackson.nullable.JsonNullable<java.lang.String> taxRateId, org.openapitools.jackson.nullable.JsonNullable<java.lang.Double> taxAmount)
-
CreateJournalLine
public CreateJournalLine()
-
-
Method Detail
-
accountId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId()
ID of the ledger account this line references
-
description
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description()
Description of the journal line
-
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
-
taxRateId
public org.openapitools.jackson.nullable.JsonNullable<java.lang.String> taxRateId()
ID of the tax rate applied
-
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
-
builder
public static CreateJournalLine.Builder builder()
-
withAccountId
public CreateJournalLine withAccountId(java.lang.String accountId)
ID of the ledger account this line references
-
withAccountId
public CreateJournalLine withAccountId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> accountId)
ID of the ledger account this line references
-
withDescription
public CreateJournalLine withDescription(java.lang.String description)
Description of the journal line
-
withDescription
public CreateJournalLine withDescription(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> description)
Description of the journal line
-
withAmount
public CreateJournalLine 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 CreateJournalLine 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
-
withTaxRateId
public CreateJournalLine withTaxRateId(java.lang.String taxRateId)
ID of the tax rate applied
-
withTaxRateId
public CreateJournalLine withTaxRateId(org.openapitools.jackson.nullable.JsonNullable<java.lang.String> taxRateId)
ID of the tax rate applied
-
withTaxAmount
public CreateJournalLine withTaxAmount(double taxAmount)
Tax amount of the line in minor units, e.g. 10010 for 100.10 USD
-
withTaxAmount
public CreateJournalLine 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
-
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
-
-