Application Load

IInvoiceCreateResponse

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IInvoiceCreateResponse

Field or general errors.

interfaces/orionplace/payments/IInvoice.ts
TypeScript
export interface IInvoiceCreateResponse {
  // Field or general errors.
  form_errors: Record<string, ApiFormError[]> | null;
  // Success message, or null.
  success_message: string | null;
  // Payment link and display mode.
  page_data: {
    // Payment URL generated by the plugin.
    link: string;
    // Payment-page mode: `EPaymentLinkType.IFRAME` or
    // `EPaymentLinkType.REDIRECT`; can be null.
    link_type: EPaymentLinkType;
  } | null;
}