PolarExpress.Schemas.DiscountPercentageOnceForeverDuration
(polar_express v0.2.2)
Copy Markdown
View Source
DiscountPercentageOnceForeverDuration
Schema for a percentage discount that is applied once or forever.
Summary
Types
@type t() :: %PolarExpress.Schemas.DiscountPercentageOnceForeverDuration{ basis_points: term(), code: term(), created_at: term(), duration: term(), ends_at: term(), id: term(), max_redemptions: term(), metadata: term(), modified_at: term(), name: term(), organization_id: term(), products: term(), redemptions_count: term(), starts_at: term(), type: term() }
basis_points- Discount percentage in basis points. A basis point is 1/100th of a percent. For example, 1000 basis points equals a 10% discount.code- Code customers can use to apply the discount during checkout. Nullable.created_at- Creation timestamp of the object. Format: date-time.durationends_at- Timestamp after which the discount is no longer redeemable. Nullable.id- The ID of the object. Format: uuid4.max_redemptions- Maximum number of times the discount can be redeemed. Nullable.metadatamodified_at- Last modification timestamp of the object. Nullable.name- Name of the discount. Will be displayed to the customer when the discount is applied.organization_id- The organization ID. Format: uuid4.productsredemptions_count- Number of times the discount has been redeemed.starts_at- Timestamp after which the discount is redeemable. Nullable.type