Skip to content

test(batch): verify tags serialize in batch payloads#117

Closed
cpenned wants to merge 3 commits into
mainfrom
cursor/batch-scheduled-tags-attachments-b476
Closed

test(batch): verify tags serialize in batch payloads#117
cpenned wants to merge 3 commits into
mainfrom
cursor/batch-scheduled-tags-attachments-b476

Conversation

@cpenned

@cpenned cpenned commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

The batch send API supports tags on individual emails. The Java SDK already models tags on CreateEmailOptions, which Batch.send() reuses. This change documents that support and adds a regression test that verifies tags are included in the serialized payload.

Changes

  • Document that batch emails support tags in Batch.send() javadoc
  • Add createBatchEmailOption() test helper with tags
  • Add testCreateBatchEmails_SerializesTags to assert the POST payload includes tags

Test plan

  • ./gradlew test --tests "com.resend.services.batch.BatchTest"
  • ./gradlew test
Open in Web Open in Cursor 

Summary by cubic

Clarify batch send behavior: only per-email tags are supported; attachments and scheduled_at are not. Update Batch.send() Javadoc and add a regression test verifying tags are included in the POST /emails/batch payload.

Written for commit 112250f. Summary will update on new commits.

Review in cubic

…batch payloads

Document batch email support for scheduled_at, tags, and attachments in
Batch.send() javadoc. Add a serialization test to ensure these fields are
included in the JSON payload sent to POST /emails/batch.

Co-authored-by: cpenned <cpenned@users.noreply.github.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 2 files

Confidence score: 5/5

  • Safe to merge after the addressed issues were fixed.

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread src/test/java/com/resend/services/batch/BatchTest.java
Clarify that only tags are supported on batch emails. Attachments and
scheduled_at remain unsupported. Update batch test fixtures and serialization
test accordingly.

Co-authored-by: cpenned <cpenned@users.noreply.github.com>
@cursor cursor Bot changed the title test(batch): verify scheduled_at, tags, and attachments in batch payloads test(batch): verify tags serialize in batch payloads Jul 13, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 3 files (changes from recent commits).

Requires human review: Auto-approval blocked by 1 unresolved issue from previous reviews.

Re-trigger cubic

Co-authored-by: cpenned <cpenned@users.noreply.github.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0 issues found across 2 files (changes from recent commits).

Auto-approved: Adds Javadoc and a regression test verifying that tags are serialized in batch payloads. No behavior changes.

Re-trigger cubic

@cpenned cpenned closed this Jul 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants