closes #117 - fix for customer[birthday] date format
This commit is contained in:
parent
cefb9fabcf
commit
ed6f672cda
@ -307,7 +307,7 @@ class Customer implements CustomerInterface
|
|||||||
/**
|
/**
|
||||||
* @var DateTime
|
* @var DateTime
|
||||||
*
|
*
|
||||||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>")
|
* @JMS\Type("DateTime<'Y-m-d'>")
|
||||||
* @JMS\SerializedName("birthday")
|
* @JMS\SerializedName("birthday")
|
||||||
*/
|
*/
|
||||||
public $birthday;
|
public $birthday;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
namespace RetailCrm\Tests\ResourceGroup;
|
namespace RetailCrm\Tests\ResourceGroup;
|
||||||
|
|
||||||
|
use RetailCrm\Api\Component\Transformer\DateTimeTransformer;
|
||||||
use RetailCrm\Api\Enum\ByIdentifier;
|
use RetailCrm\Api\Enum\ByIdentifier;
|
||||||
use RetailCrm\Api\Enum\Customers\ContragentType;
|
use RetailCrm\Api\Enum\Customers\ContragentType;
|
||||||
use RetailCrm\Api\Enum\Customers\CustomerType;
|
use RetailCrm\Api\Enum\Customers\CustomerType;
|
||||||
@ -262,6 +263,7 @@ EOF;
|
|||||||
$customer->phones = [
|
$customer->phones = [
|
||||||
new CustomerPhone('(603) 292-6810')
|
new CustomerPhone('(603) 292-6810')
|
||||||
];
|
];
|
||||||
|
$customer->birthday = DateTimeTransformer::createDate('1980-01-01');
|
||||||
|
|
||||||
$request = new CustomersCreateRequest();
|
$request = new CustomersCreateRequest();
|
||||||
$request->site = 'aliexpress';
|
$request->site = 'aliexpress';
|
||||||
|
Loading…
Reference in New Issue
Block a user