import { ShopifyCartDiscountCode } from '@daffodil/driver/shopify'
A discount code applied to a Cart. Discount codes are case-insensitive and can be added using the cartDiscountCodesUpdate mutation.
The applicable field indicates whether the code applies to the cart's current contents, which might change as items are added or removed.
interface ShopifyCartDiscountCode {
__typename: "CartDiscountCode"
applicable: boolean
code: string
}
__typename "CartDiscountCode" |
|---|
applicable boolean |
|---|
Whether the discount code is applicable to the cart's current contents. |
code string |
|---|
The code for the discount. |