Discounts
Discounts API operations.
Summary
Types
@type t() :: %PolarExpress.Resources.Discounts{ amount: term(), amounts: term(), basis_points: term(), code: term(), created_at: term(), currency: term(), duration: term(), duration_in_months: 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() }
amount- Deprecated.amounts- Map of currency to fixed amount to discount from the total.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.created_at- Creation timestamp of the object. Format: date-time.currency- Deprecated.durationduration_in_monthsends_at- Timestamp after which the discount is no longer redeemable.id- The ID of the object. Format: uuid4.max_redemptions- Maximum number of times the discount can be redeemed.metadatamodified_at- Last modification timestamp of the object.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.type