@wix/auto_sdk_ecom_current-cart-v-2 1.0.2 → 1.0.3

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.
@@ -1130,6 +1130,33 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
1130
1130
  * @readonly
1131
1131
  */
1132
1132
  userId?: string;
1133
+ /**
1134
+ * Customer's first name.
1135
+ * @maxLength 100
1136
+ */
1137
+ firstName?: string | null;
1138
+ /**
1139
+ * Customer's last name.
1140
+ * @maxLength 100
1141
+ */
1142
+ lastName?: string | null;
1143
+ /**
1144
+ * Customer's phone number.
1145
+ * @format PHONE
1146
+ */
1147
+ phone?: string | null;
1148
+ /**
1149
+ * Company name.
1150
+ * @maxLength 1000
1151
+ */
1152
+ company?: string | null;
1153
+ /** Business VAT registration number. */
1154
+ vatId?: VatId;
1155
+ /**
1156
+ * Customer's email address.
1157
+ * @format EMAIL
1158
+ */
1159
+ email?: string | null;
1133
1160
  /**
1134
1161
  * The Contact ID of the customer.
1135
1162
  * Created automatically if one does not yet exist.
@@ -1139,19 +1166,14 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
1139
1166
  */
1140
1167
  contactId?: string | null;
1141
1168
  /**
1142
- * The customer's email address.
1143
- * @format EMAIL
1144
- */
1145
- email?: string | null;
1146
- /**
1147
- * The customer's language, represented as a two-letter ISO 639-1 code.
1169
+ * Customer's language, represented as a two-letter ISO 639-1 code.
1148
1170
  * Resolved automatically from the request metadata ('x-wix-linguist' header).
1149
1171
  * @format LANGUAGE
1150
1172
  * @readonly
1151
1173
  */
1152
1174
  languageCode?: string;
1153
1175
  /**
1154
- * The customer’s currency, represented as a three-letter ISO 4217 code.
1176
+ * Customer’s currency, represented as a three-letter ISO 4217 code.
1155
1177
  * Resolved automatically from the request metadata ('x-wix-currency' header).
1156
1178
  * @format CURRENCY
1157
1179
  * @readonly
@@ -1180,11 +1202,31 @@ interface CustomerInfoIdOneOf {
1180
1202
  */
1181
1203
  userId?: string;
1182
1204
  }
1205
+ interface VatId {
1206
+ /** Customer's tax ID. */
1207
+ id?: string;
1208
+ /**
1209
+ * Tax type.
1210
+ *
1211
+ * Supported values:
1212
+ * + `CPF`: for individual tax payers
1213
+ * + `CNPJ`: for corporations
1214
+ */
1215
+ type?: VatTypeWithLiterals;
1216
+ }
1217
+ /** tax info types */
1218
+ declare enum VatType {
1219
+ UNSPECIFIED = "UNSPECIFIED",
1220
+ /** CPF - for individual tax payers. */
1221
+ CPF = "CPF",
1222
+ /** CNPJ - for corporations */
1223
+ CNPJ = "CNPJ"
1224
+ }
1225
+ /** @enumType */
1226
+ type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
1183
1227
  interface DeliveryInfo {
1184
1228
  /** The delivery address. */
1185
1229
  address?: Address;
1186
- /** The delivery recipient. */
1187
- recipient?: FullAddressContactDetails;
1188
1230
  /** The selected delivery method by the customer. */
1189
1231
  method?: DeliveryMethod;
1190
1232
  /**
@@ -1244,53 +1286,6 @@ interface StreetAddress {
1244
1286
  /** Street name. */
1245
1287
  name?: string;
1246
1288
  }
