Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

В хелпере OrderHelper некорректно строится запрос, не создается секция order #41

Open
dezinger2 opened this issue Jan 25, 2022 · 1 comment

Comments

@dezinger2
Copy link

dezinger2 commented Jan 25, 2022

https://github.com/mindbox-moscow/php-sdk/blob/master/docs/examples/order_helper.md
https://github.com/mindbox-moscow/php-sdk/blob/master/src/Helpers/OrderHelper.php#L81

Это все должно быть обернуто в секции "order" но хелпер не делает этого.

{
  "customer": {
    "ids": {
      "externalID": 506418
    }
  },
  "ids": {
    "orderExternalID": 62788
  },
  "totalPrice": 769,
  "lines": [
    {
      "lineId": 68650,
      "discountedPricePerLine": 769,
      "quantity": 1,
      "basePricePerItem": 769
    }
  ]
}
@IvanShishkin
Copy link
Collaborator

Добрый день. Покажите, пожалуйста, листинг вызова OrderHelper, при котором строится такой json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants