Skip to content

Commit

Permalink
- Fix/clarify carrier account parameter usage for Order and Pickup cr…
Browse files Browse the repository at this point in the history
…eation calls in .NET (#162)
  • Loading branch information
nwithan8 authored Sep 12, 2024
1 parent f702a4a commit adbc5bf
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
7 changes: 5 additions & 2 deletions official/docs/csharp/current/orders/one-call-buy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ public static async Task Main()
}
},
Service = "NextDayAir",
CarrierAccountIds = new List<string>
CarrierAccounts = new List<CarrierAccount>
{
"ca_..."
new CarrierAccount
{
Id = "ca_..."
}
}
};

Expand Down
9 changes: 8 additions & 1 deletion official/docs/csharp/current/pickups/create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CarrierAccount>
{
new CarrierAccount
{
Id = "ca_..."
}
}
};

Pickup pickup = await client.Pickup.Create(parameters);
Expand Down
7 changes: 5 additions & 2 deletions official/docs/csharp/v5/orders/one-call-buy.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ public static async Task Main()
}
},
Service = "NextDayAir",
CarrierAccountIds = new List<string>
CarrierAccounts = new List<CarrierAccount>
{
"ca_..."
new CarrierAccount
{
Id = "ca_..."
}
}
};

Expand Down
9 changes: 8 additions & 1 deletion official/docs/csharp/v5/pickups/create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CarrierAccount>
{
new CarrierAccount
{
Id = "ca_..."
}
}
};

Pickup pickup = await client.Pickup.Create(parameters);
Expand Down

0 comments on commit adbc5bf

Please sign in to comment.