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

Add missing customer attributes to sylius_shop_api_me #390

Conversation

nevoeiro
Copy link

@nevoeiro nevoeiro commented Feb 8, 2019

In order to be able to load all user details through shopApi I suggest to change the response of sylius_shop_api_me, adding the missing customer attributes: birthday, gender, phoneNumber and subscribedToNewsletter

Having this, we can get and edit all customer attributes and that will be useful if you want to use Sylius as headless system, e.g.

@nevoeiro nevoeiro requested a review from a team as a code owner February 8, 2019 14:32
Copy link
Member

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

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

Hey nevoeiro! Welcome to our community :)

Can you adjust one line in the documentation?

doc/swagger.yml Outdated Show resolved Hide resolved
- Added `birthday`, `gender`, `phoneNumber` and `subscribedToNewsletter` to sylius_shop_api_me response
- Updated LoggedInCustomerDetails on doc/swagger.yml, to include the new attributes
- Updated tests
@nevoeiro nevoeiro force-pushed the add_missing_customer_details_to_sylius_shop_api_me branch from 5e1222c to 565e547 Compare February 20, 2019 15:04
@lchrusciel lchrusciel merged commit 3e5d831 into Sylius:master Feb 22, 2019
@lchrusciel
Copy link
Member

Thanks, @nevoeiro! 🥇

@dlobato dlobato deleted the add_missing_customer_details_to_sylius_shop_api_me branch April 8, 2019 15:26
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

Successfully merging this pull request may close these issues.

3 participants