Skip to content

[MKT_923]:feat/refactor CreateCustomerPayload to match checkout customer EP#421

Open
jaaaaavier wants to merge 1 commit into
masterfrom
feat/relax-create-customer-payload
Open

[MKT_923]:feat/refactor CreateCustomerPayload to match checkout customer EP#421
jaaaaavier wants to merge 1 commit into
masterfrom
feat/relax-create-customer-payload

Conversation

@jaaaaavier

Copy link
Copy Markdown
Contributor

In this PR we mark the customerName, lineAddress1, city and postalCode fields of CreateCustomerPayload as optional, so the type now matches the actual contract of POST /checkout/customer in the payments backend, where only country and captchaToken are required by the schema. We also fixed the createCustomer JSDoc, since postalCode was documented twice and the optional params were not marked as such.

@jaaaaavier jaaaaavier self-assigned this Jul 16, 2026
@jaaaaavier
jaaaaavier requested a review from xabg2 July 16, 2026 13:26
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