SazitoSazito SDKv1.2.2
Core Concepts

Data Transformation

Automatic key mapping and payload normalization performed by the SDK.

The SDK transforms request and response keys so app code remains camelCase and consistent.

Common examples

  • first_name -> firstName
  • postal_code -> postalCode
  • product_variant_id -> variantId
  • single_item_price -> unitPrice

Impact

  • Request payloads are transformed before network send.
  • Response payloads are transformed before being returned.
  • Some responses are normalized into cleaner shapes.

Using transformers directly

import { transformRequestKeys, transformResponseKeys } from '@sazito/client-sdk';

const outgoing = transformRequestKeys({ firstName: 'Sara' });
const incoming = transformResponseKeys({ first_name: 'Sara' });

Use direct transformers only when integrating with custom pipelines outside SDK methods.

On this page