Guest User

Untitled

a guest
Mar 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. rest/V1/guest-carts/:cartId/billing-address
  2.  
  3. rest/V1/mine/:cartId/billing-address
  4.  
  5. {
  6. "id": 330,
  7. "region": null,
  8. "region_id": null,
  9. "region_code": null,
  10. "country_id": "IN",
  11. "street": [
  12. "1st cross street"
  13. ],
  14. "telephone": "1234567890",
  15. "postcode": null,
  16. "city": "Hyderabad",
  17. "firstname": "Halll",
  18. "lastname": "test",
  19. "email": null,
  20. "same_as_billing": 0,
  21. "save_in_address_book": 0
  22. }
  23.  
  24. {
  25. "id": 330,
  26. "region": null,
  27. "region_id": null,
  28. "region_code": null,
  29. "country_id": "IN",
  30. "street": [
  31. "1st cross street"
  32. ],
  33. "telephone": "1234567890",
  34. "postcode": null,
  35. "city": "Hyderabad",
  36. "firstname": "Halll",
  37. "lastname": "test",
  38. "email": null,
  39. "same_as_billing": 0,
  40. "save_in_address_book": 0,
  41. "extension_attributes": {
  42. "city_id": "1"
  43. }
  44. }
  45.  
  46. /**
  47. * {@inheritDoc}
  48. */
  49. public function get($cartId)
  50. {
  51. $cart = $this->quoteRepository->getActive($cartId);
  52. return $cart->getBillingAddress();
  53. }
Add Comment
Please, Sign In to add comment