diff --git a/init.php b/init.php index 44b05b78..12a23558 100644 --- a/init.php +++ b/init.php @@ -597,6 +597,28 @@ require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php'; require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/CreateCustomerGroup.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/CreateCustomerGroupRequest/CreateCustomerGroupRequest.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/CreateCustomerGroupRequest/CreateCustomerGroupRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups/Item.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/DeleteCustomerGroup.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/DeleteCustomerGroupResponse/DeleteCustomerGroupResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/DeleteCustomerGroupResponse/DeleteCustomerGroupResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/GetListOfCustomerGroups.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/UpdateCustomerGroup.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups.php'; +require_once __DIR__ . '/src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups/Item.php'; require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php'; require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php'; require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php'; @@ -623,22 +645,12 @@ require_once __DIR__ . '/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomer.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerGroup.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerGroupRequest/CreateCustomerGroupRequest.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerGroupRequest/CreateCustomerGroupRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups/Item.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest/Data/Account.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerResponse/CreateCustomerResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerResponse/CreateCustomerResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomer.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerGroup.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerGroupResponse/DeleteCustomerGroupResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerGroupResponse/DeleteCustomerGroupResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetCustomerDetail.php'; @@ -652,11 +664,6 @@ require_once __DIR__ . '/src/Endpoint/Customers/GetListOfAllCustomers.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfAllCustomersResponse/GetListOfAllCustomersResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfAllCustomersResponse/GetListOfAllCustomersResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerGroups.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRegions.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data.php'; @@ -668,13 +675,6 @@ require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers/Item.php'; require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomer.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerGroup.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups/Item.php'; require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRequest/UpdateCustomerRequest.php'; require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRequest/UpdateCustomerRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerResponse/UpdateCustomerResponse.php'; diff --git a/src/Endpoint/Customers/CreateCustomerGroup.php b/src/Endpoint/CustomerGroups/CreateCustomerGroup.php similarity index 72% rename from src/Endpoint/Customers/CreateCustomerGroup.php rename to src/Endpoint/CustomerGroups/CreateCustomerGroup.php index 4abbd870..d6b288c2 100644 --- a/src/Endpoint/Customers/CreateCustomerGroup.php +++ b/src/Endpoint/CustomerGroups/CreateCustomerGroup.php @@ -1,13 +1,13 @@ |CreateCustomerGroupRequest $entity) * @method null|CreateCustomerGroupRequest getBody() diff --git a/src/Endpoint/Customers/CreateCustomerGroupRequest/CreateCustomerGroupRequest.php b/src/Endpoint/CustomerGroups/CreateCustomerGroupRequest/CreateCustomerGroupRequest.php similarity index 63% rename from src/Endpoint/Customers/CreateCustomerGroupRequest/CreateCustomerGroupRequest.php rename to src/Endpoint/CustomerGroups/CreateCustomerGroupRequest/CreateCustomerGroupRequest.php index e8e17913..82ee770f 100644 --- a/src/Endpoint/Customers/CreateCustomerGroupRequest/CreateCustomerGroupRequest.php +++ b/src/Endpoint/CustomerGroups/CreateCustomerGroupRequest/CreateCustomerGroupRequest.php @@ -1,9 +1,9 @@ fullProfileRequired = $fullProfileRequired; return $this; } + + public function getDefaultOrderStatusId(): ?int + { + return $this->defaultOrderStatusId; + } + + public function setDefaultOrderStatusId(?int $defaultOrderStatusId): static + { + $this->defaultOrderStatusId = $defaultOrderStatusId; + return $this; + } } diff --git a/src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse.php b/src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse.php similarity index 76% rename from src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse.php rename to src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse.php index d8adca9a..80f66081 100644 --- a/src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse.php +++ b/src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse.php @@ -1,10 +1,10 @@ @@ -26,6 +26,6 @@ class CustomerGroups extends EntityCollection */ public function getItemType(array $data): string { - return 'Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerGroupResponse\UpdateCustomerGroupResponse\Data\CustomerGroups\Item'; + return 'Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\CreateCustomerGroupResponse\CreateCustomerGroupResponse\Data\CustomerGroups\Item'; } } diff --git a/src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups/Item.php b/src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups/Item.php similarity index 89% rename from src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups/Item.php rename to src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups/Item.php index 6b88dfd5..1e7bb0c9 100644 --- a/src/Endpoint/Customers/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups/Item.php +++ b/src/Endpoint/CustomerGroups/CreateCustomerGroupResponse/CreateCustomerGroupResponse/Data/CustomerGroups/Item.php @@ -1,6 +1,6 @@ defaultDueDays = $defaultDueDays; return $this; } + + public function getDefaultOrderStatusId(): ?int + { + return $this->defaultOrderStatusId; + } + + public function setDefaultOrderStatusId(?int $defaultOrderStatusId): static + { + $this->defaultOrderStatusId = $defaultOrderStatusId; + return $this; + } } diff --git a/src/Endpoint/Customers/DeleteCustomerGroup.php b/src/Endpoint/CustomerGroups/DeleteCustomerGroup.php similarity index 78% rename from src/Endpoint/Customers/DeleteCustomerGroup.php rename to src/Endpoint/CustomerGroups/DeleteCustomerGroup.php index 54121b19..c24c6c06 100644 --- a/src/Endpoint/Customers/DeleteCustomerGroup.php +++ b/src/Endpoint/CustomerGroups/DeleteCustomerGroup.php @@ -1,12 +1,12 @@ @@ -26,6 +26,6 @@ class CustomerGroups extends EntityCollection */ public function getItemType(array $data): string { - return 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerGroupsResponse\GetListOfCustomerGroupsResponse\Data\CustomerGroups\Item'; + return 'Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\GetListOfCustomerGroupsResponse\GetListOfCustomerGroupsResponse\Data\CustomerGroups\Item'; } } diff --git a/src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups/Item.php b/src/Endpoint/CustomerGroups/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php similarity index 89% rename from src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups/Item.php rename to src/Endpoint/CustomerGroups/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php index 22eaac98..eb54d3c7 100644 --- a/src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups/Item.php +++ b/src/Endpoint/CustomerGroups/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php @@ -1,6 +1,6 @@ defaultDueDays = $defaultDueDays; return $this; } + + public function getDefaultOrderStatusId(): ?int + { + return $this->defaultOrderStatusId; + } + + public function setDefaultOrderStatusId(?int $defaultOrderStatusId): static + { + $this->defaultOrderStatusId = $defaultOrderStatusId; + return $this; + } } diff --git a/src/Endpoint/Customers/UpdateCustomerGroup.php b/src/Endpoint/CustomerGroups/UpdateCustomerGroup.php similarity index 72% rename from src/Endpoint/Customers/UpdateCustomerGroup.php rename to src/Endpoint/CustomerGroups/UpdateCustomerGroup.php index 07be0e0a..5b931c63 100644 --- a/src/Endpoint/Customers/UpdateCustomerGroup.php +++ b/src/Endpoint/CustomerGroups/UpdateCustomerGroup.php @@ -1,13 +1,13 @@ |UpdateCustomerGroupRequest $entity) * @method null|UpdateCustomerGroupRequest getBody() diff --git a/src/Endpoint/Customers/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest.php b/src/Endpoint/CustomerGroups/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest.php similarity index 63% rename from src/Endpoint/Customers/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest.php rename to src/Endpoint/CustomerGroups/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest.php index e440dbc4..14f30a49 100644 --- a/src/Endpoint/Customers/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest.php +++ b/src/Endpoint/CustomerGroups/UpdateCustomerGroupRequest/UpdateCustomerGroupRequest.php @@ -1,9 +1,9 @@ fullProfileRequired = $fullProfileRequired; return $this; } + + public function getDefaultOrderStatusId(): ?int + { + return $this->defaultOrderStatusId; + } + + public function setDefaultOrderStatusId(?int $defaultOrderStatusId): static + { + $this->defaultOrderStatusId = $defaultOrderStatusId; + return $this; + } } diff --git a/src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse.php b/src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse.php similarity index 76% rename from src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse.php rename to src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse.php index a4b7b629..9afeb852 100644 --- a/src/Endpoint/Customers/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse.php +++ b/src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse.php @@ -1,10 +1,10 @@ @@ -26,6 +26,6 @@ class CustomerGroups extends EntityCollection */ public function getItemType(array $data): string { - return 'Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerGroupResponse\CreateCustomerGroupResponse\Data\CustomerGroups\Item'; + return 'Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\UpdateCustomerGroupResponse\UpdateCustomerGroupResponse\Data\CustomerGroups\Item'; } } diff --git a/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php b/src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups/Item.php similarity index 89% rename from src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php rename to src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups/Item.php index 0b35f98f..d0d95f56 100644 --- a/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php +++ b/src/Endpoint/CustomerGroups/UpdateCustomerGroupResponse/UpdateCustomerGroupResponse/Data/CustomerGroups/Item.php @@ -1,6 +1,6 @@ defaultDueDays = $defaultDueDays; return $this; } + + public function getDefaultOrderStatusId(): ?int + { + return $this->defaultOrderStatusId; + } + + public function setDefaultOrderStatusId(?int $defaultOrderStatusId): static + { + $this->defaultOrderStatusId = $defaultOrderStatusId; + return $this; + } } diff --git a/src/Endpoint/Customers/DeleteCustomerGroupResponse/DeleteCustomerGroupResponse/Data.php b/src/Endpoint/Customers/DeleteCustomerGroupResponse/DeleteCustomerGroupResponse/Data.php deleted file mode 100644 index 73f88e11..00000000 --- a/src/Endpoint/Customers/DeleteCustomerGroupResponse/DeleteCustomerGroupResponse/Data.php +++ /dev/null @@ -1,9 +0,0 @@ - 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\DeleteCustomerAccount', '/api/customers/{guid}/delivery-addresses/{addressGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\DeleteCustomerDeliveryAddress', '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\DeleteCustomerRemark', - '/api/customers/groups/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerGroup', + '/api/customers/groups/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\DeleteCustomerGroup', '/api/template-include/{location}' => 'Shoptet\Api\Sdk\Php\Endpoint\Templates\DeleteHtmlCode', '/api/webhooks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\DeleteRegisteredWebhook', '/api/payment-methods/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\PaymentMethods\DeletePaymentMethod', @@ -155,7 +155,7 @@ class EndpointMap '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\GetDetailOfCustomerRemark', '/api/customers/changes' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetLastCustomerChanges', '/api/customers/regions' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerRegions', - '/api/customers/groups' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerGroups', + '/api/customers/groups' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\GetListOfCustomerGroups', '/api/template-include' => 'Shoptet\Api\Sdk\Php\Endpoint\Templates\GetListingOfHtmlCodes', '/api/payment-status/{paymentCode}' => 'Shoptet\Api\Sdk\Php\Endpoint\PaymentGateways\GetInformationAboutPayment', '/api/webhooks' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\GetOverviewOfRegisteredWebhooks', @@ -236,7 +236,7 @@ class EndpointMap '/api/customers/{guid}/accounts/{accountGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\UpdateCustomerAccount', '/api/customers/{guid}/delivery-addresses/{addressGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\UpdateCustomerDeliveryAddress', '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\UpdateCustomerRemark', - '/api/customers/groups/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerGroup', + '/api/customers/groups/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\UpdateCustomerGroup', '/api/payment-status/{paymentCode}' => 'Shoptet\Api\Sdk\Php\Endpoint\PaymentGateways\UpdatePaymentStatus', '/api/webhooks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\UpdateExistingWebhook', '/api/discount-coupons/use/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\UpdateDiscountCouponsUsage', @@ -299,7 +299,7 @@ class EndpointMap '/api/customers/{guid}/accounts' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\CreateCustomerAccount', '/api/customers/{guid}/delivery-addresses' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\CreateDeliveryAddress', '/api/customers/{guid}/remarks' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\CreateCustomerRemark', - '/api/customers/groups' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerGroup', + '/api/customers/groups' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\CreateCustomerGroup', '/api/template-include' => 'Shoptet\Api\Sdk\Php\Endpoint\Templates\CreateAndEditHtmlCodes', '/api/webhooks' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\RegisterNewWebhook', '/api/webhooks/renew-signature-key' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\GenerateWebhookSignatureKey', diff --git a/src/Sdk.php b/src/Sdk.php index 9995709c..1b0aca8e 100644 --- a/src/Sdk.php +++ b/src/Sdk.php @@ -93,6 +93,12 @@ use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\GetDetailOfCustomerDeliveryAddress; use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\UpdateCustomerDeliveryAddress; use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\UpdateCustomerDeliveryAddressRequest\UpdateCustomerDeliveryAddressRequest; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\CreateCustomerGroup; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\CreateCustomerGroupRequest\CreateCustomerGroupRequest; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\DeleteCustomerGroup; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\GetListOfCustomerGroups; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\UpdateCustomerGroup; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerGroups\UpdateCustomerGroupRequest\UpdateCustomerGroupRequest; use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\CreateCustomerRemark; use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\CreateCustomerRemarkRequest\CreateCustomerRemarkRequest; use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\DeleteCustomerRemark; @@ -101,20 +107,14 @@ use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\UpdateCustomerRemark; use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\UpdateCustomerRemarkRequest\UpdateCustomerRemarkRequest; use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomer; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerGroup; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerGroupRequest\CreateCustomerGroupRequest; use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerRequest\CreateCustomerRequest; use Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomer; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerGroup; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetCustomerDetail; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetLastCustomerChanges; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfAllCustomers; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerGroups; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerRegions; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomers; use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomer; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerGroup; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerGroupRequest\UpdateCustomerGroupRequest; use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerRequest\UpdateCustomerRequest; use Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\DeliveryNoteFromOrder; use Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\DeliveryNoteFromOrderRequest\DeliveryNoteFromOrderRequest; @@ -6401,7 +6401,7 @@ public static function getListOfCustomerRegions(array $queryParams = []): Respon * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofcustomergroups + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-groups/getlistofcustomergroups */ public static function getListOfCustomerGroups(array $queryParams = []): ResponseInterface { @@ -6423,7 +6423,7 @@ public static function getListOfCustomerGroups(array $queryParams = []): Respons * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/createcustomergroup + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-groups/createcustomergroup */ public static function createCustomerGroup( array|CreateCustomerGroupRequest $requestBody, @@ -6447,7 +6447,7 @@ public static function createCustomerGroup( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/deletecustomergroup + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-groups/deletecustomergroup */ public static function deleteCustomerGroup(string $id, array $queryParams = []): ResponseInterface { @@ -6472,7 +6472,7 @@ public static function deleteCustomerGroup(string $id, array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/updatecustomergroup + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-groups/updatecustomergroup */ public static function updateCustomerGroup( string $id,