From 3fdcccf1fb2e56b17a09b5e97603bbbfdf5683ba Mon Sep 17 00:00:00 2001 From: Ella Nan <38847123+ellanan@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:15 -0500 Subject: [PATCH] feat: add shopper_address_limit in settings --- src/types/settings.d.ts | 6 ++++++ test/unit/settings.ts | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/types/settings.d.ts b/src/types/settings.d.ts index afcbf55..84a210b 100644 --- a/src/types/settings.d.ts +++ b/src/types/settings.d.ts @@ -39,6 +39,12 @@ export interface Settings { address_mandatory_fields: string[] include_organization_resources: boolean + + /** + * Shopper Address Limit + * Description: This defines the maximum number of addresses a shopper can have. + */ + shopper_address_limit: number } export interface TtlSettings { diff --git a/test/unit/settings.ts b/test/unit/settings.ts index b863b97..d923bec 100644 --- a/test/unit/settings.ts +++ b/test/unit/settings.ts @@ -34,7 +34,8 @@ describe('ElasticPath settings', () => { 'country', 'instructions' ], - include_organization_resources: false + include_organization_resources: false, + shopper_address_limit: 10 } }) @@ -56,7 +57,8 @@ describe('ElasticPath settings', () => { 'country', 'instructions' ], - include_organization_resources: false + include_organization_resources: false, + shopper_address_limit: 10 } }) }) @@ -92,7 +94,8 @@ describe('ElasticPath settings', () => { 'country', 'instructions' ], - include_organization_resources: false + include_organization_resources: false, + shopper_address_limit: 10 } }) @@ -114,7 +117,8 @@ describe('ElasticPath settings', () => { 'country', 'instructions' ], - include_organization_resources: false + include_organization_resources: false, + shopper_address_limit: 10 } }) })