Skip to content

Commit

Permalink
Merge pull request #58 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude authored Nov 22, 2021
2 parents 753a33c + 1592091 commit b73b974
Show file tree
Hide file tree
Showing 196 changed files with 8,485 additions and 545 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public function getCount();

/**
* <p>Total number of results matching the query.
* This number is an estimation that is not <a href="/general-concepts#strong-consistency">strongly consistent</a>.
* This number is an estimation that is not <a href="/../api/general-concepts#strong-consistency">strongly consistent</a>.
* This field is returned by default.
* For improved performance, calculating this field can be deactivated by using the query parameter <code>withTotal=false</code>.
* When the results are filtered with a <a href="/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/contract#queries">limit</a>.</p>
* When the results are filtered with a <a href="/../api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/../api/limits#queries">limit</a>.</p>
*
* @return null|int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public function getCount()

/**
* <p>Total number of results matching the query.
* This number is an estimation that is not <a href="/general-concepts#strong-consistency">strongly consistent</a>.
* This number is an estimation that is not <a href="/../api/general-concepts#strong-consistency">strongly consistent</a>.
* This field is returned by default.
* For improved performance, calculating this field can be deactivated by using the query parameter <code>withTotal=false</code>.
* When the results are filtered with a <a href="/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/contract#queries">limit</a>.</p>
* When the results are filtered with a <a href="/../api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/../api/limits#queries">limit</a>.</p>
*
* @return null|int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ public function getCount()

/**
* <p>Total number of results matching the query.
* This number is an estimation that is not <a href="/general-concepts#strong-consistency">strongly consistent</a>.
* This number is an estimation that is not <a href="/../api/general-concepts#strong-consistency">strongly consistent</a>.
* This field is returned by default.
* For improved performance, calculating this field can be deactivated by using the query parameter <code>withTotal=false</code>.
* When the results are filtered with a <a href="/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/contract#queries">limit</a>.</p>
* When the results are filtered with a <a href="/../api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/../api/limits#queries">limit</a>.</p>
*
* @return null|int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ public function getQuantity();
public function getSlug();

/**
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:TaxCategory">TaxCategory</a>.</p>
*
* @return null|TaxCategoryResourceIdentifier
*/
public function getTaxCategory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public function getSlug()
}

/**
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:TaxCategory">TaxCategory</a>.</p>
*
* @return null|TaxCategoryResourceIdentifier
*/
public function getTaxCategory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ public function getSlug()
}

/**
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:TaxCategory">TaxCategory</a>.</p>
*
* @return null|TaxCategoryResourceIdentifier
*/
public function getTaxCategory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ public function getShippingMethodName();
public function getShippingRate();

/**
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:TaxCategory">TaxCategory</a>.</p>
*
* @return null|TaxCategoryResourceIdentifier
*/
public function getTaxCategory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public function getShippingRate()
}

/**
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:TaxCategory">TaxCategory</a>.</p>
*
* @return null|TaxCategoryResourceIdentifier
*/
public function getTaxCategory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public function getShippingRate()
}

/**
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:TaxCategory">TaxCategory</a>.</p>
*
* @return null|TaxCategoryResourceIdentifier
*/
public function getTaxCategory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface CartSetCustomerGroupAction extends CartUpdateAction
public const FIELD_CUSTOMER_GROUP = 'customerGroup';

/**
* <p><a href="/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
*
* @return null|CustomerGroupResourceIdentifier
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class CartSetCustomerGroupActionBuilder implements Builder
private $customerGroup;

/**
* <p><a href="/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
*
* @return null|CustomerGroupResourceIdentifier
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getAction()
}

/**
* <p><a href="/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
*
* @return null|CustomerGroupResourceIdentifier
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function getKey();
public function getDescription();

/**
* @return null|CartDiscountValueDraft
* @return null|CartDiscountValue
*/
public function getValue();

Expand Down Expand Up @@ -213,9 +213,9 @@ public function setKey(?string $key): void;
public function setDescription(?LocalizedString $description): void;

/**
* @param ?CartDiscountValueDraft $value
* @param ?CartDiscountValue $value
*/
public function setValue(?CartDiscountValueDraft $value): void;
public function setValue(?CartDiscountValue $value): void;

