From 20c913298f3b57c9ba94dc62718bf3f236570718 Mon Sep 17 00:00:00 2001 From: Gabriel Garcia Date: Wed, 14 Oct 2026 11:25:48 +0200 Subject: [PATCH] chore(example): bump GBR contract_details schema version to 7 Pin the United Kingdom to contract_details v7 in the example app and document v7 in the GBR schema changelog and the version matrix. v7 stops hiding wage_type and the daily schedule from Partners API consumers. Depends on the Tiger change shipping first (tiger!100534). Co-Authored-By: Claude Sonnet 5.5 --- .../eor/contract-details/countries/GBR.md | 28 +++++++++++++++++-- .../eor/contract-details/countries/README.md | 2 +- .../flows/Onboarding/jsonSchemaVersions.ts | 2 +- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/docs/schema-changes/eor/contract-details/countries/GBR.md b/docs/schema-changes/eor/contract-details/countries/GBR.md index f09c30fa1..ff087d59b 100644 --- a/docs/schema-changes/eor/contract-details/countries/GBR.md +++ b/docs/schema-changes/eor/contract-details/countries/GBR.md @@ -4,11 +4,35 @@ Schema versions for employee onboarding in United Kingdom. ## Current Version -**Contract Details:** v6 +**Contract Details:** v7 ## Contract Details -### v6 - Current +### v7 - Current + +**What changed:** + +- Use the [JSON schema comparison](https://remote-flows-eight.vercel.app/?demo=json-schema-comparison) tool (country `GBR`) to inspect field-level diffs between your current pin and v7. Prefer jumping straight from v3 to v7 when upgrading. +- Hourly wage type and the daily schedule are no longer hidden from Partners API (`remote_api`) consumers. `wage_type` and `hourly_gross_salary` are now returned, and the `daily_schedule` component (`daily_schedule`, `schedule_type`, `work_hours_per_week`, `shift_pattern`) replaces the plain `work_hours_per_week` field. +- `annual_gross_salary` is only required when `wage_type` is `salary`. Part-time contracts must still use `wage_type` `salary`. + +**Migration:** + +Render and submit `wage_type` (`salary` or `hourly`), `hourly_gross_salary` when `wage_type` is `hourly`, and the daily schedule fields instead of the plain `work_hours_per_week` field. Consumers staying on v6 or earlier are unaffected. + +```tsx + +``` + +--- + +### v6 **What changed:** diff --git a/docs/schema-changes/eor/contract-details/countries/README.md b/docs/schema-changes/eor/contract-details/countries/README.md index f66255eb7..9051b0a2a 100644 --- a/docs/schema-changes/eor/contract-details/countries/README.md +++ b/docs/schema-changes/eor/contract-details/countries/README.md @@ -82,7 +82,7 @@ These countries have upgraded to different versions, check each guide to know ho | Spain | ESP | v7 | September 2026 | | Serbia | SRB | v2 | March 2026 | | Sweden | SWE | v5 | October 2026 | -| United Kingdom | GBR | v6 | October 2026 | +| United Kingdom | GBR | v7 | October 2026 | | United Arab Emirates | ARE | v3 | March 2026 | | United States | USA | v8 | October 2026 | diff --git a/example/src/flows/Onboarding/jsonSchemaVersions.ts b/example/src/flows/Onboarding/jsonSchemaVersions.ts index 2870a70ab..121d56cb0 100644 --- a/example/src/flows/Onboarding/jsonSchemaVersions.ts +++ b/example/src/flows/Onboarding/jsonSchemaVersions.ts @@ -121,7 +121,7 @@ export const ONBOARDING_JSON_SCHEMA_VERSION_BY_COUNTRY = { }, GBR: { // United Kingdom - contract_details: 6, + contract_details: 7, }, GEO: { // Georgia