@@ -1830,14 +1830,18 @@ <h3 id='cart-method'>Methods</h3>
1830
1830
< tr id ='cart-addgiftcard '>
1831
1831
< td > < code > < b > addGiftCard</ b > (< nobr > << a href ='#giftcardpaymentpayload '> GiftCardPaymentPayload</ a > ></ nobr > < i > giftCardPayload</ i > )</ nobr > </ code > </ td >
1832
1832
< td > < code > Promise<< a href ='#fullorder '> FullOrder</ a > ></ code > </ td >
1833
- < td > Adds a gift card as payment method for the cart.
1834
- < p > Creates payment method with a given amount using store credit.</ p > </ td >
1833
+ < td > Adds a gift card as payment method for the cart.</ td >
1835
1834
</ tr >
1836
1835
< tr id ='cart-removegiftcard '>
1837
1836
< td > < code > < b > removeGiftCard</ b > (< nobr > <string></ nobr > < i > giftCardCode</ i > )</ nobr > </ code > </ td >
1838
1837
< td > < code > Promise<< a href ='#fullorder '> FullOrder</ a > ></ code > </ td >
1839
1838
< td > Removes gift card with provided code payment method from the cart.</ td >
1840
1839
</ tr >
1840
+ < tr id ='cart-addstorecredit '>
1841
+ < td > < code > < b > addStoreCredit</ b > (< nobr > <Number></ nobr > < i > amount</ i > )</ nobr > </ code > </ td >
1842
+ < td > < code > Promise<< a href ='#fullorder '> FullOrder</ a > ></ code > </ td >
1843
+ < td > Adds store credit of specified amount to the cart.</ td >
1844
+ </ tr >
1841
1845
< tr id ='cart-removestorecredits '>
1842
1846
< td > < code > < b > removeStoreCredits</ b > ()</ nobr > </ code > </ td >
1843
1847
< td > < code > Promise<< a href ='#fullorder '> FullOrder</ a > ></ code > </ td >
@@ -3246,7 +3250,8 @@ <h3 id='crosssell-example'>Usage example</h3>
3246
3250
]
3247
3251
}
3248
3252
</ code > </ pre >
3249
- < p > /v1/public/recommend/prod-prod/3?channel=2</ p >
3253
+ < p > /v1/public/recommend/prod-prod/3?channel=2
3254
+ /v1/public/recommend/prod-prod/3?channel=2</ p >
3250
3255
3251
3256
< pre > < code > {
3252
3257
"products": [
@@ -3264,6 +3269,39 @@ <h3 id='crosssell-example'>Usage example</h3>
3264
3269
}
3265
3270
]
3266
3271
}
3272
+ </ code > </ pre > < pre > < code > {
3273
+ "products": [
3274
+ {
3275
+ "product": {
3276
+ "id": 300,
3277
+ "productId": 60727,
3278
+ "scope": "1",
3279
+ "albums": [ { "images": [...], "name": "default" } ],
3280
+ "context": "default",
3281
+ "currency": "USD",
3282
+ "description": "...",
3283
+ "retailPrice": "8500",
3284
+ "salePrice": "8500",
3285
+ "skus": [ "AB9403_310", "AB9403_330", "AB9403_350", "AB9403_370" ],
3286
+ "slug": "dynamo-away-replica-jersey",
3287
+ "tags": [ "Apparel", "Soccer" ],
3288
+ "taxonomies": [
3289
+ { "taxonomy": "brand", "taxons": [ [ "Performance" ] ] },
3290
+ { "taxonomy": "category", "taxons": [ [ "Apparel" ] ] },
3291
+ { "taxonomy": "color", "taxons": [ [ "Black" ], [ "Light Orange" ] ] },
3292
+ ],
3293
+ "title": "Dynamo Away Replica Jersey"
3294
+ },
3295
+ "score": 0.129*9944487358058
3296
+ },
3297
+ {
3298
+ "product": {
3299
+ ...
3300
+ },
3301
+ "score": 0.07715167498104597
3302
+ }
3303
+ ]
3304
+ }
3267
3305
</ code > </ pre >
3268
3306
3269
3307
@@ -3300,6 +3338,14 @@ <h3 id='crosssell-method'>Methods</h3>
3300
3338
< td > Returns JSON of what products are similar to the productId in the query params.
3301
3339
{ "products": [ RelatedProduct ] }
3302
3340
Score == 1 means these products were purchased by the exact same set of customers.
3341
+ Score == 0 means no customer has purchased both of these</ td >
3342
+ </ tr >
3343
+ < tr id ='crosssell-crosssellrelatedfull '>
3344
+ < td > < code > < b > crossSellRelatedFull</ b > (< nobr > <Int></ nobr > < i > productId</ i > , < nobr > <Int></ nobr > < i > channelId</ i > , < nobr > <Int></ nobr > < i > size</ i > , < i > {Int} productId</ i > , < i > {Int} channelId</ i > , < i > {Int} size</ i > )</ nobr > </ code > </ td >
3345
+ < td > < code > Promise</ code > </ td >
3346
+ < td > Returns JSON of what products are similar to the productId in the query params.
3347
+ { "products": [ RelatedProductFull ] }
3348
+ Score == 1 means these products were purchased by the exact same set of customers.
3303
3349
Score == 0 means no customer has purchased both of these</ td >
3304
3350
</ tr >
3305
3351
</ tbody > </ table >
0 commit comments