@cfxlabsinc/b2b-services
    Preparing search index...

    Builds the PAYMENT_INSTRUMENT email payload for a payment-instrument status change and hands it to the CustomerNotificationService core. Lives in payment-instrument-services (next to the per-type writer services) so it can use the instrument domain types; each writer calls notify right where it publishes the paymentInstrument.<type>.statusUpdated event.

    Relocated from the customer-dashboard paymentInstrument webhook handler.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Notify the relevant recipients of a payment-instrument status change. Best-effort. event must be the specific per-type event name the writer published, so the core's creator-backfill maps it to the right activity.

      Parameters

      • __namedParameters: {
            customerId: string;
            event: NotifiablePaymentInstrumentEvent;
            paymentInstrument: NotifiablePaymentInstrument;
        }

      Returns Promise<void>