commerce-sdk
Advanced tools
Changelog
v1.5.0-beta.0
Shopper Stores API
Customer API
Type Name Removed
Display Name Changed
Endpoints Removed
Shopper Baskets API
Shopper Login SLAS
Changelog
v1.4.5-beta.0
Shopper Baskets API
| Endpoint Name | Description | | ------------- |-------------| | addTaxForBasket | Enables external taxation for the specified basket | | addTaxForBasketItem | Add tax items in external tax mode | | getTaxesFromBasket | Retrieves taxes for specified basket |
Shopper Orders API
| Endpoint Name | Description | | ------------- |-------------| | getTaxesFromOrder | Retrieves external taxes for the specified order |
Changelog
v1.4.4-beta.0
import { sdkLogger } from "@commerce-sdk"
sdkLogger.setLevel(sdkLogger.levels.INFO);
commerce-sdk@${VERSION}
productClient = new Product({
retrySettings: {
// This means 3 total calls are made
retries: 2,
// Max wait between retries
maxTimeout: 200,
// Min wait between retries
minTimeout: 100
}
}
Changelog
v1.4.1-beta.0
Customer API
BREAKING: Removed endpoint method changes
Removed:
Product API
BREAKING: Endpoint method name changes
Changed:
| Existing Method Name | New Method Name | | ------------- |-------------| | deleteVariationGroupForMaster | unassignVariationGroupFromMasterProduct | | updateVariationGroupInMasterProduct | updateVariationGroupForMasterProduct | | assignVariationGroupForMasterProduct | assignVariationGroupToMasterProduct | | deleteVariationForMaster | unassignVariationFromMasterProduct | | updateVariationsInMasterProduct | updateVariationForMasterProduct | | createVariationForMasterProduct | assignVariationForMasterProduct |
Shopper Customer API
BREAKING: Removed endpoint method changes
Removed:
getCustomerAddresses
getCustomerPaymentInstruments
getCustomerProductListItems
Changed:
| Existing Method Name | New Method Name | | ------------- |-------------| | postResetPasswordToken | getResetPasswordToken |
Changelog
v1.4.0-beta.0
import { CacheManagerRedis } from "@commerce-apps/core"
const cacheManager = new CacheManagerRedis({ connection: "redis://localhost:6379" });
const config = {
cacheManager: cacheManager,
parameters: {
...
}
}
Product API
| Existing Method Name | New Method Name | | ------------- |-------------| | deleteVariationGroupForMaster | unassignVariationGroupFromMasterProduct | | updateVariationGroupInMasterProduct | updateVariationGroupForMasterProduct | | assignVariationGroupForMasterProduct | assignVariationGroupToMasterProduct | | deleteVariationForMaster | unassignVariationFromMasterProduct | | updateVariationsInMasterProduct | updateVariationForMasterProduct | | createVariationForMasterProduct | assignVariationForMasterProduct |
Changelog
v1.3.1-alpha.0
Request body of the endpoints now have data types Example:
updateOrder(
options: {
parameters?: {
organizationId?: string
orderNo: string
siteId?: string
},
headers?: { [key: string]: string },
body: OrderUpdateRequestT
}
): Promise<void>;
Changelog
v1.3.0-alpha.9
SDK now returns the cached asset on HTTP 304 response
SDK now closes the network connection by default
Parameters in API methods now have specific data types
Example:
productSearch(
options?: {
parameters?: {
organizationId?: string
siteId?: string
q?: string
refine?: Array<string>
sort?: string
currency?: string
locale?: string
offset?: number
limit?: number
},
headers?: { [key: string]: string }
}
): Promise<ProductSearchResultT>;
CDN Zones/CDN API
BREAKING: API client CdnApi
has been renamed to CdnZones
BREAKING: Endpoint method name changes
| Existing Method Name | New Method Name | | ------------- |-------------| | getZoneInfo | getZonesInfo | | updateWafGroupById | updateWafGroup | | updateWafRuleById | updateWafRule | | updateFirewallRuleById | updateFirewallRule |
Changelog
v1.3.0-alpha.8
new Product.ShopperProduct(clientConfig)
Checkout/ShopperBaskets
| Existing Method Name | New Method Name | | ------------- |-------------| | postBaskets | createBasket | | deleteBasketsById | deleteBasket | | getBasketsById | getBasket | | patchBasketsById | updateBasket | | putBasketsByIdBillingAddress | updateBillingAddressForBasket | | postBasketsByIdCoupons | addCouponToBasket | | deleteBasketsByIdCouponsById | removeCouponFromBasket | | putBasketsByIdCustomer | updateCustomerForBasket | | postBasketsByIdGiftCertificateItems | addGiftCertificateItemToBasket | | deleteBasketsByIdGiftCertificateItemsById | removeGiftCertificateItemFromBasket | | postBasketsByIdItems | addItemToBasket | | deleteBasketsByIdItemsById | removeItemFromBasket | | patchBasketsByIdItemsById | updateItemInBasket | | postBasketsByIdPaymentInstruments | addPaymentInstrumentToBasket | | deleteBasketsByIdPaymentInstrumentsById | removePaymentInstrumentFromBasket | | getBasketsByIdPaymentMethods | getPaymentMethodsForBasket | | postBasketsByIdShipments | createShipmentForBasket | | deleteBasketsByIdShipmentsById | removeShipmentFromBasket | | patchBasketsByIdShipmentsById | updateShipmentForBasket | | putBasketsByIdShipmentsByIdShippingAddress | updateShippingAddressForShipment | | putBasketsByIdShipmentsByIdShippingMethod | updateShippingMethodForShipment | | getBasketsByIdShipmentsByIdShippingMethods | getShippingMethodsForShipment |
Checkout/ShopperOrders
| Existing Method Name | New Method Name | | ------------- |-------------| | postOrders | createOrder | | getOrdersById | getOrder | | postOrdersByIdPaymentInstruments | createPaymentInstrumentForOrder | | deleteOrdersByIdPaymentInstrumentsById | removePaymentInstrumentFromOrder | | patchOrdersByIdPaymentInstrumentsById | updatePaymentInstrumentForOrder | | getOrdersByIdPaymentMethods | getPaymentMethodsForOrder |
AI/EinsteinQuickStartGuide
Pricing/Coupons
Changelog
v1.3.0-alpha.7
Search/ShopperSearch
Seller/ShopperStores