From 934651518fbf2e3b453419b0361efec25fa07e43 Mon Sep 17 00:00:00 2001 From: Franciel Dors Date: Tue, 17 Oct 2023 18:02:05 -0300 Subject: [PATCH 1/3] Corrige formato de Data esperado em dateLastUpdated em Order.php Estava dando erro "Invalid datetime" ao obter vendas --- src/Resources/Order/Order.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Resources/Order/Order.php b/src/Resources/Order/Order.php index 5d47a0f..306d9a7 100644 --- a/src/Resources/Order/Order.php +++ b/src/Resources/Order/Order.php @@ -62,7 +62,7 @@ class Order /** * @var \DateTime - * @JMS\Type("DateTime<'Y-m-d\TH:i:s.u+'>") + * @JMS\Type("DateTime<'Y-m-d\TH:i:sP'>") */ private $dateLastUpdated; @@ -522,4 +522,4 @@ public function setTags($tags) $this->tags = $tags; return $this; } -} \ No newline at end of file +} From 721b9fe58e8986840fa70581d79adcdff57ac841 Mon Sep 17 00:00:00 2001 From: Franciel Dors Date: Wed, 18 Oct 2023 17:38:46 -0300 Subject: [PATCH 2/3] Corrige formato de Data em date_last_updated em orders.json --- tests/Resources/Order/orders.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Resources/Order/orders.json b/tests/Resources/Order/orders.json index b2b4d43..1c44c31 100644 --- a/tests/Resources/Order/orders.json +++ b/tests/Resources/Order/orders.json @@ -18,7 +18,7 @@ "date_created": "2020-06-15T10:58:21.000-04:00", "date_closed": "2020-06-15T10:58:23.000-04:00", "expiration_date": "2020-07-13T10:58:23.000-04:00", - "date_last_updated": "2020-06-15T13:37:52.89Z", + "date_last_updated": "2023-05-31T19:33:51+00:00", "hidden_for_seller": false, "currency_id": "ARS", "order_items": [ @@ -1074,4 +1074,4 @@ ] } ] -} \ No newline at end of file +} From ec722a21cd0eaf8f1b14fed9f4109f74da1af362 Mon Sep 17 00:00:00 2001 From: Franciel Dors Date: Wed, 1 Nov 2023 15:24:19 -0300 Subject: [PATCH 3/3] Corrige formato de Data esperado em dateLastUpdated em Order.php --- src/Resources/Order/Order.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Resources/Order/Order.php b/src/Resources/Order/Order.php index 306d9a7..1428165 100644 --- a/src/Resources/Order/Order.php +++ b/src/Resources/Order/Order.php @@ -62,7 +62,7 @@ class Order /** * @var \DateTime - * @JMS\Type("DateTime<'Y-m-d\TH:i:sP'>") + * @JMS\Type("DateTime<'Y-m-d\TH:i:s+'>") */ private $dateLastUpdated;