diff --git a/official/docs/csharp/current/addresses/create-and-verify.cs b/official/docs/csharp/current/addresses/create-and-verify.cs index 7301de03..f4655e8e 100644 --- a/official/docs/csharp/current/addresses/create-and-verify.cs +++ b/official/docs/csharp/current/addresses/create-and-verify.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Address.Create parameters = new() { diff --git a/official/docs/csharp/current/addresses/create.cs b/official/docs/csharp/current/addresses/create.cs index 591daf91..0b9f7415 100644 --- a/official/docs/csharp/current/addresses/create.cs +++ b/official/docs/csharp/current/addresses/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Address.Create parameters = new() { diff --git a/official/docs/csharp/current/addresses/list.cs b/official/docs/csharp/current/addresses/list.cs index b9e8f653..3eebfb87 100644 --- a/official/docs/csharp/current/addresses/list.cs +++ b/official/docs/csharp/current/addresses/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Address.All parameters = new() { diff --git a/official/docs/csharp/current/addresses/retrieve.cs b/official/docs/csharp/current/addresses/retrieve.cs index 5ffe19ea..92328800 100644 --- a/official/docs/csharp/current/addresses/retrieve.cs +++ b/official/docs/csharp/current/addresses/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Address address = await client.Address.Retrieve("adr_..."); diff --git a/official/docs/csharp/current/addresses/verify-failure.cs b/official/docs/csharp/current/addresses/verify-failure.cs index b767360d..6dde884c 100644 --- a/official/docs/csharp/current/addresses/verify-failure.cs +++ b/official/docs/csharp/current/addresses/verify-failure.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Address.Create parameters = new() { diff --git a/official/docs/csharp/current/addresses/verify-param.cs b/official/docs/csharp/current/addresses/verify-param.cs index 47b76917..5892c4a6 100644 --- a/official/docs/csharp/current/addresses/verify-param.cs +++ b/official/docs/csharp/current/addresses/verify-param.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Address.Create parameters = new() { diff --git a/official/docs/csharp/current/addresses/verify-strict-param.cs b/official/docs/csharp/current/addresses/verify-strict-param.cs index d7b4cfdf..2f57e4ec 100644 --- a/official/docs/csharp/current/addresses/verify-strict-param.cs +++ b/official/docs/csharp/current/addresses/verify-strict-param.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Address.Create parameters = new() { diff --git a/official/docs/csharp/current/addresses/verify.cs b/official/docs/csharp/current/addresses/verify.cs index 10aed5b8..4129690f 100644 --- a/official/docs/csharp/current/addresses/verify.cs +++ b/official/docs/csharp/current/addresses/verify.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Address.Create parameters = new() { diff --git a/official/docs/csharp/current/api-keys/retrieve.cs b/official/docs/csharp/current/api-keys/retrieve.cs index bf7ecc6b..59add419 100644 --- a/official/docs/csharp/current/api-keys/retrieve.cs +++ b/official/docs/csharp/current/api-keys/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); // Retrieve all API keys including children List apiKeys = await client.ApiKey.All(); diff --git a/official/docs/csharp/current/batches/add-shipments.cs b/official/docs/csharp/current/batches/add-shipments.cs index 54589779..6303aed2 100644 --- a/official/docs/csharp/current/batches/add-shipments.cs +++ b/official/docs/csharp/current/batches/add-shipments.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/batches/buy.cs b/official/docs/csharp/current/batches/buy.cs index 91c3a4f5..c136d8f6 100644 --- a/official/docs/csharp/current/batches/buy.cs +++ b/official/docs/csharp/current/batches/buy.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Batch batch = await client.Batch.Retrieve("batch_..."); diff --git a/official/docs/csharp/current/batches/create.cs b/official/docs/csharp/current/batches/create.cs index e1bd86e8..ce049ea7 100644 --- a/official/docs/csharp/current/batches/create.cs +++ b/official/docs/csharp/current/batches/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/batches/label.cs b/official/docs/csharp/current/batches/label.cs index 27ee990c..8c70308a 100644 --- a/official/docs/csharp/current/batches/label.cs +++ b/official/docs/csharp/current/batches/label.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Batch batch = await client.Batch.Retrieve("batch_..."); diff --git a/official/docs/csharp/current/batches/list.cs b/official/docs/csharp/current/batches/list.cs index d0cd4bbe..61e41c33 100644 --- a/official/docs/csharp/current/batches/list.cs +++ b/official/docs/csharp/current/batches/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Batch.All parameters = new() { diff --git a/official/docs/csharp/current/batches/remove-shipments.cs b/official/docs/csharp/current/batches/remove-shipments.cs index 49af796c..4302f07c 100644 --- a/official/docs/csharp/current/batches/remove-shipments.cs +++ b/official/docs/csharp/current/batches/remove-shipments.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/batches/retrieve.cs b/official/docs/csharp/current/batches/retrieve.cs index 3c2befe1..d40c0fd3 100644 --- a/official/docs/csharp/current/batches/retrieve.cs +++ b/official/docs/csharp/current/batches/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Batch batch = await client.Batch.Retrieve("batch_..."); diff --git a/official/docs/csharp/current/batches/scan-forms.cs b/official/docs/csharp/current/batches/scan-forms.cs index 5ae4bf4b..4e3a924c 100644 --- a/official/docs/csharp/current/batches/scan-forms.cs +++ b/official/docs/csharp/current/batches/scan-forms.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Batch batch = await client.Batch.Retrieve("batch_..."); diff --git a/official/docs/csharp/current/billing/create-ep-credit-card.cs b/official/docs/csharp/current/billing/create-ep-credit-card.cs index 60f6dbf5..5339a1fa 100644 --- a/official/docs/csharp/current/billing/create-ep-credit-card.cs +++ b/official/docs/csharp/current/billing/create-ep-credit-card.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); PaymentMethod paymentMethod = await client.ReferralCustomer.AddCreditCardToUser("REFERRAL_USER_API_KEY", "0123456789101234", "01", "2025", "111", PaymentMethod.Priority.Primary); diff --git a/official/docs/csharp/current/billing/delete.cs b/official/docs/csharp/current/billing/delete.cs index 8677c114..ef061908 100644 --- a/official/docs/csharp/current/billing/delete.cs +++ b/official/docs/csharp/current/billing/delete.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); await client.Billing.DeletePaymentMethod(PaymentMethod.Priority.Primary); } diff --git a/official/docs/csharp/current/billing/fund.cs b/official/docs/csharp/current/billing/fund.cs index ba4d1e14..5fc12d7b 100644 --- a/official/docs/csharp/current/billing/fund.cs +++ b/official/docs/csharp/current/billing/fund.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); await client.Billing.FundWallet("2000", PaymentMethod.Priority.Primary); } diff --git a/official/docs/csharp/current/billing/list.cs b/official/docs/csharp/current/billing/list.cs index dce504a6..75e49052 100644 --- a/official/docs/csharp/current/billing/list.cs +++ b/official/docs/csharp/current/billing/list.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); PaymentMethodsSummary paymentMethodsSummary = await client.Billing.RetrievePaymentMethodsSummary(); diff --git a/official/docs/csharp/current/brand/update.cs b/official/docs/csharp/current/brand/update.cs index 0a6b0f9a..9ccc1244 100644 --- a/official/docs/csharp/current/brand/update.cs +++ b/official/docs/csharp/current/brand/update.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); User user = await client.User.RetrieveMe(); diff --git a/official/docs/csharp/current/carrier-accounts/create.cs b/official/docs/csharp/current/carrier-accounts/create.cs index 107762bf..ef20c302 100644 --- a/official/docs/csharp/current/carrier-accounts/create.cs +++ b/official/docs/csharp/current/carrier-accounts/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.CarrierAccount.Create parameters = new() { diff --git a/official/docs/csharp/current/carrier-accounts/delete.cs b/official/docs/csharp/current/carrier-accounts/delete.cs index bfa2d41f..099c46cd 100644 --- a/official/docs/csharp/current/carrier-accounts/delete.cs +++ b/official/docs/csharp/current/carrier-accounts/delete.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); CarrierAccount carrierAccount = await client.CarrierAccount.Retrieve("ca_..."); diff --git a/official/docs/csharp/current/carrier-accounts/list.cs b/official/docs/csharp/current/carrier-accounts/list.cs index 03959742..894e922c 100644 --- a/official/docs/csharp/current/carrier-accounts/list.cs +++ b/official/docs/csharp/current/carrier-accounts/list.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); List carrierAccounts = await client.CarrierAccount.All(); diff --git a/official/docs/csharp/current/carrier-accounts/retrieve.cs b/official/docs/csharp/current/carrier-accounts/retrieve.cs index 004a4e83..b0ea5806 100644 --- a/official/docs/csharp/current/carrier-accounts/retrieve.cs +++ b/official/docs/csharp/current/carrier-accounts/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); CarrierAccount carrierAccount = await client.CarrierAccount.Retrieve("ca_..."); diff --git a/official/docs/csharp/current/carrier-accounts/update.cs b/official/docs/csharp/current/carrier-accounts/update.cs index 81245af7..7dda2a9a 100644 --- a/official/docs/csharp/current/carrier-accounts/update.cs +++ b/official/docs/csharp/current/carrier-accounts/update.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); CarrierAccount carrierAccount = await client.CarrierAccount.Retrieve("ca_..."); diff --git a/official/docs/csharp/current/carrier-metadata/retrieve.cs b/official/docs/csharp/current/carrier-metadata/retrieve.cs index 109231f5..4aa09cb6 100644 --- a/official/docs/csharp/current/carrier-metadata/retrieve.cs +++ b/official/docs/csharp/current/carrier-metadata/retrieve.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); // Request all metadata for all carriers List carrierMetadata = await client.CarrierMetadata.Retrieve(); diff --git a/official/docs/csharp/current/carrier-types/list.cs b/official/docs/csharp/current/carrier-types/list.cs index a6b610b7..d3096786 100644 --- a/official/docs/csharp/current/carrier-types/list.cs +++ b/official/docs/csharp/current/carrier-types/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); List carrierTypes = await client.CarrierType.All(); diff --git a/official/docs/csharp/current/child-users/create.cs b/official/docs/csharp/current/child-users/create.cs index 89926026..0fb807ee 100644 --- a/official/docs/csharp/current/child-users/create.cs +++ b/official/docs/csharp/current/child-users/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.User.CreateChild parameters = new() { diff --git a/official/docs/csharp/current/child-users/delete.cs b/official/docs/csharp/current/child-users/delete.cs index 6ec52e2f..049330f9 100644 --- a/official/docs/csharp/current/child-users/delete.cs +++ b/official/docs/csharp/current/child-users/delete.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); User user = await client.User.Retrieve("user_..."); diff --git a/official/docs/csharp/current/child-users/list.cs b/official/docs/csharp/current/child-users/list.cs index d198a77c..db511969 100644 --- a/official/docs/csharp/current/child-users/list.cs +++ b/official/docs/csharp/current/child-users/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Users.AllChildren parameters = new() { diff --git a/official/docs/csharp/current/customs-infos/create.cs b/official/docs/csharp/current/customs-infos/create.cs index e687ef1c..95c0bc7d 100644 --- a/official/docs/csharp/current/customs-infos/create.cs +++ b/official/docs/csharp/current/customs-infos/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.CustomsInfo.Create parameters = new() { diff --git a/official/docs/csharp/current/customs-infos/retrieve.cs b/official/docs/csharp/current/customs-infos/retrieve.cs index e6b55c45..0fdf2c69 100644 --- a/official/docs/csharp/current/customs-infos/retrieve.cs +++ b/official/docs/csharp/current/customs-infos/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); CustomsInfo customsInfo = await client.CustomsInfo.Retrieve("cstinfo_..."); diff --git a/official/docs/csharp/current/customs-items/create.cs b/official/docs/csharp/current/customs-items/create.cs index 19992f76..440e87c6 100644 --- a/official/docs/csharp/current/customs-items/create.cs +++ b/official/docs/csharp/current/customs-items/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.CustomsItems.Create parameters = new() { diff --git a/official/docs/csharp/current/customs-items/retrieve.cs b/official/docs/csharp/current/customs-items/retrieve.cs index a7927f5c..0d0ede5e 100644 --- a/official/docs/csharp/current/customs-items/retrieve.cs +++ b/official/docs/csharp/current/customs-items/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); CustomsItem customsItem = await client.CustomsItem.Retrieve("cstitem_..."); diff --git a/official/docs/csharp/current/endshipper/buy.cs b/official/docs/csharp/current/endshipper/buy.cs index bc5d77aa..55f31e54 100644 --- a/official/docs/csharp/current/endshipper/buy.cs +++ b/official/docs/csharp/current/endshipper/buy.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/endshipper/create.cs b/official/docs/csharp/current/endshipper/create.cs index 31dc7fb7..90ff246b 100644 --- a/official/docs/csharp/current/endshipper/create.cs +++ b/official/docs/csharp/current/endshipper/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.EndShipper.Create parameters = new() { diff --git a/official/docs/csharp/current/endshipper/list.cs b/official/docs/csharp/current/endshipper/list.cs index 6679955b..9f3f7cc3 100644 --- a/official/docs/csharp/current/endshipper/list.cs +++ b/official/docs/csharp/current/endshipper/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.EndShipper.All parameters = new() { diff --git a/official/docs/csharp/current/endshipper/retrieve.cs b/official/docs/csharp/current/endshipper/retrieve.cs index e4c7aaee..66c32b65 100644 --- a/official/docs/csharp/current/endshipper/retrieve.cs +++ b/official/docs/csharp/current/endshipper/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); EndShipper endShipper = await client.EndShipper.Retrieve("es_..."); diff --git a/official/docs/csharp/current/endshipper/update.cs b/official/docs/csharp/current/endshipper/update.cs index fc8af14c..c1541632 100644 --- a/official/docs/csharp/current/endshipper/update.cs +++ b/official/docs/csharp/current/endshipper/update.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); EndShipper endShipper = await client.EndShipper.Retrieve("es_..."); diff --git a/official/docs/csharp/current/events/list.cs b/official/docs/csharp/current/events/list.cs index 607a7c76..2bb262fc 100644 --- a/official/docs/csharp/current/events/list.cs +++ b/official/docs/csharp/current/events/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Event.All parameters = new() { diff --git a/official/docs/csharp/current/events/retrieve.cs b/official/docs/csharp/current/events/retrieve.cs index 145ed4c2..4aa33c80 100644 --- a/official/docs/csharp/current/events/retrieve.cs +++ b/official/docs/csharp/current/events/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Event @event = await client.Event.Retrieve("evt_..."); diff --git a/official/docs/csharp/current/forms/create.cs b/official/docs/csharp/current/forms/create.cs index be2ec527..6d9735e4 100644 --- a/official/docs/csharp/current/forms/create.cs +++ b/official/docs/csharp/current/forms/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); // Shipment has to be purchased before forms can be generated Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/insurance/create.cs b/official/docs/csharp/current/insurance/create.cs index 364c1b6a..60e2eeea 100644 --- a/official/docs/csharp/current/insurance/create.cs +++ b/official/docs/csharp/current/insurance/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Insurance.Create parameters = new() { diff --git a/official/docs/csharp/current/insurance/list.cs b/official/docs/csharp/current/insurance/list.cs index b8c56f6e..e0a9b60b 100644 --- a/official/docs/csharp/current/insurance/list.cs +++ b/official/docs/csharp/current/insurance/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Insurance.All parameters = new() { diff --git a/official/docs/csharp/current/insurance/refund.cs b/official/docs/csharp/current/insurance/refund.cs index 430d5d1e..5a445c35 100644 --- a/official/docs/csharp/current/insurance/refund.cs +++ b/official/docs/csharp/current/insurance/refund.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Insurance insurance = await client.Insurance.Refund("ins_..."); diff --git a/official/docs/csharp/current/insurance/retrieve.cs b/official/docs/csharp/current/insurance/retrieve.cs index 31eb663f..ff9b0214 100644 --- a/official/docs/csharp/current/insurance/retrieve.cs +++ b/official/docs/csharp/current/insurance/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Insurance insurance = await client.Insurance.Retrieve("ins_..."); diff --git a/official/docs/csharp/current/options/create-with-options.cs b/official/docs/csharp/current/options/create-with-options.cs index 7e072726..ada9dba9 100644 --- a/official/docs/csharp/current/options/create-with-options.cs +++ b/official/docs/csharp/current/options/create-with-options.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Shipment.Create parameters = new() { diff --git a/official/docs/csharp/current/orders/buy.cs b/official/docs/csharp/current/orders/buy.cs index 3267038a..0685aeed 100644 --- a/official/docs/csharp/current/orders/buy.cs +++ b/official/docs/csharp/current/orders/buy.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Order order = await client.Order.Retrieve("order_..."); diff --git a/official/docs/csharp/current/orders/create.cs b/official/docs/csharp/current/orders/create.cs index 0fa40b7e..c06f4497 100644 --- a/official/docs/csharp/current/orders/create.cs +++ b/official/docs/csharp/current/orders/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/orders/one-call-buy.cs b/official/docs/csharp/current/orders/one-call-buy.cs index c52b2748..5beb5d5f 100644 --- a/official/docs/csharp/current/orders/one-call-buy.cs +++ b/official/docs/csharp/current/orders/one-call-buy.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Order.Create parameters = new() { diff --git a/official/docs/csharp/current/orders/retrieve.cs b/official/docs/csharp/current/orders/retrieve.cs index 74514c2f..7ea87ee6 100644 --- a/official/docs/csharp/current/orders/retrieve.cs +++ b/official/docs/csharp/current/orders/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Order order = await client.Order.Retrieve("order_..."); diff --git a/official/docs/csharp/current/pagination/get-next-page.cs b/official/docs/csharp/current/pagination/get-next-page.cs index dde4c76a..f172c1e7 100644 --- a/official/docs/csharp/current/pagination/get-next-page.cs +++ b/official/docs/csharp/current/pagination/get-next-page.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); // Get first page of results Parameters.Shipment.All parameters = new() diff --git a/official/docs/csharp/current/parcels/create.cs b/official/docs/csharp/current/parcels/create.cs index a9331ef2..63f879d6 100644 --- a/official/docs/csharp/current/parcels/create.cs +++ b/official/docs/csharp/current/parcels/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Parcel.Create parameters = new() { diff --git a/official/docs/csharp/current/parcels/retrieve.cs b/official/docs/csharp/current/parcels/retrieve.cs index c6c670a3..bf45f294 100644 --- a/official/docs/csharp/current/parcels/retrieve.cs +++ b/official/docs/csharp/current/parcels/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parcel parcel = await client.Parcel.Retrieve("prcl_..."); diff --git a/official/docs/csharp/current/payloads/list.cs b/official/docs/csharp/current/payloads/list.cs index 6859017a..c3fa2361 100644 --- a/official/docs/csharp/current/payloads/list.cs +++ b/official/docs/csharp/current/payloads/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); List payloads = await client.Event.RetrieveAllPayloads("evt_..."); diff --git a/official/docs/csharp/current/payloads/retrieve.cs b/official/docs/csharp/current/payloads/retrieve.cs index 306b5fcc..02befacf 100644 --- a/official/docs/csharp/current/payloads/retrieve.cs +++ b/official/docs/csharp/current/payloads/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Payload payload = await client.Event.RetrievePayload("evt_...", "payload_..."); diff --git a/official/docs/csharp/current/pickups/buy.cs b/official/docs/csharp/current/pickups/buy.cs index 916f306a..12b34925 100644 --- a/official/docs/csharp/current/pickups/buy.cs +++ b/official/docs/csharp/current/pickups/buy.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Pickup pickup = await client.Pickup.Retrieve("pickup_..."); diff --git a/official/docs/csharp/current/pickups/cancel.cs b/official/docs/csharp/current/pickups/cancel.cs index 97963267..b344d5e1 100644 --- a/official/docs/csharp/current/pickups/cancel.cs +++ b/official/docs/csharp/current/pickups/cancel.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Pickup pickup = await client.Pickup.Retrieve("pickup_..."); diff --git a/official/docs/csharp/current/pickups/create.cs b/official/docs/csharp/current/pickups/create.cs index d8719248..d9dfc9ba 100644 --- a/official/docs/csharp/current/pickups/create.cs +++ b/official/docs/csharp/current/pickups/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/pickups/list.cs b/official/docs/csharp/current/pickups/list.cs index 9eefd0c0..c7efcbc6 100644 --- a/official/docs/csharp/current/pickups/list.cs +++ b/official/docs/csharp/current/pickups/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Dictionary listParams = new Dictionary() { diff --git a/official/docs/csharp/current/pickups/retrieve.cs b/official/docs/csharp/current/pickups/retrieve.cs index 7dd89eef..0078fa72 100644 --- a/official/docs/csharp/current/pickups/retrieve.cs +++ b/official/docs/csharp/current/pickups/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Pickup pickup = await client.Pickup.Retrieve("pickup_..."); diff --git a/official/docs/csharp/current/rates/regenerate.cs b/official/docs/csharp/current/rates/regenerate.cs index 96c5ea28..fec74f7e 100644 --- a/official/docs/csharp/current/rates/regenerate.cs +++ b/official/docs/csharp/current/rates/regenerate.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/rates/retrieve-stateless.cs b/official/docs/csharp/current/rates/retrieve-stateless.cs index 6d447e2b..de8c6b91 100644 --- a/official/docs/csharp/current/rates/retrieve-stateless.cs +++ b/official/docs/csharp/current/rates/retrieve-stateless.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Beta.Rate.Retrieve shipmentDetails = new() { diff --git a/official/docs/csharp/current/rates/retrieve.cs b/official/docs/csharp/current/rates/retrieve.cs index 9b78a21d..85d658bb 100644 --- a/official/docs/csharp/current/rates/retrieve.cs +++ b/official/docs/csharp/current/rates/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Rate rate = await client.Rate.Retrieve("rate..."); diff --git a/official/docs/csharp/current/referral-customers/add-payment-method-with-bank-account.cs b/official/docs/csharp/current/referral-customers/add-payment-method-with-bank-account.cs index ede74100..319140d5 100644 --- a/official/docs/csharp/current/referral-customers/add-payment-method-with-bank-account.cs +++ b/official/docs/csharp/current/referral-customers/add-payment-method-with-bank-account.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); PaymentMethod paymentMethod = await client.Beta.ReferralCustomer.AddPaymentMethod("cus_...", "ba_...", PaymentMethod.Priority.Primary); diff --git a/official/docs/csharp/current/referral-customers/add-payment-method-with-credit-card.cs b/official/docs/csharp/current/referral-customers/add-payment-method-with-credit-card.cs index d57bdb92..885643f1 100644 --- a/official/docs/csharp/current/referral-customers/add-payment-method-with-credit-card.cs +++ b/official/docs/csharp/current/referral-customers/add-payment-method-with-credit-card.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); PaymentMethod paymentMethod = await client.Beta.ReferralCustomer.AddPaymentMethod("cus_...", "card_...", PaymentMethod.Priority.Primary); diff --git a/official/docs/csharp/current/referral-customers/create.cs b/official/docs/csharp/current/referral-customers/create.cs index 1d09b72b..6d5ac6f7 100644 --- a/official/docs/csharp/current/referral-customers/create.cs +++ b/official/docs/csharp/current/referral-customers/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.ReferralCustomer.Create parameters = new() { diff --git a/official/docs/csharp/current/referral-customers/list.cs b/official/docs/csharp/current/referral-customers/list.cs index 96db583f..146199fb 100644 --- a/official/docs/csharp/current/referral-customers/list.cs +++ b/official/docs/csharp/current/referral-customers/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.ReferralCustomer.All parameters = new() { diff --git a/official/docs/csharp/current/referral-customers/refund-by-amount.cs b/official/docs/csharp/current/referral-customers/refund-by-amount.cs index 8068cf0e..db18e3ef 100644 --- a/official/docs/csharp/current/referral-customers/refund-by-amount.cs +++ b/official/docs/csharp/current/referral-customers/refund-by-amount.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.ReferralCustomer.RefundByAmount parameters = new() { diff --git a/official/docs/csharp/current/referral-customers/refund-by-payment-log.cs b/official/docs/csharp/current/referral-customers/refund-by-payment-log.cs index 128809a0..bab9f869 100644 --- a/official/docs/csharp/current/referral-customers/refund-by-payment-log.cs +++ b/official/docs/csharp/current/referral-customers/refund-by-payment-log.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.ReferralCustomer.RefundByPaymentLog parameters = new() { diff --git a/official/docs/csharp/current/referral-customers/update.cs b/official/docs/csharp/current/referral-customers/update.cs index 93bae5ba..0757beb9 100644 --- a/official/docs/csharp/current/referral-customers/update.cs +++ b/official/docs/csharp/current/referral-customers/update.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); await client.ReferralCustomer.UpdateReferralEmail("user_...", "new_email@example.com"); } diff --git a/official/docs/csharp/current/refunds/create.cs b/official/docs/csharp/current/refunds/create.cs index 5fa19564..061f86c1 100644 --- a/official/docs/csharp/current/refunds/create.cs +++ b/official/docs/csharp/current/refunds/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Refund.Create parameters = new() { diff --git a/official/docs/csharp/current/refunds/list.cs b/official/docs/csharp/current/refunds/list.cs index fc5d93b7..a417416a 100644 --- a/official/docs/csharp/current/refunds/list.cs +++ b/official/docs/csharp/current/refunds/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Refund.All parameters = new() { diff --git a/official/docs/csharp/current/refunds/retrieve.cs b/official/docs/csharp/current/refunds/retrieve.cs index 71f2165c..dca28ffd 100644 --- a/official/docs/csharp/current/refunds/retrieve.cs +++ b/official/docs/csharp/current/refunds/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Refund refund = await client.Refund.Retrieve("rfnd_..."); diff --git a/official/docs/csharp/current/reports/create.cs b/official/docs/csharp/current/reports/create.cs index 4e06fc71..e634dbcf 100644 --- a/official/docs/csharp/current/reports/create.cs +++ b/official/docs/csharp/current/reports/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Report.Create parameters = new() { diff --git a/official/docs/csharp/current/reports/list.cs b/official/docs/csharp/current/reports/list.cs index 19cf3310..2c0f8180 100644 --- a/official/docs/csharp/current/reports/list.cs +++ b/official/docs/csharp/current/reports/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Report.All parameters = new() { diff --git a/official/docs/csharp/current/reports/retrieve.cs b/official/docs/csharp/current/reports/retrieve.cs index efb10b2f..79a58d31 100644 --- a/official/docs/csharp/current/reports/retrieve.cs +++ b/official/docs/csharp/current/reports/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Report report = await client.Report.Retrieve("plrep_..."); diff --git a/official/docs/csharp/current/returns/create.cs b/official/docs/csharp/current/returns/create.cs index 72bf9142..b0a9c8fc 100644 --- a/official/docs/csharp/current/returns/create.cs +++ b/official/docs/csharp/current/returns/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Shipment.Create parameters = new() { diff --git a/official/docs/csharp/current/scan-form/create.cs b/official/docs/csharp/current/scan-form/create.cs index 3351aca5..38f3d850 100644 --- a/official/docs/csharp/current/scan-form/create.cs +++ b/official/docs/csharp/current/scan-form/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/scan-form/list.cs b/official/docs/csharp/current/scan-form/list.cs index 3a0f32b3..1ae106fe 100644 --- a/official/docs/csharp/current/scan-form/list.cs +++ b/official/docs/csharp/current/scan-form/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.ScanForm.All parameters = new() { diff --git a/official/docs/csharp/current/scan-form/retrieve.cs b/official/docs/csharp/current/scan-form/retrieve.cs index 627ba196..1ba82777 100644 --- a/official/docs/csharp/current/scan-form/retrieve.cs +++ b/official/docs/csharp/current/scan-form/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); ScanForm scanForm = await client.ScanForm.Retrieve("sf_..."); diff --git a/official/docs/csharp/current/shipments/buy.cs b/official/docs/csharp/current/shipments/buy.cs index 0a229ab7..336261c5 100644 --- a/official/docs/csharp/current/shipments/buy.cs +++ b/official/docs/csharp/current/shipments/buy.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/shipments/create.cs b/official/docs/csharp/current/shipments/create.cs index 9b2d4786..66af6d1d 100644 --- a/official/docs/csharp/current/shipments/create.cs +++ b/official/docs/csharp/current/shipments/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); // Create a shipment using all data in one API call diff --git a/official/docs/csharp/current/shipments/label.cs b/official/docs/csharp/current/shipments/label.cs index bdb415d9..f9f5505a 100644 --- a/official/docs/csharp/current/shipments/label.cs +++ b/official/docs/csharp/current/shipments/label.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/shipments/list.cs b/official/docs/csharp/current/shipments/list.cs index 8c1a6190..d4508239 100644 --- a/official/docs/csharp/current/shipments/list.cs +++ b/official/docs/csharp/current/shipments/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Shipment.All parameters = new() { diff --git a/official/docs/csharp/current/shipments/one-call-buy.cs b/official/docs/csharp/current/shipments/one-call-buy.cs index 47595aab..ec3bfcea 100644 --- a/official/docs/csharp/current/shipments/one-call-buy.cs +++ b/official/docs/csharp/current/shipments/one-call-buy.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Shipment.Create parameters = new() { diff --git a/official/docs/csharp/current/shipments/retrieve.cs b/official/docs/csharp/current/shipments/retrieve.cs index 27de2e16..d2cec9ad 100644 --- a/official/docs/csharp/current/shipments/retrieve.cs +++ b/official/docs/csharp/current/shipments/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/shipping-insurance/insure.cs b/official/docs/csharp/current/shipping-insurance/insure.cs index 2d8b768f..59571e70 100644 --- a/official/docs/csharp/current/shipping-insurance/insure.cs +++ b/official/docs/csharp/current/shipping-insurance/insure.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/shipping-refund/refund.cs b/official/docs/csharp/current/shipping-refund/refund.cs index 8ef58c12..811f4d97 100644 --- a/official/docs/csharp/current/shipping-refund/refund.cs +++ b/official/docs/csharp/current/shipping-refund/refund.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/smartrate/retrieve-estimated-delivery-date.cs b/official/docs/csharp/current/smartrate/retrieve-estimated-delivery-date.cs index 0a931a76..84d68c63 100644 --- a/official/docs/csharp/current/smartrate/retrieve-estimated-delivery-date.cs +++ b/official/docs/csharp/current/smartrate/retrieve-estimated-delivery-date.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/smartrate/retrieve-time-in-transit-statistics.cs b/official/docs/csharp/current/smartrate/retrieve-time-in-transit-statistics.cs index e5b6941c..a62b7acb 100644 --- a/official/docs/csharp/current/smartrate/retrieve-time-in-transit-statistics.cs +++ b/official/docs/csharp/current/smartrate/retrieve-time-in-transit-statistics.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Shipment shipment = await client.Shipment.Retrieve("shp_..."); diff --git a/official/docs/csharp/current/tax-identifiers/create.cs b/official/docs/csharp/current/tax-identifiers/create.cs index 0d0893b6..f4caea69 100644 --- a/official/docs/csharp/current/tax-identifiers/create.cs +++ b/official/docs/csharp/current/tax-identifiers/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Shipment.Create parameters = new() { diff --git a/official/docs/csharp/current/trackers/create.cs b/official/docs/csharp/current/trackers/create.cs index 28d7ac0d..044c7ced 100644 --- a/official/docs/csharp/current/trackers/create.cs +++ b/official/docs/csharp/current/trackers/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Tracker.Create parameters = new() { diff --git a/official/docs/csharp/current/trackers/list.cs b/official/docs/csharp/current/trackers/list.cs index 623623c2..a794995b 100644 --- a/official/docs/csharp/current/trackers/list.cs +++ b/official/docs/csharp/current/trackers/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Tracker.All parameters = new() { diff --git a/official/docs/csharp/current/trackers/retrieve.cs b/official/docs/csharp/current/trackers/retrieve.cs index f4b92818..8bf2cfae 100644 --- a/official/docs/csharp/current/trackers/retrieve.cs +++ b/official/docs/csharp/current/trackers/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Tracker tracker = await client.Tracker.Retrieve("trk_..."); diff --git a/official/docs/csharp/current/users/retrieve.cs b/official/docs/csharp/current/users/retrieve.cs index a3cabfd2..a444144d 100644 --- a/official/docs/csharp/current/users/retrieve.cs +++ b/official/docs/csharp/current/users/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); // Retrieve the authenticated user User user = await client.User.RetrieveMe(); diff --git a/official/docs/csharp/current/users/update.cs b/official/docs/csharp/current/users/update.cs index 51cf104b..ce12a8ba 100644 --- a/official/docs/csharp/current/users/update.cs +++ b/official/docs/csharp/current/users/update.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); User user = await client.User.RetrieveMe(); diff --git a/official/docs/csharp/current/webhooks/create.cs b/official/docs/csharp/current/webhooks/create.cs index c422a698..c4fe3570 100644 --- a/official/docs/csharp/current/webhooks/create.cs +++ b/official/docs/csharp/current/webhooks/create.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Webhook.Create parameters = new() { diff --git a/official/docs/csharp/current/webhooks/delete.cs b/official/docs/csharp/current/webhooks/delete.cs index a4ff8945..2daa532b 100644 --- a/official/docs/csharp/current/webhooks/delete.cs +++ b/official/docs/csharp/current/webhooks/delete.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Webhook webhook = await client.Webhook.Retrieve("hook_..."); diff --git a/official/docs/csharp/current/webhooks/list.cs b/official/docs/csharp/current/webhooks/list.cs index 4803ffcb..73df4c97 100644 --- a/official/docs/csharp/current/webhooks/list.cs +++ b/official/docs/csharp/current/webhooks/list.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Parameters.Webhook.All parameters = new() { diff --git a/official/docs/csharp/current/webhooks/retrieve.cs b/official/docs/csharp/current/webhooks/retrieve.cs index aab235b9..c29339c5 100644 --- a/official/docs/csharp/current/webhooks/retrieve.cs +++ b/official/docs/csharp/current/webhooks/retrieve.cs @@ -11,7 +11,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Webhook webhook = await client.Webhook.Retrieve("hook_..."); diff --git a/official/docs/csharp/current/webhooks/update.cs b/official/docs/csharp/current/webhooks/update.cs index fc2a2bc1..4abe5a80 100644 --- a/official/docs/csharp/current/webhooks/update.cs +++ b/official/docs/csharp/current/webhooks/update.cs @@ -12,7 +12,7 @@ public class Examples { public static async Task Main() { - var client = new EasyPost.Client("EASYPOST_API_KEY"); + var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); Webhook webhook = await client.Webhook.Retrieve("hook_...");