public class PaymentTerm extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = true
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = true
| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentTerm.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
calculateDiscountOnCreditMemos |
protected String |
code |
protected String |
discountDateCalculation |
protected BigDecimal |
discountPercent |
protected String |
displayName |
protected String |
dueDateCalculation |
protected OffsetDateTime |
lastModifiedDateTime |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
PaymentTerm() |
| Modifier and Type | Method and Description |
|---|---|
static PaymentTerm.Builder |
builderPaymentTerm()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
Optional<Boolean> |
getCalculateDiscountOnCreditMemos() |
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getCode() |
Optional<String> |
getDiscountDateCalculation() |
Optional<BigDecimal> |
getDiscountPercent() |
Optional<String> |
getDisplayName() |
Optional<String> |
getDueDateCalculation() |
Optional<OffsetDateTime> |
getLastModifiedDateTime() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
PaymentTerm |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
PaymentTerm |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
PaymentTerm |
withCalculateDiscountOnCreditMemos(Boolean calculateDiscountOnCreditMemos) |
PaymentTerm |
withCode(String code) |
PaymentTerm |
withDiscountDateCalculation(String discountDateCalculation) |
PaymentTerm |
withDiscountPercent(BigDecimal discountPercent) |
PaymentTerm |
withDisplayName(String displayName) |
PaymentTerm |
withDueDateCalculation(String dueDateCalculation) |
PaymentTerm |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) |
protected String code
protected String displayName
protected String dueDateCalculation
protected String discountDateCalculation
protected BigDecimal discountPercent
protected Boolean calculateDiscountOnCreditMemos
protected OffsetDateTime lastModifiedDateTime
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static PaymentTerm.Builder builderPaymentTerm()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic PaymentTerm withCode(String code)
public PaymentTerm withDisplayName(String displayName)
public PaymentTerm withDueDateCalculation(String dueDateCalculation)
public PaymentTerm withDiscountDateCalculation(String discountDateCalculation)
public Optional<BigDecimal> getDiscountPercent()
public PaymentTerm withDiscountPercent(BigDecimal discountPercent)
public PaymentTerm withCalculateDiscountOnCreditMemos(Boolean calculateDiscountOnCreditMemos)
public Optional<OffsetDateTime> getLastModifiedDateTime()
public PaymentTerm withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic PaymentTerm patch()
this with changed fields reset.public PaymentTerm put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.