1247
- /** Full contact details for an address */
1248
- interface FullAddressContactDetails {
1249
- /**
1250
- * First name.
1251
- * @maxLength 100
1252
- */
1253
- firstName?: string | null;
1254
- /**
1255
- * Last name.
1256
- * @maxLength 100
1257
- */
1258
- lastName?: string | null;
1259
- /**
1260
- * Phone number.
1261
- * @format PHONE
1262
- */
1263
- phone?: string | null;
1264
- /**
1265
- * Company name.
1266
- * @maxLength 1000
1267
- */
1268
- company?: string | null;
1269
- /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
1270
- vatId?: VatId;
1271
- }
1272
- interface VatId {
1273
- /** Customer's tax ID. */
1274
- id?: string;
1275
- /**
1276
- * Tax type.
1277
- *
1278
- * Supported values:
1279
- * + `CPF`: for individual tax payers
1280
- * + `CNPJ`: for corporations
1281
- */
1282
- type?: VatTypeWithLiterals;
1283
- }
1284
- /** tax info types */
1285
- declare enum VatType {
1286
- UNSPECIFIED = "UNSPECIFIED",
1287
- /** CPF - for individual tax payers. */
1288
- CPF = "CPF",
1289
- /** CNPJ - for corporations */
1290
- CNPJ = "CNPJ"
1291
- }
1292
- /** @enumType */
1293
- type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
1294
1289
  interface DeliveryMethod {
1295
1290
  /**
1296
1291
  * The carrier app id
@@ -1327,7 +1322,7 @@ declare enum WeightUnit {
1327
1322
  type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
1328
1323
  interface TaxInfo {
1329
1324
  /**
1330
- * Indicates whether tax is already included in prices (line items, discounts, delivery, additional fess).
1325
+ * Indicates whether tax is already included in prices (line items, delivery, additional fess).
1331
1326
  * @readonly
1332
1327
  */
1333
1328
  pricesIncludeTax?: boolean;
@@ -1378,6 +1373,31 @@ interface GiftCard {
1378
1373
  */
1379
1374
  externalId?: string | null;
1380
1375
  }
1376
+ /** Full contact details for an address */
1377
+ interface FullAddressContactDetails {
1378
+ /**
1379
+ * First name.
1380
+ * @maxLength 100
1381
+ */
1382
+ firstName?: string | null;
1383
+ /**
1384
+ * Last name.
1385
+ * @maxLength 100
1386
+ */
1387
+ lastName?: string | null;
1388
+ /**
1389
+ * Phone number.
1390
+ * @format PHONE
1391
+ */
1392
+ phone?: string | null;
1393
+ /**
1394
+ * Company name.
1395
+ * @maxLength 1000
1396
+ */
1397
+ company?: string | null;
1398
+ /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
1399
+ vatId?: VatId;
1400
+ }
1381
1401
  interface CartSettings {
1382
1402
  /**
1383
1403
  * Whether to restrict the option to add or remove a gift card on the checkout page.
@@ -1131,6 +1131,33 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
1131
1131
  * @readonly
1132
1132
  */
1133
1133
  userId?: string;
1134
+ /**
1135
+ * Customer's first name.
1136
+ * @maxLength 100
1137
+ */
1138
+ firstName?: string | null;
1139
+ /**
1140
+ * Customer's last name.
1141
+ * @maxLength 100
1142
+ */
1143
+ lastName?: string | null;
1144
+ /**
1145
+ * Customer's phone number.
1146
+ * @format PHONE
1147
+ */
1148
+ phone?: string | null;
1149
+ /**
1150
+ * Company name.
1151
+ * @maxLength 1000
1152
+ */
1153
+ company?: string | null;
1154
+ /** Business VAT registration number. */
1155
+ vatId?: VatId;
1156
+ /**
1157
+ * Customer's email address.
1158
+ * @format EMAIL
1159
+ */
1160
+ email?: string | null;
1134
1161
  /**
1135
1162
  * The Contact ID of the customer.
1136
1163
  * Created automatically if one does not yet exist.
@@ -1140,19 +1167,14 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
1140
1167
  */
1141
1168
  contactId?: string | null;
1142
1169
  /**
1143
- * The customer's email address.
1144
- * @format EMAIL
1145
- */
1146
- email?: string | null;
1147
- /**
1148
- * The customer's language, represented as a two-letter ISO 639-1 code.
1170
+ * Customer's language, represented as a two-letter ISO 639-1 code.
1149
1171
  * Resolved automatically from the request metadata ('x-wix-linguist' header).
1150
1172
  * @format LANGUAGE
1151
1173
  * @readonly
1152
1174
  */
1153
1175
  languageCode?: string;
1154
1176
  /**
1155
- * The customer’s currency, represented as a three-letter ISO 4217 code.
1177
+ * Customer’s currency, represented as a three-letter ISO 4217 code.
1156
1178
  * Resolved automatically from the request metadata ('x-wix-currency' header).
1157
1179
  * @format CURRENCY
1158
1180
  * @readonly
@@ -1181,11 +1203,31 @@ interface CustomerInfoIdOneOf {
1181
1203
  */
1182
1204
  userId?: string;
1183
1205
  }
1206
+ interface VatId {
1207
+ /** Customer's tax ID. */
1208
+ _id?: string;
1209
+ /**
1210
+ * Tax type.
1211
+ *
1212
+ * Supported values:
1213
+ * + `CPF`: for individual tax payers
1214
+ * + `CNPJ`: for corporations
1215
+ */
1216
+ type?: VatTypeWithLiterals;
1217
+ }
1218
+ /** tax info types */
1219
+ declare enum VatType {
1220
+ UNSPECIFIED = "UNSPECIFIED",
1221
+ /** CPF - for individual tax payers. */
1222
+ CPF = "CPF",
1223
+ /** CNPJ - for corporations */
1224
+ CNPJ = "CNPJ"
1225
+ }
1226
+ /** @enumType */
1227
+ type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
1184
1228
  interface DeliveryInfo {
1185
1229
  /** The delivery address. */
1186
1230
  address?: Address;
1187
- /** The delivery recipient. */
1188
- recipient?: FullAddressContactDetails;
1189
1231
  /** The selected delivery method by the customer. */
1190
1232
  method?: DeliveryMethod;
1191
1233
  /**
@@ -1251,53 +1293,6 @@ interface AddressLocation {
1251
1293
  /** Address longitude. */
1252
1294
  longitude?: number | null;
1253
1295
  }
1254
- /** Full contact details for an address */
1255
- interface FullAddressContactDetails {
1256
- /**
1257
- * First name.
1258
- * @maxLength 100
1259
- */
1260
- firstName?: string | null;
1261
- /**
1262
- * Last name.
1263
- * @maxLength 100
1264
- */
1265
- lastName?: string | null;
1266
- /**
1267
- * Phone number.
1268
- * @format PHONE
1269
- */
1270
- phone?: string | null;
1271
- /**
1272
- * Company name.
1273
- * @maxLength 1000
1274
- */
1275
- company?: string | null;
1276
- /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
1277
- vatId?: VatId;
1278
- }
1279
- interface VatId {
1280
- /** Customer's tax ID. */
1281
- _id?: string;
1282
- /**
1283
- * Tax type.
1284
- *
1285
- * Supported values:
1286
- * + `CPF`: for individual tax payers
1287
- * + `CNPJ`: for corporations
1288
- */
1289
- type?: VatTypeWithLiterals;
1290
- }
1291
- /** tax info types */
1292
- declare enum VatType {
1293
- UNSPECIFIED = "UNSPECIFIED",
1294
- /** CPF - for individual tax payers. */
1295
- CPF = "CPF",
1296
- /** CNPJ - for corporations */
1297
- CNPJ = "CNPJ"
1298
- }
1299
- /** @enumType */
1300
- type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
1301
1296
  interface DeliveryMethod {
1302
1297
  /**
1303
1298
  * The carrier app id
@@ -1334,7 +1329,7 @@ declare enum WeightUnit {
1334
1329
  type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
1335
1330
  interface TaxInfo {
1336
1331
  /**
1337
- * Indicates whether tax is already included in prices (line items, discounts, delivery, additional fess).
1332
+ * Indicates whether tax is already included in prices (line items, delivery, additional fess).
1338
1333
  * @readonly
1339
1334
  */
1340
1335
  pricesIncludeTax?: boolean;
@@ -1385,6 +1380,31 @@ interface GiftCard {
1385
1380
  */
1386
1381
  externalId?: string | null;
1387
1382
  }
1383
+ /** Full contact details for an address */
1384
+ interface FullAddressContactDetails {
1385
+ /**
1386
+ * First name.
1387
+ * @maxLength 100
1388
+ */
1389
+ firstName?: string | null;
1390
+ /**
1391
+ * Last name.
1392
+ * @maxLength 100
1393
+ */
1394
+ lastName?: string | null;
1395
+ /**
1396
+ * Phone number.
1397
+ * @format PHONE
1398
+ */
1399
+ phone?: string | null;
1400
+ /**
1401
+ * Company name.
1402
+ * @maxLength 1000
1403
+ */
1404
+ company?: string | null;
1405
+ /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
1406
+ vatId?: VatId;
1407
+ }
1388
1408
  interface CartSettings {
1389
1409
  /**
1390
1410
  * Whether to restrict the option to add or remove a gift card on the checkout page.