public class SalesCreditMemo extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
| Modifier and Type | Class and Description |
|---|---|
static class |
SalesCreditMemo.Builder |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
SalesCreditMemo() |
protected String number
protected String externalDocumentNumber
protected LocalDate creditMemoDate
protected LocalDate dueDate
protected String customerId
protected String customerNumber
protected String customerName
protected String billToName
protected String billToCustomerId
protected String billToCustomerNumber
protected PostalAddressType sellingPostalAddress
protected PostalAddressType billingPostalAddress
protected String currencyId
protected String currencyCode
protected String paymentTermsId
protected String salesperson
protected Boolean pricesIncludeTax
protected BigDecimal discountAmount
protected Boolean discountAppliedBeforeTax
protected BigDecimal totalAmountExcludingTax
protected BigDecimal totalTaxAmount
protected BigDecimal totalAmountIncludingTax
protected String status
protected OffsetDateTime lastModifiedDateTime
protected String invoiceId
protected String invoiceNumber
protected String phoneNumber
protected String email
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static SalesCreditMemo.Builder builderSalesCreditMemo()
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 SalesCreditMemo withNumber(String number)
public SalesCreditMemo withExternalDocumentNumber(String externalDocumentNumber)
public SalesCreditMemo withCreditMemoDate(LocalDate creditMemoDate)
public SalesCreditMemo withDueDate(LocalDate dueDate)
public SalesCreditMemo withCustomerId(String customerId)
public SalesCreditMemo withCustomerNumber(String customerNumber)
public SalesCreditMemo withCustomerName(String customerName)
public SalesCreditMemo withBillToName(String billToName)
public SalesCreditMemo withBillToCustomerId(String billToCustomerId)
public SalesCreditMemo withBillToCustomerNumber(String billToCustomerNumber)
public Optional<PostalAddressType> getSellingPostalAddress()
public SalesCreditMemo withSellingPostalAddress(PostalAddressType sellingPostalAddress)
public Optional<PostalAddressType> getBillingPostalAddress()
public SalesCreditMemo withBillingPostalAddress(PostalAddressType billingPostalAddress)
public SalesCreditMemo withCurrencyId(String currencyId)
public SalesCreditMemo withCurrencyCode(String currencyCode)
public SalesCreditMemo withPaymentTermsId(String paymentTermsId)
public SalesCreditMemo withSalesperson(String salesperson)
public SalesCreditMemo withPricesIncludeTax(Boolean pricesIncludeTax)
public Optional<BigDecimal> getDiscountAmount()
public SalesCreditMemo withDiscountAmount(BigDecimal discountAmount)
public SalesCreditMemo withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
public Optional<BigDecimal> getTotalAmountExcludingTax()
public SalesCreditMemo withTotalAmountExcludingTax(BigDecimal totalAmountExcludingTax)
public Optional<BigDecimal> getTotalTaxAmount()
public SalesCreditMemo withTotalTaxAmount(BigDecimal totalTaxAmount)
public Optional<BigDecimal> getTotalAmountIncludingTax()
public SalesCreditMemo withTotalAmountIncludingTax(BigDecimal totalAmountIncludingTax)
public SalesCreditMemo withStatus(String status)
public Optional<OffsetDateTime> getLastModifiedDateTime()
public SalesCreditMemo withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
public SalesCreditMemo withInvoiceId(String invoiceId)
public SalesCreditMemo withInvoiceNumber(String invoiceNumber)
public SalesCreditMemo withPhoneNumber(String phoneNumber)
public SalesCreditMemo withEmail(String email)
public SalesCreditMemoLineCollectionRequest getSalesCreditMemoLines()
public CustomerRequest getCustomer()
public CurrencyRequest getCurrency()
public PaymentTermRequest getPaymentTerm()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic SalesCreditMemo patch()
this with changed fields reset.public SalesCreditMemo put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.