Skip to content

Commit

Permalink
Merge pull request #380 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
kodiakhq[bot] authored Nov 18, 2024
2 parents aa3406d + 4fef0ef commit 66f4e29
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static IEnumerable<object[]> GetData()
ApiRoot
.WithProjectKeyValue("test_projectKey")
.Get()
.WithSource("source")
.WithSource(commercetools.Sdk.HistoryApi.Models.ChangeHistories.ISource.FindEnum("source"))
.Build(),
"Get",
"/test_projectKey?source=source",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public static IEnumerable<object[]> GetData()
.WithResourceTypeValue("test_resourceType")
.WithIDValue("test_ID")
.Get()
.WithSource("source")
.WithSource(commercetools.Sdk.HistoryApi.Models.ChangeHistories.ISource.FindEnum("source"))
.Build(),
"Get",
"/test_projectKey/test_resourceType/test_ID?source=source",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public static IEnumerable<object[]> GetData()
.WithProjectKeyValue("test_projectKey")
.WithResourceTypeValue("test_resourceType")
.Get()
.WithSource("source")
.WithSource(commercetools.Sdk.HistoryApi.Models.ChangeHistories.ISource.FindEnum("source"))
.Build(),
"Get",
"/test_projectKey/test_resourceType?source=source",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ public ByProjectKeyGet WithResourceKey(string resourceKey)
return this.AddQueryParam("resourceKey", resourceKey);
}

public ByProjectKeyGet WithSource(string source)
public ByProjectKeyGet WithSource(ISource source)
{
return this.AddQueryParam("source", source);
return this.AddQueryParam("source", source.JsonName);
}

public ByProjectKeyGet WithChanges(string changes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ public ByProjectKeyByResourceTypeByIDGet WithType(string type)
return this.AddQueryParam("type", type);
}

public ByProjectKeyByResourceTypeByIDGet WithSource(string source)
public ByProjectKeyByResourceTypeByIDGet WithSource(ISource source)
{
return this.AddQueryParam("source", source);
return this.AddQueryParam("source", source.JsonName);
}

public ByProjectKeyByResourceTypeByIDGet WithChanges(string changes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ public ByProjectKeyByResourceTypeGet WithResourceKey(string resourceKey)
return this.AddQueryParam("resourceKey", resourceKey);
}

public ByProjectKeyByResourceTypeGet WithSource(string source)
public ByProjectKeyByResourceTypeGet WithSource(ISource source)
{
return this.AddQueryParam("source", source);
return this.AddQueryParam("source", source.JsonName);
}

public ByProjectKeyByResourceTypeGet WithChanges(string changes)
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,3 +296,4 @@ d410bad973f2fe90ea8239c4cb586fe0cfc13856
605a1ff5cf861ca0d8e2711ca79374804f180b50
f254d17f05343dcc4299fc53ff9b335b5ef63d69
6892be230f1ad73f1150dd544c9fa7fee0e6b123
6a8624fb41168a6a78ac836b7208c2790a686608

0 comments on commit 66f4e29

Please sign in to comment.