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

    Manage bank documents stored in S3

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    s3Bucket: string
    s3Client: S3Client

    Methods

    • Parameters

      • __namedParameters: {
            bankId: BankId;
            contentType?: string;
            document: Buffer;
            fileName: string;
            folder?: string;
            type: "CUSTOM" | "LOGO" | "PRICING_SCHEDULE" | "TERMS";
        }

      Returns Promise<{ ok: true; value: BankDocument }>

    • Parameters

      • __namedParameters: {
            bankId: BankId;
            key: string;
            type: "CUSTOM" | "LOGO" | "PRICING_SCHEDULE" | "TERMS";
        }

      Returns Promise<{ ok: true; value: void }>

    • Parameters

      • __namedParameters: {
            bankId: BankId;
            fileName: string;
            folder?: string;
            type: "CUSTOM" | "LOGO" | "PRICING_SCHEDULE" | "TERMS";
        }

      Returns Promise<{ ok: true; value: string | null }>