Type alias AuthorizeModelAttemptResult

AuthorizeModelAttemptResult: {
    status: "authorized" | "existing";
    attempt: CreditAttemptRow;
    remainingAttempts: number;
    maxQuantities: Readonly<Record<string, number>>;
} | {
    status: "refused";
    reason: "not_found" | "hold_closed" | "attempts_exhausted" | "usage_exhausted" | "unknown_rate";
}

An authorization's answer. maxQuantities is the most of each component the attempt may use.

Type declaration

  • status: "authorized" | "existing"
  • attempt: CreditAttemptRow
  • remainingAttempts: number
  • maxQuantities: Readonly<Record<string, number>>

Type declaration

  • status: "refused"
  • reason: "not_found" | "hold_closed" | "attempts_exhausted" | "usage_exhausted" | "unknown_rate"