Skip to content

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

Merged
brandonkelly merged 2 commits into4.11from
feature/country-models
Aug 1, 2024
Merged

Address::getCountry() + normalize Country fields to Country models#15463
brandonkelly merged 2 commits into4.11from
feature/country-models

Conversation

@brandonkelly
Copy link
Copy Markdown
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
Copy Markdown

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