1 | <?php |
||
6 | class Customer extends Endpoint |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#GetCustomer_GET |
||
11 | * |
||
12 | * @param int $customerId |
||
13 | * @return array |
||
14 | */ |
||
15 | 3 | public function getCustomer(int $customerId) : array |
|
24 | |||
25 | /** |
||
26 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#GetCustomerByEmail_GET |
||
27 | * |
||
28 | * @param string $email |
||
29 | * @return array |
||
30 | */ |
||
31 | public function getCustomerByEmail(string $email) : array |
||
40 | |||
41 | /** |
||
42 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#General_Online_Reference |
||
43 | * |
||
44 | * @param \DateTimeInterface $date |
||
45 | * @return array |
||
46 | */ |
||
47 | public function getCustomersCreatedSince(\DateTimeInterface $date) : array |
||
54 | |||
55 | /** |
||
56 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#CreateCustomer_POST |
||
57 | * |
||
58 | * @param array|\stdClass $customer |
||
59 | * @return array |
||
60 | */ |
||
61 | public function createCustomer($customer) : array |
||
65 | |||
66 | /** |
||
67 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#UpdateCustomer_PUT |
||
68 | * |
||
69 | * @param int $customerId |
||
70 | * @param array|\stdClass $customer |
||
71 | * @return array |
||
72 | */ |
||
73 | public function updateCustomer(int $customerId, $customer) : array |
||
83 | |||
84 | /** |
||
85 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#DeleteCustomer_DELETE |
||
86 | * |
||
87 | * @param int $customerId |
||
88 | * @return boolean |
||
89 | */ |
||
90 | public function deleteCustomer(int $customerId) : bool |
||
102 | |||
103 | /** |
||
104 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#GetCustomerGroups_GET |
||
105 | * |
||
106 | * @return array |
||
107 | */ |
||
108 | public function getCustomerGroups() : array |
||
115 | |||
116 | /** |
||
117 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#UpdateCustomerDiscountPOST |
||
118 | * |
||
119 | * @param int $customerId |
||
120 | * @param array|\stdClass $customerDiscount |
||
121 | * @return array |
||
122 | */ |
||
123 | public function updateCustomerDiscount(int $customerId, $customerDiscount) : array |
||
133 | |||
134 | /** |
||
135 | * @see https://shoppartner.dandomain.dk/dokumentation/api-documentation/customer/#GetCustomerDiscountGET |
||
136 | * |
||
137 | * @param int $customerId |
||
138 | * @return array |
||
139 | */ |
||
140 | public function getCustomerDiscount(int $customerId) : array |
||
152 | } |
||
153 |