Skip to content

Commit 3e11dd7

Browse files
authored
Merge pull request #902 from spiohq/fix/orderbuyerinfo-buyer-email
Add missing BuyerEmail to OrderBuyerInfo DTO
2 parents 9d562df + 5e74d28 commit 3e11dd7

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

resources/metadata/modifications.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,16 @@
126126
"description": "The anonymized email address of the buyer."
127127
}
128128
}
129+
},
130+
{
131+
"action": "merge",
132+
"path": "components.schemas.OrderBuyerInfo.properties",
133+
"value": {
134+
"BuyerEmail": {
135+
"type": "string",
136+
"description": "The anonymized email address of the buyer."
137+
}
138+
}
129139
}
130140
]
131141
},

resources/models/seller/orders/v0.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4258,6 +4258,10 @@
42584258
"PurchaseOrderNumber": {
42594259
"type": "string",
42604260
"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."
4261+
},
4262+
"BuyerEmail": {
4263+
"type": "string",
4264+
"description": "The anonymized email address of the buyer."
42614265
}
42624266
},
42634267
"description": "Buyer information for an order."

src/Seller/OrdersV0/Dto/OrderBuyerInfo.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ final class OrderBuyerInfo extends Dto
2020
'buyerCounty' => 'BuyerCounty',
2121
'buyerTaxInfo' => 'BuyerTaxInfo',
2222
'purchaseOrderNumber' => 'PurchaseOrderNumber',
23+
'buyerEmail' => 'BuyerEmail',
2324
];
2425

2526
/**
@@ -30,12 +31,14 @@ final class OrderBuyerInfo extends Dto
3031
* **Note**: This attribute is only available in the Brazil marketplace.
3132
* @param ?BuyerTaxInfo $buyerTaxInfo Tax information about the buyer.
3233
* @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.
34+
* @param ?string $buyerEmail The anonymized email address of the buyer.
3335
*/
3436
public function __construct(
3537
public string $amazonOrderId,
3638
public ?string $buyerName = null,
3739
public ?string $buyerCounty = null,
3840
public ?BuyerTaxInfo $buyerTaxInfo = null,
3941
public ?string $purchaseOrderNumber = null,
42+
public ?string $buyerEmail = null,
4043
) {}
4144
}

0 commit comments

Comments
 (0)