YD curl request

This commit is contained in:
omair saleh
2021-12-29 03:16:06 +08:00
parent 5599c1ba71
commit eeaba20fb0
2 changed files with 2 additions and 2 deletions
@@ -216,7 +216,7 @@ class FetchOrderListsFromYdPortalProcessor
$this->createsTransport->execute($transportObject, $warehouseReceiveList);
$contract = $this->unityCreateContract->execute();
dd($contract);
$contractReference = $contract->hash_id;
$contractObligations = $contract->contract_obligation_list;
@@ -27,7 +27,7 @@ class CreatesContract
$accessToken=$this->getAccessToken->execute();
$response = Http::withToken($accessToken)->post($this->createEntityEndpoint,['contract_template_id'=>[$this->contract_hash_id]]);
dd($response->object());
return (isset($response->data)) ? $response->data : null;
}