Skip to content

feat: handle duplicate notification setting error from api-specifications#2423 - #234

Merged
jedpattersonpaddle merged 4 commits into
mainfrom
cursor/dx-1082-sdk-spec-sync-a874
Aug 6, 2026
Merged

feat: handle duplicate notification setting error from api-specifications#2423#234
jedpattersonpaddle merged 4 commits into
mainfrom
cursor/dx-1082-sdk-spec-sync-a874

Conversation

@cursor

@cursor cursor Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds explicit regression coverage for the public notification_setting_cannot_be_duplicate request error introduced by api-specifications#2423 and tracked in DX-1082. The package version is bumped from 3.8.0 to 3.9.0 for the additive API contract.

Spec-to-SDK mapping

Spec change SDK files changed
New 409 request_error for duplicate notification settings src/__tests__/mocks/resources/notification-settings.mock.ts adds the exact error fixture; src/__tests__/resources/notification-settings.test.ts verifies both create() and update() preserve the exact code and detail in ApiError
Additive public contract release artifact CHANGELOG.md; package.json

Intentionally excluded

No production resource, response type, entity, enum, notification mirror, event class, or webhook mock changed. ErrorDetail.code and ErrorDetail.detail already accept arbitrary strings, ApiError already preserves them, and both notification-setting methods already route errors through BaseResource.handleResponse(). The payment-attempt ErrorCode union is unrelated to top-level API request errors.

The fixture uses the established generated URL convention: https://developer.paddle.com/errors/notifications/notification_setting_cannot_be_duplicate. The page is not published yet, so a human should confirm the generated documentation URL when the API docs deploy.

Validation

  • pnpm install --frozen-lockfile — passed
  • pnpm build — passed
  • pnpm typecheck:tests — passed
  • pnpm test --runInBand — 34 suites, 277 tests passed
  • pnpm test --runInBand src/__tests__/resources/notification-settings.test.ts — 1 suite, 7 tests passed
  • pnpm prettier — passed
  • pnpm lint — passed

Created by an automated spec-sync agent.

Open in Web View Automation 

cursoragent and others added 2 commits August 3, 2026 15:01
Co-authored-by: Jed Patterson <jed.patterson@paddle.com>
Co-authored-by: Jed Patterson <jed.patterson@paddle.com>
cursoragent and others added 2 commits August 6, 2026 09:29
Keep the duplicate notification setting error coverage without bumping
the published package version.

Co-authored-by: Jed Patterson <jed.patterson@paddle.com>
Keep both Unreleased Added entries from main and this branch.

Co-authored-by: Jed Patterson <jed.patterson@paddle.com>
@jedpattersonpaddle
jedpattersonpaddle marked this pull request as ready for review August 6, 2026 13:11
@jedpattersonpaddle
jedpattersonpaddle requested a review from a team as a code owner August 6, 2026 13:11
@jedpattersonpaddle
jedpattersonpaddle merged commit 5de0b40 into main Aug 6, 2026
6 of 7 checks passed
@jedpattersonpaddle
jedpattersonpaddle deleted the cursor/dx-1082-sdk-spec-sync-a874 branch August 6, 2026 13:11
@jedpattersonpaddle jedpattersonpaddle mentioned this pull request Aug 7, 2026
3 tasks
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