@lomray/microservice-payment-stripe
Version:
Stripe payment microservice based on NodeJS & inverted json.
55 lines (54 loc) • 1.32 kB
TypeScript
import StripeSdk from 'stripe';
import { EntityManager } from 'typeorm';
/**
* External account webhook handlers
*/
declare class ExternalAccount {
/**
* @private
*/
private readonly manager;
/**
* @private
*/
private readonly cardRepository;
/**
* @private
*/
private readonly bankAccountRepository;
/**
* @constructor
*/
/**
* @constructor
*/
constructor(manager: EntityManager);
/**
* Handles connect account create
* @description NOTES: Connect account event
*/
/**
* Handles connect account create
* @description NOTES: Connect account event
*/
handleExternalAccountCreated(event: StripeSdk.Event): Promise<void>;
/**
* Handles connect account update
* @description Connect account event
*/
/**
* Handles connect account update
* @description Connect account event
*/
handleExternalAccountUpdated(event: StripeSdk.Event): Promise<void>;
/**
* Handles connect account deleted
* @description Connect account event
*/
/**
* Handles connect account deleted
* @description Connect account event
*/
handleExternalAccountDeleted(event: StripeSdk.Event): Promise<void>;
}
export { ExternalAccount as default };