Skip to content

v0.11.0

Choose a tag to compare

@Hill-waffo Hill-waffo released this 05 Jun 02:03
040f7fe

Nullable description/successUrl on Product params + name ≤ 64

Aligns Create/Update Product params with backend product-service v2026.6.4.

Changed

  • CreateOnetimeProductParams.description / successUrl — typed string | null (was string)
  • UpdateOnetimeProductParams.description / successUrl — typed string | null
  • CreateSubscriptionProductParams.description / successUrl — typed string | null
  • UpdateSubscriptionProductParams.description / successUrl — typed string | null

Migration

If you currently omit description / successUrl (or pass undefined), no change needed — the backend keeps the existing value. To explicitly clear a previously-set value:

-await client.onetimeProducts.update({ id, description: undefined });   // keeps existing value
+await client.onetimeProducts.update({ id, description: null });        // clears the field

Backend also accepts "" for the same effect; SDK uses null as the canonical "clear" sentinel.

Note on name length

Backend now enforces name.length ≤ 64 (PSP goodsName cap). Existing names > 64 chars are rare (production scan found 1 internal test outlier). New attempts > 64 chars return 400 { errors: [{ message: "name must not exceed 64 characters", layer: "product" }] }.