You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
DiscountCode
With discount codes it is possible to give specific cart discounts to an eligible amount of users. They are defined by a string value which can be added to a cart so that specific cart discounts can be applied to the cart.
export type DiscountCode = Versioned & {
__typename?: 'DiscountCode';
code: Scalars['String'];
isActive: Scalars['Boolean'];
maxApplications?: Maybe<Scalars['Long']>;
maxApplicationsPerCustomer?: Maybe<Scalars['Long']>;
cartPredicate?: Maybe<Scalars['String']>;
applicationVersion?: Maybe<Scalars['Long']>;
validFrom?: Maybe<Scalars['DateTime']>;
validUntil?: Maybe<Scalars['DateTime']>;
groups: Array<Scalars['String']>;
name?: Maybe<Scalars['String']>;
description?: Maybe<Scalars['String']>;
cartDiscounts: Array<CartDiscount>;
referenceRefs: Array<Reference>;
nameAllLocales?: Maybe<Array<LocalizedString>>;
descriptionAllLocales?: Maybe<Array<LocalizedString>>;
custom?: Maybe<CustomFieldsType>;
applicationCount: Scalars['Long'];
cartDiscountRefs: Array<Reference>;
id: Scalars['String'];
version: Scalars['Long'];
createdAt: Scalars['DateTime'];
lastModifiedAt: Scalars['DateTime'];
createdBy?: Maybe<Initiator>;
lastModifiedBy?: Maybe<Initiator>;
};