- ActionFactory
- CartEventMapper
- CustomerEventMapper
- Money
- OrderEventMapper
- ApiClientService
- LoggerService
- CtpPrice :
Object
- CtpLineItem :
Object
- CtpCustomLineItem :
Object
- CtpCartEventResourceObject :
Object
- CtpCartEventResource :
Object
- CtpCartEvent :
Object
- CtpCustomerEventResourceObject :
Object
- CtpCustomerEventResource :
Object
- CtpCustomerEvent :
Object
- CtpOrderEventResourceObject :
Object
- CtpOrderEventResource :
Object
- CtpOrderEvent :
Object
- CustomerProfileObject :
Object
- CustomerSessionObject :
Object
Kind: global class
Configure ActionFactory.
Param | Type |
---|---|
lang | string |
taxCategoryId | string |
currencyCode | string |
Create commercetools Update Action based on Effect from TalonOne.
Kind: instance method of ActionFactory
Param | Type |
---|---|
effectType | string |
props | Object |
Kind: instance method of ActionFactory
Param | Type |
---|---|
effectType | string |
props | Object |
Kind: instance method of ActionFactory
See: https://docs.commercetools.com/api/projects/carts#add-customlineitem
Param | Type |
---|---|
name | string |
currencyCode | string |
centAmount | number |
Kind: instance method of ActionFactory
See: https://docs.commercetools.com/api/projects/carts#remove-customlineitem
Param | Type |
---|---|
customLineItemId | string |
Param | Type |
---|---|
lang | string |
cartId | string |
customerId | string |
totalPrice | CtpPrice |
lineItems | Array.<CtpLineItem> |
Kind: global class
- CustomerEventMapper
- new CustomerEventMapper(customerId, customerData, attributeMappings)
- .getProfileIntegrationId() ⇒
string
- .getDefaultBillingAddress(prefix) ⇒
object
- .getDefaultShippingAddress(prefix) ⇒
object
- .getAddressById(addressId, prefix) ⇒
object
- .mapDate(date) ⇒
string
- .getCustomAttributes() ⇒
object
- .getFlatterAttributes() ⇒
object
- .mapAttributes() ⇒
Object
Param | Type |
---|---|
customerId | string |
customerData | object |
attributeMappings | object |
Kind: instance method of CustomerEventMapper
Kind: instance method of CustomerEventMapper
Param | Type | Default |
---|---|---|
prefix | string | null |
null |
Kind: instance method of CustomerEventMapper
Param | Type | Default |
---|---|---|
prefix | string | null |
null |
Kind: instance method of CustomerEventMapper
Param | Type | Default |
---|---|---|
addressId | string |
|
prefix | string | null |
null |
Kind: instance method of CustomerEventMapper
Param | Type |
---|---|
date | string |
Kind: instance method of CustomerEventMapper
Kind: instance method of CustomerEventMapper
Kind: instance method of CustomerEventMapper
Kind: global class
- Money
- new Money(type, currencyCode, amount, fractionDigits)
- .getType() ⇒
MoneyType
- .getFractionDigits() ⇒
number
- .getCurrencyCode() ⇒
string
- .getDecimalAmount() ⇒
number
- .getCentAmount() ⇒
number
Param | Type | Default |
---|---|---|
type | MoneyType |
|
currencyCode | string |
|
amount | number |
|
fractionDigits | number |
2 |
money.getType() ⇒ MoneyType
Kind: instance method of Money
Kind: instance method of Money
Kind: instance method of Money
Kind: instance method of Money
Kind: instance method of Money
Param | Type |
---|---|
cartId | string |
orderState | OrderState |
Kind: global class
- ApiClientService
- new ApiClientService(basePath, apiKey)
- .updateCustomerProfile(id, payload) ⇒
Promise.<any>
- .updateCustomerSession(id, payload) ⇒
Promise.<any>
Param | Type |
---|---|
basePath | string |
apiKey | string |
Kind: instance method of ApiClientService
Param | Type |
---|---|
id | string |
payload | NewCustomerProfile |
Kind: instance method of ApiClientService
Param | Type |
---|---|
id | string |
payload | NewCustomerSessionV2 |
Kind: global class
- LoggerService
- new LoggerService(mode)
- instance
- static
- .checkMode(mode) ⇒
boolean
- .checkMode(mode) ⇒
Param | Type |
---|---|
mode | LoggerMode |
Kind: instance method of LoggerService
Param |
---|
...args |
Kind: instance method of LoggerService
Param |
---|
...args |
Kind: instance method of LoggerService
Param |
---|
...args |
Kind: static method of LoggerService
Param | Type |
---|---|
mode | LoggerMode |
Kind: global variable
See:: https://developers.talon.one/Integration-API/handling-effects#setdiscount
Kind: global variable
See: https://docs.commercetools.com/api/projects/carts#add-customlineitem
Kind: global variable
See: https://docs.commercetools.com/api/projects/carts#remove-customlineitem
Kind: global enum
Read only: true
Kind: global enum
Read only: true
Kind: global enum
Read only: true
Kind: global enum
Read only: true
See: https://docs.commercetools.com/api/projects/orders#orderstate
Kind: global enum
Read only: true
See: https://docs.commercetools.com/api/projects/carts#update-actions
Kind: global typedef
Properties
Name | Type |
---|---|
type | string |
currencyCode | string |
centAmount | number |
fractionDigits | number |
Kind: global typedef
Properties
Name | Type |
---|---|
name | Object |
productId | string |
quantity | number |
totalPrice | CtpPrice |
price | Object |
price.value | CtpPrice |
Kind: global typedef
Properties
Name | Type |
---|---|
name | Object |
productId | string |
quantity | number |
totalPrice | CtpPrice |
money | CtpPrice |
Kind: global typedef
Properties
Name | Type |
---|---|
id | string |
customerId | string |
totalPrice | CtpPrice |
lineItems | Array.<CtpLineItem> |
Kind: global typedef
Properties
Name | Type |
---|---|
obj | CtpCartEventResourceObject |
Kind: global typedef
Properties
Name | Type |
---|---|
resource | CtpCartEventResource |
Kind: global typedef
Properties
Name | Type |
---|---|
id | string |
version | string |
lastMessageSequenceNumber | string |
createdAt | string |
lastModifiedAt | string |
customerNumber | string |
string |
|
firstName | string |
lastName | string |
title | string |
salutation | string |
dateOfBirth | string |
companyName | string |
vatId | string |
defaultShippingAddressId | string |
defaultBillingAddressId | string |
externalId | string |
Kind: global typedef
Properties
Name | Type |
---|---|
obj | CtpCustomerEventResourceObject |
Kind: global typedef
Properties
Name | Type |
---|---|
resource | CtpCustomerEventResource |
Kind: global typedef
Properties
Name | Type |
---|---|
orderState | OrderState |
cart | Object |
cart.id | string |
Kind: global typedef
Properties
Name | Type |
---|---|
obj | CtpOrderEventResourceObject |
Kind: global typedef
Properties
Name | Type |
---|---|
resource | CtpOrderEventResource |
Kind: global typedef
Properties
Name | Type |
---|---|
id | string |
payload | NewCustomerProfile |
Kind: global typedef
Properties
Name | Type |
---|---|
id | string |
payload | NewCustomerSessionV2 |