{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "APCreditCard", "type": "object", "properties": { "id": { "type": "integer", "readOnly": true }, "uuid": { "type": "string", "format": "uuid" }, "is_active": { "type": "boolean" }, "created_at": { "type": "string", "format": "date-time", "readOnly": true }, "updated_at": { "type": "string", "format": "date-time", "readOnly": true }, "name": { "type": "string", "maxLength": 255 }, "number": { "type": "string", "pattern": "^[0-9]{4}$", "maxLength": 19 }, "balance": { "type": "integer", "maximum": 2147483647, "minimum": -2147483648, "nullable": true }, "gl_code": { "type": "string", "maxLength": 100 }, "type": { "allOf": [ { "$ref": "#/components/schemas/CreditCardTypeEnum" } ], "minimum": -2147483648, "maximum": 2147483647 }, "category": { "nullable": true, "minimum": -2147483648, "maximum": 2147483647, "oneOf": [ { "$ref": "#/components/schemas/CategoryEnum" }, { "$ref": "#/components/schemas/NullEnum" } ], "type": "integer" }, "external_id": { "type": "string", "description": "External id of the Credit Card", "maxLength": 100 }, "status": { "nullable": true, "description": "The status of the Credit Card\n\n* `pending` - Pending\n* `active` - Active\n* `inactive` - Inactive\n* `canceled` - Canceled\n* `lost` - Lost\n* `stolen` - Stolen", "oneOf": [ { "$ref": "#/components/schemas/CreditCardStatusEnum" }, { "$ref": "#/components/schemas/BlankEnum" }, { "$ref": "#/components/schemas/NullEnum" } ], "type": "integer" }, "require_activation": { "type": "boolean", "title": "Require new activation?", "description": "Does this card require new activation?" }, "last_changed_by": { "type": "integer", "nullable": true, "title": "Last changed by user" }, "vendor": { "type": "integer" }, "payment_method": { "type": "integer", "nullable": true }, "currency": { "type": "integer" }, "creator": { "type": "integer", "nullable": true, "title": "Card Issuer" } }, "required": [ "currency", "uuid", "vendor" ] }