1 | <?php |
||
5 | class PartnerClient extends BaseClient |
||
6 | { |
||
7 | /** |
||
8 | * Partner Create Order on External Shop |
||
9 | * |
||
10 | * @param string $ventureCode |
||
11 | * @param array $orderData |
||
12 | * @return bool |
||
13 | */ |
||
14 | 2 | public function createOrderOnVenture($ventureCode, $orderData) |
|
31 | |||
32 | |||
33 | /** |
||
34 | * Partner Confirm Paid Order on External Shop |
||
35 | * |
||
36 | * @param string $ventureCode |
||
37 | * @param int $orderNr |
||
38 | * @return bool |
||
39 | 2 | */ |
|
40 | public function confirmPaymentOnVenture($ventureCode, $orderNr) |
||
41 | { |
||
42 | 2 | try { |
|
43 | 2 | $this->doRequest( |
|
44 | 2 | 'put', |
|
45 | 2 | $this->buildRequestUrl(sprintf('/fulfillment/order/confirm/%s', $orderNr), $ventureCode) |
|
46 | 2 | ); |
|
47 | 1 | } catch (\Exception $e) { |
|
48 | 1 | $this->throwException( |
|
49 | 1 | $e, |
|
50 | 1 | 'Unable to confirm payment for venture on Externalshop', |
|
51 | 1 | ['VentureCode' => $ventureCode, 'OrderNr' => $orderNr] |
|
52 | ); |
||
53 | 2 | } |
|
54 | return true; |
||
55 | } |
||
56 | |||
57 | /** |
||
58 | * Partner Cancel Order on External Shop |
||
59 | * |
||
60 | * @param string $ventureCode |
||
61 | * @param int $orderNr |
||
62 | * @return bool |
||
63 | 2 | */ |
|
64 | public function cancelOrderOnVenture($ventureCode, $orderNr) |
||
65 | { |
||
66 | 2 | try { |
|
67 | 2 | $this->doRequest( |
|
68 | 2 | 'put', |
|
69 | 2 | $this->buildRequestUrl(sprintf('/fulfillment/order/cancel/%s', $orderNr), $ventureCode) |
|
70 | 2 | ); |
|
71 | 1 | } catch (\Exception $e) { |
|
72 | 1 | $this->throwException( |
|
73 | 1 | $e, |
|
74 | 1 | 'Unable to cancel order on Externalshop', |
|
75 | 1 | ['VentureCode' => $ventureCode, 'OrderNr' => $orderNr] |
|
76 | ); |
||
77 | 2 | } |
|
78 | return true; |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * Partner Confirm Paid Order on External Shop |
||
83 | * @param string $ventureCode |
||
84 | * @param int $orderNr |
||
85 | * @return bool |
||
86 | */ |
||
87 | public function partnerConfirmPaymentForVenture($ventureCode, $orderNr) |
||
99 | |||
100 | /** |
||
101 | * Partner Cancel Order on External Shop |
||
102 | * @param string $ventureCode |
||
103 | * @param int $orderNr |
||
104 | * @return bool |
||
105 | */ |
||
106 | public function partnerCancelOrderOnVenture($ventureCode, $orderNr) |
||
118 | |||
119 | //products |
||
120 | |||
121 | /** |
||
122 | * Sends product creation status to venture |
||
123 | * |
||
124 | * @param array $productsData |
||
125 | * @param string $venture |
||
126 | * @return void |
||
127 | */ |
||
128 | public function sendProductCreationConfirmationToVenture( |
||
148 | } |
||
149 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.