Type alias CreateCouponInput

CreateCouponInput: { additionalMetaData?: InputMaybe<Scalars["JSON"]>; amountsOff?: InputMaybe<MoneyInputDto[]>; description?: InputMaybe<Scalars["String"]>; discountValue?: InputMaybe<Scalars["Float"]>; durationInMonths?: InputMaybe<Scalars["Float"]>; environmentId?: InputMaybe<Scalars["String"]>; name: Scalars["String"]; percentOff?: InputMaybe<Scalars["Float"]>; refId: Scalars["String"]; type?: InputMaybe<CouponType> }

Create a new coupon input

Type declaration

  • Optional additionalMetaData?: InputMaybe<Scalars["JSON"]>

    Metadata associated with the entity

  • Optional amountsOff?: InputMaybe<MoneyInputDto[]>

    Fixed amount discounts in different currencies

  • Optional description?: InputMaybe<Scalars["String"]>

    Description of the coupon

  • Optional discountValue?: InputMaybe<Scalars["Float"]>

    Discount value of the coupon (deprecated)

  • Optional durationInMonths?: InputMaybe<Scalars["Float"]>

    Duration of the coupon validity in months

  • Optional environmentId?: InputMaybe<Scalars["String"]>

    The unique identifier for the environment

  • name: Scalars["String"]

    Name of the coupon

  • Optional percentOff?: InputMaybe<Scalars["Float"]>

    Percentage discount off the original price

  • refId: Scalars["String"]

    The unique identifier for the entity

  • Optional type?: InputMaybe<CouponType>

    Type of the coupon (percentage or fixed amount)