Skip to content

Commit

Permalink
chore: update models to PS_XSD_1.2.3_2023-06-06
Browse files Browse the repository at this point in the history
  • Loading branch information
roydejong committed Feb 6, 2024
1 parent 3a08467 commit b9c4fe5
Show file tree
Hide file tree
Showing 18 changed files with 99 additions and 13 deletions.
12 changes: 12 additions & 0 deletions .idea/codeception.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/php-test-framework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/phpspec.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/phpunit.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Models/Entities/Allergens.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Allergens PS-API type
* @generated 2022-02-07
* @generated 2024-02-06
**/
class Allergens extends AbstractEntity
{
Expand Down
17 changes: 17 additions & 0 deletions src/Models/Entities/Assetimageinfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace SoftwarePunt\PSAPI\Models\Entities;

use SoftwarePunt\PSAPI\Models\AbstractEntity;

/**
* Assetimageinfo PS-API type
* @generated 2024-02-06
**/
class Assetimageinfo extends AbstractEntity
{
public ?string $filename = null;
public ?int $pixelheight = null;
public ?int $pixelwidth = null;
public string $downloadurl;
}
6 changes: 5 additions & 1 deletion src/Models/Entities/Assetinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Assetinfo PS-API type
* @generated 2022-02-07
* @generated 2024-02-06
**/
class Assetinfo extends AbstractEntity
{
Expand Down Expand Up @@ -35,4 +35,8 @@ class Assetinfo extends AbstractEntity
public ?bool $isdefault = null;
public ?string $availableincultures = null;
public ?bool $isheroimage = null;
public ?int $maxpixelheight = null;
public ?int $maxpixelwidth = null;
public ?Assetimageinfo $highresolutionimage = null;
public ?Assetimageinfo $lowresolutionimage = null;
}
3 changes: 2 additions & 1 deletion src/Models/Entities/Brand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Brand PS-API type
* @generated 2021-07-14
* @generated 2024-02-06
**/
class Brand extends AbstractEntity
{
Expand All @@ -15,6 +15,7 @@ class Brand extends AbstractEntity
public ?string $thirdpartyid = null;
public ?int $brandownerid = null;
public ?string $brandownername = null;
public ?bool $isprivatelabel = null;
public ?string $brandownergln = null;
public ?string $description = null;
public ?string $image = null;
Expand Down
3 changes: 2 additions & 1 deletion src/Models/Entities/Globalproductclassification.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Globalproductclassification PS-API type
* @generated 2021-07-14
* @generated 2024-02-06
**/
class Globalproductclassification extends AbstractEntity
{
Expand All @@ -21,4 +21,5 @@ class Globalproductclassification extends AbstractEntity
public ?string $brickcode = null;
public ?string $brickdescription = null;
public bool $isnonfood;
public ?bool $isactive = null;
}
6 changes: 5 additions & 1 deletion src/Models/Entities/Nonhierarchicalproductgroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Nonhierarchicalproductgroup PS-API type
* @generated 2021-07-14
* @generated 2024-02-06
**/
class Nonhierarchicalproductgroup extends AbstractEntity
{
Expand All @@ -15,5 +15,9 @@ class Nonhierarchicalproductgroup extends AbstractEntity
public ?string $abbreviation = null;
public ?string $description = null;
public ?string $path = null;
/**
* This field will be ignored on updates. This fields value is determined by which productgroup is selected. If no productgroup is selected, the product will autmoatically be seen as a food product
*/
public ?bool $isnonfood = null;
public ?int $sequence = null;
}
4 changes: 3 additions & 1 deletion src/Models/Entities/Nutrient.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Nutrient PS-API type
* @generated 2021-07-14
* @generated 2024-02-06
**/
class Nutrient extends AbstractEntity
{
Expand All @@ -16,6 +16,8 @@ class Nutrient extends AbstractEntity
public ?string $measurementprecisionname = null;
public ?float $value = null;
public ?float $valueperserving = null;
public ?Decimal $decimalvalue = null;
public ?Decimal $decimalvalueperserving = null;
public ?float $guidelinedailyamount = null;
public ?int $unitofmeasureid = null;
public ?string $unitofmeasurename = null;
Expand Down
6 changes: 5 additions & 1 deletion src/Models/Entities/Nutrientinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Nutrientinfo PS-API type
* @generated 2021-07-14
* @generated 2024-02-06
**/
class Nutrientinfo extends AbstractEntity
{
Expand All @@ -18,5 +18,9 @@ class Nutrientinfo extends AbstractEntity
public ?float $servingunitvalue = null;
public ?int $servinguomid = null;
public ?string $servinguomname = null;
/**
* When set to true, this will attempt to automatically calculate the nutrients per potion values based on the per 100 and the portion size. Autmoatic calculation will only be done on nutrients that have no servingunitvalue
*/
public ?bool $autocalculatenutrientperportion = null;
public ?Nutrients $nutrients = null;
}
2 changes: 1 addition & 1 deletion src/Models/Entities/Nutrients.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Nutrients PS-API type
* @generated 2022-02-07
* @generated 2024-02-06
**/
class Nutrients extends AbstractEntity
{
Expand Down
6 changes: 5 additions & 1 deletion src/Models/Entities/Nutrienttype.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@

/**
* Nutrienttype PS-API type
* @generated 2021-07-14
* @generated 2024-02-06
**/
class Nutrienttype extends AbstractEntity
{
public int $id;
public int $parentid;
public ?string $code = null;
public ?float $gda = null;
public ?float $kjmultiplication = null;
public ?float $kcalmultiplication = null;
public ?string $abbreviation = null;
public string $name;
public ?string $description = null;
Expand Down
3 changes: 2 additions & 1 deletion src/Models/Entities/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Package PS-API type
* @generated 2021-07-14
* @generated 2024-02-06
**/
class Package extends AbstractEntity
{
Expand All @@ -32,6 +32,7 @@ class Package extends AbstractEntity
public ?bool $depositapplies = null;
public ?float $depositamount = null;
public ?bool $isprimarypackage = null;
public ?int $singleuseplasticcount = null;
public ?bool $ispackagerecyclable = null;
public ?float $percentagerecycledmaterialused = null;
public ?string $locationtraceabilitycode = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Entities/Productgroups.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Productgroups PS-API type
* @generated 2022-02-07
* @generated 2024-02-06
**/
class Productgroups extends AbstractEntity
{
Expand Down
3 changes: 2 additions & 1 deletion src/Models/Entities/Specificationinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* Specificationinfo PS-API type
* @generated 2022-02-07
* @generated 2024-02-06
**/
class Specificationinfo extends AbstractEntity
{
Expand All @@ -30,4 +30,5 @@ class Specificationinfo extends AbstractEntity
public ?float $percentagenuts = null;
public ?float $percentagemeat = null;
public ?float $percentagefish = null;
public ?float $percentageoils = null;
}
3 changes: 2 additions & 1 deletion src/Models/Entities/Storagecondition.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

/**
* Storagecondition PS-API type
* @generated 2021-07-14
* @generated 2024-02-06
**/
class Storagecondition extends AbstractEntity
{
public int $id;
public ?string $code = null;
public ?string $abbreviation = null;
public ?int $sequence = null;
public string $name;
public ?string $description = null;
}

0 comments on commit b9c4fe5

Please sign in to comment.