{ "context":{ "id":"VTEX_ECC_US", "partner":"VTEX_ECC_US", "enabled":true, "locale":{ "name":"United States US", "language":"en_US", "country":"US" } }, "id":"ccdc87fe-0001-bfd5-2475-01961980afe8", "ecommOrderId":"1000000033728-01", "customerEmail":"[email protected]", "customerServiceOrderId":"1000000033728-01", "placedAt":"2025-03-26T20:55", "createdAt":"2025-04-09T07:43:06.216Z", "productLineItems":[ { "id":"fb6f9404-0001-bfd5-2475-01961980d1c0", "ecommId":"PB000007US", "orderLine":"1", "quantity":1, "product":{ "name":"moto g power 5G - 2024", "price":{ "currencyCode":"USD", "basePrice":299.99, "netPrice":169.80, "tax":21.75, "grossPrice":191.55, "totalPrice":191.55 }, "productId":"PB000007US", "productOptions":[ ] }, "warehouseId":"US2", "additionalProperties":{ "inventory_reservation_id":"1000000033728-01", "brandName":"Motorola", "quantity":"2", "parentItemIndex":"null", "manufacturerCode":"PB000007US", "eccCustomAttributes.warehouseId":"MWDC", "shippingWarehouse":"US2", "taxRate":"0.1450", "ean":"null", "fulfillmentSet":"1", "ecommSkuId":"PB000007US", "uniqueId":"1000000033728-01_10713622_0", "basePrice":"29999" }, "version":11, "shipmentEcommId":"1" }, { "id":"5a84cefe-0001-bfd5-2475-01961980d30b", "ecommId":"PB000007US-1", "orderLine":"2", "quantity":1, "product":{ "name":"moto g power 5G - 2024", "price":{ "currencyCode":"USD", "basePrice":299.99, "netPrice":169.80, "tax":21.75, "grossPrice":191.55, "totalPrice":191.55 }, "productId":"PB000007US", "productOptions":[ ] }, "warehouseId":"US2", "additionalProperties":{ "inventory_reservation_id":"1000000033728-01", "brandName":"Motorola", "quantity":"2", "parentItemIndex":"null", "manufacturerCode":"PB000007US", "eccCustomAttributes.warehouseId":"MWDC", "shippingWarehouse":"US2", "taxRate":"0.1450", "ean":"null", "fulfillmentSet":"1", "ecommSkuId":"PB000007US", "uniqueId":"1000000033728-01_10713622_0", "basePrice":"29999" }, "version":11, "shipmentEcommId":"1" }, { "id":"473be1c4-0001-bfd5-2475-01961980d1c0", "ecommId":"PG38C06068", "orderLine":"3", "quantity":1, "product":{ "name":"Moto tag Starlight Blue + Sage Green - 4 Pack", "price":{ "currencyCode":"USD", "basePrice":99.99, "netPrice":56.60, "tax":0, "grossPrice":56.60, "totalPrice":56.60 }, "productId":"PG38C06068", "productOptions":[ ] }, "warehouseId":"US2", "additionalProperties":{ "inventory_reservation_id":"1000000033728-01", "brandName":"Motorola", "quantity":"1", "parentItemIndex":"null", "manufacturerCode":"PG38C06068", "eccCustomAttributes.warehouseId":"MWDC", "shippingWarehouse":"US2", "ean":"null", "fulfillmentSet":"1", "ecommSkuId":"PG38C06068", "giftParentItemIndex":"2", "uniqueId":"1000000033728-01_10711084_1", "basePrice":"0" }, "version":11, "shipmentEcommId":"1" }, { "id":"92073f75-0001-bfd5-2475-01961980d1c0", "ecommId":"PG38C06068", "orderLine":"4", "quantity":1, "product":{ "name":"Moto tag Starlight Blue + Sage Green - 4 Pack", "price":{ "currencyCode":"USD", "basePrice":99.99, "netPrice":56.60, "tax":0, "grossPrice":56.60, "totalPrice":56.60 }, "productId":"PG38C06068", "productOptions":[ ] }, "warehouseId":"US2", "additionalProperties":{ "inventory_reservation_id":"1000000033728-01", "brandName":"Motorola", "quantity":"1", "parentItemIndex":"null", "manufacturerCode":"PG38C06068", "eccCustomAttributes.warehouseId":"MWDC", "shippingWarehouse":"US2", "ean":"null", "fulfillmentSet":"1", "ecommSkuId":"PG38C06068", "giftParentItemIndex":"1", "uniqueId":"1000000033728-01_10711084_2", "basePrice":"0" }, "version":11, "shipmentEcommId":"1" }, { "id":"edc28c36-0001-bfd5-2475-01961980d1c1", "ecommId":"PG38C05764", "orderLine":"5", "quantity":1, "product":{ "name":"moto buds+", "price":{ "currencyCode":"USD", "basePrice":129.99, "netPrice":73.59, "tax":0, "grossPrice":73.59, "totalPrice":73.59 }, "productId":"PG38C05764", "productOptions":[ ] }, "warehouseId":"US2", "additionalProperties":{ "inventory_reservation_id":"1000000033728-01", "brandName":"Motorola", "quantity":"1", "parentItemIndex":"null", "manufacturerCode":"PG38C05764", "eccCustomAttributes.warehouseId":"MWDC", "shippingWarehouse":"US2", "ean":"null", "fulfillmentSet":"1", "ecommSkuId":"PG38C05764", "giftParentItemIndex":"1", "uniqueId":"1000000033728-01_10716175_3", "basePrice":"0" }, "version":11, "shipmentEcommId":"1" }, { "id":"399ec9f6-0001-bfd5-2475-01961980d1c1", "ecommId":"PG38C05764", "orderLine":"6", "quantity":1, "product":{ "name":"moto buds+", "price":{ "currencyCode":"USD", "basePrice":129.99, "netPrice":73.59, "tax":0, "grossPrice":73.59, "totalPrice":73.59 }, "productId":"PG38C05764", "productOptions":[ ] }, "warehouseId":"US2", "additionalProperties":{ "inventory_reservation_id":"1000000033728-01", "brandName":"Motorola", "quantity":"1", "parentItemIndex":"null", "manufacturerCode":"PG38C05764", "eccCustomAttributes.warehouseId":"MWDC", "shippingWarehouse":"US2", "ean":"null", "fulfillmentSet":"1", "ecommSkuId":"PG38C05764", "giftParentItemIndex":"2", "uniqueId":"1000000033728-01_10716175_4", "basePrice":"0" }, "version":11, "shipmentEcommId":"1" } ], "shipments":[ { "id":"846a17b7-0001-bfd5-2475-01961980d1c1", "shippingAddress":{ "address1":"08588 TRI TOWNSHIP RD", "city":"NEW BREMEN", "countryCode":"US", "firstName":"Daniel", "lastName":"Henning", "postalCode":"45869-9780", "stateCode":"OH", "phone":"(419)202-0882" }, "ecommId":"1", "status":"PAID", "promiseDate":"2025-03-26T09:00:00.000Z", "scheduledShipDate":"2025-03-26T09:00:00.000Z", "shippingMethod":"Expedited US", "paymentId":"1354679991592710145", "paymentIds":[ "1354679991592710145" ], "storeFrontId":"demandware Regular Orders - US", "productLineItemIds":[ "1", "2", "3", "4", "5", "6" ], "additionalProperties":{ "motoShippingMethod":"Expedited US", "salesOffice":"US22", "adjustedTax":"0.00", "jurisdictionCode":"USOH4586997800", "stateCode":"OH", "motoScheduledShipDate":"2025-03-26T09:00:00.000Z", "adjustedGrossPrice":"0.00", "adjustedNetPrice":"0.00" }, "version":8 } ], "payments":[ { "id":"76cdfef9-0001-bfd5-2475-01961980d20e", "ecommPaymentId":"1354679991592710145", "paymentType":"CREDIT_CARD", "paymentValue":"643.48", "numberOfInstallments":"0", "billingAddress":{ "address1":"08588 TRI TOWNSHIP RD", "city":"NEW BREMEN", "companyName":"", "countryCode":"US", "firstName":"Daniel", "lastName":"Henning", "postalCode":"45869-9780", "stateCode":"OH", "phone":"(419)202-0882" }, "token":"7430225469136684004983", "additionalProperties":{ "authorize.transactionFeeAmount":"643.48", "processorId":"VTEX", "connector":"vtex-cybersource-v1", "affirmCustomAttributes.chargeId":"", "prePayment":"false", "vtexPaymentId":"1354679991592710145", "paymentBrand":"DISCOVER", "paymentId":"20250415051349468-5df5176f-0001-ba52-1193-019637de2c9c", "processorTransactionId":"", "eccCustomAttributes.paymentType":"DISCOVER", "stateCode":"OH", "paymentType":"DISCOVER" }, "version":9, "paymentObject":{ "amount":643.48, "cardHolder":"Daniel Henning", "creditCardType":"DISCOVER", "currency":"USD", "expirationMonth":"8", "expirationYear":"2025", "method":"CREDIT_CARD", "lastFourCardNumberDigits":"XXXX-XXXX-XXXX-6190" } } ], "status":"PAID", "updatedAt":"2025-04-15T05:19:54.054Z", "prefLanguage":"en_US", "partnerAttributes":{ "paymentSystem":"5", "send-status-to-big-query-SSD_HOLD":"true", "orderSource":"MOTO", "order_context":"VTEX_ECC_US", "rsaOrder":"false", "salesOrg":"US11", "originalEcommOrderId":"1000000033728-01", "accountId":"", "environment":"null", "orderReason":"", "promotions":"{id:ratesAndBenefitsData,rateAndBenefitsIdentifiers:[{description:FREETAGS,featured:false,id:397566623416323,name:FREETAGS,matchedParameters:{couponCode@Marketing:FREETAGS,buyAndWin@Marketing:PB000007US,uniqueId:1000000033728-01_10711084_1}},{description:FREETAGS,featured:false,id:397566623416323,name:FREETAGS,matchedParameters:{couponCode@Marketing:FREETAGS,buyAndWin@Marketing:PB000007US,uniqueId:1000000033728-01_10711084_2}},{description:US_bogo_cancun_flute_moto_tags,featured:false,id:400673716305921,name:US_bogo_cancun_flute_moto_tags,matchedParameters:{buyAndWin@Marketing:PB000007US,uniqueId:1000000033728-01_10716175_3}},{description:US_bogo_cancun_flute_moto_tags,featured:false,id:400673716305921,name:US_bogo_cancun_flute_moto_tags,matchedParameters:{buyAndWin@Marketing:PB000007US,uniqueId:1000000033728-01_10716175_4}}]}", "originalOrder":"{affiliateId:null,allowCancellation:true,allowEdition:false,callCenterOperatorData:{email:null,id:,userName:null},cancelReason:null,cancellationData:null,changesAttachment:null,checkedIn:false,checkedInPickupPointId:null,clientPreferencesData:null,commercialConditionData:null,commercialConditionID:1,completed:null,followUpEmail:null,giftRegistryData:null,invoiceData:null,invoicedDate:null,itemMetadata:{Items:[{AssemblyOptions:[],DetailUrl:/p/phones/moto-g/g-power-5g-gen-2/pmipmgh35m7?pn=PB000007US,Ean:null,Id:PB000007US,ImageUrl:{imageName:Moto-g-Power-5G-pdp-ecom-render-5-color-1-166ljejx1725070923332.png,imageAddress:https://p1-ofp.static.pub/medias/Moto-g-Power-5G-pdp-ecom-render-5-color-1-166ljejx1725070923332.png},Name:moto g power 5G - 2024,ProductId:PB000007US,RefId:PB000007US,Seller:B2C,SkuName:moto g power 5G - 2024},{AssemblyOptions:[],DetailUrl:/p/motoaccessories/all-moto-tags/pg38c06068,Ean:null,Id:PG38C06068,ImageUrl:{imageName:moto-tag-pdp-ecomm-render-3-kit-1725071104259.png,imageAddress:https://p1-ofp.static.pub/medias/moto-tag-pdp-ecomm-render-3-kit-1725071104259.png},Name:Moto tag Starlight Blue + Sage Green - 4 Pack,ProductId:PG38C06068,RefId:PG38C06068,Seller:B2C,SkuName:Moto tag Starlight Blue + Sage Green - 4 Pack},{AssemblyOptions:[],DetailUrl:/p/motoaccessories/all-moto-tags/pg38c06068,Ean:null,Id:PG38C06068,ImageUrl:{imageName:moto-tag-pdp-ecomm-render-3-kit-1725071104259.png,imageAddress:https://p1-ofp.static.pub/medias/moto-tag-pdp-ecomm-render-3-kit-1725071104259.png},Name:Moto tag Starlight Blue + Sage Green - 4 Pack,ProductId:PG38C06068,RefId:PG38C06068,Seller:B2C,SkuName:Moto tag Starlight Blue + Sage Green - 4 Pack},{AssemblyOptions:[],DetailUrl:/p/motoaccessories/moto-mods/pg38c05764,Ean:null,Id:PG38C05764,ImageUrl:{imageName:buds,imageAddress:https://p1-ofp.static.pub/medias/motorola-buds-plus-pdp-render-Darkest-Spruce-3-1725455173847.png},Name:moto buds+,ProductId:PG38C05764,RefId:PG38C05764,Seller:B2C,SkuName:moto buds+},{AssemblyOptions:[],DetailUrl:/p/motoaccessories/moto-mods/pg38c05764,Ean:null,Id:PG38C05764,ImageUrl:{imageName:buds,imageAddress:https://p1-ofp.static.pub/medias/motorola-buds-plus-pdp-render-Darkest-Spruce-3-1725455173847.png},Name:moto buds+,ProductId:PG38C05764,RefId:PG38C05764,Seller:B2C,SkuName:moto buds+}]},lastMessage:null,marketingData:null,marketplace:{baseURL:,isCertified:null,name:motorolas},marketplaceItems:[],marketplaceOrderId:null,merchantName:null,openTextField:null,orderId:1000000033728-01,packageAttachment:null,paymentByTransaction:[{ConnectorResponses:{Message:AUTHORIZED,ReturnCode:00,Tid:7430225469136684004983,authId:7430225469136684004983,nsu:null},ShowConnectorResponses:true,authorizationDate:2025-03-26T20:55:48,billingAddressDifferent:true,connector:vtex-cybersource-v1,custom:false,fields:[{name:currencyCode,value:USD},{name:originalPaymentSystem,value:2},{name:cardHolder,value:Daniel Henning},{name:lastDigits,value:6190},{name:expiryMonth,value:8},{name:expiryYear,value:2025},{name:paymentMethod,value:DISC},{name:tid,value:7430225469136684004983},{name:returnMessage,value:AUTHORIZED},{name:returnCode,value:00},{name:connector,value:vtex-cybersource-v1}],group:creditCard,id:1354679991592710145,installments:0,installmentsInterestRate:0,installmentsValue:64348,merchantName:null,paymentSystem:5,paymentSystemName:Discover,referenceValue:64348,self:{href:},status:Authorized,value:64348}],ratesAndBenefitsData:{id:ratesAndBenefitsData,rateAndBenefitsIdentifiers:[{additionalInfo:null,description:FREETAGS,featured:false,id:397566623416323,matchedParameters:{couponCode@Marketing:FREETAGS,buyAndWin@Marketing:PB000007US,uniqueId:1000000033728-01_10711084_1},name:FREETAGS},{additionalInfo:null,description:FREETAGS,featured:false,id:397566623416323,matchedParameters:{couponCode@Marketing:FREETAGS,buyAndWin@Marketing:PB000007US,uniqueId:1000000033728-01_10711084_2},name:FREETAGS},{additionalInfo:null,description:US_bogo_cancun_flute_moto_tags,featured:false,id:400673716305921,matchedParameters:{buyAndWin@Marketing:PB000007US,uniqueId:1000000033728-01_10716175_3},name:US_bogo_cancun_flute_moto_tags},{additionalInfo:null,description:US_bogo_cancun_flute_moto_tags,featured:false,id:400673716305921,matchedParameters:{buyAndWin@Marketing:PB000007US,uniqueId:1000000033728-01_10716175_4},name:US_bogo_cancun_flute_moto_tags}]},roundingError:null,storePreferencesData:{countryCode:US,currencyCode:USD,currencyFormatInfo:{CurrencyDecimalDigits:2,CurrencyDecimalSeparator:.,CurrencyGroupSeparator:,,CurrencyGroupSize:3,StartsWithCurrencySymbol:true},currencyLocale:0,currencySymbol:$,timeZone:Coordinated Universal Time},subscriptionData:null,taxData:null,transactionDetails:{authorizationDate:2025-03-26T20:55:48,authorizationToken:7430225469136684004983,buyer:null,channel:MOTOROLAS,chargeback:null,fields:[{name:salesChannel,value:1},{name:orderGroup,value:1000000033728-01},{name:shippingData,value:1000000033728-01},{name:clientProfileData,value:1000000033728-01},{name:shippingData,value:1000000033728-01}],id:1354679991592710145,ipAddress:null,macId:null,receiverUri:null,referenceKey:1000000033728-01,salesChannel:1,sessionId:null,shopperInteraction:ecommerce,startDate:2025-03-26T20:55:48,status:Approved,totalRefunds:0.0,transactionId:1354679991592710145,urn:null,value:64348},transactionInteractions:[],workflowIsInError:false,sequence:1000000033728-01,marketplaceServicesEndpoint:null,sellerOrderId:1000000033728-01,origin:motousb2c,salesChannel:1,status:ready-for-handling,statusDescription:ready-for-handling,value:64348,creationDate:2025-03-26T20:55:49Z,lastChange:2025-03-27T09:11:16Z,orderGroup:1000000033728-01,totals:[{alternativeTotals:[],id:Items,name:Items Total,value:105994},{alternativeTotals:[],id:Discounts,name:Discounts Total,value:-45996},{alternativeTotals:[],id:Shipping,name:Shipping Total,value:0},{alternativeTotals:[],id:Tax,name:Tax Total,value:4350},{alternativeTotals:[],id:CustomTax,name:PRODUCT TAXES,value:4350},{alternativeTotals:[],id:CustomTax,name:CO RDF FEE,value:0},{alternativeTotals:[],id:CustomTax,name:FREIGHT TAXES,value:0}],items:[{additionalInfo:{brandId:null,brandName:Motorola,categories:[],categoriesIds:null,commercialConditionId:1,dimension:null,offeringInfo:null,offeringType:null,productClusterId:null},assemblies:[],attachmentOfferings:[],attachments:[],bundleItems:[],callCenterOperator:null,commission:0,components:[],costPrice:-100,detailUrl:/p/phones/moto-g/g-power-5g-gen-2/pmipmgh35m7?pn=PB000007US,ean:null,freightCommission:0,id:PB000007US,imageUrl:{imageName:Moto-g-Power-5G-pdp-ecom-render-5-color-1-166ljejx1725070923332.png,imageAddress:https://p1-ofp.static.pub/medias/Moto-g-Power-5G-pdp-ecom-render-5-color-1-166ljejx1725070923332.png},isGift:false,itemAttachment:{content:{},name:null},listPrice:29999,lockId:1000000033728-01,manualPrice:null,measurementUnit:null,name:moto g power 5G - 2024,offerings:[],params:[],parentAssemblyBinding:null,parentItemIndex:null,preSaleDate:null,price:29999,priceDefinition:{calculatedSellingPrice:29999,sellingPrices:[{quantity:2,value:29999}],total:null},priceTags:[{identifier:null,jurisCode:USOH4586997800,jurisName:null,jurisType:null,name:TAXHUB@Product taxes,percentual:false,rate:null,rawValue:43.5,value:4350}],priceValidUntil:null,productId:PB000007US,quantity:2,refId:PB000007US,rewardValue:0,seller:B2C,sellerSku:PB000007US,sellingPrice:29999,serialNumbers:null,shippingPrice:null,tax:43.5,taxCode:,uniqueId:1000000033728-01_10713622_0,unitMultiplier:1.0},{additionalInfo:{brandId:null,brandName:Motorola,categories:[],categoriesIds:null,commercialConditionId:1,dimension:null,offeringInfo:null,offeringType:null,productClusterId:null},assemblies:[],attachmentOfferings:[],attachments:[],bundleItems:[],callCenterOperator:null,commission:0,components:[],costPrice:-100,detailUrl:/p/motoaccessories/all-moto-tags/pg38c06068,ean:null,freightCommission:0,id:PG38C06068,imageUrl:{imageName:moto-tag-pdp-ecomm-render-3-kit-1725071104259.png,imageAddress:https://p1-ofp.static.pub/medias/moto-tag-pdp-ecomm-render-3-kit-1725071104259.png},isGift:true,itemAttachment:{content:{},name:null},listPrice:9999,lockId:1000000033728-01,manualPrice:null,measurementUnit:null,name:Moto tag Starlight Blue + Sage Green - 4 Pack,offerings:[],params:[],parentAssemblyBinding:null,parentItemIndex:null,preSaleDate:null,price:0,priceDefinition:{calculatedSellingPrice:0,sellingPrices:[{quantity:1,value:0}],total:null},priceTags:[{identifier:397566623416323,jurisCode:null,jurisName:null,jurisType:null,name:DISCOUNT@MARKETPLACE,percentual:false,rate:null,rawValue:-99.99,value:-9999}],priceValidUntil:null,productId:PG38C06068,quantity:1,refId:PG38C06068,rewardValue:0,seller:B2C,sellerSku:PG38C06068,sellingPrice:0,serialNumbers:null,shippingPrice:null,tax:0.0,taxCode:,uniqueId:1000000033728-01_10711084_1,unitMultiplier:1.0},{additionalInfo:{brandId:null,brandName:Motorola,categories:[],categoriesIds:null,commercialConditionId:1,dimension:null,offeringInfo:null,offeringType:null,productClusterId:null},assemblies:[],attachmentOfferings:[],attachments:[],bundleItems:[],callCenterOperator:null,commission:0,components:[],costPrice:-100,detailUrl:/p/motoaccessories/all-moto-tags/pg38c06068,ean:null,freightCommission:0,id:PG38C06068,imageUrl:{imageName:moto-tag-pdp-ecomm-render-3-kit-1725071104259.png,imageAddress:https://p1-ofp.static.pub/medias/moto-tag-pdp-ecomm-render-3-kit-1725071104259.png},isGift:true,itemAttachment:{content:{},name:null},listPrice:9999,lockId:1000000033728-01,manualPrice:null,measurementUnit:null,name:Moto tag Starlight Blue + Sage Green - 4 Pack,offerings:[],params:[],parentAssemblyBinding:null,parentItemIndex:null,preSaleDate:null,price:0,priceDefinition:{calculatedSellingPrice:0,sellingPrices:[{quantity:1,value:0}],total:null},priceTags:[{identifier:397566623416323,jurisCode:null,jurisName:null,jurisType:null,name:DISCOUNT@MARKETPLACE,percentual:false,rate:null,rawValue:-99.99,value:-9999}],priceValidUntil:null,productId:PG38C06068,quantity:1,refId:PG38C06068,rewardValue:0,seller:B2C,sellerSku:PG38C06068,sellingPrice:0,serialNumbers:null,shippingPrice:null,tax:0.0,taxCode:,uniqueId:1000000033728-01_10711084_2,unitMultiplier:1.0},{additionalInfo:{brandId:null,brandName:Motorola,categories:[],categoriesIds:null,commercialConditionId:1,dimension:null,offeringInfo:null,offeringType:null,productClusterId:null},assemblies:[],attachmentOfferings:[],attachments:[],bundleItems:[],callCenterOperator:null,commission:0,components:[],costPrice:-100,detailUrl:/p/motoaccessories/moto-mods/pg38c05764,ean:null,freightCommission:0,id:PG38C05764,imageUrl:{imageName:buds,imageAddress:https://p1-ofp.static.pub/medias/motorola-buds-plus-pdp-render-Darkest-Spruce-3-1725455173847.png},isGift:true,itemAttachment:{content:{},name:null},listPrice:12999,lockId:1000000033728-01,manualPrice:null,measurementUnit:null,name:moto buds+,offerings:[],params:[],parentAssemblyBinding:null,parentItemIndex:null,preSaleDate:null,price:0,priceDefinition:{calculatedSellingPrice:0,sellingPrices:[{quantity:1,value:0}],total:null},priceTags:[{identifier:400673716305921,jurisCode:null,jurisName:null,jurisType:null,name:DISCOUNT@MARKETPLACE,percentual:false,rate:null,rawValue:-129.99,value:-12999}],priceValidUntil:null,productId:PG38C05764,quantity:1,refId:PG38C05764,rewardValue:0,seller:B2C,sellerSku:PG38C05764,sellingPrice:0,serialNumbers:null,shippingPrice:null,tax:0.0,taxCode:,uniqueId:1000000033728-01_10716175_3,unitMultiplier:1.0},{additionalInfo:{brandId:null,brandName:Motorola,categories:[],categoriesIds:null,commercialConditionId:1,dimension:null,offeringInfo:null,offeringType:null,productClusterId:null},assemblies:[],attachmentOfferings:[],attachments:[],bundleItems:[],callCenterOperator:null,commission:0,components:[],costPrice:-100,detailUrl:/p/motoaccessories/moto-mods/pg38c05764,ean:null,freightCommission:0,id:PG38C05764,imageUrl:{imageName:buds,imageAddress:https://p1-ofp.static.pub/medias/motorola-buds-plus-pdp-render-Darkest-Spruce-3-1725455173847.png},isGift:true,itemAttachment:{content:{},name:null},listPrice:12999,lockId:1000000033728-01,manualPrice:null,measurementUnit:null,name:moto buds+,offerings:[],params:[],parentAssemblyBinding:null,parentItemIndex:null,preSaleDate:null,price:0,priceDefinition:{calculatedSellingPrice:0,sellingPrices:[{quantity:1,value:0}],total:null},priceTags:[{identifier:400673716305921,jurisCode:null,jurisName:null,jurisType:null,name:DISCOUNT@MARKETPLACE,percentual:false,rate:null,rawValue:-129.99,value:-12999}],priceValidUntil:null,productId:PG38C05764,quantity:1,refId:PG38C05764,rewardValue:0,seller:B2C,sellerSku:PG38C05764,sellingPrice:0,serialNumbers:null,shippingPrice:null,tax:0.0,taxCode:,uniqueId:1000000033728-01_10716175_4,unitMultiplier:1.0}],clientProfileData:{corporate:false,corporateDocument:null,corporateName:null,corporatePhone:null,customerClass:null,document:null,documentType:null,email:[email protected],firstName:Daniel,id:clientProfileData,lastName:Henning,phone:(419)202-0882,stateInscription:null,tradeName:null,userProfileId:2.+YoVeJBfiv1,userProfileVersion:null},shippingData:{address:{addressId:null,addressType:residential,city:NEW BREMEN,complement:null,country:US,entityId:null,firstName:Daniel,geoCoordinates:null,jurisCode:USOH4586997800,lastName:Henning,neighborhood:null,number:null,postalCode:45869-9780,receiverName:null,reference:null,state:OH,street:08588 TRI TOWNSHIP RD,versionId:null},id:shippingData,logisticsInfo:[{addressId:null,deliveryChannel:delivery,deliveryChannels:[{id:delivery,stockBalance:0}],deliveryCompany:Expedited US,deliveryIds:[{accountCarrierName:motorolaus,courierId:Expedited US,courierName:Expedited US,dockId:,kitItemDetails:[],quantity:2,warehouseId:U404}],entityId:null,itemId:PB000007US,itemIndex:0,listPrice:0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,selectedSla:Expedited US,sellingPrice:0,shippingEstimate:null,shippingEstimateDate:2025-03-26T09:00:00Z,shipsTo:[US],slas:[{deliveryChannel:delivery,deliveryWindow:null,id:Expedited US,lockTTL:,name:Expedited US,pickupDistance:0.0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,shippingEstimate:,transitTime:}],transitTime:null,versionId:null},{addressId:null,deliveryChannel:delivery,deliveryChannels:[{id:delivery,stockBalance:0}],deliveryCompany:Expedited US,deliveryIds:[{accountCarrierName:motorolaus,courierId:Expedited US,courierName:Expedited US,dockId:,kitItemDetails:[],quantity:1,warehouseId:U404}],entityId:null,itemId:PG38C06068,itemIndex:1,listPrice:0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,selectedSla:Expedited US,sellingPrice:0,shippingEstimate:null,shippingEstimateDate:2025-03-26T09:00:00Z,shipsTo:[US],slas:[{deliveryChannel:delivery,deliveryWindow:null,id:Expedited US,lockTTL:,name:Expedited US,pickupDistance:0.0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,shippingEstimate:,transitTime:}],transitTime:null,versionId:null},{addressId:null,deliveryChannel:delivery,deliveryChannels:[{id:delivery,stockBalance:0}],deliveryCompany:Expedited US,deliveryIds:[{accountCarrierName:motorolaus,courierId:Expedited US,courierName:Expedited US,dockId:,kitItemDetails:[],quantity:1,warehouseId:U404}],entityId:null,itemId:PG38C06068,itemIndex:2,listPrice:0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,selectedSla:Expedited US,sellingPrice:0,shippingEstimate:null,shippingEstimateDate:2025-03-26T09:00:00Z,shipsTo:[US],slas:[{deliveryChannel:delivery,deliveryWindow:null,id:Expedited US,lockTTL:,name:Expedited US,pickupDistance:0.0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,shippingEstimate:,transitTime:}],transitTime:null,versionId:null},{addressId:null,deliveryChannel:delivery,deliveryChannels:[{id:delivery,stockBalance:0}],deliveryCompany:Expedited US,deliveryIds:[{accountCarrierName:motorolaus,courierId:Expedited US,courierName:Expedited US,dockId:,kitItemDetails:[],quantity:1,warehouseId:U404}],entityId:null,itemId:PG38C05764,itemIndex:3,listPrice:0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,selectedSla:Expedited US,sellingPrice:0,shippingEstimate:null,shippingEstimateDate:2025-03-26T09:00:00Z,shipsTo:[US],slas:[{deliveryChannel:delivery,deliveryWindow:null,id:Expedited US,lockTTL:,name:Expedited US,pickupDistance:0.0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,shippingEstimate:,transitTime:}],transitTime:null,versionId:null},{addressId:null,deliveryChannel:delivery,deliveryChannels:[{id:delivery,stockBalance:0}],deliveryCompany:Expedited US,deliveryIds:[{accountCarrierName:motorolaus,courierId:Expedited US,courierName:Expedited US,dockId:,kitItemDetails:[],quantity:1,warehouseId:U404}],entityId:null,itemId:PG38C05764,itemIndex:4,listPrice:0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,selectedSla:Expedited US,sellingPrice:0,shippingEstimate:null,shippingEstimateDate:2025-03-26T09:00:00Z,shipsTo:[US],slas:[{deliveryChannel:delivery,deliveryWindow:null,id:Expedited US,lockTTL:,name:Expedited US,pickupDistance:0.0,pickupPointId:null,pickupStoreInfo:{additionalInfo:null,address:null,dockId:null,friendlyName:null,pickupStore:false},polygonName:null,price:0,shippingEstimate:,transitTime:}],transitTime:null,versionId:null}],selectedAddresses:[{addressId:null,addressType:residential,city:NEW BREMEN,complement:null,country:US,entityId:null,firstName:Daniel,geoCoordinates:null,jurisCode:USOH4586997800,lastName:Henning,neighborhood:null,number:null,postalCode:45869-9780,receiverName:null,reference:null,state:OH,street:08588 TRI TOWNSHIP RD,versionId:null}],trackingHints:null},paymentData:{transactions:[{isActive:true,merchantName:,payments:[{accountId:null,bankIssuedInvoiceBarCodeNumber:null,bankIssuedInvoiceBarCodeType:null,bankIssuedInvoiceIdentificationNumber:null,bankIssuedInvoiceIdentificationNumberFormatted:null,billingAddress:{addressId:null,addressType:null,city:NEW BREMEN,complement:null,country:US,entityId:null,firstName:Daniel,geoCoordinates:null,jurisCode:null,lastName:Henning,neighborhood:null,number:null,postalCode:45869-9780,receiverName:null,reference:null,state:OH,street:08588 TRI TOWNSHIP RD,versionId:null},cardHolder:Daniel Henning,cardNumber:xxxxxxxxxxxx6190,connectorResponses:null,cvv2:null,dueDate:null,expireMonth:8,expireYear:2025,firstDigits:null,giftCardAsDiscount:null,giftCardCaption:null,giftCardId:null,giftCardName:null,giftCardProvider:null,group:creditCard,id:1354679991592710145,installments:0,koinUrl:null,lastDigits:null,parentAccountId:null,paymentOrigin:null,paymentSystem:5,paymentSystemName:Discover,redemptionCode:null,referenceValue:64348,tid:7430225469136684004983,value:64348}],transactionId:1354679991592710145}]},sellers:[{fulfillmentEndpoint:null,id:motousb2c,logo:null,name:US Public Store}],customData:{customApps:[{fields:{mixedorder:n},id:tradeincart,major:1}]},orderFormId:null,authorizedDate:2025-03-26T20:55:48,hostname:motousb2c}", "send-status-to-big-query-CHECK_PREPAID":"true", "send-status-to-big-query-PAID":"true", "isFlashOrder":"true", "send-status-to-big-query-ORDER_RECEIVED":"true", "send-status-to-big-query-OPEN":"true", "discountCoupon2":"FREETAGS", "discountCoupon1":"FREETAGS", "send-status-to-big-query-PAYMENT_CHECK":"true", "send-status-to-big-query-RETRIEVE_DATA":"true" }, "totals":{ "totalAmount":"643.48", "totalMerchandiseCost":"599.98", "totalMerchandiseTax":"43.50", "totalShipping":"0.00", "totalShippingTax":"0.00", "additionalProperties":{ "netPrice":"0.00", "subTotal":"599.98", "totalDiscounts":"459.96" } }, "wfExecuted":false, "hold":false, "version":6, "updatedBy":"SendStatusToBigQueryAction.execute", "jobStatus":"completed", "actionsSuccessfullyExecuted":[ "ORDER_RECEIVED.AccessoriesVTEXOrderAdapterAction", "ORDER_RECEIVED.PostOrderToRsaAction", "ORDER_RECEIVED.FlashPaymentAdapterAction", "ORDER_RECEIVED.VTEXFraudAddressCheckAction", "ORDER_RECEIVED.TradeInBadOrderCheckAction", "ORDER_RECEIVED.AccessoriesAdapterOrderAction", "FlashGeolinkAddressOverrideV2ActionShipping", "FlashMotocareAction", "ORDER_RECEIVED.FlashBogoOrderAction", "VTEXCreatePaymentAction", "OPEN.OpsOrderRevenueDashboardAction", "OPEN.ECCAdapterAction", "CHECK_PREPAID.EvaluateJsonPathAction" ] } 生成一个Java对象
时间: 2025-05-18 15:27:29 浏览: 32
<think>好的,我现在需要帮用户根据提供的JSON结构生成一个Java对象。首先,我需要仔细分析这个JSON的结构,看看有哪些字段和嵌套对象。用户之前提到partnerAttributes应该是一个对象而不是Map,所以这次要确保正确建模。首先,观察顶层的JSON结构,它包含context、id、ecommOrderId、customerEmail等多个字段。其中,context本身是一个对象,包含id、partner、enabled、locale等字段。locale又是一个嵌套对象,包含name、language、country。这些都需要创建对应的Java类,比如Context和Locale。接下来,productLineItems是一个数组,里面的每个元素都有id、ecommId、orderLine、quantity、product等字段。product字段内部还有price对象,所以需要创建ProductLineItem类和Product类,以及Price类。同样,additionalProperties可能是一个Map,但根据用户之前的反馈,可能需要将其转换为具体对象,不过这里看起来字段不固定,可能还是用Map<String, Object>比较合适,或者根据具体字段创建类,但考虑到灵活性,暂时保留为Map。
shipments数组中的每个元素包含shippingAddress、ecommId、status等字段,shippingAddress又是一个对象,需要创建ShippingAddress类。payments数组中的payment对象包含paymentType、paymentValue等,还有billingAddress和paymentObject,需要创建Payment类和PaymentObject类。
partnerAttributes字段是一个复杂的对象,里面有很多属性,比如paymentSystem、orderSource、promotions等。用户之前提到不要用Map,所以需要为partnerAttributes创建一个专门的类PartnerAttributes,包含所有相关字段。注意到promotions字段是一个字符串,可能存储了序列化的JSON,但根据数据结构,可能需要进一步解析成对象,但用户可能暂时只需要保留为String。
然后,totals对象包含totalAmount、totalMerchandiseCost等字段,以及additionalProperties,这里同样可能需要一个Totals类,包含这些字段,additionalProperties作为Map或者嵌套对象,根据情况处理。
最后,还有actionsSuccessfullyExecuted数组和其他顶层字段,如wfExecuted、hold、version等。需要确保所有字段都被正确映射到Java类的属性中,并添加相应的getter和setter方法。
需要注意的是,有些字段名可能包含特殊字符或Java关键字,比如additionalProperties,需要使用@SerializedName注解来适配JSON的键。同时,日期字段如placedAt、createdAt应该使用合适的日期类型,比如LocalDateTime或String,具体取决于是否需要解析。在生成代码时,要确保每个嵌套对象都有对应的静态内部类或独立的类,结构清晰。例如,Context类包含Locale,ProductLineItem包含Product,Product包含Price等。对于可能为null的字段,使用适当的注解如@Nullable,或者使用Optional类,但通常使用基本类型和对象即可。最后,验证生成的类是否覆盖了JSON中的所有字段,没有遗漏。特别是partnerAttributes中的各个属性,需要逐一检查并添加到PartnerAttributes类中。可能有些字段在JSON中是字符串形式的数字,需要决定是用String还是数值类型,比如isFlashOrder可能应该是boolean,但JSON中用了字符串"true",可能需要转换处理,或者保持为String。
总结步骤:
1.分析JSON结构,识别所有顶层字段和嵌套对象。
2.为每个嵌套对象创建对应的Java类。
3.确定字段类型,处理特殊字段名和日期类型。4. 确保partnerAttributes作为独立对象,而非Map。
5.使用注解适配JSON键名(如Gson的@SerializedName)。
6. 添加必要的getter和setter方法。
7. 测试生成的类是否能正确反序列化示例JSON。</think>JSON结构创建对应的Java对象模型:
```java
import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;
public class Order {
private Context context;
private String id;
private String ecommOrderId;
private String customerEmail;
private String customerServiceOrderId;
private LocalDateTime placedAt;
private LocalDateTime createdAt;
private List<ProductLineItem> productLineItems;
private List<Shipment> shipments;
private List<Payment> payments;
private String status;
private LocalDateTime updatedAt;
private String prefLanguage;
private PartnerAttributes partnerAttributes;
private Totals totals;
private boolean wfExecuted;
private boolean hold;
private int version;
private String updatedBy;
private String jobStatus;
private List<String> actionsSuccessfullyExecuted;
// 静态内部类定义
public static class Context {
private String id;
private String partner;
private boolean enabled;
private Locale locale;
public static class Locale {
private String name;
private String language;
private String country;
// Getters/Setters
}
// Getters/Setters
}
public static class ProductLineItem {
private String id;
private String ecommId;
private String orderLine;
private int quantity;
private Product product;
private String warehouseId;
private Map<String, Object> additionalProperties;
private int version;
private String shipmentEcommId;
public static class Product {
private String name;
private Price price;
private String productId;
private List<Object> productOptions; // 根据实际情况定义具体类型
public static class Price {
private String currencyCode;
private double basePrice;
private double netPrice;
private double tax;
private double grossPrice;
private double totalPrice;
// Getters/Setters
}
// Getters/Setters
}
// Getters/Setters
}
public static class Shipment {
private String id;
private ShippingAddress shippingAddress;
private String ecommId;
private String status;
private LocalDateTime promiseDate;
private LocalDateTime scheduledShipDate;
private String shippingMethod;
private String paymentId;
private List<String> paymentIds;
private String storeFrontId;
private List<String> productLineItemIds;
private Map<String, Object> additionalProperties;
private int version;
public static class ShippingAddress {
private String address1;
private String city;
private String countryCode;
private String firstName;
private String lastName;
private String postalCode;
private String stateCode;
private String phone;
// Getters/Setters
}
// Getters/Setters
}
public static class Payment {
private String id;
private String ecommPaymentId;
private String paymentType;
private String paymentValue;
private String numberOfInstallments;
private BillingAddress billingAddress;
private String token;
private Map<String, Object> additionalProperties;
private int version;
private PaymentObject paymentObject;
public static class BillingAddress {
private String address1;
private String city;
private String countryCode;
private String firstName;
private String lastName;
private String postalCode;
private String stateCode;
private String phone;
// Getters/Setters
}
public static class PaymentObject {
private double amount;
private String cardHolder;
private String creditCardType;
private String currency;
private String expirationMonth;
private String expirationYear;
private String method;
private String lastFourCardNumberDigits;
// Getters/Setters
}
// Getters/Setters
}
public static class PartnerAttributes {
private String paymentSystem;
private String orderSource;
private String order_context;
private boolean rsaOrder;
private String salesOrg;
private String originalEcommOrderId;
private String promotions;
// 其他字段根据需要添加
// Getters/Setters
}
public static class Totals {
private String totalAmount;
private String totalMerchandiseCost;
private String totalMerchandiseTax;
private String totalShipping;
private String totalShippingTax;
private Map<String, String> additionalProperties;
// Getters/Setters
}
// Getters and Setters
}
```
**解释说明:**
1. 使用静态内部类来保持数据结构清晰
2. 日期字段使用LocalDateTime类型(需要处理日期格式转换)
3. 动态字段(如additionalProperties)使用Map类型
4. 严格遵循JSON结构进行字段映射
5. 需要添加Jackson/Gson注解处理字段命名和类型转换
6. PartnerAttributes被定义为独立对象而不是Map
阅读全文
相关推荐

















