TenantCouponWithoutCode#

class TenantCouponWithoutCode[source]#

A coupon where you don’t have the permission to see the code.

type: Literal['coupon-without-code']#

This is a coupon without a code.

id: str#

The id of the coupon

created_at: datetime#

The moment the coupon was created.

limit: Optional[int]#

The maximum amount of times the coupon can be used. If it is None the coupon can be used for an unlimited amount.

scope: Literal['tenant']#

The scope of validity of the coupon. Used to discriminate from Coupon.

tenant: Tenant#

The Tenant this coupon is associated with.

used_amount: int#

The amount of times it has been used.