-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add phone field and children * Address parameter issue in billTo
- Loading branch information
Showing
11 changed files
with
205 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
namespace CXml\Model; | ||
|
||
use JMS\Serializer\Annotation as Ser; | ||
|
||
class CountryCode | ||
{ | ||
/** | ||
* @Ser\XmlAttribute | ||
* @Ser\SerializedName("isoCountryCode") | ||
*/ | ||
private string $isoCountryCode; | ||
|
||
/** | ||
* @Ser\XmlValue(cdata=false) | ||
*/ | ||
private ?string $name = null; | ||
|
||
public function __construct(string $isoCountryCode, string $name = null) | ||
{ | ||
$this->isoCountryCode = $isoCountryCode; | ||
$this->name = $name; | ||
} | ||
|
||
public function getIsoCountryCode(): string | ||
{ | ||
return $this->isoCountryCode; | ||
} | ||
|
||
public function getName(): ?string | ||
{ | ||
return $this->name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
namespace CXml\Model; | ||
|
||
use JMS\Serializer\Annotation as Ser; | ||
|
||
class Phone | ||
{ | ||
/** | ||
* @Ser\SerializedName("TelephoneNumber") | ||
* @Ser\XmlElement (cdata=false) | ||
*/ | ||
private TelephoneNumber $telephoneNumber; | ||
|
||
/** | ||
* @Ser\XmlAttribute | ||
* @Ser\SerializedName("name") | ||
*/ | ||
private ?string $name = null; | ||
|
||
public function __construct(TelephoneNumber $telephoneNumber, string $name = null) | ||
{ | ||
$this->telephoneNumber = $telephoneNumber; | ||
$this->name = $name; | ||
} | ||
|
||
public function getTelephoneNumber(): TelephoneNumber | ||
{ | ||
return $this->telephoneNumber; | ||
} | ||
|
||
public function getName(): ?string | ||
{ | ||
return $this->name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
namespace CXml\Model; | ||
|
||
use JMS\Serializer\Annotation as Ser; | ||
|
||
class TelephoneNumber | ||
{ | ||
/** | ||
* @Ser\SerializedName("CountryCode") | ||
* @Ser\XmlElement (cdata=false) | ||
*/ | ||
private CountryCode $countryCode; | ||
|
||
/** | ||
* @Ser\SerializedName("AreaOrCityCode") | ||
* @Ser\XmlElement (cdata=false) | ||
*/ | ||
private ?string $areaOrCityCode = null; | ||
|
||
/** | ||
* @Ser\SerializedName("Number") | ||
* @Ser\XmlElement (cdata=false) | ||
*/ | ||
private ?string $number = null; | ||
|
||
public function __construct(CountryCode $countryCode, string $areaOrCityCode = null, string $number = null) | ||
{ | ||
$this->countryCode = $countryCode; | ||
$this->areaOrCityCode = $areaOrCityCode; | ||
$this->number = $number; | ||
} | ||
|
||
public function getCountryCode(): CountryCode | ||
{ | ||
return $this->countryCode; | ||
} | ||
|
||
public function getAreaOrCityCode(): ?string | ||
{ | ||
return $this->areaOrCityCode; | ||
} | ||
|
||
public function getNumber(): ?string | ||
{ | ||
return $this->number; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters