public class PaymentMethod extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
Org.OData.Capabilities.V1.UpdateRestrictions
Updatable = true
Org.OData.Capabilities.V1.InsertRestrictions
Insertable = true
Org.OData.Capabilities.V1.DeleteRestrictions
Deletable = true
| Modifier and Type | Class and Description |
|---|---|
static class |
PaymentMethod.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
code |
protected String |
displayName |
protected OffsetDateTime |
lastModifiedDateTime |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
PaymentMethod() |
| Modifier and Type | Method and Description |
|---|---|
static PaymentMethod.Builder |
builderPaymentMethod()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getCode() |
Optional<String> |
getDisplayName() |
Optional<OffsetDateTime> |
getLastModifiedDateTime() |
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
PaymentMethod |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
PaymentMethod |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
PaymentMethod |
withCode(String code) |
PaymentMethod |
withDisplayName(String displayName) |
PaymentMethod |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime) |
protected String code
protected String displayName
protected OffsetDateTime lastModifiedDateTime
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static PaymentMethod.Builder builderPaymentMethod()
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 PaymentMethod withCode(String code)
public PaymentMethod withDisplayName(String displayName)
public Optional<OffsetDateTime> getLastModifiedDateTime()
public PaymentMethod withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic PaymentMethod patch()
this with changed fields reset.public PaymentMethod put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.