Skip to content

OrderPaymentInfo

Type: schema

Description

Common fields in all types of payments.

TypeScript Definition

typescript
OrderPaymentInfo: {{
            /** @enum {unknown} */
            transaction_type?: "payment" | "refund";
            request_number?: string;
            /** Format: double */
            amount?: number;
            /** @enum {unknown} */
            payment_status?: "pending" | "success" | "failed" | "partially_paid" | "refund_initiated";
            /** Format: date-time */
            payment_date?: string;
            payment_reference_number?: string | null;
            /** @enum {unknown} */
            payment_method?: "Credit Card" | "Debit Card" | "Netbanking" | "UPI" | "Wallet" | "Loyalty Point" | "IMPS" | "NEFT" | "RTGS";
            icon_url?: string;
        };
        /** OrderReceiptJsonFormat */
}

OpenAPI Schema

json
{
  "description": "Common fields in all types of payments.",
  "type": "object",
  "properties": {
    "transaction_type": {
      "enum": [
        "payment",
        "refund"
      ]
    },
    "request_number": {
      "type": "string"
    },
    "amount": {
      "type": "number",
      "format": "double"
    },
    "payment_status": {
      "enum": [
        "pending",
        "success",
        "failed",
        "partially_paid",
        "refund_initiated"
      ]
    },
    "payment_date": {
      "type": "string",
      "format": "date-time"
    },
    "payment_reference_number": {
      "type": [
        "string",
        "null"
      ]
    },
    "payment_method": {
      "enum": [
        "Credit Card",
        "Debit Card",
        "Netbanking",
        "UPI",
        "Wallet",
        "Loyalty Point",
        "IMPS",
        "NEFT",
        "RTGS"
      ]
    },
    "icon_url": {
      "type": "string"
    }
  },
  "title": "OrderPaymentInfo",
  "x-tags": [
    "Orders"
  ]
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: