November Happy Hour will be moved to Thursday December 5th.

IOrderAddress missing state

Vote:
 

Can someone answer why State is not exposed via the IOrderAddress interface even though it's in the documentation?

https://world.episerver.com/documentation/Class-library/?documentId=commerce/9/884FA456

Yes, I could cast to OrderAddress but why?

#194707
Edited, Jun 28, 2018 15:36
Vote:
 

Let me correct myself, i was looking at version 9 documentation. 

However, why is state not exposed?

#194709
Jun 28, 2018 15:52
Vote:
 

It's RegionName/RegionCode :) 

We probably need better documentation for that 

#194713
Edited, Jun 28, 2018 16:27
Vote:
 

Hi Quan,

I saw this when I was going through and making some changes from the OrderAddress over to IOrderAddress and I'm curious if there is a "simple" way of moving over the data from the State column to the RegionName/RegionCode fields?  I'm guessing a job would have to be created or running a query in the database, but thought I would ask first.

Thank you,

Kevin Larsen

#198967
Nov 09, 2018 20:49
Vote:
 

When you change from OrderAddress to IOrderAddress, it is just a change in abstraction APIs. the underlying data would still be the same so nothing to worry about.

#198975
Nov 10, 2018 8:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.