@lomray/microservice-payment-stripe
Version:
Stripe payment microservice based on NodeJS & inverted json.
23 lines (22 loc) • 685 B
TypeScript
import { EntitySubscriberInterface, InsertEvent } from 'typeorm';
import PromoCodeEntity from "../entities/promo-code.js";
/**
* Promo code subscriber
*/
declare class PromoCode implements EntitySubscriberInterface<PromoCodeEntity> {
/**
* This subscriber only for promo code entity
*/
/**
* This subscriber only for promo code entity
*/
listenTo(): typeof PromoCodeEntity;
/**
* Create stripe promo code and attach stripe id to entity
*/
/**
* Create stripe promo code and attach stripe id to entity
*/
beforeInsert({ entity, manager }: InsertEvent<PromoCodeEntity>): Promise<void>;
}
export { PromoCode as default };