Skip to content

Commit 74096a8

Browse files
committed
Updated Sample Code and new documentation for new GetOrderAddress method.
1 parent b682cc5 commit 74096a8

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ For more information about keys please check [New Amazon doc for create keys Dev
9797
---
9898
## Usage
9999

100+
> ### Please be aware there has been a change to the _Orders.GetOrderAddress()_ method please reference the new sample code for more details.
101+
100102
### Configuration
101103
You can configure a connection like so please see [Here](https://github.com/abuzuhri/Amazon-SP-API-CSharp/blob/main/Source/FikaAmazonAPI.SampleCode/Program.cs) for the relevant code file.
102104
```CSharp

Source/FikaAmazonAPI.SampleCode/OrdersSample.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,13 @@ public void GetOrderBuyerInfo()
102102

103103
public void GetOrderAddress()
104104
{
105+
// This method has been changed and is a breaking change
106+
// If you would like the default behavior please reference the
107+
// ShippingAddress variable
105108
var Address = amazonConnection.Orders.GetOrderAddress("402-0467973-4229120");
109+
var BuyerCompanyName = Address.BuyerCompanyName;
110+
var ShippingAddress = Address.ShippingAddress;
111+
var DeliveryPreferences = Address.DeliveryPreferences;
106112
}
107113

108114

0 commit comments

Comments
 (0)