From adbc5bf0af15fddf06a8587a6da88ca290545f55 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Thu, 12 Sep 2024 08:14:45 -0600 Subject: [PATCH] - Fix/clarify carrier account parameter usage for Order and Pickup creation calls in .NET (#162) --- official/docs/csharp/current/orders/one-call-buy.cs | 7 +++++-- official/docs/csharp/current/pickups/create.cs | 9 ++++++++- official/docs/csharp/v5/orders/one-call-buy.cs | 7 +++++-- official/docs/csharp/v5/pickups/create.cs | 9 ++++++++- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/official/docs/csharp/current/orders/one-call-buy.cs b/official/docs/csharp/current/orders/one-call-buy.cs index 5beb5d5f..df627ebd 100644 --- a/official/docs/csharp/current/orders/one-call-buy.cs +++ b/official/docs/csharp/current/orders/one-call-buy.cs @@ -55,9 +55,12 @@ public static async Task Main() } }, Service = "NextDayAir", - CarrierAccountIds = new List + CarrierAccounts = new List { - "ca_..." + new CarrierAccount + { + Id = "ca_..." + } } }; diff --git a/official/docs/csharp/current/pickups/create.cs b/official/docs/csharp/current/pickups/create.cs index d9dfc9ba..a013f4ca 100644 --- a/official/docs/csharp/current/pickups/create.cs +++ b/official/docs/csharp/current/pickups/create.cs @@ -33,7 +33,14 @@ public static async Task Main() MinDatetime = "2022-10-01 10:30:00", MaxDatetime = "2022-10-01 17:30:00", Instructions = "Special pickup instructions", - IsAccountAddress = false + IsAccountAddress = false, + CarrierAccounts = new List + { + new CarrierAccount + { + Id = "ca_..." + } + } }; Pickup pickup = await client.Pickup.Create(parameters); diff --git a/official/docs/csharp/v5/orders/one-call-buy.cs b/official/docs/csharp/v5/orders/one-call-buy.cs index e5af0ad1..41ac6b0b 100644 --- a/official/docs/csharp/v5/orders/one-call-buy.cs +++ b/official/docs/csharp/v5/orders/one-call-buy.cs @@ -55,9 +55,12 @@ public static async Task Main() } }, Service = "NextDayAir", - CarrierAccountIds = new List + CarrierAccounts = new List { - "ca_..." + new CarrierAccount + { + Id = "ca_..." + } } }; diff --git a/official/docs/csharp/v5/pickups/create.cs b/official/docs/csharp/v5/pickups/create.cs index d8719248..131a0066 100644 --- a/official/docs/csharp/v5/pickups/create.cs +++ b/official/docs/csharp/v5/pickups/create.cs @@ -33,7 +33,14 @@ public static async Task Main() MinDatetime = "2022-10-01 10:30:00", MaxDatetime = "2022-10-01 17:30:00", Instructions = "Special pickup instructions", - IsAccountAddress = false + IsAccountAddress = false, + CarrierAccounts = new List + { + new CarrierAccount + { + Id = "ca_..." + } + } }; Pickup pickup = await client.Pickup.Create(parameters);