A container for payment products, payment product groups, and their accounts on file.

Hierarchy

  • BasicPaymentItems

Properties

accountsOnFile: AccountOnFile[]

The available accounts on file.

paymentItems: BasicPaymentItem[]

The available payment items.

Methods

  • Finds an account on file based on its ID.

    Parameters

    • id: number

      The ID of the account on file to look for.

    Returns undefined | AccountOnFile

    The matching account on file, or undefined if there is no such account on file.

  • Finds a payment item based on its ID.

    Parameters

    • id: number

      The ID of the payment item to look for.

    Returns undefined | BasicPaymentProduct

    The matching payment item (as a product), or undefined if there is no such payment item.

  • Finds a payment item based on its ID.

    Parameters

    • id: string

      The ID of the payment item to look for.

    Returns undefined | BasicPaymentProductGroup

    The matching payment item (as a group), or undefined if there is no such payment item.

  • Finds a payment item based on its ID.

    Parameters

    • id: string | number

      The ID of the payment item to look for.

    Returns undefined | BasicPaymentItem

    The matching payment item, or undefined if there is no such payment item.

  • Finds an account on file based on its ID.

    Parameters

    • id: number

      The ID of the account on file to look for.

    Returns AccountOnFile

    The matching account on file.

    Throws

    If there is no such account on file.

  • Finds a payment item based on its ID.

    Parameters

    • id: number

      The ID of the payment item to look for.

    Returns BasicPaymentProduct

    The matching payment item (as a product).

    Throws

    If there is no such payment item.

  • Finds a payment item based on its ID.

    Parameters

    • id: string

      The ID of the payment item to look for.

    Returns BasicPaymentProductGroup

    The matching payment item (as a group).

    Throws

    If there is no such payment item.

  • Finds a payment item based on its ID.

    Parameters

    • id: string | number

      The ID of the payment item to look for.

    Returns BasicPaymentItem

    The matching payment item.

    Throws

    If there is no such payment item.