Class AddTextLineItemWithAddedAt

  • All Implemented Interfaces:
    io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList>, io.sphere.sdk.types.CustomDraft

    public final class AddTextLineItemWithAddedAt
    extends io.sphere.sdk.commands.UpdateActionImpl<io.sphere.sdk.shoppinglists.ShoppingList>
    implements io.sphere.sdk.types.CustomDraft
    TODO (JVM-SDK): https://github.com/commercetools/commercetools-jvm-sdk/issues/2079 ShoppingList#AddTextLineItem action does not support `addedAt` value, so we needed to add this custom action as a workaround.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.time.ZonedDateTime getAddedAt()  
      io.sphere.sdk.types.CustomFieldsDraft getCustom()  
      io.sphere.sdk.models.LocalizedString getDescription()  
      io.sphere.sdk.models.LocalizedString getName()  
      java.lang.Long getQuantity()  
      static io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList> of​(io.sphere.sdk.shoppinglists.TextLineItemDraft textLineItemDraft)
      Creates an update action "addTextLineItem" which adds a text line item to a shopping list.
      • Methods inherited from class io.sphere.sdk.commands.UpdateActionImpl

        getAction
      • Methods inherited from class io.sphere.sdk.models.Base

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • of

        @Nonnull
        public static io.sphere.sdk.commands.UpdateAction<io.sphere.sdk.shoppinglists.ShoppingList> of​(@Nonnull
                                                                                                       io.sphere.sdk.shoppinglists.TextLineItemDraft textLineItemDraft)
        Creates an update action "addTextLineItem" which adds a text line item to a shopping list.
        Parameters:
        textLineItemDraft - text line item draft template to map update action's fields.
        Returns:
        an update action "addTextLineItem" which adds a text line item to a shopping list.
      • getName

        @Nonnull
        public io.sphere.sdk.models.LocalizedString getName()
      • getDescription

        @Nullable
        public io.sphere.sdk.models.LocalizedString getDescription()
      • getQuantity

        @Nullable
        public java.lang.Long getQuantity()
      • getAddedAt

        @Nullable
        public java.time.ZonedDateTime getAddedAt()
      • getCustom

        @Nullable
        public io.sphere.sdk.types.CustomFieldsDraft getCustom()
        Specified by:
        getCustom in interface io.sphere.sdk.types.CustomDraft