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] Remove customer and serialize posted address #12785

Merged
merged 2 commits into from
Jul 7, 2021

Conversation

arti0090
Copy link
Contributor

@arti0090 arti0090 commented Jul 6, 2021

Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
License MIT

Zrzut ekranu z 2021-07-06 11-54-16

@arti0090 arti0090 requested a review from a team as a code owner July 6, 2021 10:04
@probot-autolabeler probot-autolabeler bot added API APIs related issues and PRs. Maintenance CI configurations, READMEs, releases, etc. labels Jul 6, 2021
@arti0090 arti0090 force-pushed the address-creating-serialization branch 2 times, most recently from b7a505d to 30aaa0c Compare July 6, 2021 10:12
UPGRADE-1.11.md Outdated Show resolved Hide resolved
tests/Api/Shop/AddressesPostTest.php Outdated Show resolved Hide resolved
@arti0090 arti0090 force-pushed the address-creating-serialization branch from 30aaa0c to b95a232 Compare July 6, 2021 11:21
@arti0090 arti0090 force-pushed the address-creating-serialization branch from b95a232 to a19977e Compare July 6, 2021 12:31
Comment on lines +2 to +11
"firstName":"TEST",
"lastName":"TEST",
"phoneNumber":"666111333",
"company":"Potato Corp.",
"countryCode":"US",
"provinceCode":null,
"provinceName":null,
"street":"Top secret",
"city":"Nebraska",
"postcode":"12343"
Copy link
Member

Choose a reason for hiding this comment

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

Use 4 spaces instead of 2

@@ -0,0 +1,16 @@
Sylius\Component\Core\Model\ShopUser:
user_{Oliver}:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
user_{Oliver}:
shop_user_{oliver}:

usernameCanonical: "<current()>\\@doe.com"

Sylius\Component\Core\Model\Customer:
customer_{Oliver}:
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
customer_{Oliver}:
customer_{oliver}:


$response = $this->client->getResponse();

$this->assertResponse($response, 'shop/post_addresses_response', Response::HTTP_CREATED);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$this->assertResponse($response, 'shop/post_addresses_response', Response::HTTP_CREATED);
$this->assertResponse($response, 'shop/create_address_response', Response::HTTP_CREATED);

@GSadee GSadee merged commit d6993d2 into Sylius:master Jul 7, 2021
@GSadee
Copy link
Member

GSadee commented Jul 7, 2021

Thank you, @arti0090! 🎉

GSadee added a commit that referenced this pull request Jul 12, 2021
…ing post on address (arti0090)

This PR was merged into the 1.11-dev branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master 
| Bug fix?        | no
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes for #12785
| License         | MIT


Commits
-------

888087e [ENH][API] Fixing naming issues after PR for serializing post on address
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. Maintenance CI configurations, READMEs, releases, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants