Package odata.msgraph.client.beta.entity
Class SalesInvoice
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.SalesInvoice
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SalesInvoice 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 classSalesInvoice.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSalesInvoice()
-
Method Summary
-
-
-
Field Detail
-
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
-
customerPurchaseOrderReference
protected String customerPurchaseOrderReference
-
discountAmount
protected BigDecimal discountAmount
-
discountAppliedBeforeTax
protected Boolean discountAppliedBeforeTax
-
dueDate
protected LocalDate dueDate
-
email
protected String email
-
externalDocumentNumber
protected String externalDocumentNumber
-
invoiceDate
protected LocalDate invoiceDate
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
number
protected String number
-
orderId
protected UUID orderId
-
orderNumber
protected String orderNumber
-
paymentTermsId
protected UUID paymentTermsId
-
phoneNumber
protected String phoneNumber
-
pricesIncludeTax
protected Boolean pricesIncludeTax
-
salesperson
protected String salesperson
-
sellingPostalAddress
protected PostalAddressType sellingPostalAddress
-
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
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderSalesInvoice
public static SalesInvoice.Builder builderSalesInvoice()
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 SalesInvoice withBillingPostalAddress(PostalAddressType billingPostalAddress)
-
withBillToCustomerId
public SalesInvoice withBillToCustomerId(UUID billToCustomerId)
-
withBillToCustomerNumber
public SalesInvoice withBillToCustomerNumber(String billToCustomerNumber)
-
withBillToName
public SalesInvoice withBillToName(String billToName)
-
withCurrencyCode
public SalesInvoice withCurrencyCode(String currencyCode)
-
withCurrencyId
public SalesInvoice withCurrencyId(UUID currencyId)
-
withCustomerId
public SalesInvoice withCustomerId(UUID customerId)
-
withCustomerName
public SalesInvoice withCustomerName(String customerName)
-
withCustomerNumber
public SalesInvoice withCustomerNumber(String customerNumber)
-
withCustomerPurchaseOrderReference
public SalesInvoice withCustomerPurchaseOrderReference(String customerPurchaseOrderReference)
-
getDiscountAmount
public Optional<BigDecimal> getDiscountAmount()
-
withDiscountAmount
public SalesInvoice withDiscountAmount(BigDecimal discountAmount)
-
withDiscountAppliedBeforeTax
public SalesInvoice withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
-
withDueDate
public SalesInvoice withDueDate(LocalDate dueDate)
-
withEmail
public SalesInvoice withEmail(String email)
-
withExternalDocumentNumber
public SalesInvoice withExternalDocumentNumber(String externalDocumentNumber)
-
withInvoiceDate
public SalesInvoice withInvoiceDate(LocalDate invoiceDate)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public SalesInvoice withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withNumber
public SalesInvoice withNumber(String number)
-
withOrderId
public SalesInvoice withOrderId(UUID orderId)
-
withOrderNumber
public SalesInvoice withOrderNumber(String orderNumber)
-
withPaymentTermsId
public SalesInvoice withPaymentTermsId(UUID paymentTermsId)
-
withPhoneNumber
public SalesInvoice withPhoneNumber(String phoneNumber)
-
withPricesIncludeTax
public SalesInvoice withPricesIncludeTax(Boolean pricesIncludeTax)
-
withSalesperson
public SalesInvoice withSalesperson(String salesperson)
-
getSellingPostalAddress
public Optional<PostalAddressType> getSellingPostalAddress()
-
withSellingPostalAddress
public SalesInvoice withSellingPostalAddress(PostalAddressType sellingPostalAddress)
-
withShipmentMethodId
public SalesInvoice withShipmentMethodId(UUID shipmentMethodId)
-
getShippingPostalAddress
public Optional<PostalAddressType> getShippingPostalAddress()
-
withShippingPostalAddress
public SalesInvoice withShippingPostalAddress(PostalAddressType shippingPostalAddress)
-
withShipToContact
public SalesInvoice withShipToContact(String shipToContact)
-
withShipToName
public SalesInvoice withShipToName(String shipToName)
-
withStatus
public SalesInvoice withStatus(String status)
-
getTotalAmountExcludingTax
public Optional<BigDecimal> getTotalAmountExcludingTax()
-
withTotalAmountExcludingTax
public SalesInvoice withTotalAmountExcludingTax(BigDecimal totalAmountExcludingTax)
-
getTotalAmountIncludingTax
public Optional<BigDecimal> getTotalAmountIncludingTax()
-
withTotalAmountIncludingTax
public SalesInvoice withTotalAmountIncludingTax(BigDecimal totalAmountIncludingTax)
-
getTotalTaxAmount
public Optional<BigDecimal> getTotalTaxAmount()
-
withTotalTaxAmount
public SalesInvoice withTotalTaxAmount(BigDecimal totalTaxAmount)
-
withUnmappedField
public SalesInvoice withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCurrency
public CurrencyRequest getCurrency()
-
getCustomer
public CustomerRequest getCustomer()
-
getPaymentTerm
public PaymentTermRequest getPaymentTerm()
-
getSalesInvoiceLines
public SalesInvoiceLineCollectionRequest getSalesInvoiceLines()
-
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 SalesInvoice patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SalesInvoice put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
cancel
public com.github.davidmoten.odata.client.ActionRequestNoReturn cancel()
-
send
public com.github.davidmoten.odata.client.ActionRequestNoReturn send()
-
cancelAndSend
public com.github.davidmoten.odata.client.ActionRequestNoReturn cancelAndSend()
-
post
public com.github.davidmoten.odata.client.ActionRequestNoReturn post()
-
postAndSend
public com.github.davidmoten.odata.client.ActionRequestNoReturn postAndSend()
-
-