Skip to content

refactor(atmn): rename tierBehaviour → tierBehavior#79

Open
joejohnson123[bot] wants to merge 1 commit into
nextfrom
jj/rename-tier-behavior
Open

refactor(atmn): rename tierBehaviour → tierBehavior#79
joejohnson123[bot] wants to merge 1 commit into
nextfrom
jj/rename-tier-behavior

Conversation

@joejohnson123

@joejohnson123 joejohnson123 Bot commented Feb 25, 2026

Copy link
Copy Markdown

American English spelling for consistency with the rest of the SDK.

Changed

  • tierBehaviourtierBehavior in SDK types, transforms (apiToSdk, sdkToCode, sdkToApi), and typegen
  • API wire format (tier_behaviour) is unchanged — only the user-facing SDK property is renamed

Files

  • atmn/src/lib/transforms/apiToSdk/planItem.ts
  • atmn/src/lib/transforms/sdkToCode/planItem.ts
  • atmn/src/lib/transforms/sdkToApi/plan.ts
  • atmn/src/compose/models/planModels.ts
  • typegen/genUtils/atmnTypeHelpers.ts

Summary by cubic

Renamed the SDK property tierBehaviour to tierBehavior for American English consistency. API wire format (tier_behaviour) is unchanged.

  • Migration
    • Replace tierBehaviour with tierBehavior in your SDK usage.

Written for commit ddd5247. Summary will update on new commits.

Greptile Summary

This PR renames the SDK property tierBehaviour to tierBehavior for American English spelling consistency across the SDK.

API changes

  • SDK property renamed: tierBehaviourtierBehavior
  • API wire format (tier_behaviour) remains unchanged
  • All transform functions (apiToSdk, sdkToApi, sdkToCode) updated to use the new property name
  • Type definitions in both runtime models and typegen utilities updated consistently

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • Simple, mechanical rename with perfect consistency across all transform layers. API wire format correctly preserved, all occurrences updated, no logical changes to functionality.
  • No files require special attention

Important Files Changed

Filename Overview
atmn/src/compose/models/planModels.ts Renamed type field from tierBehaviour to tierBehavior in PriceWithTiers type definition
atmn/src/lib/transforms/apiToSdk/planItem.ts Updated transform to map API tier_behaviour to SDK tierBehavior property
atmn/src/lib/transforms/sdkToApi/plan.ts Updated type definition and transform to map SDK tierBehavior back to API tier_behaviour
atmn/src/lib/transforms/sdkToCode/planItem.ts Updated code generation to output tierBehavior property name in generated code
typegen/genUtils/atmnTypeHelpers.ts Renamed type field from tierBehaviour to tierBehavior in type generation utilities

Last reviewed commit: ddd5247

(2/5) Greptile learns from your feedback when you react with thumbs up/down!

American English spelling for consistency with the rest of the SDK.
API wire format (tier_behaviour) is unchanged.

Co-authored-by: Joe Johnson (JJ) <joejohnson123[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Feb 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
autumn-ui Building Building Preview, Comment Feb 25, 2026 2:39pm

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant