Skip to content

Commit 35bc723

Browse files
authored
Merge pull request #556 from mbradley672/change_GetOrderAddress_to_expose_other_adress_data
Change the return to the payload to expose other needed data such as BuyerCompanyName
2 parents d9ff293 + fb48a9f commit 35bc723

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Source/FikaAmazonAPI/Services/OrderService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,13 @@ public async Task<OrderItemsBuyerInfoList> GetOrderItemsBuyerInfoAsync(string or
186186
return response.Payload;
187187
}
188188

189-
public Address GetOrderAddress(string orderId) =>
189+
public OrderAddress GetOrderAddress(string orderId) =>
190190
Task.Run(() => GetOrderAddressAsync(orderId)).ConfigureAwait(false).GetAwaiter().GetResult();
191-
public async Task<Address> GetOrderAddressAsync(string orderId, CancellationToken cancellationToken = default)
191+
public async Task<OrderAddress> GetOrderAddressAsync(string orderId, CancellationToken cancellationToken = default)
192192
{
193193
await CreateAuthorizedRequestAsync(OrdersApiUrls.OrderShipmentInfo(orderId), RestSharp.Method.Get, cancellationToken: cancellationToken);
194194
var response = await ExecuteRequestAsync<GetOrderAddressResponse>(Utils.RateLimitType.Order_GetOrderAddress, cancellationToken);
195-
return response.Payload.ShippingAddress;
195+
return response.Payload;
196196
}
197197

198198
public bool UpdateShipmentStatus(string orderId, UpdateShipmentStatusRequest updateShipmentStatusRequest) =>

0 commit comments

Comments
 (0)