@gofynd/fdk-client-javascript 1.0.1 → 1.0.2

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.
Files changed (134) hide show
  1. package/documentation/application/CART.md +251 -251
  2. package/documentation/application/CATALOG.md +414 -414
  3. package/documentation/application/CONTENT.md +15 -1
  4. package/documentation/application/ORDER.md +290 -290
  5. package/documentation/application/PAYMENT.md +255 -255
  6. package/documentation/application/POSCART.md +297 -297
  7. package/documentation/platform/CART.md +499 -499
  8. package/documentation/platform/CATALOG.md +3088 -2702
  9. package/documentation/platform/COMPANYPROFILE.md +201 -201
  10. package/documentation/platform/CONTENT.md +123 -1
  11. package/documentation/platform/ORDER.md +1233 -1158
  12. package/documentation/platform/PARTNER.md +7 -7
  13. package/documentation/platform/PAYMENT.md +83 -83
  14. package/package.json +1 -1
  15. package/sdk/application/ApplicationConfig.js +1 -1
  16. package/sdk/application/Cart/CartApplicationClient.js +619 -108
  17. package/sdk/application/Cart/CartApplicationModel.d.ts +7 -7
  18. package/sdk/application/Cart/CartApplicationModel.js +335 -335
  19. package/sdk/application/Catalog/CatalogApplicationClient.d.ts +1 -1
  20. package/sdk/application/Catalog/CatalogApplicationClient.js +730 -134
  21. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +21 -21
  22. package/sdk/application/Catalog/CatalogApplicationModel.js +547 -547
  23. package/sdk/application/Common/CommonApplicationClient.js +48 -8
  24. package/sdk/application/Communication/CommunicationApplicationClient.js +75 -14
  25. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +1 -1
  26. package/sdk/application/Configuration/ConfigurationApplicationClient.js +392 -66
  27. package/sdk/application/Content/ContentApplicationClient.js +444 -76
  28. package/sdk/application/Content/ContentApplicationModel.d.ts +1 -0
  29. package/sdk/application/Content/ContentApplicationModel.js +11 -1
  30. package/sdk/application/FileStorage/FileStorageApplicationClient.js +74 -12
  31. package/sdk/application/Lead/LeadApplicationClient.js +164 -30
  32. package/sdk/application/Logistic/LogisticApplicationClient.js +98 -16
  33. package/sdk/application/Order/OrderApplicationClient.d.ts +1 -1
  34. package/sdk/application/Order/OrderApplicationClient.js +287 -54
  35. package/sdk/application/Order/OrderApplicationModel.d.ts +19 -19
  36. package/sdk/application/Order/OrderApplicationModel.js +357 -357
  37. package/sdk/application/Payment/PaymentApplicationClient.js +961 -186
  38. package/sdk/application/Payment/PaymentApplicationModel.d.ts +3 -3
  39. package/sdk/application/Payment/PaymentApplicationModel.js +352 -352
  40. package/sdk/application/PosCart/PosCartApplicationClient.js +645 -114
  41. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +15 -15
  42. package/sdk/application/PosCart/PosCartApplicationModel.js +389 -389
  43. package/sdk/application/Rewards/RewardsApplicationClient.js +168 -28
  44. package/sdk/application/Share/ShareApplicationClient.js +157 -32
  45. package/sdk/application/Theme/ThemeApplicationClient.js +94 -16
  46. package/sdk/application/User/UserApplicationClient.js +806 -148
  47. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.d.ts +16 -8
  48. package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +191 -34
  49. package/sdk/platform/Analytics/AnalyticsPlatformClient.d.ts +8 -4
  50. package/sdk/platform/Analytics/AnalyticsPlatformClient.js +103 -16
  51. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
  52. package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +103 -16
  53. package/sdk/platform/Billing/BillingPlatformClient.d.ts +24 -12
  54. package/sdk/platform/Billing/BillingPlatformClient.js +299 -54
  55. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +34 -17
  56. package/sdk/platform/Cart/CartPlatformApplicationClient.js +409 -72
  57. package/sdk/platform/Cart/CartPlatformModel.d.ts +35 -35
  58. package/sdk/platform/Cart/CartPlatformModel.js +617 -617
  59. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +167 -114
  60. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +1562 -453
  61. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +8 -8
  62. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +39 -39
  63. package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +314 -196
  64. package/sdk/platform/Catalog/CatalogPlatformClient.js +2459 -718
  65. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +103 -94
  66. package/sdk/platform/Catalog/CatalogPlatformModel.js +2063 -1797
  67. package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +17 -15
  68. package/sdk/platform/Catalog/CatalogPlatformValidator.js +95 -76
  69. package/sdk/platform/Common/CommonPlatformClient.d.ts +4 -2
  70. package/sdk/platform/Common/CommonPlatformClient.js +51 -8
  71. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +80 -40
  72. package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +1000 -168
  73. package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
  74. package/sdk/platform/Communication/CommunicationPlatformClient.js +28 -4
  75. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +27 -14
  76. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +335 -54
  77. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +10 -10
  78. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +278 -278
  79. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +56 -28
  80. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +702 -118
  81. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
  82. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +457 -82
  83. package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +148 -67
  84. package/sdk/platform/Content/ContentPlatformApplicationClient.js +1724 -284
  85. package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -0
  86. package/sdk/platform/Content/ContentPlatformApplicationValidator.js +7 -0
  87. package/sdk/platform/Content/ContentPlatformModel.d.ts +4 -0
  88. package/sdk/platform/Content/ContentPlatformModel.js +43 -1
  89. package/sdk/platform/Discount/DiscountPlatformClient.d.ts +21 -10
  90. package/sdk/platform/Discount/DiscountPlatformClient.js +270 -44
  91. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +8 -4
  92. package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +102 -16
  93. package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +12 -6
  94. package/sdk/platform/FileStorage/FileStoragePlatformClient.js +150 -24
  95. package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +27 -14
  96. package/sdk/platform/Inventory/InventoryPlatformClient.js +316 -52
  97. package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +26 -13
  98. package/sdk/platform/Lead/LeadPlatformApplicationClient.js +311 -52
  99. package/sdk/platform/Lead/LeadPlatformClient.d.ts +22 -11
  100. package/sdk/platform/Lead/LeadPlatformClient.js +266 -44
  101. package/sdk/platform/OAuthClient.js +8 -8
  102. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +6 -3
  103. package/sdk/platform/Order/OrderPlatformApplicationClient.js +78 -14
  104. package/sdk/platform/Order/OrderPlatformClient.d.ts +95 -43
  105. package/sdk/platform/Order/OrderPlatformClient.js +1062 -180
  106. package/sdk/platform/Order/OrderPlatformModel.d.ts +64 -60
  107. package/sdk/platform/Order/OrderPlatformModel.js +1481 -1425
  108. package/sdk/platform/Order/OrderPlatformValidator.js +5 -0
  109. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -2
  110. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +52 -8
  111. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -1
  112. package/sdk/platform/Partner/PartnerPlatformModel.js +8 -8
  113. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +22 -11
  114. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +287 -56
  115. package/sdk/platform/Payment/PaymentPlatformClient.d.ts +21 -11
  116. package/sdk/platform/Payment/PaymentPlatformClient.js +263 -48
  117. package/sdk/platform/Payment/PaymentPlatformModel.js +122 -122
  118. package/sdk/platform/PlatformApplicationClient.d.ts +2959 -2787
  119. package/sdk/platform/PlatformApplicationClient.js +3420 -3212
  120. package/sdk/platform/PlatformClient.d.ts +2959 -2787
  121. package/sdk/platform/PlatformClient.js +3420 -3212
  122. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +26 -13
  123. package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +308 -54
  124. package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +8 -4
  125. package/sdk/platform/Share/SharePlatformApplicationClient.js +94 -16
  126. package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +47 -23
  127. package/sdk/platform/Theme/ThemePlatformApplicationClient.js +571 -96
  128. package/sdk/platform/User/UserPlatformApplicationClient.d.ts +24 -12
  129. package/sdk/platform/User/UserPlatformApplicationClient.js +296 -48
  130. package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +12 -6
  131. package/sdk/platform/Webhook/WebhookPlatformClient.js +157 -30
  132. package/sdk/public/Configuration/ConfigurationPublicClient.js +51 -8
  133. package/sdk/public/Inventory/InventoryPublicClient.js +149 -26
  134. package/sdk/public/Webhook/WebhookPublicClient.js +51 -10
@@ -5,6 +5,8 @@ class OrderValidator {
5
5
  static getShipments() {
6
6
  return Joi.object({
7
7
  lane: Joi.string().allow(""),
8
+ bagStatus: Joi.string().allow(""),
9
+ statusOverrideLane: Joi.boolean(),
8
10
  searchType: Joi.string().allow(""),
9
11
  searchValue: Joi.string().allow(""),
10
12
  searchId: Joi.string().allow(""),
@@ -18,11 +20,14 @@ class OrderValidator {
18
20
  pageNo: Joi.number(),
19
21
  pageSize: Joi.number(),
20
22
  isPrioritySort: Joi.boolean(),
23
+ fetchActiveShipment: Joi.boolean(),
21
24
  excludeLockedShipments: Joi.boolean(),
22
25
  paymentMethods: Joi.string().allow(""),
23
26
  channelShipmentId: Joi.string().allow(""),
24
27
  channelOrderId: Joi.string().allow(""),
25
28
  customMeta: Joi.string().allow(""),
29
+ orderingChannel: Joi.string().allow(""),
30
+ companyAffiliateTag: Joi.string().allow(""),
26
31
  }).required();
27
32
  }
28
33
 
@@ -8,23 +8,25 @@ declare class Partner {
8
8
  * @param {string} arg.extensionId - Extension id for which proxy URL will
9
9
  * be generated
10
10
  * @param {AddProxyReq} arg.body
11
+ * @returns {Promise<AddProxyResponse>} - Success response
11
12
  * @summary: Create proxy URL for the external URL
12
13
  * @description: Use this API to generate proxy URL for the external URL
13
14
  */
14
15
  addProxyPath({ extensionId, body }?: {
15
16
  extensionId: string;
16
17
  body: AddProxyReq;
17
- }): Promise<any>;
18
+ }): Promise<AddProxyResponse>;
18
19
  /**
19
20
  * @param {Object} arg - Arg object.
20
21
  * @param {string} arg.extensionId - Extension id for which proxy URL needs
21
22
  * to be removed
22
23
  * @param {string} arg.attachedPath - Attachaed path slug
24
+ * @returns {Promise<RemoveProxyResponse>} - Success response
23
25
  * @summary: Remove proxy URL for the external URL
24
26
  * @description: Use this API to remove the proxy URL which is already generated for the external URL
25
27
  */
26
28
  removeProxyPath({ extensionId, attachedPath }?: {
27
29
  extensionId: string;
28
30
  attachedPath: string;
29
- }): Promise<any>;
31
+ }): Promise<RemoveProxyResponse>;
30
32
  }
