Interface ModifiedBy

All Known Implementing Classes:
ModifiedByImpl

public 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()
             .id("{id}")
             .type("{type}")
             .isPlatformClient(true)
             .build()
 
  • Method Details

    • getId

      @NotNull @NotNull String getId()

      ID of the Merchant Center user who made the change.

      Present only if the change was made in the Merchant Center.

      Returns:
      id
    • getType

      @NotNull @NotNull String 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".
      Returns:
      type
    • getCustomer

      @Valid @Valid Reference getCustomer()

      Reference to the Customer who made the change.

      Present only if the change was made using a token from the password flow.

      Returns:
      customer
    • getAnonymousId

      Present only if the change was made using a token from an anonymous session.

      Returns:
      anonymousId
    • getClientId

      ID of the API Client that made the change.

      Present only if the change was made using an API Client.

      Returns:
      clientId
    • getIsPlatformClient

      @NotNull @NotNull Boolean getIsPlatformClient()

      true if the change was made using the Merchant Center or ImpEx.

      Returns:
      isPlatformClient
    • setId

      void setId(String id)

      ID of the Merchant Center user who made the change.

      Present only if the change was made in the Merchant Center.

      Parameters:
      id - value to be set
    • setType

      void setType(String type)

      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".
      Parameters:
      type - value to be set
    • setCustomer

      void setCustomer(Reference customer)

      Reference to 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
    • setAnonymousId

      void setAnonymousId(String anonymousId)

      Present only if the change was made using a token from an anonymous session.

      Parameters:
      anonymousId - value to be set
    • setClientId

      void setClientId(String clientId)

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

      void setIsPlatformClient(Boolean isPlatformClient)

      true if the change was made using the Merchant Center or ImpEx.

      Parameters:
      isPlatformClient - value to be set
    • of

      static ModifiedBy of()
      factory method
      Returns:
      instance of ModifiedBy
    • of

      static ModifiedBy of(ModifiedBy template)
      factory method to create a shallow copy ModifiedBy
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • 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

      default <T> T withModifiedBy(Function<ModifiedBy,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<ModifiedBy> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference