From 4b9272188fc6a63dfb8f628b4af72c602b940d90 Mon Sep 17 00:00:00 2001 From: Dan Ho <70310805+djanhjo@users.noreply.github.com> Date: Wed, 29 Mar 2023 20:40:17 -0400 Subject: [PATCH 1/2] Transactional - amp_body prop to body_amp for consistency --- examples/transactional-email.js | 4 ++-- lib/api/requests.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/transactional-email.js b/examples/transactional-email.js index f3e96bf..098d325 100644 --- a/examples/transactional-email.js +++ b/examples/transactional-email.js @@ -34,8 +34,8 @@ let req = new SendEmailRequest({ bcc: '', subject: '', body: '', - plaintext_body: '', - amp_body: '', + body_plaintext: '', + body_amp: '', fake_bcc: false, disable_message_retention: false, diff --git a/lib/api/requests.ts b/lib/api/requests.ts index ff3281c..c15636f 100644 --- a/lib/api/requests.ts +++ b/lib/api/requests.ts @@ -11,8 +11,8 @@ export type SendEmailRequestOptionalOptions = Partial<{ preheader: string; reply_to: string; bcc: string; - plaintext_body: string; - amp_body: string; + body_plaintext: string; + body_amp: string; fake_bcc: boolean; disable_message_retention: boolean; send_to_unsubscribed: boolean; @@ -53,8 +53,8 @@ export class SendEmailRequest { preheader: opts.preheader, reply_to: opts.reply_to, bcc: opts.bcc, - plaintext_body: opts.plaintext_body, - amp_body: opts.amp_body, + body_plaintext: opts.body_plaintext, + body_amp: opts.body_amp, fake_bcc: opts.fake_bcc, disable_message_retention: opts.disable_message_retention, send_to_unsubscribed: opts.send_to_unsubscribed, From 3e9376df033a18b77e061f9c34ecf7156dae9fc5 Mon Sep 17 00:00:00 2001 From: Dan Ho <70310805+djanhjo@users.noreply.github.com> Date: Wed, 29 Mar 2023 21:16:39 -0400 Subject: [PATCH 2/2] updating plaintext property --- examples/transactional-email.js | 2 +- lib/api/requests.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/transactional-email.js b/examples/transactional-email.js index 098d325..8a4410c 100644 --- a/examples/transactional-email.js +++ b/examples/transactional-email.js @@ -34,7 +34,7 @@ let req = new SendEmailRequest({ bcc: '', subject: '', body: '', - body_plaintext: '', + body_plain: '', body_amp: '', fake_bcc: false, diff --git a/lib/api/requests.ts b/lib/api/requests.ts index c15636f..2ff92f6 100644 --- a/lib/api/requests.ts +++ b/lib/api/requests.ts @@ -11,7 +11,7 @@ export type SendEmailRequestOptionalOptions = Partial<{ preheader: string; reply_to: string; bcc: string; - body_plaintext: string; + body_plain: string; body_amp: string; fake_bcc: boolean; disable_message_retention: boolean; @@ -53,7 +53,7 @@ export class SendEmailRequest { preheader: opts.preheader, reply_to: opts.reply_to, bcc: opts.bcc, - body_plaintext: opts.body_plaintext, + body_plain: opts.body_plain, body_amp: opts.body_amp, fake_bcc: opts.fake_bcc, disable_message_retention: opts.disable_message_retention,