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

    Customer-scoped reads of escrow transfer requests. Every read filters on customerId (the API caller's customer external id), so one customer can never read another's requests. EscrowTransferRequestService extends it with the writes.

    Hierarchy (View Summary)

    Index
    db: B2bDatabase
    instance: (...args: []) => EscrowTransferRequestQueryService = ...

    The process default: built from each dependency's own instance().

    • Customer-scoped search. Filter by ids (request external ids) and/or senderId (requests this identity sent) and/or recipientPhone (requests addressed to this phone) and/or statuses. Ordered newest-first. The customer-scope is a hard WHERE so no filter combination can leak rows across tenants.

      Parameters

      • __namedParameters: {
            customerId: string;
            ids?: string[];
            page?: number;
            pageSize?: number;
            recipientPhone?: string;
            senderId?: string;
            statuses?: ("CREATED" | "CANCELLED" | "REJECTED" | "SENT")[];
        }
        • customerId: string
        • Optionalids?: string[]
        • Optionalpage?: number

          Defaults to 1

        • OptionalpageSize?: number

          Defaults to 50

        • OptionalrecipientPhone?: string
        • OptionalsenderId?: string
        • Optionalstatuses?: ("CREATED" | "CANCELLED" | "REJECTED" | "SENT")[]

      Returns Promise<
          {
              ok: true;
              value: { hasNext: boolean; items: EscrowTransferRequest[]; total: number };
          },
      >