Skip to content

CustomerMandate ​

Type: schema

TypeScript Definition ​

typescript
CustomerMandate: {{
            id: string;
            mandate_type: string;
            status: components["schemas"]["MandateStatus"];
            max_amount: number;
            frequency: string;
            /** Format: date-time */
            start_date: string;
            /** Format: date-time */
            end_date: string;
            gateway: string;
            gateway_reference_id: string;
            block_fund: boolean;
            revokable_by_customer: boolean;
            currency: string;
            payment_info: {
                payment_method_type: string;
                payment_method: string;
                bank_details: {
                    account_number: string;
                    ifsc: string;
                    bank_account_type: string;
                    beneficiary_name: string;
                    bank_name: string;
                };
            };
            /** Format: date-time */
            created_at: string;
            /** Format: date-time */
            modified_at: string;
            /** Format: date-time */
            activated_at: string;
            /** Format: date-time */
            last_activated_at: string;
        };
        /**
         * CustomerReadyForReview
         * @description List of products and orders for which customer can write review.
         */
}

Component References ​

ReferenceResolves To
components["schemas"]["MandateStatus"]MandateStatus

OpenAPI Schema ​

json
{
  "title": "CustomerMandate",
  "type": "object",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/schemas/CustomerMandate",
    "description": "API reference for the CustomerMandate schema"
  },
  "required": [
    "id",
    "mandate_type",
    "status",
    "max_amount",
    "frequency",
    "start_date",
    "end_date",
    "gateway",
    "gateway_reference_id",
    "block_fund",
    "revokable_by_customer",
    "currency",
    "payment_info",
    "created_at",
    "modified_at",
    "activated_at",
    "last_activated_at"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "mandate_type": {
      "type": "string"
    },
    "status": {
      "$ref": "#/components/schemas/MandateStatus"
    },
    "max_amount": {
      "type": "number"
    },
    "frequency": {
      "type": "string"
    },
    "start_date": {
      "type": "string",
      "format": "date-time"
    },
    "end_date": {
      "type": "string",
      "format": "date-time"
    },
    "gateway": {
      "type": "string"
    },
    "gateway_reference_id": {
      "type": "string"
    },
    "block_fund": {
      "type": "boolean"
    },
    "revokable_by_customer": {
      "type": "boolean"
    },
    "currency": {
      "type": "string"
    },
    "payment_info": {
      "type": "object",
      "properties": {
        "payment_method_type": {
          "type": "string"
        },
        "payment_method": {
          "type": "string"
        },
        "bank_details": {
          "type": "object",
          "properties": {
            "account_number": {
              "type": "string"
            },
            "ifsc": {
              "type": "string"
            },
            "bank_account_type": {
              "type": "string"
            },
            "beneficiary_name": {
              "type": "string"
            },
            "bank_name": {
              "type": "string"
            }
          },
          "required": [
            "account_number",
            "ifsc",
            "bank_account_type",
            "beneficiary_name",
            "bank_name"
          ]
        }
      },
      "required": [
        "payment_method_type",
        "payment_method",
        "bank_details"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "modified_at": {
      "type": "string",
      "format": "date-time"
    },
    "activated_at": {
      "type": "string",
      "format": "date-time"
    },
    "last_activated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: