Skip to content

Commit

Permalink
Adding send_at to Transactional API args. (#97)
Browse files Browse the repository at this point in the history
Co-authored-by: chance <[email protected]>
  • Loading branch information
chance-schultz and chance authored Jan 31, 2022
1 parent 07bf308 commit 0632b10
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/api/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type SendEmailRequestOptionalOptions = Partial<{
send_to_unsubscribed: boolean;
tracked: boolean;
queue_draft: boolean;
send_at: number;
}>;

type SendEmailRequestWithTemplate = SendEmailRequestRequiredOptions &
Expand Down Expand Up @@ -57,6 +58,7 @@ export class SendEmailRequest {
send_to_unsubscribed: opts.send_to_unsubscribed,
tracked: opts.tracked,
queue_draft: opts.queue_draft,
send_at: opts.send_at,
};

if ('transactional_message_id' in opts) {
Expand Down

0 comments on commit 0632b10

Please sign in to comment.