@esolve/ng-esolve-connect 0.16.0 → 0.17.0
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/esm2020/lib/account/registration/esolve-registration-data.interface.mjs +1 -1
- package/esm2020/lib/auth/esolve-auth.service.mjs +15 -10
- package/esm2020/lib/news/esolve-news-article.model.mjs +2 -1
- package/esm2020/lib/payment/classes/esolve-banking-details.model.mjs +11 -0
- package/esm2020/lib/payment/classes/esolve-payment-method.model.mjs +36 -0
- package/esm2020/lib/payment/classes/esolve-payment-result.model.mjs +37 -0
- package/esm2020/lib/payment/classes/esolve-vault-item-result.model.mjs +20 -0
- package/esm2020/lib/payment/classes/esolve-vault-item.model.mjs +20 -0
- package/esm2020/lib/payment/classes/index.mjs +6 -0
- package/esm2020/lib/payment/esolve-payment.service.mjs +44 -5
- package/esm2020/lib/payment/index.mjs +4 -14
- package/esm2020/lib/payment/interfaces/esolve-card-data.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-payment-form-input.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-payment-method-options.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-payment-method-record.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-payment-response.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-payment-set-body.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-payment-status.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-vault-record.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/esolve-vault-response.interface.mjs +2 -0
- package/esm2020/lib/payment/interfaces/index.mjs +9 -0
- package/esm2020/lib/payment/types/esolve-integration-type.type.mjs +2 -0
- package/esm2020/lib/payment/types/esolve-service-provider.type.mjs +2 -0
- package/esm2020/lib/payment/types/index.mjs +3 -0
- package/esm2020/lib/shared/assets/esolve-asset-options.interface.mjs +1 -1
- package/esm2020/lib/shared/assets/esolve-asset-record.interface.mjs +1 -1
- package/esm2020/lib/shared/assets/esolve-asset.model.mjs +20 -1
- package/esm2020/lib/shared/assets/esolve-assets.service.mjs +13 -4
- package/esm2020/lib/shared/sort/esolve-sort-order.type.mjs +2 -0
- package/esm2020/lib/shared/sort/esolve-sort.interface.mjs +2 -0
- package/esm2020/lib/shared/sort/index.mjs +5 -0
- package/esm2020/lib/stock/classes/esolve-additional-stock-image.model.mjs +21 -0
- package/esm2020/lib/stock/classes/esolve-colour.model.mjs +8 -0
- package/esm2020/lib/stock/classes/esolve-linked-stock-item.model.mjs +9 -0
- package/esm2020/lib/stock/classes/esolve-media-stock-item.model.mjs +7 -0
- package/esm2020/lib/stock/classes/esolve-recipe-stock-item.model.mjs +9 -0
- package/esm2020/lib/stock/classes/esolve-stock-badge.model.mjs +11 -0
- package/esm2020/lib/stock/classes/esolve-stock-group-item.model.mjs +7 -0
- package/esm2020/lib/stock/classes/esolve-stock-group.model.mjs +13 -0
- package/esm2020/lib/stock/classes/esolve-stock-image-collection.model.mjs +26 -0
- package/esm2020/lib/stock/classes/esolve-stock-image.model.mjs +45 -0
- package/esm2020/lib/stock/classes/esolve-stock-item-base.model.mjs +224 -0
- package/esm2020/lib/stock/classes/esolve-stock-item-list.model.mjs +11 -0
- package/esm2020/lib/stock/classes/esolve-stock-item.model.mjs +17 -0
- package/esm2020/lib/stock/classes/esolve-stock-lead-times.model.mjs +9 -0
- package/esm2020/lib/stock/classes/esolve-stock-price.model.mjs +43 -0
- package/esm2020/lib/stock/classes/index.mjs +17 -0
- package/esm2020/lib/stock/esolve-stock.service.mjs +40 -9
- package/esm2020/lib/stock/index.mjs +4 -35
- package/esm2020/lib/stock/interfaces/esolve-additional-stock-image-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-colour-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-linked-stock-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-media-stock-item-options.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-media-stock-item-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-recipe-item-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-recipe-stock-options.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-stock-badge-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-stock-base-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-stock-group-item-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-stock-image-collection-record.interface.mjs +3 -0
- package/esm2020/lib/stock/interfaces/esolve-stock-item-options.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-stock-lead-times-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-stock-linked-category-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/esolve-stock-record.interface.mjs +2 -0
- package/esm2020/lib/stock/interfaces/index.mjs +17 -0
- package/esm2020/lib/stock/types/esolve-media-stock-item-list.type.mjs +2 -0
- package/esm2020/lib/stock/types/esolve-media-stock-sort-field.type.mjs +2 -0
- package/esm2020/lib/stock/types/esolve-stock-image-size.type.mjs +2 -0
- package/esm2020/lib/stock/types/esolve-stock-sort-field.type.mjs +2 -0
- package/esm2020/lib/stock/types/esolve-stock-unit-of-measure.type.mjs +2 -0
- package/esm2020/lib/stock/types/index.mjs +7 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/esolve-ng-esolve-connect.mjs +252 -85
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect.mjs +235 -72
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/registration/esolve-registration-data.interface.d.ts +3 -0
- package/lib/payment/{esolve-banking-details.model.d.ts → classes/esolve-banking-details.model.d.ts} +0 -0
- package/lib/payment/{esolve-payment-method.model.d.ts → classes/esolve-payment-method.model.d.ts} +2 -2
- package/lib/payment/classes/esolve-payment-result.model.d.ts +28 -0
- package/lib/payment/{esolve-vault-item-result.model.d.ts → classes/esolve-vault-item-result.model.d.ts} +2 -2
- package/lib/payment/{esolve-vault-item.model.d.ts → classes/esolve-vault-item.model.d.ts} +0 -0
- package/lib/payment/classes/index.d.ts +5 -0
- package/lib/payment/esolve-payment.service.d.ts +35 -6
- package/lib/payment/index.d.ts +3 -13
- package/lib/payment/{esolve-card-data.interface.d.ts → interfaces/esolve-card-data.interface.d.ts} +0 -0
- package/lib/payment/interfaces/esolve-payment-form-input.interface.d.ts +4 -0
- package/lib/payment/{esolve-payment-method-options.interface.d.ts → interfaces/esolve-payment-method-options.interface.d.ts} +0 -0
- package/lib/payment/{esolve-payment-method-record.interface.d.ts → interfaces/esolve-payment-method-record.interface.d.ts} +1 -1
- package/lib/payment/interfaces/esolve-payment-response.interface.d.ts +28 -0
- package/lib/payment/{esolve-payment-set-body.interface.d.ts → interfaces/esolve-payment-set-body.interface.d.ts} +0 -0
- package/lib/payment/interfaces/esolve-payment-status.interface.d.ts +3 -0
- package/lib/payment/{esolve-vault-record.interface.d.ts → interfaces/esolve-vault-record.interface.d.ts} +0 -0
- package/lib/payment/{esolve-vault-response.interface.d.ts → interfaces/esolve-vault-response.interface.d.ts} +1 -1
- package/lib/payment/interfaces/index.d.ts +7 -0
- package/lib/payment/{esolve-integration-type.type.d.ts → types/esolve-integration-type.type.d.ts} +0 -0
- package/lib/payment/types/esolve-service-provider.type.d.ts +1 -0
- package/lib/payment/types/index.d.ts +2 -0
- package/lib/shared/assets/esolve-asset-options.interface.d.ts +5 -2
- package/lib/shared/assets/esolve-asset-record.interface.d.ts +1 -0
- package/lib/shared/assets/esolve-asset.model.d.ts +11 -0
- package/lib/shared/assets/esolve-assets.service.d.ts +1 -1
- package/lib/shared/sort/esolve-sort-order.type.d.ts +1 -0
- package/lib/shared/sort/esolve-sort.interface.d.ts +5 -0
- package/lib/shared/sort/index.d.ts +2 -0
- package/lib/stock/{esolve-additional-stock-image.model.d.ts → classes/esolve-additional-stock-image.model.d.ts} +1 -1
- package/lib/stock/{esolve-colour.model.d.ts → classes/esolve-colour.model.d.ts} +1 -1
- package/lib/stock/{esolve-linked-stock-item.model.d.ts → classes/esolve-linked-stock-item.model.d.ts} +2 -2
- package/lib/stock/{esolve-media-stock-item.model.d.ts → classes/esolve-media-stock-item.model.d.ts} +2 -2
- package/lib/stock/{esolve-recipe-stock-item.model.d.ts → classes/esolve-recipe-stock-item.model.d.ts} +2 -2
- package/lib/stock/{esolve-stock-badge.model.d.ts → classes/esolve-stock-badge.model.d.ts} +0 -0
- package/lib/stock/{esolve-stock-group-item.model.d.ts → classes/esolve-stock-group-item.model.d.ts} +2 -2
- package/lib/stock/{esolve-stock-group.model.d.ts → classes/esolve-stock-group.model.d.ts} +2 -2
- package/lib/stock/{esolve-stock-image-collection.model.d.ts → classes/esolve-stock-image-collection.model.d.ts} +1 -1
- package/lib/stock/{esolve-stock-image.model.d.ts → classes/esolve-stock-image.model.d.ts} +1 -1
- package/lib/stock/{esolve-stock-item-base.model.d.ts → classes/esolve-stock-item-base.model.d.ts} +29 -9
- package/lib/stock/{esolve-stock-item-list.model.d.ts → classes/esolve-stock-item-list.model.d.ts} +1 -1
- package/lib/stock/{esolve-stock-item.model.d.ts → classes/esolve-stock-item.model.d.ts} +2 -2
- package/lib/stock/{esolve-stock-lead-times.model.d.ts → classes/esolve-stock-lead-times.model.d.ts} +1 -1
- package/lib/stock/{esolve-stock-price.model.d.ts → classes/esolve-stock-price.model.d.ts} +0 -0
- package/lib/stock/classes/index.d.ts +15 -0
- package/lib/stock/esolve-stock.service.d.ts +4 -9
- package/lib/stock/index.d.ts +3 -31
- package/lib/stock/{esolve-additional-stock-image-record.interface.d.ts → interfaces/esolve-additional-stock-image-record.interface.d.ts} +0 -0
- package/lib/stock/{esolve-colour-record.interface.d.ts → interfaces/esolve-colour-record.interface.d.ts} +0 -0
- package/lib/stock/{esolve-linked-stock-record.interface.d.ts → interfaces/esolve-linked-stock-record.interface.d.ts} +1 -1
- package/lib/stock/{esolve-media-stock-item-options.interface.d.ts → interfaces/esolve-media-stock-item-options.interface.d.ts} +3 -0
- package/lib/stock/{esolve-media-stock-item-record.interface.d.ts → interfaces/esolve-media-stock-item-record.interface.d.ts} +1 -1
- package/lib/stock/{esolve-recipe-item-record.interface.d.ts → interfaces/esolve-recipe-item-record.interface.d.ts} +1 -1
- package/lib/stock/interfaces/esolve-recipe-stock-options.interface.d.ts +7 -0
- package/lib/stock/{esolve-stock-badge-record.interface.d.ts → interfaces/esolve-stock-badge-record.interface.d.ts} +0 -0
- package/lib/stock/{esolve-stock-base-record.interface.d.ts → interfaces/esolve-stock-base-record.interface.d.ts} +12 -6
- package/lib/stock/{esolve-stock-group-item-record.interface.d.ts → interfaces/esolve-stock-group-item-record.interface.d.ts} +1 -1
- package/lib/stock/{esolve-stock-image-collection-record.interface.d.ts → interfaces/esolve-stock-image-collection-record.interface.d.ts} +0 -0
- package/lib/stock/{esolve-stock-item-options.interface.d.ts → interfaces/esolve-stock-item-options.interface.d.ts} +3 -0
- package/lib/stock/{esolve-stock-lead-times-record.interface.d.ts → interfaces/esolve-stock-lead-times-record.interface.d.ts} +0 -0
- package/lib/stock/{esolve-stock-linked-category-record.interface.d.ts → interfaces/esolve-stock-linked-category-record.interface.d.ts} +0 -0
- package/lib/stock/{esolve-stock-record.interface.d.ts → interfaces/esolve-stock-record.interface.d.ts} +1 -1
- package/lib/stock/interfaces/index.d.ts +15 -0
- package/lib/stock/types/esolve-media-stock-item-list.type.d.ts +7 -0
- package/lib/stock/types/esolve-media-stock-sort-field.type.d.ts +2 -0
- package/lib/stock/{esolve-stock-image-size.type.d.ts → types/esolve-stock-image-size.type.d.ts} +0 -0
- package/lib/stock/types/esolve-stock-sort-field.type.d.ts +1 -0
- package/lib/stock/types/esolve-stock-unit-of-measure.type.d.ts +1 -0
- package/lib/stock/types/index.d.ts +5 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/esm2020/lib/payment/esolve-banking-details.model.mjs +0 -11
- package/esm2020/lib/payment/esolve-card-data.interface.mjs +0 -2
- package/esm2020/lib/payment/esolve-integration-type.type.mjs +0 -2
- package/esm2020/lib/payment/esolve-paygate-form-input.interface.mjs +0 -2
- package/esm2020/lib/payment/esolve-payment-method-options.interface.mjs +0 -2
- package/esm2020/lib/payment/esolve-payment-method-record.interface.mjs +0 -2
- package/esm2020/lib/payment/esolve-payment-method.model.mjs +0 -36
- package/esm2020/lib/payment/esolve-payment-response.interface.mjs +0 -2
- package/esm2020/lib/payment/esolve-payment-result.model.mjs +0 -22
- package/esm2020/lib/payment/esolve-payment-set-body.interface.mjs +0 -2
- package/esm2020/lib/payment/esolve-vault-item-result.model.mjs +0 -20
- package/esm2020/lib/payment/esolve-vault-item.model.mjs +0 -20
- package/esm2020/lib/payment/esolve-vault-record.interface.mjs +0 -2
- package/esm2020/lib/payment/esolve-vault-response.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-additional-stock-image-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-additional-stock-image.model.mjs +0 -21
- package/esm2020/lib/stock/esolve-colour-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-colour.model.mjs +0 -8
- package/esm2020/lib/stock/esolve-linked-stock-item.model.mjs +0 -9
- package/esm2020/lib/stock/esolve-linked-stock-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-media-stock-item-list.type.mjs +0 -2
- package/esm2020/lib/stock/esolve-media-stock-item-options.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-media-stock-item-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-media-stock-item.model.mjs +0 -7
- package/esm2020/lib/stock/esolve-recipe-item-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-recipe-stock-item.model.mjs +0 -9
- package/esm2020/lib/stock/esolve-stock-badge-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-stock-badge.model.mjs +0 -11
- package/esm2020/lib/stock/esolve-stock-base-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-stock-group-item-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-stock-group-item.model.mjs +0 -7
- package/esm2020/lib/stock/esolve-stock-group.model.mjs +0 -13
- package/esm2020/lib/stock/esolve-stock-image-collection-record.interface.mjs +0 -3
- package/esm2020/lib/stock/esolve-stock-image-collection.model.mjs +0 -26
- package/esm2020/lib/stock/esolve-stock-image-size.type.mjs +0 -2
- package/esm2020/lib/stock/esolve-stock-image.model.mjs +0 -45
- package/esm2020/lib/stock/esolve-stock-item-base.model.mjs +0 -197
- package/esm2020/lib/stock/esolve-stock-item-list.model.mjs +0 -11
- package/esm2020/lib/stock/esolve-stock-item-options.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-stock-item.model.mjs +0 -17
- package/esm2020/lib/stock/esolve-stock-lead-times-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-stock-lead-times.model.mjs +0 -9
- package/esm2020/lib/stock/esolve-stock-linked-category-record.interface.mjs +0 -2
- package/esm2020/lib/stock/esolve-stock-price.model.mjs +0 -43
- package/esm2020/lib/stock/esolve-stock-record.interface.mjs +0 -2
- package/lib/payment/esolve-paygate-form-input.interface.d.ts +0 -4
- package/lib/payment/esolve-payment-response.interface.d.ts +0 -10
- package/lib/payment/esolve-payment-result.model.d.ts +0 -11
- package/lib/stock/esolve-media-stock-item-list.type.d.ts +0 -7
|
@@ -461,6 +461,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
461
461
|
}]
|
|
462
462
|
}], ctorParameters: function () { return []; } });
|
|
463
463
|
|
|
464
|
+
// Types
|
|
465
|
+
|
|
464
466
|
/**
|
|
465
467
|
* Search Engine Optimization information.
|
|
466
468
|
*/
|
|
@@ -1278,6 +1280,7 @@ class EsolveAsset {
|
|
|
1278
1280
|
this.sort_priority = 0;
|
|
1279
1281
|
this.topics = [];
|
|
1280
1282
|
this.tags = [];
|
|
1283
|
+
this.image_name = '';
|
|
1281
1284
|
this.id = +record.id;
|
|
1282
1285
|
this.src = record.src;
|
|
1283
1286
|
this.name = record.name;
|
|
@@ -1289,6 +1292,7 @@ class EsolveAsset {
|
|
|
1289
1292
|
this.asset_category = record.asset_category ?? '';
|
|
1290
1293
|
this.asset_sub_category = record.asset_sub_category ?? '';
|
|
1291
1294
|
this.sort_priority = +(record.sort_priority ?? '');
|
|
1295
|
+
this.image_name = record.image_name ?? '';
|
|
1292
1296
|
if (record.created) {
|
|
1293
1297
|
this.created = record.created;
|
|
1294
1298
|
}
|
|
@@ -1315,6 +1319,23 @@ class EsolveAsset {
|
|
|
1315
1319
|
}
|
|
1316
1320
|
}
|
|
1317
1321
|
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Shortcut to `getImagePath()`
|
|
1324
|
+
*/
|
|
1325
|
+
get image_src() {
|
|
1326
|
+
return this.getImagePath();
|
|
1327
|
+
}
|
|
1328
|
+
/**
|
|
1329
|
+
* Retrieve image path
|
|
1330
|
+
*
|
|
1331
|
+
* @returns Image path on CDN, else empty string if no image exists
|
|
1332
|
+
*/
|
|
1333
|
+
getImagePath() {
|
|
1334
|
+
if (this.image_name !== '') {
|
|
1335
|
+
return `/images/documents/${this.image_name}`;
|
|
1336
|
+
}
|
|
1337
|
+
return '';
|
|
1338
|
+
}
|
|
1318
1339
|
}
|
|
1319
1340
|
|
|
1320
1341
|
class EsolveAssetsService {
|
|
@@ -1352,6 +1373,9 @@ class EsolveAssetsService {
|
|
|
1352
1373
|
processAsset(record) {
|
|
1353
1374
|
return new EsolveAsset(record);
|
|
1354
1375
|
}
|
|
1376
|
+
getAssetRecords(params) {
|
|
1377
|
+
return this.http.get(`${this.config.api_url}/get-assets.php`, { params });
|
|
1378
|
+
}
|
|
1355
1379
|
parseOptions(options) {
|
|
1356
1380
|
let params = new HttpParams();
|
|
1357
1381
|
if (!options) {
|
|
@@ -1384,11 +1408,17 @@ class EsolveAssetsService {
|
|
|
1384
1408
|
if (options.asset_sub_category) {
|
|
1385
1409
|
params = params.set('asset_sub_category', options.asset_sub_category);
|
|
1386
1410
|
}
|
|
1411
|
+
if (options.document_number) {
|
|
1412
|
+
params = params.set('document_number', options.document_number);
|
|
1413
|
+
}
|
|
1414
|
+
if (options.document_type) {
|
|
1415
|
+
params = params.set('document_type', options.document_type);
|
|
1416
|
+
}
|
|
1417
|
+
if (options.area_of_application) {
|
|
1418
|
+
params = params.set('area_of_application', options.area_of_application);
|
|
1419
|
+
}
|
|
1387
1420
|
return params;
|
|
1388
1421
|
}
|
|
1389
|
-
getAssetRecords(params) {
|
|
1390
|
-
return this.http.get(`${this.config.api_url}/get-assets.php`, { params });
|
|
1391
|
-
}
|
|
1392
1422
|
}
|
|
1393
1423
|
EsolveAssetsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsolveAssetsService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1394
1424
|
EsolveAssetsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsolveAssetsService, providedIn: 'root' });
|
|
@@ -1489,10 +1519,14 @@ class EsolveAuthService {
|
|
|
1489
1519
|
return this.errorHandler.handleHttpPostError('set-login', errorRes);
|
|
1490
1520
|
}));
|
|
1491
1521
|
}
|
|
1492
|
-
logout() {
|
|
1522
|
+
async logout() {
|
|
1493
1523
|
this.session.clearTimer();
|
|
1494
1524
|
this.cookieService.delete('_ws_id');
|
|
1495
|
-
|
|
1525
|
+
const response = await this.getAccessToken('', '', true).toPromise();
|
|
1526
|
+
if (response) {
|
|
1527
|
+
return response;
|
|
1528
|
+
}
|
|
1529
|
+
throw new Error('Invalid response');
|
|
1496
1530
|
}
|
|
1497
1531
|
checkAccessToken(session) {
|
|
1498
1532
|
session = session || this.session.currentSession;
|
|
@@ -1501,7 +1535,7 @@ class EsolveAuthService {
|
|
|
1501
1535
|
.get(`${this.config.api_url}/get-access-token.php`, {
|
|
1502
1536
|
params: { key: token },
|
|
1503
1537
|
headers: new HttpHeaders({
|
|
1504
|
-
'Accept-Language': '*'
|
|
1538
|
+
'Accept-Language': '*',
|
|
1505
1539
|
}),
|
|
1506
1540
|
})
|
|
1507
1541
|
.pipe(map((responseData) => {
|
|
@@ -1519,14 +1553,15 @@ class EsolveAuthService {
|
|
|
1519
1553
|
user_id: additional_data.user_id,
|
|
1520
1554
|
};
|
|
1521
1555
|
return result;
|
|
1522
|
-
}))
|
|
1523
|
-
.toPromise();
|
|
1556
|
+
}));
|
|
1524
1557
|
}
|
|
1525
1558
|
// Handlers
|
|
1526
1559
|
handleExpiration() {
|
|
1527
1560
|
return (session) => {
|
|
1528
|
-
this.checkAccessToken(session).then((response) => {
|
|
1529
|
-
|
|
1561
|
+
this.checkAccessToken(session).toPromise().then((response) => {
|
|
1562
|
+
if (response) {
|
|
1563
|
+
this.handleAuthentication(response);
|
|
1564
|
+
}
|
|
1530
1565
|
}, () => {
|
|
1531
1566
|
this.logout();
|
|
1532
1567
|
});
|
|
@@ -1546,7 +1581,7 @@ class EsolveAuthService {
|
|
|
1546
1581
|
if ((!errorRes.type) ||
|
|
1547
1582
|
(!errorRes.service_type) ||
|
|
1548
1583
|
(!errorRes.message)) {
|
|
1549
|
-
return throwError(error);
|
|
1584
|
+
return throwError(() => error);
|
|
1550
1585
|
}
|
|
1551
1586
|
if (errorRes.message.trim() !== '') {
|
|
1552
1587
|
error.message = errorRes.message;
|
|
@@ -1554,7 +1589,7 @@ class EsolveAuthService {
|
|
|
1554
1589
|
if (errorRes.additional_data) {
|
|
1555
1590
|
error.data = errorRes.additional_data;
|
|
1556
1591
|
}
|
|
1557
|
-
return throwError(error);
|
|
1592
|
+
return throwError(() => error);
|
|
1558
1593
|
}
|
|
1559
1594
|
}
|
|
1560
1595
|
EsolveAuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EsolveAuthService, deps: [{ token: ESOLVE_CONNECT_CONFIG }, { token: i1$2.HttpClient }, { token: EsolveSessionService }, { token: EsolveErrorHandlerService }, { token: EsolveCookieService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -2640,6 +2675,7 @@ class EsolveNewsArticle {
|
|
|
2640
2675
|
this.article = record.article ?? '';
|
|
2641
2676
|
this.txdate = record.txdate ?? '';
|
|
2642
2677
|
this.image = record.image ?? '';
|
|
2678
|
+
this.short_description = record.short_description ?? '';
|
|
2643
2679
|
if (record.active) {
|
|
2644
2680
|
this.active = !!+record.active;
|
|
2645
2681
|
}
|
|
@@ -2794,6 +2830,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2794
2830
|
args: [ESOLVE_CONNECT_CONFIG]
|
|
2795
2831
|
}] }, { type: i1$2.HttpClient }]; } });
|
|
2796
2832
|
|
|
2833
|
+
// Types
|
|
2834
|
+
|
|
2797
2835
|
class EsolveColour {
|
|
2798
2836
|
constructor(record) {
|
|
2799
2837
|
this.id = record.id ?? 0;
|
|
@@ -2899,6 +2937,26 @@ class EsolveStockItemBase {
|
|
|
2899
2937
|
* Featured state
|
|
2900
2938
|
*/
|
|
2901
2939
|
this.featured = false;
|
|
2940
|
+
/**
|
|
2941
|
+
* Height measured in meters (m)
|
|
2942
|
+
*/
|
|
2943
|
+
this.height = 0;
|
|
2944
|
+
/**
|
|
2945
|
+
* Width measured in meters (m)
|
|
2946
|
+
*/
|
|
2947
|
+
this.width = 0;
|
|
2948
|
+
/**
|
|
2949
|
+
* Length / depth measured in meters (m)
|
|
2950
|
+
*/
|
|
2951
|
+
this.length = 0;
|
|
2952
|
+
/**
|
|
2953
|
+
* Weight measured in kilograms (kg)
|
|
2954
|
+
*/
|
|
2955
|
+
this.weight = 0;
|
|
2956
|
+
/**
|
|
2957
|
+
* Units used to measure the quantity
|
|
2958
|
+
*/
|
|
2959
|
+
this.unit_of_measure = 'unit';
|
|
2902
2960
|
/**
|
|
2903
2961
|
* ID of default category linked to the stock item
|
|
2904
2962
|
*
|
|
@@ -2963,6 +3021,13 @@ class EsolveStockItemBase {
|
|
|
2963
3021
|
this.ranges_id = +(record.ranges_id ?? 0);
|
|
2964
3022
|
this.active = !!+(record.is_active ?? false);
|
|
2965
3023
|
this.featured = !!+(record.is_featured ?? false);
|
|
3024
|
+
this.height = +(record.height ?? 0);
|
|
3025
|
+
this.width = +(record.width ?? 0);
|
|
3026
|
+
this.length = +(record.length ?? 0);
|
|
3027
|
+
this.weight = +(record.weight ?? 0);
|
|
3028
|
+
if (record.unit_of_measure) {
|
|
3029
|
+
this.unit_of_measure = record.unit_of_measure;
|
|
3030
|
+
}
|
|
2966
3031
|
base_price = +(record.regular_sellprice ?? 0);
|
|
2967
3032
|
base_price_with_tax = +(record.regular_sellprice_inclusive ?? 0);
|
|
2968
3033
|
sell_price = +(record.sellprice ?? 0);
|
|
@@ -3208,8 +3273,12 @@ class EsolveStockImageCollection {
|
|
|
3208
3273
|
}
|
|
3209
3274
|
;
|
|
3210
3275
|
|
|
3276
|
+
// Classes
|
|
3277
|
+
|
|
3211
3278
|
;
|
|
3212
3279
|
|
|
3280
|
+
// Interfaces
|
|
3281
|
+
|
|
3213
3282
|
class EsolveStockService {
|
|
3214
3283
|
constructor(config, http) {
|
|
3215
3284
|
this.config = config;
|
|
@@ -3268,6 +3337,15 @@ class EsolveStockService {
|
|
|
3268
3337
|
if (options.rows) {
|
|
3269
3338
|
params = params.set('rows', options.rows);
|
|
3270
3339
|
}
|
|
3340
|
+
if (options.sort) {
|
|
3341
|
+
const sort = options.sort;
|
|
3342
|
+
if (sort.field) {
|
|
3343
|
+
params = params.set('sort', sort.field);
|
|
3344
|
+
}
|
|
3345
|
+
if (sort.order) {
|
|
3346
|
+
params = params.set('order', sort.order);
|
|
3347
|
+
}
|
|
3348
|
+
}
|
|
3271
3349
|
if (options.search_phrase) {
|
|
3272
3350
|
params = params.set('search_phrase', options.search_phrase);
|
|
3273
3351
|
}
|
|
@@ -3335,9 +3413,27 @@ class EsolveStockService {
|
|
|
3335
3413
|
*
|
|
3336
3414
|
* @param code Stock item code
|
|
3337
3415
|
*/
|
|
3338
|
-
getRecipeItems(code) {
|
|
3416
|
+
getRecipeItems(code, options) {
|
|
3417
|
+
let params = new HttpParams().set('code', code);
|
|
3418
|
+
if (options) {
|
|
3419
|
+
if (options.page) {
|
|
3420
|
+
params = params.set('page', options.page);
|
|
3421
|
+
}
|
|
3422
|
+
if (options.rows) {
|
|
3423
|
+
params = params.set('rows', options.rows);
|
|
3424
|
+
}
|
|
3425
|
+
if (options.sort) {
|
|
3426
|
+
const sort = options.sort;
|
|
3427
|
+
if (sort.field) {
|
|
3428
|
+
params = params.set('sort', sort.field);
|
|
3429
|
+
}
|
|
3430
|
+
if (sort.order) {
|
|
3431
|
+
params = params.set('order', sort.order);
|
|
3432
|
+
}
|
|
3433
|
+
}
|
|
3434
|
+
}
|
|
3339
3435
|
return this.http
|
|
3340
|
-
.get(`${this.config.api_url}/get-recipe-items.php`, { params
|
|
3436
|
+
.get(`${this.config.api_url}/get-recipe-items.php`, { params })
|
|
3341
3437
|
.pipe(map((response) => {
|
|
3342
3438
|
if ((response.records === undefined) ||
|
|
3343
3439
|
(response.records.length <= 0)) {
|
|
@@ -3362,6 +3458,15 @@ class EsolveStockService {
|
|
|
3362
3458
|
is_active: options.is_active ?? true,
|
|
3363
3459
|
},
|
|
3364
3460
|
});
|
|
3461
|
+
if (options.sort) {
|
|
3462
|
+
const sort = options.sort;
|
|
3463
|
+
if (sort.field) {
|
|
3464
|
+
params = params.set('sort', sort.field);
|
|
3465
|
+
}
|
|
3466
|
+
if (sort.order) {
|
|
3467
|
+
params = params.set('order', sort.order);
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3365
3470
|
if (options.media_identifier) {
|
|
3366
3471
|
params = params.append('media_identifier', options.media_identifier);
|
|
3367
3472
|
}
|
|
@@ -3465,8 +3570,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3465
3570
|
args: [ESOLVE_CONNECT_CONFIG]
|
|
3466
3571
|
}] }, { type: i1$2.HttpClient }]; } });
|
|
3467
3572
|
|
|
3468
|
-
// Types
|
|
3469
|
-
|
|
3470
3573
|
class EsolveSpecialImage {
|
|
3471
3574
|
constructor(record) {
|
|
3472
3575
|
this.id = +record.id;
|
|
@@ -3891,6 +3994,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3891
3994
|
args: [ESOLVE_CONNECT_CONFIG]
|
|
3892
3995
|
}] }, { type: i1$2.HttpClient }, { type: EsolveErrorHandlerService }, { type: EsolveResponseHandlerService }]; } });
|
|
3893
3996
|
|
|
3997
|
+
// Only export the types that are accessible to the public API
|
|
3998
|
+
|
|
3894
3999
|
class EsolveBankingDetails {
|
|
3895
4000
|
constructor(bank_name, account_holder, account, account_type, swift_number, branch_code) {
|
|
3896
4001
|
this.bank_name = bank_name;
|
|
@@ -3902,6 +4007,77 @@ class EsolveBankingDetails {
|
|
|
3902
4007
|
}
|
|
3903
4008
|
}
|
|
3904
4009
|
|
|
4010
|
+
class EsolvePaymentMethod {
|
|
4011
|
+
constructor(record) {
|
|
4012
|
+
this.id = +record.id;
|
|
4013
|
+
this.location_id = +record.location_id;
|
|
4014
|
+
this.paymethod_name = record.paymethod_name;
|
|
4015
|
+
this.description = record.description;
|
|
4016
|
+
this.display_banking_details = record.display_banking_details;
|
|
4017
|
+
this.currency_code = record.currency_code;
|
|
4018
|
+
this.merchant_id = record.merchant_id;
|
|
4019
|
+
this.application_id = record.application_id;
|
|
4020
|
+
this.api_signature = record.api_signature;
|
|
4021
|
+
this.is_gateway = record.is_gateway;
|
|
4022
|
+
this.must_store_card_details = record.must_store_card_details;
|
|
4023
|
+
this.allow_budget = record.allow_budget;
|
|
4024
|
+
this.integration_type = record.integration_type;
|
|
4025
|
+
this.bank_gateway_id = record.bank_gateway_id;
|
|
4026
|
+
this.accepted_card_types = record.accepted_card_types;
|
|
4027
|
+
this.post_transactions_to_gateway = record.post_transactions_to_gateway;
|
|
4028
|
+
this.three_d_secure_url = record.three_d_secure_url;
|
|
4029
|
+
this.gateway_url = record.gateway_url;
|
|
4030
|
+
this.generate_token_url = record.generate_token_url;
|
|
4031
|
+
this.widget_url = record.widget_url;
|
|
4032
|
+
this.successful_url = record.successful_url;
|
|
4033
|
+
this.failed_url = record.failed_url;
|
|
4034
|
+
this.enable_callback = record.enable_callback;
|
|
4035
|
+
this.live = record.live;
|
|
4036
|
+
this.default_module_id = +record.default_module_id;
|
|
4037
|
+
this.service_provider = record.service_provider;
|
|
4038
|
+
this.on_account = record.on_account;
|
|
4039
|
+
this.sort_priority = +record.sort_priority;
|
|
4040
|
+
this.image_url = record.image_url;
|
|
4041
|
+
this.banking_details = new EsolveBankingDetails(record.bank_name, record.account_holder, record.account, record.account_type, record.swift_number, record.branch_code);
|
|
4042
|
+
}
|
|
4043
|
+
}
|
|
4044
|
+
|
|
4045
|
+
class EsolvePaymentResult extends EsolveResponseResult {
|
|
4046
|
+
constructor(response) {
|
|
4047
|
+
super(response);
|
|
4048
|
+
this.redirect_required = false;
|
|
4049
|
+
if (typeof response.service_provider !== 'undefined') {
|
|
4050
|
+
this.service_provider = response.service_provider;
|
|
4051
|
+
}
|
|
4052
|
+
if (typeof response.redirect_required !== 'undefined') {
|
|
4053
|
+
this.redirect_required = response.redirect_required;
|
|
4054
|
+
}
|
|
4055
|
+
this.gateway_error_message = response.gateway_error_message ?? '';
|
|
4056
|
+
// Check if redirect settings need to be set
|
|
4057
|
+
if (this.redirect_required && this.service_provider) {
|
|
4058
|
+
if (typeof response.redirect_url !== 'undefined') {
|
|
4059
|
+
this.redirect_url = response.redirect_url;
|
|
4060
|
+
}
|
|
4061
|
+
// Check integration specific settings
|
|
4062
|
+
if (this.service_provider === 'snapscan') {
|
|
4063
|
+
// QR code scan is required
|
|
4064
|
+
if (typeof response.qr_code_url !== 'undefined') {
|
|
4065
|
+
this.qr_code_url = response.qr_code_url;
|
|
4066
|
+
}
|
|
4067
|
+
}
|
|
4068
|
+
else {
|
|
4069
|
+
// Normal form posting redirect
|
|
4070
|
+
if (typeof response.form_inputs !== 'undefined') {
|
|
4071
|
+
this.form_inputs = response.form_inputs;
|
|
4072
|
+
}
|
|
4073
|
+
if (typeof response.form_enctype !== 'undefined') {
|
|
4074
|
+
this.form_enctype = response.form_enctype;
|
|
4075
|
+
}
|
|
4076
|
+
}
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
}
|
|
4080
|
+
|
|
3905
4081
|
class EsolveVaultItemResult extends EsolveResponseResult {
|
|
3906
4082
|
constructor(response) {
|
|
3907
4083
|
super(response);
|
|
@@ -3941,62 +4117,6 @@ class EsolveVaultItem {
|
|
|
3941
4117
|
}
|
|
3942
4118
|
}
|
|
3943
4119
|
|
|
3944
|
-
class EsolvePaymentResult extends EsolveResponseResult {
|
|
3945
|
-
constructor(response) {
|
|
3946
|
-
super(response);
|
|
3947
|
-
if (typeof response.gateway_error_message !== 'undefined') {
|
|
3948
|
-
this.gateway_error_message = response.gateway_error_message;
|
|
3949
|
-
}
|
|
3950
|
-
if (typeof response.three_d_secure !== 'undefined') {
|
|
3951
|
-
this.three_d_secure = response.three_d_secure;
|
|
3952
|
-
}
|
|
3953
|
-
if (typeof response.redirect_url !== 'undefined') {
|
|
3954
|
-
this.redirect_url = response.redirect_url;
|
|
3955
|
-
}
|
|
3956
|
-
if (typeof response.form_inputs !== 'undefined') {
|
|
3957
|
-
this.form_inputs = response.form_inputs;
|
|
3958
|
-
}
|
|
3959
|
-
if (typeof response.form_html !== 'undefined') {
|
|
3960
|
-
this.form_html = response.form_html;
|
|
3961
|
-
}
|
|
3962
|
-
}
|
|
3963
|
-
}
|
|
3964
|
-
|
|
3965
|
-
class EsolvePaymentMethod {
|
|
3966
|
-
constructor(record) {
|
|
3967
|
-
this.id = +record.id;
|
|
3968
|
-
this.location_id = +record.location_id;
|
|
3969
|
-
this.paymethod_name = record.paymethod_name;
|
|
3970
|
-
this.description = record.description;
|
|
3971
|
-
this.display_banking_details = record.display_banking_details;
|
|
3972
|
-
this.currency_code = record.currency_code;
|
|
3973
|
-
this.merchant_id = record.merchant_id;
|
|
3974
|
-
this.application_id = record.application_id;
|
|
3975
|
-
this.api_signature = record.api_signature;
|
|
3976
|
-
this.is_gateway = record.is_gateway;
|
|
3977
|
-
this.must_store_card_details = record.must_store_card_details;
|
|
3978
|
-
this.allow_budget = record.allow_budget;
|
|
3979
|
-
this.integration_type = record.integration_type;
|
|
3980
|
-
this.bank_gateway_id = record.bank_gateway_id;
|
|
3981
|
-
this.accepted_card_types = record.accepted_card_types;
|
|
3982
|
-
this.post_transactions_to_gateway = record.post_transactions_to_gateway;
|
|
3983
|
-
this.three_d_secure_url = record.three_d_secure_url;
|
|
3984
|
-
this.gateway_url = record.gateway_url;
|
|
3985
|
-
this.generate_token_url = record.generate_token_url;
|
|
3986
|
-
this.widget_url = record.widget_url;
|
|
3987
|
-
this.successful_url = record.successful_url;
|
|
3988
|
-
this.failed_url = record.failed_url;
|
|
3989
|
-
this.enable_callback = record.enable_callback;
|
|
3990
|
-
this.live = record.live;
|
|
3991
|
-
this.default_module_id = +record.default_module_id;
|
|
3992
|
-
this.service_provider = record.service_provider;
|
|
3993
|
-
this.on_account = record.on_account;
|
|
3994
|
-
this.sort_priority = +record.sort_priority;
|
|
3995
|
-
this.image_url = record.image_url;
|
|
3996
|
-
this.banking_details = new EsolveBankingDetails(record.bank_name, record.account_holder, record.account, record.account_type, record.swift_number, record.branch_code);
|
|
3997
|
-
}
|
|
3998
|
-
}
|
|
3999
|
-
|
|
4000
4120
|
class EsolvePaymentService {
|
|
4001
4121
|
constructor(config, http, errorHandler, responseHandler) {
|
|
4002
4122
|
this.config = config;
|
|
@@ -4006,7 +4126,9 @@ class EsolvePaymentService {
|
|
|
4006
4126
|
}
|
|
4007
4127
|
/**
|
|
4008
4128
|
* Retrieves a list of payment methods.
|
|
4129
|
+
*
|
|
4009
4130
|
* @param options Filter options
|
|
4131
|
+
*
|
|
4010
4132
|
* @returns An `Observable` with an array of payment methods
|
|
4011
4133
|
*/
|
|
4012
4134
|
getPaymentMethods(options) {
|
|
@@ -4019,9 +4141,28 @@ class EsolvePaymentService {
|
|
|
4019
4141
|
return this.processPaymentMethods(response.records);
|
|
4020
4142
|
}));
|
|
4021
4143
|
}
|
|
4144
|
+
/**
|
|
4145
|
+
* Retrieve the payment status of the specified transaction
|
|
4146
|
+
*
|
|
4147
|
+
* @param transaction_id ID of the transaction
|
|
4148
|
+
*
|
|
4149
|
+
* @returns An `Observable` with the success status of the payment
|
|
4150
|
+
*/
|
|
4151
|
+
getPaymentStatus(transaction_id) {
|
|
4152
|
+
return this.http
|
|
4153
|
+
.get(`${this.config.api_url}/get-payment-status.php`, { params: { cart_id: transaction_id } })
|
|
4154
|
+
.pipe(map((response) => {
|
|
4155
|
+
if (response.records === undefined) {
|
|
4156
|
+
throw response;
|
|
4157
|
+
}
|
|
4158
|
+
return response.records.success;
|
|
4159
|
+
}));
|
|
4160
|
+
}
|
|
4022
4161
|
/**
|
|
4023
4162
|
* Retrieves a list of saved cards from the vault.
|
|
4163
|
+
*
|
|
4024
4164
|
* @param payment_methods_id eSolve ID of a payment method
|
|
4165
|
+
*
|
|
4025
4166
|
* @returns An `Observable` with an array of saved bank cards
|
|
4026
4167
|
*/
|
|
4027
4168
|
getVault(payment_methods_id) {
|
|
@@ -4040,8 +4181,10 @@ class EsolvePaymentService {
|
|
|
4040
4181
|
}
|
|
4041
4182
|
/**
|
|
4042
4183
|
* Sets a new card in the vault OR updates an existing one.
|
|
4184
|
+
*
|
|
4043
4185
|
* @param payment_methods_id Selected payment method
|
|
4044
4186
|
* @param card_data Information of bank card
|
|
4187
|
+
*
|
|
4045
4188
|
* @returns An `Observable` with the result of the vault set.
|
|
4046
4189
|
*/
|
|
4047
4190
|
setVaultItem(payment_methods_id, card_data) {
|
|
@@ -4066,6 +4209,13 @@ class EsolvePaymentService {
|
|
|
4066
4209
|
return this.errorHandler.handleHttpPostError('set-vault', errorRes);
|
|
4067
4210
|
}));
|
|
4068
4211
|
}
|
|
4212
|
+
/**
|
|
4213
|
+
* Delete a card in the vault
|
|
4214
|
+
*
|
|
4215
|
+
* @param id ID of the vault item
|
|
4216
|
+
*
|
|
4217
|
+
* @returns An `Observable` with the result of the vault delete.
|
|
4218
|
+
*/
|
|
4069
4219
|
deleteVaultItem(id) {
|
|
4070
4220
|
return this.http
|
|
4071
4221
|
.delete(`${this.config.api_url}/delete-vault.php`, {
|
|
@@ -4091,6 +4241,7 @@ class EsolvePaymentService {
|
|
|
4091
4241
|
* @param transaction_id eSolve ID to the transaction
|
|
4092
4242
|
* @param payment_methods_id eSolve ID to the selected payment method
|
|
4093
4243
|
* @param card ID of selected card from the vault or information to a brand new card
|
|
4244
|
+
*
|
|
4094
4245
|
* @returns An `Observable` with the result of the payment
|
|
4095
4246
|
*/
|
|
4096
4247
|
setPayment(transaction_id, payment_methods_id, card) {
|
|
@@ -4125,7 +4276,9 @@ class EsolvePaymentService {
|
|
|
4125
4276
|
}
|
|
4126
4277
|
/**
|
|
4127
4278
|
* Processes the eSolve payment method records.
|
|
4279
|
+
*
|
|
4128
4280
|
* @param records Records to process
|
|
4281
|
+
*
|
|
4129
4282
|
* @returns An array of processed payment methods.
|
|
4130
4283
|
*/
|
|
4131
4284
|
processPaymentMethods(records) {
|
|
@@ -4140,7 +4293,9 @@ class EsolvePaymentService {
|
|
|
4140
4293
|
}
|
|
4141
4294
|
/**
|
|
4142
4295
|
* Processes the eSolve vault records.
|
|
4296
|
+
*
|
|
4143
4297
|
* @param records Records to process
|
|
4298
|
+
*
|
|
4144
4299
|
* @returns An array of processed vault items (a.k.a. cards)
|
|
4145
4300
|
*/
|
|
4146
4301
|
processVaultItems(records) {
|
|
@@ -4153,6 +4308,13 @@ class EsolvePaymentService {
|
|
|
4153
4308
|
}
|
|
4154
4309
|
return vault;
|
|
4155
4310
|
}
|
|
4311
|
+
/**
|
|
4312
|
+
* Generate a concatenated string with the expiry month and year
|
|
4313
|
+
*
|
|
4314
|
+
* @param card_data Credit card data
|
|
4315
|
+
*
|
|
4316
|
+
* @returns Expiry string
|
|
4317
|
+
*/
|
|
4156
4318
|
generateExpiry(card_data) {
|
|
4157
4319
|
const month_string = card_data.expiry_month.padStart(2, '0');
|
|
4158
4320
|
const year_string = card_data.expiry_year.padStart(4, '0');
|
|
@@ -4383,3 +4545,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4383
4545
|
*/
|
|
4384
4546
|
|
|
4385
4547
|
export { EsolveAccountService, EsolveAdditionalStockImage, EsolveAddress, EsolveAddressResult, EsolveAsset, EsolveAssetsService, EsolveAuthService, EsolveBankingDetails, EsolveBanner, EsolveBannerImage, EsolveBannerImageHotspot, EsolveBannerService, EsolveCartItem, EsolveCartService, EsolveCartStockItem, EsolveCartTotals, EsolveCategoryTreeItem, EsolveCategoryTreeService, EsolveChangePasswordResult, EsolveCheckoutResult, EsolveColour, EsolveCookieService, EsolveEnquiryResult, EsolveEnquiryService, EsolveErrorHandlerService, EsolveGeocodeAddressResult, EsolveGeocodeCoordsResult, EsolveGeocodeResult, EsolveGeocoderService, EsolveHeading, EsolveHttpError, EsolveLinkedAsset, EsolveLinkedStockItem, EsolveList, EsolveLocation, EsolveLocationAddress, EsolveLocationContactInfo, EsolveLocationPOBoxAddress, EsolveLocationTradingDay, EsolveLocationTradingTimes, EsolveLocationsService, EsolveManufacturer, EsolveManufacturersService, EsolveMediaArticle, EsolveMediaService, EsolveMediaStockItem, EsolveMenuItem, EsolveMenuService, EsolveNewsArticle, EsolveNewsArticleAuthor, EsolveNewsArticleList, EsolveNewsGroup, EsolveNewsService, EsolvePaymentMethod, EsolvePaymentResult, EsolvePaymentService, EsolveRange, EsolveRangesService, EsolveRecipeStockItem, EsolveRegistrationResult, EsolveResetPasswordResult, EsolveResponseHandlerService, EsolveResponseResult, EsolveResult, EsolveSeoInfo, EsolveSeoService, EsolveSession, EsolveSessionService, EsolveShippingCost, EsolveShippingMethod, EsolveShippingService, EsolveShippingTotals, EsolveSpecial, EsolveSpecialImage, EsolveSpecialImageCollection, EsolveSpecialsService, EsolveStockBadge, EsolveStockGroup, EsolveStockGroupItem, EsolveStockImage, EsolveStockImageCollection, EsolveStockItem, EsolveStockItemBase, EsolveStockItemList, EsolveStockLeadTimes, EsolveStockPrice, EsolveStockService, EsolveTag, EsolveTagsService, EsolveTopic, EsolveTopicService, EsolveTransaction, EsolveTransactionAddress, EsolveTransactionClient, EsolveTransactionItem, EsolveTransactionItemPrice, EsolveTransactionList, EsolveTransactionLocation, EsolveTransactionPaymentMethod, EsolveTransactionShippingMethod, EsolveTransactionUser, EsolveUserAccount, EsolveUserAccountBusiness, EsolveUserAccountContact, EsolveUserAccountResult, EsolveVaultItem, EsolveVaultItemResult, NgEsolveConnectModule };
|
|
4548
|
+
//# sourceMappingURL=esolve-ng-esolve-connect.mjs.map
|