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

[API] Add itemsTotal field to order resource #12661

Merged
merged 4 commits into from May 24, 2021

Conversation

arti0090
Copy link
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
License MIT
Zrzut ekranu 2021-05-21 o 12 35 53

@arti0090 arti0090 requested a review from a team as a code owner May 21, 2021 10:36
@probot-autolabeler probot-autolabeler bot added the API APIs related issues and PRs. label May 21, 2021
@arti0090 arti0090 force-pushed the add-item-total-to-order branch 2 times, most recently from 74c129c to 55f1073 Compare May 24, 2021 06:13
Feature: Seeing detailed information of cart
In order to see detailed information of my cart
As a Visitor
I want to be able to see those information of my cart
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to see (...) information, (...), I want to be able to see those information :( I believe the goal could be described better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope that newest changes with my limited humanistic possibilities would fulfill your desires 😄

@@ -516,6 +516,17 @@ public function iCheckItemsOfMyCart(string $tokenValue): void
$this->cartsClient->executeCustomRequest($request);
}

/**
* @Then /^my cart should have ("[^"]+") items total$/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/^my cart should have ("[^"]+") items total$/ -> my cart should have :itemsTotal items total?

Copy link
Contributor Author

@arti0090 arti0090 May 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will work at first it will return (using 12.34 as example) $12.34 but i need 1234 as API returns int number. With ("[^"]+") I am getting the transformed value of 1234.

@GSadee GSadee merged commit 1cc07c5 into Sylius:master May 24, 2021
@GSadee
Copy link
Member

GSadee commented May 24, 2021

Thank you, @arti0090! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API APIs related issues and PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants