UNPKG

@lomray/microservice-payment-stripe

Version:

Stripe payment microservice based on NodeJS & inverted json.

33 lines (32 loc) 811 B
import CouponDuration from "../constants/coupon-duration.js"; import Product from "./product.js"; import PromoCode from "./promo-code.js"; declare class Coupon { couponId: string; userId: string | null; name: string | null; amountOff: number | null; percentOff: number | null; duration: CouponDuration; durationInMonths: number | null; maxRedemptions: number | null; createdAt: Date; updatedAt: Date; products: Product[]; promoCodes: PromoCode[]; /** * Check if amountOff exists */ /** * Check if amountOff exists */ private static isAmountOffExists; /** * Check if duration is repeating */ /** * Check if duration is repeating */ private static isDurationRepeating; } export { Coupon as default };