commerce-sdk-isomorphic 4.0.0-nightly-20251013080807 → 4.0.0-nightly-20251015080804
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/lib/helpers.cjs.d.ts +31 -2
- package/lib/helpers.cjs.js +1 -1
- package/lib/helpers.d.ts +31 -2
- package/lib/helpers.js +1 -1
- package/lib/index.cjs.d.ts +93 -6
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +93 -6
- package/lib/index.esm.js +1 -1
- package/lib/shopperBaskets.cjs.js +1 -1
- package/lib/shopperBaskets.js +1 -1
- package/lib/shopperBasketsv2.cjs.js +1 -1
- package/lib/shopperBasketsv2.js +1 -1
- package/lib/shopperConsents.cjs.js +1 -1
- package/lib/shopperConsents.js +1 -1
- package/lib/shopperContext.cjs.js +1 -1
- package/lib/shopperContext.js +1 -1
- package/lib/shopperCustomers.cjs.js +1 -1
- package/lib/shopperCustomers.js +1 -1
- package/lib/shopperExperience.cjs.js +1 -1
- package/lib/shopperExperience.js +1 -1
- package/lib/shopperGiftCertificates.cjs.js +1 -1
- package/lib/shopperGiftCertificates.js +1 -1
- package/lib/shopperLogin.cjs.d.ts +62 -4
- package/lib/shopperLogin.cjs.js +1 -1
- package/lib/shopperLogin.d.ts +62 -4
- package/lib/shopperLogin.js +1 -1
- package/lib/shopperOrders.cjs.js +1 -1
- package/lib/shopperOrders.js +1 -1
- package/lib/shopperProducts.cjs.js +1 -1
- package/lib/shopperProducts.js +1 -1
- package/lib/shopperPromotions.cjs.js +1 -1
- package/lib/shopperPromotions.js +1 -1
- package/lib/shopperSearch.cjs.js +1 -1
- package/lib/shopperSearch.js +1 -1
- package/lib/shopperSeo.cjs.js +1 -1
- package/lib/shopperSeo.js +1 -1
- package/lib/shopperStores.cjs.js +1 -1
- package/lib/shopperStores.js +1 -1
- package/lib/version.cjs.d.ts +1 -1
- package/lib/version.cjs.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/lib/index.cjs.d.ts
CHANGED
|
@@ -36643,7 +36643,9 @@ type authorizeCustomerQueryParameters = {
|
|
|
36643
36643
|
type authorizeCustomerPathParameters = {
|
|
36644
36644
|
organizationId: string;
|
|
36645
36645
|
};
|
|
36646
|
-
type authorizePasswordlessCustomerQueryParameters = {
|
|
36646
|
+
type authorizePasswordlessCustomerQueryParameters = {
|
|
36647
|
+
register_customer?: string;
|
|
36648
|
+
};
|
|
36647
36649
|
type authorizePasswordlessCustomerPathParameters = {
|
|
36648
36650
|
organizationId: string;
|
|
36649
36651
|
};
|
|
@@ -36654,6 +36656,10 @@ type authorizePasswordlessCustomerBodyType = {
|
|
|
36654
36656
|
usid?: string;
|
|
36655
36657
|
channel_id: string;
|
|
36656
36658
|
callback_uri?: string;
|
|
36659
|
+
last_name?: string;
|
|
36660
|
+
email?: string;
|
|
36661
|
+
first_name?: string;
|
|
36662
|
+
phone_number?: string;
|
|
36657
36663
|
};
|
|
36658
36664
|
type getAccessTokenQueryParameters = {};
|
|
36659
36665
|
type getAccessTokenPathParameters = {
|
|
@@ -36921,9 +36927,14 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
36921
36927
|
"user_id",
|
|
36922
36928
|
"mode",
|
|
36923
36929
|
"channel_id",
|
|
36930
|
+
"register_customer",
|
|
36924
36931
|
"locale",
|
|
36925
36932
|
"usid",
|
|
36926
|
-
"callback_uri"
|
|
36933
|
+
"callback_uri",
|
|
36934
|
+
"last_name",
|
|
36935
|
+
"email",
|
|
36936
|
+
"first_name",
|
|
36937
|
+
"phone_number"
|
|
36927
36938
|
];
|
|
36928
36939
|
readonly authorizePasswordlessCustomerRequired: readonly [
|
|
36929
36940
|
"organizationId",
|
|
@@ -37337,6 +37348,10 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
37337
37348
|
* @param options - An object containing the options for this method.
|
|
37338
37349
|
* @param options.parameters - An object containing the parameters for this method.
|
|
37339
37350
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
37351
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
37352
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
37353
|
+
|
|
37354
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
37340
37355
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
37341
37356
|
* @param options.body - The data to send as the request body.
|
|
37342
37357
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -37345,12 +37360,17 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
37345
37360
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
37346
37361
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
37347
37362
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
37363
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
37364
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
37365
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
37366
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
37348
37367
|
*
|
|
37349
37368
|
* @returns A promise of type string.
|
|
37350
37369
|
*/
|
|
37351
37370
|
authorizePasswordlessCustomer(options?: RequireParametersUnlessAllAreOptional<{
|
|
37352
37371
|
parameters?: CompositeParameters<{
|
|
37353
37372
|
organizationId: string;
|
|
37373
|
+
register_customer?: string;
|
|
37354
37374
|
} & QueryParameters, ConfigParameters>;
|
|
37355
37375
|
headers?: {
|
|
37356
37376
|
[key: string]: string;
|
|
@@ -37363,6 +37383,10 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
37363
37383
|
* @param options - An object containing the options for this method.
|
|
37364
37384
|
* @param options.parameters - An object containing the parameters for this method.
|
|
37365
37385
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
37386
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
37387
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
37388
|
+
|
|
37389
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
37366
37390
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
37367
37391
|
* @param options.body - The data to send as the request body.
|
|
37368
37392
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -37371,6 +37395,10 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
37371
37395
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
37372
37396
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
37373
37397
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
37398
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
37399
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
37400
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
37401
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
37374
37402
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
37375
37403
|
*
|
|
37376
37404
|
* @returns A promise of type Response if rawResponse is true, a promise of type string otherwise.
|
|
@@ -37378,6 +37406,7 @@ declare class ShopperLogin<ConfigParameters extends ShopperLoginParameters & Rec
|
|
|
37378
37406
|
authorizePasswordlessCustomer<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
37379
37407
|
parameters?: CompositeParameters<{
|
|
37380
37408
|
organizationId: string;
|
|
37409
|
+
register_customer?: string;
|
|
37381
37410
|
} & QueryParameters, ConfigParameters>;
|
|
37382
37411
|
headers?: {
|
|
37383
37412
|
[key: string]: string;
|
|
@@ -38485,7 +38514,9 @@ declare namespace ShopperLoginApiTypes {
|
|
|
38485
38514
|
type authorizeCustomerPathParameters = {
|
|
38486
38515
|
organizationId: string;
|
|
38487
38516
|
};
|
|
38488
|
-
type authorizePasswordlessCustomerQueryParameters = {
|
|
38517
|
+
type authorizePasswordlessCustomerQueryParameters = {
|
|
38518
|
+
register_customer?: string;
|
|
38519
|
+
};
|
|
38489
38520
|
type authorizePasswordlessCustomerPathParameters = {
|
|
38490
38521
|
organizationId: string;
|
|
38491
38522
|
};
|
|
@@ -38496,6 +38527,10 @@ declare namespace ShopperLoginApiTypes {
|
|
|
38496
38527
|
usid?: string;
|
|
38497
38528
|
channel_id: string;
|
|
38498
38529
|
callback_uri?: string;
|
|
38530
|
+
last_name?: string;
|
|
38531
|
+
email?: string;
|
|
38532
|
+
first_name?: string;
|
|
38533
|
+
phone_number?: string;
|
|
38499
38534
|
};
|
|
38500
38535
|
type getAccessTokenQueryParameters = {};
|
|
38501
38536
|
type getAccessTokenPathParameters = {
|
|
@@ -38763,9 +38798,14 @@ declare namespace ShopperLoginApiTypes {
|
|
|
38763
38798
|
"user_id",
|
|
38764
38799
|
"mode",
|
|
38765
38800
|
"channel_id",
|
|
38801
|
+
"register_customer",
|
|
38766
38802
|
"locale",
|
|
38767
38803
|
"usid",
|
|
38768
|
-
"callback_uri"
|
|
38804
|
+
"callback_uri",
|
|
38805
|
+
"last_name",
|
|
38806
|
+
"email",
|
|
38807
|
+
"first_name",
|
|
38808
|
+
"phone_number"
|
|
38769
38809
|
];
|
|
38770
38810
|
readonly authorizePasswordlessCustomerRequired: readonly [
|
|
38771
38811
|
"organizationId",
|
|
@@ -39179,6 +39219,10 @@ declare namespace ShopperLoginApiTypes {
|
|
|
39179
39219
|
* @param options - An object containing the options for this method.
|
|
39180
39220
|
* @param options.parameters - An object containing the parameters for this method.
|
|
39181
39221
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
39222
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
39223
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
39224
|
+
|
|
39225
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
39182
39226
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
39183
39227
|
* @param options.body - The data to send as the request body.
|
|
39184
39228
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -39187,12 +39231,17 @@ declare namespace ShopperLoginApiTypes {
|
|
|
39187
39231
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
39188
39232
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
39189
39233
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
39234
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
39235
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
39236
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
39237
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
39190
39238
|
*
|
|
39191
39239
|
* @returns A promise of type string.
|
|
39192
39240
|
*/
|
|
39193
39241
|
authorizePasswordlessCustomer(options?: RequireParametersUnlessAllAreOptional<{
|
|
39194
39242
|
parameters?: CompositeParameters<{
|
|
39195
39243
|
organizationId: string;
|
|
39244
|
+
register_customer?: string;
|
|
39196
39245
|
} & QueryParameters, ConfigParameters>;
|
|
39197
39246
|
headers?: {
|
|
39198
39247
|
[key: string]: string;
|
|
@@ -39205,6 +39254,10 @@ declare namespace ShopperLoginApiTypes {
|
|
|
39205
39254
|
* @param options - An object containing the options for this method.
|
|
39206
39255
|
* @param options.parameters - An object containing the parameters for this method.
|
|
39207
39256
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
39257
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
39258
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
39259
|
+
|
|
39260
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
39208
39261
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
39209
39262
|
* @param options.body - The data to send as the request body.
|
|
39210
39263
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -39213,6 +39266,10 @@ declare namespace ShopperLoginApiTypes {
|
|
|
39213
39266
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
39214
39267
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
39215
39268
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
39269
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
39270
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
39271
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
39272
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
39216
39273
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
39217
39274
|
*
|
|
39218
39275
|
* @returns A promise of type Response if rawResponse is true, a promise of type string otherwise.
|
|
@@ -39220,6 +39277,7 @@ declare namespace ShopperLoginApiTypes {
|
|
|
39220
39277
|
authorizePasswordlessCustomer<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
39221
39278
|
parameters?: CompositeParameters<{
|
|
39222
39279
|
organizationId: string;
|
|
39280
|
+
register_customer?: string;
|
|
39223
39281
|
} & QueryParameters, ConfigParameters>;
|
|
39224
39282
|
headers?: {
|
|
39225
39283
|
[key: string]: string;
|
|
@@ -55015,7 +55073,9 @@ declare namespace helpers {
|
|
|
55015
55073
|
type authorizeCustomerPathParameters = {
|
|
55016
55074
|
organizationId: string;
|
|
55017
55075
|
};
|
|
55018
|
-
type authorizePasswordlessCustomerQueryParameters = {
|
|
55076
|
+
type authorizePasswordlessCustomerQueryParameters = {
|
|
55077
|
+
register_customer?: string;
|
|
55078
|
+
};
|
|
55019
55079
|
type authorizePasswordlessCustomerPathParameters = {
|
|
55020
55080
|
organizationId: string;
|
|
55021
55081
|
};
|
|
@@ -55026,6 +55086,10 @@ declare namespace helpers {
|
|
|
55026
55086
|
usid?: string;
|
|
55027
55087
|
channel_id: string;
|
|
55028
55088
|
callback_uri?: string;
|
|
55089
|
+
last_name?: string;
|
|
55090
|
+
email?: string;
|
|
55091
|
+
first_name?: string;
|
|
55092
|
+
phone_number?: string;
|
|
55029
55093
|
};
|
|
55030
55094
|
type getAccessTokenQueryParameters = {};
|
|
55031
55095
|
type getAccessTokenPathParameters = {
|
|
@@ -55293,9 +55357,14 @@ declare namespace helpers {
|
|
|
55293
55357
|
"user_id",
|
|
55294
55358
|
"mode",
|
|
55295
55359
|
"channel_id",
|
|
55360
|
+
"register_customer",
|
|
55296
55361
|
"locale",
|
|
55297
55362
|
"usid",
|
|
55298
|
-
"callback_uri"
|
|
55363
|
+
"callback_uri",
|
|
55364
|
+
"last_name",
|
|
55365
|
+
"email",
|
|
55366
|
+
"first_name",
|
|
55367
|
+
"phone_number"
|
|
55299
55368
|
];
|
|
55300
55369
|
readonly authorizePasswordlessCustomerRequired: readonly [
|
|
55301
55370
|
"organizationId",
|
|
@@ -55709,6 +55778,10 @@ declare namespace helpers {
|
|
|
55709
55778
|
* @param options - An object containing the options for this method.
|
|
55710
55779
|
* @param options.parameters - An object containing the parameters for this method.
|
|
55711
55780
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
55781
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
55782
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
55783
|
+
|
|
55784
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
55712
55785
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
55713
55786
|
* @param options.body - The data to send as the request body.
|
|
55714
55787
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -55717,12 +55790,17 @@ declare namespace helpers {
|
|
|
55717
55790
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
55718
55791
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
55719
55792
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
55793
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
55794
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
55795
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
55796
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
55720
55797
|
*
|
|
55721
55798
|
* @returns A promise of type string.
|
|
55722
55799
|
*/
|
|
55723
55800
|
authorizePasswordlessCustomer(options?: RequireParametersUnlessAllAreOptional<{
|
|
55724
55801
|
parameters?: CompositeParameters<{
|
|
55725
55802
|
organizationId: string;
|
|
55803
|
+
register_customer?: string;
|
|
55726
55804
|
} & QueryParameters, ConfigParameters>;
|
|
55727
55805
|
headers?: {
|
|
55728
55806
|
[key: string]: string;
|
|
@@ -55735,6 +55813,10 @@ declare namespace helpers {
|
|
|
55735
55813
|
* @param options - An object containing the options for this method.
|
|
55736
55814
|
* @param options.parameters - An object containing the parameters for this method.
|
|
55737
55815
|
* @param options.parameters.organizationId - An identifier for the organization the request is being made by
|
|
55816
|
+
* @param options.parameters.register_customer - When set to `true`, creates a new customer profile in B2C Commerce if one doesn't already exist. Requires `last_name` and `email` body parameters unless `user_id` is an email address. Optionally accepts `first_name` and `phone_number` body parameters.
|
|
55817
|
+
If the customer profile doesn't exist, it is created when the TOTP is validated via the `passwordless/token` endpoint.
|
|
55818
|
+
|
|
55819
|
+
When set to `false` (or omitted), no customer profile is created in B2C Commerce.
|
|
55738
55820
|
* @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
|
|
55739
55821
|
* @param options.body - The data to send as the request body.
|
|
55740
55822
|
* @param options.body.user_id - User ID for logging in.
|
|
@@ -55743,6 +55825,10 @@ declare namespace helpers {
|
|
|
55743
55825
|
* @param options.body.usid - The shopper\'s unique identifier, if known. If not provided, a new USID is generated.
|
|
55744
55826
|
* @param options.body.channel_id - The channel (B2C Commerce site) that the user is associated with.
|
|
55745
55827
|
* @param options.body.callback_uri - The callback URI. Required when the mode is `callback`. The `callback_uri` property will be validated against the callback URIs that have been registered with the SLAS client. The callback URI _must_ be a `POST` endpoint because the token will be included in the body. Wildcards are not allowed in the callback_uri because this is a security risk that can expose the token. This is not considered an OAuth2 callback_url.
|
|
55828
|
+
* @param options.body.last_name - The user\'s last name. Required when `register_customer` is `true`. The `last_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
55829
|
+
* @param options.body.email - The user\'s email address. Required when `register_customer` is `true` and `user_id` is not an email address. The `email` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
55830
|
+
* @param options.body.first_name - The user\'s first name. Optional when `register_customer` is `true`. The `first_name` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
55831
|
+
* @param options.body.phone_number - The user\'s phone number. Optional when `register_customer` is `true`. The `phone_number` parameter is not used when `register_customer` parameter is not added or is `false`.
|
|
55746
55832
|
* @param rawResponse - Set to true to return entire Response object instead of DTO.
|
|
55747
55833
|
*
|
|
55748
55834
|
* @returns A promise of type Response if rawResponse is true, a promise of type string otherwise.
|
|
@@ -55750,6 +55836,7 @@ declare namespace helpers {
|
|
|
55750
55836
|
authorizePasswordlessCustomer<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
|
|
55751
55837
|
parameters?: CompositeParameters<{
|
|
55752
55838
|
organizationId: string;
|
|
55839
|
+
register_customer?: string;
|
|
55753
55840
|
} & QueryParameters, ConfigParameters>;
|
|
55754
55841
|
headers?: {
|
|
55755
55842
|
[key: string]: string;
|