@gofynd/fdk-client-javascript 1.3.0 → 1.3.1-beta.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/package.json
CHANGED
|
@@ -697,6 +697,7 @@ export = CartApplicationModel;
|
|
|
697
697
|
* @property {number} [fynd_cash]
|
|
698
698
|
* @property {number} [gift_card]
|
|
699
699
|
* @property {number} [gst_charges]
|
|
700
|
+
* @property {number} [mop_total]
|
|
700
701
|
* @property {number} [mrp_total]
|
|
701
702
|
* @property {number} [subtotal]
|
|
702
703
|
* @property {number} [total]
|
|
@@ -1888,6 +1889,7 @@ type RawBreakup = {
|
|
|
1888
1889
|
fynd_cash?: number;
|
|
1889
1890
|
gift_card?: number;
|
|
1890
1891
|
gst_charges?: number;
|
|
1892
|
+
mop_total?: number;
|
|
1891
1893
|
mrp_total?: number;
|
|
1892
1894
|
subtotal?: number;
|
|
1893
1895
|
total?: number;
|
|
@@ -775,6 +775,7 @@ const Joi = require("joi");
|
|
|
775
775
|
* @property {number} [fynd_cash]
|
|
776
776
|
* @property {number} [gift_card]
|
|
777
777
|
* @property {number} [gst_charges]
|
|
778
|
+
* @property {number} [mop_total]
|
|
778
779
|
* @property {number} [mrp_total]
|
|
779
780
|
* @property {number} [subtotal]
|
|
780
781
|
* @property {number} [total]
|
|
@@ -1862,6 +1863,7 @@ class CartApplicationModel {
|
|
|
1862
1863
|
fynd_cash: Joi.number(),
|
|
1863
1864
|
gift_card: Joi.number(),
|
|
1864
1865
|
gst_charges: Joi.number(),
|
|
1866
|
+
mop_total: Joi.number(),
|
|
1865
1867
|
mrp_total: Joi.number(),
|
|
1866
1868
|
subtotal: Joi.number(),
|
|
1867
1869
|
total: Joi.number(),
|
|
@@ -27,21 +27,19 @@ export = WebhookPlatformValidator;
|
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
29
|
* @typedef GetSubscriberByIdParam
|
|
30
|
-
* @property {number} subscriberId -
|
|
31
|
-
* retry is to be initiated.
|
|
30
|
+
* @property {number} subscriberId - Subscriber id
|
|
32
31
|
*/
|
|
33
32
|
/**
|
|
34
33
|
* @typedef GetSubscribersByCompanyParam
|
|
35
34
|
* @property {number} [pageNo] - Page Number
|
|
36
35
|
* @property {number} [pageSize] - Page Size
|
|
37
|
-
* @property {
|
|
36
|
+
* @property {string} [extensionId] - Extension_id
|
|
38
37
|
*/
|
|
39
38
|
/**
|
|
40
39
|
* @typedef GetSubscribersByExtensionIdParam
|
|
41
40
|
* @property {number} [pageNo] - Page Number
|
|
42
41
|
* @property {number} [pageSize] - Page Size
|
|
43
|
-
* @property {
|
|
44
|
-
* is to be initiated.
|
|
42
|
+
* @property {string} extensionId - Extension id
|
|
45
43
|
*/
|
|
46
44
|
/** @typedef ManualRetryCancelParam */
|
|
47
45
|
/**
|
|
@@ -120,8 +118,7 @@ type GetReportFiltersParam = {
|
|
|
120
118
|
};
|
|
121
119
|
type GetSubscriberByIdParam = {
|
|
122
120
|
/**
|
|
123
|
-
* -
|
|
124
|
-
* retry is to be initiated.
|
|
121
|
+
* - Subscriber id
|
|
125
122
|
*/
|
|
126
123
|
subscriberId: number;
|
|
127
124
|
};
|
|
@@ -137,7 +134,7 @@ type GetSubscribersByCompanyParam = {
|
|
|
137
134
|
/**
|
|
138
135
|
* - Extension_id
|
|
139
136
|
*/
|
|
140
|
-
extensionId?:
|
|
137
|
+
extensionId?: string;
|
|
141
138
|
};
|
|
142
139
|
type GetSubscribersByExtensionIdParam = {
|
|
143
140
|
/**
|
|
@@ -149,10 +146,9 @@ type GetSubscribersByExtensionIdParam = {
|
|
|
149
146
|
*/
|
|
150
147
|
pageSize?: number;
|
|
151
148
|
/**
|
|
152
|
-
* -
|
|
153
|
-
* is to be initiated.
|
|
149
|
+
* - Extension id
|
|
154
150
|
*/
|
|
155
|
-
extensionId:
|
|
151
|
+
extensionId: string;
|
|
156
152
|
};
|
|
157
153
|
type ManualRetryOfFailedEventParam = {
|
|
158
154
|
body: WebhookPlatformModel.EventProcessRequest;
|
|
@@ -38,23 +38,21 @@ const WebhookPlatformModel = require("./WebhookPlatformModel");
|
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* @typedef GetSubscriberByIdParam
|
|
41
|
-
* @property {number} subscriberId -
|
|
42
|
-
* retry is to be initiated.
|
|
41
|
+
* @property {number} subscriberId - Subscriber id
|
|
43
42
|
*/
|
|
44
43
|
|
|
45
44
|
/**
|
|
46
45
|
* @typedef GetSubscribersByCompanyParam
|
|
47
46
|
* @property {number} [pageNo] - Page Number
|
|
48
47
|
* @property {number} [pageSize] - Page Size
|
|
49
|
-
* @property {
|
|
48
|
+
* @property {string} [extensionId] - Extension_id
|
|
50
49
|
*/
|
|
51
50
|
|
|
52
51
|
/**
|
|
53
52
|
* @typedef GetSubscribersByExtensionIdParam
|
|
54
53
|
* @property {number} [pageNo] - Page Number
|
|
55
54
|
* @property {number} [pageSize] - Page Size
|
|
56
|
-
* @property {
|
|
57
|
-
* is to be initiated.
|
|
55
|
+
* @property {string} extensionId - Extension id
|
|
58
56
|
*/
|
|
59
57
|
|
|
60
58
|
/** @typedef ManualRetryCancelParam */
|
|
@@ -144,7 +142,7 @@ class WebhookPlatformValidator {
|
|
|
144
142
|
return Joi.object({
|
|
145
143
|
pageNo: Joi.number(),
|
|
146
144
|
pageSize: Joi.number(),
|
|
147
|
-
extensionId: Joi.
|
|
145
|
+
extensionId: Joi.string().allow(""),
|
|
148
146
|
}).required();
|
|
149
147
|
}
|
|
150
148
|
|
|
@@ -153,7 +151,7 @@ class WebhookPlatformValidator {
|
|
|
153
151
|
return Joi.object({
|
|
154
152
|
pageNo: Joi.number(),
|
|
155
153
|
pageSize: Joi.number(),
|
|
156
|
-
extensionId: Joi.
|
|
154
|
+
extensionId: Joi.string().allow("").required(),
|
|
157
155
|
}).required();
|
|
158
156
|
}
|
|
159
157
|
|