diff --git a/official/docs/csharp/current/webhooks/create.cs b/official/docs/csharp/current/webhooks/create.cs index 1c33659f..b5127421 100644 --- a/official/docs/csharp/current/webhooks/create.cs +++ b/official/docs/csharp/current/webhooks/create.cs @@ -16,7 +16,10 @@ public static async Task Main() { Url = "example.com", Secret = "ABC123", - CustomHeaders = new EasyPost.Models.API.WebhookCustomHeader { Name = "X-Header-Name", Value = "header_value" } + CustomHeaders = new List + { + new EasyPost.Models.API.WebhookCustomHeader { Name = "X-Header-Name", Value = "header_value" } + } }; EasyPost.Models.API.Webhook webhook = await client.Webhook.Create(parameters); diff --git a/official/docs/csharp/current/webhooks/update.cs b/official/docs/csharp/current/webhooks/update.cs index 86a82aab..e1039977 100644 --- a/official/docs/csharp/current/webhooks/update.cs +++ b/official/docs/csharp/current/webhooks/update.cs @@ -15,7 +15,10 @@ public static async Task Main() EasyPost.Parameters.Webhook.Create parameters = new() { Secret = "ABC123", - CustomHeaders = new EasyPost.Models.API.WebhookCustomHeader { Name = "X-Header-Name", Value = "header_value" } + CustomHeaders = new List + { + new EasyPost.Models.API.WebhookCustomHeader { Name = "X-Header-Name", Value = "header_value" } + } }; EasyPost.Models.API.Webhook webhook = await client.Webhook.Update("hook_...", parameters); diff --git a/official/docs/java/current/webhooks/create.java b/official/docs/java/current/webhooks/create.java index 946c586c..74aff2f0 100644 --- a/official/docs/java/current/webhooks/create.java +++ b/official/docs/java/current/webhooks/create.java @@ -13,11 +13,12 @@ public static void main(String[] args) throws EasyPostException { HashMap params = new HashMap(); params.put("url", "example.com"); params.put("webhook_secret", "A1B2C3"); - params.put("custom_headers", new HashMap() { - { - put("X-Header-Name", "header_value"); - } - }); + ArrayList> customHeaders = new ArrayList<>(); + HashMap header = new HashMap<>(); + header.put("name", "X-Header-Name"); + header.put("value", "header_value"); + customHeaders.add(header); + params.put("custom_headers", customHeaders); Webhook webhook = client.webhook.create(params); diff --git a/official/docs/java/current/webhooks/update.java b/official/docs/java/current/webhooks/update.java index 2f0e3e7f..0b2c9602 100644 --- a/official/docs/java/current/webhooks/update.java +++ b/official/docs/java/current/webhooks/update.java @@ -12,11 +12,12 @@ public static void main(String[] args) throws EasyPostException { HashMap params = new HashMap(); params.put("webhook_secret", "A1B2C3"); - params.put("custom_headers", new HashMap() { - { - put("X-Header-Name", "header_value"); - } - }); + ArrayList> customHeaders = new ArrayList<>(); + HashMap header = new HashMap<>(); + header.put("name", "X-Header-Name"); + header.put("value", "header_value"); + customHeaders.add(header); + params.put("custom_headers", customHeaders); Webhook webhook = client.webhook.update("hook_...", params); diff --git a/official/docs/node/current/webhooks/create.js b/official/docs/node/current/webhooks/create.js index 6a6badf8..b49c4306 100644 --- a/official/docs/node/current/webhooks/create.js +++ b/official/docs/node/current/webhooks/create.js @@ -6,9 +6,12 @@ const client = new EasyPostClient('EASYPOST_API_KEY'); const webhook = await client.Webhook.create({ url: 'example.com', webhook_secret: 'A1B2C3', - customer_headers: { - 'X-Header-Name': 'header_value', - }, + customer_headers: [ + { + name: 'X-Header-Name', + value: 'header_value', + }, + ], }); console.log(webhook); diff --git a/official/docs/node/current/webhooks/update.js b/official/docs/node/current/webhooks/update.js index 95a0a276..e436667b 100644 --- a/official/docs/node/current/webhooks/update.js +++ b/official/docs/node/current/webhooks/update.js @@ -5,9 +5,12 @@ const client = new EasyPostClient('EASYPOST_API_KEY'); (async () => { const webhook = await client.Webhook.update('hook_...', { webhook_secret: 'A1B2C3', - customer_headers: { - 'X-Header-Name': 'header_value', - }, + customer_headers: [ + { + name: 'X-Header-Name', + value: 'header_value', + }, + ], }); console.log(webhook); diff --git a/official/docs/php/current/webhooks/create.php b/official/docs/php/current/webhooks/create.php index 7e435faf..96531e5e 100644 --- a/official/docs/php/current/webhooks/create.php +++ b/official/docs/php/current/webhooks/create.php @@ -6,7 +6,8 @@ 'url' => 'example.com', 'webhook_secret' => 'A1B2C3', 'custom_headers' => [ - 'X-Header-Name' => 'header_value', + ['name' => 'X-Header-Name'], + ['value' => 'header_value'], ], ]); diff --git a/official/docs/php/current/webhooks/update.php b/official/docs/php/current/webhooks/update.php index a75d05e0..abca5442 100644 --- a/official/docs/php/current/webhooks/update.php +++ b/official/docs/php/current/webhooks/update.php @@ -5,8 +5,9 @@ $webhook = $client->webhook->update('hook_...', [ 'webhook_secret' => 'A1B2C3', 'custom_headers' => [ - 'X-Header-Name' => 'header_value', - ] + ['name' => 'X-Header-Name'], + ['value' => 'header_value'], + ], ]); echo $webhook; diff --git a/official/docs/python/current/billing/add-stripe-bank-account.py b/official/docs/python/current/billing/add-stripe-bank-account.py index f8564e21..cb77fddd 100644 --- a/official/docs/python/current/billing/add-stripe-bank-account.py +++ b/official/docs/python/current/billing/add-stripe-bank-account.py @@ -3,7 +3,7 @@ client = easypost.EasyPostClient("EASYPOST_API_KEY") payment_method = client.referral_customer.add_bank_account_from_stripe( - referral_api_key="REFERRAL_CUSTOMER_PROD_API_KEY", + referral_api_key="REFERRAL_USER_API_KEY", financial_connections_id="fca_...", mandate_data={ "ip_address": "127.0.0.1", diff --git a/official/docs/python/current/billing/add-stripe-credit-card.py b/official/docs/python/current/billing/add-stripe-credit-card.py index 00160849..2575e554 100644 --- a/official/docs/python/current/billing/add-stripe-credit-card.py +++ b/official/docs/python/current/billing/add-stripe-credit-card.py @@ -3,8 +3,8 @@ client = easypost.EasyPostClient("EASYPOST_API_KEY") payment_method = client.referral_customer.add_credit_card_from_stripe( - referral_api_key="REFERRAL_CUSTOMER_PROD_API_KEY", - financial_connections_id="seti_...", + referral_api_key="REFERRAL_USER_API_KEY", + payment_method_id="seti_...", priority="primary", ) diff --git a/official/docs/python/current/webhooks/create.py b/official/docs/python/current/webhooks/create.py index 5447d646..7f98a4c4 100644 --- a/official/docs/python/current/webhooks/create.py +++ b/official/docs/python/current/webhooks/create.py @@ -5,9 +5,12 @@ webhook = client.webhook.create( url="example.com", webhook_secret="A1B2C3", - custom_headers={ - "X-Header-Name": "header_value", - }, + custom_headers=[ + { + "name": "X-Header-Name", + "value": "header_value", + } + ], ) print(webhook) diff --git a/official/docs/python/current/webhooks/update.py b/official/docs/python/current/webhooks/update.py index d4ab5962..e0801715 100644 --- a/official/docs/python/current/webhooks/update.py +++ b/official/docs/python/current/webhooks/update.py @@ -5,9 +5,12 @@ updated_webhook = client.webhook.update( "hook_...", webhook_secret="A1B2C3", - custom_headers={ - "X-Header-Name": "header_value", - }, + custom_headers=[ + { + "name": "X-Header-Name", + "value": "header_value", + } + ], ) print(updated_webhook) diff --git a/official/docs/ruby/current/webhooks/create.rb b/official/docs/ruby/current/webhooks/create.rb index e30059d8..09220041 100644 --- a/official/docs/ruby/current/webhooks/create.rb +++ b/official/docs/ruby/current/webhooks/create.rb @@ -5,9 +5,12 @@ webhook = client.webhook.create( url: 'example.com', webhook_secret: 'A1B2C3', - custom_headers: { - 'X-Header-Name' => 'header_value', - }, + custom_headers: [ + { + name: 'X-Header-Name', + value: 'header_value', + }, + ], ) puts webhook diff --git a/official/docs/ruby/current/webhooks/update.rb b/official/docs/ruby/current/webhooks/update.rb index ddf94d8a..03357036 100644 --- a/official/docs/ruby/current/webhooks/update.rb +++ b/official/docs/ruby/current/webhooks/update.rb @@ -5,9 +5,12 @@ webhook = client.webhook.update( 'hook_...', { webhook_secret: 'A1B2C3', - custom_headers: { - 'X-Header-Name' => 'header_value', - }, + custom_headers: [ + { + name: 'X-Header-Name', + value: 'header_value', + }, + ], }, )