support-flow-chat-ui / home_depot_result.py
colin4554's picture
cleanup structure
12f769d
home_depot_result = {
"orderDetails": {
"bopisCancelEnabled": False,
"id": "WG37810008",
"versionId": "v0:Cj4KAjEwEh1IRFByb2Nlc3NTVlNUcmFuc2FjdGlvblNlcnZlchoZMjAyMy0wNy0xNFQyMjoyNTozMi0wNDowMA==",
"orderRefNumber": "WG37810008",
"status": "Delivered",
"statusCode": 105,
"grandTotal": 128.5,
"subTotal": 118.0,
"taxTotal": 10.5,
"returnTotal": 0.0,
"shippingCharge": 0.0,
"deliveryCharge": 0.0,
"createDateTime": "2023-07-13T21:30:23-04:00",
"changeOwner": "COM",
"fulfillmentOwner": "COM",
"emailId": "colin.flueck@gmail.com",
"billingAddress": {
"addrIdentifier": 0,
"emailId": "colin.flueck@gmail.com",
"name": {
"firstName": "Colin",
"lastName": "Flueck"
},
"postalDetails": {
"addressLine1": "4237 Western Ave",
"city": "WESTERN SPRINGS",
"state": "IL",
"zipCode": "60558",
"country": "US"
},
"primaryPhone": {
"number": "6307508897"
}
},
"lineItems": {
"lineItem": [
{
"lineId": "1",
"lineSeqNum": "1",
"type": "Special Order Merchandise",
"statusCode": 105,
"statusUpdatedDate": "2023-07-15",
"status": "Delivered",
"omsId": 317984876,
"storeSKU": "1007491039",
"modelNumber": "PCL206B",
"department": "25",
"itemClass": "9",
"itemSubClass": 3,
"vendorNumber": "72793",
"poNumber": "84632203",
"upcCode": "033287200160",
"itemWeightUnitOfMeasure": "LB",
"itemWeight": 3.00,
"scac": "UPS",
"brandName": "RYOBI",
"description": "ONE+ 18V Cordless 1/2 in. Drill/Driver (Tool Only)",
"currentQuantity": 2,
"orginalOrderedQuantity": 2,
"cancelledQuantity": 0,
"deliveredDateArray": [
"2023-07-15"
],
"unitPrice": 59.0,
"totalPrice": 118.0,
"pipSeoUrl": "/p/RYOBI-ONE-18V-Cordless-1-2-in-Drill-Driver-Tool-Only-PCL206B/317984876",
"imageUrl": "https://images.thdstatic.com/productImages/30cdd64e-b560-437c-8f90-3da447ed73d6/svn/ryobi-power-drills-pcl206b-64_100.jpg",
"productType": "MERCHANDISE",
"documents": {
"document": [
{
"name": "Warranty",
"url": "https://www.homedepot.com/catalog/pdfImages/61/61911e01-07fb-40d6-9b71-236f60d155bc.pdf"
},
{
"name": "Use and Care Manual",
"url": "https://www.homedepot.com/catalog/pdfImages/eb/eb728d57-8608-49cb-bfad-3760d0b4d9cf.pdf"
}
]
},
"fulfillment": {
"fulfillmentMethod": "ShipToHome",
"shippingAndHandling": {
"shipmentModeCode": "SG",
"shippingDescription": "Standard Shipping",
"shippingProvider": "UPS",
"shippingProviderCode": "UPS",
"shippingStatus": "Delivered",
"isCarrierIntegrationAvailable": True,
"trackingURL": "http://www.ups.com/",
"comEstEndDeliveryDate": "2023-07-15T00:00:00-04:00",
"shipments": {
"shipment": [
{
"trackingNumber": "1ZRX95040358704846",
"shippingProviderCode": "UPS",
"isCarrierIntegrationAvailable": True,
"trackingURL": "http://www.ups.com/",
"shipmentModeCode": "SG",
"shippingProvider": "UPS",
"trackingType": "LastMile",
"estimatedDeliveryDate": "2023-07-15"
}
]
},
"deliveryAddress": {
"name": {
"firstName": "Colin",
"lastName": "Flueck"
},
"postalDetails": {
"addressLine1": "176 5th St Nw",
"city": "ATLANTA",
"state": "GA",
"zipCode": "30313",
"country": "US"
},
"phoneNumbers": {
"dayPhone": "6307508897",
"mobilePhone": "6307508897"
}
},
"estStartDeliveryDate": "2023-07-15",
"estEndDeliveryDate": "2023-07-15",
"isLineHaul": False
}
},
"hideSKU": False,
"bossReorderZeroQuantity": False,
"isInstallItem": False,
"isCancelEnabled": False,
"isDFCSourced": True,
"isDFSCancelEnabled": False,
"isDFSRescheduleEnabled": False,
"actions": {
"buyAgain": True,
"isCancelEnabled": False,
"infoAndGuides": True,
"writeAReview": True,
"isDFSCancelEnabled": False,
"isDFSRescheduleEnabled": False
},
"isCOMAppliance": False,
"isBODFS": False,
"isDFS": False,
"delayedShipment": False,
"isGiftCard": False
}
]
},
"paymentMethods": {
"paymentMethod": [
{
"amount": 128.5,
"lastFour": "2291",
"cardType": "VI"
}
]
},
"trackingToLineAssociations": {
"trackingToLineAssociation": [
{
"trackingNumber": "1ZRX95040358704846",
"lineIds": "1"
}
]
},
"lineIdsWithoutTracking": "",
"returnOnlineAllowed": False,
"authDeclined": False,
"workOrderToLineAssociations": {
"workOrderToLineAssociations": []
},
"isCancelEnabled": False,
"isDFCSourced": True,
"orderGroups": [
{
"fulfillment": "ShipToHome",
"status": "Delivered",
"name": {
"firstName": "Colin",
"lastName": "Flueck"
},
"postalDetails": {
"addressLine1": "176 5th St Nw",
"city": "ATLANTA",
"state": "GA",
"zipCode": "30313",
"country": "US"
},
"actions": {
"trackingEnabled": False
},
"lineAssociation": [
"1"
],
"groupName": "ShipToHome_Delivered_1ZRX95040358704846",
"statusCode": 105,
"shipments": [
{
"trackingNumber": "1ZRX95040358704846",
"shippingProviderCode": "UPS",
"isCarrierIntegrationAvailable": True,
"trackingURL": "http://www.ups.com/",
"shipmentModeCode": "SG",
"shippingProvider": "UPS",
"trackingType": "LastMile",
"estimatedDeliveryDate": "2023-07-15"
}
],
"estDeliveryDate": "2023-07-15"
}
],
"trackingEnabled": False,
"cancellationRequested": False,
"isLineItemCancelEnabled": False,
"otherDiscountAmount": 0.00,
"isNEXOrder": False,
"isAAFESOrder": False,
"xAuthGuestToken": "If2SMV4Uhc6LadRhSbMf1wcvdgrbI1loyZFvAUHmrbjtOw53r22952ISw8UhvluZJjtcEfCdPid4KV7ph8vP8A=="
}
}