Application Load

IInvoiceCreateRequest

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

IInvoiceCreateRequest

Wallet-invoice creation request.

interfaces/orionplace/payments/IInvoice.ts
TypeScript
export interface IInvoiceCreateRequest {
  // Required payment-method ID. Must be enabled, use a payment plugin, and not
  // be a balance or payment-on-delivery method.
  payment: number;
  // Required currency ID from `page_data.init.currencies`. The submitted
  // `amount` is expressed in this currency.
  currency?: number;
  // Amount in the selected currency: greater than zero, with up to 20 digits
  // total and 9 decimal places. The converted amount must remain positive.
  amount?: number | string;
}