@gofynd/fdk-client-javascript 3.4.0 → 3.4.1
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/README.md +1 -1
- package/package.json +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +111 -43
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +65 -33
- package/sdk/platform/Cart/CartPlatformModel.d.ts +262 -12
- package/sdk/platform/Cart/CartPlatformModel.js +334 -10
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +4 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +9 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +4 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +2 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +2 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +14 -19
- package/sdk/platform/Content/ContentPlatformModel.js +6 -20
- package/sdk/platform/Order/OrderPlatformModel.d.ts +218 -17
- package/sdk/platform/Order/OrderPlatformModel.js +366 -14
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +15 -15
- package/sdk/platform/Order/OrderPlatformValidator.js +9 -9
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -5
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +4 -3
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +97 -1
- package/sdk/platform/Payment/PaymentPlatformModel.js +273 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +50 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +22 -2
package/README.md
CHANGED
|
@@ -237,7 +237,7 @@ console.log("Active Theme: ", response.information.name);
|
|
|
237
237
|
The above code will log the curl command in the console
|
|
238
238
|
|
|
239
239
|
```bash
|
|
240
|
-
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.4.
|
|
240
|
+
curl --request GET "https://api.fynd.com/service/application/theme/v1.0/applied-theme" --header 'authorization: Bearer <authorization-token>' --header 'x-fp-sdk-version: 3.4.1' --header 'x-fp-date: 20230222T115108Z' --header 'x-fp-signature: v1.1:1e3ab3b02b5bc626e3c32a37ee844266ade02bbcbaafc28fc7a0e46a76a7a1a8'
|
|
241
241
|
Active Theme: Emerge
|
|
242
242
|
```
|
|
243
243
|
|
package/package.json
CHANGED
|
@@ -31,6 +31,12 @@ export = LogisticsPartnerModel;
|
|
|
31
31
|
* @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
|
|
32
32
|
* quantity of items allowed in a non-quality check shipment.
|
|
33
33
|
* @property {CourierPartnerSchemeFeatures} feature
|
|
34
|
+
* @property {string} [default_forward_pickup_cutoff] - Default cutoff time for
|
|
35
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
36
|
+
* @property {string} [default_reverse_pickup_cutoff] - Default cutoff time for
|
|
37
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
38
|
+
* @property {string} [default_cutoff_timezone] - Timezone for default cutoff time.
|
|
39
|
+
* @property {CourierPartnerSchemeDefaultTat} [default_tat]
|
|
34
40
|
*/
|
|
35
41
|
/**
|
|
36
42
|
* @typedef BulkRegionServiceabilityTatDetails
|
|
@@ -360,9 +366,10 @@ export = LogisticsPartnerModel;
|
|
|
360
366
|
* fetch or modify scheme details.
|
|
361
367
|
* @property {string} name - Name of the scheme.
|
|
362
368
|
* @property {string} [default_forward_pickup_cutoff] - Default cutoff time for
|
|
363
|
-
* forward pickup (nullable).
|
|
369
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
364
370
|
* @property {string} [default_reverse_pickup_cutoff] - Default cutoff time for
|
|
365
|
-
* reverse pickup (nullable).
|
|
371
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
372
|
+
* @property {string} [default_cutoff_timezone] - Timezone for default cutoff time.
|
|
366
373
|
* @property {CourierPartnerSchemeDefaultTat} [default_tat]
|
|
367
374
|
* @property {ArithmeticOperations} weight
|
|
368
375
|
* @property {ArithmeticOperations} [volumetric_weight]
|
|
@@ -417,6 +424,12 @@ export = LogisticsPartnerModel;
|
|
|
417
424
|
* @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
|
|
418
425
|
* quantity of items allowed in a non-quality check shipment.
|
|
419
426
|
* @property {CourierPartnerSchemeFeatures} feature
|
|
427
|
+
* @property {string} [default_forward_pickup_cutoff] - Default cutoff time for
|
|
428
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
429
|
+
* @property {string} [default_reverse_pickup_cutoff] - Default cutoff time for
|
|
430
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
431
|
+
* @property {string} [default_cutoff_timezone] - Timezone for default cutoff time.
|
|
432
|
+
* @property {CourierPartnerSchemeDefaultTat} [default_tat]
|
|
420
433
|
*/
|
|
421
434
|
/**
|
|
422
435
|
* @typedef CourierPartnerSchemeList
|
|
@@ -447,6 +460,12 @@ export = LogisticsPartnerModel;
|
|
|
447
460
|
* @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
|
|
448
461
|
* quantity of items allowed in a non-quality check shipment.
|
|
449
462
|
* @property {CourierPartnerSchemeFeatures} feature
|
|
463
|
+
* @property {string} [default_forward_pickup_cutoff] - Default cutoff time for
|
|
464
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
465
|
+
* @property {string} [default_reverse_pickup_cutoff] - Default cutoff time for
|
|
466
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
467
|
+
* @property {string} [default_cutoff_timezone] - Timezone for default cutoff time.
|
|
468
|
+
* @property {CourierPartnerSchemeDefaultTat} [default_tat]
|
|
450
469
|
*/
|
|
451
470
|
/**
|
|
452
471
|
* @typedef GetCountries
|
|
@@ -534,6 +553,18 @@ export = LogisticsPartnerModel;
|
|
|
534
553
|
* @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
|
|
535
554
|
* quantity of items allowed in a non-quality check shipment.
|
|
536
555
|
*/
|
|
556
|
+
/**
|
|
557
|
+
* @typedef CourierPartnerSchemeDefaultTat
|
|
558
|
+
* @property {boolean} [enabled] - Indicates whether the default turn around
|
|
559
|
+
* time (tat) to be used for the given scheme or not.
|
|
560
|
+
* @property {CourierPartnerSchemeTat} [tat]
|
|
561
|
+
*/
|
|
562
|
+
/**
|
|
563
|
+
* @typedef CourierPartnerSchemeTat
|
|
564
|
+
* @property {number} [min] - Minimum turn around time (tat) value for a scheme.
|
|
565
|
+
* @property {number} [max] - Maximum turn around time (tat) value for a scheme.
|
|
566
|
+
* @property {string} [unit] - Unit for the turn around time (tat) values for a scheme.
|
|
567
|
+
*/
|
|
537
568
|
/**
|
|
538
569
|
* @typedef Error
|
|
539
570
|
* @property {string} [type] - The type of the error.
|
|
@@ -575,18 +606,6 @@ export = LogisticsPartnerModel;
|
|
|
575
606
|
* @property {string} stage - A string indicating the current stage of the scheme.
|
|
576
607
|
* @property {CourierPartnerSchemeFeatures} feature
|
|
577
608
|
*/
|
|
578
|
-
/**
|
|
579
|
-
* @typedef CourierPartnerSchemeDefaultTat
|
|
580
|
-
* @property {boolean} [enabled] - Indicates whether the default turn around
|
|
581
|
-
* time (tat) to be used for the given scheme or not.
|
|
582
|
-
* @property {CourierPartnerSchemeTat} [tat]
|
|
583
|
-
*/
|
|
584
|
-
/**
|
|
585
|
-
* @typedef CourierPartnerSchemeTat
|
|
586
|
-
* @property {number} [min] - Minimum turn around time (tat) value for a scheme.
|
|
587
|
-
* @property {number} [max] - Maximum turn around time (tat) value for a scheme.
|
|
588
|
-
* @property {string} [unit] - Unit for the turn around time (tat) values for a scheme.
|
|
589
|
-
*/
|
|
590
609
|
/**
|
|
591
610
|
* @typedef GetCountriesItems
|
|
592
611
|
* @property {string} [id] - A string serving as the unique identifier.
|
|
@@ -633,7 +652,7 @@ export = LogisticsPartnerModel;
|
|
|
633
652
|
declare class LogisticsPartnerModel {
|
|
634
653
|
}
|
|
635
654
|
declare namespace LogisticsPartnerModel {
|
|
636
|
-
export { CourierPartnerSchemeModelSchema, BulkRegionServiceabilityTatDetails, BulkRegionServiceabilityTatResultItemData, CommonErrorResult, BulkFailureResult, FailureResult, BulkRegionServiceabilityTatResult, RegionTatItemResult, RegionServiceabilityItemResult, ServiceabilityDetailsResult, ServiceabilityDetails, RegionServiceabilityResult, RegionServiceabilityDetails, RegionTatDetails, RegionTatResult, BulkRegionJobDetails, BulkRegionResultItemData, BulkRegionResult, CourierAccountDetailsBody, CompanyCourierPartnerAccountListResult, CourierAccountResult, CourierPartnerSchemeDetailsModel, CourierPartnerPutSchema, CourierPartnerSchemeList, CourierPartnerSchemeUpdateDetails, GetCountries, TATUpdateDetails, StandardError, ValidationErrors, CreatedBy, ModifiedBy, ArithmeticOperations, CourierPartnerSchemeFeatures, Error, Page, TATDetails, CourierPartnerSchemeModel,
|
|
655
|
+
export { CourierPartnerSchemeModelSchema, BulkRegionServiceabilityTatDetails, BulkRegionServiceabilityTatResultItemData, CommonErrorResult, BulkFailureResult, FailureResult, BulkRegionServiceabilityTatResult, RegionTatItemResult, RegionServiceabilityItemResult, ServiceabilityDetailsResult, ServiceabilityDetails, RegionServiceabilityResult, RegionServiceabilityDetails, RegionTatDetails, RegionTatResult, BulkRegionJobDetails, BulkRegionResultItemData, BulkRegionResult, CourierAccountDetailsBody, CompanyCourierPartnerAccountListResult, CourierAccountResult, CourierPartnerSchemeDetailsModel, CourierPartnerPutSchema, CourierPartnerSchemeList, CourierPartnerSchemeUpdateDetails, GetCountries, TATUpdateDetails, StandardError, ValidationErrors, CreatedBy, ModifiedBy, ArithmeticOperations, CourierPartnerSchemeFeatures, CourierPartnerSchemeDefaultTat, CourierPartnerSchemeTat, Error, Page, TATDetails, CourierPartnerSchemeModel, GetCountriesItems, HierarchyItems, CurrencyObject, ValidationError };
|
|
637
656
|
}
|
|
638
657
|
/** @returns {CourierPartnerSchemeModelSchema} */
|
|
639
658
|
declare function CourierPartnerSchemeModelSchema(): CourierPartnerSchemeModelSchema;
|
|
@@ -713,6 +732,21 @@ type CourierPartnerSchemeModelSchema = {
|
|
|
713
732
|
*/
|
|
714
733
|
non_qc_shipment_item_quantity?: number;
|
|
715
734
|
feature: CourierPartnerSchemeFeatures;
|
|
735
|
+
/**
|
|
736
|
+
* - Default cutoff time for
|
|
737
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
738
|
+
*/
|
|
739
|
+
default_forward_pickup_cutoff?: string;
|
|
740
|
+
/**
|
|
741
|
+
* - Default cutoff time for
|
|
742
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
743
|
+
*/
|
|
744
|
+
default_reverse_pickup_cutoff?: string;
|
|
745
|
+
/**
|
|
746
|
+
* - Timezone for default cutoff time.
|
|
747
|
+
*/
|
|
748
|
+
default_cutoff_timezone?: string;
|
|
749
|
+
default_tat?: CourierPartnerSchemeDefaultTat;
|
|
716
750
|
};
|
|
717
751
|
/** @returns {BulkRegionServiceabilityTatDetails} */
|
|
718
752
|
declare function BulkRegionServiceabilityTatDetails(): BulkRegionServiceabilityTatDetails;
|
|
@@ -1496,14 +1530,18 @@ type CourierPartnerSchemeDetailsModel = {
|
|
|
1496
1530
|
name: string;
|
|
1497
1531
|
/**
|
|
1498
1532
|
* - Default cutoff time for
|
|
1499
|
-
* forward pickup (nullable).
|
|
1533
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
1500
1534
|
*/
|
|
1501
1535
|
default_forward_pickup_cutoff?: string;
|
|
1502
1536
|
/**
|
|
1503
1537
|
* - Default cutoff time for
|
|
1504
|
-
* reverse pickup (nullable).
|
|
1538
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
1505
1539
|
*/
|
|
1506
1540
|
default_reverse_pickup_cutoff?: string;
|
|
1541
|
+
/**
|
|
1542
|
+
* - Timezone for default cutoff time.
|
|
1543
|
+
*/
|
|
1544
|
+
default_cutoff_timezone?: string;
|
|
1507
1545
|
default_tat?: CourierPartnerSchemeDefaultTat;
|
|
1508
1546
|
weight: ArithmeticOperations;
|
|
1509
1547
|
volumetric_weight?: ArithmeticOperations;
|
|
@@ -1631,6 +1669,21 @@ type CourierPartnerPutSchema = {
|
|
|
1631
1669
|
*/
|
|
1632
1670
|
non_qc_shipment_item_quantity?: number;
|
|
1633
1671
|
feature: CourierPartnerSchemeFeatures;
|
|
1672
|
+
/**
|
|
1673
|
+
* - Default cutoff time for
|
|
1674
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
1675
|
+
*/
|
|
1676
|
+
default_forward_pickup_cutoff?: string;
|
|
1677
|
+
/**
|
|
1678
|
+
* - Default cutoff time for
|
|
1679
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
1680
|
+
*/
|
|
1681
|
+
default_reverse_pickup_cutoff?: string;
|
|
1682
|
+
/**
|
|
1683
|
+
* - Timezone for default cutoff time.
|
|
1684
|
+
*/
|
|
1685
|
+
default_cutoff_timezone?: string;
|
|
1686
|
+
default_tat?: CourierPartnerSchemeDefaultTat;
|
|
1634
1687
|
};
|
|
1635
1688
|
/** @returns {CourierPartnerSchemeList} */
|
|
1636
1689
|
declare function CourierPartnerSchemeList(): CourierPartnerSchemeList;
|
|
@@ -1696,6 +1749,21 @@ type CourierPartnerSchemeUpdateDetails = {
|
|
|
1696
1749
|
*/
|
|
1697
1750
|
non_qc_shipment_item_quantity?: number;
|
|
1698
1751
|
feature: CourierPartnerSchemeFeatures;
|
|
1752
|
+
/**
|
|
1753
|
+
* - Default cutoff time for
|
|
1754
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
1755
|
+
*/
|
|
1756
|
+
default_forward_pickup_cutoff?: string;
|
|
1757
|
+
/**
|
|
1758
|
+
* - Default cutoff time for
|
|
1759
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
1760
|
+
*/
|
|
1761
|
+
default_reverse_pickup_cutoff?: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* - Timezone for default cutoff time.
|
|
1764
|
+
*/
|
|
1765
|
+
default_cutoff_timezone?: string;
|
|
1766
|
+
default_tat?: CourierPartnerSchemeDefaultTat;
|
|
1699
1767
|
};
|
|
1700
1768
|
/** @returns {GetCountries} */
|
|
1701
1769
|
declare function GetCountries(): GetCountries;
|
|
@@ -1884,6 +1952,32 @@ type CourierPartnerSchemeFeatures = {
|
|
|
1884
1952
|
*/
|
|
1885
1953
|
non_qc_shipment_item_quantity?: number;
|
|
1886
1954
|
};
|
|
1955
|
+
/** @returns {CourierPartnerSchemeDefaultTat} */
|
|
1956
|
+
declare function CourierPartnerSchemeDefaultTat(): CourierPartnerSchemeDefaultTat;
|
|
1957
|
+
type CourierPartnerSchemeDefaultTat = {
|
|
1958
|
+
/**
|
|
1959
|
+
* - Indicates whether the default turn around
|
|
1960
|
+
* time (tat) to be used for the given scheme or not.
|
|
1961
|
+
*/
|
|
1962
|
+
enabled?: boolean;
|
|
1963
|
+
tat?: CourierPartnerSchemeTat;
|
|
1964
|
+
};
|
|
1965
|
+
/** @returns {CourierPartnerSchemeTat} */
|
|
1966
|
+
declare function CourierPartnerSchemeTat(): CourierPartnerSchemeTat;
|
|
1967
|
+
type CourierPartnerSchemeTat = {
|
|
1968
|
+
/**
|
|
1969
|
+
* - Minimum turn around time (tat) value for a scheme.
|
|
1970
|
+
*/
|
|
1971
|
+
min?: number;
|
|
1972
|
+
/**
|
|
1973
|
+
* - Maximum turn around time (tat) value for a scheme.
|
|
1974
|
+
*/
|
|
1975
|
+
max?: number;
|
|
1976
|
+
/**
|
|
1977
|
+
* - Unit for the turn around time (tat) values for a scheme.
|
|
1978
|
+
*/
|
|
1979
|
+
unit?: string;
|
|
1980
|
+
};
|
|
1887
1981
|
/** @returns {Error} */
|
|
1888
1982
|
declare function Error(): Error;
|
|
1889
1983
|
type Error = {
|
|
@@ -1992,32 +2086,6 @@ type CourierPartnerSchemeModel = {
|
|
|
1992
2086
|
stage: string;
|
|
1993
2087
|
feature: CourierPartnerSchemeFeatures;
|
|
1994
2088
|
};
|
|
1995
|
-
/** @returns {CourierPartnerSchemeDefaultTat} */
|
|
1996
|
-
declare function CourierPartnerSchemeDefaultTat(): CourierPartnerSchemeDefaultTat;
|
|
1997
|
-
type CourierPartnerSchemeDefaultTat = {
|
|
1998
|
-
/**
|
|
1999
|
-
* - Indicates whether the default turn around
|
|
2000
|
-
* time (tat) to be used for the given scheme or not.
|
|
2001
|
-
*/
|
|
2002
|
-
enabled?: boolean;
|
|
2003
|
-
tat?: CourierPartnerSchemeTat;
|
|
2004
|
-
};
|
|
2005
|
-
/** @returns {CourierPartnerSchemeTat} */
|
|
2006
|
-
declare function CourierPartnerSchemeTat(): CourierPartnerSchemeTat;
|
|
2007
|
-
type CourierPartnerSchemeTat = {
|
|
2008
|
-
/**
|
|
2009
|
-
* - Minimum turn around time (tat) value for a scheme.
|
|
2010
|
-
*/
|
|
2011
|
-
min?: number;
|
|
2012
|
-
/**
|
|
2013
|
-
* - Maximum turn around time (tat) value for a scheme.
|
|
2014
|
-
*/
|
|
2015
|
-
max?: number;
|
|
2016
|
-
/**
|
|
2017
|
-
* - Unit for the turn around time (tat) values for a scheme.
|
|
2018
|
-
*/
|
|
2019
|
-
unit?: string;
|
|
2020
|
-
};
|
|
2021
2089
|
/** @returns {GetCountriesItems} */
|
|
2022
2090
|
declare function GetCountriesItems(): GetCountriesItems;
|
|
2023
2091
|
type GetCountriesItems = {
|
|
@@ -32,6 +32,12 @@ const Joi = require("joi");
|
|
|
32
32
|
* @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
|
|
33
33
|
* quantity of items allowed in a non-quality check shipment.
|
|
34
34
|
* @property {CourierPartnerSchemeFeatures} feature
|
|
35
|
+
* @property {string} [default_forward_pickup_cutoff] - Default cutoff time for
|
|
36
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
37
|
+
* @property {string} [default_reverse_pickup_cutoff] - Default cutoff time for
|
|
38
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
39
|
+
* @property {string} [default_cutoff_timezone] - Timezone for default cutoff time.
|
|
40
|
+
* @property {CourierPartnerSchemeDefaultTat} [default_tat]
|
|
35
41
|
*/
|
|
36
42
|
|
|
37
43
|
/**
|
|
@@ -382,9 +388,10 @@ const Joi = require("joi");
|
|
|
382
388
|
* fetch or modify scheme details.
|
|
383
389
|
* @property {string} name - Name of the scheme.
|
|
384
390
|
* @property {string} [default_forward_pickup_cutoff] - Default cutoff time for
|
|
385
|
-
* forward pickup (nullable).
|
|
391
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
386
392
|
* @property {string} [default_reverse_pickup_cutoff] - Default cutoff time for
|
|
387
|
-
* reverse pickup (nullable).
|
|
393
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
394
|
+
* @property {string} [default_cutoff_timezone] - Timezone for default cutoff time.
|
|
388
395
|
* @property {CourierPartnerSchemeDefaultTat} [default_tat]
|
|
389
396
|
* @property {ArithmeticOperations} weight
|
|
390
397
|
* @property {ArithmeticOperations} [volumetric_weight]
|
|
@@ -440,6 +447,12 @@ const Joi = require("joi");
|
|
|
440
447
|
* @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
|
|
441
448
|
* quantity of items allowed in a non-quality check shipment.
|
|
442
449
|
* @property {CourierPartnerSchemeFeatures} feature
|
|
450
|
+
* @property {string} [default_forward_pickup_cutoff] - Default cutoff time for
|
|
451
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
452
|
+
* @property {string} [default_reverse_pickup_cutoff] - Default cutoff time for
|
|
453
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
454
|
+
* @property {string} [default_cutoff_timezone] - Timezone for default cutoff time.
|
|
455
|
+
* @property {CourierPartnerSchemeDefaultTat} [default_tat]
|
|
443
456
|
*/
|
|
444
457
|
|
|
445
458
|
/**
|
|
@@ -472,6 +485,12 @@ const Joi = require("joi");
|
|
|
472
485
|
* @property {number} [non_qc_shipment_item_quantity] - Defines the maximum
|
|
473
486
|
* quantity of items allowed in a non-quality check shipment.
|
|
474
487
|
* @property {CourierPartnerSchemeFeatures} feature
|
|
488
|
+
* @property {string} [default_forward_pickup_cutoff] - Default cutoff time for
|
|
489
|
+
* forward pickup (nullable), having 24hour time format HH:MM.
|
|
490
|
+
* @property {string} [default_reverse_pickup_cutoff] - Default cutoff time for
|
|
491
|
+
* reverse pickup (nullable), having 24hour time format HH:MM.
|
|
492
|
+
* @property {string} [default_cutoff_timezone] - Timezone for default cutoff time.
|
|
493
|
+
* @property {CourierPartnerSchemeDefaultTat} [default_tat]
|
|
475
494
|
*/
|
|
476
495
|
|
|
477
496
|
/**
|
|
@@ -568,6 +587,20 @@ const Joi = require("joi");
|
|
|
568
587
|
* quantity of items allowed in a non-quality check shipment.
|
|
569
588
|
*/
|
|
570
589
|
|
|
590
|
+
/**
|
|
591
|
+
* @typedef CourierPartnerSchemeDefaultTat
|
|
592
|
+
* @property {boolean} [enabled] - Indicates whether the default turn around
|
|
593
|
+
* time (tat) to be used for the given scheme or not.
|
|
594
|
+
* @property {CourierPartnerSchemeTat} [tat]
|
|
595
|
+
*/
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @typedef CourierPartnerSchemeTat
|
|
599
|
+
* @property {number} [min] - Minimum turn around time (tat) value for a scheme.
|
|
600
|
+
* @property {number} [max] - Maximum turn around time (tat) value for a scheme.
|
|
601
|
+
* @property {string} [unit] - Unit for the turn around time (tat) values for a scheme.
|
|
602
|
+
*/
|
|
603
|
+
|
|
571
604
|
/**
|
|
572
605
|
* @typedef Error
|
|
573
606
|
* @property {string} [type] - The type of the error.
|
|
@@ -613,20 +646,6 @@ const Joi = require("joi");
|
|
|
613
646
|
* @property {CourierPartnerSchemeFeatures} feature
|
|
614
647
|
*/
|
|
615
648
|
|
|
616
|
-
/**
|
|
617
|
-
* @typedef CourierPartnerSchemeDefaultTat
|
|
618
|
-
* @property {boolean} [enabled] - Indicates whether the default turn around
|
|
619
|
-
* time (tat) to be used for the given scheme or not.
|
|
620
|
-
* @property {CourierPartnerSchemeTat} [tat]
|
|
621
|
-
*/
|
|
622
|
-
|
|
623
|
-
/**
|
|
624
|
-
* @typedef CourierPartnerSchemeTat
|
|
625
|
-
* @property {number} [min] - Minimum turn around time (tat) value for a scheme.
|
|
626
|
-
* @property {number} [max] - Maximum turn around time (tat) value for a scheme.
|
|
627
|
-
* @property {string} [unit] - Unit for the turn around time (tat) values for a scheme.
|
|
628
|
-
*/
|
|
629
|
-
|
|
630
649
|
/**
|
|
631
650
|
* @typedef GetCountriesItems
|
|
632
651
|
* @property {string} [id] - A string serving as the unique identifier.
|
|
@@ -698,6 +717,10 @@ class LogisticsPartnerModel {
|
|
|
698
717
|
qc_shipment_item_quantity: Joi.number().allow(null),
|
|
699
718
|
non_qc_shipment_item_quantity: Joi.number().allow(null),
|
|
700
719
|
feature: LogisticsPartnerModel.CourierPartnerSchemeFeatures().required(),
|
|
720
|
+
default_forward_pickup_cutoff: Joi.string().allow("").allow(null),
|
|
721
|
+
default_reverse_pickup_cutoff: Joi.string().allow("").allow(null),
|
|
722
|
+
default_cutoff_timezone: Joi.string().allow("").allow(null),
|
|
723
|
+
default_tat: LogisticsPartnerModel.CourierPartnerSchemeDefaultTat(),
|
|
701
724
|
});
|
|
702
725
|
}
|
|
703
726
|
|
|
@@ -990,6 +1013,7 @@ class LogisticsPartnerModel {
|
|
|
990
1013
|
name: Joi.string().allow("").required(),
|
|
991
1014
|
default_forward_pickup_cutoff: Joi.string().allow("").allow(null),
|
|
992
1015
|
default_reverse_pickup_cutoff: Joi.string().allow("").allow(null),
|
|
1016
|
+
default_cutoff_timezone: Joi.string().allow("").allow(null),
|
|
993
1017
|
default_tat: LogisticsPartnerModel.CourierPartnerSchemeDefaultTat(),
|
|
994
1018
|
weight: LogisticsPartnerModel.ArithmeticOperations().required(),
|
|
995
1019
|
volumetric_weight: LogisticsPartnerModel.ArithmeticOperations(),
|
|
@@ -1029,6 +1053,10 @@ class LogisticsPartnerModel {
|
|
|
1029
1053
|
qc_shipment_item_quantity: Joi.number().allow(null),
|
|
1030
1054
|
non_qc_shipment_item_quantity: Joi.number().allow(null),
|
|
1031
1055
|
feature: LogisticsPartnerModel.CourierPartnerSchemeFeatures().required(),
|
|
1056
|
+
default_forward_pickup_cutoff: Joi.string().allow("").allow(null),
|
|
1057
|
+
default_reverse_pickup_cutoff: Joi.string().allow("").allow(null),
|
|
1058
|
+
default_cutoff_timezone: Joi.string().allow("").allow(null),
|
|
1059
|
+
default_tat: LogisticsPartnerModel.CourierPartnerSchemeDefaultTat(),
|
|
1032
1060
|
});
|
|
1033
1061
|
}
|
|
1034
1062
|
|
|
@@ -1058,6 +1086,10 @@ class LogisticsPartnerModel {
|
|
|
1058
1086
|
qc_shipment_item_quantity: Joi.number().allow(null),
|
|
1059
1087
|
non_qc_shipment_item_quantity: Joi.number().allow(null),
|
|
1060
1088
|
feature: LogisticsPartnerModel.CourierPartnerSchemeFeatures().required(),
|
|
1089
|
+
default_forward_pickup_cutoff: Joi.string().allow("").allow(null),
|
|
1090
|
+
default_reverse_pickup_cutoff: Joi.string().allow("").allow(null),
|
|
1091
|
+
default_cutoff_timezone: Joi.string().allow("").allow(null),
|
|
1092
|
+
default_tat: LogisticsPartnerModel.CourierPartnerSchemeDefaultTat(),
|
|
1061
1093
|
});
|
|
1062
1094
|
}
|
|
1063
1095
|
|
|
@@ -1147,6 +1179,23 @@ class LogisticsPartnerModel {
|
|
|
1147
1179
|
});
|
|
1148
1180
|
}
|
|
1149
1181
|
|
|
1182
|
+
/** @returns {CourierPartnerSchemeDefaultTat} */
|
|
1183
|
+
static CourierPartnerSchemeDefaultTat() {
|
|
1184
|
+
return Joi.object({
|
|
1185
|
+
enabled: Joi.boolean(),
|
|
1186
|
+
tat: LogisticsPartnerModel.CourierPartnerSchemeTat(),
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
/** @returns {CourierPartnerSchemeTat} */
|
|
1191
|
+
static CourierPartnerSchemeTat() {
|
|
1192
|
+
return Joi.object({
|
|
1193
|
+
min: Joi.number(),
|
|
1194
|
+
max: Joi.number(),
|
|
1195
|
+
unit: Joi.string().allow(""),
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1150
1199
|
/** @returns {Error} */
|
|
1151
1200
|
static Error() {
|
|
1152
1201
|
return Joi.object({
|
|
@@ -1195,23 +1244,6 @@ class LogisticsPartnerModel {
|
|
|
1195
1244
|
});
|
|
1196
1245
|
}
|
|
1197
1246
|
|
|
1198
|
-
/** @returns {CourierPartnerSchemeDefaultTat} */
|
|
1199
|
-
static CourierPartnerSchemeDefaultTat() {
|
|
1200
|
-
return Joi.object({
|
|
1201
|
-
enabled: Joi.boolean(),
|
|
1202
|
-
tat: LogisticsPartnerModel.CourierPartnerSchemeTat(),
|
|
1203
|
-
});
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
/** @returns {CourierPartnerSchemeTat} */
|
|
1207
|
-
static CourierPartnerSchemeTat() {
|
|
1208
|
-
return Joi.object({
|
|
1209
|
-
min: Joi.number(),
|
|
1210
|
-
max: Joi.number(),
|
|
1211
|
-
unit: Joi.string().allow(""),
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
1247
|
/** @returns {GetCountriesItems} */
|
|
1216
1248
|
static GetCountriesItems() {
|
|
1217
1249
|
return Joi.object({
|