From 95d3c86ce524b0c47b416d9df6e73202f039fe48 Mon Sep 17 00:00:00 2001 From: Leonardo Matos Date: Tue, 12 Nov 2024 12:39:17 -0300 Subject: [PATCH] fix(modules): Add `accepts_marketing` to customer object on checkout payload schema --- packages/modules/schemas/@checkout.cjs | 4 ++++ packages/types/modules/@checkout:params.d.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/modules/schemas/@checkout.cjs b/packages/modules/schemas/@checkout.cjs index 32323c972..3d1073e03 100644 --- a/packages/modules/schemas/@checkout.cjs +++ b/packages/modules/schemas/@checkout.cjs @@ -1018,6 +1018,10 @@ exports.params = { 'type': 'string', 'pattern': '^[a-f0-9]{24}$', 'description': 'ID of customer who invited the new customer, if he was invited by another account' + }, + 'accepts_marketing': { + 'type': 'boolean', + 'description': 'Indicates whether customer would like to receive email updates from the shop' } }, 'description': 'Customer object' diff --git a/packages/types/modules/@checkout:params.d.ts b/packages/types/modules/@checkout:params.d.ts index 5c41c268f..0e10bcb92 100644 --- a/packages/types/modules/@checkout:params.d.ts +++ b/packages/types/modules/@checkout:params.d.ts @@ -368,6 +368,10 @@ export interface CheckoutBody { * ID of customer who invited the new customer, if he was invited by another account */ referral?: string; + /** + * Indicates whether customer would like to receive email updates from the shop + */ + accepts_marketing?: boolean; }; } /**