Skip to content

Commit 3fdcccf

Browse files
committed
feat: add shopper_address_limit in settings
1 parent acc828e commit 3fdcccf

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

src/types/settings.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ export interface Settings {
3939
address_mandatory_fields: string[]
4040

4141
include_organization_resources: boolean
42+
43+
/**
44+
* Shopper Address Limit
45+
* Description: This defines the maximum number of addresses a shopper can have.
46+
*/
47+
shopper_address_limit: number
4248
}
4349

4450
export interface TtlSettings {

test/unit/settings.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ describe('ElasticPath settings', () => {
3434
'country',
3535
'instructions'
3636
],
37-
include_organization_resources: false
37+
include_organization_resources: false,
38+
shopper_address_limit: 10
3839
}
3940
})
4041

@@ -56,7 +57,8 @@ describe('ElasticPath settings', () => {
5657
'country',
5758
'instructions'
5859
],
59-
include_organization_resources: false
60+
include_organization_resources: false,
61+
shopper_address_limit: 10
6062
}
6163
})
6264
})
@@ -92,7 +94,8 @@ describe('ElasticPath settings', () => {
9294
'country',
9395
'instructions'
9496
],
95-
include_organization_resources: false
97+
include_organization_resources: false,
98+
shopper_address_limit: 10
9699
}
97100
})
98101

@@ -114,7 +117,8 @@ describe('ElasticPath settings', () => {
114117
'country',
115118
'instructions'
116119
],
117-
include_organization_resources: false
120+
include_organization_resources: false,
121+
shopper_address_limit: 10
118122
}
119123
})
120124
})

0 commit comments

Comments
 (0)