/**
* @param ?string $cartPredicate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ final class CartDiscountBuilder implements Builder
private $description;

/**
* @var null|CartDiscountValueDraft|CartDiscountValueDraftBuilder
* @var null|CartDiscountValue|CartDiscountValueBuilder
*/
private $value;

Expand Down Expand Up @@ -216,11 +216,11 @@ public function getDescription()
}

/**
* @return null|CartDiscountValueDraft
* @return null|CartDiscountValue
*/
public function getValue()
{
return $this->value instanceof CartDiscountValueDraftBuilder ? $this->value->build() : $this->value;
return $this->value instanceof CartDiscountValueBuilder ? $this->value->build() : $this->value;
}

/**
Expand Down Expand Up @@ -422,10 +422,10 @@ public function withDescription(?LocalizedString $description)
}

/**
* @param ?CartDiscountValueDraft $value
* @param ?CartDiscountValue $value
* @return $this
*/
public function withValue(?CartDiscountValueDraft $value)
public function withValue(?CartDiscountValue $value)
{
$this->value = $value;

Expand Down Expand Up @@ -590,7 +590,7 @@ public function withDescriptionBuilder(?LocalizedStringBuilder $description)
* @deprecated use withValue() instead
* @return $this
*/
public function withValueBuilder(?CartDiscountValueDraftBuilder $value)
public function withValueBuilder(?CartDiscountValueBuilder $value)
{
$this->value = $value;

Expand Down Expand Up @@ -631,7 +631,7 @@ public function build(): CartDiscount
$this->name instanceof LocalizedStringBuilder ? $this->name->build() : $this->name,
$this->key,
$this->description instanceof LocalizedStringBuilder ? $this->description->build() : $this->description,
$this->value instanceof CartDiscountValueDraftBuilder ? $this->value->build() : $this->value,
$this->value instanceof CartDiscountValueBuilder ? $this->value->build() : $this->value,
$this->cartPredicate,
$this->target instanceof CartDiscountTargetBuilder ? $this->target->build() : $this->target,
$this->sortOrder,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ final class CartDiscountModel extends JsonObjectModel implements CartDiscount
protected $description;

/**
* @var ?CartDiscountValueDraft
* @var ?CartDiscountValue
*/
protected $value;

Expand Down Expand Up @@ -145,7 +145,7 @@ public function __construct(
?LocalizedString $name = null,
?string $key = null,
?LocalizedString $description = null,
?CartDiscountValueDraft $value = null,
?CartDiscountValue $value = null,
?string $cartPredicate = null,
?CartDiscountTarget $target = null,
?string $sortOrder = null,
Expand Down Expand Up @@ -356,7 +356,7 @@ public function getDescription()
}

/**
* @return null|CartDiscountValueDraft
* @return null|CartDiscountValue
*/
public function getValue()
{
Expand All @@ -367,7 +367,7 @@ public function getValue()
return null;
}

$this->value = CartDiscountValueDraftModel::of($data);
$this->value = CartDiscountValueModel::of($data);
}

return $this->value;
Expand Down Expand Up @@ -646,9 +646,9 @@ public function setDescription(?LocalizedString $description): void
}

