Class 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

    • Field Detail

      • 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
      • email

        protected String email
      • externalDocumentNumber

        protected String externalDocumentNumber
      • invoiceDate

        protected LocalDate invoiceDate
      • 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
      • shipmentMethodId

        protected UUID shipmentMethodId
      • shipToContact

        protected String shipToContact
      • shipToName

        protected String shipToName
      • status

        protected String status
      • totalAmountExcludingTax

        protected BigDecimal totalAmountExcludingTax
      • totalAmountIncludingTax

        protected BigDecimal totalAmountIncludingTax
      • totalTaxAmount

        protected BigDecimal totalTaxAmount
    • Constructor Detail

      • SalesInvoice

        protected SalesInvoice()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getBillToCustomerId

        public Optional<UUID> getBillToCustomerId()
      • withBillToCustomerId

        public SalesInvoice withBillToCustomerId​(UUID billToCustomerId)
      • getBillToCustomerNumber

        public Optional<String> getBillToCustomerNumber()
      • withBillToCustomerNumber

        public SalesInvoice withBillToCustomerNumber​(String billToCustomerNumber)
      • getCustomerPurchaseOrderReference

        public Optional<String> getCustomerPurchaseOrderReference()
      • withCustomerPurchaseOrderReference

        public SalesInvoice withCustomerPurchaseOrderReference​(String customerPurchaseOrderReference)
      • getDiscountAppliedBeforeTax

        public Optional<Boolean> getDiscountAppliedBeforeTax()
      • withDiscountAppliedBeforeTax

        public SalesInvoice withDiscountAppliedBeforeTax​(Boolean discountAppliedBeforeTax)
      • getExternalDocumentNumber

        public Optional<String> getExternalDocumentNumber()
      • withExternalDocumentNumber

        public SalesInvoice withExternalDocumentNumber​(String externalDocumentNumber)
      • getPaymentTermsId

        public Optional<UUID> getPaymentTermsId()
      • withPaymentTermsId

        public SalesInvoice withPaymentTermsId​(UUID paymentTermsId)
      • withPricesIncludeTax

        public SalesInvoice withPricesIncludeTax​(Boolean pricesIncludeTax)
      • getShipmentMethodId

        public Optional<UUID> getShipmentMethodId()
      • withShipmentMethodId

        public SalesInvoice withShipmentMethodId​(UUID shipmentMethodId)
      • withTotalAmountExcludingTax

        public SalesInvoice withTotalAmountExcludingTax​(BigDecimal totalAmountExcludingTax)
      • withTotalAmountIncludingTax

        public SalesInvoice withTotalAmountIncludingTax​(BigDecimal totalAmountIncludingTax)
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public SalesInvoice patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public SalesInvoice put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • 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()