Package odata.msgraph.client.beta.entity
Class CustomerPayment
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.CustomerPayment
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class CustomerPayment 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 classCustomerPayment.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BigDecimalamountprotected UUIDappliesToInvoiceIdprotected StringappliesToInvoiceNumberprotected Stringcommentprotected StringcontactIdprotected UUIDcustomerIdprotected StringcustomerNumberprotected 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 protectedCustomerPayment()
-
Method Summary
-
-
-
Field Detail
-
amount
protected BigDecimal amount
-
appliesToInvoiceId
protected UUID appliesToInvoiceId
-
appliesToInvoiceNumber
protected String appliesToInvoiceNumber
-
comment
protected String comment
-
contactId
protected String contactId
-
customerId
protected UUID customerId
-
customerNumber
protected String customerNumber
-
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
-
builderCustomerPayment
public static CustomerPayment.Builder builderCustomerPayment()
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
-
getAmount
public Optional<BigDecimal> getAmount()
-
withAmount
public CustomerPayment withAmount(BigDecimal amount)
-
withAppliesToInvoiceId
public CustomerPayment withAppliesToInvoiceId(UUID appliesToInvoiceId)
-
withAppliesToInvoiceNumber
public CustomerPayment withAppliesToInvoiceNumber(String appliesToInvoiceNumber)
-
withComment
public CustomerPayment withComment(String comment)
-
withContactId
public CustomerPayment withContactId(String contactId)
-
withCustomerId
public CustomerPayment withCustomerId(UUID customerId)
-
withCustomerNumber
public CustomerPayment withCustomerNumber(String customerNumber)
-
withDescription
public CustomerPayment withDescription(String description)
-
withDocumentNumber
public CustomerPayment withDocumentNumber(String documentNumber)
-
withExternalDocumentNumber
public CustomerPayment withExternalDocumentNumber(String externalDocumentNumber)
-
withJournalDisplayName
public CustomerPayment withJournalDisplayName(String journalDisplayName)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public CustomerPayment withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withLineNumber
public CustomerPayment withLineNumber(Integer lineNumber)
-
withPostingDate
public CustomerPayment withPostingDate(LocalDate postingDate)
-
withUnmappedField
public CustomerPayment withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCustomer
public CustomerRequest getCustomer()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public CustomerPayment patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public CustomerPayment put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-