Package odata.msgraph.client.beta.entity
Class SalesCreditMemo
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.SalesCreditMemo
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SalesCreditMemo 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 classSalesCreditMemo.Builder
-
Field Summary
Fields Modifier and Type Field Description protected PostalAddressTypebillingPostalAddressprotected UUIDbillToCustomerIdprotected StringbillToCustomerNumberprotected StringbillToNameprotected LocalDatecreditMemoDateprotected StringcurrencyCodeprotected UUIDcurrencyIdprotected UUIDcustomerIdprotected StringcustomerNameprotected StringcustomerNumberprotected BigDecimaldiscountAmountprotected BooleandiscountAppliedBeforeTaxprotected LocalDatedueDateprotected Stringemailprotected StringexternalDocumentNumberprotected UUIDinvoiceIdprotected StringinvoiceNumberprotected OffsetDateTimelastModifiedDateTimeprotected Stringnumberprotected UUIDpaymentTermsIdprotected StringphoneNumberprotected BooleanpricesIncludeTaxprotected Stringsalespersonprotected PostalAddressTypesellingPostalAddressprotected Stringstatusprotected BigDecimaltotalAmountExcludingTaxprotected BigDecimaltotalAmountIncludingTaxprotected BigDecimaltotalTaxAmount-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSalesCreditMemo()
-
Method Summary
-
-
-
Field Detail
-
billingPostalAddress
protected PostalAddressType billingPostalAddress
-
billToCustomerId
protected UUID billToCustomerId
-
billToCustomerNumber
protected String billToCustomerNumber
-
billToName
protected String billToName
-
creditMemoDate
protected LocalDate creditMemoDate
-
currencyCode
protected String currencyCode
-
currencyId
protected UUID currencyId
-
customerId
protected UUID customerId
-
customerName
protected String customerName
-
customerNumber
protected String customerNumber
-
discountAmount
protected BigDecimal discountAmount
-
discountAppliedBeforeTax
protected Boolean discountAppliedBeforeTax
-
dueDate
protected LocalDate dueDate
-
email
protected String email
-
externalDocumentNumber
protected String externalDocumentNumber
-
invoiceId
protected UUID invoiceId
-
invoiceNumber
protected String invoiceNumber
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
number
protected String number
-
paymentTermsId
protected UUID paymentTermsId
-
phoneNumber
protected String phoneNumber
-
pricesIncludeTax
protected Boolean pricesIncludeTax
-
salesperson
protected String salesperson
-
sellingPostalAddress
protected PostalAddressType sellingPostalAddress
-
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
-
builderSalesCreditMemo
public static SalesCreditMemo.Builder builderSalesCreditMemo()
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 SalesCreditMemo withBillingPostalAddress(PostalAddressType billingPostalAddress)
-
withBillToCustomerId
public SalesCreditMemo withBillToCustomerId(UUID billToCustomerId)
-
withBillToCustomerNumber
public SalesCreditMemo withBillToCustomerNumber(String billToCustomerNumber)
-
withBillToName
public SalesCreditMemo withBillToName(String billToName)
-
withCreditMemoDate
public SalesCreditMemo withCreditMemoDate(LocalDate creditMemoDate)
-
withCurrencyCode
public SalesCreditMemo withCurrencyCode(String currencyCode)
-
withCurrencyId
public SalesCreditMemo withCurrencyId(UUID currencyId)
-
withCustomerId
public SalesCreditMemo withCustomerId(UUID customerId)
-
withCustomerName
public SalesCreditMemo withCustomerName(String customerName)
-
withCustomerNumber
public SalesCreditMemo withCustomerNumber(String customerNumber)
-
getDiscountAmount
public Optional<BigDecimal> getDiscountAmount()
-
withDiscountAmount
public SalesCreditMemo withDiscountAmount(BigDecimal discountAmount)
-
withDiscountAppliedBeforeTax
public SalesCreditMemo withDiscountAppliedBeforeTax(Boolean discountAppliedBeforeTax)
-
withDueDate
public SalesCreditMemo withDueDate(LocalDate dueDate)
-
withEmail
public SalesCreditMemo withEmail(String email)
-
withExternalDocumentNumber
public SalesCreditMemo withExternalDocumentNumber(String externalDocumentNumber)
-
withInvoiceId
public SalesCreditMemo withInvoiceId(UUID invoiceId)
-
withInvoiceNumber
public SalesCreditMemo withInvoiceNumber(String invoiceNumber)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public SalesCreditMemo withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withNumber
public SalesCreditMemo withNumber(String number)
-
withPaymentTermsId
public SalesCreditMemo withPaymentTermsId(UUID paymentTermsId)
-
withPhoneNumber
public SalesCreditMemo withPhoneNumber(String phoneNumber)
-
withPricesIncludeTax
public SalesCreditMemo withPricesIncludeTax(Boolean pricesIncludeTax)
-
withSalesperson
public SalesCreditMemo withSalesperson(String salesperson)
-
getSellingPostalAddress
public Optional<PostalAddressType> getSellingPostalAddress()
-
withSellingPostalAddress
public SalesCreditMemo withSellingPostalAddress(PostalAddressType sellingPostalAddress)
-
withStatus
public SalesCreditMemo withStatus(String status)
-
getTotalAmountExcludingTax
public Optional<BigDecimal> getTotalAmountExcludingTax()
-
withTotalAmountExcludingTax
public SalesCreditMemo withTotalAmountExcludingTax(BigDecimal totalAmountExcludingTax)
-
getTotalAmountIncludingTax
public Optional<BigDecimal> getTotalAmountIncludingTax()
-
withTotalAmountIncludingTax
public SalesCreditMemo withTotalAmountIncludingTax(BigDecimal totalAmountIncludingTax)
-
getTotalTaxAmount
public Optional<BigDecimal> getTotalTaxAmount()
-
withTotalTaxAmount
public SalesCreditMemo withTotalTaxAmount(BigDecimal totalTaxAmount)
-
withUnmappedField
public SalesCreditMemo withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCurrency
public CurrencyRequest getCurrency()
-
getCustomer
public CustomerRequest getCustomer()
-
getPaymentTerm
public PaymentTermRequest getPaymentTerm()
-
getSalesCreditMemoLines
public SalesCreditMemoLineCollectionRequest getSalesCreditMemoLines()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public SalesCreditMemo patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SalesCreditMemo put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-