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

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    yellowcardClient: YellowcardClient

    Methods

    • Parameters

      • args: Pick<
            YellowcardWithdrawalQuote,
            "entityId"
            | "deviceIpAddress"
            | "deviceLocation",
        > & {
            channelId?: string;
            country: string;
            customerId: string;
            kyc?: {
                address: string;
                country: string;
                dob: string;
                email: string;
                idNumber: string;
                idType: string;
                name: string;
                phone: string;
            };
            reason: | "other"
            | "gift"
            | "bills"
            | "groceries"
            | "travel"
            | "health"
            | "entertainment"
            | "housing"
            | "school/fees";
            sourceAmount: BigNumber;
            sourceWalletAddress: string;
            targetCurrency: string;
            targetPaymentInstrument: string;
            withdrawalType: "bank"
            | "momo";
        }

      Returns Promise<
          | { ok: true; value: YellowcardWithdrawalQuote }
          | {
              error:
                  | ServiceError<"ENTITY_NOT_FOUND" | "NO_COUNTRY">
                  | ServiceError<"PRODUCT_INACTIVE" | "PRODUCT_BLOCKED">
                  | ServiceError<"LIMIT_EXCEEDED", ProductLimitViolation>
                  | ServiceError<"UNSUPPORTED_COUNTRY" | "UNSUPPORTED_PRODUCT">
                  | ServiceError<"IDENTITY_NOT_ACTIVE" | "IDENTITY_MISSING_NAME">
                  | ServiceError<"NO_AVAILABLE_CHANNELS" | "CHANNEL_NOT_AVAILABLE">
                  | ServiceError<"AMOUNT_BELOW_MINIMUM" | "AMOUNT_ABOVE_MAXIMUM">
                  | ServiceError<"INVALID_INSTRUMENT">
                  | ServiceError<
                      "INSUFFICIENT_FUNDS",
                      { amount: BigNumber; currency: string },
                  >;
              ok: false;
          },
      >

    • Parameters

      • country: string

      Returns Promise<
          {
              accountNumberType: string;
              channelIds: string[];
              code?: string;
              country: string;
              id: string;
              name: string;
              status: string;
          }[],
      >