Package odata.msgraph.client.beta.entity
Class SalesQuote
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.SalesQuote
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SalesQuote 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 classSalesQuote.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSalesQuote()
-
Method Summary
-
-
-
Field Detail
-
acceptedDate
protected LocalDate acceptedDate
-
billingPostalAddress
protected PostalAddressType billingPostalAddress
-
billToCustomerId
protected UUID billToCustomerId
-
billToCustomerNumber
protected String billToCustomerNumber
-
billToName
protected String billToName
-
currencyCode
protected String currencyCode
-
currencyId
protected UUID currencyId
-
customerId
protected UUID customerId
-
customerName
protected String customerName
-
customerNumber
protected String customerNumber
-
discountAmount
protected BigDecimal discountAmount
-
documentDate
protected LocalDate documentDate
-
dueDate
protected LocalDate dueDate
-
email
protected String email
-
externalDocumentNumber
protected String externalDocumentNumber
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
number
protected String number
-
paymentTermsId
protected UUID paymentTermsId
-
phoneNumber
protected String phoneNumber
-
salesperson
protected String salesperson
-
sellingPostalAddress
protected PostalAddressType sellingPostalAddress
-
sentDate
protected OffsetDateTime sentDate
-
shipmentMethodId
protected UUID shipmentMethodId
-
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
-
validUntilDate
protected LocalDate validUntilDate
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderSalesQuote
public static SalesQuote.Builder builderSalesQuote()
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
-
withAcceptedDate
public SalesQuote withAcceptedDate(LocalDate acceptedDate)
-
getBillingPostalAddress
public Optional<PostalAddressType> getBillingPostalAddress()
-
withBillingPostalAddress
public SalesQuote withBillingPostalAddress(PostalAddressType billingPostalAddress)
-
withBillToCustomerId
public SalesQuote withBillToCustomerId(UUID billToCustomerId)
-
withBillToCustomerNumber
public SalesQuote withBillToCustomerNumber(String billToCustomerNumber)
-
withBillToName
public SalesQuote withBillToName(String billToName)
-
withCurrencyCode
public SalesQuote withCurrencyCode(String currencyCode)
-
withCurrencyId
public SalesQuote withCurrencyId(UUID currencyId)
-
withCustomerId
public SalesQuote withCustomerId(UUID customerId)
-
withCustomerName
public SalesQuote withCustomerName(String customerName)
-
withCustomerNumber
public SalesQuote withCustomerNumber(String customerNumber)
-
getDiscountAmount
public Optional<BigDecimal> getDiscountAmount()
-
withDiscountAmount
public SalesQuote withDiscountAmount(BigDecimal discountAmount)
-
withDocumentDate
public SalesQuote withDocumentDate(LocalDate documentDate)
-
withDueDate
public SalesQuote withDueDate(LocalDate dueDate)
-
withEmail
public SalesQuote withEmail(String email)
-
withExternalDocumentNumber
public SalesQuote withExternalDocumentNumber(String externalDocumentNumber)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public SalesQuote withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withNumber
public SalesQuote withNumber(String number)
-
withPaymentTermsId
public SalesQuote withPaymentTermsId(UUID paymentTermsId)
-
withPhoneNumber
public SalesQuote withPhoneNumber(String phoneNumber)
-
withSalesperson
public SalesQuote withSalesperson(String salesperson)
-
getSellingPostalAddress
public Optional<PostalAddressType> getSellingPostalAddress()
-
withSellingPostalAddress
public SalesQuote withSellingPostalAddress(PostalAddressType sellingPostalAddress)
-
getSentDate
public Optional<OffsetDateTime> getSentDate()
-
withSentDate
public SalesQuote withSentDate(OffsetDateTime sentDate)
-
withShipmentMethodId
public SalesQuote withShipmentMethodId(UUID shipmentMethodId)
-
getShippingPostalAddress
public Optional<PostalAddressType> getShippingPostalAddress()
-
withShippingPostalAddress
public SalesQuote withShippingPostalAddress(PostalAddressType shippingPostalAddress)
-
withShipToContact
public SalesQuote withShipToContact(String shipToContact)
-
withShipToName
public SalesQuote withShipToName(String shipToName)
-
withStatus
public SalesQuote withStatus(String status)
-
getTotalAmountExcludingTax
public Optional<BigDecimal> getTotalAmountExcludingTax()
-
withTotalAmountExcludingTax
public SalesQuote withTotalAmountExcludingTax(BigDecimal totalAmountExcludingTax)
-
getTotalAmountIncludingTax
public Optional<BigDecimal> getTotalAmountIncludingTax()
-
withTotalAmountIncludingTax
public SalesQuote withTotalAmountIncludingTax(BigDecimal totalAmountIncludingTax)
-
getTotalTaxAmount
public Optional<BigDecimal> getTotalTaxAmount()
-
withTotalTaxAmount
public SalesQuote withTotalTaxAmount(BigDecimal totalTaxAmount)
-
withValidUntilDate
public SalesQuote withValidUntilDate(LocalDate validUntilDate)
-
withUnmappedField
public SalesQuote withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCurrency
public CurrencyRequest getCurrency()
-
getCustomer
public CustomerRequest getCustomer()
-
getPaymentTerm
public PaymentTermRequest getPaymentTerm()
-
getSalesQuoteLines
public SalesQuoteLineCollectionRequest getSalesQuoteLines()
-
getShipmentMethod
public ShipmentMethodRequest getShipmentMethod()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public SalesQuote patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SalesQuote put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
send
public com.github.davidmoten.odata.client.ActionRequestNoReturn send()
-
makeInvoice
public com.github.davidmoten.odata.client.ActionRequestNoReturn makeInvoice()
-
-