Skip to content

feat(issuing): add dispute amend, remove card schedule-revocation#437

Open
armando-rodriguez-cko wants to merge 1 commit into
masterfrom
feat/issuing-disputes-amend-remove-schedule-revocation
Open

feat(issuing): add dispute amend, remove card schedule-revocation#437
armando-rodriguez-cko wants to merge 1 commit into
masterfrom
feat/issuing-disputes-amend-remove-schedule-revocation

Conversation

@armando-rodriguez-cko

Copy link
Copy Markdown
Contributor

Aligns the Issuing surface with the 2026-06-29 API spec. The Node SDK is untyped (all bodies are plain object), so only client-method-level changes apply — field/schema changes flow through the object bodies unchanged.

Disputes

  • Add amendDispute(disputeId, body)POST /issuing/disputes/{disputeId}/amend (new, non-deprecated). Body supports reason, amount, evidence, fraud_details, reason_change_justification, action_response.
  • escalateDispute now accepts an optional body (for fraud_details).
  • Correct submitDispute — the spec keeps POST /issuing/disputes/{disputeId}/submit present with deprecated: true. It was previously (incorrectly) documented as removed / returns 404 on 2026-04-15. Now marked deprecated-but-present, message points at create / amend, and it accepts an optional body. Its existing test stays.

Cards (⚠️ breaking)

  • Remove scheduleCardRevocation and cancelScheduledCardRevocationPOST/DELETE /issuing/cards/{cardId}/schedule-revocation were removed from the API. Revocation scheduling is now expressed via the update-card request's revocation_date.

Other

  • Updated .d.ts declarations for all touched methods.
  • Removed the 4 schedule-revocation unit tests; added an amendDispute unit test (all 6 fields incl. action_response) and enriched the escalate test with fraud_details.

Testing

Full suite: 845 passing, 0 failing, 84 pending (npm test). No lingering schedule-revocation references in src/test/types.

Breaking changes for release notes

  • Removal of scheduleCardRevocation / cancelScheduledCardRevocation.

Align the Issuing surface with the 2026-06-29 API spec.

Disputes:
- Add amendDispute(disputeId, body) (POST /issuing/disputes/{id}/amend)
- escalateDispute now accepts an optional body (fraud_details)
- Correct submitDispute: the spec keeps it present with deprecated: true
  (it was wrongly documented as removed / returning 404). Refresh the
  deprecation message to point at createDispute / amendDispute; it now
  accepts an optional body.

Cards (BREAKING):
- Remove scheduleCardRevocation and cancelScheduledCardRevocation; the
  POST/DELETE /issuing/cards/{id}/schedule-revocation endpoints were
  removed from the API. Revocation scheduling is now expressed via the
  update-card request's revocation_date.

Updates the .d.ts declarations and unit tests accordingly.
Full suite: 845 passing, 0 failing, 84 pending.
@armando-rodriguez-cko armando-rodriguez-cko force-pushed the feat/issuing-disputes-amend-remove-schedule-revocation branch from d405e11 to 782d137 Compare July 7, 2026 10:44
@sonarqubecloud

sonarqubecloud Bot commented Jul 7, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant