Package odata.msgraph.client.beta.entity
Class Customer
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.Customer
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class Customer extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = true
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = true
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCustomer.Builder
-
Field Summary
Fields Modifier and Type Field Description protected PostalAddressTypeaddressprotected Stringblockedprotected StringcurrencyCodeprotected UUIDcurrencyIdprotected StringdisplayNameprotected Stringemailprotected OffsetDateTimelastModifiedDateTimeprotected Stringnumberprotected UUIDpaymentMethodIdprotected UUIDpaymentTermsIdprotected StringphoneNumberprotected UUIDshipmentMethodIdprotected StringtaxAreaDisplayNameprotected UUIDtaxAreaIdprotected BooleantaxLiableprotected StringtaxRegistrationNumberprotected Stringtypeprotected Stringwebsite-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCustomer()
-
Method Summary
-
-
-
Field Detail
-
address
protected PostalAddressType address
-
blocked
protected String blocked
-
currencyCode
protected String currencyCode
-
currencyId
protected UUID currencyId
-
displayName
protected String displayName
-
email
protected String email
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
number
protected String number
-
paymentMethodId
protected UUID paymentMethodId
-
paymentTermsId
protected UUID paymentTermsId
-
phoneNumber
protected String phoneNumber
-
shipmentMethodId
protected UUID shipmentMethodId
-
taxAreaDisplayName
protected String taxAreaDisplayName
-
taxAreaId
protected UUID taxAreaId
-
taxLiable
protected Boolean taxLiable
-
taxRegistrationNumber
protected String taxRegistrationNumber
-
type
protected String type
-
website
protected String website
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderCustomer
public static Customer.Builder builderCustomer()
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
-
getAddress
public Optional<PostalAddressType> getAddress()
-
withAddress
public Customer withAddress(PostalAddressType address)
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
-
withLastModifiedDateTime
public Customer withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
-
withUnmappedField
public Customer withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getCurrency
public CurrencyRequest getCurrency()
-
getPaymentMethod
public PaymentMethodRequest getPaymentMethod()
-
getPaymentTerm
public PaymentTermRequest getPaymentTerm()
-
getPicture
public PictureCollectionRequest getPicture()
-
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 Customer patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public Customer put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-