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

Address::getCountry() + normalize Country fields to Country models #15463

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

brandonkelly
Copy link
Member

@brandonkelly brandonkelly commented Aug 1, 2024

Description

Adds a getCountry() method to address elements, which returns a CommerceGuys\Addressing\Country\Country object. And Country field values are now set to a CommerceGuys\Addressing\Country\Country object.

Country objects have the following methods:

  • getCountryCode()
  • getName()
  • getThreeLetterCode()
  • getNumericalCode()
  • getCurrencyCode()
  • getTimezones()
  • getLocale()

Related issues

@brandonkelly brandonkelly merged commit ac1ebbf into 4.11 Aug 1, 2024
@brandonkelly brandonkelly deleted the feature/country-models branch August 1, 2024 21:36
brandonkelly added a commit that referenced this pull request Aug 2, 2024
@alexanderbuergin
Copy link

Maybe add this informations to the doc?

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.

2 participants