Skip to content

Commit 9996dfb

Browse files
authored
Merge pull request #650 from ohlsen1980/UpdateVerificationStatus
Issue #631 UpdateVerificationStatus
2 parents ff0ffb4 + f131588 commit 9996dfb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/FikaAmazonAPI/Services/OrderService.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,11 @@ public async Task<OrderRegulatedInfo> GetOrderRegulatedInfoAsync(string orderId,
215215
return response.Payload;
216216
}
217217

218-
public bool UpdateVerificationStatus(string orderId, UpdateShipmentStatusRequest updateShipmentStatusRequest) =>
219-
Task.Run(() => UpdateVerificationStatusAsync(orderId, updateShipmentStatusRequest)).ConfigureAwait(false).GetAwaiter().GetResult();
220-
public async Task<bool> UpdateVerificationStatusAsync(string orderId, UpdateShipmentStatusRequest updateShipmentStatusRequest, CancellationToken cancellationToken = default)
218+
public bool UpdateVerificationStatus(string orderId, UpdateVerificationStatusRequest updateVerificationStatusRequest) =>
219+
Task.Run(() => UpdateVerificationStatusAsync(orderId, updateVerificationStatusRequest)).ConfigureAwait(false).GetAwaiter().GetResult();
220+
public async Task<bool> UpdateVerificationStatusAsync(string orderId, UpdateVerificationStatusRequest updateVerificationStatusRequest, CancellationToken cancellationToken = default)
221221
{
222-
await CreateAuthorizedRequestAsync(OrdersApiUrls.UpdateVerificationStatus(orderId), RestSharp.Method.Patch, postJsonObj: updateShipmentStatusRequest, cancellationToken: cancellationToken);
222+
await CreateAuthorizedRequestAsync(OrdersApiUrls.UpdateVerificationStatus(orderId), RestSharp.Method.Patch, postJsonObj: updateVerificationStatusRequest, cancellationToken: cancellationToken);
223223

224224
var response = await ExecuteRequestAsync<NoContentResult>(Utils.RateLimitType.Order_UpdateShipmentStatus, cancellationToken);
225225
return true;

0 commit comments

Comments
 (0)