From f74fd0395a9f55f3dcb3a4e832ce734f31feeaa0 Mon Sep 17 00:00:00 2001 From: Gurveen Kaur Date: Mon, 15 Sep 2025 18:27:08 +0530 Subject: [PATCH 1/2] Create Sales Order Documentation --- project-ideas/oms/createOrder.md | 297 +++++++++--------- .../order-ledger/createSalesOrder.md | 239 +++++++++++--- 2 files changed, 349 insertions(+), 187 deletions(-) diff --git a/project-ideas/oms/createOrder.md b/project-ideas/oms/createOrder.md index 43fe9ab..af67294 100644 --- a/project-ideas/oms/createOrder.md +++ b/project-ideas/oms/createOrder.md @@ -20,163 +20,162 @@ This service creates data in following entities: | PostalAddress | address | Details of the postal address for the contact mechanism. | - - ```json { - "currencyUom": "USD", - "customerClassificationId": null, - "entryDate": "2024-07-30T15:23:47+0000", - "externalId": "444455555", - "orderDate": "2024-07-25T04:07:49.956", - "orderName": "#499999", - "orderTypeId": "SALES_ORDER", - "statusId": "ORDER_CREATED", - "originFacilityId": "", - "presentmentCurrencyCode": "USD", - "priority": "2", - "productStoreId": "STORE", - "salesChannelEnumId": "UNKNWN_SALES_CHANNEL", - "webSiteId": "WEBSTORE", - "adjustments": [ - { - "orderAdjustmentTypeId": "SHIPPING_CHARGES", - "amount": "500", - "exemptAmount": "2.5", - "comments": "", - "sourcePercentage": "5", - "adjustmentAttributes": [ - { - "attrName": "taxAuthority", - "attrValue": "State of California", - "attrDescription": "state tax" - } - ] - } - ], - "attributes": [ - { - "attrName": "item", - "attrValue": "testing attribute", - "attrDescription": "" - } - ], - "contactMechs": [ - { - "contactMechId": "100489", - "contactMechPurposeTypeId": "SHIPPING_LOCATION" - }, - { - "contactMechId": "100490", - "contactMechPurposeTypeId": "PHONE_SHIPPING" - }, + "currencyUom": "USD", + "customerClassificationId": null, + "entryDate": "2024-07-30T15:23:47+0000", + "externalId": "444455555", + "orderDate": "2024-07-25T04:07:49.956", + "orderName": "#499999", + "orderTypeId": "SALES_ORDER", + "statusId": "ORDER_CREATED", + "originFacilityId": "", + "presentmentCurrencyCode": "USD", + "priority": "2", + "productStoreId": "STORE", + "salesChannelEnumId": "UNKNWN_SALES_CHANNEL", + "webSiteId": "WEBSTORE", + "adjustments": [ + { + "orderAdjustmentTypeId": "SHIPPING_CHARGES", + "amount": "500", + "exemptAmount": "2.5", + "comments": "", + "sourcePercentage": "5", + "adjustmentAttributes": [ { - "contactMechId": "100491", - "contactMechPurposeTypeId": "SHIPPING_EMAIL" - }, - { - "contactMechId": "100495", - "contactMechPurposeTypeId": "ORDER_EMAIL" - } - ], - "identifications": [ - { - "idType": "SHOPIFY_ORD_NAME", - "idValue": "2345678876545" - }, - { - "idType": "SHOPIFY_ORD_ID", - "idValue": "4444992255" - } - ], - "paymentPreferences": [ - { - "paymentMethodTypeId": "EXT_SHOP_OTHR_GTWAY", - "maxAmount": "25000", - "statusId": "PAYMENT_AUTHORIZED", - "paymentMode": "", - "cardName": "", - "manualAuthCode": null, - "manualRefNum": "45545454545454", - "createdByUserLogin": "nishtha.jain", - "orderId": "100783" + "attrName": "taxAuthority", + "attrValue": "State of California", + "attrDescription": "state tax" } - ], - "roles": [ - { - "partyId": "100395", - "roleTypeId": "PLACING_CUSTOMER" - }, + ] + } + ], + "attributes": [ + { + "attrName": "item", + "attrValue": "testing attribute", + "attrDescription": "" + } + ], + "contactMechs": [ + { + "contactMechId": "100489", + "contactMechPurposeTypeId": "SHIPPING_LOCATION" + }, + { + "contactMechId": "100490", + "contactMechPurposeTypeId": "PHONE_SHIPPING" + }, + { + "contactMechId": "100491", + "contactMechPurposeTypeId": "SHIPPING_EMAIL" + }, + { + "contactMechId": "100495", + "contactMechPurposeTypeId": "ORDER_EMAIL" + } + ], + "identifications": [ + { + "idType": "SHOPIFY_ORD_NAME", + "idValue": "2345678876545" + }, + { + "idType": "SHOPIFY_ORD_ID", + "idValue": "4444992255" + } + ], + "paymentPreferences": [ + { + "paymentMethodTypeId": "EXT_SHOP_OTHR_GTWAY", + "maxAmount": "25000", + "statusId": "PAYMENT_AUTHORIZED", + "paymentMode": "", + "cardName": "", + "manualAuthCode": null, + "manualRefNum": "45545454545454", + "createdByUserLogin": "nishtha.jain", + "orderId": "100783" + } + ], + "roles": [ + { + "partyId": "100395", + "roleTypeId": "PLACING_CUSTOMER" + }, + { + "partyId": "100395", + "roleTypeId": "END_USER_CUSTOMER" + }, + { + "partyId": "100395", + "roleTypeId": "SHIP_TO_CUSTOMER" + }, + { + "partyId": "100395", + "roleTypeId": "BILL_TO_CUSTOMER" + } + ], + "shipGroups": [ + { + "facilityId": "NEW_ERA_HARAJUKU", + "maySplit": "Y", + "shipmentMethodTypeId": "STOREPICKUP", + "carrierPartyId": "_NA_", + "shipAfterDate": "", + "shipByDate": "", + "trackingNumber": "8888888888", + "contactMechId": "100489", + "telecomContactMechId": "100490", + "items": [ { - "partyId": "100395", - "roleTypeId": "END_USER_CUSTOMER" - }, - { - "partyId": "100395", - "roleTypeId": "SHIP_TO_CUSTOMER" - }, - { - "partyId": "100395", - "roleTypeId": "BILL_TO_CUSTOMER" - } - ], - "shipGroups": [ - { - "facilityId": "NEW_ERA_HARAJUKU", - "maySplit": "Y", - "shipmentMethodTypeId": "STOREPICKUP", - "carrierPartyId": "_NA_", - "shipAfterDate": "", - "shipByDate": "", - "trackingNumber": "8888888888", - "contactMechId": "100489", - "telecomContactMechId": "100490", - "items": [ + "externalId": "100097001712202", + "productId": "10022", + "sku": "BLACK_BELL_BOTTOM_S", + "quantity": 1, + "statusId": "ITEM_CREATED", + "itemDescription": "", + "unitPrice": 500, + "unitListPrice": 1370, + "statuses": { + "statusId": "ITEM_CREATED", + "statusDatetime": "2024-07-30T15:23:47+0000", + "statusUserLogin": "nishtha.jain" + }, + "adjustments": [ + { + "orderAdjustmentTypeId": "EXT_PROMO_ADJUSTMENT", + "amount": "200", + "exemptAmount": "2.5", + "comments": "IDK", + "sourcePercentage": "5", + "adjustmentAttributes": [ { - "externalId": "100097001712202", - "productId": "10022", - "sku": "BLACK_BELL_BOTTOM_S", - "quantity": 1, - "statusId": "ITEM_CREATED", - "itemDescription": "", - "unitPrice": 500, - "unitListPrice": 1370, - "status": { - "statusId": "ITEM_CREATED", - "statusDatetime": "2024-07-30T15:23:47+0000", - "statusUserLogin": "nishtha.jain" - }, - "adjustments": [ - { - "orderAdjustmentTypeId:"EXT_PROMO_ADJUSTMENT", - "amount": "200", - "exemptAmount": "2.5", - "comments": "IDK", - "sourcePercentage": "5", - "adjustmentAttributes": [ - { - "attrName": "description", - "attrValue": "Early bird discount" - } - ] - } - ], - "itemAttributes": [ - { - "attrName": "_pickupstore", - "attrValue": "NEW_ERA_HARAJUKU", - "attrDescription": "" - } - ] + "attrName": "description", + "attrValue": "Early bird discount" } - ] + ] + } + ], + "itemAttributes": [ + { + "attrName": "_pickupstore", + "attrValue": "NEW_ERA_HARAJUKU", + "attrDescription": "" + } + ] } - ], - "status": { - "statusId": "ORDER_CREATED", - "statusUserLogin": "nishtha.jain", - "statusDatetime": "2024-07-30T15:23:47+0000" - } + ], + "orderFacilityId": "" + } + ], + "statuses": { + "statusId": "ORDER_CREATED", + "statusUserLogin": "nishtha.jain", + "statusDatetime": "2024-07-30T15:23:47+0000" + } } ``` diff --git a/project-ideas/order-ledger/createSalesOrder.md b/project-ideas/order-ledger/createSalesOrder.md index 894102a..b5fe131 100644 --- a/project-ideas/order-ledger/createSalesOrder.md +++ b/project-ideas/order-ledger/createSalesOrder.md @@ -1,47 +1,210 @@ ### co.hotwax.orderledger.order.OrderServices.create#SalesOrder (Application Layer - OMS) -This service will take in the order JSON in OMSNewOrdersFeed and set up a complete order by performing any surrounding crud operations as needed. + +This is the application layer service which will be responsible for +1. handling multiple business rules like existence checks, validating customer, facility, products, etc. +2. coordinating calls to multiple lower level services in the right sequence to achieve the order creation. This includes create Customer, Contact Mechs etc. + +This service will take in the order JSON transformed from the response received from an external API request (REST/GraphQL) and create the payload for the core create#org.apache.ofbiz.order.order.OrderHeader service by performing any surrounding validations and crud operations as needed. + 1. Parameters * Input Parameters - * orderJson (Map) -2. Initialize orderContext -3. Set following to orderContext - * orderContext.externalId = orderJson.externalId - * orderContext.orderTypeId = "SALES_ORDER" - * orderContext.orderName = orderJson.name - * orderContext.salesChannelEnumId = orderJson.salesChannelEnumId - * orderContext.orderDate = orderJson.createdAt - * orderContext.currencyUom = orderJson.currencyUom - * orderContext.presentmentCurrencyUom = orderJson.presentmentCurrencyUom - * orderContext.grandTotal = orderJson.grandTotal - * orderContext.remainingSubTotal = orderJson.remainingSubTotal - * orderContext.statusId = orderJson.statusId - * orderContext.productStoreId = orderJson.productStoreId - * orderContext.attributes = orderJson.attributes - * orderContext.adjustments = orderJson.adjustments -4. Initialize orderContext.roles list - * Call findOrCreate#Person for orderJson.customer - * Add [partyId:findOrCreatePartyOutput.partyId, roleTypeId:"SHIP_TO_CUSTOMER"] to orderContext.roles + * payload (Map) +2. Validate order by checking OrderHeader.externalId to avoid duplication of order +3. Initialize payload.roles list + * Call findOrCreate#Person for payload.customer + * Add [partyId:findOrCreatePersonOutput.partyId, roleTypeId:"SHIP_TO_CUSTOMER"] to payload.roles * Get ProductStore for orderJson.productStoreId - * Add [partyId:ProductStore.payToPartyId, roleTypeId:"SHIP_FROM_VENDOR"] to orderContext.roles -5. Initialize orderContext.contactMechs list - * For orderJson.shipToAddress map call create#PostalAddress with input as orderJson.shipToAddress - * Set shipToAddressContactMechId = createPostalAddressOutput.contactMechId - * Add [contatctMechId:shipToAddressContactMechId, contactMechPurposeTypeId:"SHIPPING_LOCATION"] to orderContext.contactMechs - * Call create#ContactMech for [contactMechTypeId:"TELECOM_NUMBER", infoString:orderJson.shipToPhone] - * Set shipToPhoneContactMechId = createContactMechOutput.contactMechId - * Add [contatctMechId:shipToPhoneContactMechId, contactMechPurposeTypeId:"PHONE_SHIPPING"] to orderContext.contactMechs - * Call create#ContactMech for [contactMechTypeId:"EMAIL_ADDRESS", infoString:orderJson.email] - * Add [contatctMechId:createContactMechOutput.contactMechId, contactMechPurposeTypeId:"ORDER_EMAIL"] to orderContext.contactMechs - * If orderJson.billToAddress - * For orderJson.billToAddress map call create#PostalAddress with input as orderJson.billToAddress - * Add [contatctMechId:createPostalAddressOutput.contactMechId, contactMechPurposeTypeId:"BILLING_LOCATION"] to orderContext.contactMechs - * If orderJson.billToPhone - * Call create#ContactMech for [contactMechTypeId:"TELECOM_NUMBER", infoString:orderJson.billToPhone] - * Add [contatctMechId:createContactMechOutput.contactMechId, contactMechPurposeTypeId:"PHONE_BILLING"] to orderContext.contactMechs + * Add [partyId:ProductStore.payToPartyId, roleTypeId:"SHIP_FROM_VENDOR"] to payload.roles +4. Initialize payload.contactMechs list + * If orderJson.shipping_address map + * call co.hotwax.oms.contact.ContactMechServices.create#PostalAddress with input as orderJson.shipping_address + * Add [contactMechId:shipToAddressOut.contactMechId, contactMechPurposeTypeId:"SHIPPING_LOCATION"] to payload.contactMechs + * If orderJson.shipping_address.phone + * call co.hotwax.oms.contact.ContactMechServices.create#TelecomNumber with input as orderJson.shipping_address.phone + * Add [contactMechId:shipToPhoneOut.contactMechId, contactMechPurposeTypeId:"PHONE_SHIPPING"] to payload.contactMechs + * If orderJson.shipping_address.email + * Call create#org.apache.ofbiz.party.contact.ContactMech for [contactMechTypeId:"EMAIL_ADDRESS", infoString:orderJson.shipping_address.email] + * Add [contactMechId:shipToEmailOut.contactMechId, contactMechPurposeTypeId:"SHIPPING_EMAIL"] to payload.contactMechs + * If orderJson.billing_address map + * call co.hotwax.oms.contact.ContactMechServices.create#PostalAddress with input as orderJson.billing_address + * Add [contactMechId:billToAddressOut.contactMechId, contactMechPurposeTypeId:"BILLING_LOCATION"] to payload.contactMechs + * If orderJson.billing_address.phone + * Call co.hotwax.oms.contact.ContactMechServices.create#ContactMech for orderJson.shipping_address.phone + * Add [contatctMechId:billToPhoneOut.contactMechId, contactMechPurposeTypeId:"PHONE_BILLING"] to payload.contactMechs + * If orderJson.billing_address.email + * Call create#org.apache.ofbiz.party.contact.ContactMech for [contactMechTypeId:"EMAIL_ADDRESS", infoString:orderJson.billing_address.email] + * Add [contactMechId:billToEmailOut.contactMechId, contactMechPurposeTypeId:"BILLING_EMAIL"] to payload.contactMechs +5. Check if payload.email exists + * If yes, then call create#org.apache.ofbiz.party.contact.ContactMech for [contactMechTypeId:"EMAIL_ADDRESS", infoString:orderJson.email] + * Add Add [contactMechId:orderEmailOut.contactMechId, contactMechPurposeTypeId:"ORDER_EMAIL"] to payload.contactMechs 6. Iterate through orderJson.shipGroups as shipGroup * Iterate through shipGroup.items as item * Set productSku = remove item.productSku * Call findOrCreate#Product for [internalName:productSku] map * Set item.productId = findOrCreateProductOutput.productId -7. Set orderContext.shipGroups = orderJson.shipGroups -8. Call create#org.apache.ofbiz.order.order.OrderHeader for orderContext \ No newline at end of file +7. Set payload.shipGroups = orderJson.shipGroups +8. Call create#org.apache.ofbiz.order.order.OrderHeader for payload + +```json +{ + "currencyUom": "USD", + "customerClassificationId": null, + "entryDate": "2024-07-30T15:23:47+0000", + "externalId": "444455555", + "orderDate": "2024-07-25T04:07:49.956", + "orderName": "#499999", + "orderTypeId": "SALES_ORDER", + "statusId": "ORDER_CREATED", + "originFacilityId": "", + "presentmentCurrencyCode": "USD", + "priority": "2", + "productStoreId": "STORE", + "salesChannelEnumId": "UNKNWN_SALES_CHANNEL", + "webSiteId": "WEBSTORE", + "adjustments": [ + { + "orderAdjustmentTypeId": "SHIPPING_CHARGES", + "amount": "500", + "exemptAmount": "2.5", + "comments": "", + "sourcePercentage": "5", + "adjustmentAttributes": [ + { + "attrName": "taxAuthority", + "attrValue": "State of California", + "attrDescription": "state tax" + } + ] + } + ], + "attributes": [ + { + "attrName": "item", + "attrValue": "testing attribute", + "attrDescription": "" + } + ], + "email": "abc@gmail.com", + "customer": { + "partyId": "Doe", + "externalId": 22889483207024, + "first_name": "John", + "last_name": "Doe" + }, + "billing_address": { + "email": "abc@gmail.com", + "first_name": "John", + "address1": "1020 Thalia Street", + "phone": "+17869573716", + "city": "New Orleans", + "zip": "70130", + "province": "Louisiana", + "country": "United States", + "last_name": "Doe", + "address2": null, + "company": null, + "latitude": 29.9377606, + "longitude": -90.07084449999999, + "name": "John Doe", + "country_code": "US", + "province_code": "LA" + }, + "shipping_address": { + "email": "abc@gmail.com", + "first_name": "John", + "address1": "1020 Thalia Street", + "phone": "+17869573716", + "city": "New Orleans", + "zip": "70130", + "province": "Louisiana", + "country": "United States", + "last_name": "Doe", + "address2": null, + "company": null, + "latitude": 29.9377606, + "longitude": -90.07084449999999, + "name": "John Doe", + "country_code": "US", + "province_code": "LA" + }, + "identifications": [ + { + "idType": "SHOPIFY_ORD_NAME", + "idValue": "2345678876545" + }, + { + "idType": "SHOPIFY_ORD_ID", + "idValue": "4444992255" + } + ], + "paymentPreferences": [ + { + "paymentMethodTypeId": "EXT_SHOP_OTHR_GTWAY", + "maxAmount": "25000", + "statusId": "PAYMENT_AUTHORIZED", + "paymentMode": "", + "cardName": "", + "manualAuthCode": null, + "manualRefNum": "45545454545454", + "createdByUserLogin": "nishtha.jain", + "orderId": "100783" + } + ], + "shipGroups": [ + { + "facilityId": "NEW_ERA_HARAJUKU", + "maySplit": "Y", + "shipmentMethodTypeId": "STOREPICKUP", + "carrierPartyId": "_NA_", + "shipAfterDate": "", + "shipByDate": "", + "trackingNumber": "8888888888", + "contactMechId": "100489", + "telecomContactMechId": "100490", + "items": [ + { + "externalId": "100097001712202", + "productId": "10022", + "sku": "BLACK_BELL_BOTTOM_S", + "quantity": 1, + "statusId": "ITEM_CREATED", + "itemDescription": "", + "unitPrice": 500, + "unitListPrice": 1370, + "status": { + "statusId": "ITEM_CREATED", + "statusDatetime": "2024-07-30T15:23:47+0000", + "statusUserLogin": "nishtha.jain" + }, + "adjustments": [ + { + "orderAdjustmentTypeId": "EXT_PROMO_ADJUSTMENT", + "amount": "200", + "exemptAmount": "2.5", + "comments": "IDK", + "sourcePercentage": "5", + "adjustmentAttributes": [ + { + "attrName": "description", + "attrValue": "Early bird discount" + } + ] + } + ], + "itemAttributes": [ + { + "attrName": "_pickupstore", + "attrValue": "NEW_ERA_HARAJUKU", + "attrDescription": "" + } + ] + } + ] + } + ], + "status": { + "statusId": "ORDER_CREATED", + "statusUserLogin": "nishtha.jain", + "statusDatetime": "2024-07-30T15:23:47+0000" + } +} \ No newline at end of file From fa800ef43e2380c83ee8cad0ba7f0907b8375cc1 Mon Sep 17 00:00:00 2001 From: Gurveen Kaur Date: Mon, 15 Sep 2025 18:51:14 +0530 Subject: [PATCH 2/2] Reverted the formatting changes of createOrder.md and kept only the json changes --- project-ideas/oms/createOrder.md | 296 +++++++++++++++---------------- 1 file changed, 148 insertions(+), 148 deletions(-) diff --git a/project-ideas/oms/createOrder.md b/project-ideas/oms/createOrder.md index af67294..f4530a6 100644 --- a/project-ideas/oms/createOrder.md +++ b/project-ideas/oms/createOrder.md @@ -22,160 +22,160 @@ This service creates data in following entities: ```json { - "currencyUom": "USD", - "customerClassificationId": null, - "entryDate": "2024-07-30T15:23:47+0000", - "externalId": "444455555", - "orderDate": "2024-07-25T04:07:49.956", - "orderName": "#499999", - "orderTypeId": "SALES_ORDER", - "statusId": "ORDER_CREATED", - "originFacilityId": "", - "presentmentCurrencyCode": "USD", - "priority": "2", - "productStoreId": "STORE", - "salesChannelEnumId": "UNKNWN_SALES_CHANNEL", - "webSiteId": "WEBSTORE", - "adjustments": [ - { - "orderAdjustmentTypeId": "SHIPPING_CHARGES", - "amount": "500", - "exemptAmount": "2.5", - "comments": "", - "sourcePercentage": "5", - "adjustmentAttributes": [ + "currencyUom": "USD", + "customerClassificationId": null, + "entryDate": "2024-07-30T15:23:47+0000", + "externalId": "444455555", + "orderDate": "2024-07-25T04:07:49.956", + "orderName": "#499999", + "orderTypeId": "SALES_ORDER", + "statusId": "ORDER_CREATED", + "originFacilityId": "", + "presentmentCurrencyCode": "USD", + "priority": "2", + "productStoreId": "STORE", + "salesChannelEnumId": "UNKNWN_SALES_CHANNEL", + "webSiteId": "WEBSTORE", + "adjustments": [ + { + "orderAdjustmentTypeId": "SHIPPING_CHARGES", + "amount": "500", + "exemptAmount": "2.5", + "comments": "", + "sourcePercentage": "5", + "adjustmentAttributes": [ + { + "attrName": "taxAuthority", + "attrValue": "State of California", + "attrDescription": "state tax" + } + ] + } + ], + "attributes": [ + { + "attrName": "item", + "attrValue": "testing attribute", + "attrDescription": "" + } + ], + "contactMechs": [ + { + "contactMechId": "100489", + "contactMechPurposeTypeId": "SHIPPING_LOCATION" + }, + { + "contactMechId": "100490", + "contactMechPurposeTypeId": "PHONE_SHIPPING" + }, + { + "contactMechId": "100491", + "contactMechPurposeTypeId": "SHIPPING_EMAIL" + }, { - "attrName": "taxAuthority", - "attrValue": "State of California", - "attrDescription": "state tax" + "contactMechId": "100495", + "contactMechPurposeTypeId": "ORDER_EMAIL" } - ] - } - ], - "attributes": [ - { - "attrName": "item", - "attrValue": "testing attribute", - "attrDescription": "" - } - ], - "contactMechs": [ - { - "contactMechId": "100489", - "contactMechPurposeTypeId": "SHIPPING_LOCATION" - }, - { - "contactMechId": "100490", - "contactMechPurposeTypeId": "PHONE_SHIPPING" - }, - { - "contactMechId": "100491", - "contactMechPurposeTypeId": "SHIPPING_EMAIL" - }, - { - "contactMechId": "100495", - "contactMechPurposeTypeId": "ORDER_EMAIL" - } - ], - "identifications": [ - { - "idType": "SHOPIFY_ORD_NAME", - "idValue": "2345678876545" - }, - { - "idType": "SHOPIFY_ORD_ID", - "idValue": "4444992255" - } - ], - "paymentPreferences": [ - { - "paymentMethodTypeId": "EXT_SHOP_OTHR_GTWAY", - "maxAmount": "25000", - "statusId": "PAYMENT_AUTHORIZED", - "paymentMode": "", - "cardName": "", - "manualAuthCode": null, - "manualRefNum": "45545454545454", - "createdByUserLogin": "nishtha.jain", - "orderId": "100783" - } - ], - "roles": [ - { - "partyId": "100395", - "roleTypeId": "PLACING_CUSTOMER" - }, - { - "partyId": "100395", - "roleTypeId": "END_USER_CUSTOMER" - }, - { - "partyId": "100395", - "roleTypeId": "SHIP_TO_CUSTOMER" - }, - { - "partyId": "100395", - "roleTypeId": "BILL_TO_CUSTOMER" - } - ], - "shipGroups": [ - { - "facilityId": "NEW_ERA_HARAJUKU", - "maySplit": "Y", - "shipmentMethodTypeId": "STOREPICKUP", - "carrierPartyId": "_NA_", - "shipAfterDate": "", - "shipByDate": "", - "trackingNumber": "8888888888", - "contactMechId": "100489", - "telecomContactMechId": "100490", - "items": [ + ], + "identifications": [ { - "externalId": "100097001712202", - "productId": "10022", - "sku": "BLACK_BELL_BOTTOM_S", - "quantity": 1, - "statusId": "ITEM_CREATED", - "itemDescription": "", - "unitPrice": 500, - "unitListPrice": 1370, - "statuses": { - "statusId": "ITEM_CREATED", - "statusDatetime": "2024-07-30T15:23:47+0000", - "statusUserLogin": "nishtha.jain" - }, - "adjustments": [ - { - "orderAdjustmentTypeId": "EXT_PROMO_ADJUSTMENT", - "amount": "200", - "exemptAmount": "2.5", - "comments": "IDK", - "sourcePercentage": "5", - "adjustmentAttributes": [ + "idType": "SHOPIFY_ORD_NAME", + "idValue": "2345678876545" + }, + { + "idType": "SHOPIFY_ORD_ID", + "idValue": "4444992255" + } + ], + "paymentPreferences": [ + { + "paymentMethodTypeId": "EXT_SHOP_OTHR_GTWAY", + "maxAmount": "25000", + "statusId": "PAYMENT_AUTHORIZED", + "paymentMode": "", + "cardName": "", + "manualAuthCode": null, + "manualRefNum": "45545454545454", + "createdByUserLogin": "nishtha.jain", + "orderId": "100783" + } + ], + "roles": [ + { + "partyId": "100395", + "roleTypeId": "PLACING_CUSTOMER" + }, + { + "partyId": "100395", + "roleTypeId": "END_USER_CUSTOMER" + }, + { + "partyId": "100395", + "roleTypeId": "SHIP_TO_CUSTOMER" + }, + { + "partyId": "100395", + "roleTypeId": "BILL_TO_CUSTOMER" + } + ], + "shipGroups": [ + { + "facilityId": "NEW_ERA_HARAJUKU", + "maySplit": "Y", + "shipmentMethodTypeId": "STOREPICKUP", + "carrierPartyId": "_NA_", + "shipAfterDate": "", + "shipByDate": "", + "trackingNumber": "8888888888", + "contactMechId": "100489", + "telecomContactMechId": "100490", + "items": [ { - "attrName": "description", - "attrValue": "Early bird discount" + "externalId": "100097001712202", + "productId": "10022", + "sku": "BLACK_BELL_BOTTOM_S", + "quantity": 1, + "statusId": "ITEM_CREATED", + "itemDescription": "", + "unitPrice": 500, + "unitListPrice": 1370, + "statuses": { + "statusId": "ITEM_CREATED", + "statusDatetime": "2024-07-30T15:23:47+0000", + "statusUserLogin": "nishtha.jain" + }, + "adjustments": [ + { + "orderAdjustmentTypeId": "EXT_PROMO_ADJUSTMENT", + "amount": "200", + "exemptAmount": "2.5", + "comments": "IDK", + "sourcePercentage": "5", + "adjustmentAttributes": [ + { + "attrName": "description", + "attrValue": "Early bird discount" + } + ] + } + ], + "itemAttributes": [ + { + "attrName": "_pickupstore", + "attrValue": "NEW_ERA_HARAJUKU", + "attrDescription": "" + } + ] } - ] - } - ], - "itemAttributes": [ - { - "attrName": "_pickupstore", - "attrValue": "NEW_ERA_HARAJUKU", - "attrDescription": "" - } - ] + ], + "orderFacilityId": "" } - ], - "orderFacilityId": "" - } - ], - "statuses": { - "statusId": "ORDER_CREATED", - "statusUserLogin": "nishtha.jain", - "statusDatetime": "2024-07-30T15:23:47+0000" - } + ], + "statuses": { + "statusId": "ORDER_CREATED", + "statusUserLogin": "nishtha.jain", + "statusDatetime": "2024-07-30T15:23:47+0000" + } } ```