import { Attr } from 'ts-framework' import { Customer, DeletedCustomer } from '../types/stripe' export class CreateOrgSubscriptionDTO { @Attr({type: String}) orgId: string @Attr({type: String}) planId: string @Attr({type: String}) stripeSourceId: string @Attr({type: String}) email: string @Attr({type: String}) name: string } export class UpdateOrgSubscriptionDTO { @Attr({type: String}) id: string @Attr({type: String}) planId: string @Attr({type: String, optional: true}) stripeSourceId?: string } export class OrgSubscriptionResponseDTO { organizationId: string id: string subscriptionPlanId: string createdAt: Date stripeCustomer: Customer | DeletedCustomer }