@@ -2,6 +2,8 @@ const Paginator = require("../../common/Paginator");
2
2
  const PlatformAPIClient = require("../PlatformAPIClient");
3
3
  const { FDKClientValidationError } = require("../../common/FDKError");
4
4
  const PartnerValidator = require("./PartnerPlatformApplicationValidator");
5
+ const PartnerModel = require("./PartnerPlatformModel");
6
+ const { Logger } = require("./../../common/Logger");
5
7
 
6
8
  class Partner {
7
9
  constructor(config, applicationId) {
@@ -14,10 +16,11 @@ class Partner {
14
16
  * @param {string} arg.extensionId - Extension id for which proxy URL will
15
17
  * be generated
16
18
  * @param {AddProxyReq} arg.body
19
+ * @returns {Promise<AddProxyResponse>} - Success response
17
20
  * @summary: Create proxy URL for the external URL
18
21
  * @description: Use this API to generate proxy URL for the external URL
19
22
  */
20
- addProxyPath({ extensionId, body } = {}) {
23
+ async addProxyPath({ extensionId, body } = {}) {
21
24
  const { error } = PartnerValidator.addProxyPath().validate(
22
25
  {
23
26
  extensionId,
@@ -38,19 +41,39 @@ class Partner {
38
41
  { abortEarly: false, allowUnknown: false }
39
42
  );
40
43
  if (warrning) {
41
- console.log("Parameter Validation warrnings for addProxyPath");
42
- console.log(warrning);
44
+ Logger({
45
+ level: "WARN",
46
+ message: "Parameter Validation warrnings for addProxyPath",
47
+ });
48
+ Logger({ level: "WARN", message: warrning });
43
49
  }
44
50
 
45
51
  const query_params = {};
46
52
 
47
- return PlatformAPIClient.execute(
53
+ const response = await PlatformAPIClient.execute(
48
54
  this.config,
49
55
  "post",
50
56
  `/service/platform/partners/v1.0/company/${this.config.companyId}/application/${this.applicationId}/proxy/${extensionId}`,
51
57
  query_params,
52
58
  body
53
59
  );
60
+
61
+ const {
62
+ error: res_error,
63
+ } = PartnerModel.AddProxyResponse().validate(response, {
64
+ abortEarly: false,
65
+ allowUnknown: false,
66
+ });
67
+
68
+ if (res_error) {
69
+ Logger({
70
+ level: "WARN",
71
+ message: "Response Validation Warnnings for addProxyPath",
72
+ });
73
+ Logger({ level: "WARN", message: res_error });
74
+ }
75
+
76
+ return response;
54
77
  }
55
78
 
56
79
  /**
@@ -58,10 +81,11 @@ class Partner {
58
81
  * @param {string} arg.extensionId - Extension id for which proxy URL needs
59
82
  * to be removed
60
83
  * @param {string} arg.attachedPath - Attachaed path slug
84
+ * @returns {Promise<RemoveProxyResponse>} - Success response
61
85
  * @summary: Remove proxy URL for the external URL
62
86
  * @description: Use this API to remove the proxy URL which is already generated for the external URL
63
87
  */
64
- removeProxyPath({ extensionId, attachedPath } = {}) {
88
+ async removeProxyPath({ extensionId, attachedPath } = {}) {
65
89
  const { error } = PartnerValidator.removeProxyPath().validate(
66
90
  {
67
91
  extensionId,
@@ -82,19 +106,39 @@ class Partner {
82
106
  { abortEarly: false, allowUnknown: false }
83
107
  );
84
108
  if (warrning) {
85
- console.log("Parameter Validation warrnings for removeProxyPath");
86
- console.log(warrning);
109
+ Logger({
110
+ level: "WARN",
111
+ message: "Parameter Validation warrnings for removeProxyPath",
112
+ });
113
+ Logger({ level: "WARN", message: warrning });
87
114
  }
88
115
 
89
116
  const query_params = {};
90
117
 
91
- return PlatformAPIClient.execute(
118
+ const response = await PlatformAPIClient.execute(
92
119
  this.config,
93
120
  "delete",
94
121
  `/service/platform/partners/v1.0/company/${this.config.companyId}/application/${this.applicationId}/proxy/${extensionId}/${attachedPath}`,
95
122
  query_params,
96
123
  undefined
97
124
  );
125
+
126
+ const {
127
+ error: res_error,
128
+ } = PartnerModel.RemoveProxyResponse().validate(response, {
129
+ abortEarly: false,
130
+ allowUnknown: false,
131
+ });
132
+
133
+ if (res_error) {
134
+ Logger({
135
+ level: "WARN",
136
+ message: "Response Validation Warnnings for removeProxyPath",
137
+ });
138
+ Logger({ level: "WARN", message: res_error });
139
+ }
140
+
141
+ return response;
98
142
  }
99
143
  }
100
144
  module.exports = Partner;
@@ -2,6 +2,6 @@ export = PartnerModel;
2
2
  declare class PartnerModel {
3
3
  static AddProxyReq(): any;
4
4
  static AddProxyResponse(): any;
5
- static APIError(): any;
6
5
  static RemoveProxyResponse(): any;
6
+ static APIError(): any;
7
7
  }
@@ -29,6 +29,14 @@ class PartnerModel {
29
29
  });
30
30
  }
31
31
 
32
+ static RemoveProxyResponse() {
33
+ return Joi.object({
34
+ message: Joi.string().allow(""),
35
+
36
+ data: Joi.any(),
37
+ });
38
+ }
39
+
32
40
  static APIError() {
33
41
  return Joi.object({
34
42
  code: Joi.string().allow(""),
@@ -42,13 +50,5 @@ class PartnerModel {
42
50
  meta: Joi.any(),
43
51
  });
44
52
  }
45
-
46
- static RemoveProxyResponse() {
47
- return Joi.object({
48
- message: Joi.string().allow(""),
49
-
50
- data: Joi.any(),
51
- });
52
- }
53
53
  }
54
54
  module.exports = PartnerModel;
@@ -5,104 +5,115 @@ declare class Payment {
5
5
  applicationId: any;
6
6
  /**
7
7
  * @param {Object} arg - Arg object.
8
+ * @returns {Promise<PaymentGatewayConfigResponse>} - Success response
8
9
  * @summary: Get All Brand Payment Gateway Config Secret
9
10
  * @description: Get All Brand Payment Gateway Config Secret
10
11
  */
11
- getBrandPaymentGatewayConfig({}?: any): Promise<any>;
12
+ getBrandPaymentGatewayConfig({}?: any): Promise<PaymentGatewayConfigResponse>;
12
13
  /**
13
14
  * @param {Object} arg - Arg object.
14
15
  * @param {PaymentGatewayConfigRequest} arg.body
16
+ * @returns {Promise<PaymentGatewayToBeReviewed>} - Success response
15
17
  * @summary: Save Config Secret For Brand Payment Gateway
16
18
  * @description: Save Config Secret For Brand Payment Gateway
17
19
  */
18
20
  saveBrandPaymentGatewayConfig({ body }?: {
19
21
  body: PaymentGatewayConfigRequest;
20
- }): Promise<any>;
22
+ }): Promise<PaymentGatewayToBeReviewed>;
21
23
  /**
22
24
  * @param {Object} arg - Arg object.
23
25
  * @param {PaymentGatewayConfigRequest} arg.body
26
+ * @returns {Promise<PaymentGatewayToBeReviewed>} - Success response
24
27
  * @summary: Save Config Secret For Brand Payment Gateway
25
28
  * @description: Save Config Secret For Brand Payment Gateway
26
29
  */
27
30
  updateBrandPaymentGatewayConfig({ body }?: {
28
31
  body: PaymentGatewayConfigRequest;
29
- }): Promise<any>;
32
+ }): Promise<PaymentGatewayToBeReviewed>;
30
33
  /**
31
34
  * @param {Object} arg - Arg object.
32
35
  * @param {boolean} arg.refresh -
33
36
  * @param {string} arg.requestType -
37
+ * @returns {Promise<PaymentOptionsResponse>} - Success response
34
38
  * @summary: Get All Valid Payment Options
35
39
  * @description: Use this API to get Get All Valid Payment Options for making payment
36
40
  */
37
41
  getPaymentModeRoutes({ refresh, requestType }?: {
38
42
  refresh: boolean;
39
43
  requestType: string;
40
- }): Promise<any>;
44
+ }): Promise<PaymentOptionsResponse>;
41
45
  /**
42
46
  * @param {Object} arg - Arg object.
43
47
  * @param {string} arg.orderId -
44
48
  * @param {string} [arg.requestHash] -
49
+ * @returns {Promise<RefundAccountResponse>} - Success response
45
50
  * @summary: Get bank details
46
51
  * @description: Use this API to get saved bank details for returned/cancelled order using order id.
47
52
  */
48
53
  getBankAccountDetailsOpenAPI({ orderId, requestHash }?: {
49
54
  orderId: string;
50
55
  requestHash?: string;
51
- }): Promise<any>;
56
+ }): Promise<RefundAccountResponse>;
52
57
  /**
53
58
  * @param {Object} arg - Arg object.
54
59
  * @param {AddBeneficiaryDetailsOTPRequest} arg.body
60
+ * @returns {Promise<RefundAccountResponse>} - Success response
55
61
  * @summary: Save bank details for cancelled/returned order
56
62
  * @description: Use this API to save bank details for returned/cancelled order to refund amount in his account.
57
63
  */
58
64
  addRefundBankAccountUsingOTP({ body }?: {
59
65
  body: AddBeneficiaryDetailsOTPRequest;
60
- }): Promise<any>;
66
+ }): Promise<RefundAccountResponse>;
61
67
  /**
62
68
  * @param {Object} arg - Arg object.
63
69
  * @param {string} arg.orderId -
70
+ * @returns {Promise<OrderBeneficiaryResponse>} - Success response
64
71
  * @summary: List Order Beneficiary
65
72
  * @description: Get all active beneficiary details added by the user for refund
66
73
  */
