Type aliases
Static AsyncCreated
AsyncCreated: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:137
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/assignments/assignments.ts:349
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/assignments/assignments.ts:240
Static BoolQuery
Bool
Query: { must?: Array < Query > ; mustNot?: Array < Query > ; should?: Array < Query > } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:302
Static Campaign
Campaign: { campaignId: string ; coupons?: Array < string > ; creationDate?: any ; customerGroups?: Array < string > ; description?: string ; enabled?: boolean ; endDate?: any ; lastModified?: any ; sourceCodeGroups?: Array < string > ; startDate?: any } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:20
Static ChangeControlled
ChangeControlled: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:114
Static ChangeControlledDataType
ChangeControlledDataType: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:153
Static ClosedObject
ClosedObject: {} & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:221
Static DateConditionalRequest
DateConditionalRequest: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:131
Static DateRangeFilter
DateRangeFilter: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:121
Static DatetimeRangeFilter
DatetimeRangeFilter: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:151
Static Error
Error: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:160
Static ErrorResponse
ErrorResponse: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:107
Static EtagConditionalRequest
EtagConditionalRequest: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:135
Static EtagResponse
EtagResponse: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:123
Static Filter
Defined in renderedTemplates/pricing/assignments/assignments.ts:321
Static FilteredQuery
Defined in renderedTemplates/pricing/assignments/assignments.ts:257
Static IntegerRangeFilter
IntegerRangeFilter: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:125
Static L10nString
L10nString: {} & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:346
Static LocalizedString
LocalizedString: {} & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:209
Static MatchAllQuery
MatchAllQuery: {} & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:254
Static Money
Money: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:167
Static MoneyMnemonic
MoneyMnemonic: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:341
Static NestedQuery
Nested
Query: { path: string ; query: Query ; scoreMode?: string } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:315
Static NoPropertiesAllowed
NoPropertiesAllowed: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:235
Static NumericRangeFilter
NumericRangeFilter: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:149
Static OffsetPaginated
OffsetPaginated: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:143
Static OpenObject
OpenObject: {} & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:224
Static PaginatedSearchResult
Paginated
SearchResult: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:212
Static PaginatedSearchResultBase
Paginated
SearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:245
Static Promotion
Promotion
: { archived
?: boolean ; assignmentInformation
?: PromotionAssignmentInformation ; creationDate
?: any ; currencyCode
?: string ; disableGloballyExcluded
?: boolean ; enabled
?: boolean ; exclusivity
: string ; id
: string ; lastModified
?: any ; name
?: {} & {} ; promotionClass
?: string ; tags
?: Array < Tag > } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:49
Static PromotionAbtestGroupAssignment
Promotion
AbtestGroupAssignment: { abtestDescription: string ; abtestId: string ; enabled: boolean ; schedule: Schedule ; segmentDescription: string ; segmentId: string }
Defined in renderedTemplates/pricing/assignments/assignments.ts:99
Type declaration
abtestDescription: string
abtestId: string
enabled: boolean
segmentDescription: string
segmentId: string
Static PromotionAssignmentInformation
Defined in renderedTemplates/pricing/assignments/assignments.ts:66
Type declaration
abtestId: string
abtestSegmentId: string
active: boolean
campaignId: string
enabled: boolean
endDate: any
scheduleType: string
startDate: any
Static PromotionCampaignAssignment
Promotion
CampaignAssignment: { campaign: Campaign ; campaignId: string ; coupons: Array < string > ; customerGroups: Array < string > ; description: string ; enabled: boolean ; promotion: Promotion ; promotionId: string ; rank: number ; schedule: Schedule ; sourceCodeGroups: Array < string > }
Defined in renderedTemplates/pricing/assignments/assignments.ts:33
Type declaration
campaignId: string
coupons: Array < string >
customerGroups: Array < string >
description: string
enabled: boolean
promotionId: string
rank: number
sourceCodeGroups: Array < string >
Static PromotionCampaignAssignmentSearchResult
Defined in renderedTemplates/pricing/assignments/assignments.ts:86
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/assignments/assignments.ts:186
Static PropertyValueDefinition
Property
ValueDefinition: { description: L10nString ; displayValue: L10nString ; id: string ; position?: number ; value: string }
Defined in renderedTemplates/pricing/assignments/assignments.ts:371
Type declaration
id: string
Optional position?: number
value: string
Static Query
Defined in renderedTemplates/pricing/assignments/assignments.ts:266
Static QueryFilter
Query
Filter: { query: Query } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:262
Static QueryParamsLimit
QueryParamsLimit: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:227
Static QueryParamsOffset
QueryParamsOffset: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:229
Static Range2Filter
Range2Filter: { filterMode?: string ; fromField: string ; fromInclusive?: boolean ; fromValue?: any ; toField: string ; toInclusive?: boolean ; toValue?: any } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:292
Static RangeFilter
RangeFilter: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:145
Static RateLimited
RateLimited: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:139
Static RateLimited2
RateLimited2: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:141
Static RateLimited3
RateLimited3: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:127
Static RateLimited4
RateLimited4: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:147
Static RateLimited5
RateLimited5: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:133
Static Recurrence
Recurrence
: { dayOfWeek
: Array < string > ; timeOfDay
: TimeOfDay }
Defined in renderedTemplates/pricing/assignments/assignments.ts:95
Static Schedule
Schedule
: { endDate
: any ; recurrence
: Recurrence ; startDate
: any }
Defined in renderedTemplates/pricing/assignments/assignments.ts:81
Type declaration
endDate: any
startDate: any
Static SearchRequest
Search
Request: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:179
Static SearchRequestBase
Search
RequestBase: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:334
Static Selectable
Selectable: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:233
Static SimpleSearchResult
SimpleSearchResult: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:172
Static SimpleSearchResultBase
SimpleSearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:308
Static SiteSpecific
SiteSpecific: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:231
Static Sort
Sort: { field: string ; sortOrder?: string } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:329
Static SpecifiedPropertiesAllowed
SpecifiedPropertiesAllowed: {} & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:237
Static SyncCreated
SyncCreated: {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:129
Static Tag
Tag: { tagId: string }
Defined in renderedTemplates/pricing/assignments/assignments.ts:46
Static TermFilter
TermFilter: { field: string ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:281
Static TermQuery
TermQuery: { fields: Array < string > ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:275
Static TextQuery
TextQuery: { fields: Array < string > ; searchPhrase: string } & {}
Defined in renderedTemplates/pricing/assignments/assignments.ts:287
Static TimeOfDay
TimeOfDay: { timeFrom: string ; timeTo: string }
Defined in renderedTemplates/pricing/assignments/assignments.ts:16
Type declaration
timeFrom: string
timeTo: string
Assignments
Search for promotions associated with campaigns.
For instructions on how to retrieve access token for admin APIs: https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html
Example with admin auth
API Version: 1.0.26import { Pricing, ClientConfig } from "commerce-sdk"; // or const { Pricing, ClientConfig } = require("commerce-sdk"); const clientConfig: ClientConfig = { parameters: { clientId: "XXXXXX", organizationId: "XXXX", shortCode: "XXX", siteId: "XX" } }; token = { access_token: 'INSERT_ACCESS_TOKEN_HERE' }; clientConfig.headers['authorization'] = `Bearer ${token.access_token}`; const assignmentsClient = new Pricing.Assignments(clientConfig);
Last Updated: