Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions examples/events/example-contexts/mock-storefront-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@

### Mock data

PaaS/ACCS Example:

```javascript
const mockStorefrontCtx = {
environmentId: "aaaaaa",
instanceId: "bbbbbb",
environment: "Production",
storeUrl: "https://example.com",
websiteId: 333333,
Expand All @@ -38,6 +39,20 @@ const mockStorefrontCtx = {
baseCurrencyCode: "USD",
storeViewCurrencyCode: "USD",
storefrontTemplate: "Other",
viewId: "12345678-1234-1234-1234-123456789abc"
};
```

ACO Example:

```javascript
const mockStorefrontCtx = {
environmentId: "aaaaaa",
environment: "Production",
storeUrl: "https://example.com",
baseCurrencyCode: "USD",
storeViewCurrencyCode: "USD",
storefrontTemplate: "Other",
viewId: "12345678-1234-1234-1234-123456789abc",
locale: "en-US"
};
```