{ "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.8, "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.8, "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.6, "tax": 0, "grossPrice": 56.6, "totalPrice": 56.6 }, "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.6, "tax": 0, "grossPrice": 56.6, "totalPrice": 56.6 }, "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对象 additionalProperties 不适用map
时间: 2025-08-13 07:28:35 浏览: 2
<think>好的,用户需要根据提供的JSON结构生成对应的Java对象,并且要求additionalProperties不使用Map。首先,我需要仔细分析JSON结构,确定各个层级的对象及其属性。首先,最外层是一个订单对象,包含context、id、productLineItems等字段。其中,context是一个嵌套对象,包含id、partner、enabled和locale。locale又有name、language和country。需要为这些嵌套结构创建相应的类,如Context和Locale。
接下来,productLineItems是一个数组,每个元素包含id、ecommId、product等字段。product又有name、price和productOptions。Price对象包含多个货币相关的属性,如currencyCode、basePrice等。这里需要创建ProductLineItem、Product和Price类。用户特别提到additionalProperties不使用Map。观察到JSON中有多处additionalProperties,例如在productLineItems的每个项里,以及shipments、payments等部分。通常,这些动态键值对会用Map<String, Object>表示,但用户要求不使用Map。因此,需要为每个包含additionalProperties的类创建具体的字段,尽管这可能导致类变得臃肿,但符合用户的要求。
例如,ProductLineItem的additionalProperties包含inventory_reservation_id、brandName等字段。需要将这些字段显式地声明为类的成员变量,而不是使用Map。同样地,处理Shipment、Payment等类中的additionalProperties。
接下来,shipments数组中的每个元素有shippingAddress,这又是一个嵌套对象,需要创建ShippingAddress类。同样,payments数组中的每个元素包含billingAddress和paymentObject,需要创建对应的BillingAddress和PaymentObject类。partnerAttributes字段包含多个属性,其中promotions和originalOrder是复杂的字符串,可能包含JSON结构,但用户可能希望将它们保持为字符串,除非特别要求进一步解析。同样,totals对象中的additionalProperties也需要显式声明为具体字段。
在处理过程中,需要注意字段名称是否符合Java的命名规范,例如使用驼峰命名法,可能需要使用@JsonProperty注解来映射JSON中的键名。例如,ecommOrderId在JSON中是ecommOrderId,在Java中可以使用相同的名称,或者使用注解处理。
此外,日期时间字段如placedAt、createdAt等,通常应使用Java8的LocalDateTime或ZonedDateTime类型,但需要根据实际格式进行解析,可能需要自定义反序列化器。
最后,确保所有嵌套对象都被正确转换为Java类,并且所有字段都有对应的getter和setter方法。虽然这会导致大量的类定义,但这是不使用Map的唯一方法。需要检查是否有重复结构,例如多个地方的additionalProperties是否有相同字段,可以抽象出公共父类或接口,但根据用户要求,可能需要单独处理每个实例。
总结步骤:
1.分析JSON结构,确定所有嵌套对象。
2.为每个嵌套对象创建对应的Java类。
3.将additionalProperties中的每个键作为类的显式字段。4. 处理日期时间字段的类型和反序列化。
5.使用注解确保JSON字段名正确映射到Java字段。6. 生成所有必要的getter和setter方法。</think>完整的Java对象结构实现,所有additionalProperties字段都使用具体属性替代Map:
```java
// 顶层订单类
public class Order {
private OrderContext context;
private String id;
private String ecommOrderId;
private String customerEmail;
private String customerServiceOrderId;
private String placedAt;
private String createdAt;
private List<ProductLineItem> productLineItems;
private List<Shipment> shipments;
private List<Payment> payments;
private String status;
private String updatedAt;
private String prefLanguage;
private PartnerAttributes partnerAttributes;
private OrderTotals totals;
private boolean wfExecuted;
private boolean hold;
private int version;
private String updatedBy;
private String jobStatus;
private List<String> actionsSuccessfullyExecuted;
// getters/setters
}
// Context相关类
public class OrderContext {
private String id;
private String partner;
private boolean enabled;
private Locale locale;
// getters/setters
}
public class Locale {
private String name;
private String language;
private String country;
// getters/setters
}
// 产品线项目类
public class ProductLineItem {
private String id;
private String ecommId;
private String orderLine;
private int quantity;
private Product product;
private String warehouseId;
private ProductLineItemAdditionalProps additionalProperties;
private int version;
private String shipmentEcommId;
// getters/setters
}
public class Product {
private String name;
private ProductPrice price;
private String productId;
private List<Object> productOptions = new ArrayList<>();
// getters/setters
}
public class ProductPrice {
private String currencyCode;
private double basePrice;
private double netPrice;
private double tax;
private double grossPrice;
private double totalPrice;
// getters/setters
}
// 显式定义additionalProperties
public class ProductLineItemAdditionalProps {
private String inventory_reservation_id;
private String brandName;
private String quantity;
private String parentItemIndex;
private String manufacturerCode;
@JsonProperty("eccCustomAttributes.warehouseId")
private String eccCustomAttributesWarehouseId;
private String shippingWarehouse;
private String taxRate;
private String ean;
private String fulfillmentSet;
private String ecommSkuId;
private String uniqueId;
private String basePrice;
// getters/setters
}
// 物流信息类
public class Shipment {
private String id;
private ShippingAddress shippingAddress;
private String ecommId;
private String status;
private String promiseDate;
private String scheduledShipDate;
private String shippingMethod;
private String paymentId;
private List<String> paymentIds;
private String storeFrontId;
private List<String> productLineItemIds;
private ShipmentAdditionalProps additionalProperties;
private int version;
// getters/setters
}
public 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
}
public class ShipmentAdditionalProps {
private String motoShippingMethod;
private String salesOffice;
private String adjustedTax;
private String jurisdictionCode;
private String stateCode;
private String motoScheduledShipDate;
private String adjustedGrossPrice;
private String adjustedNetPrice;
// getters/setters
}
// 支付信息类
public class Payment {
private String id;
private String ecommPaymentId;
private String paymentType;
private String paymentValue;
private String numberOfInstallments;
private BillingAddress billingAddress;
private String token;
private PaymentAdditionalProps additionalProperties;
private int version;
private PaymentObject paymentObject;
// getters/setters
}
public class BillingAddress {
private String address1;
private String city;
private String companyName;
private String countryCode;
private String firstName;
private String lastName;
private String postalCode;
private String stateCode;
private String phone;
// getters/setters
}
public class PaymentAdditionalProps {
@JsonProperty("authorize.transactionFeeAmount")
private String authorizeTransactionFeeAmount;
private String processorId;
private String connector;
@JsonProperty("affirmCustomAttributes.chargeId")
private String affirmCustomAttributesChargeId;
private String prePayment;
private String vtexPaymentId;
private String paymentBrand;
private String paymentId;
private String processorTransactionId;
@JsonProperty("eccCustomAttributes.paymentType")
private String eccCustomAttributesPaymentType;
private String stateCode;
private String paymentType;
// getters/setters
}
public 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
}
// 合作伙伴属性类
public class PartnerAttributes {
private String paymentSystem;
@JsonProperty("send-status-to-big-query-SSD_HOLD")
private String sendStatusToBigQuerySSDHold;
private String orderSource;
private String order_context;
private String rsaOrder;
private String salesOrg;
private String originalEcommOrderId;
private String accountId;
private String environment;
private String orderReason;
private String promotions;
private String originalOrder;
@JsonProperty("send-status-to-big-query-CHECK_PREPAID")
private String sendStatusToBigQueryCheckPrepaid;
// 其他类似字段...
// getters/setters
}
// 总计类
public class OrderTotals {
private String totalAmount;
private String totalMerchandiseCost;
private String totalMerchandiseTax;
private String totalShipping;
private String totalShippingTax;
private TotalsAdditionalProps additionalProperties;
// getters/setters
}
public class TotalsAdditionalProps {
private String netPrice;
private String subTotal;
private String totalDiscounts;
// getters/setters
}
```
阅读全文
相关推荐



















