Type aliases
Static AsyncCreated
AsyncCreated: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:74
Static AttributeDefinition
Attribute
Definition: { defaultValue?: PropertyValueDefinition ; description: L10nString ; id?: string ; key?: boolean ; localizable?: boolean ; mandatory?: boolean ; max?: number ; min?: number ; minLength?: number ; multiValueType?: boolean ; name: L10nString ; possibleValues?: Array < PropertyValueDefinition > ; regularExpression?: string ; scale?: number ; searchable?: boolean ; siteSpecific?: boolean ; system?: boolean ; type: string ; unit?: L10nString ; visible?: boolean }
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:277
Type declaration
Optional id?: string
Optional key?: boolean
Optional localizable?: boolean
Optional mandatory?: boolean
Optional max?: number
Optional min?: number
Optional minLength?: number
Optional multiValueType?: boolean
Optional regularExpression?: string
Optional scale?: number
Optional searchable?: boolean
Optional siteSpecific?: boolean
Optional system?: boolean
type: string
Optional visible?: boolean
Static BoolFilter
BoolFilter: { filters?: Array < any > ; operator: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:168
Static BoolQuery
BoolQuery: { must?: Array < any > ; mustNot?: Array < any > ; should?: Array < any > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:230
Static ChangeControlled
ChangeControlled: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:51
Static ChangeControlledDataType
ChangeControlledDataType: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:90
Static ClosedObject
ClosedObject: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:151
Static DateConditionalRequest
DateConditionalRequest: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:68
Static DateRangeFilter
DateRangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:58
Static DatetimeRangeFilter
DatetimeRangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:88
Static Error
Error: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:33
Static ErrorResponse
ErrorResponse: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:44
Static EtagConditionalRequest
EtagConditionalRequest: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:72
Static EtagResponse
EtagResponse: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:60
Static Filter
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:249
Static FilteredQuery
FilteredQuery: { filter: any ; query: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:185
Static IntegerRangeFilter
IntegerRangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:62
Static L10nString
L10nString: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:274
Static LocalizedString
LocalizedString: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:139
Static MatchAllQuery
MatchAllQuery: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:182
Static Money
Money: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:97
Static MoneyMnemonic
MoneyMnemonic: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:269
Static NestedQuery
NestedQuery: { path: string ; query: any ; scoreMode?: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:243
Static NoPropertiesAllowed
NoPropertiesAllowed: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:163
Static NumericRangeFilter
NumericRangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:86
Static OffsetPaginated
OffsetPaginated: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:80
Static OpenObject
OpenObject: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:154
Static PaginatedSearchResult
Paginated
SearchResult: { hits?: Array < object > ; limit: number ; offset: any ; query: any ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:142
Static PaginatedSearchResultBase
Paginated
SearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; query: any ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:173
Static Promotion
Promotion: { calloutMsg?: string ; currency?: string ; details?: string ; endDate?: any ; id: string ; image?: string ; name?: string ; startDate?: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:16
Static PromotionNotFound
PromotionNotFound: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:40
Static PromotionResult
Promotion
Result: { count: number ; data: Array < Promotion > ; total: number } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:27
Static PropertyDefinition
Property
Definition: { defaultValue?: PropertyValueDefinition ; description: L10nString ; id?: string ; key?: boolean ; localizable?: boolean ; mandatory?: boolean ; max?: number ; min?: number ; minLength?: number ; multiValueType?: boolean ; name: L10nString ; possibleValues?: Array < PropertyValueDefinition > ; regularExpression?: string ; scale?: number ; searchable?: boolean ; siteSpecific?: boolean ; system?: boolean ; type: string ; unit?: L10nString ; visible?: boolean } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:116
Static PropertyValueDefinition
Property
ValueDefinition: { description: L10nString ; displayValue: L10nString ; id: string ; position?: number ; value: string }
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:299
Type declaration
id: string
Optional position?: number
value: string
Static Query
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:194
Static QueryFilter
QueryFilter: { query: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:190
Static QueryParamsLimit
QueryParamsLimit: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:157
Static QueryParamsOffset
QueryParamsOffset: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:159
Static Range2Filter
Range2Filter: { filterMode?: string ; fromField: string ; fromInclusive?: boolean ; fromValue?: any ; toField: string ; toInclusive?: boolean ; toValue?: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:220
Static RangeFilter
RangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:82
Static RateLimited
RateLimited: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:76
Static RateLimited2
RateLimited2: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:78
Static RateLimited3
RateLimited3: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:64
Static RateLimited4
RateLimited4: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:84
Static RateLimited5
RateLimited5: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:70
Static SearchRequest
Search
Request: { limit?: number ; offset?: any ; query: any ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:109
Static SearchRequestBase
Search
RequestBase: { limit?: number ; offset?: any ; query: any ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:262
Static SimpleSearchResult
SimpleSearchResult: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:102
Static SimpleSearchResultBase
SimpleSearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:236
Static SiteSpecific
SiteSpecific: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:161
Static Sort
Sort: { field: string ; sortOrder?: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:257
Static SpecifiedPropertiesAllowed
SpecifiedPropertiesAllowed: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:165
Static SyncCreated
SyncCreated: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:66
Static TermFilter
TermFilter: { field: string ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:209
Static TermQuery
TermQuery: { fields: Array < string > ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:203
Static TextQuery
TextQuery: { fields: Array < string > ; searchPhrase: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:215
Static badrequest
badrequest: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:42
Shopper Promotions
View details for active promotions.
Example with shopper auth
API Version: 1.0.21import { Pricing, ClientConfig, Customer, slasHelpers } from "commerce-sdk"; // or const { Pricing, ClientConfig, Customer, slasHelpers } = require("commerce-sdk"); const clientConfig: ClientConfig = { parameters: { clientId: "XXXXXX", organizationId: "XXXX", shortCode: "XXX", siteId: "XX" } }; // must be registered in SLAS. On server, redirectURI is never called const redirectURI = "http://localhost:3000/callback"; const slasClient = new Customer.ShopperLogin(clientConfig); token = await slasHelpers.loginGuestUser(slasClient, { redirectURI }); clientConfig.headers['authorization'] = `Bearer ${token.access_token}`; const shopperPromotionsClient = new Pricing.ShopperPromotions(clientConfig);
Last Updated: