Adjusted Per seat billing and added example to the sample schema
This commit is contained in:
@@ -60,7 +60,7 @@ export class BillingEventHandlerService {
|
||||
|
||||
// Handle the subscription deleted event
|
||||
// here we delete the subscription from the database
|
||||
logger.info(ctx, 'Processing subscription deleted event');
|
||||
logger.info(ctx, 'Processing subscription deleted event...');
|
||||
|
||||
const { error } = await client
|
||||
.from('subscriptions')
|
||||
|
||||
@@ -127,16 +127,4 @@ export class BillingGatewayService {
|
||||
|
||||
return strategy.updateSubscription(payload);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves a plan by the specified plan ID.
|
||||
* @param planId
|
||||
*/
|
||||
async getPlanById(planId: string) {
|
||||
const strategy = await BillingGatewayFactoryService.GetProviderStrategy(
|
||||
this.provider,
|
||||
);
|
||||
|
||||
return strategy.getPlanById(planId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user