Type aliases
Static AsyncCreated
AsyncCreated: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:73
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:278
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
Bool
Filter: { filters?: Array < Filter > ; operator: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:169
Static BoolQuery
Bool
Query: { must?: Array < Query > ; mustNot?: Array < Query > ; should?: Array < Query > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:231
Static ChangeControlled
ChangeControlled: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:50
Static ChangeControlledDataType
ChangeControlledDataType: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:89
Static ClosedObject
ClosedObject: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:150
Static DateConditionalRequest
DateConditionalRequest: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:67
Static DateRangeFilter
DateRangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:57
Static DatetimeRangeFilter
DatetimeRangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:87
Static Error
Error: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:32
Static ErrorResponse
ErrorResponse: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:43
Static EtagConditionalRequest
EtagConditionalRequest: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:71
Static EtagResponse
EtagResponse: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:59
Static Filter
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:250
Static FilteredQuery
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:186
Static IntegerRangeFilter
IntegerRangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:61
Static L10nString
L10nString: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:275
Static LocalizedString
LocalizedString: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:138
Static MatchAllQuery
MatchAllQuery: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:183
Static Money
Money: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:96
Static MoneyMnemonic
MoneyMnemonic: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:270
Static NestedQuery
Nested
Query: { path: string ; query: Query ; scoreMode?: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:244
Static NoPropertiesAllowed
NoPropertiesAllowed: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:164
Static NumericRangeFilter
NumericRangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:85
Static OffsetPaginated
OffsetPaginated: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:79
Static OpenObject
OpenObject: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:153
Static PaginatedSearchResult
Paginated
SearchResult: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:141
Static PaginatedSearchResultBase
Paginated
SearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:174
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:39
Static PromotionResult
Promotion
Result: { data: Array < Promotion > ; limit: number ; total: number }
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:27
Type declaration
limit: number
total: number
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:115
Static PropertyValueDefinition
Property
ValueDefinition: { description: L10nString ; displayValue: L10nString ; id: string ; position?: number ; value: string }
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:300
Type declaration
id: string
Optional position?: number
value: string
Static Query
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:195
Static QueryFilter
Query
Filter: { query: Query } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:191
Static QueryParamsLimit
QueryParamsLimit: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:156
Static QueryParamsOffset
QueryParamsOffset: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:158
Static Range2Filter
Range2Filter: { filterMode?: string ; fromField: string ; fromInclusive?: boolean ; fromValue?: any ; toField: string ; toInclusive?: boolean ; toValue?: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:221
Static RangeFilter
RangeFilter: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:81
Static RateLimited
RateLimited: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:75
Static RateLimited2
RateLimited2: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:77
Static RateLimited3
RateLimited3: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:63
Static RateLimited4
RateLimited4: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:83
Static RateLimited5
RateLimited5: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:69
Static SearchRequest
Search
Request: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:108
Static SearchRequestBase
Search
RequestBase: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:263
Static Selectable
Selectable: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:162
Static SimpleSearchResult
SimpleSearchResult: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:101
Static SimpleSearchResultBase
SimpleSearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:237
Static SiteSpecific
SiteSpecific: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:160
Static Sort
Sort: { field: string ; sortOrder?: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:258
Static SpecifiedPropertiesAllowed
SpecifiedPropertiesAllowed: {} & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:166
Static SyncCreated
SyncCreated: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:65
Static TermFilter
TermFilter: { field: string ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:210
Static TermQuery
TermQuery: { fields: Array < string > ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:204
Static TextQuery
TextQuery: { fields: Array < string > ; searchPhrase: string } & {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:216
Static badrequest
badrequest: {}
Defined in renderedTemplates/pricing/shopperPromotions/shopperPromotions.ts:41
Shopper Promotions
View details for active promotions.
Example with shopper auth
API Version: 1.0.27import { 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: