public class SalesOrder 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 |
SalesOrder.Builder |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
SalesOrder() |
protected String number
protected String externalDocumentNumber
protected LocalDate orderDate
protected String customerId
protected String customerNumber
protected String customerName
protected String billToName
protected String billToCustomerId
protected String billToCustomerNumber
protected String shipToName
protected String shipToContact
protected PostalAddressType sellingPostalAddress
protected PostalAddressType billingPostalAddress
protected PostalAddressType shippingPostalAddress
protected String currencyId
protected String currencyCode
protected Boolean pricesIncludeTax
protected String paymentTermsId
protected String salesperson
protected Boolean partialShipping
protected LocalDate requestedDeliveryDate
protected BigDecimal discountAmount
protected Boolean discountAppliedBeforeTax
protected BigDecimal totalAmountExcludingTax
protected BigDecimal totalTaxAmount
protected BigDecimal totalAmountIncludingTax
protected Boolean fullyShipped
protected String status
protected OffsetDateTime lastModifiedDateTime
protected String phoneNumber
protected String email
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static SalesOrder.Builder builderSalesOrder()
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 SalesOrder withNumber(String number)
public SalesOrder withExternalDocumentNumber(String externalDocumentNumber)
public SalesOrder withOrderDate(LocalDate orderDate)
public SalesOrder withCustomerId(String customerId)
public SalesOrder withCustomerNumber(String customerNumber)
public SalesOrder withCustomerName(String customerName)
public SalesOrder withBillToName(String billToName)
public SalesOrder withBillToCustomerId(String billToCustomerId)
public SalesOrder withBillToCustomerNumber(String billToCustomerNumber)
public SalesOrder withShipToName(String shipToName)
public SalesOrder withShipToContact(String shipToContact)
public Optional<PostalAddressType> getSellingPostalAddress()
public SalesOrder withSellingPostalAddress(PostalAddressType sellingPostalAddress)
public Optional<PostalAddressType> getBillingPostalAddress()
public SalesOrder withBillingPostalAddress(PostalAddressType billingPostalAddress)
public Optional<PostalAddressType> getShippingPostalAddress()
public SalesOrder withShippingPostalAddress(PostalAddressType shippingPostalAddress)
public SalesOrder withCurrencyId(String currencyId)
public SalesOrder withCurrencyCode(String currencyCode)
public SalesOrder withPricesIncludeTax(Boolean pricesIncludeTax)
public SalesOrder withPaymentTermsId(String paymentTermsId)
public SalesOrder withSalesperson(String salesperson)
public SalesOrder withPartialShipping(Boolean partialShipping)
public SalesOrder withRequestedDeliveryDate(LocalDate requestedDeliveryDate)
public Optional<BigDecimal> getDiscountAmount()
public SalesOrder withDiscountAmount(BigDecimal discountAmount)
public SalesOrder withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
public Optional<BigDecimal> getTotalAmountExcludingTax()
public SalesOrder withTotalAmountExcludingTax(BigDecimal totalAmountExcludingTax)
public Optional<BigDecimal> getTotalTaxAmount()
public SalesOrder withTotalTaxAmount(BigDecimal totalTaxAmount)
public Optional<BigDecimal> getTotalAmountIncludingTax()
public SalesOrder withTotalAmountIncludingTax(BigDecimal totalAmountIncludingTax)
public SalesOrder withFullyShipped(Boolean fullyShipped)
public SalesOrder withStatus(String status)
public Optional<OffsetDateTime> getLastModifiedDateTime()
public SalesOrder withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
public SalesOrder withPhoneNumber(String phoneNumber)
public SalesOrder withEmail(String email)
public SalesOrderLineCollectionRequest getSalesOrderLines()
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 SalesOrder patch()
this with changed fields reset.public SalesOrder put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.