Interface ModifiedBy
Information about the user or API Client who performed the change. This is a variant of LastModifiedBy.
Example to create an instance using the builder pattern
ModifiedBy modifiedBy = ModifiedBy.builder()
.isPlatformClient(true)
.type("{type}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModifiedByBuilderbuilder()builder factory method for ModifiedBystatic ModifiedByBuilderbuilder(ModifiedBy template) create builder for ModifiedBy instancecopyDeep()static ModifiedBydeepCopy(ModifiedBy template) factory method to create a deep copy of ModifiedByPresent only if the change was made using a token from an anonymous session.@Valid ReferenceThe Associate who made the change in the context of a Business Unit.ID of the API Client that made the change.@Valid ReferenceThe Customer who made the change.getId()ID of the Merchant Center user who made the change.@NotNull Booleantrueif the change was made using the Merchant Center.@NotNull StringgetType()Indicates who performed the change.static ModifiedByof()factory methodstatic ModifiedByof(ModifiedBy template) factory method to create a shallow copy ModifiedByvoidsetAnonymousId(String anonymousId) Present only if the change was made using a token from an anonymous session.voidsetAssociate(Reference associate) The Associate who made the change in the context of a Business Unit.voidsetClientId(String clientId) ID of the API Client that made the change.voidsetCustomer(Reference customer) The Customer who made the change.voidID of the Merchant Center user who made the change.voidsetIsPlatformClient(Boolean isPlatformClient) trueif the change was made using the Merchant Center.voidIndicates who performed the change.static com.fasterxml.jackson.core.type.TypeReference<ModifiedBy>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithModifiedBy(Function<ModifiedBy, T> helper) accessor map function
-
Method Details
-
getIsPlatformClient
trueif the change was made using the Merchant Center.- Returns:
- isPlatformClient
-
getId
String getId()ID of the Merchant Center user who made the change.
Present only if
isPlatformClientistrue.- Returns:
- id
-
getType
Indicates who performed the change.
- If the change was made by a user, the value is
"user". - If the change was made by an API Client with or without an external user ID, the value is
"external-user". - If the change was made by an Associate, the value is
"associate".
- Returns:
- type
- If the change was made by a user, the value is
-
getClientId
String getClientId()ID of the API Client that made the change.
Present only if the change was made using an API Client.
- Returns:
- clientId
-
getAnonymousId
String getAnonymousId()Present only if the change was made using a token from an anonymous session.
- Returns:
- anonymousId
-
getCustomer
The Customer who made the change.
Present only if the change was made using a token from the password flow.
- Returns:
- customer
-
getAssociate
The Associate who made the change in the context of a Business Unit. Only available for B2B-enabled Projects when an Associate acts on behalf of a company using the associate endpoints.
- Returns:
- associate
-
setIsPlatformClient
trueif the change was made using the Merchant Center.- Parameters:
isPlatformClient- value to be set
-
setId
ID of the Merchant Center user who made the change.
Present only if
isPlatformClientistrue.- Parameters:
id- value to be set
-
setType
Indicates who performed the change.
- If the change was made by a user, the value is
"user". - If the change was made by an API Client with or without an external user ID, the value is
"external-user". - If the change was made by an Associate, the value is
"associate".
- Parameters:
type- value to be set
- If the change was made by a user, the value is
-
setClientId
ID of the API Client that made the change.
Present only if the change was made using an API Client.
- Parameters:
clientId- value to be set
-
setAnonymousId
Present only if the change was made using a token from an anonymous session.
- Parameters:
anonymousId- value to be set
-
setCustomer
The Customer who made the change.
Present only if the change was made using a token from the password flow.
- Parameters:
customer- value to be set
-
setAssociate
The Associate who made the change in the context of a Business Unit. Only available for B2B-enabled Projects when an Associate acts on behalf of a company using the associate endpoints.
- Parameters:
associate- value to be set
-
of
factory method- Returns:
- instance of ModifiedBy
-
of
factory method to create a shallow copy ModifiedBy- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
ModifiedBy copyDeep() -
deepCopy
factory method to create a deep copy of ModifiedBy- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ModifiedBy- Returns:
- builder
-
builder
create builder for ModifiedBy instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withModifiedBy
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-