Package odata.msgraph.client.beta.entity
Class SalesOrder
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.SalesOrder
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SalesOrder extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = false
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = false
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSalesOrder.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSalesOrder()
-
Method Summary
-
-
-
Field Detail
-
billingPostalAddress
protected PostalAddressType billingPostalAddress
-
billToCustomerId
protected String billToCustomerId
-
billToCustomerNumber
protected String billToCustomerNumber
-
billToName
protected String billToName
-
currencyCode
protected String currencyCode
-
currencyId
protected String currencyId
-
customerId
protected String customerId
-
customerName
protected String customerName
-
customerNumber
protected String customerNumber
-
discountAmount
protected BigDecimal discountAmount
-
discountAppliedBeforeTax
protected Boolean discountAppliedBeforeTax
-
email
protected String email
-
externalDocumentNumber
protected String externalDocumentNumber
-
fullyShipped
protected Boolean fullyShipped
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
number
protected String number
-
orderDate
protected LocalDate orderDate
-
partialShipping
protected Boolean partialShipping
-
paymentTermsId
protected String paymentTermsId
-
phoneNumber
protected String phoneNumber
-
pricesIncludeTax
protected Boolean pricesIncludeTax
-
requestedDeliveryDate
protected LocalDate requestedDeliveryDate
-
salesperson
protected String salesperson
-
sellingPostalAddress
protected PostalAddressType sellingPostalAddress
-
shippingPostalAddress
protected PostalAddressType shippingPostalAddress
-
shipToContact
protected String shipToContact
-
shipToName
protected String shipToName
-
status
protected String status
-
totalAmountExcludingTax
protected BigDecimal totalAmountExcludingTax
-
totalAmountIncludingTax
protected BigDecimal totalAmountIncludingTax
-
totalTaxAmount
protected BigDecimal totalTaxAmount
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderSalesOrder
public static SalesOrder.Builder builderSalesOrder()
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
-
getBillingPostalAddress
public Optional<PostalAddressType> getBillingPostalAddress()
-
withBillingPostalAddress
public SalesOrder withBillingPostalAddress(PostalAddressType billingPostalAddress)
-
withBillToCustomerId
public SalesOrder withBillToCustomerId(String billToCustomerId)
-
withBillToCustomerNumber
public SalesOrder withBillToCustomerNumber(String billToCustomerNumber)
-
withBillToName
public SalesOrder withBillToName(String billToName)
-
withCurrencyCode
public SalesOrder withCurrencyCode(String currencyCode)
-
withCurrencyId
public SalesOrder withCurrencyId(String currencyId)
-
withCustomerId
public SalesOrder withCustomerId(String customerId)
-
withCustomerName
public SalesOrder withCustomerName(String customerName)
-
withCustomerNumber
public SalesOrder withCustomerNumber(String customerNumber)
-
getDiscountAmount
public Optional<BigDecimal> getDiscountAmount()
-
withDiscountAmount
public SalesOrder withDiscountAmount(BigDecimal discountAmount)
-
withDiscountAppliedBeforeTax
public SalesOrder withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
-
withEmail
public SalesOrder withEmail(String email)
-
withExternalDocumentNumber
public SalesOrder withExternalDocumentNumber(String externalDocumentNumber)
-
withFullyShipped
public SalesOrder withFullyShipped(Boolean fullyShipped)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public SalesOrder withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withNumber
public SalesOrder withNumber(String number)
-
withOrderDate
public SalesOrder withOrderDate(LocalDate orderDate)
-
withPartialShipping
public SalesOrder withPartialShipping(Boolean partialShipping)
-
withPaymentTermsId
public SalesOrder withPaymentTermsId(String paymentTermsId)
-
withPhoneNumber
public SalesOrder withPhoneNumber(String phoneNumber)
-
withPricesIncludeTax
public SalesOrder withPricesIncludeTax(Boolean pricesIncludeTax)
-
withRequestedDeliveryDate
public SalesOrder withRequestedDeliveryDate(LocalDate requestedDeliveryDate)
-
withSalesperson
public SalesOrder withSalesperson(String salesperson)
-
getSellingPostalAddress
public Optional<PostalAddressType> getSellingPostalAddress()
-
withSellingPostalAddress
public SalesOrder withSellingPostalAddress(PostalAddressType sellingPostalAddress)
-
getShippingPostalAddress
public Optional<PostalAddressType> getShippingPostalAddress()
-
withShippingPostalAddress
public SalesOrder withShippingPostalAddress(PostalAddressType shippingPostalAddress)
-
withShipToContact
public SalesOrder withShipToContact(String shipToContact)
-
withShipToName
public SalesOrder withShipToName(String shipToName)
-
withStatus
public SalesOrder withStatus(String status)
-
getTotalAmountExcludingTax
public Optional<BigDecimal> getTotalAmountExcludingTax()
-
withTotalAmountExcludingTax
public SalesOrder withTotalAmountExcludingTax(BigDecimal totalAmountExcludingTax)
-
getTotalAmountIncludingTax
public Optional<BigDecimal> getTotalAmountIncludingTax()
-
withTotalAmountIncludingTax
public SalesOrder withTotalAmountIncludingTax(BigDecimal totalAmountIncludingTax)
-
getTotalTaxAmount
public Optional<BigDecimal> getTotalTaxAmount()
-
withTotalTaxAmount
public SalesOrder withTotalTaxAmount(BigDecimal totalTaxAmount)
-
withUnmappedField
public SalesOrder withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCurrency
public CurrencyRequest getCurrency()
-
getCustomer
public CustomerRequest getCustomer()
-
getPaymentTerm
public PaymentTermRequest getPaymentTerm()
-
getSalesOrderLines
public SalesOrderLineCollectionRequest getSalesOrderLines()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public SalesOrder patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SalesOrder put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-