Defines the object schema located at components.schemas.promotion_code in the specification.
A Promotion Code represents a customer-redeemable code for a coupon. It can be used to create multiple codes for a single coupon.
Constructors
PromotionCodepromotionCodeActive :: Boolactive: Whether the promotion code is currently active. A promotion code is only active if the coupon is also valid.
promotionCodeCode :: Textcode: The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer.
Constraints:
Maximum length of 5000
promotionCodeCoupon :: Couponcoupon: A coupon contains information about a percent-off or amount-off discount you might want to apply to a customer. Coupons may be applied to subscriptions, invoices, checkout sessions, quotes, and more. Coupons do not work with conventional one-off charges or payment intents.
promotionCodeCreated :: Intcreated: Time at which the object was created. Measured in seconds since the Unix epoch.
promotionCodeCustomer :: Maybe (Nullable PromotionCodeCustomer'NonNullableVariants)customer: The customer that this promotion code can be used by.
promotionCodeExpiresAt :: Maybe (Nullable Int)expires_at: Date at which the promotion code can no longer be redeemed.
promotionCodeId :: Textid: Unique identifier for the object.
Constraints:
Maximum length of 5000
promotionCodeLivemode :: Boollivemode: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
promotionCodeMaxRedemptions :: Maybe (Nullable Int)max_redemptions: Maximum number of times this promotion code can be redeemed.
promotionCodeMetadata :: Maybe (Nullable Object)metadata: Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
promotionCodeRestrictions :: PromotionCodesResourceRestrictionsrestrictions:
promotionCodeTimesRedeemed :: Inttimes_redeemed: Number of times this promotion code has been used.
Instances4Eq, Show, FromJSON, ToJSON
Eq PromotionCodeDefined in stripeapi-3.0.0.0 · StripeAPI.Types.PromotionCodeShow PromotionCodeDefined in stripeapi-3.0.0.0 · StripeAPI.Types.PromotionCodeFromJSON PromotionCodeDefined in stripeapi-3.0.0.0 · StripeAPI.Types.PromotionCodeToJSON PromotionCodeDefined in stripeapi-3.0.0.0 · StripeAPI.Types.PromotionCode