/** * Klaviyo API * The Klaviyo REST API. Please visit https://developers.klaviyo.com for more details. * * Contact: developers@klaviyo.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { RequestFile } from './models'; export class CouponCodeResponseObjectResourceAttributes { /** * This is a unique string that will be or is assigned to each customer/profile and is associated with a coupon. */ 'uniqueCode'?: string | null; /** * The datetime when this coupon code will expire. If not specified or set to null, it will be automatically set to 1 year. */ 'expiresAt'?: Date | null; /** * The current status of the coupon code. */ 'status'?: CouponCodeResponseObjectResourceAttributes.StatusEnum | 'ASSIGNED_TO_PROFILE' | 'DELETING' | 'PROCESSING' | 'UNASSIGNED' | 'USED' | 'VERSION_NOT_ACTIVE' | null; static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ { "name": "uniqueCode", "baseName": "unique_code", "type": "string" }, { "name": "expiresAt", "baseName": "expires_at", "type": "Date" }, { "name": "status", "baseName": "status", "type": "CouponCodeResponseObjectResourceAttributes.StatusEnum" } ]; static getAttributeTypeMap() { return CouponCodeResponseObjectResourceAttributes.attributeTypeMap; } } export namespace CouponCodeResponseObjectResourceAttributes { export enum StatusEnum { AssignedToProfile = 'ASSIGNED_TO_PROFILE', Deleting = 'DELETING', Processing = 'PROCESSING', Unassigned = 'UNASSIGNED', Used = 'USED', VersionNotActive = 'VERSION_NOT_ACTIVE' } }