/**
* @param ?CartDiscountValueDraft $value
* @param ?CartDiscountValue $value
*/
public function setValue(?CartDiscountValueDraft $value): void
public function setValue(?CartDiscountValue $value): void
{
$this->value = $value;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/commercetools-api/src/Models/Common/PriceDraft.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getValue();
public function getCountry();

/**
* <p><a href="/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
*
* @return null|CustomerGroupResourceIdentifier
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function getCountry()
}

/**
* <p><a href="/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
*
* @return null|CustomerGroupResourceIdentifier
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function getCountry()
}

/**
* <p><a href="/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
* <p><a href="/../api/types#resourceidentifier">ResourceIdentifier</a> to a <a href="ctp:api:type:CustomerGroup">CustomerGroup</a>.</p>
*
* @return null|CustomerGroupResourceIdentifier
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ public function getCreatedAt();
public function getLastModifiedAt();

/**
* <p>Present on resources updated after 1 February 2019 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
* <p>Present on resources updated after 1 February 2019 except for <a href="/../api/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy();

/**
* <p>Present on resources created after 1 February 2019 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
* <p>Present on resources created after 1 February 2019 except for <a href="/../api/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources updated after 1 February 2019 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
* <p>Present on resources updated after 1 February 2019 except for <a href="/../api/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -125,7 +125,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1 February 2019 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
* <p>Present on resources created after 1 February 2019 except for <a href="/../api/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources updated after 1 February 2019 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
* <p>Present on resources updated after 1 February 2019 except for <a href="/../api/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -204,7 +204,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1 February 2019 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
* <p>Present on resources created after 1 February 2019 except for <a href="/../api/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public function getCount();

/**
* <p>Total number of results matching the query.
* This number is an estimation that is not <a href="/general-concepts#strong-consistency">strongly consistent</a>.
* This number is an estimation that is not <a href="/../api/general-concepts#strong-consistency">strongly consistent</a>.
* This field is returned by default.
* For improved performance, calculating this field can be deactivated by using the query parameter <code>withTotal=false</code>.
* When the results are filtered with a <a href="/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/contract#queries">limit</a>.</p>
* When the results are filtered with a <a href="/../api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/../api/limits#queries">limit</a>.</p>
*
* @return null|int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ public function getCount()

/**
* <p>Total number of results matching the query.
* This number is an estimation that is not <a href="/general-concepts#strong-consistency">strongly consistent</a>.
* This number is an estimation that is not <a href="/../api/general-concepts#strong-consistency">strongly consistent</a>.
* This field is returned by default.
* For improved performance, calculating this field can be deactivated by using the query parameter <code>withTotal=false</code>.
* When the results are filtered with a <a href="/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/contract#queries">limit</a>.</p>
* When the results are filtered with a <a href="/../api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/../api/limits#queries">limit</a>.</p>
*
* @return null|int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ public function getCount()

/**
* <p>Total number of results matching the query.
* This number is an estimation that is not <a href="/general-concepts#strong-consistency">strongly consistent</a>.
* This number is an estimation that is not <a href="/../api/general-concepts#strong-consistency">strongly consistent</a>.
* This field is returned by default.
* For improved performance, calculating this field can be deactivated by using the query parameter <code>withTotal=false</code>.
* When the results are filtered with a <a href="/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/contract#queries">limit</a>.</p>
* When the results are filtered with a <a href="/../api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/../api/limits#queries">limit</a>.</p>
*
* @return null|int
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface CustomerGroupReference extends Reference
public const FIELD_OBJ = 'obj';

/**
* <p>Contains the representation of the expanded Customer Group. Only present in responses to requests with <a href="/general-concepts#reference-expansion">Reference Expansion</a> for Customer Groups.</p>
* <p>Contains the representation of the expanded Customer Group. Only present in responses to requests with <a href="/../api/general-concepts#reference-expansion">Reference Expansion</a> for Customer Groups.</p>
*
* @return null|CustomerGroup
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getId()
}

/**
* <p>Contains the representation of the expanded Customer Group. Only present in responses to requests with <a href="/general-concepts#reference-expansion">Reference Expansion</a> for Customer Groups.</p>
* <p>Contains the representation of the expanded Customer Group. Only present in responses to requests with <a href="/../api/general-concepts#reference-expansion">Reference Expansion</a> for Customer Groups.</p>
*
* @return null|CustomerGroup
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function getId()
}

/**
* <p>Contains the representation of the expanded Customer Group. Only present in responses to requests with <a href="/general-concepts#reference-expansion">Reference Expansion</a> for Customer Groups.</p>
* <p>Contains the representation of the expanded Customer Group. Only present in responses to requests with <a href="/../api/general-concepts#reference-expansion">Reference Expansion</a> for Customer Groups.</p>
*
* @return null|CustomerGroup
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getCreatedBy();
public function getSku();

/**
* <p>Optional connection to a particular supplier.</p>
* <p>Connection to a particular supplier.</p>
*
* @return null|ChannelReference
*/
Expand Down
Loading

0 comments on commit b73b974

Please sign in to comment.