Skip to content

Ireland Address normalize doesn't fill province code #401

@Griffin38

Description

@Griffin38

While creating an address for Ireland with valid data , it doesnt populate province_code which makes the address not valid

params = { :first_name=>"John", :last_name=>"Doe", :address1=>"Bedford Hall", :address2=>"34 Castle Street", :city=>"Dublin", :zip=>"D02 TN97", :phone=>"", :country_code=>"IE"}

address = Worldwide.address(**params).normalize(autocorrect_level: 9) => #<Worldwide::Address:0x0000ffff88794a68 @address1="Bedford Hall", @address2="34 Castle Street", @city="Dublin", @company=nil, @country_code="IE", @first_name="John", @last_name="Doe", @line2=nil, @neighborhood=nil, @phone="", @province_code=nil, @street_name=nil, @street_number=nil, @zip="D02 TN97">

address.valid? => false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions