commerce-sdk-isomorphic 1.10.0 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -1
- package/lib/index.cjs.d.ts +378 -53
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +378 -53
- package/lib/index.esm.js +1 -1
- package/package.json +2 -2
package/lib/index.cjs.d.ts
CHANGED
|
@@ -213,6 +213,7 @@ type PaymentCardSpec = {
|
|
|
213
213
|
name?: string;
|
|
214
214
|
numberLengths?: Array<string>;
|
|
215
215
|
numberPrefixes?: Array<string>;
|
|
216
|
+
securityCodeLength?: number;
|
|
216
217
|
} & {
|
|
217
218
|
[key: string]: any;
|
|
218
219
|
};
|
|
@@ -687,7 +688,7 @@ type ShopperBasketsParameters = ShopperBasketsPathParameters & BaseUriParameters
|
|
|
687
688
|
* ```
|
|
688
689
|
*
|
|
689
690
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
690
|
-
* API Version: 0.8.
|
|
691
|
+
* API Version: 0.8.9<br />
|
|
691
692
|
* Last Updated: <br />
|
|
692
693
|
* </span>
|
|
693
694
|
|
|
@@ -800,6 +801,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
800
801
|
- `false` (default): Return a BasketTransferException (HTTP status 409). The basket owner doesn't change.
|
|
801
802
|
- `true`: Force the transfer by deleting the current shopper's active basket and making the current shopper the owner of the previous shopper's basket. Returns the transferred basket (HTTP status 200).
|
|
802
803
|
* @param siteId -
|
|
804
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
805
|
+
Below are some valid examples:
|
|
806
|
+
- en-US
|
|
807
|
+
- de-AT
|
|
808
|
+
- de
|
|
809
|
+
- default
|
|
803
810
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
804
811
|
* sent with this request.
|
|
805
812
|
*
|
|
@@ -811,6 +818,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
811
818
|
organizationId: string;
|
|
812
819
|
overrideExisting?: boolean;
|
|
813
820
|
siteId: string;
|
|
821
|
+
locale?: string;
|
|
814
822
|
}, ConfigParameters>;
|
|
815
823
|
headers?: {
|
|
816
824
|
[key: string]: string;
|
|
@@ -833,6 +841,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
833
841
|
- `false` (default): Return a BasketTransferException (HTTP status 409). The basket owner doesn't change.
|
|
834
842
|
- `true`: Force the transfer by deleting the current shopper's active basket and making the current shopper the owner of the previous shopper's basket. Returns the transferred basket (HTTP status 200).
|
|
835
843
|
* @param siteId -
|
|
844
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
845
|
+
Below are some valid examples:
|
|
846
|
+
- en-US
|
|
847
|
+
- de-AT
|
|
848
|
+
- de
|
|
849
|
+
- default
|
|
836
850
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
837
851
|
* sent with this request.
|
|
838
852
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -844,6 +858,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
844
858
|
organizationId: string;
|
|
845
859
|
overrideExisting?: boolean;
|
|
846
860
|
siteId: string;
|
|
861
|
+
locale?: string;
|
|
847
862
|
}, ConfigParameters>;
|
|
848
863
|
headers?: {
|
|
849
864
|
[key: string]: string;
|
|
@@ -904,6 +919,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
904
919
|
- saved_quantity: Use the product's quantity in the current shopper's active basket. Ignore the quantity from the previous shopper's basket.
|
|
905
920
|
- separate_item: Add a separate product item to the current shopper's basket for the quantity in the previous shopper's basket.
|
|
906
921
|
* @param siteId -
|
|
922
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
923
|
+
Below are some valid examples:
|
|
924
|
+
- en-US
|
|
925
|
+
- de-AT
|
|
926
|
+
- de
|
|
927
|
+
- default
|
|
907
928
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
908
929
|
* sent with this request.
|
|
909
930
|
*
|
|
@@ -916,6 +937,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
916
937
|
createDestinationBasket?: boolean;
|
|
917
938
|
productItemMergeMode?: string;
|
|
918
939
|
siteId: string;
|
|
940
|
+
locale?: string;
|
|
919
941
|
}, ConfigParameters>;
|
|
920
942
|
headers?: {
|
|
921
943
|
[key: string]: string;
|
|
@@ -974,6 +996,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
974
996
|
- saved_quantity: Use the product's quantity in the current shopper's active basket. Ignore the quantity from the previous shopper's basket.
|
|
975
997
|
- separate_item: Add a separate product item to the current shopper's basket for the quantity in the previous shopper's basket.
|
|
976
998
|
* @param siteId -
|
|
999
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
1000
|
+
Below are some valid examples:
|
|
1001
|
+
- en-US
|
|
1002
|
+
- de-AT
|
|
1003
|
+
- de
|
|
1004
|
+
- default
|
|
977
1005
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
978
1006
|
* sent with this request.
|
|
979
1007
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -986,6 +1014,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
986
1014
|
createDestinationBasket?: boolean;
|
|
987
1015
|
productItemMergeMode?: string;
|
|
988
1016
|
siteId: string;
|
|
1017
|
+
locale?: string;
|
|
989
1018
|
}, ConfigParameters>;
|
|
990
1019
|
headers?: {
|
|
991
1020
|
[key: string]: string;
|
|
@@ -1398,6 +1427,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1398
1427
|
* @param basketId - The ID of the basket to be modified.
|
|
1399
1428
|
* @param couponItemId - The ID of the coupon item to be removed.
|
|
1400
1429
|
* @param siteId -
|
|
1430
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
1431
|
+
Below are some valid examples:
|
|
1432
|
+
- en-US
|
|
1433
|
+
- de-AT
|
|
1434
|
+
- de
|
|
1435
|
+
- default
|
|
1401
1436
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
1402
1437
|
* sent with this request.
|
|
1403
1438
|
*
|
|
@@ -1410,6 +1445,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1410
1445
|
basketId: string;
|
|
1411
1446
|
couponItemId: string;
|
|
1412
1447
|
siteId: string;
|
|
1448
|
+
locale?: string;
|
|
1413
1449
|
}, ConfigParameters>;
|
|
1414
1450
|
headers?: {
|
|
1415
1451
|
[key: string]: string;
|
|
@@ -1424,6 +1460,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1424
1460
|
* @param basketId - The ID of the basket to be modified.
|
|
1425
1461
|
* @param couponItemId - The ID of the coupon item to be removed.
|
|
1426
1462
|
* @param siteId -
|
|
1463
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
1464
|
+
Below are some valid examples:
|
|
1465
|
+
- en-US
|
|
1466
|
+
- de-AT
|
|
1467
|
+
- de
|
|
1468
|
+
- default
|
|
1427
1469
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
1428
1470
|
* sent with this request.
|
|
1429
1471
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -1436,6 +1478,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1436
1478
|
basketId: string;
|
|
1437
1479
|
couponItemId: string;
|
|
1438
1480
|
siteId: string;
|
|
1481
|
+
locale?: string;
|
|
1439
1482
|
}, ConfigParameters>;
|
|
1440
1483
|
headers?: {
|
|
1441
1484
|
[key: string]: string;
|
|
@@ -1588,6 +1631,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1588
1631
|
* @param basketId - The ID of the basket to be modified.
|
|
1589
1632
|
* @param giftCertificateItemId - the ID of the gift certificate item to be updated.
|
|
1590
1633
|
* @param siteId -
|
|
1634
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
1635
|
+
Below are some valid examples:
|
|
1636
|
+
- en-US
|
|
1637
|
+
- de-AT
|
|
1638
|
+
- de
|
|
1639
|
+
- default
|
|
1591
1640
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
1592
1641
|
* sent with this request.
|
|
1593
1642
|
*
|
|
@@ -1600,6 +1649,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1600
1649
|
basketId: string;
|
|
1601
1650
|
giftCertificateItemId: string;
|
|
1602
1651
|
siteId: string;
|
|
1652
|
+
locale?: string;
|
|
1603
1653
|
}, ConfigParameters>;
|
|
1604
1654
|
headers?: {
|
|
1605
1655
|
[key: string]: string;
|
|
@@ -1614,6 +1664,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1614
1664
|
* @param basketId - The ID of the basket to be modified.
|
|
1615
1665
|
* @param giftCertificateItemId - the ID of the gift certificate item to be updated.
|
|
1616
1666
|
* @param siteId -
|
|
1667
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
1668
|
+
Below are some valid examples:
|
|
1669
|
+
- en-US
|
|
1670
|
+
- de-AT
|
|
1671
|
+
- de
|
|
1672
|
+
- default
|
|
1617
1673
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
1618
1674
|
* sent with this request.
|
|
1619
1675
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -1626,6 +1682,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1626
1682
|
basketId: string;
|
|
1627
1683
|
giftCertificateItemId: string;
|
|
1628
1684
|
siteId: string;
|
|
1685
|
+
locale?: string;
|
|
1629
1686
|
}, ConfigParameters>;
|
|
1630
1687
|
headers?: {
|
|
1631
1688
|
[key: string]: string;
|
|
@@ -1832,6 +1889,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1832
1889
|
* @param basketId - The ID of the basket to be modified.
|
|
1833
1890
|
* @param itemId - The ID of the item to be updated.
|
|
1834
1891
|
* @param siteId -
|
|
1892
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
1893
|
+
Below are some valid examples:
|
|
1894
|
+
- en-US
|
|
1895
|
+
- de-AT
|
|
1896
|
+
- de
|
|
1897
|
+
- default
|
|
1835
1898
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
1836
1899
|
* sent with this request.
|
|
1837
1900
|
*
|
|
@@ -1844,6 +1907,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1844
1907
|
basketId: string;
|
|
1845
1908
|
itemId: string;
|
|
1846
1909
|
siteId: string;
|
|
1910
|
+
locale?: string;
|
|
1847
1911
|
}, ConfigParameters>;
|
|
1848
1912
|
headers?: {
|
|
1849
1913
|
[key: string]: string;
|
|
@@ -1858,6 +1922,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1858
1922
|
* @param basketId - The ID of the basket to be modified.
|
|
1859
1923
|
* @param itemId - The ID of the item to be updated.
|
|
1860
1924
|
* @param siteId -
|
|
1925
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
1926
|
+
Below are some valid examples:
|
|
1927
|
+
- en-US
|
|
1928
|
+
- de-AT
|
|
1929
|
+
- de
|
|
1930
|
+
- default
|
|
1861
1931
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
1862
1932
|
* sent with this request.
|
|
1863
1933
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -1870,6 +1940,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
1870
1940
|
basketId: string;
|
|
1871
1941
|
itemId: string;
|
|
1872
1942
|
siteId: string;
|
|
1943
|
+
locale?: string;
|
|
1873
1944
|
}, ConfigParameters>;
|
|
1874
1945
|
headers?: {
|
|
1875
1946
|
[key: string]: string;
|
|
@@ -2142,6 +2213,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2142
2213
|
* @param basketId - The ID of the basket to be modified.
|
|
2143
2214
|
* @param paymentInstrumentId -
|
|
2144
2215
|
* @param siteId -
|
|
2216
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
2217
|
+
Below are some valid examples:
|
|
2218
|
+
- en-US
|
|
2219
|
+
- de-AT
|
|
2220
|
+
- de
|
|
2221
|
+
- default
|
|
2145
2222
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
2146
2223
|
* sent with this request.
|
|
2147
2224
|
*
|
|
@@ -2154,6 +2231,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2154
2231
|
basketId: string;
|
|
2155
2232
|
paymentInstrumentId: string;
|
|
2156
2233
|
siteId: string;
|
|
2234
|
+
locale?: string;
|
|
2157
2235
|
}, ConfigParameters>;
|
|
2158
2236
|
headers?: {
|
|
2159
2237
|
[key: string]: string;
|
|
@@ -2168,6 +2246,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2168
2246
|
* @param basketId - The ID of the basket to be modified.
|
|
2169
2247
|
* @param paymentInstrumentId -
|
|
2170
2248
|
* @param siteId -
|
|
2249
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
2250
|
+
Below are some valid examples:
|
|
2251
|
+
- en-US
|
|
2252
|
+
- de-AT
|
|
2253
|
+
- de
|
|
2254
|
+
- default
|
|
2171
2255
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
2172
2256
|
* sent with this request.
|
|
2173
2257
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -2180,6 +2264,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2180
2264
|
basketId: string;
|
|
2181
2265
|
paymentInstrumentId: string;
|
|
2182
2266
|
siteId: string;
|
|
2267
|
+
locale?: string;
|
|
2183
2268
|
}, ConfigParameters>;
|
|
2184
2269
|
headers?: {
|
|
2185
2270
|
[key: string]: string;
|
|
@@ -2408,6 +2493,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2408
2493
|
* @param basketId - The ID of the basket to be modified.
|
|
2409
2494
|
* @param priceAdjustmentId -
|
|
2410
2495
|
* @param siteId -
|
|
2496
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
2497
|
+
Below are some valid examples:
|
|
2498
|
+
- en-US
|
|
2499
|
+
- de-AT
|
|
2500
|
+
- de
|
|
2501
|
+
- default
|
|
2411
2502
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
2412
2503
|
* sent with this request.
|
|
2413
2504
|
*
|
|
@@ -2420,6 +2511,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2420
2511
|
basketId: string;
|
|
2421
2512
|
priceAdjustmentId: string;
|
|
2422
2513
|
siteId: string;
|
|
2514
|
+
locale?: string;
|
|
2423
2515
|
}, ConfigParameters>;
|
|
2424
2516
|
headers?: {
|
|
2425
2517
|
[key: string]: string;
|
|
@@ -2434,6 +2526,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2434
2526
|
* @param basketId - The ID of the basket to be modified.
|
|
2435
2527
|
* @param priceAdjustmentId -
|
|
2436
2528
|
* @param siteId -
|
|
2529
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
2530
|
+
Below are some valid examples:
|
|
2531
|
+
- en-US
|
|
2532
|
+
- de-AT
|
|
2533
|
+
- de
|
|
2534
|
+
- default
|
|
2437
2535
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
2438
2536
|
* sent with this request.
|
|
2439
2537
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -2446,6 +2544,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2446
2544
|
basketId: string;
|
|
2447
2545
|
priceAdjustmentId: string;
|
|
2448
2546
|
siteId: string;
|
|
2547
|
+
locale?: string;
|
|
2449
2548
|
}, ConfigParameters>;
|
|
2450
2549
|
headers?: {
|
|
2451
2550
|
[key: string]: string;
|
|
@@ -2726,6 +2825,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2726
2825
|
* @param basketId - The ID of the basket to be modified.
|
|
2727
2826
|
* @param shipmentId - The ID of the shipment to be modified.
|
|
2728
2827
|
* @param siteId -
|
|
2828
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
2829
|
+
Below are some valid examples:
|
|
2830
|
+
- en-US
|
|
2831
|
+
- de-AT
|
|
2832
|
+
- de
|
|
2833
|
+
- default
|
|
2729
2834
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
2730
2835
|
* sent with this request.
|
|
2731
2836
|
*
|
|
@@ -2738,6 +2843,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2738
2843
|
basketId: string;
|
|
2739
2844
|
shipmentId: string;
|
|
2740
2845
|
siteId: string;
|
|
2846
|
+
locale?: string;
|
|
2741
2847
|
}, ConfigParameters>;
|
|
2742
2848
|
headers?: {
|
|
2743
2849
|
[key: string]: string;
|
|
@@ -2754,6 +2860,12 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2754
2860
|
* @param basketId - The ID of the basket to be modified.
|
|
2755
2861
|
* @param shipmentId - The ID of the shipment to be modified.
|
|
2756
2862
|
* @param siteId -
|
|
2863
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
2864
|
+
Below are some valid examples:
|
|
2865
|
+
- en-US
|
|
2866
|
+
- de-AT
|
|
2867
|
+
- de
|
|
2868
|
+
- default
|
|
2757
2869
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
2758
2870
|
* sent with this request.
|
|
2759
2871
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -2766,6 +2878,7 @@ declare class ShopperBaskets<ConfigParameters extends ShopperBasketsParameters &
|
|
|
2766
2878
|
basketId: string;
|
|
2767
2879
|
shipmentId: string;
|
|
2768
2880
|
siteId: string;
|
|
2881
|
+
locale?: string;
|
|
2769
2882
|
}, ConfigParameters>;
|
|
2770
2883
|
headers?: {
|
|
2771
2884
|
[key: string]: string;
|
|
@@ -3604,6 +3717,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
3604
3717
|
name?: string;
|
|
3605
3718
|
numberLengths?: Array<string>;
|
|
3606
3719
|
numberPrefixes?: Array<string>;
|
|
3720
|
+
securityCodeLength?: number;
|
|
3607
3721
|
} & {
|
|
3608
3722
|
[key: string]: any;
|
|
3609
3723
|
};
|
|
@@ -4113,7 +4227,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
4113
4227
|
* ```
|
|
4114
4228
|
*
|
|
4115
4229
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
4116
|
-
* API Version: 0.8.
|
|
4230
|
+
* API Version: 0.8.9<br />
|
|
4117
4231
|
* Last Updated: <br />
|
|
4118
4232
|
* </span>
|
|
4119
4233
|
|
|
@@ -4226,6 +4340,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
4226
4340
|
- `false` (default): Return a BasketTransferException (HTTP status 409). The basket owner doesn't change.
|
|
4227
4341
|
- `true`: Force the transfer by deleting the current shopper's active basket and making the current shopper the owner of the previous shopper's basket. Returns the transferred basket (HTTP status 200).
|
|
4228
4342
|
* @param siteId -
|
|
4343
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
4344
|
+
Below are some valid examples:
|
|
4345
|
+
- en-US
|
|
4346
|
+
- de-AT
|
|
4347
|
+
- de
|
|
4348
|
+
- default
|
|
4229
4349
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
4230
4350
|
* sent with this request.
|
|
4231
4351
|
*
|
|
@@ -4237,6 +4357,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
4237
4357
|
organizationId: string;
|
|
4238
4358
|
overrideExisting?: boolean;
|
|
4239
4359
|
siteId: string;
|
|
4360
|
+
locale?: string;
|
|
4240
4361
|
}, ConfigParameters>;
|
|
4241
4362
|
headers?: {
|
|
4242
4363
|
[key: string]: string;
|
|
@@ -4259,6 +4380,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
4259
4380
|
- `false` (default): Return a BasketTransferException (HTTP status 409). The basket owner doesn't change.
|
|
4260
4381
|
- `true`: Force the transfer by deleting the current shopper's active basket and making the current shopper the owner of the previous shopper's basket. Returns the transferred basket (HTTP status 200).
|
|
4261
4382
|
* @param siteId -
|
|
4383
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
4384
|
+
Below are some valid examples:
|
|
4385
|
+
- en-US
|
|
4386
|
+
- de-AT
|
|
4387
|
+
- de
|
|
4388
|
+
- default
|
|
4262
4389
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
4263
4390
|
* sent with this request.
|
|
4264
4391
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -4270,6 +4397,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
4270
4397
|
organizationId: string;
|
|
4271
4398
|
overrideExisting?: boolean;
|
|
4272
4399
|
siteId: string;
|
|
4400
|
+
locale?: string;
|
|
4273
4401
|
}, ConfigParameters>;
|
|
4274
4402
|
headers?: {
|
|
4275
4403
|
[key: string]: string;
|
|
@@ -4330,6 +4458,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
4330
4458
|
- saved_quantity: Use the product's quantity in the current shopper's active basket. Ignore the quantity from the previous shopper's basket.
|
|
4331
4459
|
- separate_item: Add a separate product item to the current shopper's basket for the quantity in the previous shopper's basket.
|
|
4332
4460
|
* @param siteId -
|
|
4461
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
4462
|
+
Below are some valid examples:
|
|
4463
|
+
- en-US
|
|
4464
|
+
- de-AT
|
|
4465
|
+
- de
|
|
4466
|
+
- default
|
|
4333
4467
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
4334
4468
|
* sent with this request.
|
|
4335
4469
|
*
|
|
@@ -4342,6 +4476,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
4342
4476
|
createDestinationBasket?: boolean;
|
|
4343
4477
|
productItemMergeMode?: string;
|
|
4344
4478
|
siteId: string;
|
|
4479
|
+
locale?: string;
|
|
4345
4480
|
}, ConfigParameters>;
|
|
4346
4481
|
headers?: {
|
|
4347
4482
|
[key: string]: string;
|
|
@@ -4400,6 +4535,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
4400
4535
|
- saved_quantity: Use the product's quantity in the current shopper's active basket. Ignore the quantity from the previous shopper's basket.
|
|
4401
4536
|
- separate_item: Add a separate product item to the current shopper's basket for the quantity in the previous shopper's basket.
|
|
4402
4537
|
* @param siteId -
|
|
4538
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
4539
|
+
Below are some valid examples:
|
|
4540
|
+
- en-US
|
|
4541
|
+
- de-AT
|
|
4542
|
+
- de
|
|
4543
|
+
- default
|
|
4403
4544
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
4404
4545
|
* sent with this request.
|
|
4405
4546
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -4412,6 +4553,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
4412
4553
|
createDestinationBasket?: boolean;
|
|
4413
4554
|
productItemMergeMode?: string;
|
|
4414
4555
|
siteId: string;
|
|
4556
|
+
locale?: string;
|
|
4415
4557
|
}, ConfigParameters>;
|
|
4416
4558
|
headers?: {
|
|
4417
4559
|
[key: string]: string;
|
|
@@ -4824,6 +4966,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
4824
4966
|
* @param basketId - The ID of the basket to be modified.
|
|
4825
4967
|
* @param couponItemId - The ID of the coupon item to be removed.
|
|
4826
4968
|
* @param siteId -
|
|
4969
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
4970
|
+
Below are some valid examples:
|
|
4971
|
+
- en-US
|
|
4972
|
+
- de-AT
|
|
4973
|
+
- de
|
|
4974
|
+
- default
|
|
4827
4975
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
4828
4976
|
* sent with this request.
|
|
4829
4977
|
*
|
|
@@ -4836,6 +4984,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
4836
4984
|
basketId: string;
|
|
4837
4985
|
couponItemId: string;
|
|
4838
4986
|
siteId: string;
|
|
4987
|
+
locale?: string;
|
|
4839
4988
|
}, ConfigParameters>;
|
|
4840
4989
|
headers?: {
|
|
4841
4990
|
[key: string]: string;
|
|
@@ -4850,6 +4999,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
4850
4999
|
* @param basketId - The ID of the basket to be modified.
|
|
4851
5000
|
* @param couponItemId - The ID of the coupon item to be removed.
|
|
4852
5001
|
* @param siteId -
|
|
5002
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
5003
|
+
Below are some valid examples:
|
|
5004
|
+
- en-US
|
|
5005
|
+
- de-AT
|
|
5006
|
+
- de
|
|
5007
|
+
- default
|
|
4853
5008
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
4854
5009
|
* sent with this request.
|
|
4855
5010
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -4862,6 +5017,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
4862
5017
|
basketId: string;
|
|
4863
5018
|
couponItemId: string;
|
|
4864
5019
|
siteId: string;
|
|
5020
|
+
locale?: string;
|
|
4865
5021
|
}, ConfigParameters>;
|
|
4866
5022
|
headers?: {
|
|
4867
5023
|
[key: string]: string;
|
|
@@ -5014,6 +5170,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
5014
5170
|
* @param basketId - The ID of the basket to be modified.
|
|
5015
5171
|
* @param giftCertificateItemId - the ID of the gift certificate item to be updated.
|
|
5016
5172
|
* @param siteId -
|
|
5173
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
5174
|
+
Below are some valid examples:
|
|
5175
|
+
- en-US
|
|
5176
|
+
- de-AT
|
|
5177
|
+
- de
|
|
5178
|
+
- default
|
|
5017
5179
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
5018
5180
|
* sent with this request.
|
|
5019
5181
|
*
|
|
@@ -5026,6 +5188,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
5026
5188
|
basketId: string;
|
|
5027
5189
|
giftCertificateItemId: string;
|
|
5028
5190
|
siteId: string;
|
|
5191
|
+
locale?: string;
|
|
5029
5192
|
}, ConfigParameters>;
|
|
5030
5193
|
headers?: {
|
|
5031
5194
|
[key: string]: string;
|
|
@@ -5040,6 +5203,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
5040
5203
|
* @param basketId - The ID of the basket to be modified.
|
|
5041
5204
|
* @param giftCertificateItemId - the ID of the gift certificate item to be updated.
|
|
5042
5205
|
* @param siteId -
|
|
5206
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
5207
|
+
Below are some valid examples:
|
|
5208
|
+
- en-US
|
|
5209
|
+
- de-AT
|
|
5210
|
+
- de
|
|
5211
|
+
- default
|
|
5043
5212
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
5044
5213
|
* sent with this request.
|
|
5045
5214
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -5052,6 +5221,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
5052
5221
|
basketId: string;
|
|
5053
5222
|
giftCertificateItemId: string;
|
|
5054
5223
|
siteId: string;
|
|
5224
|
+
locale?: string;
|
|
5055
5225
|
}, ConfigParameters>;
|
|
5056
5226
|
headers?: {
|
|
5057
5227
|
[key: string]: string;
|
|
@@ -5258,6 +5428,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
5258
5428
|
* @param basketId - The ID of the basket to be modified.
|
|
5259
5429
|
* @param itemId - The ID of the item to be updated.
|
|
5260
5430
|
* @param siteId -
|
|
5431
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
5432
|
+
Below are some valid examples:
|
|
5433
|
+
- en-US
|
|
5434
|
+
- de-AT
|
|
5435
|
+
- de
|
|
5436
|
+
- default
|
|
5261
5437
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
5262
5438
|
* sent with this request.
|
|
5263
5439
|
*
|
|
@@ -5270,6 +5446,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
5270
5446
|
basketId: string;
|
|
5271
5447
|
itemId: string;
|
|
5272
5448
|
siteId: string;
|
|
5449
|
+
locale?: string;
|
|
5273
5450
|
}, ConfigParameters>;
|
|
5274
5451
|
headers?: {
|
|
5275
5452
|
[key: string]: string;
|
|
@@ -5284,6 +5461,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
5284
5461
|
* @param basketId - The ID of the basket to be modified.
|
|
5285
5462
|
* @param itemId - The ID of the item to be updated.
|
|
5286
5463
|
* @param siteId -
|
|
5464
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
5465
|
+
Below are some valid examples:
|
|
5466
|
+
- en-US
|
|
5467
|
+
- de-AT
|
|
5468
|
+
- de
|
|
5469
|
+
- default
|
|
5287
5470
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
5288
5471
|
* sent with this request.
|
|
5289
5472
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -5296,6 +5479,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
5296
5479
|
basketId: string;
|
|
5297
5480
|
itemId: string;
|
|
5298
5481
|
siteId: string;
|
|
5482
|
+
locale?: string;
|
|
5299
5483
|
}, ConfigParameters>;
|
|
5300
5484
|
headers?: {
|
|
5301
5485
|
[key: string]: string;
|
|
@@ -5568,6 +5752,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
5568
5752
|
* @param basketId - The ID of the basket to be modified.
|
|
5569
5753
|
* @param paymentInstrumentId -
|
|
5570
5754
|
* @param siteId -
|
|
5755
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
5756
|
+
Below are some valid examples:
|
|
5757
|
+
- en-US
|
|
5758
|
+
- de-AT
|
|
5759
|
+
- de
|
|
5760
|
+
- default
|
|
5571
5761
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
5572
5762
|
* sent with this request.
|
|
5573
5763
|
*
|
|
@@ -5580,6 +5770,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
5580
5770
|
basketId: string;
|
|
5581
5771
|
paymentInstrumentId: string;
|
|
5582
5772
|
siteId: string;
|
|
5773
|
+
locale?: string;
|
|
5583
5774
|
}, ConfigParameters>;
|
|
5584
5775
|
headers?: {
|
|
5585
5776
|
[key: string]: string;
|
|
@@ -5594,6 +5785,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
5594
5785
|
* @param basketId - The ID of the basket to be modified.
|
|
5595
5786
|
* @param paymentInstrumentId -
|
|
5596
5787
|
* @param siteId -
|
|
5788
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
5789
|
+
Below are some valid examples:
|
|
5790
|
+
- en-US
|
|
5791
|
+
- de-AT
|
|
5792
|
+
- de
|
|
5793
|
+
- default
|
|
5597
5794
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
5598
5795
|
* sent with this request.
|
|
5599
5796
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -5606,6 +5803,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
5606
5803
|
basketId: string;
|
|
5607
5804
|
paymentInstrumentId: string;
|
|
5608
5805
|
siteId: string;
|
|
5806
|
+
locale?: string;
|
|
5609
5807
|
}, ConfigParameters>;
|
|
5610
5808
|
headers?: {
|
|
5611
5809
|
[key: string]: string;
|
|
@@ -5834,6 +6032,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
5834
6032
|
* @param basketId - The ID of the basket to be modified.
|
|
5835
6033
|
* @param priceAdjustmentId -
|
|
5836
6034
|
* @param siteId -
|
|
6035
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
6036
|
+
Below are some valid examples:
|
|
6037
|
+
- en-US
|
|
6038
|
+
- de-AT
|
|
6039
|
+
- de
|
|
6040
|
+
- default
|
|
5837
6041
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
5838
6042
|
* sent with this request.
|
|
5839
6043
|
*
|
|
@@ -5846,6 +6050,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
5846
6050
|
basketId: string;
|
|
5847
6051
|
priceAdjustmentId: string;
|
|
5848
6052
|
siteId: string;
|
|
6053
|
+
locale?: string;
|
|
5849
6054
|
}, ConfigParameters>;
|
|
5850
6055
|
headers?: {
|
|
5851
6056
|
[key: string]: string;
|
|
@@ -5860,6 +6065,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
5860
6065
|
* @param basketId - The ID of the basket to be modified.
|
|
5861
6066
|
* @param priceAdjustmentId -
|
|
5862
6067
|
* @param siteId -
|
|
6068
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
6069
|
+
Below are some valid examples:
|
|
6070
|
+
- en-US
|
|
6071
|
+
- de-AT
|
|
6072
|
+
- de
|
|
6073
|
+
- default
|
|
5863
6074
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
5864
6075
|
* sent with this request.
|
|
5865
6076
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -5872,6 +6083,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
5872
6083
|
basketId: string;
|
|
5873
6084
|
priceAdjustmentId: string;
|
|
5874
6085
|
siteId: string;
|
|
6086
|
+
locale?: string;
|
|
5875
6087
|
}, ConfigParameters>;
|
|
5876
6088
|
headers?: {
|
|
5877
6089
|
[key: string]: string;
|
|
@@ -6152,6 +6364,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
6152
6364
|
* @param basketId - The ID of the basket to be modified.
|
|
6153
6365
|
* @param shipmentId - The ID of the shipment to be modified.
|
|
6154
6366
|
* @param siteId -
|
|
6367
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
6368
|
+
Below are some valid examples:
|
|
6369
|
+
- en-US
|
|
6370
|
+
- de-AT
|
|
6371
|
+
- de
|
|
6372
|
+
- default
|
|
6155
6373
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
6156
6374
|
* sent with this request.
|
|
6157
6375
|
*
|
|
@@ -6164,6 +6382,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
6164
6382
|
basketId: string;
|
|
6165
6383
|
shipmentId: string;
|
|
6166
6384
|
siteId: string;
|
|
6385
|
+
locale?: string;
|
|
6167
6386
|
}, ConfigParameters>;
|
|
6168
6387
|
headers?: {
|
|
6169
6388
|
[key: string]: string;
|
|
@@ -6180,6 +6399,12 @@ declare namespace ShopperBasketsTypes {
|
|
|
6180
6399
|
* @param basketId - The ID of the basket to be modified.
|
|
6181
6400
|
* @param shipmentId - The ID of the shipment to be modified.
|
|
6182
6401
|
* @param siteId -
|
|
6402
|
+
* @param locale - A descriptor to provide locale context for a geographical region by both a language and/or country code. The locale pattern in the query param follows the ISO 639-1 for the language code (e.g. en, de, fr) and ISO 3166-1 for the country code (e.g. US, DE, AT). The param can be a combination of language code and country code or can just refer to the language code.
|
|
6403
|
+
Below are some valid examples:
|
|
6404
|
+
- en-US
|
|
6405
|
+
- de-AT
|
|
6406
|
+
- de
|
|
6407
|
+
- default
|
|
6183
6408
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
6184
6409
|
* sent with this request.
|
|
6185
6410
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
@@ -6192,6 +6417,7 @@ declare namespace ShopperBasketsTypes {
|
|
|
6192
6417
|
basketId: string;
|
|
6193
6418
|
shipmentId: string;
|
|
6194
6419
|
siteId: string;
|
|
6420
|
+
locale?: string;
|
|
6195
6421
|
}, ConfigParameters>;
|
|
6196
6422
|
headers?: {
|
|
6197
6423
|
[key: string]: string;
|
|
@@ -6842,7 +7068,7 @@ type ShopperContextsParameters = ShopperContextsPathParameters & BaseUriParamete
|
|
|
6842
7068
|
* ```
|
|
6843
7069
|
*
|
|
6844
7070
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
6845
|
-
* API Version: 0.0.
|
|
7071
|
+
* API Version: 0.0.20<br />
|
|
6846
7072
|
* Last Updated: <br />
|
|
6847
7073
|
* </span>
|
|
6848
7074
|
|
|
@@ -6864,7 +7090,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
|
|
|
6864
7090
|
* @param options - An object containing the options for this method.
|
|
6865
7091
|
* @param parameters - An object containing the parameters for this method.
|
|
6866
7092
|
* @param organizationId -
|
|
6867
|
-
* @param usid - The Shopper's unique identifier
|
|
7093
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
6868
7094
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
6869
7095
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
6870
7096
|
* sent with this request.
|
|
@@ -6888,7 +7114,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
|
|
|
6888
7114
|
* @param options - An object containing the options for this method.
|
|
6889
7115
|
* @param parameters - An object containing the parameters for this method.
|
|
6890
7116
|
* @param organizationId -
|
|
6891
|
-
* @param usid - The Shopper's unique identifier
|
|
7117
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
6892
7118
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
6893
7119
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
6894
7120
|
* sent with this request.
|
|
@@ -6914,7 +7140,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
|
|
|
6914
7140
|
* @param options - An object containing the options for this method.
|
|
6915
7141
|
* @param parameters - An object containing the parameters for this method.
|
|
6916
7142
|
* @param organizationId -
|
|
6917
|
-
* @param usid - The Shopper's unique identifier
|
|
7143
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
6918
7144
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
6919
7145
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
6920
7146
|
* sent with this request.
|
|
@@ -6940,7 +7166,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
|
|
|
6940
7166
|
* @param options - An object containing the options for this method.
|
|
6941
7167
|
* @param parameters - An object containing the parameters for this method.
|
|
6942
7168
|
* @param organizationId -
|
|
6943
|
-
* @param usid - The Shopper's unique identifier
|
|
7169
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
6944
7170
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
6945
7171
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
6946
7172
|
* sent with this request.
|
|
@@ -6968,7 +7194,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
|
|
|
6968
7194
|
* @param options - An object containing the options for this method.
|
|
6969
7195
|
* @param parameters - An object containing the parameters for this method.
|
|
6970
7196
|
* @param organizationId -
|
|
6971
|
-
* @param usid - The Shopper's unique identifier
|
|
7197
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
6972
7198
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
6973
7199
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
6974
7200
|
* sent with this request.
|
|
@@ -6992,7 +7218,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
|
|
|
6992
7218
|
* @param options - An object containing the options for this method.
|
|
6993
7219
|
* @param parameters - An object containing the parameters for this method.
|
|
6994
7220
|
* @param organizationId -
|
|
6995
|
-
* @param usid - The Shopper's unique identifier
|
|
7221
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
6996
7222
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
6997
7223
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
6998
7224
|
* sent with this request.
|
|
@@ -7018,7 +7244,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
|
|
|
7018
7244
|
* @param options - An object containing the options for this method.
|
|
7019
7245
|
* @param parameters - An object containing the parameters for this method.
|
|
7020
7246
|
* @param organizationId -
|
|
7021
|
-
* @param usid - The Shopper's unique identifier
|
|
7247
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7022
7248
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7023
7249
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7024
7250
|
* sent with this request.
|
|
@@ -7044,7 +7270,7 @@ declare class ShopperContexts<ConfigParameters extends ShopperContextsParameters
|
|
|
7044
7270
|
* @param options - An object containing the options for this method.
|
|
7045
7271
|
* @param parameters - An object containing the parameters for this method.
|
|
7046
7272
|
* @param organizationId -
|
|
7047
|
-
* @param usid - The Shopper's unique identifier
|
|
7273
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7048
7274
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7049
7275
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7050
7276
|
* sent with this request.
|
|
@@ -7466,7 +7692,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7466
7692
|
* ```
|
|
7467
7693
|
*
|
|
7468
7694
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
7469
|
-
* API Version: 0.0.
|
|
7695
|
+
* API Version: 0.0.20<br />
|
|
7470
7696
|
* Last Updated: <br />
|
|
7471
7697
|
* </span>
|
|
7472
7698
|
|
|
@@ -7488,7 +7714,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7488
7714
|
* @param options - An object containing the options for this method.
|
|
7489
7715
|
* @param parameters - An object containing the parameters for this method.
|
|
7490
7716
|
* @param organizationId -
|
|
7491
|
-
* @param usid - The Shopper's unique identifier
|
|
7717
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7492
7718
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7493
7719
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7494
7720
|
* sent with this request.
|
|
@@ -7512,7 +7738,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7512
7738
|
* @param options - An object containing the options for this method.
|
|
7513
7739
|
* @param parameters - An object containing the parameters for this method.
|
|
7514
7740
|
* @param organizationId -
|
|
7515
|
-
* @param usid - The Shopper's unique identifier
|
|
7741
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7516
7742
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7517
7743
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7518
7744
|
* sent with this request.
|
|
@@ -7538,7 +7764,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7538
7764
|
* @param options - An object containing the options for this method.
|
|
7539
7765
|
* @param parameters - An object containing the parameters for this method.
|
|
7540
7766
|
* @param organizationId -
|
|
7541
|
-
* @param usid - The Shopper's unique identifier
|
|
7767
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7542
7768
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7543
7769
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7544
7770
|
* sent with this request.
|
|
@@ -7564,7 +7790,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7564
7790
|
* @param options - An object containing the options for this method.
|
|
7565
7791
|
* @param parameters - An object containing the parameters for this method.
|
|
7566
7792
|
* @param organizationId -
|
|
7567
|
-
* @param usid - The Shopper's unique identifier
|
|
7793
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7568
7794
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7569
7795
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7570
7796
|
* sent with this request.
|
|
@@ -7592,7 +7818,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7592
7818
|
* @param options - An object containing the options for this method.
|
|
7593
7819
|
* @param parameters - An object containing the parameters for this method.
|
|
7594
7820
|
* @param organizationId -
|
|
7595
|
-
* @param usid - The Shopper's unique identifier
|
|
7821
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7596
7822
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7597
7823
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7598
7824
|
* sent with this request.
|
|
@@ -7616,7 +7842,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7616
7842
|
* @param options - An object containing the options for this method.
|
|
7617
7843
|
* @param parameters - An object containing the parameters for this method.
|
|
7618
7844
|
* @param organizationId -
|
|
7619
|
-
* @param usid - The Shopper's unique identifier
|
|
7845
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7620
7846
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7621
7847
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7622
7848
|
* sent with this request.
|
|
@@ -7642,7 +7868,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7642
7868
|
* @param options - An object containing the options for this method.
|
|
7643
7869
|
* @param parameters - An object containing the parameters for this method.
|
|
7644
7870
|
* @param organizationId -
|
|
7645
|
-
* @param usid - The Shopper's unique identifier
|
|
7871
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7646
7872
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7647
7873
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7648
7874
|
* sent with this request.
|
|
@@ -7668,7 +7894,7 @@ declare namespace ShopperContextsTypes {
|
|
|
7668
7894
|
* @param options - An object containing the options for this method.
|
|
7669
7895
|
* @param parameters - An object containing the parameters for this method.
|
|
7670
7896
|
* @param organizationId -
|
|
7671
|
-
* @param usid - The Shopper's unique identifier
|
|
7897
|
+
* @param usid - The Shopper's unique identifier. It is a required parameter and is part of the response from the Guest or Registered User Shopper Login (SLAS) API call.
|
|
7672
7898
|
* @param siteId - The identifer of the site that a request is being made in the context of. It is strongly recommended to pass in the siteId in the call.
|
|
7673
7899
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
7674
7900
|
* sent with this request.
|
|
@@ -16439,12 +16665,12 @@ type LoginRequest = {
|
|
|
16439
16665
|
scope?: string;
|
|
16440
16666
|
usid?: string;
|
|
16441
16667
|
channel_id: string;
|
|
16442
|
-
code_challenge
|
|
16668
|
+
code_challenge?: string;
|
|
16443
16669
|
} & {
|
|
16444
16670
|
[key: string]: any;
|
|
16445
16671
|
};
|
|
16446
16672
|
type TrustedAgentTokenRequest = {
|
|
16447
|
-
agent_id
|
|
16673
|
+
agent_id?: string;
|
|
16448
16674
|
client_id: string;
|
|
16449
16675
|
channel_id: string;
|
|
16450
16676
|
code_verifier: string;
|
|
@@ -16559,6 +16785,7 @@ type SessionBridgeTokenRequest = {
|
|
|
16559
16785
|
dwsid: string;
|
|
16560
16786
|
grant_type: string;
|
|
16561
16787
|
login_id: string;
|
|
16788
|
+
dwsgst?: string;
|
|
16562
16789
|
usid?: string;
|
|
16563
16790
|
} & {
|
|
16564
16791
|
[key: string]: any;
|
|
@@ -16717,7 +16944,7 @@ type ShopperLoginParameters = ShopperLoginPathParameters & BaseUriParameters & S
|
|
|
16717
16944
|
* ```
|
|
16718
16945
|
*
|
|
16719
16946
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
16720
|
-
* API Version: 1.39.
|
|
16947
|
+
* API Version: 1.39.16<br />
|
|
16721
16948
|
* Last Updated: <br />
|
|
16722
16949
|
* </span>
|
|
16723
16950
|
|
|
@@ -16788,7 +17015,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
16788
17015
|
|
|
16789
17016
|
Required parameters: `code_challenge`, `channel_id`, `client_id`, and `redirect_uri`.
|
|
16790
17017
|
|
|
16791
|
-
Optional parameters: `usid
|
|
17018
|
+
Optional parameters: `usid`.
|
|
16792
17019
|
|
|
16793
17020
|
The SLAS `/login` endpoint redirects back to the redirect URI and returns an authorization code.
|
|
16794
17021
|
|
|
@@ -16827,7 +17054,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
16827
17054
|
|
|
16828
17055
|
Required parameters: `code_challenge`, `channel_id`, `client_id`, and `redirect_uri`.
|
|
16829
17056
|
|
|
16830
|
-
Optional parameters: `usid
|
|
17057
|
+
Optional parameters: `usid`.
|
|
16831
17058
|
|
|
16832
17059
|
The SLAS `/login` endpoint redirects back to the redirect URI and returns an authorization code.
|
|
16833
17060
|
|
|
@@ -16975,7 +17202,12 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
16975
17202
|
* @param options - An object containing the options for this method.
|
|
16976
17203
|
* @param parameters - An object containing the parameters for this method.
|
|
16977
17204
|
* @param organizationId -
|
|
16978
|
-
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered.
|
|
17205
|
+
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
17206
|
+
- `http://localhost:3000/callback`
|
|
17207
|
+
- `https://example.com/callback`
|
|
17208
|
+
- `com.example.app:redirect_uri_path`
|
|
17209
|
+
- ` *.subdomain.topleveldomain.com`
|
|
17210
|
+
|
|
16979
17211
|
* @param response_type - Must be `code`. Indicates that the client wants an authorization code (using the `authorization_code` grant type).
|
|
16980
17212
|
* @param client_id - The client ID obtained during application registration.
|
|
16981
17213
|
* @param scope -
|
|
@@ -17023,7 +17255,12 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17023
17255
|
* @param options - An object containing the options for this method.
|
|
17024
17256
|
* @param parameters - An object containing the parameters for this method.
|
|
17025
17257
|
* @param organizationId -
|
|
17026
|
-
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered.
|
|
17258
|
+
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
17259
|
+
- `http://localhost:3000/callback`
|
|
17260
|
+
- `https://example.com/callback`
|
|
17261
|
+
- `com.example.app:redirect_uri_path`
|
|
17262
|
+
- ` *.subdomain.topleveldomain.com`
|
|
17263
|
+
|
|
17027
17264
|
* @param response_type - Must be `code`. Indicates that the client wants an authorization code (using the `authorization_code` grant type).
|
|
17028
17265
|
* @param client_id - The client ID obtained during application registration.
|
|
17029
17266
|
* @param scope -
|
|
@@ -17070,7 +17307,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17070
17307
|
|
|
17071
17308
|
For a guest user, get the shopper JWT access token and a refresh token. This is where a client appplication is able to get an access token for the guest user through the back channel (a trusted server) by passing in the client credentials.
|
|
17072
17309
|
|
|
17073
|
-
For a public client using PKCE, an application will pass a PKCE `code_verifier
|
|
17310
|
+
For a public client using PKCE, an application will pass a PKCE `code_verifier` that matches the `code_challenge` that was used to `authorize` the customer along with the authorization code.
|
|
17074
17311
|
|
|
17075
17312
|
When refreshing the access token with a private client ID and client secret, the refresh token is _not_ regenerated. However, when refreshing the access token with a public client ID, the refresh token is _always_ regenerated. The old refresh token is voided with every refresh call, so the refresh token on the client needs to be replaced to always store the new refresh token.
|
|
17076
17313
|
|
|
@@ -17106,7 +17343,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17106
17343
|
|
|
17107
17344
|
For a guest user, get the shopper JWT access token and a refresh token. This is where a client appplication is able to get an access token for the guest user through the back channel (a trusted server) by passing in the client credentials.
|
|
17108
17345
|
|
|
17109
|
-
For a public client using PKCE, an application will pass a PKCE `code_verifier
|
|
17346
|
+
For a public client using PKCE, an application will pass a PKCE `code_verifier` that matches the `code_challenge` that was used to `authorize` the customer along with the authorization code.
|
|
17110
17347
|
|
|
17111
17348
|
When refreshing the access token with a private client ID and client secret, the refresh token is _not_ regenerated. However, when refreshing the access token with a public client ID, the refresh token is _always_ regenerated. The old refresh token is voided with every refresh call, so the refresh token on the client needs to be replaced to always store the new refresh token.
|
|
17112
17349
|
|
|
@@ -17260,7 +17497,12 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17260
17497
|
The `code_challenge` is not needed if a using SLAS private `client_id`.
|
|
17261
17498
|
* @param login_id - The ID of the shopper for trusted agent access.
|
|
17262
17499
|
* @param idp_origin - The IDP that the shopper is associated with.
|
|
17263
|
-
* @param redirect_uri - The redirect for Account Manager to redirect to.
|
|
17500
|
+
* @param redirect_uri - The redirect for Account Manager to redirect to. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
17501
|
+
- `http://localhost:3000/callback`
|
|
17502
|
+
- `https://example.com/callback`
|
|
17503
|
+
- `com.example.app:redirect_uri_path`
|
|
17504
|
+
- ` *.subdomain.topleveldomain.com`
|
|
17505
|
+
|
|
17264
17506
|
* @param response_type - Must be `code`. Indicates that the caller wants an authorization code.
|
|
17265
17507
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
17266
17508
|
* sent with this request.
|
|
@@ -17300,7 +17542,12 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17300
17542
|
The `code_challenge` is not needed if a using SLAS private `client_id`.
|
|
17301
17543
|
* @param login_id - The ID of the shopper for trusted agent access.
|
|
17302
17544
|
* @param idp_origin - The IDP that the shopper is associated with.
|
|
17303
|
-
* @param redirect_uri - The redirect for Account Manager to redirect to.
|
|
17545
|
+
* @param redirect_uri - The redirect for Account Manager to redirect to. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
17546
|
+
- `http://localhost:3000/callback`
|
|
17547
|
+
- `https://example.com/callback`
|
|
17548
|
+
- `com.example.app:redirect_uri_path`
|
|
17549
|
+
- ` *.subdomain.topleveldomain.com`
|
|
17550
|
+
|
|
17304
17551
|
* @param response_type - Must be `code`. Indicates that the caller wants an authorization code.
|
|
17305
17552
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
17306
17553
|
* sent with this request.
|
|
@@ -17655,6 +17902,9 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17655
17902
|
}>, rawResponse?: T): Promise<T extends true ? Response : Object>;
|
|
17656
17903
|
/**
|
|
17657
17904
|
* Returns a JSON listing of the OpenID/OAuth endpoints, supported scopes and claims, public keys used to sign the tokens, and other details.
|
|
17905
|
+
|
|
17906
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
17907
|
+
|
|
17658
17908
|
*
|
|
17659
17909
|
* If you would like to get a raw Response object use the other getWellknownOpenidConfiguration function.
|
|
17660
17910
|
*
|
|
@@ -17677,6 +17927,9 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17677
17927
|
}>): Promise<Object>;
|
|
17678
17928
|
/**
|
|
17679
17929
|
* Returns a JSON listing of the OpenID/OAuth endpoints, supported scopes and claims, public keys used to sign the tokens, and other details.
|
|
17930
|
+
|
|
17931
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
17932
|
+
|
|
17680
17933
|
*
|
|
17681
17934
|
* @param options - An object containing the options for this method.
|
|
17682
17935
|
* @param parameters - An object containing the parameters for this method.
|
|
@@ -17697,6 +17950,9 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17697
17950
|
}>, rawResponse?: T): Promise<T extends true ? Response : Object>;
|
|
17698
17951
|
/**
|
|
17699
17952
|
* Returns a JSON Web Key Set (JWKS) containing the current, past, and future public keys. The key set enables clients to validate the Shopper JSON Web Token (JWT) issued by SLAS.
|
|
17953
|
+
|
|
17954
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
17955
|
+
|
|
17700
17956
|
*
|
|
17701
17957
|
* If you would like to get a raw Response object use the other getJwksUri function.
|
|
17702
17958
|
*
|
|
@@ -17719,6 +17975,9 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
17719
17975
|
}>): Promise<Object>;
|
|
17720
17976
|
/**
|
|
17721
17977
|
* Returns a JSON Web Key Set (JWKS) containing the current, past, and future public keys. The key set enables clients to validate the Shopper JSON Web Token (JWT) issued by SLAS.
|
|
17978
|
+
|
|
17979
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
17980
|
+
|
|
17722
17981
|
*
|
|
17723
17982
|
* @param options - An object containing the options for this method.
|
|
17724
17983
|
* @param parameters - An object containing the parameters for this method.
|
|
@@ -17837,12 +18096,12 @@ declare namespace ShopperLoginTypes {
|
|
|
17837
18096
|
scope?: string;
|
|
17838
18097
|
usid?: string;
|
|
17839
18098
|
channel_id: string;
|
|
17840
|
-
code_challenge
|
|
18099
|
+
code_challenge?: string;
|
|
17841
18100
|
} & {
|
|
17842
18101
|
[key: string]: any;
|
|
17843
18102
|
};
|
|
17844
18103
|
type TrustedAgentTokenRequest = {
|
|
17845
|
-
agent_id
|
|
18104
|
+
agent_id?: string;
|
|
17846
18105
|
client_id: string;
|
|
17847
18106
|
channel_id: string;
|
|
17848
18107
|
code_verifier: string;
|
|
@@ -17975,6 +18234,7 @@ declare namespace ShopperLoginTypes {
|
|
|
17975
18234
|
dwsid: string;
|
|
17976
18235
|
grant_type: string;
|
|
17977
18236
|
login_id: string;
|
|
18237
|
+
dwsgst?: string;
|
|
17978
18238
|
usid?: string;
|
|
17979
18239
|
} & {
|
|
17980
18240
|
[key: string]: any;
|
|
@@ -18288,7 +18548,7 @@ declare namespace ShopperLoginTypes {
|
|
|
18288
18548
|
* ```
|
|
18289
18549
|
*
|
|
18290
18550
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
18291
|
-
* API Version: 1.39.
|
|
18551
|
+
* API Version: 1.39.16<br />
|
|
18292
18552
|
* Last Updated: <br />
|
|
18293
18553
|
* </span>
|
|
18294
18554
|
|
|
@@ -18359,7 +18619,7 @@ declare namespace ShopperLoginTypes {
|
|
|
18359
18619
|
|
|
18360
18620
|
Required parameters: `code_challenge`, `channel_id`, `client_id`, and `redirect_uri`.
|
|
18361
18621
|
|
|
18362
|
-
Optional parameters: `usid
|
|
18622
|
+
Optional parameters: `usid`.
|
|
18363
18623
|
|
|
18364
18624
|
The SLAS `/login` endpoint redirects back to the redirect URI and returns an authorization code.
|
|
18365
18625
|
|
|
@@ -18398,7 +18658,7 @@ declare namespace ShopperLoginTypes {
|
|
|
18398
18658
|
|
|
18399
18659
|
Required parameters: `code_challenge`, `channel_id`, `client_id`, and `redirect_uri`.
|
|
18400
18660
|
|
|
18401
|
-
Optional parameters: `usid
|
|
18661
|
+
Optional parameters: `usid`.
|
|
18402
18662
|
|
|
18403
18663
|
The SLAS `/login` endpoint redirects back to the redirect URI and returns an authorization code.
|
|
18404
18664
|
|
|
@@ -18546,7 +18806,12 @@ declare namespace ShopperLoginTypes {
|
|
|
18546
18806
|
* @param options - An object containing the options for this method.
|
|
18547
18807
|
* @param parameters - An object containing the parameters for this method.
|
|
18548
18808
|
* @param organizationId -
|
|
18549
|
-
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered.
|
|
18809
|
+
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
18810
|
+
- `http://localhost:3000/callback`
|
|
18811
|
+
- `https://example.com/callback`
|
|
18812
|
+
- `com.example.app:redirect_uri_path`
|
|
18813
|
+
- ` *.subdomain.topleveldomain.com`
|
|
18814
|
+
|
|
18550
18815
|
* @param response_type - Must be `code`. Indicates that the client wants an authorization code (using the `authorization_code` grant type).
|
|
18551
18816
|
* @param client_id - The client ID obtained during application registration.
|
|
18552
18817
|
* @param scope -
|
|
@@ -18594,7 +18859,12 @@ declare namespace ShopperLoginTypes {
|
|
|
18594
18859
|
* @param options - An object containing the options for this method.
|
|
18595
18860
|
* @param parameters - An object containing the parameters for this method.
|
|
18596
18861
|
* @param organizationId -
|
|
18597
|
-
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered.
|
|
18862
|
+
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
18863
|
+
- `http://localhost:3000/callback`
|
|
18864
|
+
- `https://example.com/callback`
|
|
18865
|
+
- `com.example.app:redirect_uri_path`
|
|
18866
|
+
- ` *.subdomain.topleveldomain.com`
|
|
18867
|
+
|
|
18598
18868
|
* @param response_type - Must be `code`. Indicates that the client wants an authorization code (using the `authorization_code` grant type).
|
|
18599
18869
|
* @param client_id - The client ID obtained during application registration.
|
|
18600
18870
|
* @param scope -
|
|
@@ -18641,7 +18911,7 @@ declare namespace ShopperLoginTypes {
|
|
|
18641
18911
|
|
|
18642
18912
|
For a guest user, get the shopper JWT access token and a refresh token. This is where a client appplication is able to get an access token for the guest user through the back channel (a trusted server) by passing in the client credentials.
|
|
18643
18913
|
|
|
18644
|
-
For a public client using PKCE, an application will pass a PKCE `code_verifier
|
|
18914
|
+
For a public client using PKCE, an application will pass a PKCE `code_verifier` that matches the `code_challenge` that was used to `authorize` the customer along with the authorization code.
|
|
18645
18915
|
|
|
18646
18916
|
When refreshing the access token with a private client ID and client secret, the refresh token is _not_ regenerated. However, when refreshing the access token with a public client ID, the refresh token is _always_ regenerated. The old refresh token is voided with every refresh call, so the refresh token on the client needs to be replaced to always store the new refresh token.
|
|
18647
18917
|
|
|
@@ -18677,7 +18947,7 @@ declare namespace ShopperLoginTypes {
|
|
|
18677
18947
|
|
|
18678
18948
|
For a guest user, get the shopper JWT access token and a refresh token. This is where a client appplication is able to get an access token for the guest user through the back channel (a trusted server) by passing in the client credentials.
|
|
18679
18949
|
|
|
18680
|
-
For a public client using PKCE, an application will pass a PKCE `code_verifier
|
|
18950
|
+
For a public client using PKCE, an application will pass a PKCE `code_verifier` that matches the `code_challenge` that was used to `authorize` the customer along with the authorization code.
|
|
18681
18951
|
|
|
18682
18952
|
When refreshing the access token with a private client ID and client secret, the refresh token is _not_ regenerated. However, when refreshing the access token with a public client ID, the refresh token is _always_ regenerated. The old refresh token is voided with every refresh call, so the refresh token on the client needs to be replaced to always store the new refresh token.
|
|
18683
18953
|
|
|
@@ -18831,7 +19101,12 @@ declare namespace ShopperLoginTypes {
|
|
|
18831
19101
|
The `code_challenge` is not needed if a using SLAS private `client_id`.
|
|
18832
19102
|
* @param login_id - The ID of the shopper for trusted agent access.
|
|
18833
19103
|
* @param idp_origin - The IDP that the shopper is associated with.
|
|
18834
|
-
* @param redirect_uri - The redirect for Account Manager to redirect to.
|
|
19104
|
+
* @param redirect_uri - The redirect for Account Manager to redirect to. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
19105
|
+
- `http://localhost:3000/callback`
|
|
19106
|
+
- `https://example.com/callback`
|
|
19107
|
+
- `com.example.app:redirect_uri_path`
|
|
19108
|
+
- ` *.subdomain.topleveldomain.com`
|
|
19109
|
+
|
|
18835
19110
|
* @param response_type - Must be `code`. Indicates that the caller wants an authorization code.
|
|
18836
19111
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
18837
19112
|
* sent with this request.
|
|
@@ -18871,7 +19146,12 @@ declare namespace ShopperLoginTypes {
|
|
|
18871
19146
|
The `code_challenge` is not needed if a using SLAS private `client_id`.
|
|
18872
19147
|
* @param login_id - The ID of the shopper for trusted agent access.
|
|
18873
19148
|
* @param idp_origin - The IDP that the shopper is associated with.
|
|
18874
|
-
* @param redirect_uri - The redirect for Account Manager to redirect to.
|
|
19149
|
+
* @param redirect_uri - The redirect for Account Manager to redirect to. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
19150
|
+
- `http://localhost:3000/callback`
|
|
19151
|
+
- `https://example.com/callback`
|
|
19152
|
+
- `com.example.app:redirect_uri_path`
|
|
19153
|
+
- ` *.subdomain.topleveldomain.com`
|
|
19154
|
+
|
|
18875
19155
|
* @param response_type - Must be `code`. Indicates that the caller wants an authorization code.
|
|
18876
19156
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
18877
19157
|
* sent with this request.
|
|
@@ -19226,6 +19506,9 @@ declare namespace ShopperLoginTypes {
|
|
|
19226
19506
|
}>, rawResponse?: T): Promise<T extends true ? Response : Object>;
|
|
19227
19507
|
/**
|
|
19228
19508
|
* Returns a JSON listing of the OpenID/OAuth endpoints, supported scopes and claims, public keys used to sign the tokens, and other details.
|
|
19509
|
+
|
|
19510
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
19511
|
+
|
|
19229
19512
|
*
|
|
19230
19513
|
* If you would like to get a raw Response object use the other getWellknownOpenidConfiguration function.
|
|
19231
19514
|
*
|
|
@@ -19248,6 +19531,9 @@ declare namespace ShopperLoginTypes {
|
|
|
19248
19531
|
}>): Promise<Object>;
|
|
19249
19532
|
/**
|
|
19250
19533
|
* Returns a JSON listing of the OpenID/OAuth endpoints, supported scopes and claims, public keys used to sign the tokens, and other details.
|
|
19534
|
+
|
|
19535
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
19536
|
+
|
|
19251
19537
|
*
|
|
19252
19538
|
* @param options - An object containing the options for this method.
|
|
19253
19539
|
* @param parameters - An object containing the parameters for this method.
|
|
@@ -19268,6 +19554,9 @@ declare namespace ShopperLoginTypes {
|
|
|
19268
19554
|
}>, rawResponse?: T): Promise<T extends true ? Response : Object>;
|
|
19269
19555
|
/**
|
|
19270
19556
|
* Returns a JSON Web Key Set (JWKS) containing the current, past, and future public keys. The key set enables clients to validate the Shopper JSON Web Token (JWT) issued by SLAS.
|
|
19557
|
+
|
|
19558
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
19559
|
+
|
|
19271
19560
|
*
|
|
19272
19561
|
* If you would like to get a raw Response object use the other getJwksUri function.
|
|
19273
19562
|
*
|
|
@@ -19290,6 +19579,9 @@ declare namespace ShopperLoginTypes {
|
|
|
19290
19579
|
}>): Promise<Object>;
|
|
19291
19580
|
/**
|
|
19292
19581
|
* Returns a JSON Web Key Set (JWKS) containing the current, past, and future public keys. The key set enables clients to validate the Shopper JSON Web Token (JWT) issued by SLAS.
|
|
19582
|
+
|
|
19583
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
19584
|
+
|
|
19293
19585
|
*
|
|
19294
19586
|
* @param options - An object containing the options for this method.
|
|
19295
19587
|
* @param parameters - An object containing the parameters for this method.
|
|
@@ -25426,12 +25718,12 @@ declare namespace helpers {
|
|
|
25426
25718
|
scope?: string;
|
|
25427
25719
|
usid?: string;
|
|
25428
25720
|
channel_id: string;
|
|
25429
|
-
code_challenge
|
|
25721
|
+
code_challenge?: string;
|
|
25430
25722
|
} & {
|
|
25431
25723
|
[key: string]: any;
|
|
25432
25724
|
};
|
|
25433
25725
|
type TrustedAgentTokenRequest = {
|
|
25434
|
-
agent_id
|
|
25726
|
+
agent_id?: string;
|
|
25435
25727
|
client_id: string;
|
|
25436
25728
|
channel_id: string;
|
|
25437
25729
|
code_verifier: string;
|
|
@@ -25564,6 +25856,7 @@ declare namespace helpers {
|
|
|
25564
25856
|
dwsid: string;
|
|
25565
25857
|
grant_type: string;
|
|
25566
25858
|
login_id: string;
|
|
25859
|
+
dwsgst?: string;
|
|
25567
25860
|
usid?: string;
|
|
25568
25861
|
} & {
|
|
25569
25862
|
[key: string]: any;
|
|
@@ -25877,7 +26170,7 @@ declare namespace helpers {
|
|
|
25877
26170
|
* ```
|
|
25878
26171
|
*
|
|
25879
26172
|
* <span style="font-size:.7em; display:block; text-align: right">
|
|
25880
|
-
* API Version: 1.39.
|
|
26173
|
+
* API Version: 1.39.16<br />
|
|
25881
26174
|
* Last Updated: <br />
|
|
25882
26175
|
* </span>
|
|
25883
26176
|
|
|
@@ -25948,7 +26241,7 @@ declare namespace helpers {
|
|
|
25948
26241
|
|
|
25949
26242
|
Required parameters: `code_challenge`, `channel_id`, `client_id`, and `redirect_uri`.
|
|
25950
26243
|
|
|
25951
|
-
Optional parameters: `usid
|
|
26244
|
+
Optional parameters: `usid`.
|
|
25952
26245
|
|
|
25953
26246
|
The SLAS `/login` endpoint redirects back to the redirect URI and returns an authorization code.
|
|
25954
26247
|
|
|
@@ -25987,7 +26280,7 @@ declare namespace helpers {
|
|
|
25987
26280
|
|
|
25988
26281
|
Required parameters: `code_challenge`, `channel_id`, `client_id`, and `redirect_uri`.
|
|
25989
26282
|
|
|
25990
|
-
Optional parameters: `usid
|
|
26283
|
+
Optional parameters: `usid`.
|
|
25991
26284
|
|
|
25992
26285
|
The SLAS `/login` endpoint redirects back to the redirect URI and returns an authorization code.
|
|
25993
26286
|
|
|
@@ -26135,7 +26428,12 @@ declare namespace helpers {
|
|
|
26135
26428
|
* @param options - An object containing the options for this method.
|
|
26136
26429
|
* @param parameters - An object containing the parameters for this method.
|
|
26137
26430
|
* @param organizationId -
|
|
26138
|
-
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered.
|
|
26431
|
+
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
26432
|
+
- `http://localhost:3000/callback`
|
|
26433
|
+
- `https://example.com/callback`
|
|
26434
|
+
- `com.example.app:redirect_uri_path`
|
|
26435
|
+
- ` *.subdomain.topleveldomain.com`
|
|
26436
|
+
|
|
26139
26437
|
* @param response_type - Must be `code`. Indicates that the client wants an authorization code (using the `authorization_code` grant type).
|
|
26140
26438
|
* @param client_id - The client ID obtained during application registration.
|
|
26141
26439
|
* @param scope -
|
|
@@ -26183,7 +26481,12 @@ declare namespace helpers {
|
|
|
26183
26481
|
* @param options - An object containing the options for this method.
|
|
26184
26482
|
* @param parameters - An object containing the parameters for this method.
|
|
26185
26483
|
* @param organizationId -
|
|
26186
|
-
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered.
|
|
26484
|
+
* @param redirect_uri - The URL to which the server redirects the browser after the user grants the authorization. The URI must be pre-registered. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
26485
|
+
- `http://localhost:3000/callback`
|
|
26486
|
+
- `https://example.com/callback`
|
|
26487
|
+
- `com.example.app:redirect_uri_path`
|
|
26488
|
+
- ` *.subdomain.topleveldomain.com`
|
|
26489
|
+
|
|
26187
26490
|
* @param response_type - Must be `code`. Indicates that the client wants an authorization code (using the `authorization_code` grant type).
|
|
26188
26491
|
* @param client_id - The client ID obtained during application registration.
|
|
26189
26492
|
* @param scope -
|
|
@@ -26230,7 +26533,7 @@ declare namespace helpers {
|
|
|
26230
26533
|
|
|
26231
26534
|
For a guest user, get the shopper JWT access token and a refresh token. This is where a client appplication is able to get an access token for the guest user through the back channel (a trusted server) by passing in the client credentials.
|
|
26232
26535
|
|
|
26233
|
-
For a public client using PKCE, an application will pass a PKCE `code_verifier
|
|
26536
|
+
For a public client using PKCE, an application will pass a PKCE `code_verifier` that matches the `code_challenge` that was used to `authorize` the customer along with the authorization code.
|
|
26234
26537
|
|
|
26235
26538
|
When refreshing the access token with a private client ID and client secret, the refresh token is _not_ regenerated. However, when refreshing the access token with a public client ID, the refresh token is _always_ regenerated. The old refresh token is voided with every refresh call, so the refresh token on the client needs to be replaced to always store the new refresh token.
|
|
26236
26539
|
|
|
@@ -26266,7 +26569,7 @@ declare namespace helpers {
|
|
|
26266
26569
|
|
|
26267
26570
|
For a guest user, get the shopper JWT access token and a refresh token. This is where a client appplication is able to get an access token for the guest user through the back channel (a trusted server) by passing in the client credentials.
|
|
26268
26571
|
|
|
26269
|
-
For a public client using PKCE, an application will pass a PKCE `code_verifier
|
|
26572
|
+
For a public client using PKCE, an application will pass a PKCE `code_verifier` that matches the `code_challenge` that was used to `authorize` the customer along with the authorization code.
|
|
26270
26573
|
|
|
26271
26574
|
When refreshing the access token with a private client ID and client secret, the refresh token is _not_ regenerated. However, when refreshing the access token with a public client ID, the refresh token is _always_ regenerated. The old refresh token is voided with every refresh call, so the refresh token on the client needs to be replaced to always store the new refresh token.
|
|
26272
26575
|
|
|
@@ -26420,7 +26723,12 @@ declare namespace helpers {
|
|
|
26420
26723
|
The `code_challenge` is not needed if a using SLAS private `client_id`.
|
|
26421
26724
|
* @param login_id - The ID of the shopper for trusted agent access.
|
|
26422
26725
|
* @param idp_origin - The IDP that the shopper is associated with.
|
|
26423
|
-
* @param redirect_uri - The redirect for Account Manager to redirect to.
|
|
26726
|
+
* @param redirect_uri - The redirect for Account Manager to redirect to. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
26727
|
+
- `http://localhost:3000/callback`
|
|
26728
|
+
- `https://example.com/callback`
|
|
26729
|
+
- `com.example.app:redirect_uri_path`
|
|
26730
|
+
- ` *.subdomain.topleveldomain.com`
|
|
26731
|
+
|
|
26424
26732
|
* @param response_type - Must be `code`. Indicates that the caller wants an authorization code.
|
|
26425
26733
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
26426
26734
|
* sent with this request.
|
|
@@ -26460,7 +26768,12 @@ declare namespace helpers {
|
|
|
26460
26768
|
The `code_challenge` is not needed if a using SLAS private `client_id`.
|
|
26461
26769
|
* @param login_id - The ID of the shopper for trusted agent access.
|
|
26462
26770
|
* @param idp_origin - The IDP that the shopper is associated with.
|
|
26463
|
-
* @param redirect_uri - The redirect for Account Manager to redirect to.
|
|
26771
|
+
* @param redirect_uri - The redirect for Account Manager to redirect to. A variety of URI formats and wildcard for host are supported, but app links like `airbnb://` or `fb://` are not. Examples of supported URIs:
|
|
26772
|
+
- `http://localhost:3000/callback`
|
|
26773
|
+
- `https://example.com/callback`
|
|
26774
|
+
- `com.example.app:redirect_uri_path`
|
|
26775
|
+
- ` *.subdomain.topleveldomain.com`
|
|
26776
|
+
|
|
26464
26777
|
* @param response_type - Must be `code`. Indicates that the caller wants an authorization code.
|
|
26465
26778
|
* @param headers - An object literal of key value pairs of the headers to be
|
|
26466
26779
|
* sent with this request.
|
|
@@ -26815,6 +27128,9 @@ declare namespace helpers {
|
|
|
26815
27128
|
}>, rawResponse?: T): Promise<T extends true ? Response : Object>;
|
|
26816
27129
|
/**
|
|
26817
27130
|
* Returns a JSON listing of the OpenID/OAuth endpoints, supported scopes and claims, public keys used to sign the tokens, and other details.
|
|
27131
|
+
|
|
27132
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
27133
|
+
|
|
26818
27134
|
*
|
|
26819
27135
|
* If you would like to get a raw Response object use the other getWellknownOpenidConfiguration function.
|
|
26820
27136
|
*
|
|
@@ -26837,6 +27153,9 @@ declare namespace helpers {
|
|
|
26837
27153
|
}>): Promise<Object>;
|
|
26838
27154
|
/**
|
|
26839
27155
|
* Returns a JSON listing of the OpenID/OAuth endpoints, supported scopes and claims, public keys used to sign the tokens, and other details.
|
|
27156
|
+
|
|
27157
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
27158
|
+
|
|
26840
27159
|
*
|
|
26841
27160
|
* @param options - An object containing the options for this method.
|
|
26842
27161
|
* @param parameters - An object containing the parameters for this method.
|
|
@@ -26857,6 +27176,9 @@ declare namespace helpers {
|
|
|
26857
27176
|
}>, rawResponse?: T): Promise<T extends true ? Response : Object>;
|
|
26858
27177
|
/**
|
|
26859
27178
|
* Returns a JSON Web Key Set (JWKS) containing the current, past, and future public keys. The key set enables clients to validate the Shopper JSON Web Token (JWT) issued by SLAS.
|
|
27179
|
+
|
|
27180
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
27181
|
+
|
|
26860
27182
|
*
|
|
26861
27183
|
* If you would like to get a raw Response object use the other getJwksUri function.
|
|
26862
27184
|
*
|
|
@@ -26879,6 +27201,9 @@ declare namespace helpers {
|
|
|
26879
27201
|
}>): Promise<Object>;
|
|
26880
27202
|
/**
|
|
26881
27203
|
* Returns a JSON Web Key Set (JWKS) containing the current, past, and future public keys. The key set enables clients to validate the Shopper JSON Web Token (JWT) issued by SLAS.
|
|
27204
|
+
|
|
27205
|
+
For performance purposes, the `/jwks` endpoint is rate limited to 25 call per minute.
|
|
27206
|
+
|
|
26882
27207
|
*
|
|
26883
27208
|
* @param options - An object containing the options for this method.
|
|
26884
27209
|
* @param parameters - An object containing the parameters for this method.
|