import WebSite from "./WebSite.js"; import { StoreAccount } from "./StoreAccount.js"; import { StoreItemPrice } from "./StoreItemPrice.js"; import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; import type { StoreJournal } from "./StoreJournal.js"; import type { HostedDomain } from "./HostedDomain.js"; import type SubscriptionWebSite from "./SubscriptionWebSite.js"; import type SubscriptionDomain from "./SubscriptionDomain.js"; declare const subscriptionStatusArray: readonly ["active", "pending-renewal", "pending", "cancelled"]; export type subscriptionStatusArrayType = typeof subscriptionStatusArray[number]; /** * There will be one subscription per one product, customer will have multiple active subscriptions. * This is easier to maintain. * * The reason this class exists as we can switch between payment providers in future and still maintain * the history as it is. The worker can fetch active subscriptions instead of webhook to activate/deactivate * plans. */ export default class StoreSubscription { subscriptionID: number; storeID: number; buyerID: number; itemPriceID: number; dateCreated: DateTime; dateUpdated: DateTime; renewalDate: DateTime; /** * Check every 15 days... */ refreshTime: DateTime; status: subscriptionStatusArrayType; currentOrderID: number; store: WebSite; buyer: StoreAccount; itemPrice: StoreItemPrice; invoices: StoreJournal[]; hostedDomains: HostedDomain[]; subscriptionWebSites: SubscriptionWebSite[]; subscriptionDomains: SubscriptionDomain[]; } export {}; //# sourceMappingURL=StoreSubscription.d.ts.map