Interface DiscountCodeSetValidFromAndUntilAction

All Superinterfaces:
DiscountCodeUpdateAction, ResourceUpdateAction<DiscountCodeUpdateAction>

public interface DiscountCodeSetValidFromAndUntilAction extends DiscountCodeUpdateAction
DiscountCodeSetValidFromAndUntilAction
Example to create an instance using the builder pattern

     DiscountCodeSetValidFromAndUntilAction discountCodeSetValidFromAndUntilAction = DiscountCodeSetValidFromAndUntilAction.builder()
             .build()
 
  • Field Details

    • SET_VALID_FROM_AND_UNTIL

      static final String SET_VALID_FROM_AND_UNTIL
      discriminator value for DiscountCodeSetValidFromAndUntilAction
      See Also:
  • Method Details

    • getValidFrom

      ZonedDateTime getValidFrom()

      Value to set that must be earlier than validUntil. If empty, any existing value will be removed.

      Returns:
      validFrom
    • getValidUntil

      ZonedDateTime getValidUntil()

      Value to set that must be later than validFrom. If empty, any existing value will be removed.

      Returns:
      validUntil
    • setValidFrom

      void setValidFrom(ZonedDateTime validFrom)

      Value to set that must be earlier than validUntil. If empty, any existing value will be removed.

      Parameters:
      validFrom - value to be set
    • setValidUntil

      void setValidUntil(ZonedDateTime validUntil)

      Value to set that must be later than validFrom. If empty, any existing value will be removed.

      Parameters:
      validUntil - value to be set
    • of

      factory method
      Returns:
      instance of DiscountCodeSetValidFromAndUntilAction
    • of

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

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

      builder factory method for DiscountCodeSetValidFromAndUntilAction
      Returns:
      builder
    • builder

      create builder for DiscountCodeSetValidFromAndUntilAction instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDiscountCodeSetValidFromAndUntilAction

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