Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Dec 21, 2023
1 parent f8a54ca commit 316d1ca
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 132 deletions.
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
</details>


<details>
<summary>Removed Type(s)</summary>

- :warning: removed type `NotEnabledError`
- :warning: removed type `GraphQLNotEnabledError`
</details>


<details>
<summary>Added Method(s)</summary>

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ namespace commercetools.Sdk.Api.Models.Errors
[SubTypeDiscriminator("MissingTaxRateForCountry", typeof(commercetools.Sdk.Api.Models.Errors.MissingTaxRateForCountryError))]
[SubTypeDiscriminator("MoneyOverflow", typeof(commercetools.Sdk.Api.Models.Errors.MoneyOverflowError))]
[SubTypeDiscriminator("NoMatchingProductDiscountFound", typeof(commercetools.Sdk.Api.Models.Errors.NoMatchingProductDiscountFoundError))]
[SubTypeDiscriminator("NotEnabled", typeof(commercetools.Sdk.Api.Models.Errors.NotEnabledError))]
[SubTypeDiscriminator("ObjectNotFound", typeof(commercetools.Sdk.Api.Models.Errors.ObjectNotFoundError))]
[SubTypeDiscriminator("OutOfStock", typeof(commercetools.Sdk.Api.Models.Errors.OutOfStockError))]
[SubTypeDiscriminator("OverCapacity", typeof(commercetools.Sdk.Api.Models.Errors.OverCapacityError))]
Expand Down Expand Up @@ -394,12 +393,6 @@ static commercetools.Sdk.Api.Models.Errors.NoMatchingProductDiscountFoundError N
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.NotEnabledError NotEnabled(Action<commercetools.Sdk.Api.Models.Errors.NotEnabledError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.NotEnabledError();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.ObjectNotFoundError ObjectNotFound(Action<commercetools.Sdk.Api.Models.Errors.ObjectNotFoundError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.ObjectNotFoundError();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ namespace commercetools.Sdk.Api.Models.Errors
[SubTypeDiscriminator("MissingTaxRateForCountry", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLMissingTaxRateForCountryError))]
[SubTypeDiscriminator("MoneyOverflow", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLMoneyOverflowError))]
[SubTypeDiscriminator("NoMatchingProductDiscountFound", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLNoMatchingProductDiscountFoundError))]
[SubTypeDiscriminator("NotEnabled", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLNotEnabledError))]
[SubTypeDiscriminator("ObjectNotFound", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLObjectNotFoundError))]
[SubTypeDiscriminator("OutOfStock", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLOutOfStockError))]
[SubTypeDiscriminator("OverCapacity", typeof(commercetools.Sdk.Api.Models.Errors.GraphQLOverCapacityError))]
Expand Down Expand Up @@ -392,12 +391,6 @@ static commercetools.Sdk.Api.Models.Errors.GraphQLNoMatchingProductDiscountFound
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.GraphQLNotEnabledError NotEnabled(Action<commercetools.Sdk.Api.Models.Errors.GraphQLNotEnabledError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.GraphQLNotEnabledError();
init?.Invoke(t);
return t;
}
static commercetools.Sdk.Api.Models.Errors.GraphQLObjectNotFoundError ObjectNotFound(Action<commercetools.Sdk.Api.Models.Errors.GraphQLObjectNotFoundError> init = null)
{
var t = new commercetools.Sdk.Api.Models.Errors.GraphQLObjectNotFoundError();
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,6 @@ public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsNoMatchingProduct
return new CombinationQueryPredicate<ErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.NoMatchingProductDiscountFoundErrorQueryBuilderDsl.Of()),
ErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsNotEnabled(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.NotEnabledErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.NotEnabledErrorQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<ErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.NotEnabledErrorQueryBuilderDsl.Of()),
ErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<ErrorObjectQueryBuilderDsl> AsObjectNotFound(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.ObjectNotFoundErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.ObjectNotFoundErrorQueryBuilderDsl>> fn)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,6 @@ public CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl> AsNoMatching
return new CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLNoMatchingProductDiscountFoundErrorQueryBuilderDsl.Of()),
GraphQLErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl> AsNotEnabled(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLNotEnabledErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLNotEnabledErrorQueryBuilderDsl>> fn)
{
return new CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl>(fn.Invoke(commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLNotEnabledErrorQueryBuilderDsl.Of()),
GraphQLErrorObjectQueryBuilderDsl.Of);
}
public CombinationQueryPredicate<GraphQLErrorObjectQueryBuilderDsl> AsObjectNotFound(
Func<commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLObjectNotFoundErrorQueryBuilderDsl, CombinationQueryPredicate<commercetools.Sdk.Api.Predicates.Query.Errors.GraphQLObjectNotFoundErrorQueryBuilderDsl>> fn)
{
Expand Down

This file was deleted.

This file was deleted.

1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,4 @@ c633a41c164e2dbf2201dd9856c18d5336b0ac5d
70d15e13efcbf54dd231b1f2cfbec50da95de1a3
8f05884799f311b3f09307fb57c2846383c96371
de39b32f1f157ed82869e1c07c1963615d571f87
d29ffbb65f68b7dd7623956b7e6151454bea2fea

0 comments on commit 316d1ca

Please sign in to comment.