UNPKG

@lomray/microservice-payment-stripe

Version:

Stripe payment microservice based on NodeJS & inverted json.

30 lines (26 loc) 818 B
'use strict'; var tslib = require('tslib'); var microserviceNodejsLib = require('@lomray/microservice-nodejs-lib'); var Event = require('@lomray/microservices-client-api/constants/events/payment-stripe'); /** * Payout service */ class Payout { /** * Handles after insert event */ static handleAfterInsert(entity) { return tslib.__awaiter(this, void 0, void 0, function* () { yield microserviceNodejsLib.Microservice.eventPublish(Event.PayoutCreated, entity); }); } /** * Handles after update event */ static handleAfterUpdate(entity) { return tslib.__awaiter(this, void 0, void 0, function* () { yield microserviceNodejsLib.Microservice.eventPublish(Event.PayoutUpdated, entity); }); } } module.exports = Payout;