Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit 9a61686

Browse files
authored
feat(types): added support for include_organization_resources (#804)
* feat(types): added support for include_organization_resources * Fixed failing tests
1 parent c7a2a91 commit 9a61686

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/types/settings.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ export interface Settings {
3737
* DOCS: https://documentation.elasticpath.com/commerce-cloud/docs/api/advanced/settings/index.html#address-mandatory-fields
3838
*/
3939
address_mandatory_fields: string[]
40+
41+
include_organization_resources: boolean
4042
}
4143

4244
export interface TtlSettings {

test/unit/settings.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ describe('Moltin settings', () => {
3333
'postcode',
3434
'country',
3535
'instructions'
36-
]
36+
],
37+
include_organization_resources: false
3738
}
3839
})
3940

@@ -54,7 +55,8 @@ describe('Moltin settings', () => {
5455
'postcode',
5556
'country',
5657
'instructions'
57-
]
58+
],
59+
include_organization_resources: false
5860
}
5961
})
6062
})
@@ -89,7 +91,8 @@ describe('Moltin settings', () => {
8991
'postcode',
9092
'country',
9193
'instructions'
92-
]
94+
],
95+
include_organization_resources: false
9396
}
9497
})
9598

@@ -110,7 +113,8 @@ describe('Moltin settings', () => {
110113
'postcode',
111114
'country',
112115
'instructions'
113-
]
116+
],
117+
include_organization_resources: false
114118
}
115119
})
116120
})

0 commit comments

Comments
 (0)