Package odata.msgraph.client.beta.entity
Class JournalLine
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.JournalLine
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class JournalLine extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = true
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = true
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJournalLine.Builder
-
Field Summary
Fields Modifier and Type Field Description protected UUIDaccountIdprotected StringaccountNumberprotected BigDecimalamountprotected Stringcommentprotected Stringdescriptionprotected StringdocumentNumberprotected StringexternalDocumentNumberprotected StringjournalDisplayNameprotected OffsetDateTimelastModifiedDateTimeprotected IntegerlineNumberprotected LocalDatepostingDate-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJournalLine()
-
Method Summary
-
-
-
Field Detail
-
accountId
protected UUID accountId
-
accountNumber
protected String accountNumber
-
amount
protected BigDecimal amount
-
comment
protected String comment
-
description
protected String description
-
documentNumber
protected String documentNumber
-
externalDocumentNumber
protected String externalDocumentNumber
-
journalDisplayName
protected String journalDisplayName
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
lineNumber
protected Integer lineNumber
-
postingDate
protected LocalDate postingDate
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderJournalLine
public static JournalLine.Builder builderJournalLine()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
withAccountId
public JournalLine withAccountId(UUID accountId)
-
withAccountNumber
public JournalLine withAccountNumber(String accountNumber)
-
getAmount
public Optional<BigDecimal> getAmount()
-
withAmount
public JournalLine withAmount(BigDecimal amount)
-
withComment
public JournalLine withComment(String comment)
-
withDescription
public JournalLine withDescription(String description)
-
withDocumentNumber
public JournalLine withDocumentNumber(String documentNumber)
-
withExternalDocumentNumber
public JournalLine withExternalDocumentNumber(String externalDocumentNumber)
-
withJournalDisplayName
public JournalLine withJournalDisplayName(String journalDisplayName)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public JournalLine withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withLineNumber
public JournalLine withLineNumber(Integer lineNumber)
-
withPostingDate
public JournalLine withPostingDate(LocalDate postingDate)
-
withUnmappedField
public JournalLine withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getAccount
public AccountRequest getAccount()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public JournalLine patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public JournalLine put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-