Skip to content

Commit

Permalink
Added spacing after $type properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
KSGRelewise committed Oct 10, 2024
1 parent 7ff67fc commit db7781f
Show file tree
Hide file tree
Showing 670 changed files with 671 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Generator/PhpTypeWriters/PhpClassWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,13 @@ public void Write(IndentedTextWriter writer, Type type, string typeName)
if (type.HasBaseTypeAndIsNotAbstract())
{
writer.WriteLine($"public string $typeDefinition = \"{type.FullName}, {type.Assembly.FullName!.Split(",")[0]}\";");
writer.WriteLine();
}
else if (type.IsAbstract)
{
// This is here so that it can be overriden by a concrete implementation in the JSON serialization.
writer.WriteLine($"public string $typeDefinition = \"\";");
writer.WriteLine();
}

if (IsReadonlyStruct(type))
Expand Down
1 change: 1 addition & 0 deletions src/Models/AbandonedCartTriggerConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class AbandonedCartTriggerConfiguration extends AbandonedCartTriggerResultTriggerConfiguration implements JsonSerializable
{
public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.AbandonedCartTriggerConfiguration, Relewise.Client";

public string $cartName;

public static function create(string $name, string $description, string $cartName = Null) : AbandonedCartTriggerConfiguration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ abstract class AbandonedCartTriggerResultTriggerConfiguration extends TriggerCon
{
public string $typeDefinition = "";


public static function hydrate(array $arr)
{
$type = $arr["\$type"];
Expand Down
1 change: 1 addition & 0 deletions src/Models/AbandonedContentSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class AbandonedContentSearch extends stringAbandonedSearch
{
public string $typeDefinition = "Relewise.Client.Responses.Triggers.Results.AbandonedContentSearch, Relewise.Client";

public static function create() : AbandonedContentSearch
{
$result = new AbandonedContentSearch();
Expand Down
1 change: 1 addition & 0 deletions src/Models/AbandonedProductCategorySearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class AbandonedProductCategorySearch extends stringAbandonedSearch
{
public string $typeDefinition = "Relewise.Client.Responses.Triggers.Results.AbandonedProductCategorySearch, Relewise.Client";

public static function create() : AbandonedProductCategorySearch
{
$result = new AbandonedProductCategorySearch();
Expand Down
1 change: 1 addition & 0 deletions src/Models/AbandonedProductSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class AbandonedProductSearch extends ProductAndVariantIdAbandonedSearch
{
public string $typeDefinition = "Relewise.Client.Responses.Triggers.Results.AbandonedProductSearch, Relewise.Client";

public static function create() : AbandonedProductSearch
{
$result = new AbandonedProductSearch();
Expand Down
1 change: 1 addition & 0 deletions src/Models/AbandonedSearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AbandonedSearch
{
public string $typeDefinition = "";

public string $loweredSearchTerm;

public int $hits;
Expand Down
1 change: 1 addition & 0 deletions src/Models/AbandonedSearchTriggerConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class AbandonedSearchTriggerConfiguration extends AbandonedSearchTriggerResultTriggerConfiguration implements JsonSerializable
{
public string $typeDefinition = "Relewise.Client.DataTypes.Triggers.Configurations.AbandonedSearchTriggerConfiguration, Relewise.Client";

public array $searchTypesInPrioritizedOrder;

public ?SearchTermCondition $searchTermCondition;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ abstract class AbandonedSearchTriggerResultTriggerConfiguration extends TriggerC
{
public string $typeDefinition = "";


public static function hydrate(array $arr)
{
$type = $arr["\$type"];
Expand Down
1 change: 1 addition & 0 deletions src/Models/Advertiser.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class Advertiser extends AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity
{
public string $typeDefinition = "Relewise.Client.DataTypes.RetailMedia.Advertiser, Relewise.Client";

public string $name;

/** Defines what kind of promotions an advertiser is allowed to create, and constraints to what may be promoted. Constraints could as an example be all products belonging to the brand(s) this Advertiser is associated with. If null or empty, an advertiser will not be allowed to make any promotions anywhere, only useful for Advertisers in draft. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AdvertiserAdvertiserEntityStateEntityResponse extends TimedResponse
{
public string $typeDefinition = "";

public array $entities;

public int $hits;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest extends LicensedRequest
{
public string $typeDefinition = "";

public ?AdvertisersRequestEntityFilters $filters;

public ?AdvertisersRequestSortBySorting $sorting;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntity extends RetailMediaEntity
{
public string $typeDefinition = "";

public AdvertiserEntityState $state;

/** Managed server side only, manually setting this will have no effect */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters
{
public string $typeDefinition = "";

public ?string $term;

public ?array $states;
Expand Down
1 change: 1 addition & 0 deletions src/Models/AdvertiserMetadataValues.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class AdvertiserMetadataValues extends MetadataValues implements JsonSerializable
{
public string $typeDefinition = "Relewise.Client.DataTypes.RetailMedia.Advertiser+MetadataValues, Relewise.Client";

public ?DateTime $inactivated;

public ?string $inactivatedBy;
Expand Down
1 change: 1 addition & 0 deletions src/Models/AdvertiserSaveEntitiesRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AdvertiserSaveEntitiesRequest extends LicensedRequest
{
public string $typeDefinition = "";

public array $entities;

public string $modifiedBy;
Expand Down
1 change: 1 addition & 0 deletions src/Models/AdvertiserSaveEntitiesResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AdvertiserSaveEntitiesResponse extends TimedResponse
{
public string $typeDefinition = "";

public array $entities;


Expand Down
1 change: 1 addition & 0 deletions src/Models/AdvertisersRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class AdvertisersRequest extends AdvertiserEntityStateAdvertiserMetadataValuesAdvertisersRequestSortByAdvertisersRequestEntityFiltersEntitiesRequest
{
public string $typeDefinition = "Relewise.Client.Requests.RetailMedia.AdvertisersRequest, Relewise.Client";

public static function create(?AdvertisersRequestEntityFilters $filters, ?AdvertisersRequestSortBySorting $sorting, int $skip, int $take) : AdvertisersRequest
{
$result = new AdvertisersRequest();
Expand Down
1 change: 1 addition & 0 deletions src/Models/AdvertisersRequestEntityFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class AdvertisersRequestEntityFilters extends AdvertiserEntityStateAdvertiserMetadataValuesRetailMediaEntityEntityFilters
{
public string $typeDefinition = "Relewise.Client.Requests.RetailMedia.AdvertisersRequest+EntityFilters, Relewise.Client";

public ?array $ids;

public static function create() : AdvertisersRequestEntityFilters
Expand Down
1 change: 1 addition & 0 deletions src/Models/AdvertisersResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class AdvertisersResponse extends AdvertiserAdvertiserEntityStateEntityResponse
{
public string $typeDefinition = "Relewise.Client.Responses.RetailMedia.AdvertisersResponse, Relewise.Client";

public static function create(int $hits, array $hitsPerState) : AdvertisersResponse
{
$result = new AdvertisersResponse();
Expand Down
1 change: 1 addition & 0 deletions src/Models/AnalyzerRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AnalyzerRequest extends LicensedRequest
{
public string $typeDefinition = "";

public ?Language $language;

public ?Currency $currency;
Expand Down
1 change: 1 addition & 0 deletions src/Models/AndCondition.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class AndCondition extends UserCondition
{
public string $typeDefinition = "Relewise.Client.DataTypes.UserConditions.AndCondition, Relewise.Client";

public UserConditionCollection $conditions;

public static function create(UserConditionCollection $conditions, bool $negated) : AndCondition
Expand Down
1 change: 1 addition & 0 deletions src/Models/AndFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class AndFilter extends Filter
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.AndFilter, Relewise.Client";

public array $filters;

public static function create(array $filters, bool $negated = false) : AndFilter
Expand Down
1 change: 1 addition & 0 deletions src/Models/ApplyFilterSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class ApplyFilterSettings extends FilterScopeSettings
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.Settings.ApplyFilterSettings, Relewise.Client";

public bool $apply;

public static function create(bool $apply) : ApplyFilterSettings
Expand Down
1 change: 1 addition & 0 deletions src/Models/AssortmentFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AssortmentFacet extends intValueFacet
{
public string $typeDefinition = "";

public AssortmentFilterType $assortmentFilterType;


Expand Down
1 change: 1 addition & 0 deletions src/Models/AssortmentFacetResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class AssortmentFacetResult extends intintValueFacetResult
{
public string $typeDefinition = "";

public AssortmentFilterType $assortmentFilterType;


Expand Down
1 change: 1 addition & 0 deletions src/Models/BatchedTrackingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BatchedTrackingRequest extends TrackingRequest
{
public string $typeDefinition = "Relewise.Client.Requests.Tracking.BatchedTrackingRequest, Relewise.Client";

public array $items;

public static function create(Trackable ... $items) : BatchedTrackingRequest
Expand Down
1 change: 1 addition & 0 deletions src/Models/BoostAndBuryRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class BoostAndBuryRule extends MerchandisingRule implements JsonSerializable
{
public string $typeDefinition = "Relewise.Client.DataTypes.Merchandising.Rules.BoostAndBuryRule, Relewise.Client";

public ValueSelector $multiplierSelector;

public static function create(string $name, string $description, ValueSelector $multiplierSelector) : BoostAndBuryRule
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandAdministrativeAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandAdministrativeAction extends Trackable
{
public string $typeDefinition = "Relewise.Client.DataTypes.BrandAdministrativeAction, Relewise.Client";

public FilterCollection $filters;

public ?Language $language;
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandAssortmentFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandAssortmentFilter extends Filter
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.BrandAssortmentFilter, Relewise.Client";

public array $assortments;

public static function create(bool $negated = false) : BrandAssortmentFilter
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandDataFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandDataFilter extends DataFilter
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.BrandDataFilter, Relewise.Client";

public static function create(string $key, bool $filterOutIfKeyIsNotFound = true, ?Language $language = Null, ?Currency $currency = Null) : BrandDataFilter
{
$result = new BrandDataFilter();
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandDataHasKeyFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandDataHasKeyFilter extends Filter
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.BrandDataHasKeyFilter, Relewise.Client";

public string $key;

public static function create(string $key, bool $negated = false) : BrandDataHasKeyFilter
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandDetailsCollectionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandDetailsCollectionResponse extends TimedResponse
{
public string $typeDefinition = "Relewise.Client.Responses.BrandDetailsCollectionResponse, Relewise.Client";

public array $brands;

public ?int $totalNumberOfResults;
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandDisabledFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandDisabledFilter extends Filter
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.BrandDisabledFilter, Relewise.Client";

public static function create(bool $negated = false) : BrandDisabledFilter
{
$result = new BrandDisabledFilter();
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandFacet.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandFacet extends stringValueFacet
{
public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Queries.BrandFacet, Relewise.Client";

public static function create(string ... $selectedIds) : BrandFacet
{
$result = new BrandFacet();
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandFacetResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandFacetResult extends stringBrandNameAndIdResultValueFacetResult
{
public string $typeDefinition = "Relewise.Client.DataTypes.Search.Facets.Result.BrandFacetResult, Relewise.Client";

public static function create(array $selected, BrandNameAndIdResultAvailableFacetValue ... $available) : BrandFacetResult
{
$result = new BrandFacetResult();
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandIdFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandIdFilter extends Filter
{
public string $typeDefinition = "Relewise.Client.Requests.Filters.BrandIdFilter, Relewise.Client";

public array $brandIds;

public static function create(bool $negated = false) : BrandIdFilter
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandIdRelevanceModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
class BrandIdRelevanceModifier extends RelevanceModifier
{
public string $typeDefinition = "Relewise.Client.Requests.RelevanceModifiers.BrandIdRelevanceModifier, Relewise.Client";

/** The Id of the Brand that this RelevanceModifier will distinguish on. */
public string $brandId;

Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandQuery extends LicensedRequest
{
public string $typeDefinition = "Relewise.Client.Requests.Queries.BrandQuery, Relewise.Client";

public FilterCollection $filters;

public int $numberOfResults;
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandRecommendationRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class BrandRecommendationRequest extends RecommendationRequest
{
public string $typeDefinition = "";

public BrandRecommendationRequestSettings $settings;


Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandRecommendationResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandRecommendationResponse extends RecommendationResponse
{
public string $typeDefinition = "Relewise.Client.Responses.BrandRecommendationResponse, Relewise.Client";

public array $recommendations;

public static function create(BrandResult ... $recommendations) : BrandRecommendationResponse
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandUpdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandUpdate extends Trackable
{
public string $typeDefinition = "Relewise.Client.DataTypes.BrandUpdate, Relewise.Client";

public Brand $brand;

public BrandUpdateUpdateKind $kind;
Expand Down
1 change: 1 addition & 0 deletions src/Models/BrandView.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class BrandView extends Trackable
{
public string $typeDefinition = "Relewise.Client.DataTypes.BrandView, Relewise.Client";

public ?User $user;

public Brand $brand;
Expand Down
1 change: 1 addition & 0 deletions src/Models/Budget.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
abstract class Budget
{
public string $typeDefinition = "";

public ?float $maxTotalCost;

public float $totalCost;
Expand Down
1 change: 1 addition & 0 deletions src/Models/CPMBudget.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class CPMBudget extends Budget
{
public string $typeDefinition = "Relewise.Client.DataTypes.RetailMedia.CPMBudget, Relewise.Client";

public float $costPerMille;

public static function create(float $costPerMille, ?float $maxTotalCost) : CPMBudget
Expand Down
1 change: 1 addition & 0 deletions src/Models/Campaign.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class Campaign extends CampaignEntityStateCampaignMetadataValuesRetailMediaEntity
{
public string $typeDefinition = "Relewise.Client.DataTypes.RetailMedia.Campaign, Relewise.Client";

public string $name;

public ?ISchedule $schedule;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class CampaignAnalyticsProductAnalyticsPeriodMetrics implements JsonSerializable
{
public string $typeDefinition = "Relewise.Client.DataTypes.RetailMedia.CampaignAnalytics+ProductAnalytics+PeriodMetrics, Relewise.Client";

public DateTime $periodFromUtc;

public int $views;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class CampaignAnalyticsProductAnalyticsPeriodMetricsCurrencyMetrics
{
public string $typeDefinition = "Relewise.Client.DataTypes.RetailMedia.CampaignAnalytics+ProductAnalytics+PeriodMetrics+CurrencyMetrics, Relewise.Client";

public string $currency;

public float $revenue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
class CampaignAnalyticsProductAnalyticsPromotedProductMetrics
{
public string $typeDefinition = "Relewise.Client.DataTypes.RetailMedia.CampaignAnalytics+ProductAnalytics+PromotedProductMetrics, Relewise.Client";

public string $productId;

public int $promotions;
Expand Down
Loading

0 comments on commit db7781f

Please sign in to comment.