From d807cafb318451a7a4758613e5a25181abd70973 Mon Sep 17 00:00:00 2001 From: Joshua Harms Date: Wed, 12 Jul 2023 23:40:48 -0500 Subject: [PATCH] Rename to FulfillmentOriginAddress --- ShopifySharp.Tests/Fulfillment_Tests.cs | 2 +- ...ntShippingOriginAddress.cs => FulfillmentOriginAddress.cs} | 4 ++-- ShopifySharp/Entities/FulfillmentShipping.cs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename ShopifySharp/Entities/{FulfillmentShippingOriginAddress.cs => FulfillmentOriginAddress.cs} (95%) diff --git a/ShopifySharp.Tests/Fulfillment_Tests.cs b/ShopifySharp.Tests/Fulfillment_Tests.cs index 9f1bd229..20b09e53 100644 --- a/ShopifySharp.Tests/Fulfillment_Tests.cs +++ b/ShopifySharp.Tests/Fulfillment_Tests.cs @@ -315,7 +315,7 @@ public async Task Create(long orderId, bool partialFulfillment = fa }, OriginAddress = originAddress == false ? null - : new FulfillmentShippingOriginAddress + : new FulfillmentOriginAddress { Address1 = "123 4th Street", City = "Minneapolis", diff --git a/ShopifySharp/Entities/FulfillmentShippingOriginAddress.cs b/ShopifySharp/Entities/FulfillmentOriginAddress.cs similarity index 95% rename from ShopifySharp/Entities/FulfillmentShippingOriginAddress.cs rename to ShopifySharp/Entities/FulfillmentOriginAddress.cs index 2901396e..5c835f2d 100644 --- a/ShopifySharp/Entities/FulfillmentShippingOriginAddress.cs +++ b/ShopifySharp/Entities/FulfillmentOriginAddress.cs @@ -2,7 +2,7 @@ namespace ShopifySharp { - public class FulfillmentShippingOriginAddress + public class FulfillmentOriginAddress { /// /// The street address of the fulfillment location. @@ -40,4 +40,4 @@ public class FulfillmentShippingOriginAddress [JsonProperty("zip")] public string Zip { get; set; } } -} +} \ No newline at end of file diff --git a/ShopifySharp/Entities/FulfillmentShipping.cs b/ShopifySharp/Entities/FulfillmentShipping.cs index c596ddef..b58493ef 100644 --- a/ShopifySharp/Entities/FulfillmentShipping.cs +++ b/ShopifySharp/Entities/FulfillmentShipping.cs @@ -32,7 +32,7 @@ public class FulfillmentShipping /// The address of the fulfillment location. /// [JsonProperty("origin_address")] - public FulfillmentShippingOriginAddress OriginAddress { get; set; } + public FulfillmentOriginAddress OriginAddress { get; set; } /// /// The fulfillment order line items to be requested for fulfillment. If left blank, all line items of the fulfillment order are requested for fulfillment.