Skip to content

Update mocks and tests for the Core API v4.0.0 schema #1245

Description

@pfferrari

The Core API public resources schema (https://core.commercelayer.io/api/public/resources) has been updated to release-v4.0.0, introducing the new payments resources (API version 2026-05).

This requires:

  • Updating the mocked response in packages/app-elements/src/mocks/data/core_resources.ts (134 → 152 resources).
  • Updating the orderSuggestionsSnapshot in packages/app-elements/src/ui/forms/CodeEditor/fetchCoreResourcesSuggestions.test.ts, which now includes new order fields (e.g. session_amount_*, placeable) and relationships (e.g. payment_sessions, payment_transactions, payment_authorizations).

🤖 Generated with Claude Code

Activity

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions