From 3a034bc57dd0bdb776b692a06a64d201f0bc9261 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Tue, 23 Apr 2024 16:14:15 -0600 Subject: [PATCH] - Fix misleading parameter types for .NET examples --- official/docs/csharp/current/batches/add-shipments.cs | 2 +- official/docs/csharp/current/batches/create.cs | 2 +- official/docs/csharp/current/batches/remove-shipments.cs | 2 +- official/docs/csharp/current/orders/create.cs | 2 +- official/docs/csharp/current/orders/one-call-buy.cs | 6 +++--- official/docs/csharp/current/scan-form/create.cs | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/official/docs/csharp/current/batches/add-shipments.cs b/official/docs/csharp/current/batches/add-shipments.cs index 7b4146a7..54589779 100644 --- a/official/docs/csharp/current/batches/add-shipments.cs +++ b/official/docs/csharp/current/batches/add-shipments.cs @@ -20,7 +20,7 @@ public static async Task Main() Parameters.Batch.AddShipments parameters = new() { - Shipments = new List { shipment }, + Shipments = new List { shipment }, }; batch = await client.Batch.AddShipments(batch.Id, parameters); diff --git a/official/docs/csharp/current/batches/create.cs b/official/docs/csharp/current/batches/create.cs index bf6a5259..e1bd86e8 100644 --- a/official/docs/csharp/current/batches/create.cs +++ b/official/docs/csharp/current/batches/create.cs @@ -18,7 +18,7 @@ public static async Task Main() Parameters.Batch.Create parameters = new() { - Shipments = new List() + Shipments = new List() { shipment } diff --git a/official/docs/csharp/current/batches/remove-shipments.cs b/official/docs/csharp/current/batches/remove-shipments.cs index 6456bb67..49af796c 100644 --- a/official/docs/csharp/current/batches/remove-shipments.cs +++ b/official/docs/csharp/current/batches/remove-shipments.cs @@ -20,7 +20,7 @@ public static async Task Main() Parameters.Batch.RemoveShipments parameters = new() { - Shipments = new List { shipment }, + Shipments = new List { shipment }, }; batch = await client.Batch.RemoveShipments(batch.Id, parameters); diff --git a/official/docs/csharp/current/orders/create.cs b/official/docs/csharp/current/orders/create.cs index 9b9cda5a..0fa40b7e 100644 --- a/official/docs/csharp/current/orders/create.cs +++ b/official/docs/csharp/current/orders/create.cs @@ -38,7 +38,7 @@ public static async Task Main() Country = "US", Zip = "94104" }, - Shipments = new List() { shipment } + Shipments = new List() { shipment } }; Order order = await client.Order.Create(parameters); diff --git a/official/docs/csharp/current/orders/one-call-buy.cs b/official/docs/csharp/current/orders/one-call-buy.cs index e5af0ad1..691845bc 100644 --- a/official/docs/csharp/current/orders/one-call-buy.cs +++ b/official/docs/csharp/current/orders/one-call-buy.cs @@ -36,16 +36,16 @@ public static async Task Main() Country = "US", Zip = "94104" }, - Shipments = new List + Shipments = new List { - new() + new Parameters.Shipments.Create() { Parcel = new Parameters.Parcel.Create { Weight = 10.2 } }, - new() + new Parameters.Shipments.Create() { Parcel = new Parameters.Parcel.Create { diff --git a/official/docs/csharp/current/scan-form/create.cs b/official/docs/csharp/current/scan-form/create.cs index 54c048aa..3351aca5 100644 --- a/official/docs/csharp/current/scan-form/create.cs +++ b/official/docs/csharp/current/scan-form/create.cs @@ -18,7 +18,7 @@ public static async Task Main() Parameters.ScanForm.Create parameters = new() { - Shipments = new List + Shipments = new List { shipment }