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

    Configure fees applied to each product

    This service is scoped to the admin (cross-customer). customer should use ProductLimitConfigService instead.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    dbHelper: DbHelper

    Methods

    • Parameters

      • __namedParameters: {
            customerIds?: (string | null)[];
            productNames?: (
                | "organization.v1"
                | "identity.v1"
                | "card.physical_card.v1"
                | "card.virtual_card.v1"
                | "deposit.us_cash.v1"
                | "deposit.rtp.v1"
                | "deposit.us_bank_ach.v1"
                | "deposit.ach_credit.v1"
                | "deposit.us_wire.v1"
                | "deposit.swift_wire.v1"
                | "transfer.redemption.v1"
                | "swap.v1"
                | "withdraw.blockchain.v1"
                | "withdraw.ke_bank.v1"
                | "withdraw.ke_momo.v1"
                | "withdraw.mx_bank_spei.v1"
                | "withdraw.swift_wire.v1"
                | "withdraw.tg_momo.v1"
                | "withdraw.us_bank_ach.v1"
                | "withdraw.us_instant.v1"
                | "withdraw.us_wire.v1"
                | "withdraw.ach_pull.v1"
                | "withdraw.us_wire_drawdown.v1"
                | "account.virtual-account.v1"
            )[];
            statuses?: ("ACTIVE" | "DISABLED")[];
            types?: ("ADMIN" | "CUSTOMER")[];
        }
        • OptionalcustomerIds?: (string | null)[]

          null for global config (applies to all customers). Omit to return both all customers and all globals.

        • OptionalproductNames?: (
              | "organization.v1"
              | "identity.v1"
              | "card.physical_card.v1"
              | "card.virtual_card.v1"
              | "deposit.us_cash.v1"
              | "deposit.rtp.v1"
              | "deposit.us_bank_ach.v1"
              | "deposit.ach_credit.v1"
              | "deposit.us_wire.v1"
              | "deposit.swift_wire.v1"
              | "transfer.redemption.v1"
              | "swap.v1"
              | "withdraw.blockchain.v1"
              | "withdraw.ke_bank.v1"
              | "withdraw.ke_momo.v1"
              | "withdraw.mx_bank_spei.v1"
              | "withdraw.swift_wire.v1"
              | "withdraw.tg_momo.v1"
              | "withdraw.us_bank_ach.v1"
              | "withdraw.us_instant.v1"
              | "withdraw.us_wire.v1"
              | "withdraw.ach_pull.v1"
              | "withdraw.us_wire_drawdown.v1"
              | "account.virtual-account.v1"
          )[]
        • Optionalstatuses?: ("ACTIVE" | "DISABLED")[]
        • Optionaltypes?: ("ADMIN" | "CUSTOMER")[]

      Returns Promise<
          {
              ok: true;
              value: (
                  Omit<
                      {
                          config: {
                              rules: {
                                  matcher: object;
                                  status: "ACTIVE"
                                  | "DISABLED";
                                  value: ((...) & (...))[];
                              }[];
                          };
                          createdAt: Date;
                          customerId: number
                          | null;
                          id: number;
                          productName:
                              | "organization.v1"
                              | "identity.v1"
                              | "card.physical_card.v1"
                              | "card.virtual_card.v1"
                              | "deposit.us_cash.v1"
                              | "deposit.rtp.v1"
                              | "deposit.us_bank_ach.v1"
                              | "deposit.ach_credit.v1"
                              | "deposit.us_wire.v1"
                              | "deposit.swift_wire.v1"
                              | "transfer.redemption.v1"
                              | "swap.v1"
                              | "withdraw.blockchain.v1"
                              | "withdraw.ke_bank.v1"
                              | "withdraw.ke_momo.v1"
                              | "withdraw.mx_bank_spei.v1"
                              | "withdraw.swift_wire.v1"
                              | "withdraw.tg_momo.v1"
                              | "withdraw.us_bank_ach.v1"
                              | "withdraw.us_instant.v1"
                              | "withdraw.us_wire.v1"
                              | "withdraw.ach_pull.v1"
                              | "withdraw.us_wire_drawdown.v1"
                              | "account.virtual-account.v1";
                          status: "ACTIVE"
                          | "DISABLED";
                          type: "ADMIN" | "CUSTOMER";
                          updatedAt: Date;
                      },
                      "id"
                      | "customerId"
                      | "config",
                  > & {
                      rules: (
                          Omit<
                              {
                                  matcher: object;
                                  status: "ACTIVE"
                                  | "DISABLED";
                                  value: ((...) & (...))[];
                              },
                              "value",
                          > & { value: ({ receiver: ... } & ((...) | (...)))[] }
                      )[];
                  } & { customerId: string
                  | null }
              )[];
          },
      >