diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 84568ff..50f7753 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -5,7 +5,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1'] + php-versions: ['8.1', '8.2'] steps: - name: Checkout uses: actions/checkout@v3 diff --git a/composer.json b/composer.json index 99a10ba..f813bc4 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require": { - "php": "~7.1|^8.0", + "php": "^8.1", "ext-json": "*", "guzzlehttp/guzzle": "^6.3|^7.0" }, @@ -46,7 +46,7 @@ }, "extra": { "branch-alias": { - "dev-master": "8.0-dev" + "dev-master": "10.0-dev" } }, "config": { diff --git a/src/Client.php b/src/Client.php index 92fd31d..eb0582b 100644 --- a/src/Client.php +++ b/src/Client.php @@ -39,7 +39,7 @@ public function getCommissions(array $commissionQueries): array * @param string $ean The EAN number associated with this product. * @param float $unitPrice The price of the product with a period as a decimal separator. The price should always * have two decimals precision. - * @param string|null $condition The condition of the offer. + * @param Enum\GetCommissionCondition|null $condition The condition of the offer. * @return Model\Commission|null * @throws Exception\ConnectException when an error occurred in the HTTP connection. * @throws Exception\ResponseException when an unexpected response was received. @@ -47,7 +47,7 @@ public function getCommissions(array $commissionQueries): array * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getCommission(string $ean, float $unitPrice, ?string $condition = null): ?Model\Commission + public function getCommission(string $ean, float $unitPrice, ?Enum\GetCommissionCondition $condition = null): ?Model\Commission { $url = "retailer/commission/${ean}"; $options = [ @@ -167,10 +167,10 @@ public function getUploadReport(string $uploadId): ?Model\UploadReportResponse /** * Get the product visits and the buy box percentage for an offer during a given period. * @param string $offerId Unique identifier for an offer. - * @param string $period The time unit in which the offer insights are grouped. + * @param Enum\GetOfferInsightsPeriod $period The time unit in which the offer insights are grouped. * @param int $numberOfPeriods The number of periods for which the offer insights are requested back in time. The * maximum available periods are 24 for MONTH, 104 for WEEK, and 730 for DAY. - * @param string $name The name of the requested offer insight. + * @param Enum\GetOfferInsightsName $name The name of the requested offer insight. * @return Model\OfferInsight[] * @throws Exception\ConnectException when an error occurred in the HTTP connection. * @throws Exception\ResponseException when an unexpected response was received. @@ -178,7 +178,7 @@ public function getUploadReport(string $uploadId): ?Model\UploadReportResponse * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getOfferInsights(string $offerId, string $period, int $numberOfPeriods, string $name): array + public function getOfferInsights(string $offerId, Enum\GetOfferInsightsPeriod $period, int $numberOfPeriods, Enum\GetOfferInsightsName $name): array { $url = "retailer/insights/offer"; $options = [ @@ -199,7 +199,7 @@ public function getOfferInsights(string $offerId, string $period, int $numberOfP /** * Gets the measurements for your performance indicators per week. - * @param string $name The type of the performance indicator + * @param Enum\GetPerformanceIndicatorsName $name The type of the performance indicator * @param string $year Year number in the ISO-8601 standard. * @param string $week Week number in the ISO-8601 standard. If you would like to get the relative scores from the * current week, please provide the current week number here. Be advised that measurements can change heavily over @@ -211,7 +211,7 @@ public function getOfferInsights(string $offerId, string $period, int $numberOfP * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getPerformanceIndicators(string $name, string $year, string $week): array + public function getPerformanceIndicators(Enum\GetPerformanceIndicatorsName $name, string $year, string $week): array { $url = "retailer/insights/performance/indicator"; $options = [ @@ -263,7 +263,7 @@ public function getSalesForecast(string $offerId, int $weeksAhead): Model\SalesF * bol.com customers are searching for. Based on the search volume per search term you can optimize your product * content, or spot opportunities to extend your assortment, or analyzing trends for inventory management. * @param string $searchTerm The search term for which you want to request the search volume. - * @param string $period The time unit in which the offer insights are grouped. + * @param Enum\GetSearchTermsPeriod $period The time unit in which the offer insights are grouped. * @param int $numberOfPeriods The number of periods for which the offer insights are requested back in time. * @param bool|null $relatedSearchTerms Indicates whether or not you want to retrieve the related search terms. * @return Model\SearchTerms @@ -273,7 +273,7 @@ public function getSalesForecast(string $offerId, int $weeksAhead): Model\SalesF * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getSearchTerms(string $searchTerm, string $period, int $numberOfPeriods, ?bool $relatedSearchTerms = false): Model\SearchTerms + public function getSearchTerms(string $searchTerm, Enum\GetSearchTermsPeriod $period, int $numberOfPeriods, ?bool $relatedSearchTerms = false): Model\SearchTerms { $url = "retailer/insights/search-terms"; $options = [ @@ -298,8 +298,8 @@ public function getSearchTerms(string $searchTerm, string $period, int $numberOf * @param int|null $page The requested page number with a page size of 50 items. * @param array $quantity Filter inventory by providing a range of quantity (min-range)-(max-range). Note that if no * state query is submitted in the same request, then the quantity will be filtered on regularStock by default. - * @param string|null $stock Filter inventory by stock level. - * @param string|null $state Filter inventory by stock type. + * @param Enum\GetInventoryStock|null $stock Filter inventory by stock level. + * @param Enum\GetInventoryState|null $state Filter inventory by stock type. * @param string|null $query Filter inventory by EAN or product title. * @return Model\Inventory[] * @throws Exception\ConnectException when an error occurred in the HTTP connection. @@ -308,7 +308,7 @@ public function getSearchTerms(string $searchTerm, string $period, int $numberOf * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getInventory(?int $page = 1, array $quantity = [], ?string $stock = null, ?string $state = null, ?string $query = null): array + public function getInventory(?int $page = 1, array $quantity = [], ?Enum\GetInventoryStock $stock = null, ?Enum\GetInventoryState $state = null, ?string $query = null): array { $url = "retailer/inventory"; $options = [ @@ -668,10 +668,10 @@ public function updateOfferStock(string $offerId, Model\UpdateOfferStockRequest /** * Gets a paginated list of all orders for a retailer. * @param int|null $page The requested page number with a page size of 50 items. - * @param string|null $fulfilmentMethod Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB). In order to - * retrieve both FBR and FBB orders, ALL can be used as a parameter. - * @param string|null $status To filter on order status. You can filter on either all orders independent from their - * status, open orders (excluding shipped and cancelled orders), and shipped orders. + * @param Enum\GetOrdersFulfilmentMethod|null $fulfilmentMethod Fulfilled by the retailer (FBR) or fulfilled by + * bol.com (FBB). In order to retrieve both FBR and FBB orders, ALL can be used as a parameter. + * @param Enum\GetOrdersStatus|null $status To filter on order status. You can filter on either all orders + * independent from their status, open orders (excluding shipped and cancelled orders), and shipped orders. * @param int|null $changeIntervalMinute To filter on the period in minutes during which the latest change was * performed on an order item. * @param string|null $latestChangeDate To filter on the date on which the latest change was performed on an order @@ -683,7 +683,7 @@ public function updateOfferStock(string $offerId, Model\UpdateOfferStockRequest * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getOrders(?int $page = 1, ?string $fulfilmentMethod = null, ?string $status = null, ?int $changeIntervalMinute = null, ?string $latestChangeDate = null): array + public function getOrders(?int $page = 1, ?Enum\GetOrdersFulfilmentMethod $fulfilmentMethod = null, ?Enum\GetOrdersStatus $status = null, ?int $changeIntervalMinute = null, ?string $latestChangeDate = null): array { $url = "retailer/orders"; $options = [ @@ -811,7 +811,8 @@ public function getProductList(Model\ProductListRequest $productListRequest, ?st /** * Gets the list of possible filters for products based on category or search term. - * @param string|null $countryCode The country for which the filters will be retrieved. + * @param Enum\GetProductListFiltersCountryCode|null $countryCode The country for which the filters will be + * retrieved. * @param string|null $searchTerm The search-term to get the associated categories and filters for. * @param string|null $categoryId The category to get the associated filters for. * @param string|null $AcceptLanguage The language in which the product list filters will be retrieved. @@ -822,7 +823,7 @@ public function getProductList(Model\ProductListRequest $productListRequest, ?st * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getProductListFilters(?string $countryCode = null, ?string $searchTerm = null, ?string $categoryId = null, ?string $AcceptLanguage = null): ?Model\ProductListFiltersResponse + public function getProductListFilters(?Enum\GetProductListFiltersCountryCode $countryCode = null, ?string $searchTerm = null, ?string $categoryId = null, ?string $AcceptLanguage = null): ?Model\ProductListFiltersResponse { $url = "retailer/products/list-filters"; $options = [ @@ -844,7 +845,7 @@ public function getProductListFilters(?string $countryCode = null, ?string $sear /** * Gets the list of asset available for the product by EAN. * @param string $ean The EAN number associated with this product. - * @param string|null $usage Type of the asset being used for. + * @param Enum\GetProductAssetsUsage|null $usage Type of the asset being used for. * @return Model\ProductAssets[] * @throws Exception\ConnectException when an error occurred in the HTTP connection. * @throws Exception\ResponseException when an unexpected response was received. @@ -852,7 +853,7 @@ public function getProductListFilters(?string $countryCode = null, ?string $sear * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getProductAssets(string $ean, ?string $usage = null): array + public function getProductAssets(string $ean, ?Enum\GetProductAssetsUsage $usage = null): array { $url = "retailer/products/${ean}/assets"; $options = [ @@ -874,10 +875,10 @@ public function getProductAssets(string $ean, ?string $usage = null): array * Use this endpoint to get a list of offers available in the webshop. The list includes offers for all retailers. * @param string $ean The EAN number associated with this product. * @param int|null $page The requested page number with a page size of 50 items. - * @param string|null $countryCode Countries in which this offer is currently on sale in the webshop, in ISO-3166-1 - * format. + * @param Enum\GetCompetingOffersCountryCode|null $countryCode Countries in which this offer is currently on sale in + * the webshop, in ISO-3166-1 format. * @param bool|null $bestOfferOnly Indicator to request the best offer within the country for the requested EAN. - * @param string|null $condition The condition of the offered product. + * @param Enum\GetCompetingOffersCondition|null $condition The condition of the offered product. * @return Model\Offer[] * @throws Exception\ConnectException when an error occurred in the HTTP connection. * @throws Exception\ResponseException when an unexpected response was received. @@ -885,7 +886,7 @@ public function getProductAssets(string $ean, ?string $usage = null): array * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getCompetingOffers(string $ean, ?int $page = 1, ?string $countryCode = null, ?bool $bestOfferOnly = false, ?string $condition = null): array + public function getCompetingOffers(string $ean, ?int $page = 1, ?Enum\GetCompetingOffersCountryCode $countryCode = null, ?bool $bestOfferOnly = false, ?Enum\GetCompetingOffersCondition $condition = null): array { $url = "retailer/products/${ean}/offers"; $options = [ @@ -909,7 +910,7 @@ public function getCompetingOffers(string $ean, ?int $page = 1, ?string $country /** * Gets the list of categories and the URL where the product is placed in the webshop. * @param string $ean The EAN number associated with this product. - * @param string|null $countryCode The country of the product placed on the webshop. + * @param Enum\GetProductPlacementCountryCode|null $countryCode The country of the product placed on the webshop. * @param string|null $AcceptLanguage The language in which the product categories and URL will be retrieved. * @return Model\ProductPlacementResponse|null * @throws Exception\ConnectException when an error occurred in the HTTP connection. @@ -918,7 +919,7 @@ public function getCompetingOffers(string $ean, ?int $page = 1, ?string $country * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getProductPlacement(string $ean, ?string $countryCode = null, ?string $AcceptLanguage = null): ?Model\ProductPlacementResponse + public function getProductPlacement(string $ean, ?Enum\GetProductPlacementCountryCode $countryCode = null, ?string $AcceptLanguage = null): ?Model\ProductPlacementResponse { $url = "retailer/products/${ean}/placement"; $options = [ @@ -986,7 +987,7 @@ public function getProductRatings(string $ean): array /** * Gets a paginated list of all promotions for a retailer. - * @param string $promotionType The type(s) of promotion to be retrieved. + * @param Enum\GetPromotionsPromotionType $promotionType The type(s) of promotion to be retrieved. * @param int|null $page The requested page number with a page size of 50 items. * @return Model\ReducedPromotion[] * @throws Exception\ConnectException when an error occurred in the HTTP connection. @@ -995,7 +996,7 @@ public function getProductRatings(string $ean): array * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getPromotions(string $promotionType, ?int $page = 1): array + public function getPromotions(Enum\GetPromotionsPromotionType $promotionType, ?int $page = 1): array { $url = "retailer/promotions"; $options = [ @@ -1300,7 +1301,7 @@ public function putReplenishment(string $replenishmentId, Model\UpdateReplenishm /** * Retrieve the load carrier labels. * @param string $replenishmentId The unique identifier of the replenishment. - * @param string|null $labelType The type of label which you want to print. + * @param Enum\GetLoadCarrierLabelsLabelType|null $labelType The type of label which you want to print. * @return string|null * @throws Exception\ConnectException when an error occurred in the HTTP connection. * @throws Exception\ResponseException when an unexpected response was received. @@ -1308,7 +1309,7 @@ public function putReplenishment(string $replenishmentId, Model\UpdateReplenishm * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getLoadCarrierLabels(string $replenishmentId, ?string $labelType = null): ?string + public function getLoadCarrierLabels(string $replenishmentId, ?Enum\GetLoadCarrierLabelsLabelType $labelType = null): ?string { $url = "retailer/replenishments/${replenishmentId}/load-carrier-labels"; $options = [ @@ -1378,8 +1379,8 @@ public function getRetailerInformation(string $retailerId): ?Model\RetailerInfor * unhandled returns are sorted by date in ascending order. * @param int|null $page The page to get with a page size of 50. * @param bool|null $handled The status of the returns you wish to see, shows either handled or unhandled returns. - * @param string|null $fulfilmentMethod The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by - * bol.com (FBB). + * @param Enum\GetReturnsFulfilmentMethod|null $fulfilmentMethod The fulfilment method. Fulfilled by the retailer + * (FBR) or fulfilled by bol.com (FBB). * @return Model\ReducedReturn[] * @throws Exception\ConnectException when an error occurred in the HTTP connection. * @throws Exception\ResponseException when an unexpected response was received. @@ -1387,7 +1388,7 @@ public function getRetailerInformation(string $retailerId): ?Model\RetailerInfor * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getReturns(?int $page = 1, ?bool $handled = null, ?string $fulfilmentMethod = null): array + public function getReturns(?int $page = 1, ?bool $handled = null, ?Enum\GetReturnsFulfilmentMethod $fulfilmentMethod = null): array { $url = "retailer/returns"; $options = [ @@ -1486,8 +1487,8 @@ public function handleReturn(int $rmaId, Model\ReturnRequest $returnRequest): Mo * A paginated list to retrieve all your shipments up to 3 months old. The shipments will be sorted by date in * descending order. * @param int|null $page The page to get with a page size of 50. - * @param string|null $fulfilmentMethod The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by - * bol.com (FBB). + * @param Enum\GetShipmentsFulfilmentMethod|null $fulfilmentMethod The fulfilment method. Fulfilled by the retailer + * (FBR) or fulfilled by bol.com (FBB). * @param string|null $orderId The id of the order. Only valid without fulfilment-method. The default * fulfilment-method is ignored. * @return Model\ReducedShipment[] @@ -1497,7 +1498,7 @@ public function handleReturn(int $rmaId, Model\ReturnRequest $returnRequest): Mo * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getShipments(?int $page = 1, ?string $fulfilmentMethod = null, ?string $orderId = null): array + public function getShipments(?int $page = 1, ?Enum\GetShipmentsFulfilmentMethod $fulfilmentMethod = null, ?string $orderId = null): array { $url = "retailer/shipments"; $options = [ @@ -1847,8 +1848,9 @@ public function getPriceStarBoundaries(string $ean): ?Model\PriceStarBoundaries * Gets a list of paginated invoice requests initiated by customers. * @param string|null $shipmentId The id of the shipment. * @param int|null $page The requested page number with a page size of 50 items. - * @param string|null $state To filter on invoice request state. You can filter on all invoice requests regardless - * their statuses, open invoice requests requiring your action and invoice requests uploaded with possible errors. + * @param Enum\GetInvoiceRequestsState|null $state To filter on invoice request state. You can filter on all invoice + * requests regardless their statuses, open invoice requests requiring your action and invoice requests uploaded + * with possible errors. * @return Model\InvoiceRequests[] * @throws Exception\ConnectException when an error occurred in the HTTP connection. * @throws Exception\ResponseException when an unexpected response was received. @@ -1856,7 +1858,7 @@ public function getPriceStarBoundaries(string $ean): ?Model\PriceStarBoundaries * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getInvoiceRequests(?string $shipmentId = null, ?int $page = 1, ?string $state = null): array + public function getInvoiceRequests(?string $shipmentId = null, ?int $page = 1, ?Enum\GetInvoiceRequestsState $state = null): array { $url = "retailer/shipments/invoices/requests"; $options = [ @@ -1916,7 +1918,8 @@ public function uploadInvoice(string $shipmentId, string $invoice): ?Model\Proce * these statuses. * @param string $entityId The entity id is not unique, so you will need to provide an event type. For example, an * entity id can be an order item id, transport id, return number, replenishment id, campaign id, and keyword id. - * @param string $eventType The event type can only be used in combination with the entity id. + * @param Enum\GetProcessStatusEntityIdEventType $eventType The event type can only be used in combination with the + * entity id. * @param int|null $page The requested page number with a page size of 50 items. * @return Model\ProcessStatus[] * @throws Exception\ConnectException when an error occurred in the HTTP connection. @@ -1925,7 +1928,7 @@ public function uploadInvoice(string $shipmentId, string $invoice): ?Model\Proce * @throws Exception\RateLimitException when the throttling limit has been reached for the API user. * @throws Exception\Exception when something unexpected went wrong. */ - public function getProcessStatusEntityId(string $entityId, string $eventType, ?int $page = 1): array + public function getProcessStatusEntityId(string $entityId, Enum\GetProcessStatusEntityIdEventType $eventType, ?int $page = 1): array { $url = "shared/process-status"; $options = [ diff --git a/src/Enum/BillingDetailsSalutation.php b/src/Enum/BillingDetailsSalutation.php new file mode 100644 index 0000000..9d10760 --- /dev/null +++ b/src/Enum/BillingDetailsSalutation.php @@ -0,0 +1,11 @@ +='; +} diff --git a/src/Enum/OrderFulfilmentDistributionParty.php b/src/Enum/OrderFulfilmentDistributionParty.php new file mode 100644 index 0000000..cde3783 --- /dev/null +++ b/src/Enum/OrderFulfilmentDistributionParty.php @@ -0,0 +1,10 @@ +$field = $data[$field]; } elseif ($definition['array']) { $this->$field = array_map(function ($data) use ($definition) { @@ -49,8 +49,12 @@ public function fromArray(array $data): void } else { if ($data[$field] instanceof AbstractModel) { $this->$field = $data[$field]; - } else { + } elseif ($data[$field] instanceof \UnitEnum) { + $this->$field = $data[$field]; + } elseif ($definition['model']) { $this->$field = $definition['model']::constructFromArray($data[$field]); + } elseif ($definition['enum']) { + $this->$field = $definition['enum']::from($data[$field]); } } } diff --git a/src/Model/AdditionalService.php b/src/Model/AdditionalService.php index 99d57dc..d9cabf7 100644 --- a/src/Model/AdditionalService.php +++ b/src/Model/AdditionalService.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class AdditionalService extends AbstractModel { @@ -15,7 +17,7 @@ class AdditionalService extends AbstractModel public function getModelDefinition(): array { return [ - 'serviceType' => [ 'model' => null, 'array' => false ], + 'serviceType' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Address.php b/src/Model/Address.php index e03c9bc..d39d579 100644 --- a/src/Model/Address.php +++ b/src/Model/Address.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Address extends AbstractModel { @@ -15,13 +17,13 @@ class Address extends AbstractModel public function getModelDefinition(): array { return [ - 'streetName' => [ 'model' => null, 'array' => false ], - 'houseNumber' => [ 'model' => null, 'array' => false ], - 'houseNumberExtension' => [ 'model' => null, 'array' => false ], - 'zipCode' => [ 'model' => null, 'array' => false ], - 'city' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], - 'attentionOf' => [ 'model' => null, 'array' => false ], + 'streetName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumberExtension' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'zipCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'city' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'attentionOf' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Asset.php b/src/Model/Asset.php index 2dd2d61..44949e1 100644 --- a/src/Model/Asset.php +++ b/src/Model/Asset.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Asset extends AbstractModel { @@ -15,8 +17,8 @@ class Asset extends AbstractModel public function getModelDefinition(): array { return [ - 'url' => [ 'model' => null, 'array' => false ], - 'labels' => [ 'model' => null, 'array' => true ], + 'url' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'labels' => [ 'model' => null, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Attribute.php b/src/Model/Attribute.php index a987b1c..ab83108 100644 --- a/src/Model/Attribute.php +++ b/src/Model/Attribute.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Attribute extends AbstractModel { @@ -15,8 +17,8 @@ class Attribute extends AbstractModel public function getModelDefinition(): array { return [ - 'id' => [ 'model' => null, 'array' => false ], - 'values' => [ 'model' => AttributeValue::class, 'array' => true ], + 'id' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'values' => [ 'model' => AttributeValue::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/AttributeValue.php b/src/Model/AttributeValue.php index 15ddae0..8815c1e 100644 --- a/src/Model/AttributeValue.php +++ b/src/Model/AttributeValue.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class AttributeValue extends AbstractModel { @@ -15,8 +17,8 @@ class AttributeValue extends AbstractModel public function getModelDefinition(): array { return [ - 'value' => [ 'model' => null, 'array' => false ], - 'unitId' => [ 'model' => null, 'array' => false ], + 'value' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unitId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Attributes.php b/src/Model/Attributes.php index a85ea30..a0223d0 100644 --- a/src/Model/Attributes.php +++ b/src/Model/Attributes.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Attributes extends AbstractModel { @@ -15,8 +17,8 @@ class Attributes extends AbstractModel public function getModelDefinition(): array { return [ - 'id' => [ 'model' => null, 'array' => false ], - 'values' => [ 'model' => Values::class, 'array' => true ], + 'id' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'values' => [ 'model' => Values::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/AudioTracks.php b/src/Model/AudioTracks.php index 7b2b60c..3ec19db 100644 --- a/src/Model/AudioTracks.php +++ b/src/Model/AudioTracks.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class AudioTracks extends AbstractModel { @@ -15,14 +17,14 @@ class AudioTracks extends AbstractModel public function getModelDefinition(): array { return [ - 'discNumber' => [ 'model' => null, 'array' => false ], - 'trackNumber' => [ 'model' => null, 'array' => false ], - 'discSide' => [ 'model' => null, 'array' => false ], - 'title' => [ 'model' => null, 'array' => false ], - 'artistName' => [ 'model' => null, 'array' => false ], - 'playTime' => [ 'model' => null, 'array' => false ], - 'clipUrl' => [ 'model' => null, 'array' => false ], - 'clipType' => [ 'model' => null, 'array' => false ], + 'discNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'trackNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'discSide' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'title' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'artistName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'playTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'clipUrl' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'clipType' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Authentication/TokenRequest.php b/src/Model/Authentication/TokenRequest.php index f533523..bdfe9ea 100644 --- a/src/Model/Authentication/TokenRequest.php +++ b/src/Model/Authentication/TokenRequest.php @@ -9,10 +9,10 @@ class TokenRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'grant_type' => [ 'model' => null, 'array' => false ], - 'code' => [ 'model' => null, 'array' => true ], - 'redirect_uri' => [ 'model' => null, 'array' => true ], - 'refresh_token' => [ 'model' => null, 'array' => true ], + 'grant_type' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'code' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'redirect_uri' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'refresh_token' => [ 'model' => null, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Authentication/TokenResponse.php b/src/Model/Authentication/TokenResponse.php index ba696d3..8ab6838 100644 --- a/src/Model/Authentication/TokenResponse.php +++ b/src/Model/Authentication/TokenResponse.php @@ -9,11 +9,11 @@ class TokenResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'expires_in' => [ 'model' => null, 'array' => false ], - 'refresh_token' => [ 'model' => null, 'array' => true ], - 'token_type' => [ 'model' => null, 'array' => true ], - 'scope' => [ 'model' => null, 'array' => true ], - 'access_token' => [ 'model' => null, 'array' => true ], + 'expires_in' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'refresh_token' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'token_type' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'scope' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'access_token' => [ 'model' => null, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/BillingDetails.php b/src/Model/BillingDetails.php index eee5b15..ca81e42 100644 --- a/src/Model/BillingDetails.php +++ b/src/Model/BillingDetails.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class BillingDetails extends AbstractModel { @@ -15,23 +17,23 @@ class BillingDetails extends AbstractModel public function getModelDefinition(): array { return [ - 'salutation' => [ 'model' => null, 'array' => false ], - 'firstName' => [ 'model' => null, 'array' => false ], - 'surname' => [ 'model' => null, 'array' => false ], - 'streetName' => [ 'model' => null, 'array' => false ], - 'houseNumber' => [ 'model' => null, 'array' => false ], - 'houseNumberExtension' => [ 'model' => null, 'array' => false ], - 'zipCode' => [ 'model' => null, 'array' => false ], - 'city' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], - 'company' => [ 'model' => null, 'array' => false ], - 'vatNumber' => [ 'model' => null, 'array' => false ], - 'kvkNumber' => [ 'model' => null, 'array' => false ], + 'salutation' => [ 'model' => null, 'enum' => Enum\BillingDetailsSalutation::class, 'array' => false ], + 'firstName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'surname' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'streetName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumberExtension' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'zipCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'city' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'company' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'vatNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'kvkNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string The salutation of the customer. + * @var Enum\BillingDetailsSalutation The salutation of the customer. */ public $salutation; diff --git a/src/Model/BulkCommissionQuery.php b/src/Model/BulkCommissionQuery.php index 9849579..a98e1d0 100644 --- a/src/Model/BulkCommissionQuery.php +++ b/src/Model/BulkCommissionQuery.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class BulkCommissionQuery extends AbstractModel { @@ -15,9 +17,9 @@ class BulkCommissionQuery extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'condition' => [ 'model' => null, 'array' => false ], - 'unitPrice' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'condition' => [ 'model' => null, 'enum' => Enum\BulkCommissionQueryCondition::class, 'array' => false ], + 'unitPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } @@ -27,7 +29,7 @@ public function getModelDefinition(): array public $ean; /** - * @var string The condition of the offer. + * @var Enum\BulkCommissionQueryCondition The condition of the offer. */ public $condition; diff --git a/src/Model/BulkCommissionRequest.php b/src/Model/BulkCommissionRequest.php index 510205a..cfa76f0 100644 --- a/src/Model/BulkCommissionRequest.php +++ b/src/Model/BulkCommissionRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class BulkCommissionRequest extends AbstractModel { @@ -15,7 +17,7 @@ class BulkCommissionRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'commissionQueries' => [ 'model' => BulkCommissionQuery::class, 'array' => true ], + 'commissionQueries' => [ 'model' => BulkCommissionQuery::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/BulkCommissionResponse.php b/src/Model/BulkCommissionResponse.php index 61c7690..0b54c2b 100644 --- a/src/Model/BulkCommissionResponse.php +++ b/src/Model/BulkCommissionResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class BulkCommissionResponse extends AbstractModel { @@ -15,7 +17,7 @@ class BulkCommissionResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'commissions' => [ 'model' => Commission::class, 'array' => true ], + 'commissions' => [ 'model' => Commission::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/BulkProcessStatusRequest.php b/src/Model/BulkProcessStatusRequest.php index e350953..3d2410b 100644 --- a/src/Model/BulkProcessStatusRequest.php +++ b/src/Model/BulkProcessStatusRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class BulkProcessStatusRequest extends AbstractModel { @@ -15,7 +17,7 @@ class BulkProcessStatusRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'processStatusQueries' => [ 'model' => ProcessStatusId::class, 'array' => true ], + 'processStatusQueries' => [ 'model' => ProcessStatusId::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/BundlePrice.php b/src/Model/BundlePrice.php index 6c9e042..c545e4a 100644 --- a/src/Model/BundlePrice.php +++ b/src/Model/BundlePrice.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class BundlePrice extends AbstractModel { @@ -15,8 +17,8 @@ class BundlePrice extends AbstractModel public function getModelDefinition(): array { return [ - 'quantity' => [ 'model' => null, 'array' => false ], - 'unitPrice' => [ 'model' => null, 'array' => false ], + 'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unitPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Campaign.php b/src/Model/Campaign.php index a1cccf2..65f512b 100644 --- a/src/Model/Campaign.php +++ b/src/Model/Campaign.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Campaign extends AbstractModel { @@ -15,9 +17,9 @@ class Campaign extends AbstractModel public function getModelDefinition(): array { return [ - 'name' => [ 'model' => null, 'array' => false ], - 'startDateTime' => [ 'model' => null, 'array' => false ], - 'endDateTime' => [ 'model' => null, 'array' => false ], + 'name' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'startDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'endDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/CancellationRequest.php b/src/Model/CancellationRequest.php index a8797cc..b91eb65 100644 --- a/src/Model/CancellationRequest.php +++ b/src/Model/CancellationRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CancellationRequest extends AbstractModel { @@ -15,7 +17,7 @@ class CancellationRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItems' => [ 'model' => OrderItemCancellation::class, 'array' => true ], + 'orderItems' => [ 'model' => OrderItemCancellation::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/CatalogProduct.php b/src/Model/CatalogProduct.php index e6f2341..ce93fcf 100644 --- a/src/Model/CatalogProduct.php +++ b/src/Model/CatalogProduct.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CatalogProduct extends AbstractModel { @@ -15,13 +17,13 @@ class CatalogProduct extends AbstractModel public function getModelDefinition(): array { return [ - 'published' => [ 'model' => null, 'array' => false ], - 'gpc' => [ 'model' => Gpc::class, 'array' => false ], - 'enrichment' => [ 'model' => Enrichment::class, 'array' => false ], - 'attributes' => [ 'model' => Attributes::class, 'array' => true ], - 'parties' => [ 'model' => Party::class, 'array' => true ], - 'audioTracks' => [ 'model' => AudioTracks::class, 'array' => true ], - 'series' => [ 'model' => Serie::class, 'array' => true ], + 'published' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'gpc' => [ 'model' => Gpc::class, 'enum' => null, 'array' => false ], + 'enrichment' => [ 'model' => Enrichment::class, 'enum' => null, 'array' => false ], + 'attributes' => [ 'model' => Attributes::class, 'enum' => null, 'array' => true ], + 'parties' => [ 'model' => Party::class, 'enum' => null, 'array' => true ], + 'audioTracks' => [ 'model' => AudioTracks::class, 'enum' => null, 'array' => true ], + 'series' => [ 'model' => Serie::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Categories.php b/src/Model/Categories.php index eaabb15..4acc1b2 100644 --- a/src/Model/Categories.php +++ b/src/Model/Categories.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Categories extends AbstractModel { @@ -15,8 +17,8 @@ class Categories extends AbstractModel public function getModelDefinition(): array { return [ - 'categoryName' => [ 'model' => null, 'array' => false ], - 'categoryValues' => [ 'model' => CategoryValues::class, 'array' => true ], + 'categoryName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'categoryValues' => [ 'model' => CategoryValues::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Category.php b/src/Model/Category.php index 886bc98..26ee0d2 100644 --- a/src/Model/Category.php +++ b/src/Model/Category.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Category extends AbstractModel { @@ -15,9 +17,9 @@ class Category extends AbstractModel public function getModelDefinition(): array { return [ - 'categoryId' => [ 'model' => null, 'array' => false ], - 'categoryName' => [ 'model' => null, 'array' => false ], - 'subcategories' => [ 'model' => SubCategory::class, 'array' => true ], + 'categoryId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'categoryName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'subcategories' => [ 'model' => SubCategory::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/CategoryValues.php b/src/Model/CategoryValues.php index ae5f1f2..5d686d5 100644 --- a/src/Model/CategoryValues.php +++ b/src/Model/CategoryValues.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CategoryValues extends AbstractModel { @@ -15,8 +17,8 @@ class CategoryValues extends AbstractModel public function getModelDefinition(): array { return [ - 'categoryValueId' => [ 'model' => null, 'array' => false ], - 'categoryValueName' => [ 'model' => null, 'array' => false ], + 'categoryValueId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'categoryValueName' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ChangeTransportRequest.php b/src/Model/ChangeTransportRequest.php index 0f780d7..1a046da 100644 --- a/src/Model/ChangeTransportRequest.php +++ b/src/Model/ChangeTransportRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ChangeTransportRequest extends AbstractModel { @@ -15,13 +17,13 @@ class ChangeTransportRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'transporterCode' => [ 'model' => null, 'array' => false ], - 'trackAndTrace' => [ 'model' => null, 'array' => false ], + 'transporterCode' => [ 'model' => null, 'enum' => Enum\ChangeTransportRequestTransporterCode::class, 'array' => false ], + 'trackAndTrace' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string + * @var Enum\ChangeTransportRequestTransporterCode */ public $transporterCode; diff --git a/src/Model/ChunkRecommendationsAttribute.php b/src/Model/ChunkRecommendationsAttribute.php index 67cc3d4..c961d05 100644 --- a/src/Model/ChunkRecommendationsAttribute.php +++ b/src/Model/ChunkRecommendationsAttribute.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ChunkRecommendationsAttribute extends AbstractModel { @@ -15,8 +17,8 @@ class ChunkRecommendationsAttribute extends AbstractModel public function getModelDefinition(): array { return [ - 'id' => [ 'model' => null, 'array' => false ], - 'values' => [ 'model' => ChunkRecommendationsValue::class, 'array' => true ], + 'id' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'values' => [ 'model' => ChunkRecommendationsValue::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ChunkRecommendationsAttributes.php b/src/Model/ChunkRecommendationsAttributes.php index 3f63062..1c41ed1 100644 --- a/src/Model/ChunkRecommendationsAttributes.php +++ b/src/Model/ChunkRecommendationsAttributes.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ChunkRecommendationsAttributes extends AbstractModel { @@ -15,7 +17,7 @@ class ChunkRecommendationsAttributes extends AbstractModel public function getModelDefinition(): array { return [ - 'attributes' => [ 'model' => ChunkRecommendationsAttribute::class, 'array' => true ], + 'attributes' => [ 'model' => ChunkRecommendationsAttribute::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ChunkRecommendationsPrediction.php b/src/Model/ChunkRecommendationsPrediction.php index b511a87..71bd328 100644 --- a/src/Model/ChunkRecommendationsPrediction.php +++ b/src/Model/ChunkRecommendationsPrediction.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ChunkRecommendationsPrediction extends AbstractModel { @@ -15,8 +17,8 @@ class ChunkRecommendationsPrediction extends AbstractModel public function getModelDefinition(): array { return [ - 'chunkId' => [ 'model' => null, 'array' => false ], - 'probability' => [ 'model' => null, 'array' => false ], + 'chunkId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'probability' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ChunkRecommendationsPredictions.php b/src/Model/ChunkRecommendationsPredictions.php index 7ba52b8..dd08494 100644 --- a/src/Model/ChunkRecommendationsPredictions.php +++ b/src/Model/ChunkRecommendationsPredictions.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ChunkRecommendationsPredictions extends AbstractModel { @@ -15,7 +17,7 @@ class ChunkRecommendationsPredictions extends AbstractModel public function getModelDefinition(): array { return [ - 'predictions' => [ 'model' => ChunkRecommendationsPrediction::class, 'array' => true ], + 'predictions' => [ 'model' => ChunkRecommendationsPrediction::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ChunkRecommendationsRequest.php b/src/Model/ChunkRecommendationsRequest.php index 7812576..5c57002 100644 --- a/src/Model/ChunkRecommendationsRequest.php +++ b/src/Model/ChunkRecommendationsRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ChunkRecommendationsRequest extends AbstractModel { @@ -15,7 +17,7 @@ class ChunkRecommendationsRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'productContents' => [ 'model' => ChunkRecommendationsAttributes::class, 'array' => true ], + 'productContents' => [ 'model' => ChunkRecommendationsAttributes::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ChunkRecommendationsResponse.php b/src/Model/ChunkRecommendationsResponse.php index efdb5b5..c5dde42 100644 --- a/src/Model/ChunkRecommendationsResponse.php +++ b/src/Model/ChunkRecommendationsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ChunkRecommendationsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class ChunkRecommendationsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'recommendations' => [ 'model' => ChunkRecommendationsPredictions::class, 'array' => true ], + 'recommendations' => [ 'model' => ChunkRecommendationsPredictions::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ChunkRecommendationsValue.php b/src/Model/ChunkRecommendationsValue.php index f6b1e5d..a6ecb3c 100644 --- a/src/Model/ChunkRecommendationsValue.php +++ b/src/Model/ChunkRecommendationsValue.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ChunkRecommendationsValue extends AbstractModel { @@ -15,7 +17,7 @@ class ChunkRecommendationsValue extends AbstractModel public function getModelDefinition(): array { return [ - 'value' => [ 'model' => null, 'array' => false ], + 'value' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Commission.php b/src/Model/Commission.php index a2b124e..9b56ca4 100644 --- a/src/Model/Commission.php +++ b/src/Model/Commission.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Commission extends AbstractModel { @@ -15,14 +17,14 @@ class Commission extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'condition' => [ 'model' => null, 'array' => false ], - 'unitPrice' => [ 'model' => null, 'array' => false ], - 'fixedAmount' => [ 'model' => null, 'array' => false ], - 'percentage' => [ 'model' => null, 'array' => false ], - 'totalCost' => [ 'model' => null, 'array' => false ], - 'totalCostWithoutReduction' => [ 'model' => null, 'array' => false ], - 'reductions' => [ 'model' => Reduction::class, 'array' => true ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'condition' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unitPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fixedAmount' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'percentage' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'totalCost' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'totalCostWithoutReduction' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'reductions' => [ 'model' => Reduction::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/CompetingOffersResponse.php b/src/Model/CompetingOffersResponse.php index e216fe2..d3823d2 100644 --- a/src/Model/CompetingOffersResponse.php +++ b/src/Model/CompetingOffersResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CompetingOffersResponse extends AbstractModel { @@ -15,7 +17,7 @@ class CompetingOffersResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'offers' => [ 'model' => Offer::class, 'array' => true ], + 'offers' => [ 'model' => Offer::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Condition.php b/src/Model/Condition.php index ceaa511..c2caef6 100644 --- a/src/Model/Condition.php +++ b/src/Model/Condition.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Condition extends AbstractModel { @@ -15,19 +17,19 @@ class Condition extends AbstractModel public function getModelDefinition(): array { return [ - 'name' => [ 'model' => null, 'array' => false ], - 'category' => [ 'model' => null, 'array' => false ], - 'comment' => [ 'model' => null, 'array' => false ], + 'name' => [ 'model' => null, 'enum' => Enum\ConditionName::class, 'array' => false ], + 'category' => [ 'model' => null, 'enum' => Enum\ConditionCategory::class, 'array' => false ], + 'comment' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string The condition of the offered product. + * @var Enum\ConditionName The condition of the offered product. */ public $name; /** - * @var string The category of the condition. If not given NEW or SECONDHAND is derived from NAME. + * @var Enum\ConditionCategory The category of the condition. If not given NEW or SECONDHAND is derived from NAME. */ public $category; diff --git a/src/Model/ContainerForTheOrderItemsThatHaveToBeCancelled.php b/src/Model/ContainerForTheOrderItemsThatHaveToBeCancelled.php deleted file mode 100644 index e9fc97a..0000000 --- a/src/Model/ContainerForTheOrderItemsThatHaveToBeCancelled.php +++ /dev/null @@ -1,26 +0,0 @@ - [ 'model' => OrderItemCancellation::class, 'array' => true ], - ]; - } - - /** - * @var OrderItemCancellation[] List of order items to cancel. Order item id's must belong to the same order. - */ - public $orderItems = []; -} diff --git a/src/Model/Countries.php b/src/Model/Countries.php index 9cdff55..d9635df 100644 --- a/src/Model/Countries.php +++ b/src/Model/Countries.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Countries extends AbstractModel { @@ -15,9 +17,9 @@ class Countries extends AbstractModel public function getModelDefinition(): array { return [ - 'countryCode' => [ 'model' => null, 'array' => false ], - 'minimum' => [ 'model' => null, 'array' => false ], - 'maximum' => [ 'model' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'minimum' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'maximum' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/CreateAddress.php b/src/Model/CreateAddress.php index 23f5403..91d6151 100644 --- a/src/Model/CreateAddress.php +++ b/src/Model/CreateAddress.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateAddress extends AbstractModel { @@ -15,13 +17,13 @@ class CreateAddress extends AbstractModel public function getModelDefinition(): array { return [ - 'streetName' => [ 'model' => null, 'array' => false ], - 'houseNumber' => [ 'model' => null, 'array' => false ], - 'zipCode' => [ 'model' => null, 'array' => false ], - 'houseNumberExtension' => [ 'model' => null, 'array' => false ], - 'city' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], - 'attentionOf' => [ 'model' => null, 'array' => false ], + 'streetName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'zipCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumberExtension' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'city' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'attentionOf' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/CreateDeliveryInfo.php b/src/Model/CreateDeliveryInfo.php index 0161fbd..630707f 100644 --- a/src/Model/CreateDeliveryInfo.php +++ b/src/Model/CreateDeliveryInfo.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateDeliveryInfo extends AbstractModel { @@ -15,8 +17,8 @@ class CreateDeliveryInfo extends AbstractModel public function getModelDefinition(): array { return [ - 'expectedDeliveryDate' => [ 'model' => null, 'array' => false ], - 'transporterCode' => [ 'model' => null, 'array' => false ], + 'expectedDeliveryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transporterCode' => [ 'model' => null, 'enum' => Enum\CreateDeliveryInfoTransporterCode::class, 'array' => false ], ]; } @@ -26,7 +28,8 @@ public function getModelDefinition(): array public $expectedDeliveryDate; /** - * @var string The transporter code that correlates to the transport used for this replenishment. + * @var Enum\CreateDeliveryInfoTransporterCode The transporter code that correlates to the transport used for this + * replenishment. */ public $transporterCode; } diff --git a/src/Model/CreateOfferExportRequest.php b/src/Model/CreateOfferExportRequest.php index af8f553..178d914 100644 --- a/src/Model/CreateOfferExportRequest.php +++ b/src/Model/CreateOfferExportRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateOfferExportRequest extends AbstractModel { @@ -15,12 +17,12 @@ class CreateOfferExportRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'format' => [ 'model' => null, 'array' => false ], + 'format' => [ 'model' => null, 'enum' => Enum\CreateOfferExportRequestFormat::class, 'array' => false ], ]; } /** - * @var string The file format in which to return the export. + * @var Enum\CreateOfferExportRequestFormat The file format in which to return the export. */ public $format; } diff --git a/src/Model/CreateOfferRequest.php b/src/Model/CreateOfferRequest.php index 794a80f..93afe35 100644 --- a/src/Model/CreateOfferRequest.php +++ b/src/Model/CreateOfferRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateOfferRequest extends AbstractModel { @@ -15,14 +17,14 @@ class CreateOfferRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'condition' => [ 'model' => Condition::class, 'array' => false ], - 'reference' => [ 'model' => null, 'array' => false ], - 'onHoldByRetailer' => [ 'model' => null, 'array' => false ], - 'unknownProductTitle' => [ 'model' => null, 'array' => false ], - 'pricing' => [ 'model' => Pricing::class, 'array' => false ], - 'stock' => [ 'model' => StockCreate::class, 'array' => false ], - 'fulfilment' => [ 'model' => Fulfilment::class, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'condition' => [ 'model' => Condition::class, 'enum' => null, 'array' => false ], + 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'onHoldByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unknownProductTitle' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'pricing' => [ 'model' => Pricing::class, 'enum' => null, 'array' => false ], + 'stock' => [ 'model' => StockCreate::class, 'enum' => null, 'array' => false ], + 'fulfilment' => [ 'model' => Fulfilment::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/CreatePickupAppointment.php b/src/Model/CreatePickupAppointment.php index a1cce2e..77a21c2 100644 --- a/src/Model/CreatePickupAppointment.php +++ b/src/Model/CreatePickupAppointment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreatePickupAppointment extends AbstractModel { @@ -15,9 +17,9 @@ class CreatePickupAppointment extends AbstractModel public function getModelDefinition(): array { return [ - 'address' => [ 'model' => CreateAddress::class, 'array' => false ], - 'pickupTimeSlot' => [ 'model' => CreatePickupTimeSlot::class, 'array' => false ], - 'commentToTransporter' => [ 'model' => null, 'array' => false ], + 'address' => [ 'model' => CreateAddress::class, 'enum' => null, 'array' => false ], + 'pickupTimeSlot' => [ 'model' => CreatePickupTimeSlot::class, 'enum' => null, 'array' => false ], + 'commentToTransporter' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/CreatePickupTimeSlot.php b/src/Model/CreatePickupTimeSlot.php index d135099..db6f881 100644 --- a/src/Model/CreatePickupTimeSlot.php +++ b/src/Model/CreatePickupTimeSlot.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreatePickupTimeSlot extends AbstractModel { @@ -15,8 +17,8 @@ class CreatePickupTimeSlot extends AbstractModel public function getModelDefinition(): array { return [ - 'fromDateTime' => [ 'model' => null, 'array' => false ], - 'untilDateTime' => [ 'model' => null, 'array' => false ], + 'fromDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'untilDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/CreateProductContentSingleRequest.php b/src/Model/CreateProductContentSingleRequest.php index d81b5c5..bdc9e50 100644 --- a/src/Model/CreateProductContentSingleRequest.php +++ b/src/Model/CreateProductContentSingleRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateProductContentSingleRequest extends AbstractModel { @@ -15,14 +17,14 @@ class CreateProductContentSingleRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'language' => [ 'model' => null, 'array' => false ], - 'attributes' => [ 'model' => Attribute::class, 'array' => true ], - 'assets' => [ 'model' => Asset::class, 'array' => true ], + 'language' => [ 'model' => null, 'enum' => Enum\CreateProductContentSingleRequestLanguage::class, 'array' => false ], + 'attributes' => [ 'model' => Attribute::class, 'enum' => null, 'array' => true ], + 'assets' => [ 'model' => Asset::class, 'enum' => null, 'array' => true ], ]; } /** - * @var string The language in which content is submitted. + * @var Enum\CreateProductContentSingleRequestLanguage The language in which content is submitted. */ public $language; diff --git a/src/Model/CreateReplenishmentLine.php b/src/Model/CreateReplenishmentLine.php index 2b642e9..65b4700 100644 --- a/src/Model/CreateReplenishmentLine.php +++ b/src/Model/CreateReplenishmentLine.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateReplenishmentLine extends AbstractModel { @@ -15,8 +17,8 @@ class CreateReplenishmentLine extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'quantity' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/CreateReplenishmentRequest.php b/src/Model/CreateReplenishmentRequest.php index 4ce2ea0..e9de9d7 100644 --- a/src/Model/CreateReplenishmentRequest.php +++ b/src/Model/CreateReplenishmentRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateReplenishmentRequest extends AbstractModel { @@ -15,12 +17,12 @@ class CreateReplenishmentRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'reference' => [ 'model' => null, 'array' => false ], - 'deliveryInfo' => [ 'model' => CreateDeliveryInfo::class, 'array' => false ], - 'labelingByBol' => [ 'model' => null, 'array' => false ], - 'numberOfLoadCarriers' => [ 'model' => null, 'array' => false ], - 'pickupAppointment' => [ 'model' => CreatePickupAppointment::class, 'array' => false ], - 'lines' => [ 'model' => CreateReplenishmentLine::class, 'array' => true ], + 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'deliveryInfo' => [ 'model' => CreateDeliveryInfo::class, 'enum' => null, 'array' => false ], + 'labelingByBol' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'numberOfLoadCarriers' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'pickupAppointment' => [ 'model' => CreatePickupAppointment::class, 'enum' => null, 'array' => false ], + 'lines' => [ 'model' => CreateReplenishmentLine::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/CreateReturnRequest.php b/src/Model/CreateReturnRequest.php index d7c56ef..9171be9 100644 --- a/src/Model/CreateReturnRequest.php +++ b/src/Model/CreateReturnRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateReturnRequest extends AbstractModel { @@ -15,9 +17,9 @@ class CreateReturnRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItemId' => [ 'model' => null, 'array' => false ], - 'quantityReturned' => [ 'model' => null, 'array' => false ], - 'handlingResult' => [ 'model' => null, 'array' => false ], + 'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityReturned' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'handlingResult' => [ 'model' => null, 'enum' => Enum\CreateReturnRequestHandlingResult::class, 'array' => false ], ]; } @@ -33,7 +35,7 @@ public function getModelDefinition(): array public $quantityReturned; /** - * @var string The handling result requested by the retailer. + * @var Enum\CreateReturnRequestHandlingResult The handling result requested by the retailer. */ public $handlingResult; } diff --git a/src/Model/CreateSubscriptionRequest.php b/src/Model/CreateSubscriptionRequest.php index ab002d2..2a0956c 100644 --- a/src/Model/CreateSubscriptionRequest.php +++ b/src/Model/CreateSubscriptionRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateSubscriptionRequest extends AbstractModel { @@ -15,8 +17,8 @@ class CreateSubscriptionRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'resources' => [ 'model' => null, 'array' => true ], - 'url' => [ 'model' => null, 'array' => false ], + 'resources' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'url' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/CreateUnpublishedOfferReportRequest.php b/src/Model/CreateUnpublishedOfferReportRequest.php index 5c06e76..a5cceeb 100644 --- a/src/Model/CreateUnpublishedOfferReportRequest.php +++ b/src/Model/CreateUnpublishedOfferReportRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CreateUnpublishedOfferReportRequest extends AbstractModel { @@ -15,12 +17,12 @@ class CreateUnpublishedOfferReportRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'format' => [ 'model' => null, 'array' => false ], + 'format' => [ 'model' => null, 'enum' => Enum\CreateUnpublishedOfferReportRequestFormat::class, 'array' => false ], ]; } /** - * @var string The file format in which to return the export. + * @var Enum\CreateUnpublishedOfferReportRequestFormat The file format in which to return the export. */ public $format; } diff --git a/src/Model/CustomerDetails.php b/src/Model/CustomerDetails.php index ecd866a..b8b9986 100644 --- a/src/Model/CustomerDetails.php +++ b/src/Model/CustomerDetails.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class CustomerDetails extends AbstractModel { @@ -15,25 +17,25 @@ class CustomerDetails extends AbstractModel public function getModelDefinition(): array { return [ - 'salutation' => [ 'model' => null, 'array' => false ], - 'firstName' => [ 'model' => null, 'array' => false ], - 'surname' => [ 'model' => null, 'array' => false ], - 'streetName' => [ 'model' => null, 'array' => false ], - 'houseNumber' => [ 'model' => null, 'array' => false ], - 'houseNumberExtension' => [ 'model' => null, 'array' => false ], - 'extraAddressInformation' => [ 'model' => null, 'array' => false ], - 'zipCode' => [ 'model' => null, 'array' => false ], - 'city' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], - 'email' => [ 'model' => null, 'array' => false ], - 'deliveryPhoneNumber' => [ 'model' => null, 'array' => false ], - 'company' => [ 'model' => null, 'array' => false ], - 'vatNumber' => [ 'model' => null, 'array' => false ], + 'salutation' => [ 'model' => null, 'enum' => Enum\CustomerDetailsSalutation::class, 'array' => false ], + 'firstName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'surname' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'streetName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumberExtension' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'extraAddressInformation' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'zipCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'city' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'email' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'deliveryPhoneNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'company' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'vatNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string The salutation of the customer. + * @var Enum\CustomerDetailsSalutation The salutation of the customer. */ public $salutation; diff --git a/src/Model/DeliveryDatesResponse.php b/src/Model/DeliveryDatesResponse.php index 0d7e1f8..62460e6 100644 --- a/src/Model/DeliveryDatesResponse.php +++ b/src/Model/DeliveryDatesResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class DeliveryDatesResponse extends AbstractModel { @@ -15,7 +17,7 @@ class DeliveryDatesResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'deliveryDates' => [ 'model' => null, 'array' => true ], + 'deliveryDates' => [ 'model' => null, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/DeliveryInformation.php b/src/Model/DeliveryInformation.php index 24cfa4d..3502843 100644 --- a/src/Model/DeliveryInformation.php +++ b/src/Model/DeliveryInformation.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class DeliveryInformation extends AbstractModel { @@ -15,9 +17,9 @@ class DeliveryInformation extends AbstractModel public function getModelDefinition(): array { return [ - 'expectedDeliveryDate' => [ 'model' => null, 'array' => false ], - 'transporterCode' => [ 'model' => null, 'array' => false ], - 'destinationWarehouse' => [ 'model' => DestinationWarehouse::class, 'array' => false ], + 'expectedDeliveryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transporterCode' => [ 'model' => null, 'enum' => Enum\DeliveryInformationTransporterCode::class, 'array' => false ], + 'destinationWarehouse' => [ 'model' => DestinationWarehouse::class, 'enum' => null, 'array' => false ], ]; } @@ -27,7 +29,7 @@ public function getModelDefinition(): array public $expectedDeliveryDate; /** - * @var string The transporter that will pickup this replenishment. + * @var Enum\DeliveryInformationTransporterCode The transporter that will pickup this replenishment. */ public $transporterCode; diff --git a/src/Model/DeliveryOption.php b/src/Model/DeliveryOption.php index ba82117..7d9c76f 100644 --- a/src/Model/DeliveryOption.php +++ b/src/Model/DeliveryOption.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class DeliveryOption extends AbstractModel { @@ -15,15 +17,15 @@ class DeliveryOption extends AbstractModel public function getModelDefinition(): array { return [ - 'shippingLabelOfferId' => [ 'model' => null, 'array' => false ], - 'recommended' => [ 'model' => null, 'array' => false ], - 'validUntilDate' => [ 'model' => null, 'array' => false ], - 'transporterCode' => [ 'model' => null, 'array' => false ], - 'labelType' => [ 'model' => null, 'array' => false ], - 'labelDisplayName' => [ 'model' => null, 'array' => false ], - 'labelPrice' => [ 'model' => LabelPrice::class, 'array' => false ], - 'packageRestrictions' => [ 'model' => PackageRestrictions::class, 'array' => false ], - 'handoverDetails' => [ 'model' => HandoverDetails::class, 'array' => false ], + 'shippingLabelOfferId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'recommended' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'validUntilDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transporterCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'labelType' => [ 'model' => null, 'enum' => Enum\DeliveryOptionLabelType::class, 'array' => false ], + 'labelDisplayName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'labelPrice' => [ 'model' => LabelPrice::class, 'enum' => null, 'array' => false ], + 'packageRestrictions' => [ 'model' => PackageRestrictions::class, 'enum' => null, 'array' => false ], + 'handoverDetails' => [ 'model' => HandoverDetails::class, 'enum' => null, 'array' => false ], ]; } @@ -49,8 +51,9 @@ public function getModelDefinition(): array public $transporterCode; /** - * @var string The type of the label, representing the way an item is being transported. MAILBOX is a mailbox - * package with delivery scan. MAILBOX_LIGHT is a mailbox package without delivery scan. PARCEL is a normal package. + * @var Enum\DeliveryOptionLabelType The type of the label, representing the way an item is being transported. + * MAILBOX is a mailbox package with delivery scan. MAILBOX_LIGHT is a mailbox package without delivery scan. PARCEL + * is a normal package. */ public $labelType; diff --git a/src/Model/DeliveryOptionsRequest.php b/src/Model/DeliveryOptionsRequest.php index 0fd57b6..0e9b7ac 100644 --- a/src/Model/DeliveryOptionsRequest.php +++ b/src/Model/DeliveryOptionsRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class DeliveryOptionsRequest extends AbstractModel { @@ -15,7 +17,7 @@ class DeliveryOptionsRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItems' => [ 'model' => DeliveryOptionsRequestOrderItem::class, 'array' => true ], + 'orderItems' => [ 'model' => DeliveryOptionsRequestOrderItem::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/DeliveryOptionsRequestOrderItem.php b/src/Model/DeliveryOptionsRequestOrderItem.php index a0ad065..a5c5278 100644 --- a/src/Model/DeliveryOptionsRequestOrderItem.php +++ b/src/Model/DeliveryOptionsRequestOrderItem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class DeliveryOptionsRequestOrderItem extends AbstractModel { @@ -15,7 +17,7 @@ class DeliveryOptionsRequestOrderItem extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItemId' => [ 'model' => null, 'array' => false ], + 'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/DeliveryOptionsResponse.php b/src/Model/DeliveryOptionsResponse.php index 8c46043..cc7fe1d 100644 --- a/src/Model/DeliveryOptionsResponse.php +++ b/src/Model/DeliveryOptionsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class DeliveryOptionsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class DeliveryOptionsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'deliveryOptions' => [ 'model' => DeliveryOption::class, 'array' => true ], + 'deliveryOptions' => [ 'model' => DeliveryOption::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/DestinationWarehouse.php b/src/Model/DestinationWarehouse.php index 3055f8d..8507d71 100644 --- a/src/Model/DestinationWarehouse.php +++ b/src/Model/DestinationWarehouse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class DestinationWarehouse extends AbstractModel { @@ -15,13 +17,13 @@ class DestinationWarehouse extends AbstractModel public function getModelDefinition(): array { return [ - 'streetName' => [ 'model' => null, 'array' => false ], - 'houseNumber' => [ 'model' => null, 'array' => false ], - 'houseNumberExtension' => [ 'model' => null, 'array' => false ], - 'zipCode' => [ 'model' => null, 'array' => false ], - 'city' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], - 'attentionOf' => [ 'model' => null, 'array' => false ], + 'streetName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumberExtension' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'zipCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'city' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'attentionOf' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Details.php b/src/Model/Details.php index 7bf388e..9e3f3e7 100644 --- a/src/Model/Details.php +++ b/src/Model/Details.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Details extends AbstractModel { @@ -15,9 +17,9 @@ class Details extends AbstractModel public function getModelDefinition(): array { return [ - 'period' => [ 'model' => PerformanceIndicatorPeriod::class, 'array' => false ], - 'score' => [ 'model' => Score::class, 'array' => false ], - 'norm' => [ 'model' => Norm::class, 'array' => false ], + 'period' => [ 'model' => PerformanceIndicatorPeriod::class, 'enum' => null, 'array' => false ], + 'score' => [ 'model' => Score::class, 'enum' => null, 'array' => false ], + 'norm' => [ 'model' => Norm::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Ean.php b/src/Model/Ean.php index d378a73..a16e2ad 100644 --- a/src/Model/Ean.php +++ b/src/Model/Ean.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Ean extends AbstractModel { @@ -15,7 +17,7 @@ class Ean extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Enrichment.php b/src/Model/Enrichment.php index ae5ba63..b47146f 100644 --- a/src/Model/Enrichment.php +++ b/src/Model/Enrichment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Enrichment extends AbstractModel { @@ -15,7 +17,7 @@ class Enrichment extends AbstractModel public function getModelDefinition(): array { return [ - 'status' => [ 'model' => null, 'array' => false ], + 'status' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/FilterRanges.php b/src/Model/FilterRanges.php index 1466e72..28068fc 100644 --- a/src/Model/FilterRanges.php +++ b/src/Model/FilterRanges.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class FilterRanges extends AbstractModel { @@ -15,11 +17,11 @@ class FilterRanges extends AbstractModel public function getModelDefinition(): array { return [ - 'rangeId' => [ 'model' => null, 'array' => false ], - 'rangeName' => [ 'model' => null, 'array' => false ], - 'min' => [ 'model' => null, 'array' => false ], - 'max' => [ 'model' => null, 'array' => false ], - 'unit' => [ 'model' => null, 'array' => false ], + 'rangeId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'rangeName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'min' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'max' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unit' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/FilterValues.php b/src/Model/FilterValues.php index 8495fdd..9a8a8c5 100644 --- a/src/Model/FilterValues.php +++ b/src/Model/FilterValues.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class FilterValues extends AbstractModel { @@ -15,8 +17,8 @@ class FilterValues extends AbstractModel public function getModelDefinition(): array { return [ - 'filterValueId' => [ 'model' => null, 'array' => false ], - 'filterValueName' => [ 'model' => null, 'array' => false ], + 'filterValueId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'filterValueName' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Filters.php b/src/Model/Filters.php index 0425251..9e55bc6 100644 --- a/src/Model/Filters.php +++ b/src/Model/Filters.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Filters extends AbstractModel { @@ -15,8 +17,8 @@ class Filters extends AbstractModel public function getModelDefinition(): array { return [ - 'filterName' => [ 'model' => null, 'array' => false ], - 'filterValues' => [ 'model' => FilterValues::class, 'array' => true ], + 'filterName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'filterValues' => [ 'model' => FilterValues::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Fulfilment.php b/src/Model/Fulfilment.php index ad7cbc4..b943b46 100644 --- a/src/Model/Fulfilment.php +++ b/src/Model/Fulfilment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Fulfilment extends AbstractModel { @@ -15,19 +17,19 @@ class Fulfilment extends AbstractModel public function getModelDefinition(): array { return [ - 'method' => [ 'model' => null, 'array' => false ], - 'deliveryCode' => [ 'model' => null, 'array' => false ], + 'method' => [ 'model' => null, 'enum' => Enum\FulfilmentMethod::class, 'array' => false ], + 'deliveryCode' => [ 'model' => null, 'enum' => Enum\FulfilmentDeliveryCode::class, 'array' => false ], ]; } /** - * @var string The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB). + * @var Enum\FulfilmentMethod The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB). */ public $method; /** - * @var string The delivery promise that applies to this offer. This value will only be used in combination with - * fulfilmentMethod 'FBR'. + * @var Enum\FulfilmentDeliveryCode The delivery promise that applies to this offer. This value will only be used in + * combination with fulfilmentMethod 'FBR'. */ public $deliveryCode; } diff --git a/src/Model/Gpc.php b/src/Model/Gpc.php index 7ab0f2c..dbe9300 100644 --- a/src/Model/Gpc.php +++ b/src/Model/Gpc.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Gpc extends AbstractModel { @@ -15,7 +17,7 @@ class Gpc extends AbstractModel public function getModelDefinition(): array { return [ - 'chunkId' => [ 'model' => null, 'array' => false ], + 'chunkId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/HandoverDetails.php b/src/Model/HandoverDetails.php index f4f6be4..5e9d87d 100644 --- a/src/Model/HandoverDetails.php +++ b/src/Model/HandoverDetails.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class HandoverDetails extends AbstractModel { @@ -15,10 +17,10 @@ class HandoverDetails extends AbstractModel public function getModelDefinition(): array { return [ - 'meetsCustomerExpectation' => [ 'model' => null, 'array' => false ], - 'earliestHandoverDateTime' => [ 'model' => null, 'array' => false ], - 'latestHandoverDateTime' => [ 'model' => null, 'array' => false ], - 'collectionMethod' => [ 'model' => null, 'array' => false ], + 'meetsCustomerExpectation' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'earliestHandoverDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'latestHandoverDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'collectionMethod' => [ 'model' => null, 'enum' => Enum\HandoverDetailsCollectionMethod::class, 'array' => false ], ]; } @@ -43,7 +45,7 @@ public function getModelDefinition(): array public $latestHandoverDateTime; /** - * @var string The type of collection for this parcel. + * @var Enum\HandoverDetailsCollectionMethod The type of collection for this parcel. */ public $collectionMethod; diff --git a/src/Model/InvalidReplenishmentLine.php b/src/Model/InvalidReplenishmentLine.php index c668de0..182ab74 100644 --- a/src/Model/InvalidReplenishmentLine.php +++ b/src/Model/InvalidReplenishmentLine.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class InvalidReplenishmentLine extends AbstractModel { @@ -15,18 +17,18 @@ class InvalidReplenishmentLine extends AbstractModel public function getModelDefinition(): array { return [ - 'type' => [ 'model' => null, 'array' => false ], - 'quantityAnnounced' => [ 'model' => null, 'array' => false ], - 'quantityReceived' => [ 'model' => null, 'array' => false ], - 'quantityInProgress' => [ 'model' => null, 'array' => false ], - 'quantityWithGradedState' => [ 'model' => null, 'array' => false ], - 'quantityWithRegularState' => [ 'model' => null, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => Enum\InvalidReplenishmentLineType::class, 'array' => false ], + 'quantityAnnounced' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityReceived' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityInProgress' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityWithGradedState' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityWithRegularState' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string Type of invalid replenishment line, in case the BSKU and/or EAN cannot be determined for this - * replenishment line. + * @var Enum\InvalidReplenishmentLineType Type of invalid replenishment line, in case the BSKU and/or EAN cannot be + * determined for this replenishment line. */ public $type; diff --git a/src/Model/Inventory.php b/src/Model/Inventory.php index 5020689..621f03e 100644 --- a/src/Model/Inventory.php +++ b/src/Model/Inventory.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Inventory extends AbstractModel { @@ -15,11 +17,11 @@ class Inventory extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'bsku' => [ 'model' => null, 'array' => false ], - 'gradedStock' => [ 'model' => null, 'array' => false ], - 'regularStock' => [ 'model' => null, 'array' => false ], - 'title' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'bsku' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'gradedStock' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'regularStock' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'title' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/InventoryResponse.php b/src/Model/InventoryResponse.php index d5d7eb1..e0d6dbe 100644 --- a/src/Model/InventoryResponse.php +++ b/src/Model/InventoryResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class InventoryResponse extends AbstractModel { @@ -15,7 +17,7 @@ class InventoryResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'inventory' => [ 'model' => Inventory::class, 'array' => true ], + 'inventory' => [ 'model' => Inventory::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/InvoiceRequests.php b/src/Model/InvoiceRequests.php index db6933d..8e8d527 100644 --- a/src/Model/InvoiceRequests.php +++ b/src/Model/InvoiceRequests.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class InvoiceRequests extends AbstractModel { @@ -15,13 +17,13 @@ class InvoiceRequests extends AbstractModel public function getModelDefinition(): array { return [ - 'shipmentId' => [ 'model' => null, 'array' => false ], - 'orderId' => [ 'model' => null, 'array' => false ], - 'customerAccountNumber' => [ 'model' => null, 'array' => false ], - 'billingDetails' => [ 'model' => BillingDetails::class, 'array' => false ], - 'products' => [ 'model' => Products::class, 'array' => true ], - 'status' => [ 'model' => null, 'array' => false ], - 'statusTransitions' => [ 'model' => StatusTransitions::class, 'array' => true ], + 'shipmentId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'orderId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'customerAccountNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'billingDetails' => [ 'model' => BillingDetails::class, 'enum' => null, 'array' => false ], + 'products' => [ 'model' => Products::class, 'enum' => null, 'array' => true ], + 'status' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'statusTransitions' => [ 'model' => StatusTransitions::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/InvoiceRequestsResponse.php b/src/Model/InvoiceRequestsResponse.php index 38154bd..abe9c74 100644 --- a/src/Model/InvoiceRequestsResponse.php +++ b/src/Model/InvoiceRequestsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class InvoiceRequestsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class InvoiceRequestsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'invoiceRequests' => [ 'model' => InvoiceRequests::class, 'array' => true ], + 'invoiceRequests' => [ 'model' => InvoiceRequests::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/KeySet.php b/src/Model/KeySet.php index 3b3db1d..8ed9a9b 100644 --- a/src/Model/KeySet.php +++ b/src/Model/KeySet.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class KeySet extends AbstractModel { @@ -15,9 +17,9 @@ class KeySet extends AbstractModel public function getModelDefinition(): array { return [ - 'id' => [ 'model' => null, 'array' => false ], - 'type' => [ 'model' => null, 'array' => false ], - 'publicKey' => [ 'model' => null, 'array' => false ], + 'id' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => Enum\KeySetType::class, 'array' => false ], + 'publicKey' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } @@ -27,7 +29,7 @@ public function getModelDefinition(): array public $id; /** - * @var string Key encryption type. + * @var Enum\KeySetType Key encryption type. */ public $type; diff --git a/src/Model/KeySetResponse.php b/src/Model/KeySetResponse.php index 41d6499..70448f0 100644 --- a/src/Model/KeySetResponse.php +++ b/src/Model/KeySetResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class KeySetResponse extends AbstractModel { @@ -15,7 +17,7 @@ class KeySetResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'signatureKeys' => [ 'model' => KeySet::class, 'array' => true ], + 'signatureKeys' => [ 'model' => KeySet::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/LabelPrice.php b/src/Model/LabelPrice.php index bae4069..c3a84f3 100644 --- a/src/Model/LabelPrice.php +++ b/src/Model/LabelPrice.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class LabelPrice extends AbstractModel { @@ -15,7 +17,7 @@ class LabelPrice extends AbstractModel public function getModelDefinition(): array { return [ - 'totalPrice' => [ 'model' => null, 'array' => false ], + 'totalPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Link.php b/src/Model/Link.php index 9c47b81..c044044 100644 --- a/src/Model/Link.php +++ b/src/Model/Link.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Link extends AbstractModel { @@ -15,9 +17,9 @@ class Link extends AbstractModel public function getModelDefinition(): array { return [ - 'rel' => [ 'model' => null, 'array' => false ], - 'href' => [ 'model' => null, 'array' => false ], - 'method' => [ 'model' => null, 'array' => false ], + 'rel' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'href' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'method' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/LoadCarrier.php b/src/Model/LoadCarrier.php index 4d14dac..5ec33e0 100644 --- a/src/Model/LoadCarrier.php +++ b/src/Model/LoadCarrier.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class LoadCarrier extends AbstractModel { @@ -15,10 +17,10 @@ class LoadCarrier extends AbstractModel public function getModelDefinition(): array { return [ - 'sscc' => [ 'model' => null, 'array' => false ], - 'transportLabelTrackAndTrace' => [ 'model' => null, 'array' => false ], - 'transportState' => [ 'model' => null, 'array' => false ], - 'transportStateUpdateDateTime' => [ 'model' => null, 'array' => false ], + 'sscc' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transportLabelTrackAndTrace' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transportState' => [ 'model' => null, 'enum' => Enum\LoadCarrierTransportState::class, 'array' => false ], + 'transportStateUpdateDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } @@ -33,7 +35,7 @@ public function getModelDefinition(): array public $transportLabelTrackAndTrace; /** - * @var string The current state of the transport for this load carrier. + * @var Enum\LoadCarrierTransportState The current state of the transport for this load carrier. */ public $transportState; diff --git a/src/Model/Norm.php b/src/Model/Norm.php index 9614dd8..63bdf84 100644 --- a/src/Model/Norm.php +++ b/src/Model/Norm.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Norm extends AbstractModel { @@ -15,13 +17,13 @@ class Norm extends AbstractModel public function getModelDefinition(): array { return [ - 'condition' => [ 'model' => null, 'array' => false ], - 'value' => [ 'model' => null, 'array' => false ], + 'condition' => [ 'model' => null, 'enum' => Enum\NormCondition::class, 'array' => false ], + 'value' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string Condition norm for this indicator. + * @var Enum\NormCondition Condition norm for this indicator. */ public $condition; diff --git a/src/Model/NotPublishableReason.php b/src/Model/NotPublishableReason.php index d9aab1b..0021013 100644 --- a/src/Model/NotPublishableReason.php +++ b/src/Model/NotPublishableReason.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class NotPublishableReason extends AbstractModel { @@ -15,8 +17,8 @@ class NotPublishableReason extends AbstractModel public function getModelDefinition(): array { return [ - 'code' => [ 'model' => null, 'array' => false ], - 'description' => [ 'model' => null, 'array' => false ], + 'code' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'description' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Offer.php b/src/Model/Offer.php index f652437..6adaab6 100644 --- a/src/Model/Offer.php +++ b/src/Model/Offer.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Offer extends AbstractModel { @@ -15,16 +17,16 @@ class Offer extends AbstractModel public function getModelDefinition(): array { return [ - 'offerId' => [ 'model' => null, 'array' => false ], - 'retailerId' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], - 'bestOffer' => [ 'model' => null, 'array' => false ], - 'price' => [ 'model' => null, 'array' => false ], - 'fulfilmentMethod' => [ 'model' => null, 'array' => false ], - 'condition' => [ 'model' => null, 'array' => false ], - 'ultimateOrderTime' => [ 'model' => null, 'array' => false ], - 'minDeliveryDate' => [ 'model' => null, 'array' => false ], - 'maxDeliveryDate' => [ 'model' => null, 'array' => false ], + 'offerId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'retailerId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'bestOffer' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'price' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fulfilmentMethod' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'condition' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'ultimateOrderTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'minDeliveryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'maxDeliveryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/OfferInsight.php b/src/Model/OfferInsight.php index 75069c0..b72ea7a 100644 --- a/src/Model/OfferInsight.php +++ b/src/Model/OfferInsight.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OfferInsight extends AbstractModel { @@ -15,11 +17,11 @@ class OfferInsight extends AbstractModel public function getModelDefinition(): array { return [ - 'name' => [ 'model' => null, 'array' => false ], - 'type' => [ 'model' => null, 'array' => false ], - 'total' => [ 'model' => null, 'array' => false ], - 'countries' => [ 'model' => OfferInsightsCountry::class, 'array' => true ], - 'periods' => [ 'model' => Periods::class, 'array' => true ], + 'name' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'total' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countries' => [ 'model' => OfferInsightsCountry::class, 'enum' => null, 'array' => true ], + 'periods' => [ 'model' => Periods::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/OfferInsights.php b/src/Model/OfferInsights.php index 98e9dd4..10a0da0 100644 --- a/src/Model/OfferInsights.php +++ b/src/Model/OfferInsights.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OfferInsights extends AbstractModel { @@ -15,7 +17,7 @@ class OfferInsights extends AbstractModel public function getModelDefinition(): array { return [ - 'offerInsights' => [ 'model' => OfferInsight::class, 'array' => true ], + 'offerInsights' => [ 'model' => OfferInsight::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/OfferInsightsCountry.php b/src/Model/OfferInsightsCountry.php index a5eef5f..46a395e 100644 --- a/src/Model/OfferInsightsCountry.php +++ b/src/Model/OfferInsightsCountry.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OfferInsightsCountry extends AbstractModel { @@ -15,8 +17,8 @@ class OfferInsightsCountry extends AbstractModel public function getModelDefinition(): array { return [ - 'countryCode' => [ 'model' => null, 'array' => false ], - 'value' => [ 'model' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'value' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/OfferInsightsPeriod.php b/src/Model/OfferInsightsPeriod.php index 8ad4364..94cc63d 100644 --- a/src/Model/OfferInsightsPeriod.php +++ b/src/Model/OfferInsightsPeriod.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OfferInsightsPeriod extends AbstractModel { @@ -15,10 +17,10 @@ class OfferInsightsPeriod extends AbstractModel public function getModelDefinition(): array { return [ - 'day' => [ 'model' => null, 'array' => false ], - 'week' => [ 'model' => null, 'array' => false ], - 'month' => [ 'model' => null, 'array' => false ], - 'year' => [ 'model' => null, 'array' => false ], + 'day' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'week' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'month' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'year' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/OffersCountryCode.php b/src/Model/OffersCountryCode.php index 07075f6..95c8371 100644 --- a/src/Model/OffersCountryCode.php +++ b/src/Model/OffersCountryCode.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OffersCountryCode extends AbstractModel { @@ -15,7 +17,7 @@ class OffersCountryCode extends AbstractModel public function getModelDefinition(): array { return [ - 'countryCode' => [ 'model' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Order.php b/src/Model/Order.php index f478d2e..4293969 100644 --- a/src/Model/Order.php +++ b/src/Model/Order.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Order extends AbstractModel { @@ -15,12 +17,12 @@ class Order extends AbstractModel public function getModelDefinition(): array { return [ - 'orderId' => [ 'model' => null, 'array' => false ], - 'pickupPoint' => [ 'model' => null, 'array' => false ], - 'orderPlacedDateTime' => [ 'model' => null, 'array' => false ], - 'shipmentDetails' => [ 'model' => ShipmentDetails::class, 'array' => false ], - 'billingDetails' => [ 'model' => BillingDetails::class, 'array' => false ], - 'orderItems' => [ 'model' => OrderOrderItem::class, 'array' => true ], + 'orderId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'pickupPoint' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'orderPlacedDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'shipmentDetails' => [ 'model' => ShipmentDetails::class, 'enum' => null, 'array' => false ], + 'billingDetails' => [ 'model' => BillingDetails::class, 'enum' => null, 'array' => false ], + 'orderItems' => [ 'model' => OrderOrderItem::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/OrderFulfilment.php b/src/Model/OrderFulfilment.php index 5e8e68f..be00cd6 100644 --- a/src/Model/OrderFulfilment.php +++ b/src/Model/OrderFulfilment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OrderFulfilment extends AbstractModel { @@ -15,12 +17,12 @@ class OrderFulfilment extends AbstractModel public function getModelDefinition(): array { return [ - 'method' => [ 'model' => null, 'array' => false ], - 'distributionParty' => [ 'model' => null, 'array' => false ], - 'latestDeliveryDate' => [ 'model' => null, 'array' => false ], - 'exactDeliveryDate' => [ 'model' => null, 'array' => false ], - 'expiryDate' => [ 'model' => null, 'array' => false ], - 'timeFrameType' => [ 'model' => null, 'array' => false ], + 'method' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'distributionParty' => [ 'model' => null, 'enum' => Enum\OrderFulfilmentDistributionParty::class, 'array' => false ], + 'latestDeliveryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'exactDeliveryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'expiryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'timeFrameType' => [ 'model' => null, 'enum' => Enum\OrderFulfilmentTimeFrameType::class, 'array' => false ], ]; } @@ -30,7 +32,8 @@ public function getModelDefinition(): array public $method; /** - * @var string The party that manages the distribution, either bol.com or the retailer itself. + * @var Enum\OrderFulfilmentDistributionParty The party that manages the distribution, either bol.com or the + * retailer itself. */ public $distributionParty; @@ -54,7 +57,7 @@ public function getModelDefinition(): array public $expiryDate; /** - * @var string Delivery option selected by the customer. + * @var Enum\OrderFulfilmentTimeFrameType Delivery option selected by the customer. */ public $timeFrameType; } diff --git a/src/Model/OrderItem.php b/src/Model/OrderItem.php index 4dd2b81..ab12c4f 100644 --- a/src/Model/OrderItem.php +++ b/src/Model/OrderItem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OrderItem extends AbstractModel { @@ -15,7 +17,7 @@ class OrderItem extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItemId' => [ 'model' => null, 'array' => false ], + 'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/OrderItemCancellation.php b/src/Model/OrderItemCancellation.php index cae728e..76065aa 100644 --- a/src/Model/OrderItemCancellation.php +++ b/src/Model/OrderItemCancellation.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OrderItemCancellation extends AbstractModel { @@ -15,8 +17,8 @@ class OrderItemCancellation extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItemId' => [ 'model' => null, 'array' => false ], - 'reasonCode' => [ 'model' => null, 'array' => false ], + 'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'reasonCode' => [ 'model' => null, 'enum' => Enum\OrderItemCancellationReasonCode::class, 'array' => false ], ]; } @@ -27,7 +29,7 @@ public function getModelDefinition(): array public $orderItemId; /** - * @var string The code representing the reason for cancellation of this item. + * @var Enum\OrderItemCancellationReasonCode The code representing the reason for cancellation of this item. */ public $reasonCode; } diff --git a/src/Model/OrderOffer.php b/src/Model/OrderOffer.php index 651b6d3..052aa34 100644 --- a/src/Model/OrderOffer.php +++ b/src/Model/OrderOffer.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OrderOffer extends AbstractModel { @@ -15,8 +17,8 @@ class OrderOffer extends AbstractModel public function getModelDefinition(): array { return [ - 'offerId' => [ 'model' => null, 'array' => false ], - 'reference' => [ 'model' => null, 'array' => false ], + 'offerId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/OrderOrderItem.php b/src/Model/OrderOrderItem.php index 0800a5f..5e0c481 100644 --- a/src/Model/OrderOrderItem.php +++ b/src/Model/OrderOrderItem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OrderOrderItem extends AbstractModel { @@ -15,18 +17,18 @@ class OrderOrderItem extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItemId' => [ 'model' => null, 'array' => false ], - 'cancellationRequest' => [ 'model' => null, 'array' => false ], - 'fulfilment' => [ 'model' => OrderFulfilment::class, 'array' => false ], - 'offer' => [ 'model' => OrderOffer::class, 'array' => false ], - 'product' => [ 'model' => OrderProduct::class, 'array' => false ], - 'quantity' => [ 'model' => null, 'array' => false ], - 'quantityShipped' => [ 'model' => null, 'array' => false ], - 'quantityCancelled' => [ 'model' => null, 'array' => false ], - 'unitPrice' => [ 'model' => null, 'array' => false ], - 'commission' => [ 'model' => null, 'array' => false ], - 'additionalServices' => [ 'model' => AdditionalService::class, 'array' => true ], - 'latestChangedDateTime' => [ 'model' => null, 'array' => false ], + 'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'cancellationRequest' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fulfilment' => [ 'model' => OrderFulfilment::class, 'enum' => null, 'array' => false ], + 'offer' => [ 'model' => OrderOffer::class, 'enum' => null, 'array' => false ], + 'product' => [ 'model' => OrderProduct::class, 'enum' => null, 'array' => false ], + 'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityShipped' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityCancelled' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unitPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'commission' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'additionalServices' => [ 'model' => AdditionalService::class, 'enum' => null, 'array' => true ], + 'latestChangedDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/OrderProduct.php b/src/Model/OrderProduct.php index 0167515..d4868bb 100644 --- a/src/Model/OrderProduct.php +++ b/src/Model/OrderProduct.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class OrderProduct extends AbstractModel { @@ -15,8 +17,8 @@ class OrderProduct extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'title' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'title' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/PackageRestrictions.php b/src/Model/PackageRestrictions.php index 914f401..ea56171 100644 --- a/src/Model/PackageRestrictions.php +++ b/src/Model/PackageRestrictions.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PackageRestrictions extends AbstractModel { @@ -15,8 +17,8 @@ class PackageRestrictions extends AbstractModel public function getModelDefinition(): array { return [ - 'maxWeight' => [ 'model' => null, 'array' => false ], - 'maxDimensions' => [ 'model' => null, 'array' => false ], + 'maxWeight' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'maxDimensions' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Party.php b/src/Model/Party.php index c522c5f..374ef6e 100644 --- a/src/Model/Party.php +++ b/src/Model/Party.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Party extends AbstractModel { @@ -15,9 +17,9 @@ class Party extends AbstractModel public function getModelDefinition(): array { return [ - 'name' => [ 'model' => null, 'array' => false ], - 'type' => [ 'model' => null, 'array' => false ], - 'role' => [ 'model' => null, 'array' => false ], + 'name' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'role' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/PerformanceIndicator.php b/src/Model/PerformanceIndicator.php index 70e5733..d0df58b 100644 --- a/src/Model/PerformanceIndicator.php +++ b/src/Model/PerformanceIndicator.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PerformanceIndicator extends AbstractModel { @@ -15,19 +17,19 @@ class PerformanceIndicator extends AbstractModel public function getModelDefinition(): array { return [ - 'name' => [ 'model' => null, 'array' => false ], - 'type' => [ 'model' => null, 'array' => false ], - 'details' => [ 'model' => Details::class, 'array' => false ], + 'name' => [ 'model' => null, 'enum' => Enum\PerformanceIndicatorName::class, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => Enum\PerformanceIndicatorType::class, 'array' => false ], + 'details' => [ 'model' => Details::class, 'enum' => null, 'array' => false ], ]; } /** - * @var string Indicator name. + * @var Enum\PerformanceIndicatorName Indicator name. */ public $name; /** - * @var string Interpretation of the data that applies to this measurement. + * @var Enum\PerformanceIndicatorType Interpretation of the data that applies to this measurement. */ public $type; diff --git a/src/Model/PerformanceIndicatorPeriod.php b/src/Model/PerformanceIndicatorPeriod.php index 16a6194..233a5e1 100644 --- a/src/Model/PerformanceIndicatorPeriod.php +++ b/src/Model/PerformanceIndicatorPeriod.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PerformanceIndicatorPeriod extends AbstractModel { @@ -15,8 +17,8 @@ class PerformanceIndicatorPeriod extends AbstractModel public function getModelDefinition(): array { return [ - 'week' => [ 'model' => null, 'array' => false ], - 'year' => [ 'model' => null, 'array' => false ], + 'week' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'year' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/PerformanceIndicators.php b/src/Model/PerformanceIndicators.php index c77431e..4d63a4a 100644 --- a/src/Model/PerformanceIndicators.php +++ b/src/Model/PerformanceIndicators.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PerformanceIndicators extends AbstractModel { @@ -15,7 +17,7 @@ class PerformanceIndicators extends AbstractModel public function getModelDefinition(): array { return [ - 'performanceIndicators' => [ 'model' => PerformanceIndicator::class, 'array' => true ], + 'performanceIndicators' => [ 'model' => PerformanceIndicator::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Periods.php b/src/Model/Periods.php index 70b6b36..3615fd2 100644 --- a/src/Model/Periods.php +++ b/src/Model/Periods.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Periods extends AbstractModel { @@ -15,9 +17,9 @@ class Periods extends AbstractModel public function getModelDefinition(): array { return [ - 'period' => [ 'model' => OfferInsightsPeriod::class, 'array' => false ], - 'total' => [ 'model' => null, 'array' => false ], - 'countries' => [ 'model' => OfferInsightsCountry::class, 'array' => true ], + 'period' => [ 'model' => OfferInsightsPeriod::class, 'enum' => null, 'array' => false ], + 'total' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countries' => [ 'model' => OfferInsightsCountry::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/PickupAppointment.php b/src/Model/PickupAppointment.php index 54d7e15..33a01da 100644 --- a/src/Model/PickupAppointment.php +++ b/src/Model/PickupAppointment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PickupAppointment extends AbstractModel { @@ -15,11 +17,11 @@ class PickupAppointment extends AbstractModel public function getModelDefinition(): array { return [ - 'commentToTransporter' => [ 'model' => null, 'array' => false ], - 'address' => [ 'model' => Address::class, 'array' => false ], - 'pickupTimeSlot' => [ 'model' => ReplenishmentPickupTimeSlot::class, 'array' => false ], - 'pickupDateTime' => [ 'model' => null, 'array' => false ], - 'cancellationReason' => [ 'model' => null, 'array' => false ], + 'commentToTransporter' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'address' => [ 'model' => Address::class, 'enum' => null, 'array' => false ], + 'pickupTimeSlot' => [ 'model' => ReplenishmentPickupTimeSlot::class, 'enum' => null, 'array' => false ], + 'pickupDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'cancellationReason' => [ 'model' => null, 'enum' => Enum\PickupAppointmentCancellationReason::class, 'array' => false ], ]; } @@ -44,7 +46,8 @@ public function getModelDefinition(): array public $pickupDateTime; /** - * @var string In case of a pickup cancellation this field indicates the reason for cancelling this pickup. + * @var Enum\PickupAppointmentCancellationReason In case of a pickup cancellation this field indicates the reason + * for cancelling this pickup. */ public $cancellationReason; diff --git a/src/Model/PickupTimeSlot.php b/src/Model/PickupTimeSlot.php index 0db0527..13473ae 100644 --- a/src/Model/PickupTimeSlot.php +++ b/src/Model/PickupTimeSlot.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PickupTimeSlot extends AbstractModel { @@ -15,8 +17,8 @@ class PickupTimeSlot extends AbstractModel public function getModelDefinition(): array { return [ - 'fromDateTime' => [ 'model' => null, 'array' => false ], - 'untilDateTime' => [ 'model' => null, 'array' => false ], + 'fromDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'untilDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/PickupTimeSlotsAddress.php b/src/Model/PickupTimeSlotsAddress.php index 6f87eaa..ad5991d 100644 --- a/src/Model/PickupTimeSlotsAddress.php +++ b/src/Model/PickupTimeSlotsAddress.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PickupTimeSlotsAddress extends AbstractModel { @@ -15,12 +17,12 @@ class PickupTimeSlotsAddress extends AbstractModel public function getModelDefinition(): array { return [ - 'streetName' => [ 'model' => null, 'array' => false ], - 'houseNumber' => [ 'model' => null, 'array' => false ], - 'houseNumberExtension' => [ 'model' => null, 'array' => false ], - 'zipCode' => [ 'model' => null, 'array' => false ], - 'city' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], + 'streetName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumberExtension' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'zipCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'city' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/PickupTimeSlotsRequest.php b/src/Model/PickupTimeSlotsRequest.php index ba4fc80..d75f904 100644 --- a/src/Model/PickupTimeSlotsRequest.php +++ b/src/Model/PickupTimeSlotsRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PickupTimeSlotsRequest extends AbstractModel { @@ -15,8 +17,8 @@ class PickupTimeSlotsRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'address' => [ 'model' => PickupTimeSlotsAddress::class, 'array' => false ], - 'numberOfLoadCarriers' => [ 'model' => null, 'array' => false ], + 'address' => [ 'model' => PickupTimeSlotsAddress::class, 'enum' => null, 'array' => false ], + 'numberOfLoadCarriers' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/PickupTimeSlotsResponse.php b/src/Model/PickupTimeSlotsResponse.php index c0c08ce..540c7ec 100644 --- a/src/Model/PickupTimeSlotsResponse.php +++ b/src/Model/PickupTimeSlotsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PickupTimeSlotsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class PickupTimeSlotsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'timeSlots' => [ 'model' => PickupTimeSlot::class, 'array' => true ], + 'timeSlots' => [ 'model' => PickupTimeSlot::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/PriceStarBoundaries.php b/src/Model/PriceStarBoundaries.php index 369c5db..f69d4d7 100644 --- a/src/Model/PriceStarBoundaries.php +++ b/src/Model/PriceStarBoundaries.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PriceStarBoundaries extends AbstractModel { @@ -15,8 +17,8 @@ class PriceStarBoundaries extends AbstractModel public function getModelDefinition(): array { return [ - 'lastModifiedDateTime' => [ 'model' => null, 'array' => false ], - 'priceStarBoundaryLevels' => [ 'model' => PriceStarBoundaryLevels::class, 'array' => true ], + 'lastModifiedDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'priceStarBoundaryLevels' => [ 'model' => PriceStarBoundaryLevels::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/PriceStarBoundaryLevels.php b/src/Model/PriceStarBoundaryLevels.php index 85fb80e..3a4d0c1 100644 --- a/src/Model/PriceStarBoundaryLevels.php +++ b/src/Model/PriceStarBoundaryLevels.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PriceStarBoundaryLevels extends AbstractModel { @@ -15,8 +17,8 @@ class PriceStarBoundaryLevels extends AbstractModel public function getModelDefinition(): array { return [ - 'level' => [ 'model' => null, 'array' => false ], - 'boundaryPrice' => [ 'model' => null, 'array' => false ], + 'level' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'boundaryPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Pricing.php b/src/Model/Pricing.php index 043c84d..77ccb05 100644 --- a/src/Model/Pricing.php +++ b/src/Model/Pricing.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Pricing extends AbstractModel { @@ -15,7 +17,7 @@ class Pricing extends AbstractModel public function getModelDefinition(): array { return [ - 'bundlePrices' => [ 'model' => BundlePrice::class, 'array' => true ], + 'bundlePrices' => [ 'model' => BundlePrice::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Problem.php b/src/Model/Problem.php index 02ddc33..ef4d73f 100644 --- a/src/Model/Problem.php +++ b/src/Model/Problem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Problem extends AbstractModel { @@ -15,14 +17,14 @@ class Problem extends AbstractModel public function getModelDefinition(): array { return [ - 'instance' => [ 'model' => null, 'array' => false ], - 'type' => [ 'model' => null, 'array' => false ], - 'host' => [ 'model' => null, 'array' => false ], - 'causedBy' => [ 'model' => Problem::class, 'array' => false ], - 'title' => [ 'model' => null, 'array' => false ], - 'status' => [ 'model' => null, 'array' => false ], - 'violations' => [ 'model' => Violation::class, 'array' => true ], - 'detail' => [ 'model' => null, 'array' => false ], + 'instance' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'host' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'causedBy' => [ 'model' => Problem::class, 'enum' => null, 'array' => false ], + 'title' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'status' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'violations' => [ 'model' => Violation::class, 'enum' => null, 'array' => true ], + 'detail' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProcessStatus.php b/src/Model/ProcessStatus.php index 75f8aa1..47cd73c 100644 --- a/src/Model/ProcessStatus.php +++ b/src/Model/ProcessStatus.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProcessStatus extends AbstractModel { @@ -15,14 +17,14 @@ class ProcessStatus extends AbstractModel public function getModelDefinition(): array { return [ - 'processStatusId' => [ 'model' => null, 'array' => false ], - 'entityId' => [ 'model' => null, 'array' => false ], - 'eventType' => [ 'model' => null, 'array' => false ], - 'description' => [ 'model' => null, 'array' => false ], - 'status' => [ 'model' => null, 'array' => false ], - 'errorMessage' => [ 'model' => null, 'array' => false ], - 'createTimestamp' => [ 'model' => null, 'array' => false ], - 'links' => [ 'model' => Link::class, 'array' => true ], + 'processStatusId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'entityId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'eventType' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'description' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'status' => [ 'model' => null, 'enum' => Enum\ProcessStatusStatus::class, 'array' => false ], + 'errorMessage' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'createTimestamp' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'links' => [ 'model' => Link::class, 'enum' => null, 'array' => true ], ]; } @@ -48,7 +50,7 @@ public function getModelDefinition(): array public $description; /** - * @var string Status of the action being processed. + * @var Enum\ProcessStatusStatus Status of the action being processed. */ public $status; diff --git a/src/Model/ProcessStatusId.php b/src/Model/ProcessStatusId.php index f7421c5..585e1f9 100644 --- a/src/Model/ProcessStatusId.php +++ b/src/Model/ProcessStatusId.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProcessStatusId extends AbstractModel { @@ -15,7 +17,7 @@ class ProcessStatusId extends AbstractModel public function getModelDefinition(): array { return [ - 'processStatusId' => [ 'model' => null, 'array' => false ], + 'processStatusId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProcessStatusResponse.php b/src/Model/ProcessStatusResponse.php index ea4fb20..99bd0a0 100644 --- a/src/Model/ProcessStatusResponse.php +++ b/src/Model/ProcessStatusResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProcessStatusResponse extends AbstractModel { @@ -15,7 +17,7 @@ class ProcessStatusResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'processStatuses' => [ 'model' => ProcessStatus::class, 'array' => true ], + 'processStatuses' => [ 'model' => ProcessStatus::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Product.php b/src/Model/Product.php index fd90c91..1eaff06 100644 --- a/src/Model/Product.php +++ b/src/Model/Product.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Product extends AbstractModel { @@ -15,9 +17,9 @@ class Product extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'relevanceScores' => [ 'model' => RelevanceScore::class, 'array' => true ], - 'maximumPrice' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'relevanceScores' => [ 'model' => RelevanceScore::class, 'enum' => null, 'array' => true ], + 'maximumPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductAssets.php b/src/Model/ProductAssets.php index f94ac87..8111536 100644 --- a/src/Model/ProductAssets.php +++ b/src/Model/ProductAssets.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductAssets extends AbstractModel { @@ -15,14 +17,14 @@ class ProductAssets extends AbstractModel public function getModelDefinition(): array { return [ - 'usage' => [ 'model' => null, 'array' => false ], - 'order' => [ 'model' => null, 'array' => false ], - 'variants' => [ 'model' => ProductAssetsVariants::class, 'array' => true ], + 'usage' => [ 'model' => null, 'enum' => Enum\ProductAssetsUsage::class, 'array' => false ], + 'order' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'variants' => [ 'model' => ProductAssetsVariants::class, 'enum' => null, 'array' => true ], ]; } /** - * @var string Type of the asset being used for. + * @var Enum\ProductAssetsUsage Type of the asset being used for. */ public $usage; diff --git a/src/Model/ProductAssetsResponse.php b/src/Model/ProductAssetsResponse.php index 47bf20d..00eaa1f 100644 --- a/src/Model/ProductAssetsResponse.php +++ b/src/Model/ProductAssetsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductAssetsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class ProductAssetsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'assets' => [ 'model' => ProductAssets::class, 'array' => true ], + 'assets' => [ 'model' => ProductAssets::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ProductAssetsVariants.php b/src/Model/ProductAssetsVariants.php index 7c2695f..5551f9f 100644 --- a/src/Model/ProductAssetsVariants.php +++ b/src/Model/ProductAssetsVariants.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductAssetsVariants extends AbstractModel { @@ -15,16 +17,16 @@ class ProductAssetsVariants extends AbstractModel public function getModelDefinition(): array { return [ - 'size' => [ 'model' => null, 'array' => false ], - 'width' => [ 'model' => null, 'array' => false ], - 'height' => [ 'model' => null, 'array' => false ], - 'mimeType' => [ 'model' => null, 'array' => false ], - 'url' => [ 'model' => null, 'array' => false ], + 'size' => [ 'model' => null, 'enum' => Enum\ProductAssetsVariantsSize::class, 'array' => false ], + 'width' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'height' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'mimeType' => [ 'model' => null, 'enum' => Enum\ProductAssetsVariantsMimeType::class, 'array' => false ], + 'url' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string The name of the size of the asset, if the asset is an image. + * @var Enum\ProductAssetsVariantsSize The name of the size of the asset, if the asset is an image. */ public $size; @@ -39,7 +41,7 @@ public function getModelDefinition(): array public $height; /** - * @var string The mime type of the asset. + * @var Enum\ProductAssetsVariantsMimeType The mime type of the asset. */ public $mimeType; diff --git a/src/Model/ProductDestination.php b/src/Model/ProductDestination.php index 7d60bbf..7f8d372 100644 --- a/src/Model/ProductDestination.php +++ b/src/Model/ProductDestination.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductDestination extends AbstractModel { @@ -15,8 +17,8 @@ class ProductDestination extends AbstractModel public function getModelDefinition(): array { return [ - 'destinationWarehouse' => [ 'model' => ProductDestinationWarehouse::class, 'array' => false ], - 'eans' => [ 'model' => Ean::class, 'array' => true ], + 'destinationWarehouse' => [ 'model' => ProductDestinationWarehouse::class, 'enum' => null, 'array' => false ], + 'eans' => [ 'model' => Ean::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ProductDestinationAddress.php b/src/Model/ProductDestinationAddress.php index 604709f..e9b2680 100644 --- a/src/Model/ProductDestinationAddress.php +++ b/src/Model/ProductDestinationAddress.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductDestinationAddress extends AbstractModel { @@ -15,13 +17,13 @@ class ProductDestinationAddress extends AbstractModel public function getModelDefinition(): array { return [ - 'streetName' => [ 'model' => null, 'array' => false ], - 'houseNumber' => [ 'model' => null, 'array' => false ], - 'zipCode' => [ 'model' => null, 'array' => false ], - 'city' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], - 'attentionOf' => [ 'model' => null, 'array' => false ], - 'houseNumberExtension' => [ 'model' => null, 'array' => false ], + 'streetName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'zipCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'city' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'attentionOf' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumberExtension' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductDestinationWarehouse.php b/src/Model/ProductDestinationWarehouse.php index f44dcf7..49db9a0 100644 --- a/src/Model/ProductDestinationWarehouse.php +++ b/src/Model/ProductDestinationWarehouse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductDestinationWarehouse extends AbstractModel { @@ -15,7 +17,7 @@ class ProductDestinationWarehouse extends AbstractModel public function getModelDefinition(): array { return [ - 'address' => [ 'model' => ProductDestinationAddress::class, 'array' => false ], + 'address' => [ 'model' => ProductDestinationAddress::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductDestinationsResponse.php b/src/Model/ProductDestinationsResponse.php index 9481cf4..ed47dc3 100644 --- a/src/Model/ProductDestinationsResponse.php +++ b/src/Model/ProductDestinationsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductDestinationsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class ProductDestinationsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'productDestinations' => [ 'model' => ProductDestination::class, 'array' => true ], + 'productDestinations' => [ 'model' => ProductDestination::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ProductIdsEan.php b/src/Model/ProductIdsEan.php index 8abe00b..f542609 100644 --- a/src/Model/ProductIdsEan.php +++ b/src/Model/ProductIdsEan.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductIdsEan extends AbstractModel { @@ -15,7 +17,7 @@ class ProductIdsEan extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductIdsResponse.php b/src/Model/ProductIdsResponse.php index 6294589..e5e2adc 100644 --- a/src/Model/ProductIdsResponse.php +++ b/src/Model/ProductIdsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductIdsResponse extends AbstractModel { @@ -15,8 +17,8 @@ class ProductIdsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'bolProductId' => [ 'model' => null, 'array' => false ], - 'eans' => [ 'model' => ProductIdsEan::class, 'array' => true ], + 'bolProductId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'eans' => [ 'model' => ProductIdsEan::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ProductLabelsProduct.php b/src/Model/ProductLabelsProduct.php index 1cafe5e..9588ced 100644 --- a/src/Model/ProductLabelsProduct.php +++ b/src/Model/ProductLabelsProduct.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductLabelsProduct extends AbstractModel { @@ -15,8 +17,8 @@ class ProductLabelsProduct extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'quantity' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductLabelsRequest.php b/src/Model/ProductLabelsRequest.php index 8953a5f..a561fa7 100644 --- a/src/Model/ProductLabelsRequest.php +++ b/src/Model/ProductLabelsRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductLabelsRequest extends AbstractModel { @@ -15,13 +17,13 @@ class ProductLabelsRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'labelFormat' => [ 'model' => null, 'array' => false ], - 'products' => [ 'model' => ProductLabelsProduct::class, 'array' => true ], + 'labelFormat' => [ 'model' => null, 'enum' => Enum\ProductLabelsRequestLabelFormat::class, 'array' => false ], + 'products' => [ 'model' => ProductLabelsProduct::class, 'enum' => null, 'array' => true ], ]; } /** - * @var string The printer format to create labels for. + * @var Enum\ProductLabelsRequestLabelFormat The printer format to create labels for. */ public $labelFormat; diff --git a/src/Model/ProductListFilterRange.php b/src/Model/ProductListFilterRange.php index 3756f2e..62d7638 100644 --- a/src/Model/ProductListFilterRange.php +++ b/src/Model/ProductListFilterRange.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductListFilterRange extends AbstractModel { @@ -15,9 +17,9 @@ class ProductListFilterRange extends AbstractModel public function getModelDefinition(): array { return [ - 'rangeId' => [ 'model' => null, 'array' => false ], - 'min' => [ 'model' => null, 'array' => false ], - 'max' => [ 'model' => null, 'array' => false ], + 'rangeId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'min' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'max' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductListFilterValue.php b/src/Model/ProductListFilterValue.php index 1750755..a34948a 100644 --- a/src/Model/ProductListFilterValue.php +++ b/src/Model/ProductListFilterValue.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductListFilterValue extends AbstractModel { @@ -15,7 +17,7 @@ class ProductListFilterValue extends AbstractModel public function getModelDefinition(): array { return [ - 'filterValueId' => [ 'model' => null, 'array' => false ], + 'filterValueId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductListFiltersRequest.php b/src/Model/ProductListFiltersRequest.php index 9178cdf..feb0db1 100644 --- a/src/Model/ProductListFiltersRequest.php +++ b/src/Model/ProductListFiltersRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductListFiltersRequest extends AbstractModel { @@ -15,10 +17,10 @@ class ProductListFiltersRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'searchTerm' => [ 'model' => null, 'array' => false ], - 'categoryId' => [ 'model' => null, 'array' => false ], - 'search' => [ 'model' => null, 'array' => false ], - 'category' => [ 'model' => null, 'array' => false ], + 'searchTerm' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'categoryId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'search' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'category' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductListFiltersResponse.php b/src/Model/ProductListFiltersResponse.php index 0815b7b..f1e98b4 100644 --- a/src/Model/ProductListFiltersResponse.php +++ b/src/Model/ProductListFiltersResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductListFiltersResponse extends AbstractModel { @@ -15,9 +17,9 @@ class ProductListFiltersResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'categoryData' => [ 'model' => Categories::class, 'array' => false ], - 'filterRanges' => [ 'model' => FilterRanges::class, 'array' => true ], - 'filters' => [ 'model' => Filters::class, 'array' => true ], + 'categoryData' => [ 'model' => Categories::class, 'enum' => null, 'array' => false ], + 'filterRanges' => [ 'model' => FilterRanges::class, 'enum' => null, 'array' => true ], + 'filters' => [ 'model' => Filters::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ProductListProduct.php b/src/Model/ProductListProduct.php index f9a535b..6bfb279 100644 --- a/src/Model/ProductListProduct.php +++ b/src/Model/ProductListProduct.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductListProduct extends AbstractModel { @@ -15,8 +17,8 @@ class ProductListProduct extends AbstractModel public function getModelDefinition(): array { return [ - 'title' => [ 'model' => null, 'array' => false ], - 'eans' => [ 'model' => ProductListProductEan::class, 'array' => true ], + 'title' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'eans' => [ 'model' => ProductListProductEan::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ProductListProductEan.php b/src/Model/ProductListProductEan.php index 69488a4..aba09db 100644 --- a/src/Model/ProductListProductEan.php +++ b/src/Model/ProductListProductEan.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductListProductEan extends AbstractModel { @@ -15,7 +17,7 @@ class ProductListProductEan extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductListRequest.php b/src/Model/ProductListRequest.php index 9ca050d..af24001 100644 --- a/src/Model/ProductListRequest.php +++ b/src/Model/ProductListRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductListRequest extends AbstractModel { @@ -15,18 +17,18 @@ class ProductListRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'countryCode' => [ 'model' => null, 'array' => false ], - 'searchTerm' => [ 'model' => null, 'array' => false ], - 'categoryId' => [ 'model' => null, 'array' => false ], - 'filterRanges' => [ 'model' => ProductListFilterRange::class, 'array' => true ], - 'filterValues' => [ 'model' => ProductListFilterValue::class, 'array' => true ], - 'sort' => [ 'model' => null, 'array' => false ], - 'page' => [ 'model' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => Enum\ProductListRequestCountryCode::class, 'array' => false ], + 'searchTerm' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'categoryId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'filterRanges' => [ 'model' => ProductListFilterRange::class, 'enum' => null, 'array' => true ], + 'filterValues' => [ 'model' => ProductListFilterValue::class, 'enum' => null, 'array' => true ], + 'sort' => [ 'model' => null, 'enum' => Enum\ProductListRequestSort::class, 'array' => false ], + 'page' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string The country for which the products will be retrieved. + * @var Enum\ProductListRequestCountryCode The country for which the products will be retrieved. */ public $countryCode; @@ -51,7 +53,7 @@ public function getModelDefinition(): array public $filterValues = []; /** - * @var string Determines the order of the products. + * @var Enum\ProductListRequestSort Determines the order of the products. */ public $sort; diff --git a/src/Model/ProductListResponse.php b/src/Model/ProductListResponse.php index 4f2dba2..19c629f 100644 --- a/src/Model/ProductListResponse.php +++ b/src/Model/ProductListResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductListResponse extends AbstractModel { @@ -15,8 +17,8 @@ class ProductListResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'products' => [ 'model' => ProductListProduct::class, 'array' => true ], - 'sort' => [ 'model' => null, 'array' => false ], + 'products' => [ 'model' => ProductListProduct::class, 'enum' => null, 'array' => true ], + 'sort' => [ 'model' => null, 'enum' => Enum\ProductListResponseSort::class, 'array' => false ], ]; } @@ -27,7 +29,7 @@ public function getModelDefinition(): array public $products = []; /** - * @var string Determines the order of the products. + * @var Enum\ProductListResponseSort Determines the order of the products. */ public $sort; } diff --git a/src/Model/ProductPlacementResponse.php b/src/Model/ProductPlacementResponse.php index 893be98..1c70c00 100644 --- a/src/Model/ProductPlacementResponse.php +++ b/src/Model/ProductPlacementResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductPlacementResponse extends AbstractModel { @@ -15,8 +17,8 @@ class ProductPlacementResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'url' => [ 'model' => null, 'array' => false ], - 'categories' => [ 'model' => Category::class, 'array' => true ], + 'url' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'categories' => [ 'model' => Category::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ProductRatingsRating.php b/src/Model/ProductRatingsRating.php index 5e1860b..b9a22c6 100644 --- a/src/Model/ProductRatingsRating.php +++ b/src/Model/ProductRatingsRating.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductRatingsRating extends AbstractModel { @@ -15,8 +17,8 @@ class ProductRatingsRating extends AbstractModel public function getModelDefinition(): array { return [ - 'rating' => [ 'model' => null, 'array' => false ], - 'count' => [ 'model' => null, 'array' => false ], + 'rating' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'count' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ProductRatingsResponse.php b/src/Model/ProductRatingsResponse.php index 54cf74b..533ef21 100644 --- a/src/Model/ProductRatingsResponse.php +++ b/src/Model/ProductRatingsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ProductRatingsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class ProductRatingsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'ratings' => [ 'model' => ProductRatingsRating::class, 'array' => true ], + 'ratings' => [ 'model' => ProductRatingsRating::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Products.php b/src/Model/Products.php index cb21872..e767d0e 100644 --- a/src/Model/Products.php +++ b/src/Model/Products.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Products extends AbstractModel { @@ -15,9 +17,9 @@ class Products extends AbstractModel public function getModelDefinition(): array { return [ - 'description' => [ 'model' => null, 'array' => false ], - 'quantity' => [ 'model' => null, 'array' => false ], - 'unitPrice' => [ 'model' => null, 'array' => false ], + 'description' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unitPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Promotion.php b/src/Model/Promotion.php index ead60d7..00f3c97 100644 --- a/src/Model/Promotion.php +++ b/src/Model/Promotion.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Promotion extends AbstractModel { @@ -15,14 +17,14 @@ class Promotion extends AbstractModel public function getModelDefinition(): array { return [ - 'promotionId' => [ 'model' => null, 'array' => false ], - 'title' => [ 'model' => null, 'array' => false ], - 'startDateTime' => [ 'model' => null, 'array' => false ], - 'endDateTime' => [ 'model' => null, 'array' => false ], - 'countries' => [ 'model' => PromotionCountryCode::class, 'array' => true ], - 'promotionType' => [ 'model' => null, 'array' => false ], - 'retailerSpecificPromotion' => [ 'model' => null, 'array' => false ], - 'campaign' => [ 'model' => Campaign::class, 'array' => false ], + 'promotionId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'title' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'startDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'endDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countries' => [ 'model' => PromotionCountryCode::class, 'enum' => null, 'array' => true ], + 'promotionType' => [ 'model' => null, 'enum' => Enum\PromotionPromotionType::class, 'array' => false ], + 'retailerSpecificPromotion' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'campaign' => [ 'model' => Campaign::class, 'enum' => null, 'array' => false ], ]; } @@ -52,7 +54,7 @@ public function getModelDefinition(): array public $countries = []; /** - * @var string The type of the promotion. + * @var Enum\PromotionPromotionType The type of the promotion. */ public $promotionType; diff --git a/src/Model/PromotionCountryCode.php b/src/Model/PromotionCountryCode.php index cc33844..8e21abf 100644 --- a/src/Model/PromotionCountryCode.php +++ b/src/Model/PromotionCountryCode.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class PromotionCountryCode extends AbstractModel { @@ -15,12 +17,12 @@ class PromotionCountryCode extends AbstractModel public function getModelDefinition(): array { return [ - 'countryCode' => [ 'model' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => Enum\PromotionCountryCodeCountryCode::class, 'array' => false ], ]; } /** - * @var string The country code of the country in which the promotion is active. + * @var Enum\PromotionCountryCodeCountryCode The country code of the country in which the promotion is active. */ public $countryCode; } diff --git a/src/Model/Promotions.php b/src/Model/Promotions.php index 30b08fe..8237218 100644 --- a/src/Model/Promotions.php +++ b/src/Model/Promotions.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Promotions extends AbstractModel { @@ -15,7 +17,7 @@ class Promotions extends AbstractModel public function getModelDefinition(): array { return [ - 'promotions' => [ 'model' => ReducedPromotion::class, 'array' => true ], + 'promotions' => [ 'model' => ReducedPromotion::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ReducedInvalidReplenishmentLine.php b/src/Model/ReducedInvalidReplenishmentLine.php index 22772d5..c81ef31 100644 --- a/src/Model/ReducedInvalidReplenishmentLine.php +++ b/src/Model/ReducedInvalidReplenishmentLine.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedInvalidReplenishmentLine extends AbstractModel { @@ -15,13 +17,13 @@ class ReducedInvalidReplenishmentLine extends AbstractModel public function getModelDefinition(): array { return [ - 'type' => [ 'model' => null, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => Enum\ReducedInvalidReplenishmentLineType::class, 'array' => false ], ]; } /** - * @var string Type of invalid replenishment line, in case the BSKU and/or EAN cannot be determined for this - * replenishment line. + * @var Enum\ReducedInvalidReplenishmentLineType Type of invalid replenishment line, in case the BSKU and/or EAN + * cannot be determined for this replenishment line. */ public $type; } diff --git a/src/Model/ReducedOrder.php b/src/Model/ReducedOrder.php index 39b1bb9..3633eb9 100644 --- a/src/Model/ReducedOrder.php +++ b/src/Model/ReducedOrder.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedOrder extends AbstractModel { @@ -15,9 +17,9 @@ class ReducedOrder extends AbstractModel public function getModelDefinition(): array { return [ - 'orderId' => [ 'model' => null, 'array' => false ], - 'orderPlacedDateTime' => [ 'model' => null, 'array' => false ], - 'orderItems' => [ 'model' => ReducedOrderItem::class, 'array' => true ], + 'orderId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'orderPlacedDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'orderItems' => [ 'model' => ReducedOrderItem::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ReducedOrderItem.php b/src/Model/ReducedOrderItem.php index a1cd1ac..ffac555 100644 --- a/src/Model/ReducedOrderItem.php +++ b/src/Model/ReducedOrderItem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedOrderItem extends AbstractModel { @@ -15,15 +17,15 @@ class ReducedOrderItem extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItemId' => [ 'model' => null, 'array' => false ], - 'ean' => [ 'model' => null, 'array' => false ], - 'fulfilmentMethod' => [ 'model' => null, 'array' => false ], - 'fulfilmentStatus' => [ 'model' => null, 'array' => false ], - 'quantity' => [ 'model' => null, 'array' => false ], - 'quantityShipped' => [ 'model' => null, 'array' => false ], - 'quantityCancelled' => [ 'model' => null, 'array' => false ], - 'cancellationRequest' => [ 'model' => null, 'array' => false ], - 'latestChangedDateTime' => [ 'model' => null, 'array' => false ], + 'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fulfilmentMethod' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fulfilmentStatus' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityShipped' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityCancelled' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'cancellationRequest' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'latestChangedDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReducedOrders.php b/src/Model/ReducedOrders.php index 440eb14..4a480c8 100644 --- a/src/Model/ReducedOrders.php +++ b/src/Model/ReducedOrders.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedOrders extends AbstractModel { @@ -15,7 +17,7 @@ class ReducedOrders extends AbstractModel public function getModelDefinition(): array { return [ - 'orders' => [ 'model' => ReducedOrder::class, 'array' => true ], + 'orders' => [ 'model' => ReducedOrder::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ReducedPromotion.php b/src/Model/ReducedPromotion.php index c4d4a12..5982a92 100644 --- a/src/Model/ReducedPromotion.php +++ b/src/Model/ReducedPromotion.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedPromotion extends AbstractModel { @@ -15,14 +17,14 @@ class ReducedPromotion extends AbstractModel public function getModelDefinition(): array { return [ - 'promotionId' => [ 'model' => null, 'array' => false ], - 'title' => [ 'model' => null, 'array' => false ], - 'startDateTime' => [ 'model' => null, 'array' => false ], - 'endDateTime' => [ 'model' => null, 'array' => false ], - 'countries' => [ 'model' => PromotionCountryCode::class, 'array' => true ], - 'promotionType' => [ 'model' => null, 'array' => false ], - 'retailerSpecificPromotion' => [ 'model' => null, 'array' => false ], - 'campaign' => [ 'model' => Campaign::class, 'array' => false ], + 'promotionId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'title' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'startDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'endDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countries' => [ 'model' => PromotionCountryCode::class, 'enum' => null, 'array' => true ], + 'promotionType' => [ 'model' => null, 'enum' => Enum\ReducedPromotionPromotionType::class, 'array' => false ], + 'retailerSpecificPromotion' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'campaign' => [ 'model' => Campaign::class, 'enum' => null, 'array' => false ], ]; } @@ -52,7 +54,7 @@ public function getModelDefinition(): array public $countries = []; /** - * @var string The type of the promotion. + * @var Enum\ReducedPromotionPromotionType The type of the promotion. */ public $promotionType; diff --git a/src/Model/ReducedReplenishment.php b/src/Model/ReducedReplenishment.php index 355e79b..7e3961c 100644 --- a/src/Model/ReducedReplenishment.php +++ b/src/Model/ReducedReplenishment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedReplenishment extends AbstractModel { @@ -15,11 +17,11 @@ class ReducedReplenishment extends AbstractModel public function getModelDefinition(): array { return [ - 'replenishmentId' => [ 'model' => null, 'array' => false ], - 'reference' => [ 'model' => null, 'array' => false ], - 'creationDateTime' => [ 'model' => null, 'array' => false ], - 'lines' => [ 'model' => ReducedReplenishmentLines::class, 'array' => true ], - 'invalidLines' => [ 'model' => ReducedInvalidReplenishmentLine::class, 'array' => true ], + 'replenishmentId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'creationDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'lines' => [ 'model' => ReducedReplenishmentLines::class, 'enum' => null, 'array' => true ], + 'invalidLines' => [ 'model' => ReducedInvalidReplenishmentLine::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ReducedReplenishmentLines.php b/src/Model/ReducedReplenishmentLines.php index 8c4832f..52c4872 100644 --- a/src/Model/ReducedReplenishmentLines.php +++ b/src/Model/ReducedReplenishmentLines.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedReplenishmentLines extends AbstractModel { @@ -15,7 +17,7 @@ class ReducedReplenishmentLines extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReducedReturn.php b/src/Model/ReducedReturn.php index 7ce8fc0..09bbc56 100644 --- a/src/Model/ReducedReturn.php +++ b/src/Model/ReducedReturn.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedReturn extends AbstractModel { @@ -15,10 +17,10 @@ class ReducedReturn extends AbstractModel public function getModelDefinition(): array { return [ - 'returnId' => [ 'model' => null, 'array' => false ], - 'registrationDateTime' => [ 'model' => null, 'array' => false ], - 'fulfilmentMethod' => [ 'model' => null, 'array' => false ], - 'returnItems' => [ 'model' => ReducedReturnItem::class, 'array' => true ], + 'returnId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'registrationDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fulfilmentMethod' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'returnItems' => [ 'model' => ReducedReturnItem::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ReducedReturnItem.php b/src/Model/ReducedReturnItem.php index bda0c99..daec483 100644 --- a/src/Model/ReducedReturnItem.php +++ b/src/Model/ReducedReturnItem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedReturnItem extends AbstractModel { @@ -15,13 +17,13 @@ class ReducedReturnItem extends AbstractModel public function getModelDefinition(): array { return [ - 'rmaId' => [ 'model' => null, 'array' => false ], - 'orderId' => [ 'model' => null, 'array' => false ], - 'ean' => [ 'model' => null, 'array' => false ], - 'expectedQuantity' => [ 'model' => null, 'array' => false ], - 'returnReason' => [ 'model' => ReturnReason::class, 'array' => false ], - 'handled' => [ 'model' => null, 'array' => false ], - 'processingResults' => [ 'model' => ReturnProcessingResult::class, 'array' => true ], + 'rmaId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'orderId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'expectedQuantity' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'returnReason' => [ 'model' => ReturnReason::class, 'enum' => null, 'array' => false ], + 'handled' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'processingResults' => [ 'model' => ReturnProcessingResult::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ReducedShipment.php b/src/Model/ReducedShipment.php index 3a0a30f..fe8ffdb 100644 --- a/src/Model/ReducedShipment.php +++ b/src/Model/ReducedShipment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedShipment extends AbstractModel { @@ -15,12 +17,12 @@ class ReducedShipment extends AbstractModel public function getModelDefinition(): array { return [ - 'shipmentId' => [ 'model' => null, 'array' => false ], - 'shipmentDateTime' => [ 'model' => null, 'array' => false ], - 'shipmentReference' => [ 'model' => null, 'array' => false ], - 'order' => [ 'model' => ReducedShipmentOrder::class, 'array' => false ], - 'shipmentItems' => [ 'model' => ReducedShipmentItem::class, 'array' => true ], - 'transport' => [ 'model' => ReducedTransport::class, 'array' => false ], + 'shipmentId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'shipmentDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'shipmentReference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'order' => [ 'model' => ReducedShipmentOrder::class, 'enum' => null, 'array' => false ], + 'shipmentItems' => [ 'model' => ReducedShipmentItem::class, 'enum' => null, 'array' => true ], + 'transport' => [ 'model' => ReducedTransport::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReducedShipmentItem.php b/src/Model/ReducedShipmentItem.php index 38624ee..14a01c9 100644 --- a/src/Model/ReducedShipmentItem.php +++ b/src/Model/ReducedShipmentItem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedShipmentItem extends AbstractModel { @@ -15,8 +17,8 @@ class ReducedShipmentItem extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItemId' => [ 'model' => null, 'array' => false ], - 'ean' => [ 'model' => null, 'array' => false ], + 'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReducedShipmentOrder.php b/src/Model/ReducedShipmentOrder.php index 358b682..a124854 100644 --- a/src/Model/ReducedShipmentOrder.php +++ b/src/Model/ReducedShipmentOrder.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedShipmentOrder extends AbstractModel { @@ -15,8 +17,8 @@ class ReducedShipmentOrder extends AbstractModel public function getModelDefinition(): array { return [ - 'orderId' => [ 'model' => null, 'array' => false ], - 'orderPlacedDateTime' => [ 'model' => null, 'array' => false ], + 'orderId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'orderPlacedDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReducedTransport.php b/src/Model/ReducedTransport.php index ec3d000..55c4647 100644 --- a/src/Model/ReducedTransport.php +++ b/src/Model/ReducedTransport.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReducedTransport extends AbstractModel { @@ -15,7 +17,7 @@ class ReducedTransport extends AbstractModel public function getModelDefinition(): array { return [ - 'transportId' => [ 'model' => null, 'array' => false ], + 'transportId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Reduction.php b/src/Model/Reduction.php index b6846ae..9066800 100644 --- a/src/Model/Reduction.php +++ b/src/Model/Reduction.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Reduction extends AbstractModel { @@ -15,10 +17,10 @@ class Reduction extends AbstractModel public function getModelDefinition(): array { return [ - 'maximumPrice' => [ 'model' => null, 'array' => false ], - 'costReduction' => [ 'model' => null, 'array' => false ], - 'startDate' => [ 'model' => null, 'array' => false ], - 'endDate' => [ 'model' => null, 'array' => false ], + 'maximumPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'costReduction' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'startDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'endDate' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/RelatedSearchTerm.php b/src/Model/RelatedSearchTerm.php index ca45146..47312fc 100644 --- a/src/Model/RelatedSearchTerm.php +++ b/src/Model/RelatedSearchTerm.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class RelatedSearchTerm extends AbstractModel { @@ -15,8 +17,8 @@ class RelatedSearchTerm extends AbstractModel public function getModelDefinition(): array { return [ - 'total' => [ 'model' => null, 'array' => false ], - 'searchTerm' => [ 'model' => null, 'array' => false ], + 'total' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'searchTerm' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/RelevanceScore.php b/src/Model/RelevanceScore.php index 9f5d2d7..b1cffa7 100644 --- a/src/Model/RelevanceScore.php +++ b/src/Model/RelevanceScore.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class RelevanceScore extends AbstractModel { @@ -15,18 +17,18 @@ class RelevanceScore extends AbstractModel public function getModelDefinition(): array { return [ - 'countryCode' => [ 'model' => null, 'array' => false ], - 'relevanceScore' => [ 'model' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => Enum\RelevanceScoreCountryCode::class, 'array' => false ], + 'relevanceScore' => [ 'model' => null, 'enum' => Enum\RelevanceScoreRelevanceScore::class, 'array' => false ], ]; } /** - * @var string The country for which the relevance score has been calculated against. + * @var Enum\RelevanceScoreCountryCode The country for which the relevance score has been calculated against. */ public $countryCode; /** - * @var int The calculated relevance score for the product. + * @var Enum\RelevanceScoreRelevanceScore The calculated relevance score for the product. */ public $relevanceScore; } diff --git a/src/Model/ReplenishmentLine.php b/src/Model/ReplenishmentLine.php index c23b7f1..bd59b99 100644 --- a/src/Model/ReplenishmentLine.php +++ b/src/Model/ReplenishmentLine.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReplenishmentLine extends AbstractModel { @@ -15,13 +17,13 @@ class ReplenishmentLine extends AbstractModel public function getModelDefinition(): array { return [ - 'ean' => [ 'model' => null, 'array' => false ], - 'lineState' => [ 'model' => null, 'array' => false ], - 'quantityAnnounced' => [ 'model' => null, 'array' => false ], - 'quantityReceived' => [ 'model' => null, 'array' => false ], - 'quantityInProgress' => [ 'model' => null, 'array' => false ], - 'quantityWithGradedState' => [ 'model' => null, 'array' => false ], - 'quantityWithRegularState' => [ 'model' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'lineState' => [ 'model' => null, 'enum' => Enum\ReplenishmentLineLineState::class, 'array' => false ], + 'quantityAnnounced' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityReceived' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityInProgress' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityWithGradedState' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'quantityWithRegularState' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } @@ -31,7 +33,8 @@ public function getModelDefinition(): array public $ean; /** - * @var string The state of the line indicating whether this line was announced within this replenishment. + * @var Enum\ReplenishmentLineLineState The state of the line indicating whether this line was announced within this + * replenishment. */ public $lineState; diff --git a/src/Model/ReplenishmentPickupTimeSlot.php b/src/Model/ReplenishmentPickupTimeSlot.php index 1596364..4e61fa3 100644 --- a/src/Model/ReplenishmentPickupTimeSlot.php +++ b/src/Model/ReplenishmentPickupTimeSlot.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReplenishmentPickupTimeSlot extends AbstractModel { @@ -15,8 +17,8 @@ class ReplenishmentPickupTimeSlot extends AbstractModel public function getModelDefinition(): array { return [ - 'fromDateTime' => [ 'model' => null, 'array' => false ], - 'untilDateTime' => [ 'model' => null, 'array' => false ], + 'fromDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'untilDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReplenishmentResponse.php b/src/Model/ReplenishmentResponse.php index 921768c..8c195f6 100644 --- a/src/Model/ReplenishmentResponse.php +++ b/src/Model/ReplenishmentResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReplenishmentResponse extends AbstractModel { @@ -15,18 +17,18 @@ class ReplenishmentResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'replenishmentId' => [ 'model' => null, 'array' => false ], - 'creationDateTime' => [ 'model' => null, 'array' => false ], - 'reference' => [ 'model' => null, 'array' => false ], - 'labelingByBol' => [ 'model' => null, 'array' => false ], - 'state' => [ 'model' => null, 'array' => false ], - 'deliveryInformation' => [ 'model' => DeliveryInformation::class, 'array' => false ], - 'pickupAppointment' => [ 'model' => PickupAppointment::class, 'array' => false ], - 'numberOfLoadCarriers' => [ 'model' => null, 'array' => false ], - 'loadCarriers' => [ 'model' => LoadCarrier::class, 'array' => true ], - 'lines' => [ 'model' => ReplenishmentLine::class, 'array' => true ], - 'invalidLines' => [ 'model' => InvalidReplenishmentLine::class, 'array' => true ], - 'stateTransitions' => [ 'model' => StateTransition::class, 'array' => true ], + 'replenishmentId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'creationDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'labelingByBol' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'state' => [ 'model' => null, 'enum' => Enum\ReplenishmentResponseState::class, 'array' => false ], + 'deliveryInformation' => [ 'model' => DeliveryInformation::class, 'enum' => null, 'array' => false ], + 'pickupAppointment' => [ 'model' => PickupAppointment::class, 'enum' => null, 'array' => false ], + 'numberOfLoadCarriers' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'loadCarriers' => [ 'model' => LoadCarrier::class, 'enum' => null, 'array' => true ], + 'lines' => [ 'model' => ReplenishmentLine::class, 'enum' => null, 'array' => true ], + 'invalidLines' => [ 'model' => InvalidReplenishmentLine::class, 'enum' => null, 'array' => true ], + 'stateTransitions' => [ 'model' => StateTransition::class, 'enum' => null, 'array' => true ], ]; } @@ -51,7 +53,7 @@ public function getModelDefinition(): array public $labelingByBol; /** - * @var string Indicates the state of this replenishment order. + * @var Enum\ReplenishmentResponseState Indicates the state of this replenishment order. */ public $state; diff --git a/src/Model/ReplenishmentsResponse.php b/src/Model/ReplenishmentsResponse.php index 76505aa..6e50965 100644 --- a/src/Model/ReplenishmentsResponse.php +++ b/src/Model/ReplenishmentsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReplenishmentsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class ReplenishmentsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'replenishments' => [ 'model' => ReducedReplenishment::class, 'array' => true ], + 'replenishments' => [ 'model' => ReducedReplenishment::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/RequestProductDestinationsRequest.php b/src/Model/RequestProductDestinationsRequest.php index f864e6c..5b80f85 100644 --- a/src/Model/RequestProductDestinationsRequest.php +++ b/src/Model/RequestProductDestinationsRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class RequestProductDestinationsRequest extends AbstractModel { @@ -15,7 +17,7 @@ class RequestProductDestinationsRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'eans' => [ 'model' => Ean::class, 'array' => true ], + 'eans' => [ 'model' => Ean::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/RetailerInformationResponse.php b/src/Model/RetailerInformationResponse.php index 7b2fa57..59db612 100644 --- a/src/Model/RetailerInformationResponse.php +++ b/src/Model/RetailerInformationResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class RetailerInformationResponse extends AbstractModel { @@ -15,13 +17,13 @@ class RetailerInformationResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'retailerId' => [ 'model' => null, 'array' => false ], - 'displayName' => [ 'model' => null, 'array' => false ], - 'registrationDate' => [ 'model' => null, 'array' => false ], - 'topRetailer' => [ 'model' => null, 'array' => false ], - 'ratingMethod' => [ 'model' => null, 'array' => false ], - 'retailerRating' => [ 'model' => RetailerRating::class, 'array' => false ], - 'retailerReview' => [ 'model' => RetailerReview::class, 'array' => false ], + 'retailerId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'displayName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'registrationDate' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'topRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'ratingMethod' => [ 'model' => null, 'enum' => Enum\RetailerInformationResponseRatingMethod::class, 'array' => false ], + 'retailerRating' => [ 'model' => RetailerRating::class, 'enum' => null, 'array' => false ], + 'retailerReview' => [ 'model' => RetailerReview::class, 'enum' => null, 'array' => false ], ]; } @@ -46,8 +48,8 @@ public function getModelDefinition(): array public $topRetailer; /** - * @var string An identifier that identifies if the rating is calculated over the past three months or on all - * reviews for the retailer. + * @var Enum\RetailerInformationResponseRatingMethod An identifier that identifies if the rating is calculated over + * the past three months or on all reviews for the retailer. */ public $ratingMethod; diff --git a/src/Model/RetailerOffer.php b/src/Model/RetailerOffer.php index eea55af..1612a9c 100644 --- a/src/Model/RetailerOffer.php +++ b/src/Model/RetailerOffer.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class RetailerOffer extends AbstractModel { @@ -15,17 +17,17 @@ class RetailerOffer extends AbstractModel public function getModelDefinition(): array { return [ - 'offerId' => [ 'model' => null, 'array' => false ], - 'ean' => [ 'model' => null, 'array' => false ], - 'reference' => [ 'model' => null, 'array' => false ], - 'onHoldByRetailer' => [ 'model' => null, 'array' => false ], - 'unknownProductTitle' => [ 'model' => null, 'array' => false ], - 'pricing' => [ 'model' => Pricing::class, 'array' => false ], - 'stock' => [ 'model' => Stock::class, 'array' => false ], - 'fulfilment' => [ 'model' => Fulfilment::class, 'array' => false ], - 'store' => [ 'model' => Store::class, 'array' => false ], - 'condition' => [ 'model' => Condition::class, 'array' => false ], - 'notPublishableReasons' => [ 'model' => NotPublishableReason::class, 'array' => true ], + 'offerId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'onHoldByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unknownProductTitle' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'pricing' => [ 'model' => Pricing::class, 'enum' => null, 'array' => false ], + 'stock' => [ 'model' => Stock::class, 'enum' => null, 'array' => false ], + 'fulfilment' => [ 'model' => Fulfilment::class, 'enum' => null, 'array' => false ], + 'store' => [ 'model' => Store::class, 'enum' => null, 'array' => false ], + 'condition' => [ 'model' => Condition::class, 'enum' => null, 'array' => false ], + 'notPublishableReasons' => [ 'model' => NotPublishableReason::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/RetailerRating.php b/src/Model/RetailerRating.php index f270ee7..553000a 100644 --- a/src/Model/RetailerRating.php +++ b/src/Model/RetailerRating.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class RetailerRating extends AbstractModel { @@ -15,11 +17,11 @@ class RetailerRating extends AbstractModel public function getModelDefinition(): array { return [ - 'retailerRating' => [ 'model' => null, 'array' => false ], - 'productInformationRating' => [ 'model' => null, 'array' => false ], - 'deliveryTimeRating' => [ 'model' => null, 'array' => false ], - 'shippingRating' => [ 'model' => null, 'array' => false ], - 'serviceRating' => [ 'model' => null, 'array' => false ], + 'retailerRating' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'productInformationRating' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'deliveryTimeRating' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'shippingRating' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'serviceRating' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/RetailerReview.php b/src/Model/RetailerReview.php index b876172..b937304 100644 --- a/src/Model/RetailerReview.php +++ b/src/Model/RetailerReview.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class RetailerReview extends AbstractModel { @@ -15,11 +17,11 @@ class RetailerReview extends AbstractModel public function getModelDefinition(): array { return [ - 'totalReviewCount' => [ 'model' => null, 'array' => false ], - 'approvalPercentage' => [ 'model' => null, 'array' => false ], - 'positiveReviewCount' => [ 'model' => null, 'array' => false ], - 'neutralReviewCount' => [ 'model' => null, 'array' => false ], - 'negativeReviewCount' => [ 'model' => null, 'array' => false ], + 'totalReviewCount' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'approvalPercentage' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'positiveReviewCount' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'neutralReviewCount' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'negativeReviewCount' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReturnItem.php b/src/Model/ReturnItem.php index c796a4b..45c793a 100644 --- a/src/Model/ReturnItem.php +++ b/src/Model/ReturnItem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReturnItem extends AbstractModel { @@ -15,17 +17,17 @@ class ReturnItem extends AbstractModel public function getModelDefinition(): array { return [ - 'rmaId' => [ 'model' => null, 'array' => false ], - 'orderId' => [ 'model' => null, 'array' => false ], - 'ean' => [ 'model' => null, 'array' => false ], - 'title' => [ 'model' => null, 'array' => false ], - 'expectedQuantity' => [ 'model' => null, 'array' => false ], - 'returnReason' => [ 'model' => ReturnReason::class, 'array' => false ], - 'trackAndTrace' => [ 'model' => null, 'array' => false ], - 'transporterName' => [ 'model' => null, 'array' => false ], - 'handled' => [ 'model' => null, 'array' => false ], - 'processingResults' => [ 'model' => ReturnProcessingResult::class, 'array' => true ], - 'customerDetails' => [ 'model' => CustomerDetails::class, 'array' => false ], + 'rmaId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'orderId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'title' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'expectedQuantity' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'returnReason' => [ 'model' => ReturnReason::class, 'enum' => null, 'array' => false ], + 'trackAndTrace' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transporterName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'handled' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'processingResults' => [ 'model' => ReturnProcessingResult::class, 'enum' => null, 'array' => true ], + 'customerDetails' => [ 'model' => CustomerDetails::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReturnObject.php b/src/Model/ReturnObject.php index 408ca58..52691c2 100644 --- a/src/Model/ReturnObject.php +++ b/src/Model/ReturnObject.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReturnObject extends AbstractModel { @@ -15,10 +17,10 @@ class ReturnObject extends AbstractModel public function getModelDefinition(): array { return [ - 'returnId' => [ 'model' => null, 'array' => false ], - 'registrationDateTime' => [ 'model' => null, 'array' => false ], - 'fulfilmentMethod' => [ 'model' => null, 'array' => false ], - 'returnItems' => [ 'model' => ReturnItem::class, 'array' => true ], + 'returnId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'registrationDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fulfilmentMethod' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'returnItems' => [ 'model' => ReturnItem::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ReturnProcessingResult.php b/src/Model/ReturnProcessingResult.php index a1bac79..189a9f1 100644 --- a/src/Model/ReturnProcessingResult.php +++ b/src/Model/ReturnProcessingResult.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReturnProcessingResult extends AbstractModel { @@ -15,10 +17,10 @@ class ReturnProcessingResult extends AbstractModel public function getModelDefinition(): array { return [ - 'quantity' => [ 'model' => null, 'array' => false ], - 'processingResult' => [ 'model' => null, 'array' => false ], - 'handlingResult' => [ 'model' => null, 'array' => false ], - 'processingDateTime' => [ 'model' => null, 'array' => false ], + 'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'processingResult' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'handlingResult' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'processingDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReturnReason.php b/src/Model/ReturnReason.php index e1c276e..e0d813d 100644 --- a/src/Model/ReturnReason.php +++ b/src/Model/ReturnReason.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReturnReason extends AbstractModel { @@ -15,9 +17,9 @@ class ReturnReason extends AbstractModel public function getModelDefinition(): array { return [ - 'mainReason' => [ 'model' => null, 'array' => false ], - 'detailedReason' => [ 'model' => null, 'array' => false ], - 'customerComments' => [ 'model' => null, 'array' => false ], + 'mainReason' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'detailedReason' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'customerComments' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ReturnRequest.php b/src/Model/ReturnRequest.php index 35af73b..1711218 100644 --- a/src/Model/ReturnRequest.php +++ b/src/Model/ReturnRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReturnRequest extends AbstractModel { @@ -15,13 +17,13 @@ class ReturnRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'handlingResult' => [ 'model' => null, 'array' => false ], - 'quantityReturned' => [ 'model' => null, 'array' => false ], + 'handlingResult' => [ 'model' => null, 'enum' => Enum\ReturnRequestHandlingResult::class, 'array' => false ], + 'quantityReturned' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string The handling result requested by the retailer. + * @var Enum\ReturnRequestHandlingResult The handling result requested by the retailer. */ public $handlingResult; diff --git a/src/Model/ReturnsResponse.php b/src/Model/ReturnsResponse.php index 91be311..93550fa 100644 --- a/src/Model/ReturnsResponse.php +++ b/src/Model/ReturnsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ReturnsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class ReturnsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'returns' => [ 'model' => ReducedReturn::class, 'array' => true ], + 'returns' => [ 'model' => ReducedReturn::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/SalesForecastPeriod.php b/src/Model/SalesForecastPeriod.php index 11befa8..17882be 100644 --- a/src/Model/SalesForecastPeriod.php +++ b/src/Model/SalesForecastPeriod.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SalesForecastPeriod extends AbstractModel { @@ -15,9 +17,9 @@ class SalesForecastPeriod extends AbstractModel public function getModelDefinition(): array { return [ - 'weeksAhead' => [ 'model' => null, 'array' => false ], - 'total' => [ 'model' => Total::class, 'array' => false ], - 'countries' => [ 'model' => Countries::class, 'array' => true ], + 'weeksAhead' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'total' => [ 'model' => Total::class, 'enum' => null, 'array' => false ], + 'countries' => [ 'model' => Countries::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/SalesForecastResponse.php b/src/Model/SalesForecastResponse.php index 56ec2f0..ae7ac9c 100644 --- a/src/Model/SalesForecastResponse.php +++ b/src/Model/SalesForecastResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SalesForecastResponse extends AbstractModel { @@ -15,11 +17,11 @@ class SalesForecastResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'name' => [ 'model' => null, 'array' => false ], - 'type' => [ 'model' => null, 'array' => false ], - 'total' => [ 'model' => Total::class, 'array' => false ], - 'countries' => [ 'model' => Countries::class, 'array' => true ], - 'periods' => [ 'model' => SalesForecastPeriod::class, 'array' => true ], + 'name' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'total' => [ 'model' => Total::class, 'enum' => null, 'array' => false ], + 'countries' => [ 'model' => Countries::class, 'enum' => null, 'array' => true ], + 'periods' => [ 'model' => SalesForecastPeriod::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Score.php b/src/Model/Score.php index da541fb..93e3715 100644 --- a/src/Model/Score.php +++ b/src/Model/Score.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Score extends AbstractModel { @@ -15,11 +17,11 @@ class Score extends AbstractModel public function getModelDefinition(): array { return [ - 'conforms' => [ 'model' => null, 'array' => false ], - 'numerator' => [ 'model' => null, 'array' => false ], - 'denominator' => [ 'model' => null, 'array' => false ], - 'value' => [ 'model' => null, 'array' => false ], - 'distanceToNorm' => [ 'model' => null, 'array' => false ], + 'conforms' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'numerator' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'denominator' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'value' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'distanceToNorm' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/SearchTerm.php b/src/Model/SearchTerm.php index 1144624..d451298 100644 --- a/src/Model/SearchTerm.php +++ b/src/Model/SearchTerm.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SearchTerm extends AbstractModel { @@ -15,12 +17,12 @@ class SearchTerm extends AbstractModel public function getModelDefinition(): array { return [ - 'searchTerm' => [ 'model' => null, 'array' => false ], - 'type' => [ 'model' => null, 'array' => false ], - 'total' => [ 'model' => null, 'array' => false ], - 'countries' => [ 'model' => SearchTermsCountry::class, 'array' => true ], - 'periods' => [ 'model' => TotalPeriod::class, 'array' => true ], - 'relatedSearchTerms' => [ 'model' => RelatedSearchTerm::class, 'array' => true ], + 'searchTerm' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'type' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'total' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countries' => [ 'model' => SearchTermsCountry::class, 'enum' => null, 'array' => true ], + 'periods' => [ 'model' => TotalPeriod::class, 'enum' => null, 'array' => true ], + 'relatedSearchTerms' => [ 'model' => RelatedSearchTerm::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/SearchTerms.php b/src/Model/SearchTerms.php index fc26436..9f1b026 100644 --- a/src/Model/SearchTerms.php +++ b/src/Model/SearchTerms.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SearchTerms extends AbstractModel { @@ -15,7 +17,7 @@ class SearchTerms extends AbstractModel public function getModelDefinition(): array { return [ - 'searchTerms' => [ 'model' => SearchTerm::class, 'array' => false ], + 'searchTerms' => [ 'model' => SearchTerm::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/SearchTermsCountry.php b/src/Model/SearchTermsCountry.php index c607e13..183743d 100644 --- a/src/Model/SearchTermsCountry.php +++ b/src/Model/SearchTermsCountry.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SearchTermsCountry extends AbstractModel { @@ -15,8 +17,8 @@ class SearchTermsCountry extends AbstractModel public function getModelDefinition(): array { return [ - 'countryCode' => [ 'model' => null, 'array' => false ], - 'value' => [ 'model' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'value' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/SearchTermsPeriod.php b/src/Model/SearchTermsPeriod.php index 453fae0..da9256f 100644 --- a/src/Model/SearchTermsPeriod.php +++ b/src/Model/SearchTermsPeriod.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SearchTermsPeriod extends AbstractModel { @@ -15,10 +17,10 @@ class SearchTermsPeriod extends AbstractModel public function getModelDefinition(): array { return [ - 'day' => [ 'model' => null, 'array' => false ], - 'week' => [ 'model' => null, 'array' => false ], - 'month' => [ 'model' => null, 'array' => false ], - 'year' => [ 'model' => null, 'array' => false ], + 'day' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'week' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'month' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'year' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Serie.php b/src/Model/Serie.php index 70b0edb..2c70a46 100644 --- a/src/Model/Serie.php +++ b/src/Model/Serie.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Serie extends AbstractModel { @@ -15,7 +17,7 @@ class Serie extends AbstractModel public function getModelDefinition(): array { return [ - 'name' => [ 'model' => null, 'array' => false ], + 'name' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Shipment.php b/src/Model/Shipment.php index 5229265..eda0058 100644 --- a/src/Model/Shipment.php +++ b/src/Model/Shipment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Shipment extends AbstractModel { @@ -15,15 +17,15 @@ class Shipment extends AbstractModel public function getModelDefinition(): array { return [ - 'shipmentId' => [ 'model' => null, 'array' => false ], - 'shipmentDateTime' => [ 'model' => null, 'array' => false ], - 'shipmentReference' => [ 'model' => null, 'array' => false ], - 'pickupPoint' => [ 'model' => null, 'array' => false ], - 'order' => [ 'model' => ShipmentOrder::class, 'array' => false ], - 'shipmentDetails' => [ 'model' => ShipmentDetails::class, 'array' => false ], - 'billingDetails' => [ 'model' => BillingDetails::class, 'array' => false ], - 'shipmentItems' => [ 'model' => ShipmentItem::class, 'array' => true ], - 'transport' => [ 'model' => ShipmentTransport::class, 'array' => false ], + 'shipmentId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'shipmentDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'shipmentReference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'pickupPoint' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'order' => [ 'model' => ShipmentOrder::class, 'enum' => null, 'array' => false ], + 'shipmentDetails' => [ 'model' => ShipmentDetails::class, 'enum' => null, 'array' => false ], + 'billingDetails' => [ 'model' => BillingDetails::class, 'enum' => null, 'array' => false ], + 'shipmentItems' => [ 'model' => ShipmentItem::class, 'enum' => null, 'array' => true ], + 'transport' => [ 'model' => ShipmentTransport::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ShipmentDetails.php b/src/Model/ShipmentDetails.php index ffe838a..b09ad9a 100644 --- a/src/Model/ShipmentDetails.php +++ b/src/Model/ShipmentDetails.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ShipmentDetails extends AbstractModel { @@ -15,21 +17,21 @@ class ShipmentDetails extends AbstractModel public function getModelDefinition(): array { return [ - 'pickupPointName' => [ 'model' => null, 'array' => false ], - 'salutation' => [ 'model' => null, 'array' => false ], - 'firstName' => [ 'model' => null, 'array' => false ], - 'surname' => [ 'model' => null, 'array' => false ], - 'streetName' => [ 'model' => null, 'array' => false ], - 'houseNumber' => [ 'model' => null, 'array' => false ], - 'houseNumberExtension' => [ 'model' => null, 'array' => false ], - 'extraAddressInformation' => [ 'model' => null, 'array' => false ], - 'zipCode' => [ 'model' => null, 'array' => false ], - 'city' => [ 'model' => null, 'array' => false ], - 'countryCode' => [ 'model' => null, 'array' => false ], - 'email' => [ 'model' => null, 'array' => false ], - 'company' => [ 'model' => null, 'array' => false ], - 'deliveryPhoneNumber' => [ 'model' => null, 'array' => false ], - 'language' => [ 'model' => null, 'array' => false ], + 'pickupPointName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'salutation' => [ 'model' => null, 'enum' => Enum\ShipmentDetailsSalutation::class, 'array' => false ], + 'firstName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'surname' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'streetName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'houseNumberExtension' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'extraAddressInformation' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'zipCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'city' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countryCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'email' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'company' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'deliveryPhoneNumber' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'language' => [ 'model' => null, 'enum' => Enum\ShipmentDetailsLanguage::class, 'array' => false ], ]; } @@ -39,7 +41,7 @@ public function getModelDefinition(): array public $pickupPointName; /** - * @var string The salutation of the customer. + * @var Enum\ShipmentDetailsSalutation The salutation of the customer. */ public $salutation; @@ -105,7 +107,7 @@ public function getModelDefinition(): array public $deliveryPhoneNumber; /** - * @var string The language of the customer in case of contact. + * @var Enum\ShipmentDetailsLanguage The language of the customer in case of contact. */ public $language; } diff --git a/src/Model/ShipmentFulfilment.php b/src/Model/ShipmentFulfilment.php index e0a4af1..415a145 100644 --- a/src/Model/ShipmentFulfilment.php +++ b/src/Model/ShipmentFulfilment.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ShipmentFulfilment extends AbstractModel { @@ -15,19 +17,21 @@ class ShipmentFulfilment extends AbstractModel public function getModelDefinition(): array { return [ - 'method' => [ 'model' => null, 'array' => false ], - 'distributionParty' => [ 'model' => null, 'array' => false ], - 'latestDeliveryDate' => [ 'model' => null, 'array' => false ], + 'method' => [ 'model' => null, 'enum' => Enum\ShipmentFulfilmentMethod::class, 'array' => false ], + 'distributionParty' => [ 'model' => null, 'enum' => Enum\ShipmentFulfilmentDistributionParty::class, 'array' => false ], + 'latestDeliveryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB). + * @var Enum\ShipmentFulfilmentMethod The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com + * (FBB). */ public $method; /** - * @var string The party that manages the distribution, either bol.com or the retailer itself. + * @var Enum\ShipmentFulfilmentDistributionParty The party that manages the distribution, either bol.com or the + * retailer itself. */ public $distributionParty; diff --git a/src/Model/ShipmentItem.php b/src/Model/ShipmentItem.php index 12d9e20..b5d9328 100644 --- a/src/Model/ShipmentItem.php +++ b/src/Model/ShipmentItem.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ShipmentItem extends AbstractModel { @@ -15,13 +17,13 @@ class ShipmentItem extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItemId' => [ 'model' => null, 'array' => false ], - 'fulfilment' => [ 'model' => ShipmentFulfilment::class, 'array' => false ], - 'offer' => [ 'model' => OrderOffer::class, 'array' => false ], - 'product' => [ 'model' => OrderProduct::class, 'array' => false ], - 'quantity' => [ 'model' => null, 'array' => false ], - 'unitPrice' => [ 'model' => null, 'array' => false ], - 'commission' => [ 'model' => null, 'array' => false ], + 'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fulfilment' => [ 'model' => ShipmentFulfilment::class, 'enum' => null, 'array' => false ], + 'offer' => [ 'model' => OrderOffer::class, 'enum' => null, 'array' => false ], + 'product' => [ 'model' => OrderProduct::class, 'enum' => null, 'array' => false ], + 'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unitPrice' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'commission' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ShipmentOrder.php b/src/Model/ShipmentOrder.php index cd78777..6813dc4 100644 --- a/src/Model/ShipmentOrder.php +++ b/src/Model/ShipmentOrder.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ShipmentOrder extends AbstractModel { @@ -15,8 +17,8 @@ class ShipmentOrder extends AbstractModel public function getModelDefinition(): array { return [ - 'orderId' => [ 'model' => null, 'array' => false ], - 'orderPlacedDateTime' => [ 'model' => null, 'array' => false ], + 'orderId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'orderPlacedDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ShipmentRequest.php b/src/Model/ShipmentRequest.php index e2f083e..1f8fdcb 100644 --- a/src/Model/ShipmentRequest.php +++ b/src/Model/ShipmentRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ShipmentRequest extends AbstractModel { @@ -15,10 +17,10 @@ class ShipmentRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItems' => [ 'model' => OrderItem::class, 'array' => true ], - 'shipmentReference' => [ 'model' => null, 'array' => false ], - 'shippingLabelId' => [ 'model' => null, 'array' => false ], - 'transport' => [ 'model' => TransportInstruction::class, 'array' => false ], + 'orderItems' => [ 'model' => OrderItem::class, 'enum' => null, 'array' => true ], + 'shipmentReference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'shippingLabelId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transport' => [ 'model' => TransportInstruction::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/ShipmentTransport.php b/src/Model/ShipmentTransport.php index 99727da..e166c78 100644 --- a/src/Model/ShipmentTransport.php +++ b/src/Model/ShipmentTransport.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ShipmentTransport extends AbstractModel { @@ -15,11 +17,11 @@ class ShipmentTransport extends AbstractModel public function getModelDefinition(): array { return [ - 'transportId' => [ 'model' => null, 'array' => false ], - 'transporterCode' => [ 'model' => null, 'array' => false ], - 'trackAndTrace' => [ 'model' => null, 'array' => false ], - 'shippingLabelId' => [ 'model' => null, 'array' => false ], - 'transportEvents' => [ 'model' => TransportEvent::class, 'array' => true ], + 'transportId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transporterCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'trackAndTrace' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'shippingLabelId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'transportEvents' => [ 'model' => TransportEvent::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ShipmentsResponse.php b/src/Model/ShipmentsResponse.php index ce66178..0b1e8f1 100644 --- a/src/Model/ShipmentsResponse.php +++ b/src/Model/ShipmentsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ShipmentsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class ShipmentsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'shipments' => [ 'model' => ReducedShipment::class, 'array' => true ], + 'shipments' => [ 'model' => ReducedShipment::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/ShippingLabelRequest.php b/src/Model/ShippingLabelRequest.php index d4279ce..0996e18 100644 --- a/src/Model/ShippingLabelRequest.php +++ b/src/Model/ShippingLabelRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class ShippingLabelRequest extends AbstractModel { @@ -15,8 +17,8 @@ class ShippingLabelRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'orderItems' => [ 'model' => DeliveryOptionsRequestOrderItem::class, 'array' => true ], - 'shippingLabelOfferId' => [ 'model' => null, 'array' => false ], + 'orderItems' => [ 'model' => DeliveryOptionsRequestOrderItem::class, 'enum' => null, 'array' => true ], + 'shippingLabelOfferId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/StateTransition.php b/src/Model/StateTransition.php index 5d5b6e2..aea0126 100644 --- a/src/Model/StateTransition.php +++ b/src/Model/StateTransition.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class StateTransition extends AbstractModel { @@ -15,13 +17,13 @@ class StateTransition extends AbstractModel public function getModelDefinition(): array { return [ - 'state' => [ 'model' => null, 'array' => false ], - 'stateDateTime' => [ 'model' => null, 'array' => false ], + 'state' => [ 'model' => null, 'enum' => Enum\StateTransitionState::class, 'array' => false ], + 'stateDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string Indicates the state of this replenishment order. + * @var Enum\StateTransitionState Indicates the state of this replenishment order. */ public $state; diff --git a/src/Model/StatusTransitions.php b/src/Model/StatusTransitions.php index 6a9861b..0f2ce80 100644 --- a/src/Model/StatusTransitions.php +++ b/src/Model/StatusTransitions.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class StatusTransitions extends AbstractModel { @@ -15,13 +17,13 @@ class StatusTransitions extends AbstractModel public function getModelDefinition(): array { return [ - 'status' => [ 'model' => null, 'array' => false ], - 'statusDateTime' => [ 'model' => null, 'array' => false ], + 'status' => [ 'model' => null, 'enum' => Enum\StatusTransitionsStatus::class, 'array' => false ], + 'statusDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string Indicates the status of this invoice request. + * @var Enum\StatusTransitionsStatus Indicates the status of this invoice request. */ public $status; diff --git a/src/Model/Stock.php b/src/Model/Stock.php index fc68c77..6b6adb3 100644 --- a/src/Model/Stock.php +++ b/src/Model/Stock.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Stock extends AbstractModel { @@ -15,9 +17,9 @@ class Stock extends AbstractModel public function getModelDefinition(): array { return [ - 'amount' => [ 'model' => null, 'array' => false ], - 'correctedStock' => [ 'model' => null, 'array' => false ], - 'managedByRetailer' => [ 'model' => null, 'array' => false ], + 'amount' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'correctedStock' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'managedByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/StockCreate.php b/src/Model/StockCreate.php index 64a1310..0811555 100644 --- a/src/Model/StockCreate.php +++ b/src/Model/StockCreate.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class StockCreate extends AbstractModel { @@ -15,8 +17,8 @@ class StockCreate extends AbstractModel public function getModelDefinition(): array { return [ - 'amount' => [ 'model' => null, 'array' => false ], - 'managedByRetailer' => [ 'model' => null, 'array' => false ], + 'amount' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'managedByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Store.php b/src/Model/Store.php index c456745..0271207 100644 --- a/src/Model/Store.php +++ b/src/Model/Store.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Store extends AbstractModel { @@ -15,8 +17,8 @@ class Store extends AbstractModel public function getModelDefinition(): array { return [ - 'productTitle' => [ 'model' => null, 'array' => false ], - 'visible' => [ 'model' => OffersCountryCode::class, 'array' => true ], + 'productTitle' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'visible' => [ 'model' => OffersCountryCode::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/SubCategory.php b/src/Model/SubCategory.php index cab08f6..fc1fabb 100644 --- a/src/Model/SubCategory.php +++ b/src/Model/SubCategory.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SubCategory extends AbstractModel { @@ -15,8 +17,8 @@ class SubCategory extends AbstractModel public function getModelDefinition(): array { return [ - 'id' => [ 'model' => null, 'array' => false ], - 'name' => [ 'model' => null, 'array' => false ], + 'id' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'name' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/SubscriptionRequest.php b/src/Model/SubscriptionRequest.php index 6f7db5d..f0c00e9 100644 --- a/src/Model/SubscriptionRequest.php +++ b/src/Model/SubscriptionRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SubscriptionRequest extends AbstractModel { @@ -15,9 +17,9 @@ class SubscriptionRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'resources' => [ 'model' => null, 'array' => true ], - 'url' => [ 'model' => null, 'array' => false ], - 'subscriptionType' => [ 'model' => null, 'array' => false ], + 'resources' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'url' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'subscriptionType' => [ 'model' => null, 'enum' => Enum\SubscriptionRequestSubscriptionType::class, 'array' => false ], ]; } @@ -34,8 +36,8 @@ public function getModelDefinition(): array public $url; /** - * @var string The type of subscription. It indicates the platform where the events will be subscribed to. Be aware - * that certain event types are only available for specific types. + * @var Enum\SubscriptionRequestSubscriptionType The type of subscription. It indicates the platform where the + * events will be subscribed to. Be aware that certain event types are only available for specific types. */ public $subscriptionType; } diff --git a/src/Model/SubscriptionResponse.php b/src/Model/SubscriptionResponse.php index d1d3978..eae223f 100644 --- a/src/Model/SubscriptionResponse.php +++ b/src/Model/SubscriptionResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SubscriptionResponse extends AbstractModel { @@ -15,10 +17,10 @@ class SubscriptionResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'id' => [ 'model' => null, 'array' => false ], - 'resources' => [ 'model' => null, 'array' => true ], - 'url' => [ 'model' => null, 'array' => false ], - 'subscriptionType' => [ 'model' => null, 'array' => false ], + 'id' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'resources' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'url' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'subscriptionType' => [ 'model' => null, 'enum' => Enum\SubscriptionResponseSubscriptionType::class, 'array' => false ], ]; } @@ -40,8 +42,8 @@ public function getModelDefinition(): array public $url; /** - * @var string The type of subscription. It indicates the platform where the events will be subscribed to. Be aware - * that certain event types are only available for specific types. + * @var Enum\SubscriptionResponseSubscriptionType The type of subscription. It indicates the platform where the + * events will be subscribed to. Be aware that certain event types are only available for specific types. */ public $subscriptionType; } diff --git a/src/Model/SubscriptionsResponse.php b/src/Model/SubscriptionsResponse.php index 0043ece..ac3311f 100644 --- a/src/Model/SubscriptionsResponse.php +++ b/src/Model/SubscriptionsResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class SubscriptionsResponse extends AbstractModel { @@ -15,7 +17,7 @@ class SubscriptionsResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'subscriptions' => [ 'model' => SubscriptionResponse::class, 'array' => true ], + 'subscriptions' => [ 'model' => SubscriptionResponse::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/Total.php b/src/Model/Total.php index 5edc3cd..0f0b3cc 100644 --- a/src/Model/Total.php +++ b/src/Model/Total.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Total extends AbstractModel { @@ -15,8 +17,8 @@ class Total extends AbstractModel public function getModelDefinition(): array { return [ - 'minimum' => [ 'model' => null, 'array' => false ], - 'maximum' => [ 'model' => null, 'array' => false ], + 'minimum' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'maximum' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/TotalPeriod.php b/src/Model/TotalPeriod.php index f82294d..85eac31 100644 --- a/src/Model/TotalPeriod.php +++ b/src/Model/TotalPeriod.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class TotalPeriod extends AbstractModel { @@ -15,9 +17,9 @@ class TotalPeriod extends AbstractModel public function getModelDefinition(): array { return [ - 'period' => [ 'model' => SearchTermsPeriod::class, 'array' => false ], - 'total' => [ 'model' => null, 'array' => false ], - 'countries' => [ 'model' => SearchTermsCountry::class, 'array' => true ], + 'period' => [ 'model' => SearchTermsPeriod::class, 'enum' => null, 'array' => false ], + 'total' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'countries' => [ 'model' => SearchTermsCountry::class, 'enum' => null, 'array' => true ], ]; } diff --git a/src/Model/TransportEvent.php b/src/Model/TransportEvent.php index 8ba2ebb..53686fe 100644 --- a/src/Model/TransportEvent.php +++ b/src/Model/TransportEvent.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class TransportEvent extends AbstractModel { @@ -15,13 +17,14 @@ class TransportEvent extends AbstractModel public function getModelDefinition(): array { return [ - 'eventCode' => [ 'model' => null, 'array' => false ], - 'eventDateTime' => [ 'model' => null, 'array' => false ], + 'eventCode' => [ 'model' => null, 'enum' => Enum\TransportEventEventCode::class, 'array' => false ], + 'eventDateTime' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } /** - * @var string The transport event code indicates the location of the parcel within the distribution process. + * @var Enum\TransportEventEventCode The transport event code indicates the location of the parcel within the + * distribution process. */ public $eventCode; diff --git a/src/Model/TransportInstruction.php b/src/Model/TransportInstruction.php index b6f0d43..2eb56ec 100644 --- a/src/Model/TransportInstruction.php +++ b/src/Model/TransportInstruction.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class TransportInstruction extends AbstractModel { @@ -15,8 +17,8 @@ class TransportInstruction extends AbstractModel public function getModelDefinition(): array { return [ - 'transporterCode' => [ 'model' => null, 'array' => false ], - 'trackAndTrace' => [ 'model' => null, 'array' => false ], + 'transporterCode' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'trackAndTrace' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/UpdateDeliveryInfo.php b/src/Model/UpdateDeliveryInfo.php index adc6b6a..fbdd535 100644 --- a/src/Model/UpdateDeliveryInfo.php +++ b/src/Model/UpdateDeliveryInfo.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UpdateDeliveryInfo extends AbstractModel { @@ -15,7 +17,7 @@ class UpdateDeliveryInfo extends AbstractModel public function getModelDefinition(): array { return [ - 'expectedDeliveryDate' => [ 'model' => null, 'array' => false ], + 'expectedDeliveryDate' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/UpdateLoadCarrier.php b/src/Model/UpdateLoadCarrier.php index 45703eb..e367442 100644 --- a/src/Model/UpdateLoadCarrier.php +++ b/src/Model/UpdateLoadCarrier.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UpdateLoadCarrier extends AbstractModel { @@ -15,7 +17,7 @@ class UpdateLoadCarrier extends AbstractModel public function getModelDefinition(): array { return [ - 'sscc' => [ 'model' => null, 'array' => false ], + 'sscc' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/UpdateOfferPriceRequest.php b/src/Model/UpdateOfferPriceRequest.php index 6832183..12f6422 100644 --- a/src/Model/UpdateOfferPriceRequest.php +++ b/src/Model/UpdateOfferPriceRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UpdateOfferPriceRequest extends AbstractModel { @@ -15,7 +17,7 @@ class UpdateOfferPriceRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'pricing' => [ 'model' => Pricing::class, 'array' => false ], + 'pricing' => [ 'model' => Pricing::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/UpdateOfferRequest.php b/src/Model/UpdateOfferRequest.php index 8d946b2..2b8b145 100644 --- a/src/Model/UpdateOfferRequest.php +++ b/src/Model/UpdateOfferRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UpdateOfferRequest extends AbstractModel { @@ -15,10 +17,10 @@ class UpdateOfferRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'reference' => [ 'model' => null, 'array' => false ], - 'onHoldByRetailer' => [ 'model' => null, 'array' => false ], - 'unknownProductTitle' => [ 'model' => null, 'array' => false ], - 'fulfilment' => [ 'model' => Fulfilment::class, 'array' => false ], + 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'onHoldByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unknownProductTitle' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'fulfilment' => [ 'model' => Fulfilment::class, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/UpdateOfferStockRequest.php b/src/Model/UpdateOfferStockRequest.php index 3ae6b11..82da1b1 100644 --- a/src/Model/UpdateOfferStockRequest.php +++ b/src/Model/UpdateOfferStockRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UpdateOfferStockRequest extends AbstractModel { @@ -15,8 +17,8 @@ class UpdateOfferStockRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'amount' => [ 'model' => null, 'array' => false ], - 'managedByRetailer' => [ 'model' => null, 'array' => false ], + 'amount' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'managedByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/UpdateReplenishmentRequest.php b/src/Model/UpdateReplenishmentRequest.php index 52f5b47..ce3f921 100644 --- a/src/Model/UpdateReplenishmentRequest.php +++ b/src/Model/UpdateReplenishmentRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UpdateReplenishmentRequest extends AbstractModel { @@ -15,15 +17,15 @@ class UpdateReplenishmentRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'state' => [ 'model' => null, 'array' => false ], - 'deliveryInfo' => [ 'model' => UpdateDeliveryInfo::class, 'array' => false ], - 'numberOfLoadCarriers' => [ 'model' => null, 'array' => false ], - 'loadCarriers' => [ 'model' => UpdateLoadCarrier::class, 'array' => true ], + 'state' => [ 'model' => null, 'enum' => Enum\UpdateReplenishmentRequestState::class, 'array' => false ], + 'deliveryInfo' => [ 'model' => UpdateDeliveryInfo::class, 'enum' => null, 'array' => false ], + 'numberOfLoadCarriers' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'loadCarriers' => [ 'model' => UpdateLoadCarrier::class, 'enum' => null, 'array' => true ], ]; } /** - * @var string Update the state of the replenishment to cancel the replenishment. + * @var Enum\UpdateReplenishmentRequestState Update the state of the replenishment to cancel the replenishment. */ public $state; diff --git a/src/Model/UpdateSubscriptionRequest.php b/src/Model/UpdateSubscriptionRequest.php index 3fefb72..68f88f8 100644 --- a/src/Model/UpdateSubscriptionRequest.php +++ b/src/Model/UpdateSubscriptionRequest.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UpdateSubscriptionRequest extends AbstractModel { @@ -15,8 +17,8 @@ class UpdateSubscriptionRequest extends AbstractModel public function getModelDefinition(): array { return [ - 'resources' => [ 'model' => null, 'array' => true ], - 'url' => [ 'model' => null, 'array' => false ], + 'resources' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'url' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/UploadReportAsset.php b/src/Model/UploadReportAsset.php index b917ab0..f17efd3 100644 --- a/src/Model/UploadReportAsset.php +++ b/src/Model/UploadReportAsset.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UploadReportAsset extends AbstractModel { @@ -15,11 +17,11 @@ class UploadReportAsset extends AbstractModel public function getModelDefinition(): array { return [ - 'url' => [ 'model' => null, 'array' => false ], - 'labels' => [ 'model' => null, 'array' => true ], - 'status' => [ 'model' => null, 'array' => false ], - 'subStatus' => [ 'model' => null, 'array' => false ], - 'subStatusDescription' => [ 'model' => null, 'array' => false ], + 'url' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'labels' => [ 'model' => null, 'enum' => null, 'array' => true ], + 'status' => [ 'model' => null, 'enum' => Enum\UploadReportAssetStatus::class, 'array' => false ], + 'subStatus' => [ 'model' => null, 'enum' => Enum\UploadReportAssetSubStatus::class, 'array' => false ], + 'subStatusDescription' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } @@ -34,12 +36,12 @@ public function getModelDefinition(): array public $labels = []; /** - * @var string The processing state of the submitted asset. + * @var Enum\UploadReportAssetStatus The processing state of the submitted asset. */ public $status; /** - * @var string The reason code explaining why the value was rejected. + * @var Enum\UploadReportAssetSubStatus The reason code explaining why the value was rejected. */ public $subStatus; diff --git a/src/Model/UploadReportAttribute.php b/src/Model/UploadReportAttribute.php index 30b9e3a..a5d1951 100644 --- a/src/Model/UploadReportAttribute.php +++ b/src/Model/UploadReportAttribute.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UploadReportAttribute extends AbstractModel { @@ -15,11 +17,11 @@ class UploadReportAttribute extends AbstractModel public function getModelDefinition(): array { return [ - 'id' => [ 'model' => null, 'array' => false ], - 'values' => [ 'model' => UploadReportValue::class, 'array' => true ], - 'status' => [ 'model' => null, 'array' => false ], - 'subStatus' => [ 'model' => null, 'array' => false ], - 'subStatusDescription' => [ 'model' => null, 'array' => false ], + 'id' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'values' => [ 'model' => UploadReportValue::class, 'enum' => null, 'array' => true ], + 'status' => [ 'model' => null, 'enum' => Enum\UploadReportAttributeStatus::class, 'array' => false ], + 'subStatus' => [ 'model' => null, 'enum' => Enum\UploadReportAttributeSubStatus::class, 'array' => false ], + 'subStatusDescription' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } @@ -34,12 +36,12 @@ public function getModelDefinition(): array public $values = []; /** - * @var string The processing state of the submitted attribute. + * @var Enum\UploadReportAttributeStatus The processing state of the submitted attribute. */ public $status; /** - * @var string The reason code explaining why the value was rejected. + * @var Enum\UploadReportAttributeSubStatus The reason code explaining why the value was rejected. */ public $subStatus; diff --git a/src/Model/UploadReportResponse.php b/src/Model/UploadReportResponse.php index 22a2e3a..b695cbf 100644 --- a/src/Model/UploadReportResponse.php +++ b/src/Model/UploadReportResponse.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UploadReportResponse extends AbstractModel { @@ -15,11 +17,11 @@ class UploadReportResponse extends AbstractModel public function getModelDefinition(): array { return [ - 'uploadId' => [ 'model' => null, 'array' => false ], - 'language' => [ 'model' => null, 'array' => false ], - 'status' => [ 'model' => null, 'array' => false ], - 'attributes' => [ 'model' => UploadReportAttribute::class, 'array' => true ], - 'assets' => [ 'model' => UploadReportAsset::class, 'array' => true ], + 'uploadId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'language' => [ 'model' => null, 'enum' => Enum\UploadReportResponseLanguage::class, 'array' => false ], + 'status' => [ 'model' => null, 'enum' => Enum\UploadReportResponseStatus::class, 'array' => false ], + 'attributes' => [ 'model' => UploadReportAttribute::class, 'enum' => null, 'array' => true ], + 'assets' => [ 'model' => UploadReportAsset::class, 'enum' => null, 'array' => true ], ]; } @@ -29,12 +31,12 @@ public function getModelDefinition(): array public $uploadId; /** - * @var string The language in which content is submitted. + * @var Enum\UploadReportResponseLanguage The language in which content is submitted. */ public $language; /** - * @var string The current status of the upload report. + * @var Enum\UploadReportResponseStatus The current status of the upload report. */ public $status; diff --git a/src/Model/UploadReportValue.php b/src/Model/UploadReportValue.php index baf334d..7d29da6 100644 --- a/src/Model/UploadReportValue.php +++ b/src/Model/UploadReportValue.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class UploadReportValue extends AbstractModel { @@ -15,8 +17,8 @@ class UploadReportValue extends AbstractModel public function getModelDefinition(): array { return [ - 'value' => [ 'model' => null, 'array' => false ], - 'unitId' => [ 'model' => null, 'array' => false ], + 'value' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unitId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Values.php b/src/Model/Values.php index e764f6b..6594693 100644 --- a/src/Model/Values.php +++ b/src/Model/Values.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Values extends AbstractModel { @@ -15,9 +17,9 @@ class Values extends AbstractModel public function getModelDefinition(): array { return [ - 'value' => [ 'model' => null, 'array' => false ], - 'unitId' => [ 'model' => null, 'array' => false ], - 'valueId' => [ 'model' => null, 'array' => false ], + 'value' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'unitId' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'valueId' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/Model/Violation.php b/src/Model/Violation.php index 33e2985..fa1d63b 100644 --- a/src/Model/Violation.php +++ b/src/Model/Violation.php @@ -2,6 +2,8 @@ namespace Picqer\BolRetailerV10\Model; +use Picqer\BolRetailerV10\Enum; + // This class is auto generated by OpenApi\ModelGenerator class Violation extends AbstractModel { @@ -15,8 +17,8 @@ class Violation extends AbstractModel public function getModelDefinition(): array { return [ - 'name' => [ 'model' => null, 'array' => false ], - 'reason' => [ 'model' => null, 'array' => false ], + 'name' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'reason' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } diff --git a/src/OpenApi/ClientGenerator.php b/src/OpenApi/ClientGenerator.php index ec5a840..f9fb676 100644 --- a/src/OpenApi/ClientGenerator.php +++ b/src/OpenApi/ClientGenerator.php @@ -12,6 +12,13 @@ class ClientGenerator 'postInbound' => 'createInbound' ]; + protected static $overrideEnumNames = [ + '>=' => 'GTE', + '<=' => 'LTE', + '>' => 'GT', + '<' => 'LT', + ]; + protected static $paramTypeMapping = [ 'array' => 'array', 'string' => 'string', @@ -56,8 +63,6 @@ public function generateClient() $code[] = '}'; $code[] = ''; - //echo implode("\n", $code); - file_put_contents(__DIR__ . '/../Client.php', implode("\n", $code)); } @@ -150,7 +155,6 @@ protected function generateMethod(string $path, string $httpMethod, array &$code $code[] = ' }'; echo "ok\n"; - //print_r($methodDefinition); } protected function getType(string $ref): string @@ -256,6 +260,12 @@ protected function extractArguments(array $methodDefinition): array if ($parameter['in'] == 'query' && isset($parameter['schema']['$ref'])) { continue; + } elseif ($parameter['in'] == 'query' && isset($parameter['schema']['enum'])) { + $wrappingType = ucfirst($this->kebabCaseToCamelCase($methodDefinition['operationId'] .'-'. $parameter['name'])); + $argument['php'] = 'Enum\\'.$wrappingType; + $argument['doc'] = $argument['php']; + $argument['name'] = $this->kebabCaseToCamelCase($parameter['name']); + $argument['paramName'] = $parameter['name']; } else { $argument['php'] = static::$paramTypeMapping[$parameter['schema']['type']]; $argument['doc'] = $argument['php']; @@ -272,7 +282,6 @@ protected function extractArguments(array $methodDefinition): array } } - // body arguments are always required, even though specs claim not if (! $argument['required'] && $argument['in'] != 'body') { if ($argument['php'] == 'array') { @@ -538,6 +547,20 @@ protected function getReturnType(array $responses): array } } + protected function getEnumName(string $name): string + { + $name = preg_replace('/[\-\s\/]+/', '_', $name); + + if (isset(static::$overrideEnumNames[$name])) { + $name = static::$overrideEnumNames[$name]; + } + + // We add the first `_` for enums starting with a integer character + $prefix = is_numeric($name[0]) ? '_' : ''; + + return $prefix.strtoupper($name); + } + protected function wrapComment(string $comment, string $linePrefix, int $maxLength = 120): string { $wordWrapped = wordwrap(strip_tags($comment), $maxLength - strlen($linePrefix)); diff --git a/src/OpenApi/ModelGenerator.php b/src/OpenApi/ModelGenerator.php index 1f47472..c7c7dca 100644 --- a/src/OpenApi/ModelGenerator.php +++ b/src/OpenApi/ModelGenerator.php @@ -14,6 +14,13 @@ class ModelGenerator 'number' => 'float' ]; + protected static $overrideEnumNames = [ + '>=' => 'GTE', + '<=' => 'LTE', + '>' => 'GT', + '<' => 'LT', + ]; + protected $specs; public function __construct() @@ -30,6 +37,7 @@ public static function run() { $generator = new static; $generator->generateModels(); + $generator->generateEnums(); } public function generateModels(): void @@ -39,6 +47,39 @@ public function generateModels(): void } } + public function generateEnums(): void + { + foreach ($this->specs['paths'] as $path => $methodsDef) { + foreach ($methodsDef as $method => $methodDef) { + foreach ($methodDef['parameters'] ?? [] as $parameterDef) { + if (!isset($parameterDef['schema']['enum']) || !array_values(array_filter($parameterDef['schema']['enum']))) { + continue; + } + + $this->generateEnum( + ucfirst($this->kebabCaseToCamelCase($methodDef['operationId'] .'-'. $parameterDef['name'])), + static::$propTypeMapping[$parameterDef['schema']['type']], + $parameterDef['schema']['enum'] + ); + } + } + } + + foreach ($this->specs['components']['schemas'] as $type => $modelSchema) { + foreach ($modelSchema['properties'] as $property => $propertyDef) { + if (!isset($propertyDef['enum']) || !array_values(array_filter($propertyDef['enum']))) { + continue; + } + + $this->generateEnum( + ucfirst($this->kebabCaseToCamelCase($type .'-'. $property)), + static::$propTypeMapping[$propertyDef['type']], + $propertyDef['enum'] + ); + } + } + } + public function generateModel($type): void { $modelSchema = $this->specs['components']['schemas'][$type]; @@ -51,12 +92,13 @@ public function generateModel($type): void $code[] = ''; $code[] = sprintf('namespace %s;', $this->getModelNamespace()); $code[] = ''; + $code[] = sprintf('use %s;', $this->getEnumNamespace()); + $code[] = ''; $code[] = '// This class is auto generated by OpenApi\ModelGenerator'; $code[] = sprintf('class %s extends AbstractModel', $type); $code[] = '{'; - // TODO Add enums - $this->generateSchema($modelSchema, $code); - $this->generateFields($modelSchema, $code); + $this->generateSchema($type, $modelSchema, $code); + $this->generateFields($type, $modelSchema, $code); $this->generateDateTimeGetters($modelSchema, $code); $this->generateMonoFieldAccessors($modelSchema, $code); $code[] = '}'; @@ -67,7 +109,28 @@ public function generateModel($type): void echo "ok\n"; } - protected function generateSchema(array $modelSchema, array &$code): void + public function generateEnum($name, $type, $values): void + { + echo $name . "..."; + + $code = []; + $code[] = 'getEnumNamespace()); + $code[] = ''; + $code[] = '// This class is auto generated by OpenApi\ModelGenerator'; + $code[] = sprintf('enum %s: %s', $name, $type); + $code[] = '{'; + $this->generateEnumFields($values, $code); + $code[] = '}'; + $code[] = ''; + + file_put_contents(__DIR__ . '/../Enum/' . $name . '.php', implode("\n", $code)); + + echo "ok\n"; + } + + protected function generateSchema(string $type, array $modelSchema, array &$code): void { $code[] = ' /**'; $code[] = ' * Returns the definition of the model: an associative array with field names as key and'; @@ -82,9 +145,10 @@ protected function generateSchema(array $modelSchema, array &$code): void foreach ($modelSchema['properties'] as $name => $propDefinition) { $model = 'null'; + $enum = 'null'; $array = 'false'; - if (isset($propDefinition['type'])) { + if (isset($propDefinition['type']) && !isset($propDefinition['enum'])) { if ($propDefinition['type'] == 'array') { $array = 'true'; if (isset($propDefinition['items']['$ref'])) { @@ -93,28 +157,32 @@ protected function generateSchema(array $modelSchema, array &$code): void } } elseif (isset($propDefinition['$ref'])) { $model = $this->getType($propDefinition['$ref']) . '::class'; + } elseif (isset($propDefinition['enum'])) { + $enum = 'Enum\\' . ucfirst($this->kebabCaseToCamelCase($type .'-'. $name)) . '::class'; } else { // TODO create exception class for this one throw new \Exception('Unknown property definition'); } - $code[] = sprintf(' \'%s\' => [ \'model\' => %s, \'array\' => %s ],', $this->kebabCaseToCamelCase($name), $model, $array); + $code[] = sprintf(' \'%s\' => [ \'model\' => %s, \'enum\' => %s, \'array\' => %s ],', $this->kebabCaseToCamelCase($name), $model, $enum, $array); } $code[] = ' ];'; $code[] = ' }'; } - protected function generateFields(array $modelSchema, array &$code): void + protected function generateFields(string $type, array $modelSchema, array &$code): void { foreach ($modelSchema['properties'] as $name => $propDefinition) { - if (isset($propDefinition['type'])) { + if (isset($propDefinition['type']) && !isset($propDefinition['enum'])) { $propType = static::$propTypeMapping[$propDefinition['type']]; if ($propType == 'array' && isset($propDefinition['items']['$ref'])) { $propType = $this->getType($propDefinition['items']['$ref']) . '[]'; } } elseif (isset($propDefinition['$ref'])) { $propType = $this->getType($propDefinition['$ref']); + } elseif (isset($propDefinition['enum'])) { + $propType = 'Enum\\' . ucfirst($this->kebabCaseToCamelCase($type .'-'. $name)); } else { // TODO create exception class for this one throw new \Exception('Unknown property definition'); @@ -139,6 +207,13 @@ protected function generateFields(array $modelSchema, array &$code): void } } + protected function generateEnumFields(array $values, array &$code): void + { + foreach ($values as $value) { + $code[] = sprintf(' case %s = \'%s\';', $this->getEnumName($value), $value); + } + } + protected function generateDateTimeGetters(array $modelSchema, array &$code): void { foreach ($modelSchema['properties'] as $name => $propDefinition) { @@ -272,6 +347,12 @@ protected function getModelNamespace(): string return $namespace . '\Model'; } + protected function getEnumNamespace(): string + { + $namespace = substr(__NAMESPACE__, 0, strrpos(__NAMESPACE__, '\\')); + return $namespace . '\Enum'; + } + protected function getFieldsWithMonoFieldModelType(array $modelSchema): array { $fields = []; @@ -330,6 +411,20 @@ protected function kebabCaseToCamelCase(string $name): string return implode('', $nameElems); } + protected function getEnumName(string $name): string + { + $name = preg_replace('/[\-\s\/]+/', '_', $name); + + if (isset(static::$overrideEnumNames[$name])) { + $name = static::$overrideEnumNames[$name]; + } + + // We add the first `_` for enums starting with a integer character + $prefix = is_numeric($name[0]) ? '_' : ''; + + return $prefix.strtoupper($name); + } + protected function wrapComment(string $comment, string $linePrefix, int $maxLength = 120): string { $wordWrapped = wordwrap(strip_tags($comment), $maxLength - strlen($linePrefix)); diff --git a/tests/BaseClientTest.php b/tests/BaseClientTest.php index 5e6f9a1..d97327c 100644 --- a/tests/BaseClientTest.php +++ b/tests/BaseClientTest.php @@ -46,7 +46,7 @@ public function setup(): void public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -665,8 +665,8 @@ public function testRequestJsonEncodesBodyModelWithoutNullValuesIntoBody() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ], - 'foo2' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'foo2' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; diff --git a/tests/Enum/GeneratedEnumsTest.php b/tests/Enum/GeneratedEnumsTest.php new file mode 100644 index 0000000..6070bc8 --- /dev/null +++ b/tests/Enum/GeneratedEnumsTest.php @@ -0,0 +1,32 @@ +assertIsArray($cases); + $this->assertNotNull($cases); + $this->assertInstanceOf(\UnitEnum::class, $cases[0]); + } +} diff --git a/tests/Model/AbstractModelTest.php b/tests/Model/AbstractModelTest.php index 586dcd4..d4174c5 100644 --- a/tests/Model/AbstractModelTest.php +++ b/tests/Model/AbstractModelTest.php @@ -15,7 +15,7 @@ public function testScalarIsSetFromArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -47,7 +47,7 @@ public function testValidAbsentFieldIsUntouchedInModelFromArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => true ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => true ] ]; } }; @@ -65,7 +65,7 @@ public function testRelatedModelIsCreatedFromArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -85,7 +85,7 @@ public function __construct($relationStubClass = null) public function getModelDefinition(): array { return [ - 'relation' => [ 'model' => $this->relationStubClass, 'array' => false ] + 'relation' => [ 'model' => $this->relationStubClass, 'enum' => null, 'array' => false ] ]; } }; @@ -122,7 +122,7 @@ public function testRelatedModelArrayIsCreatedFromArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -142,7 +142,7 @@ public function __construct($relationStubClass = null) public function getModelDefinition(): array { return [ - 'relations' => [ 'model' => $this->relationStubClass, 'array' => true ] + 'relations' => [ 'model' => $this->relationStubClass, 'enum' => null, 'array' => true ] ]; } }; @@ -167,7 +167,7 @@ public function testNonNullScalarFieldIsPresentInArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -185,7 +185,7 @@ public function testNullFieldIsOmittedFromArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -201,7 +201,7 @@ public function testNullFieldIsPresentInArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -217,7 +217,7 @@ public function testModelFieldIsPresentInArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -237,7 +237,7 @@ public function __construct($relationStubClass = null) public function getModelDefinition(): array { return [ - 'relation' => [ 'model' => $this->relationStubClass, 'array' => false ] + 'relation' => [ 'model' => $this->relationStubClass, 'enum' => null, 'array' => false ] ]; } }; @@ -256,7 +256,7 @@ public function testModelArrayFieldIsPresentInArray() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -276,7 +276,7 @@ public function __construct($relationStubClass = null) public function getModelDefinition(): array { return [ - 'relations' => [ 'model' => $this->relationStubClass, 'array' => true ] + 'relations' => [ 'model' => $this->relationStubClass, 'enum' => null, 'array' => true ] ]; } }; @@ -300,7 +300,7 @@ public function testArrayIndicesAreSanitized() public function getModelDefinition(): array { return [ - 'foo' => [ 'model' => null, 'array' => false ] + 'foo' => [ 'model' => null, 'enum' => null, 'array' => false ] ]; } }; @@ -320,7 +320,7 @@ public function __construct($relationStubClass = null) public function getModelDefinition(): array { return [ - 'relations' => [ 'model' => $this->relationStubClass, 'array' => true ] + 'relations' => [ 'model' => $this->relationStubClass, 'enum' => null, 'array' => true ] ]; } };