File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ interface OrderAddressInterface extends \Magento\Framework\Api\ExtensibleDataInt
35
35
* Region ID.
36
36
*/
37
37
const REGION_ID = 'region_id ' ;
38
+ /**
39
+ * Region code.
40
+ */
41
+ const KEY_REGION_CODE = 'region_code ' ;
38
42
/*
39
43
* Customer ID.
40
44
*/
@@ -248,9 +252,9 @@ public function getQuoteAddressId();
248
252
public function getRegion ();
249
253
250
254
/**
251
- * Return 2 letter state code if available, otherwise full region name
255
+ * Gets the region code for the order address
252
256
*
253
- * @return null| string
257
+ * @return string|null Region code.
254
258
*/
255
259
public function getRegionCode ();
256
260
@@ -501,6 +505,14 @@ public function setVatIsValid($vatIsValid);
501
505
*/
502
506
public function setVatRequestId ($ id );
503
507
508
+ /**
509
+ * Set region code
510
+ *
511
+ * @param string $regionCode
512
+ * @return $this
513
+ */
514
+ public function setRegionCode ($ regionCode );
515
+
504
516
/**
505
517
* Sets the VAT request date for the order address.
506
518
*
Original file line number Diff line number Diff line change @@ -702,6 +702,14 @@ public function setVatRequestId($id)
702
702
return $ this ->setData (OrderAddressInterface::VAT_REQUEST_ID , $ id );
703
703
}
704
704
705
+ /**
706
+ * {@inheritdoc}
707
+ */
708
+ public function setRegionCode ($ regionCode )
709
+ {
710
+ return $ this ->setData (OrderAddressInterface::KEY_REGION_CODE , $ regionCode );
711
+ }
712
+
705
713
/**
706
714
* {@inheritdoc}
707
715
*/
You can’t perform that action at this time.
0 commit comments