Service - Orders: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 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 47: | 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 === | ||
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