Type aliases
Static AsyncCreated
AsyncCreated: {}
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 }
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 } & {}
Static BoolQuery
Bool
Query: { must?: Array<Query>; mustNot?: Array<Query>; should?: Array<Query> } & {}
Static ChangeControlled
ChangeControlled: { createdBy?: string; creationDate?: any; lastModifiedBy?: string; modificationDate?: any } & {}
Static ChangeControlledDataType
ChangeControlledDataType: { createdBy?: string; creationDate?: any; lastModifiedBy?: string; modificationDate?: any } & {}
Static ClosedObject
ClosedObject: {} & {}
Static DateConditionalRequest
DateConditionalRequest: {}
Static DateRangeFilter
DateRangeFilter: {}
Static DatetimeRangeFilter
DatetimeRangeFilter: {}
Static Error
Error: { detail?: string; instance?: string; title?: string; type: string } & {}
Static ErrorResponse
ErrorResponse: { detail?: string; instance?: string; title?: string; type: string } & {}
Static EtagConditionalRequest
EtagConditionalRequest: {}
Static EtagResponse
EtagResponse: {}
Static Filter
Static FilteredQuery
Static GiftCertificate
GiftCertificate: { amount: number; balance: number; description?: string; enabled: boolean; maskedGiftCertificateCode: string; merchantId: string; message?: string; recipientEmail: string; recipientName: string; senderName: string; status: string } & {}
Static GiftCertificateRequest
GiftCertificateRequest: { giftCertificateCode: string }
Type declaration
-
giftCertificateCode: string
Static IntegerRangeFilter
IntegerRangeFilter: {}
Static L10nString
L10nString: {} & {}
Static LocalizedString
LocalizedString: {} & {}
Static MatchAllQuery
MatchAllQuery: {} & {}
Static Money
Money: { currencyMnemonic?: string; value?: number } & {}
Static MoneyMnemonic
MoneyMnemonic: { currencyMnemonic?: string; value?: number } & {}
Static NestedQuery
Nested
Query: { path: string; query: Query; scoreMode?: string } & {}
Static NoPropertiesAllowed
NoPropertiesAllowed: {}
Static NotFound
NotFound: {}
Static NumericRangeFilter
NumericRangeFilter: {}
Static OffsetPaginated
OffsetPaginated: {}
Static OpenObject
OpenObject: {} & {}
Static PaginatedSearchResult
Paginated
SearchResult: { hits?: Array<object>; limit: number; offset: any; query: Query; sorts?: Array<Sort>; total: any } & {}
Static PaginatedSearchResultBase
Paginated
SearchResultBase: { hits?: Array<object>; limit: number; offset: any; query: Query; sorts?: Array<Sort>; total: any } & {}
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 } & {}
Static PropertyValueDefinition
Property
ValueDefinition: { description: L10nString; displayValue: L10nString; id: string; position?: number; value: string }
Type declaration
-
-
-
id: string
-
Optional position?: number
-
value: string
Static Query
Static QueryFilter
Query
Filter: { query: Query } & {}
Static QueryParamsLimit
QueryParamsLimit: {}
Static QueryParamsOffset
QueryParamsOffset: {}
Static Range2Filter
Range2Filter: { filterMode?: string; fromField: string; fromInclusive?: boolean; fromValue?: any; toField: string; toInclusive?: boolean; toValue?: any } & {}
Static RangeFilter
RangeFilter: {}
Static RateLimited
RateLimited: {}
Static RateLimited2
RateLimited2: {}
Static RateLimited3
RateLimited3: {}
Static RateLimited4
RateLimited4: {}
Static RateLimited5
RateLimited5: {}
Static SearchRequest
Search
Request: { limit?: number; offset?: any; query: Query; sorts?: Array<Sort> } & {}
Static SearchRequestBase
Search
RequestBase: { limit?: number; offset?: any; query: Query; sorts?: Array<Sort> } & {}
Static Selectable
Selectable: {}
Static SimpleSearchResult
SimpleSearchResult: { hits?: Array<object>; limit: number; offset: any; total: any } & {}
Static SimpleSearchResultBase
SimpleSearchResultBase: { hits?: Array<object>; limit: number; offset: any; total: any } & {}
Static SiteSpecific
SiteSpecific: {}
Static Sort
Sort: { field: string; sortOrder?: string } & {}
Static SpecifiedPropertiesAllowed
SpecifiedPropertiesAllowed: {} & {}
Static SyncCreated
SyncCreated: {}
Static TermFilter
TermFilter: { field: string; operator: string; values?: Array<any> } & {}
Static TermQuery
TermQuery: { fields: Array<string>; operator: string; values?: Array<any> } & {}
Static TextQuery
TextQuery: { fields: Array<string>; searchPhrase: string } & {}
Shopper Gift Certificates
Obtain details about a gift certificate.
Example with shopper auth
API Version: 1.0.17import { 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 shopperGiftCertificatesClient = new Pricing.ShopperGiftCertificates(clientConfig);
Last Updated: