From bf1ed2896f3ee901d77430856638e9b4e3e020ca Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Tue, 5 Sep 2023 14:22:45 -0600 Subject: [PATCH] - Add missing address parameters to Shipment create parameter set (#516) --- EasyPost/Parameters/Shipment/Create.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/EasyPost/Parameters/Shipment/Create.cs b/EasyPost/Parameters/Shipment/Create.cs index e0b7873cf..cc1a52717 100644 --- a/EasyPost/Parameters/Shipment/Create.cs +++ b/EasyPost/Parameters/Shipment/Create.cs @@ -99,6 +99,26 @@ public class Create : BaseParameters, IShipmentParameter [NestedRequestParameter(typeof(ScanForm.Create), Necessity.Optional, "from_address")] public IAddressParameter? FromAddress { get; set; } + /// + /// The return (or a parameter set) for the new . + /// + [TopLevelRequestParameter(Necessity.Optional, "shipment", "return_address")] + [NestedRequestParameter(typeof(Pickup.Create), Necessity.Optional, "return_address")] + [NestedRequestParameter(typeof(Batch.Create), Necessity.Optional, "return_address")] + [NestedRequestParameter(typeof(Order.Create), Necessity.Optional, "return_address")] + [NestedRequestParameter(typeof(ScanForm.Create), Necessity.Optional, "return_address")] + public IAddressParameter? ReturnAddress { get; set; } + + /// + /// The buyer (or a parameter set) for the new . + /// + [TopLevelRequestParameter(Necessity.Optional, "shipment", "buyer_address")] + [NestedRequestParameter(typeof(Pickup.Create), Necessity.Optional, "buyer_address")] + [NestedRequestParameter(typeof(Batch.Create), Necessity.Optional, "buyer_address")] + [NestedRequestParameter(typeof(Order.Create), Necessity.Optional, "buyer_address")] + [NestedRequestParameter(typeof(ScanForm.Create), Necessity.Optional, "buyer_address")] + public IAddressParameter? BuyerAddress { get; set; } + /// /// The physical (or parameter set) being transported in the new . ///