PHP Classes

File: example/retailcrm.json

Recommend this page to a friend!
  Classes of Dmitry Mamontov   REST Normalizer   example/retailcrm.json   Download  
File: example/retailcrm.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: REST Normalizer
Validate and filter parameters based on JSON rules
Author: By
Last change: fix bugs && new version
Date: 8 years ago
Size: 8,278 bytes
 

Contents

Class file image Download
{ "customers": { "externalId": { "type": "string", "required": true }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "patronymic": { "type": "string" }, "email": { "type": "string" }, "number": { "type": "string" }, "index": { "type": "string" }, "country": { "type": "string" }, "region": { "type": "string" }, "city": { "type": "string" }, "street": { "type": "string" }, "building": { "type": "string" }, "flat": { "type": "string" }, "intercomCode": { "type": "string" }, "floor": { "type": "int" }, "block": { "type": "int" }, "house": { "type": "string" }, "metro": { "type": "string" }, "notes": { "type": "string" }, "text": { "type": "string" }, "createdAt": { "type": "datetime", "format": "Y-m-d H:i:s" }, "vip": { "type": "bool", "default": false }, "bad": { "type": "bool", "default": false }, "commentary": { "type": "string" }, "customFields": { "type": "skip" }, "contragentType": { "type": "enum", "default": "individual", "values": ["individual", "legal-entity", "enterpreneur"] }, "legalName": { "type": "string" }, "legalAddress": { "type": "string" }, "INN": { "type": "string" }, "OKPO": { "type": "string" }, "KPP": { "type": "string" }, "OGRN": { "type": "string" }, "OGRNIP": { "type": "string" }, "certificateNumber": { "type": "string" }, "certificateDate": { "type": "datetime", "format": "Y-m-d" }, "BIK": { "type": "string" }, "bank": { "type": "string" }, "bankAddress": { "type": "string" }, "corrAccount": { "type": "string" }, "bankAccount": { "type": "string" }, "managerId": { "type": "int" }, "source": { "type": "skip" } }, "orders": { "shipmentStore": { "type": "string" }, "number": { "type": "string" }, "externalId": { "type": "string", "required": true }, "createdAt": { "type": "datetime", "format": "Y-m-d H:i:s" }, "discount": { "type": "double", "default": 0, "min": 0, "decimals": 2 }, "discountPercent": { "type": "double", "default": 0, "max": 100, "min": 0, "decimals": 2 }, "mark": { "type": "int", "max": 10, "min": 0 }, "markDatetime": { "type": "datetime", "format": "Y-m-d H:i:s" }, "firstName": { "type": "string" }, "lastName": { "type": "string" }, "patronymic": { "type": "string" }, "phone": { "type": "string" }, "additionalPhone": { "type": "string" }, "email": { "type": "string" }, "call": { "type": "bool", "default": false }, "expired": { "type": "bool", "default": false }, "customerComment": { "type": "string" }, "managerComment": { "type": "string" }, "paymentDetail": { "type": "string" }, "statusComment": { "type": "string" }, "customFields": { "type": "skip" }, "contragentType": { "type": "enum", "default": "individual", "values": ["individual", "legal-entity", "enterpreneur"] }, "legalName": { "type": "string" }, "legalAddress": { "type": "string" }, "INN": { "type": "string" }, "OKPO": { "type": "string" }, "KPP": { "type": "string" }, "OGRN": { "type": "string" }, "OGRNIP": { "type": "string" }, "certificateNumber": { "type": "string" }, "certificateDate": { "type": "datetime", "format": "Y-m-d" }, "BIK": { "type": "string" }, "bank": { "type": "string" }, "bankAddress": { "type": "string" }, "corrAccount": { "type": "string" }, "bankAccount": { "type": "string" }, "orderType": { "type": "string" }, "orderMethod": { "type": "string" }, "customerId": { "type": "string" }, "managerId": { "type": "int" }, "paymentType": { "type": "string" }, "paymentStatus": { "type": "string" }, "status": { "type": "string" }, "sourceId": { "type": "string" }, "initialPrice": { "type": "double", "default": 0, "min": 0, "decimals": 2 }, "quantity": { "type": "double", "default": 1, "min": 1, "decimals": 2 }, "properties": { "type": "skip" }, "productId": { "type": "string" }, "productName": { "type": "string", "max": 250 }, "comment": { "type": "string" }, "purchasePrice": { "type": "double", "default": 0, "min": 0, "decimals": 2 }, "code": { "type": "string" }, "integrationCode": { "type": "string" }, "data": { "type": "skip" }, "service": { "type": "skip" }, "cost": { "type": "string" }, "netCost": { "type": "string" }, "deliveryTime": { "type": "string" }, "date": { "type": "datetime", "format": "Y-m-d" }, "index": { "type": "string" }, "country": { "type": "string" }, "region": { "type": "string" }, "city": { "type": "string" }, "street": { "type": "string" }, "building": { "type": "string" }, "flat": { "type": "string" }, "intercomCode": { "type": "string" }, "floor": { "type": "int" }, "block": { "type": "int" }, "house": { "type": "string" }, "metro": { "type": "string" }, "notes": { "type": "string" }, "text": { "type": "string" }, "source": { "type": "skip" } } }