Skip to content

Instantly share code, notes, and snippets.

@fdc263
Last active May 6, 2016 18:26
Show Gist options
  • Save fdc263/65c0d71bc1bd5dfbd2cfafc85785d025 to your computer and use it in GitHub Desktop.
Save fdc263/65c0d71bc1bd5dfbd2cfafc85785d025 to your computer and use it in GitHub Desktop.
Proposal of default json mapping
{
"code": "",
"status": "",
"createdDate": "",
"confirmedDate": "",
"canceledDate": "",
"fulfillmentStatus": "",
"shippedDate": "",
"deliveredDate": "",
"paymentInformation": {
"type": "",
"id": "",
"total": 0,
"approvalDate": "Date"
},
"shippingInformation": {
"carrier": "",
"method": "",
"price": 0,
"deliveryTime": 0,
"tracking_code": "",
"addressInformation": {
"recipientName": "",
"address": "",
"number": "",
"complement": "",
"neighborhood": "",
"city": "",
"state": "",
"zip": ""
}
},
"client": {
"first_name": "",
"last_name": "",
"document": "",
"email": "",
"phoneNumber": ""
},
"items": [
{
"sku": "",
"name": "",
"price": 0,
"quantity": 0,
"imageUrl": ""
}
]
}
@fdc263
Copy link
Author

fdc263 commented May 6, 2016

fiz umas modificações ali. algumas relevantes, outras nem tanto.

@fdc263
Copy link
Author

fdc263 commented May 6, 2016

acho mais importante o prazo de entrega (que já está ali) do que a data propriamente. a data depende do pagamento...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment