Skip to content

Commit a0e0cab

Browse files
committed
Add back buyerEmail to OrdersList and BuyerInfo
1 parent 8a699a5 commit a0e0cab

4 files changed

Lines changed: 34 additions & 0 deletions

File tree

resources/metadata/modifications.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,26 @@
106106
"description": "The name of the automated carrier."
107107
}
108108
}
109+
},
110+
{
111+
"action": "merge",
112+
"path": "components.schemas.OrdersList.properties",
113+
"value": {
114+
"BuyerEmail": {
115+
"type": "string",
116+
"description": "The anonymized email address of the buyer."
117+
}
118+
}
119+
},
120+
{
121+
"action": "merge",
122+
"path": "components.schemas.BuyerInfo.properties",
123+
"value": {
124+
"BuyerEmail": {
125+
"type": "string",
126+
"description": "The anonymized email address of the buyer."
127+
}
128+
}
109129
}
110130
]
111131
},

resources/models/seller/orders/v0.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3911,6 +3911,10 @@
39113911
"CreatedBefore": {
39123912
"type": "string",
39133913
"description": "Use this date to select orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format."
3914+
},
3915+
"BuyerEmail": {
3916+
"type": "string",
3917+
"description": "The anonymized email address of the buyer."
39143918
}
39153919
},
39163920
"description": "A list of orders along with additional information to make subsequent API calls."
@@ -5776,6 +5780,10 @@
57765780
"PurchaseOrderNumber": {
57775781
"type": "string",
57785782
"description": "The purchase order (PO) number entered by the buyer at checkout. Only returned for orders where the buyer entered a PO number at checkout."
5783+
},
5784+
"BuyerEmail": {
5785+
"type": "string",
5786+
"description": "The anonymized email address of the buyer."
57795787
}
57805788
},
57815789
"description": "Buyer information."

src/Seller/OrdersV0/Dto/BuyerInfo.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ final class BuyerInfo extends Dto
1919
'buyerCounty' => 'BuyerCounty',
2020
'buyerTaxInfo' => 'BuyerTaxInfo',
2121
'purchaseOrderNumber' => 'PurchaseOrderNumber',
22+
'buyerEmail' => 'BuyerEmail',
2223
];
2324

2425
/**
@@ -28,11 +29,13 @@ final class BuyerInfo extends Dto
2829
* **Note**: This attribute is only available in the Brazil marketplace.
2930
* @param ?BuyerTaxInfo $buyerTaxInfo Tax information about the buyer.
3031
* @param ?string $purchaseOrderNumber The purchase order (PO) number entered by the buyer at checkout. Only returned for orders where the buyer entered a PO number at checkout.
32+
* @param ?string $buyerEmail The anonymized email address of the buyer.
3133
*/
3234
public function __construct(
3335
public ?string $buyerName = null,
3436
public ?string $buyerCounty = null,
3537
public ?BuyerTaxInfo $buyerTaxInfo = null,
3638
public ?string $purchaseOrderNumber = null,
39+
public ?string $buyerEmail = null,
3740
) {}
3841
}

src/Seller/OrdersV0/Dto/OrdersList.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ final class OrdersList extends Dto
1919
'nextToken' => 'NextToken',
2020
'lastUpdatedBefore' => 'LastUpdatedBefore',
2121
'createdBefore' => 'CreatedBefore',
22+
'buyerEmail' => 'BuyerEmail',
2223
];
2324

2425
protected static array $complexArrayTypes = ['orders' => Order::class];
@@ -28,11 +29,13 @@ final class OrdersList extends Dto
2829
* @param ?string $nextToken When present and not empty, pass this string token in the next request to return the next response page.
2930
* @param ?string $lastUpdatedBefore Use this date to select orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. Use [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format for all dates.
3031
* @param ?string $createdBefore Use this date to select orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) format.
32+
* @param ?string $buyerEmail The anonymized email address of the buyer.
3133
*/
3234
public function __construct(
3335
public array $orders,
3436
public ?string $nextToken = null,
3537
public ?string $lastUpdatedBefore = null,
3638
public ?string $createdBefore = null,
39+
public ?string $buyerEmail = null,
3740
) {}
3841
}

0 commit comments

Comments
 (0)