Interface ChangeValueGiftLineItemChangeValue

All Superinterfaces:
ChangeValueChangeValue

public interface ChangeValueGiftLineItemChangeValue extends ChangeValueChangeValue
ChangeValueGiftLineItemChangeValue
Example to create an instance using the builder pattern

     ChangeValueGiftLineItemChangeValue changeValueGiftLineItemChangeValue = ChangeValueGiftLineItemChangeValue.builder()
             .product(productBuilder -> productBuilder)
             .variantId(1)
             .distributionChannel(distributionChannelBuilder -> distributionChannelBuilder)
             .build()
 
  • Field Details

    • GIFT_LINE_ITEM

      static final String GIFT_LINE_ITEM
      discriminator value for ChangeValueGiftLineItemChangeValue
      See Also:
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Specified by:
      getType in interface ChangeValueChangeValue
      Returns:
      type
    • getProduct

      @NotNull @Valid @NotNull @Valid Reference getProduct()

      Reference to a Product.

      Returns:
      product
    • getVariantId

      @NotNull @NotNull Integer getVariantId()

      id of the ProductVariant.

      Returns:
      variantId
    • getSupplyChannel

      @Valid @Valid Reference getSupplyChannel()

      Channel with ChannelRoleEnum InventorySupply.

      Returns:
      supplyChannel
    • getDistributionChannel

      @NotNull @Valid @NotNull @Valid Reference getDistributionChannel()

      Channel with ChannelRoleEnum ProductDistribution.

      Returns:
      distributionChannel
    • setProduct

      void setProduct(Reference product)

      Reference to a Product.

      Parameters:
      product - value to be set
    • setVariantId

      void setVariantId(Integer variantId)

      id of the ProductVariant.

      Parameters:
      variantId - value to be set
    • setSupplyChannel

      void setSupplyChannel(Reference supplyChannel)

      Channel with ChannelRoleEnum InventorySupply.

      Parameters:
      supplyChannel - value to be set
    • setDistributionChannel

      void setDistributionChannel(Reference distributionChannel)

      Channel with ChannelRoleEnum ProductDistribution.

      Parameters:
      distributionChannel - value to be set
    • of

      factory method
      Returns:
      instance of ChangeValueGiftLineItemChangeValue
    • of

      factory method to create a shallow copy ChangeValueGiftLineItemChangeValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of ChangeValueGiftLineItemChangeValue
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for ChangeValueGiftLineItemChangeValue
      Returns:
      builder
    • builder

      create builder for ChangeValueGiftLineItemChangeValue instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withChangeValueGiftLineItemChangeValue

      default <T> T withChangeValueGiftLineItemChangeValue(Function<ChangeValueGiftLineItemChangeValue,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<ChangeValueGiftLineItemChangeValue> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference