HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulestripeapi-3.0.0.0Haskell2010

StripeAPI.Types.Discount

Contains the types generated from the schema Discount

  • 3 types
  • 1 value
datadata Discount
#

Defines the object schema located at components.schemas.discount in the specification.

A discount represents the actual application of a coupon or promotion code. It contains information about when the discount began, when it will end, and what it is applied to.

Related guide: Applying Discounts to Subscriptions.

Constructors

Instances4Eq, Show, FromJSON, ToJSON
  • Eq DiscountDefined in stripeapi-3.0.0.0 · StripeAPI.Types.Discount
  • Show DiscountDefined in stripeapi-3.0.0.0 · StripeAPI.Types.Discount
  • FromJSON DiscountDefined in stripeapi-3.0.0.0 · StripeAPI.Types.Discount
  • ToJSON DiscountDefined in stripeapi-3.0.0.0 · StripeAPI.Types.Discount

Defines the oneOf schema located at components.schemas.discount.properties.customer.anyOf in the specification.

The ID of the customer associated with this discount.

Instances4Eq, Show, FromJSON, ToJSON

Defines the oneOf schema located at components.schemas.discount.properties.promotion_code.anyOf in the specification.

The promotion code applied to create this discount.

Instances4Eq, Show, FromJSON, ToJSON