Skip to content

fix(storefront): create a customer under an identity with no contact yet - #35

Merged
roncodes merged 1 commit into
mainfrom
fix/storefront-create-customer-identity
Aug 11, 2026
Merged

roncodes merged 1 commit into
mainfrom
fix/storefront-create-customer-identity

Conversation

@roncodes

Copy link
Copy Markdown
Member

Create a Customer sent {{customer_identity}} — the seeded customer, whose contact already exists by the time this request runs. The request validates email with Rule::unique('contacts'), so it answered "The email has already been taken."

It now uses {{new_customer_identity}}: an identity the contract run reserves for exactly this, seeded deliberately without a contact of its own and with a matching storefront_create_customer code.

Requires fleetbase/fleetbase#600, which seeds and injects it — this is inert without that.

🤖 Generated with Claude Code

Create a Customer sent {{customer_identity}} — the seeded customer, whose contact
already exists by the time this runs. The request validates `email` with
Rule::unique('contacts'), so it answered "The email has already been taken."

It now uses {{new_customer_identity}}, an identity the contract run reserves for
exactly this and seeds deliberately without a contact, with a matching
storefront_create_customer code (fleetbase/fleetbase#600).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@roncodes
roncodes merged commit a6adb40 into main Aug 11, 2026
1 check passed
@roncodes
roncodes deleted the fix/storefront-create-customer-identity branch August 11, 2026 17:23
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