mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 12:34:18 +00:00
YD curl request
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user