Skip to content

Commit a0d61bf

Browse files
committed
fix bug #175
1 parent b60ba50 commit a0d61bf

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Source/FikaAmazonAPI/AmazonSpApiSDK/Models/FulfillmentInbound/GetLabelsResponse.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ public partial class GetLabelsResponse : IEquatable<GetLabelsResponse>, IValidat
3434
this.Errors = Errors;
3535
}
3636

37+
public GetLabelsResponse()
38+
{
39+
this.Payload = default(LabelDownloadURL);
40+
this.Errors = default(ErrorList);
41+
}
3742
/// <summary>
3843
/// The payload for the getLabels operation.
3944
/// </summary>

Source/FikaAmazonAPI/Services/FulFillmentInboundService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,15 +187,15 @@ public async Task<CommonTransportResult> ConfirmTransportAsync(string shipmentId
187187
return null;
188188
}
189189

190-
public GetPrepInstructionsResult GetLabels(ParameterGetLabels parameterGetLabels) =>
190+
public LabelDownloadURL GetLabels(ParameterGetLabels parameterGetLabels) =>
191191
Task.Run(() => GetLabelsAsync(parameterGetLabels)).ConfigureAwait(false).GetAwaiter().GetResult();
192192

193-
public async Task<GetPrepInstructionsResult> GetLabelsAsync(ParameterGetLabels parameterGetLabels)
193+
public async Task<LabelDownloadURL> GetLabelsAsync(ParameterGetLabels parameterGetLabels)
194194
{
195195
var parameter = parameterGetLabels.getParameters();
196196
await CreateAuthorizedRequestAsync(FulFillmentInboundApiUrls.GetLabels(parameterGetLabels.shipmentId), RestSharp.Method.GET, parameter);
197197

198-
var response = await ExecuteRequestAsync<GetPrepInstructionsResponse>(RateLimitType.FulFillmentInbound_GetLabels);
198+
var response = await ExecuteRequestAsync<GetLabelsResponse>(RateLimitType.FulFillmentInbound_GetLabels);
199199
if (response != null && response.Payload != null)
200200
return response.Payload;
201201
return null;

0 commit comments

Comments
 (0)