@oneblink/sdk
    Preparing search index...

    Type Alias FormPaymentEventAmountConfiguration

    FormPaymentEventAmountConfiguration:
        | { amountType?: "FORM_ELEMENT"; elementId: string }
        | { amountType: "NUMBER"; paymentAmount: number }
        | { amountType: "EXPRESSION"; paymentCalculation: string }

    Determines the amount to be paid for a payment event. Exactly one of elementId, paymentAmount, or paymentCalculation must be provided.

    Type Declaration

    • { amountType?: "FORM_ELEMENT"; elementId: string }
      • OptionalamountType?: "FORM_ELEMENT"

        Amount is taken from a form element value.

      • elementId: string

        The elementId that holds the value that will be paid. Must be the id of a number or calculation element.

    • { amountType: "NUMBER"; paymentAmount: number }
      • amountType: "NUMBER"

        Amount is a fixed number.

      • paymentAmount: number

        A fixed amount that will be paid.

    • { amountType: "EXPRESSION"; paymentCalculation: string }
      • amountType: "EXPRESSION"

        Amount is calculated from an expression.

      • paymentCalculation: string

        The calculation algorithm that must return a number. Supports the same syntax as calculation form elements.