vitvayti

GetDeliveryVariants

Sep 12th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. header("Content-type: text/xml; charset=utf-8");
  2.  
  3. echo '<?xml version="1.0" encoding="utf-8"?>
  4. <GetDeliveryVariantsResult xmlns="http://tempuri.org/XMLSchema.xsd">
  5. <ResultCode>0</ResultCode>
  6. <Location>
  7. <LocationName>г. Москва</LocationName>
  8. <PostCode>101000</PostCode>
  9. </Location>
  10. <DeliveryGroups>
  11. <DeliveryGroup>
  12. <GroupName>Курьерская доставка</GroupName>
  13. <DeliveryVariants>
  14. <DeliveryVariant>
  15. <DeliveryVariantName>Обычная</DeliveryVariantName>
  16. <ExternalDeliveryVariantId>123</ExternalDeliveryVariantId>
  17. <Description>Скрок доставки 3 рабочих дня</Description>
  18. <ItemsCost>2400</ItemsCost>
  19. <DeliveryCost>100</DeliveryCost>
  20. <TotalCost>2500</TotalCost>
  21. </DeliveryVariant>
  22. <DeliveryVariant>
  23. <DeliveryVariantName>Медленная</DeliveryVariantName>
  24. <ExternalDeliveryVariantId>124</ExternalDeliveryVariantId>
  25. <Description>Скрок доставки от двух недель, в зависимости от времени
  26. года</Description>
  27. <ItemsCost>2400</ItemsCost>
  28. <DeliveryCost>10</DeliveryCost>
  29. <TotalCost>2410</TotalCost>
  30. </DeliveryVariant>
  31. </DeliveryVariants>
  32. </DeliveryGroup>
  33. <DeliveryGroup>
  34. <GroupName>Пункты самовывоза</GroupName>
  35. <DeliveryVariants>
  36. <DeliveryVariant>
  37. <DeliveryVariantName>Экспесс самовывоз</DeliveryVariantName>
  38. <ExternalDeliveryVariantId>126</ExternalDeliveryVariantId>
  39. <PickupPoints>
  40. <PickupPoint>
  41. <Name>г. Москва, ул. Победы 5. MYCOMPANY</Name>
  42. <ExternalPickupPointId>234234234</ExternalPickupPointId>
  43. <DeliveryVariantName>Экспесс самовывоз</DeliveryVariantName>
  44. <ExternalDeliveryVariantId>126</ExternalDeliveryVariantId>
  45. <Address>г. Москва, ул. Победы 5</Address>
  46. <Phones>
  47. <Phone>7 916 321 54 76</Phone>
  48. <Phone>7 495 876 55 55 доб. 5</Phone>
  49. </Phones>
  50. <OperatingHours>
  51. <OperatingHour>пн-вс с 9:00 по 23:00</OperatingHour>
  52. </OperatingHours>
  53. <Description>Срок доставки: 3 дня, вы будете оповещены по SMS&gt;br/&lt;Срок
  54. хранения: неделя</Description>
  55. <ItemsCost>2400</ItemsCost>
  56. <DeliveryCost>1000</DeliveryCost>
  57. <TotalCost>3400</TotalCost>
  58. </PickupPoint>
  59. </PickupPoints>
  60. <ItemsCost>2400</ItemsCost>
  61. <DeliveryCost>1000</DeliveryCost>
  62. <TotalCost>3400</TotalCost>
  63. </DeliveryVariant>
  64. </DeliveryVariants>
  65. </DeliveryGroup>
  66. </DeliveryGroups>
  67. </GetDeliveryVariantsResult>';
Add Comment
Please, Sign In to add comment