Type aliases
Static AccountTransaction
Account
Transaction: { amount: Money ; orderNo: string ; timestamp: any ; typeCode: string }
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:47
Type declaration
orderNo: string
timestamp: any
typeCode: string
Static AsyncCreated
AsyncCreated: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:89
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/giftCertificates/giftCertificates.ts:296
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/giftCertificates/giftCertificates.ts:187
Static BoolQuery
Bool
Query: { must?: Array < Query > ; mustNot?: Array < Query > ; should?: Array < Query > } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:249
Static ChangeControlled
ChangeControlled: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:66
Static ChangeControlledDataType
ChangeControlledDataType: { createdBy?: string ; creationDate?: any ; lastModifiedBy?: string ; modificationDate?: any } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:105
Static ClosedObject
ClosedObject: {} & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:168
Static DateConditionalRequest
DateConditionalRequest: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:83
Static DateRangeFilter
DateRangeFilter: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:73
Static DatetimeRangeFilter
DatetimeRangeFilter: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:103
Static Error
Error: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:112
Static ErrorResponse
ErrorResponse: { detail?: string ; instance?: string ; title?: string ; type: string } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:59
Static EtagConditionalRequest
EtagConditionalRequest: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:87
Static EtagResponse
EtagResponse: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:75
Static Filter
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:268
Static FilteredQuery
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:204
Static GiftCertificate
Gift
Certificate: { amount?: Money ; balance?: Money ; creationDate?: any ; description?: string ; enabled?: boolean ; lastModified?: any ; maskedGiftCertificateCode?: string ; merchantId?: string ; message?: string ; orderNo?: string ; recipientEmail?: string ; recipientName?: string ; senderName?: string ; status?: string ; transactions?: Array < AccountTransaction > } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:20
Static GiftCertificateAmountOutOfRangeException
GiftCertificateAmountOutOfRangeException: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:331
Static GiftCertificateCreateMerchantIdNotUniqueException
GiftCertificateCreateMerchantIdNotUniqueException: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:325
Static GiftCertificateNotFound
GiftCertificateNotFound: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:327
Static GiftCertificateSearchResult
Gift
CertificateSearchResult: { hits: Array < GiftCertificate > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:38
Static GiftCertificates
Gift
Certificates: { data?: Array < GiftCertificate > ; limit: number ; offset: any ; total?: number }
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:53
Type declaration
limit: number
offset: any
Optional total?: number
Static IntegerRangeFilter
IntegerRangeFilter: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:77
Static InvalidGiftCertificateException
InvalidGiftCertificateException: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:339
Static InvalidGiftCertificateStatus
InvalidGiftCertificateStatus: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:337
Static InvalidRecipientEmail
InvalidRecipientEmail: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:333
Static L10nString
L10nString: {} & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:293
Static LocalizedString
LocalizedString: {} & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:156
Static MalformedQuery
MalformedQuery: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:329
Static MatchAllQuery
MatchAllQuery: {} & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:201
Static Money
Money: { currencyMnemonic: string ; value: number }
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:16
Type declaration
currencyMnemonic: string
value: number
Static MoneyMnemonic
MoneyMnemonic: { currencyMnemonic?: string ; value?: number } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:288
Static NestedQuery
Nested
Query: { path: string ; query: Query ; scoreMode?: string } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:262
Static NoPropertiesAllowed
NoPropertiesAllowed: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:182
Static NumericRangeFilter
NumericRangeFilter: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:101
Static OffsetPaginated
OffsetPaginated: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:95
Static OpenObject
OpenObject: {} & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:171
Static PaginatedSearchResult
Paginated
SearchResult: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:159
Static PaginatedSearchResultBase
Paginated
SearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; query: Query ; sorts?: Array < Sort > ; total: any } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:192
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/giftCertificates/giftCertificates.ts:133
Static PropertyValueDefinition
Property
ValueDefinition: { description: L10nString ; displayValue: L10nString ; id: string ; position?: number ; value: string }
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:318
Type declaration
id: string
Optional position?: number
value: string
Static Query
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:213
Static QueryFilter
Query
Filter: { query: Query } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:209
Static QueryParamsLimit
QueryParamsLimit: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:174
Static QueryParamsOffset
QueryParamsOffset: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:176
Static Range2Filter
Range2Filter: { filterMode?: string ; fromField: string ; fromInclusive?: boolean ; fromValue?: any ; toField: string ; toInclusive?: boolean ; toValue?: any } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:239
Static RangeFilter
RangeFilter: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:97
Static RateLimited
RateLimited: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:91
Static RateLimited2
RateLimited2: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:93
Static RateLimited3
RateLimited3: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:79
Static RateLimited4
RateLimited4: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:99
Static RateLimited5
RateLimited5: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:85
Static SearchRequest
Search
Request: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:126
Static SearchRequestBase
Search
RequestBase: { limit?: number ; offset?: any ; query: Query ; sorts?: Array < Sort > } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:281
Static Selectable
Selectable: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:180
Static SimpleSearchResult
SimpleSearchResult: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:119
Static SimpleSearchResultBase
SimpleSearchResultBase: { hits?: Array < object > ; limit: number ; offset: any ; total: any } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:255
Static SiteSpecific
SiteSpecific: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:178
Static Sort
Sort: { field: string ; sortOrder?: string } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:276
Static SpecifiedPropertiesAllowed
SpecifiedPropertiesAllowed: {} & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:184
Static SyncCreated
SyncCreated: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:81
Static TermFilter
TermFilter: { field: string ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:228
Static TermQuery
TermQuery: { fields: Array < string > ; operator: string ; values?: Array < any > } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:222
Static TextQuery
TextQuery: { fields: Array < string > ; searchPhrase: string } & {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:234
Static UnqueryableField
UnqueryableField: {}
Defined in renderedTemplates/pricing/giftCertificates/giftCertificates.ts:335
Gift Certificates
Manage your gift certificates.
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.30import { 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 giftCertificatesClient = new Pricing.GiftCertificates(clientConfig);
Last Updated: