Service - Orders: Difference between revisions
Jump to navigation
Jump to search
(Created page with "= Overview = Manages submitted orders. = Repository = https://bitbucket.org/izara-market-orders/izara-market-orders-orders = Graph database = == Service - Orders Graph == === Nodes === <syntaxhighlight lang="JavaScript"> { nodeLabel: "{OrderLib.ORDER_GRAPH_NODE_LABEL}", // "order" schema: { identifier: true, restrictProperties: true, restrictRelationships: true, properties: { orderId: { identifier: true, // create unique id from request param...") |
No edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 5: | Line 5: | ||
= Repository = | = Repository = | ||
https://bitbucket.org/izara-market- | https://bitbucket.org/izara-market-services/izara-market-orders-orders | ||
= Graph database = | = Graph database = | ||
| Line 27: | Line 27: | ||
totalValue: {}, | totalValue: {}, | ||
currencyId: {}, | currencyId: {}, | ||
sellerStatus: {}, // processing | orderStatus: {}, // validating|valid | ||
sellerStatus: {}, // processing|shipped|delivered | |||
timeOfOrder: {}, // date order submitted | timeOfOrder: {}, // date order submitted | ||
}, | }, | ||
| Line 46: | Line 47: | ||
}, | }, | ||
quantity: {}, | quantity: {}, | ||
orderTotal: {}, | |||
subTotal: {} | subTotal: {} | ||
}, | }, | ||
} | } | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* orderTotal: The unit price of the product (from sellOfferPrices). | |||
*subTotal: The total price for that item, calculated as orderTotal × quantity. | |||
=== Relationships === | === Relationships === | ||
| Line 153: | Line 158: | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
relationshipType: "{OrderLib.createFromCartOrderGraphRelationshipType()}", // " | relationshipType: "{OrderLib.createFromCartOrderGraphRelationshipType()}", // "from_cart" | ||
schema: { | schema: { | ||
immutable: true, | immutable: true, | ||
| Line 163: | Line 168: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* Links order to | * Links order to cart used to submit this order | ||
= Working documents = | = Working documents = | ||
Latest revision as of 09:22, 14 November 2025
Overview
Manages submitted orders.
Repository
https://bitbucket.org/izara-market-services/izara-market-orders-orders
Graph database
Service - Orders Graph
Nodes
{
nodeLabel: "{OrderLib.ORDER_GRAPH_NODE_LABEL}", // "order"
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
orderId: {
identifier: true, // create unique id from request params and uniqueMessageId
},
totalQuantity: {},
totalValue: {},
currencyId: {},
orderStatus: {}, // validating|valid
sellerStatus: {}, // processing|shipped|delivered
timeOfOrder: {}, // date order submitted
},
}
}
{
nodeLabel: "{OrderLib.ORDER_SELLOFFERLINK_GRAPH_NODE_LABEL}", // "orderSellOfferLink"
schema: {
identifier: true,
restrictProperties: true,
restrictRelationships: true,
properties: {
orderSellOfferLinkId: {
identifier: true, // create unique id from request params and uniqueMessageId
},
quantity: {},
orderTotal: {},
subTotal: {}
},
}
}
- orderTotal: The unit price of the product (from sellOfferPrices).
- subTotal: The total price for that item, calculated as orderTotal × quantity.
Relationships
{
relationshipType: "{OrderLib.createPlacedOrderGraphRelationshipType()}", // "placed_order"
schema: {
immutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the order was made
},
}
}
- links an order to the buyer
{
relationshipType: "{OrderLib.createSoldOrderGraphRelationshipType()}", // "sold_order"
schema: {
immutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the order was made
},
}
}
- links an order to the seller
{
relationshipType: "{OrderLib.createOrderPaymentMethodGraphRelationshipType()}", // "order_paymentMethod"
schema: {
immutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the order was made
},
}
}
- links an order to paymentMethod used
{
relationshipType: "{OrderLib.createOrderDeliveryMethodGraphRelationshipType()}", // "order_deliveryMethod"
schema: {
immutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the order was made
},
}
}
- links an order to deliveryMethod used
{
relationshipType: "{OrderLib.createOrderShipToAddressGraphRelationshipType()}", // "order_shipToAddress"
schema: {
immutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the order was made
},
}
}
- links an order to the ship to address used
{
relationshipType: "{OrderLib.createHasOrderSellOfferLinkGraphRelationshipType()}", // "has_orderSellOfferLink"
schema: {
immutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the order was made
},
}
}
{
relationshipType: "{OrderLib.createOrderSellOfferLinkIsSellOfferGraphRelationshipType()}", // "orderSellOfferLinkIs_sellOffer"
schema: {
immutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the order was made
},
}
}
- Links orderSellOfferLink to one sellOffer
{
relationshipType: "{OrderLib.createFromCartOrderGraphRelationshipType()}", // "from_cart"
schema: {
immutable: true,
restrictProperties: true,
properties: {
originTimestamp: //timestamp the order was made
},
}
}
- Links order to cart used to submit this order