HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulestripeapi-3.0.0.0Haskell2010

StripeAPI.Types.Discount

Contains the types generated from the schema Discount

Synopsis
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