@@ -25,25 +25,46 @@ namespace ShipEngineSDK;
2525public partial interface IShipEngine
2626{
2727 /// <summary>
28- /// Create a New Tag Create a new Tag for customizing how you track your shipments
28+ /// Create a New Tag Create a new tag for customizing how you track your shipments.
29+ /// </summary>
30+ /// <exception cref="System.ArgumentNullException">Thrown when required argument is null</exception>
31+ /// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
32+ /// <param name="createTagRequestBody"></param>
33+ /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
34+ /// <returns>Task of ApiResponse (CreateTagResponseBody)</returns>
35+ Task < CreateTagResponseBody > CreateTag ( CreateTagRequestBody createTagRequestBody , CancellationToken cancellationToken = default ) ;
36+
37+ /// <summary>
38+ /// Create a New Tag Create a new tag for customizing how you track your shipments.
39+ /// </summary>
40+ /// <exception cref="System.ArgumentNullException">Thrown when required argument is null</exception>
41+ /// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
42+ /// <param name="methodClient">HttpClient to use for the request</param>
43+ /// <param name="createTagRequestBody"></param>
44+ /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
45+ /// <returns>Task of ApiResponse (CreateTagResponseBody)</returns>
46+ Task < CreateTagResponseBody > CreateTag ( HttpClient methodClient , CreateTagRequestBody createTagRequestBody , CancellationToken cancellationToken = default ) ;
47+
48+ /// <summary>
49+ /// Create a New Tag Create a new tag for customizing how you track your shipments (deprecated - use POST /v1/tags instead)
2950 /// </summary>
3051 /// <exception cref="System.ArgumentNullException">Thrown when required argument is null</exception>
3152 /// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
3253 /// <param name="tagName"></param>
3354 /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
3455 /// <returns>Task of ApiResponse (CreateTagResponseBody)</returns>
35- Task < CreateTagResponseBody > CreateTag ( string tagName , CancellationToken cancellationToken = default ) ;
56+ Task < CreateTagResponseBody > CreateTag_0 ( string tagName , CancellationToken cancellationToken = default ) ;
3657
3758 /// <summary>
38- /// Create a New Tag Create a new Tag for customizing how you track your shipments
59+ /// Create a New Tag Create a new tag for customizing how you track your shipments (deprecated - use POST /v1/tags instead)
3960 /// </summary>
4061 /// <exception cref="System.ArgumentNullException">Thrown when required argument is null</exception>
4162 /// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
4263 /// <param name="methodClient">HttpClient to use for the request</param>
4364 /// <param name="tagName"></param>
4465 /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
4566 /// <returns>Task of ApiResponse (CreateTagResponseBody)</returns>
46- Task < CreateTagResponseBody > CreateTag ( HttpClient methodClient , string tagName , CancellationToken cancellationToken = default ) ;
67+ Task < CreateTagResponseBody > CreateTag_0 ( HttpClient methodClient , string tagName , CancellationToken cancellationToken = default ) ;
4768
4869 /// <summary>
4970 /// Delete Tag Delete a tag that is no longer needed
@@ -116,28 +137,70 @@ public partial interface IShipEngine
116137public partial class ShipEngine
117138{
118139 /// <summary>
119- /// Create a New Tag Create a new Tag for customizing how you track your shipments
140+ /// Create a New Tag Create a new tag for customizing how you track your shipments.
141+ /// </summary>
142+ /// <exception cref="System.ArgumentNullException">Thrown when required argument is null</exception>
143+ /// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
144+ /// <param name="createTagRequestBody"></param>
145+ /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
146+ /// <returns>Task of ApiResponse (CreateTagResponseBody)</returns>
147+ public Task < CreateTagResponseBody > CreateTag ( CreateTagRequestBody createTagRequestBody , CancellationToken cancellationToken = default )
148+ {
149+ return CreateTag ( _client , createTagRequestBody , cancellationToken ) ;
150+ }
151+
152+ /// <summary>
153+ /// Create a New Tag Create a new tag for customizing how you track your shipments.
154+ /// </summary>
155+ /// <exception cref="System.ArgumentNullException">Thrown when required argument is null</exception>
156+ /// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
157+ /// <param name="methodClient">HttpClient to use for the request</param>
158+ /// <param name="createTagRequestBody"></param>
159+ /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
160+ /// <returns>Task of ApiResponse (CreateTagResponseBody)</returns>
161+ public async Task < CreateTagResponseBody > CreateTag ( HttpClient methodClient , CreateTagRequestBody createTagRequestBody , CancellationToken cancellationToken = default )
162+ {
163+ // verify the required parameter 'createTagRequestBody' is set
164+ if ( createTagRequestBody == null )
165+ {
166+ throw new ArgumentNullException ( nameof ( createTagRequestBody ) ) ;
167+ }
168+
169+
170+ RequestOptions requestOptions = new ( "/v1/tags" ) ;
171+
172+ requestOptions . Data = JsonSerializer . Serialize ( createTagRequestBody , JsonSerializerOptions ) ;
173+
174+ requestOptions . Operation = "TagsApi.CreateTag" ;
175+
176+ var result = await SendHttpRequestAsync < CreateTagResponseBody > ( HttpMethods . Post , requestOptions , methodClient , _config , cancellationToken ) ;
177+
178+ return result ;
179+ }
180+
181+ /// <summary>
182+ /// Create a New Tag Create a new tag for customizing how you track your shipments (deprecated - use POST /v1/tags instead)
120183 /// </summary>
121184 /// <exception cref="System.ArgumentNullException">Thrown when required argument is null</exception>
122185 /// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
123186 /// <param name="tagName"></param>
124187 /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
125188 /// <returns>Task of ApiResponse (CreateTagResponseBody)</returns>
126- public Task < CreateTagResponseBody > CreateTag ( string tagName , CancellationToken cancellationToken = default )
189+ public Task < CreateTagResponseBody > CreateTag_0 ( string tagName , CancellationToken cancellationToken = default )
127190 {
128- return CreateTag ( _client , tagName , cancellationToken ) ;
191+ return CreateTag_0 ( _client , tagName , cancellationToken ) ;
129192 }
130193
131194 /// <summary>
132- /// Create a New Tag Create a new Tag for customizing how you track your shipments
195+ /// Create a New Tag Create a new tag for customizing how you track your shipments (deprecated - use POST /v1/tags instead)
133196 /// </summary>
134197 /// <exception cref="System.ArgumentNullException">Thrown when required argument is null</exception>
135198 /// <exception cref="ShipEngineSDK.ShipEngineException">Thrown when fails to make API call</exception>
136199 /// <param name="methodClient">HttpClient to use for the request</param>
137200 /// <param name="tagName"></param>
138201 /// <param name="cancellationToken">Cancellation Token to cancel the request.</param>
139202 /// <returns>Task of ApiResponse (CreateTagResponseBody)</returns>
140- public async Task < CreateTagResponseBody > CreateTag ( HttpClient methodClient , string tagName , CancellationToken cancellationToken = default )
203+ public async Task < CreateTagResponseBody > CreateTag_0 ( HttpClient methodClient , string tagName , CancellationToken cancellationToken = default )
141204 {
142205 // verify the required parameter 'tagName' is set
143206 if ( tagName == null )
@@ -150,7 +213,7 @@ public async Task<CreateTagResponseBody> CreateTag(HttpClient methodClient, stri
150213
151214 requestOptions . PathParameters . Add ( "tag_name" , ClientUtils . ParameterToString ( tagName ) ) ; // path parameter
152215
153- requestOptions . Operation = "TagsApi.CreateTag " ;
216+ requestOptions . Operation = "TagsApi.CreateTag_0 " ;
154217
155218 var result = await SendHttpRequestAsync < CreateTagResponseBody > ( HttpMethods . Post , requestOptions , methodClient , _config , cancellationToken ) ;
156219
0 commit comments