CouponWithCode¶ class CouponWithCode[source]¶ A coupon where you do have the permission to see the code. scope: Literal['course']¶ The scope of validity of the coupon. Used to discriminate from Coupon. course_price: CoursePrice¶ The CoursePrice this coupon pays for. type: Literal['coupon-with-code']¶ This is a coupon with code. code: str¶ The code of the coupon. id: str¶ The id of the coupon created_at: datetime¶ The moment the coupon was created. limit: int | None¶ The maximum amount of times the coupon can be used. If it is None the coupon can be used for an unlimited amount. used_amount: int¶ The amount of times it has been used.