67
74
  getUserOrderBeneficiaries({ orderId }?: {
68
75
  orderId: string;
69
- }): Promise<any>;
76
+ }): Promise<OrderBeneficiaryResponse>;
70
77
  /**
71
78
  * @param {Object} arg - Arg object.
72
79
  * @param {string} arg.orderId -
80
+ * @returns {Promise<OrderBeneficiaryResponse>} - Success response
73
81
  * @summary: List User Beneficiary
74
82
  * @description: Get all active beneficiary details added by the user for refund
75
83
  */
76
84
  getUserBeneficiaries({ orderId }?: {
77
85
  orderId: string;
78
- }): Promise<any>;
86
+ }): Promise<OrderBeneficiaryResponse>;
79
87
  /**
80
88
  * @param {Object} arg - Arg object.
81
89
  * @param {PaymentConfirmationRequest} arg.body
90
+ * @returns {Promise<PaymentConfirmationResponse>} - Success response
82
91
  * @summary: Confirm payment after successful payment from payment gateway
83
92
  * @description: Use this API to confirm payment after payment gateway accepted payment.
84
93
  */
85
94
  confirmPayment({ body }?: {
86
95
  body: PaymentConfirmationRequest;
87
- }): Promise<any>;
96
+ }): Promise<PaymentConfirmationResponse>;
88
97
  /**
89
98
  * @param {Object} arg - Arg object.
90
99
  * @param {string} arg.merchantUserId -
91
100
  * @param {string} arg.mobileNo -
101
+ * @returns {Promise<GetUserCODLimitResponse>} - Success response
92
102
  * @summary: Get COD limit for user
93
103
  * @description: Use this API to get user cod limit and reamining limit for the payment
94
104
  */
95
105
  getUserCODlimitRoutes({ merchantUserId, mobileNo }?: {
96
106
  merchantUserId: string;
97
107
  mobileNo: string;
98
- }): Promise<any>;
108
+ }): Promise<GetUserCODLimitResponse>;
99
109
  /**
100
110
  * @param {Object} arg - Arg object.
101
111
  * @param {SetCODForUserRequest} arg.body
112
+ * @returns {Promise<SetCODOptionResponse>} - Success response
102
113
  * @summary: Set COD option for user for payment
103
114
  * @description: Use this API to set cod option as true or false for the payment
104
115
  */
105
116
  setUserCODlimitRoutes({ body }?: {
106
117
  body: SetCODForUserRequest;
107
- }): Promise<any>;
118
+ }): Promise<SetCODOptionResponse>;
108
119
  }