Interface DiscountCodeImportRequest

All Superinterfaces:
ImportRequest

public interface DiscountCodeImportRequest extends ImportRequest

The request body to import Discount Codes. Contains data for Discount Codes to be created or updated in a Project.


Example to create an instance using the builder pattern

     DiscountCodeImportRequest discountCodeImportRequest = DiscountCodeImportRequest.builder()
             .plusResources(resourcesBuilder -> resourcesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getResources

      @NotNull @Valid @NotNull @Valid List<DiscountCodeImport> getResources()

      The Discount Code import resources of this request.

      Returns:
      resources
    • setResources

      void setResources(DiscountCodeImport... resources)

      The Discount Code import resources of this request.

      Parameters:
      resources - values to be set
    • setResources

      void setResources(List<DiscountCodeImport> resources)

      The Discount Code import resources of this request.

      Parameters:
      resources - values to be set
    • of

      factory method
      Returns:
      instance of DiscountCodeImportRequest
    • of

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

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

      builder factory method for DiscountCodeImportRequest
      Returns:
      builder
    • builder

      create builder for DiscountCodeImportRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withDiscountCodeImportRequest

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