Discount Codes

{
  discountCode: "SPRING10OFF",
  error: "",
  hasDiscount: true,
  loading: false,
  status: "resolved",
}

Properties

string

The discount code.

string

Indicates the error if there is any.

boolean

Indicates whether a discount code has been applied.

boolean

Indicates the discount code is being loaded.

string

Indicates the status of applying the discount code. It can be idle, pending, resolved or rejected