| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class MyFatoorahSupplier extends MyFatoorah |
||
| 15 | { |
||
| 16 | //----------------------------------------------------------------------------------------------------------------------------------------- |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Gets Supplier Dashboard information if Supplier exists in the MyFatoorah portal account. |
||
| 20 | * |
||
| 21 | * @param int $supplierCode The supplier code that exists in MyFatoorah portal account. |
||
| 22 | * |
||
| 23 | * @return object |
||
| 24 | */ |
||
| 25 | public function getSupplierDashboard($supplierCode) |
||
| 26 | { |
||
| 27 | $url = $this->apiURL . '/v2/GetSupplierDashboard?SupplierCode=' . $supplierCode; |
||
| 28 | return $this->callAPI($url, null, null, "Get Supplier Documents"); |
||
| 29 | } |
||
| 30 | |||
| 31 | //----------------------------------------------------------------------------------------------------------------------------------------- |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Returns the supplier status in MyFatoorah account |
||
| 35 | * |
||
| 36 | * @param int $supplierCode The supplier code that exists in MyFatoorah portal account. |
||
| 37 | * |
||
| 38 | * @return boolean |
||
| 39 | */ |
||
| 40 | public function isSupplierApproved($supplierCode) |
||
| 44 | } |
||
| 45 | |||
| 48 |