public class SalesInvoice 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 |
SalesInvoice.Builder |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
SalesInvoice() |
protected String number
protected String externalDocumentNumber
protected LocalDate invoiceDate
protected LocalDate dueDate
protected String customerPurchaseOrderReference
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 String orderId
protected String orderNumber
protected String paymentTermsId
protected String shipmentMethodId
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 phoneNumber
protected String email
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static SalesInvoice.Builder builderSalesInvoice()
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 SalesInvoice withNumber(String number)
public SalesInvoice withExternalDocumentNumber(String externalDocumentNumber)
public SalesInvoice withInvoiceDate(LocalDate invoiceDate)
public SalesInvoice withDueDate(LocalDate dueDate)
public SalesInvoice withCustomerPurchaseOrderReference(String customerPurchaseOrderReference)
public SalesInvoice withCustomerId(String customerId)
public SalesInvoice withCustomerNumber(String customerNumber)
public SalesInvoice withCustomerName(String customerName)
public SalesInvoice withBillToName(String billToName)
public SalesInvoice withBillToCustomerId(String billToCustomerId)
public SalesInvoice withBillToCustomerNumber(String billToCustomerNumber)
public SalesInvoice withShipToName(String shipToName)
public SalesInvoice withShipToContact(String shipToContact)
public Optional<PostalAddressType> getSellingPostalAddress()
public SalesInvoice withSellingPostalAddress(PostalAddressType sellingPostalAddress)
public Optional<PostalAddressType> getBillingPostalAddress()
public SalesInvoice withBillingPostalAddress(PostalAddressType billingPostalAddress)
public Optional<PostalAddressType> getShippingPostalAddress()
public SalesInvoice withShippingPostalAddress(PostalAddressType shippingPostalAddress)
public SalesInvoice withCurrencyId(String currencyId)
public SalesInvoice withCurrencyCode(String currencyCode)
public SalesInvoice withOrderId(String orderId)
public SalesInvoice withOrderNumber(String orderNumber)
public SalesInvoice withPaymentTermsId(String paymentTermsId)
public SalesInvoice withShipmentMethodId(String shipmentMethodId)
public SalesInvoice withSalesperson(String salesperson)
public SalesInvoice withPricesIncludeTax(Boolean pricesIncludeTax)
public Optional<BigDecimal> getDiscountAmount()
public SalesInvoice withDiscountAmount(BigDecimal discountAmount)
public SalesInvoice withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
public Optional<BigDecimal> getTotalAmountExcludingTax()
public SalesInvoice withTotalAmountExcludingTax(BigDecimal totalAmountExcludingTax)
public Optional<BigDecimal> getTotalTaxAmount()
public SalesInvoice withTotalTaxAmount(BigDecimal totalTaxAmount)
public Optional<BigDecimal> getTotalAmountIncludingTax()
public SalesInvoice withTotalAmountIncludingTax(BigDecimal totalAmountIncludingTax)
public SalesInvoice withStatus(String status)
public Optional<OffsetDateTime> getLastModifiedDateTime()
public SalesInvoice withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
public SalesInvoice withPhoneNumber(String phoneNumber)
public SalesInvoice withEmail(String email)
public SalesInvoiceLineCollectionRequest getSalesInvoiceLines()
public CustomerRequest getCustomer()
public CurrencyRequest getCurrency()
public PaymentTermRequest getPaymentTerm()
public ShipmentMethodRequest getShipmentMethod()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic SalesInvoice patch()
this with changed fields reset.public SalesInvoice put()
this
with changed fields reset (they were ignored anyway).public com.github.davidmoten.odata.client.ActionRequestNoReturn cancelAndSend()
public com.github.davidmoten.odata.client.ActionRequestNoReturn cancel()
public com.github.davidmoten.odata.client.ActionRequestNoReturn postAndSend()
public com.github.davidmoten.odata.client.ActionRequestNoReturn post()
public com.github.davidmoten.odata.client.ActionRequestNoReturn send()
Copyright © 2018–2020. All rights reserved.