Skip to content

test: cover transaction revision error from api-specifications#2408 - #231

Draft
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/dx-1013-sdk-spec-sync-6e0f
Draft

test: cover transaction revision error from api-specifications#2408#231
cursor[bot] wants to merge 2 commits into
mainfrom
cursor/dx-1013-sdk-spec-sync-6e0f

Conversation

@cursor

@cursor cursor Bot commented Jul 20, 2026

Copy link
Copy Markdown

Summary

Adds focused contract coverage confirming that the Node SDK passes the updated transaction_invalid_status_to_revise error code and detail through unchanged, including the server guidance that lists past_due as a revisable transaction status. Bumps the package patch version to 3.8.1 and records the clarification in the changelog.

Spec-to-SDK mapping

Specification change SDK files changed
Runtime error detail now lists billed, past_due, and completed src/__tests__/internal/base-resource.test.ts — verifies ApiError.code and ApiError.detail pass through unchanged
Patch-level SDK sync metadata package.json — version 3.8.1; CHANGELOG.md — Unreleased entry

Intentionally excluded

  • No production resource, operation, entity, response type, enum, notification, event, or mock changes: the HTTP status, error type, error code, endpoint schema, and webhook surface are unchanged.
  • The error title, description, and troubleshooting solution are service-generation/documentation metadata not modeled by this SDK.
  • The changelog does not claim that this SDK enabled past_due revisions; it only records the server-guidance clarification and existing generic pass-through behavior.

Validation

  • pnpm install --frozen-lockfile — passed
  • pnpm build — passed
  • pnpm typecheck:tests — passed
  • pnpm test --runInBand — passed (34 suites, 276 tests)
  • pnpm lint — only the documented generated src/version.ts eol-last exception; pnpm exec eslint ./src --ignore-pattern src/version.ts passed
  • pnpm exec prettier --check src/__tests__/internal/base-resource.test.ts — passed

This PR was created by an automated spec-sync agent.

Open in Web View Automation 

cursoragent and others added 2 commits July 20, 2026 15:20
Co-authored-by: Jed Patterson <jed.patterson@paddle.com>
Co-authored-by: Jed Patterson <jed.patterson@paddle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants