Service - Product Standard

From Izara Wiki
Jump to navigation Jump to search

Overview

Handler service for the standard product type.

Repository

https://bitbucket.org/izara-market-products/izara-market-products-product-standard/src/master/

Schemas

ObjectSchemas

productStandard

{
  "objectType": "productStandard",
  "extendObjType": {
    "serviceTag": "ProductManager",
    "objectType": "product"
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
  },
  "addOnDataStructure": [],
  "fieldNames": {
    "productId": {
      "storageResourceTags": [
        "graph"
      ]
    }
  },
  "generatedBy": "userGenerated"
}


RelationshipSchemas

isProduct

{
  "relationshipServiceTag": "ProductStandard",
  "fieldNames": {
    "originTimeStamp": {
      "type": "number",
      "requiredOnCreate": false,
      "canUpdate": true,
      "validation": {

      },
      "optionalOnCreate": false
    },
  },
  "storageResources": {
    "graph": {
      "storageType": "graph",
      "graphServerTag": "GraphHandler"
    }
  },
  "links": [
    {
      "storageResourceTags": [
        "graph"
      ],
      "from": {
        "objType": {
          "serviceTag": "VariantStandard",
          "objectType": "variantProductLink"
        },
        "linkType": "one",
        "requiredOnCreate": true,
        "handler": true
      },
      "to": {
        "objType": {
          "serviceTag": "ProductStandard",
          "objectType": "productStandard"
        },
        "linkType": "one",
        "handler": true,
        "requiredOnCreate": false
      },
      "canDelete": false
    }
  ],
  "canMove": false
}

Working documents

Product Standard