LoyaltyPointActivity
Type: schema
TypeScript Definition
typescript
LoyaltyPointActivity: {{
/**
* @description New enrolments use new-customer; older activities can retain new customer.
* @enum {unknown}
*/
activity: "order" | "credit-note" | "tier-upgrade" | "signup" | "bonus" | "other" | "new-customer" | "new customer";
/** @enum {unknown} */
action: "add" | "remove";
title: string;
loyalty_points: number;
reference_number?: string | null;
internal_note?: string | null;
remarks?: string | null;
/** Format: date-time */
created_at?: $Read<string>;
/** Format: date-time */
modified_at?: $Read<string>;
};
/** LoyaltyProgram */
}OpenAPI Schema
json
{
"title": "LoyaltyPointActivity",
"type": "object",
"required": [
"activity",
"action",
"title",
"loyalty_points"
],
"properties": {
"activity": {
"description": "New enrolments use new-customer; older activities can retain new customer.",
"enum": [
"order",
"credit-note",
"tier-upgrade",
"signup",
"bonus",
"other",
"new-customer",
"new customer"
]
},
"action": {
"enum": [
"add",
"remove"
]
},
"title": {
"type": "string"
},
"loyalty_points": {
"type": "integer"
},
"reference_number": {
"type": [
"string",
"null"
]
},
"internal_note": {
"type": [
"string",
"null"
]
},
"remarks": {
"type": [
"string",
"null"
]
},
"created_at": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"modified_at": {
"type": "string",
"format": "date-time",
"readOnly": true
}
},
"x-tags": [
"Customers"
]
}Auto-generated from OpenAPI spec and TypeScript definitions