@gofynd/fdk-client-javascript 0.1.35
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/.github/workflows/on_create_release.yml +23 -0
- package/.github/workflows/on_merge_main.yml +38 -0
- package/.github/workflows/on_pull_request.yml +35 -0
- package/.prettierrc +5 -0
- package/LICENSE +21 -0
- package/README.md +118 -0
- package/application.d.ts +3 -0
- package/application.js +6 -0
- package/common.d.ts +4 -0
- package/common.js +9 -0
- package/documentation/application/CART.md +7290 -0
- package/documentation/application/CATALOG.md +9570 -0
- package/documentation/application/COMMON.md +448 -0
- package/documentation/application/COMMUNICATION.md +463 -0
- package/documentation/application/CONFIGURATION.md +2902 -0
- package/documentation/application/CONTENT.md +3350 -0
- package/documentation/application/FILESTORAGE.md +491 -0
- package/documentation/application/LEAD.md +1891 -0
- package/documentation/application/LOGISTIC.md +439 -0
- package/documentation/application/ORDER.md +3428 -0
- package/documentation/application/PAYMENT.md +5035 -0
- package/documentation/application/POSCART.md +7889 -0
- package/documentation/application/README.md +21 -0
- package/documentation/application/REWARDS.md +714 -0
- package/documentation/application/SHARE.md +729 -0
- package/documentation/application/THEME.md +5796 -0
- package/documentation/application/USER.md +4326 -0
- package/documentation/platform/ANALYTICS.md +1150 -0
- package/documentation/platform/AUDITTRAIL.md +572 -0
- package/documentation/platform/BILLING.md +2396 -0
- package/documentation/platform/CART.md +5539 -0
- package/documentation/platform/CATALOG.md +21624 -0
- package/documentation/platform/COMMON.md +448 -0
- package/documentation/platform/COMMUNICATION.md +5714 -0
- package/documentation/platform/COMPANYPROFILE.md +2141 -0
- package/documentation/platform/CONFIGURATION.md +7335 -0
- package/documentation/platform/CONTENT.md +8989 -0
- package/documentation/platform/DISCOUNT.md +773 -0
- package/documentation/platform/FILESTORAGE.md +994 -0
- package/documentation/platform/INVENTORY.md +1775 -0
- package/documentation/platform/LEAD.md +4736 -0
- package/documentation/platform/ORDER.md +3764 -0
- package/documentation/platform/PARTNER.md +216 -0
- package/documentation/platform/PAYMENT.md +3444 -0
- package/documentation/platform/README.md +27 -0
- package/documentation/platform/REWARDS.md +871 -0
- package/documentation/platform/SHARE.md +602 -0
- package/documentation/platform/THEME.md +35725 -0
- package/documentation/platform/USER.md +2305 -0
- package/documentation/platform/WEBHOOK.md +587 -0
- package/documentation/public/CONFIGURATION.md +448 -0
- package/documentation/public/INVENTORY.md +686 -0
- package/documentation/public/WEBHOOK.md +348 -0
- package/index.d.ts +10 -0
- package/index.js +18 -0
- package/jest.config.d.ts +4 -0
- package/jest.config.js +6 -0
- package/package.json +35 -0
- package/platform.d.ts +3 -0
- package/platform.js +6 -0
- package/public.d.ts +3 -0
- package/public.js +6 -0
- package/sdk/application/ApplicationAPIClient.d.ts +11 -0
- package/sdk/application/ApplicationAPIClient.js +44 -0
- package/sdk/application/ApplicationClient.d.ts +40 -0
- package/sdk/application/ApplicationClient.js +84 -0
- package/sdk/application/ApplicationConfig.d.ts +19 -0
- package/sdk/application/ApplicationConfig.js +55 -0
- package/sdk/application/ApplicationModels.d.ts +826 -0
- package/sdk/application/ApplicationModels.js +10474 -0
- package/sdk/application/client/CartApplicationClient.d.ts +432 -0
- package/sdk/application/client/CartApplicationClient.js +1066 -0
- package/sdk/application/client/CatalogApplicationClient.d.ts +694 -0
- package/sdk/application/client/CatalogApplicationClient.js +1629 -0
- package/sdk/application/client/CommonApplicationClient.d.ts +38 -0
- package/sdk/application/client/CommonApplicationClient.js +105 -0
- package/sdk/application/client/CommunicationApplicationClient.d.ts +39 -0
- package/sdk/application/client/CommunicationApplicationClient.js +131 -0
- package/sdk/application/client/ConfigurationApplicationClient.d.ts +210 -0
- package/sdk/application/client/ConfigurationApplicationClient.js +649 -0
- package/sdk/application/client/ContentApplicationClient.d.ts +256 -0
- package/sdk/application/client/ContentApplicationClient.js +785 -0
- package/sdk/application/client/FileStorageApplicationClient.d.ts +88 -0
- package/sdk/application/client/FileStorageApplicationClient.js +214 -0
- package/sdk/application/client/LeadApplicationClient.d.ts +90 -0
- package/sdk/application/client/LeadApplicationClient.js +264 -0
- package/sdk/application/client/LogisticApplicationClient.d.ts +42 -0
- package/sdk/application/client/LogisticApplicationClient.js +128 -0
- package/sdk/application/client/OrderApplicationClient.d.ts +190 -0
- package/sdk/application/client/OrderApplicationClient.js +479 -0
- package/sdk/application/client/PaymentApplicationClient.d.ts +454 -0
- package/sdk/application/client/PaymentApplicationClient.js +1378 -0
- package/sdk/application/client/PosCartApplicationClient.d.ts +449 -0
- package/sdk/application/client/PosCartApplicationClient.js +1123 -0
- package/sdk/application/client/RewardsApplicationClient.d.ts +93 -0
- package/sdk/application/client/RewardsApplicationClient.js +293 -0
- package/sdk/application/client/ShareApplicationClient.d.ts +87 -0
- package/sdk/application/client/ShareApplicationClient.js +268 -0
- package/sdk/application/client/ThemeApplicationClient.d.ts +52 -0
- package/sdk/application/client/ThemeApplicationClient.js +161 -0
- package/sdk/application/client/UserApplicationClient.d.ts +446 -0
- package/sdk/application/client/UserApplicationClient.js +1275 -0
- package/sdk/application/constructUrl.d.ts +5 -0
- package/sdk/application/constructUrl.js +13 -0
- package/sdk/application/index.d.ts +2 -0
- package/sdk/application/index.js +4 -0
- package/sdk/application/models/CartValidator.d.ts +29 -0
- package/sdk/application/models/CartValidator.js +223 -0
- package/sdk/application/models/CatalogValidator.d.ts +33 -0
- package/sdk/application/models/CatalogValidator.js +233 -0
- package/sdk/application/models/CommonValidator.d.ts +5 -0
- package/sdk/application/models/CommonValidator.js +18 -0
- package/sdk/application/models/CommunicationValidator.d.ts +6 -0
- package/sdk/application/models/CommunicationValidator.js +20 -0
- package/sdk/application/models/ConfigurationValidator.d.ts +19 -0
- package/sdk/application/models/ConfigurationValidator.js +88 -0
- package/sdk/application/models/ContentValidator.d.ts +22 -0
- package/sdk/application/models/ContentValidator.js +106 -0
- package/sdk/application/models/FileStorageValidator.d.ts +6 -0
- package/sdk/application/models/FileStorageValidator.js +24 -0
- package/sdk/application/models/LeadValidator.d.ts +10 -0
- package/sdk/application/models/LeadValidator.js +48 -0
- package/sdk/application/models/LogisticValidator.d.ts +6 -0
- package/sdk/application/models/LogisticValidator.js +22 -0
- package/sdk/application/models/OrderValidator.d.ts +15 -0
- package/sdk/application/models/OrderValidator.js +87 -0
- package/sdk/application/models/PaymentValidator.d.ts +40 -0
- package/sdk/application/models/PaymentValidator.js +235 -0
- package/sdk/application/models/PosCartValidator.d.ts +30 -0
- package/sdk/application/models/PosCartValidator.js +232 -0
- package/sdk/application/models/RewardsValidator.d.ts +10 -0
- package/sdk/application/models/RewardsValidator.js +43 -0
- package/sdk/application/models/ShareValidator.d.ts +10 -0
- package/sdk/application/models/ShareValidator.js +44 -0
- package/sdk/application/models/ThemeValidator.d.ts +7 -0
- package/sdk/application/models/ThemeValidator.js +27 -0
- package/sdk/application/models/UserValidator.d.ts +38 -0
- package/sdk/application/models/UserValidator.js +233 -0
- package/sdk/common/AxiosHelper.d.ts +1 -0
- package/sdk/common/AxiosHelper.js +141 -0
- package/sdk/common/Constant.d.ts +294 -0
- package/sdk/common/Constant.js +332 -0
- package/sdk/common/FDKError.d.ts +26 -0
- package/sdk/common/FDKError.js +51 -0
- package/sdk/common/Logger.d.ts +2 -0
- package/sdk/common/Logger.js +85 -0
- package/sdk/common/Paginator.d.ts +16 -0
- package/sdk/common/Paginator.js +26 -0
- package/sdk/common/RequestSigner.d.ts +1 -0
- package/sdk/common/RequestSigner.js +306 -0
- package/sdk/common/Utility.d.ts +9 -0
- package/sdk/common/Utility.js +86 -0
- package/sdk/common/utils.d.ts +14 -0
- package/sdk/common/utils.js +165 -0
- package/sdk/platform/OAuthClient.d.ts +26 -0
- package/sdk/platform/OAuthClient.js +221 -0
- package/sdk/platform/PlatformAPIClient.d.ts +12 -0
- package/sdk/platform/PlatformAPIClient.js +43 -0
- package/sdk/platform/PlatformApplicationClient.d.ts +24398 -0
- package/sdk/platform/PlatformApplicationClient.js +23185 -0
- package/sdk/platform/PlatformApplicationModels.d.ts +333 -0
- package/sdk/platform/PlatformApplicationModels.js +21262 -0
- package/sdk/platform/PlatformClient.d.ts +9535 -0
- package/sdk/platform/PlatformClient.js +12336 -0
- package/sdk/platform/PlatformConfig.d.ts +29 -0
- package/sdk/platform/PlatformConfig.js +36 -0
- package/sdk/platform/PlatformModels.d.ts +1396 -0
- package/sdk/platform/PlatformModels.js +19222 -0
- package/sdk/platform/client/AnalyticsPlatformClient.d.ts +84 -0
- package/sdk/platform/client/AnalyticsPlatformClient.js +215 -0
- package/sdk/platform/client/AuditTrailPlatformClient.d.ts +38 -0
- package/sdk/platform/client/AuditTrailPlatformClient.js +133 -0
- package/sdk/platform/client/BillingPlatformClient.d.ts +109 -0
- package/sdk/platform/client/BillingPlatformClient.js +381 -0
- package/sdk/platform/client/CatalogPlatformClient.d.ts +806 -0
- package/sdk/platform/client/CatalogPlatformClient.js +2462 -0
- package/sdk/platform/client/CommonPlatformClient.d.ts +30 -0
- package/sdk/platform/client/CommonPlatformClient.js +84 -0
- package/sdk/platform/client/CommunicationPlatformClient.d.ts +26 -0
- package/sdk/platform/client/CommunicationPlatformClient.js +72 -0
- package/sdk/platform/client/CompanyProfilePlatformClient.d.ts +182 -0
- package/sdk/platform/client/CompanyProfilePlatformClient.js +540 -0
- package/sdk/platform/client/ConfigurationPlatformClient.d.ts +277 -0
- package/sdk/platform/client/ConfigurationPlatformClient.js +806 -0
- package/sdk/platform/client/DiscountPlatformClient.d.ts +118 -0
- package/sdk/platform/client/DiscountPlatformClient.js +364 -0
- package/sdk/platform/client/FileStoragePlatformClient.d.ts +111 -0
- package/sdk/platform/client/FileStoragePlatformClient.js +268 -0
- package/sdk/platform/client/InventoryPlatformClient.d.ts +125 -0
- package/sdk/platform/client/InventoryPlatformClient.js +409 -0
- package/sdk/platform/client/LeadPlatformClient.d.ts +150 -0
- package/sdk/platform/client/LeadPlatformClient.js +439 -0
- package/sdk/platform/client/OrderPlatformClient.d.ts +190 -0
- package/sdk/platform/client/OrderPlatformClient.js +521 -0
- package/sdk/platform/client/PaymentPlatformClient.d.ts +98 -0
- package/sdk/platform/client/PaymentPlatformClient.js +331 -0
- package/sdk/platform/client/WebhookPlatformClient.d.ts +64 -0
- package/sdk/platform/client/WebhookPlatformClient.js +207 -0
- package/sdk/platform/index.d.ts +2 -0
- package/sdk/platform/index.js +4 -0
- package/sdk/platform/models/AnalyticsValidator.d.ts +7 -0
- package/sdk/platform/models/AnalyticsValidator.js +36 -0
- package/sdk/platform/models/AuditTrailValidator.d.ts +7 -0
- package/sdk/platform/models/AuditTrailValidator.js +26 -0
- package/sdk/platform/models/BillingValidator.d.ts +15 -0
- package/sdk/platform/models/BillingValidator.js +72 -0
- package/sdk/platform/models/CartValidator.d.ts +0 -0
- package/sdk/platform/models/CartValidator.js +0 -0
- package/sdk/platform/models/CatalogValidator.d.ts +74 -0
- package/sdk/platform/models/CatalogValidator.js +484 -0
- package/sdk/platform/models/CommonValidator.d.ts +5 -0
- package/sdk/platform/models/CommonValidator.js +18 -0
- package/sdk/platform/models/CommunicationValidator.d.ts +4 -0
- package/sdk/platform/models/CommunicationValidator.js +11 -0
- package/sdk/platform/models/CompanyProfileValidator.d.ts +17 -0
- package/sdk/platform/models/CompanyProfileValidator.js +93 -0
- package/sdk/platform/models/ConfigurationValidator.d.ts +21 -0
- package/sdk/platform/models/ConfigurationValidator.js +134 -0
- package/sdk/platform/models/ContentValidator.d.ts +0 -0
- package/sdk/platform/models/ContentValidator.js +0 -0
- package/sdk/platform/models/DiscountValidator.d.ts +13 -0
- package/sdk/platform/models/DiscountValidator.js +75 -0
- package/sdk/platform/models/FileStorageValidator.d.ts +9 -0
- package/sdk/platform/models/FileStorageValidator.js +44 -0
- package/sdk/platform/models/InventoryValidator.d.ts +15 -0
- package/sdk/platform/models/InventoryValidator.js +81 -0
- package/sdk/platform/models/LeadValidator.d.ts +14 -0
- package/sdk/platform/models/LeadValidator.js +78 -0
- package/sdk/platform/models/OrderValidator.d.ts +14 -0
- package/sdk/platform/models/OrderValidator.js +110 -0
- package/sdk/platform/models/PartnerValidator.d.ts +0 -0
- package/sdk/platform/models/PartnerValidator.js +0 -0
- package/sdk/platform/models/PaymentValidator.d.ts +13 -0
- package/sdk/platform/models/PaymentValidator.js +65 -0
- package/sdk/platform/models/RewardsValidator.d.ts +0 -0
- package/sdk/platform/models/RewardsValidator.js +0 -0
- package/sdk/platform/models/ShareValidator.d.ts +0 -0
- package/sdk/platform/models/ShareValidator.js +0 -0
- package/sdk/platform/models/ThemeValidator.d.ts +0 -0
- package/sdk/platform/models/ThemeValidator.js +0 -0
- package/sdk/platform/models/UserValidator.d.ts +0 -0
- package/sdk/platform/models/UserValidator.js +0 -0
- package/sdk/platform/models/WebhookValidator.d.ts +9 -0
- package/sdk/platform/models/WebhookValidator.js +42 -0
- package/sdk/public/PublicAPIClient.d.ts +11 -0
- package/sdk/public/PublicAPIClient.js +38 -0
- package/sdk/public/PublicClient.d.ts +12 -0
- package/sdk/public/PublicClient.js +24 -0
- package/sdk/public/PublicConfig.d.ts +10 -0
- package/sdk/public/PublicConfig.js +12 -0
- package/sdk/public/PublicModels.d.ts +50 -0
- package/sdk/public/PublicModels.js +712 -0
- package/sdk/public/client/ConfigurationPublicClient.d.ts +38 -0
- package/sdk/public/client/ConfigurationPublicClient.js +102 -0
- package/sdk/public/client/InventoryPublicClient.d.ts +81 -0
- package/sdk/public/client/InventoryPublicClient.js +239 -0
- package/sdk/public/client/WebhookPublicClient.d.ts +28 -0
- package/sdk/public/client/WebhookPublicClient.js +92 -0
- package/sdk/public/constructUrl.d.ts +5 -0
- package/sdk/public/constructUrl.js +13 -0
- package/sdk/public/index.d.ts +2 -0
- package/sdk/public/index.js +4 -0
- package/sdk/public/models/ConfigurationValidator.d.ts +5 -0
- package/sdk/public/models/ConfigurationValidator.js +18 -0
- package/sdk/public/models/InventoryValidator.d.ts +9 -0
- package/sdk/public/models/InventoryValidator.js +43 -0
- package/sdk/public/models/WebhookValidator.d.ts +5 -0
- package/sdk/public/models/WebhookValidator.js +14 -0
- package/tests/application/catalog.spec.js +47 -0
- package/tests/common/action-url.spec.js +35 -0
- package/tests/common/schema/action-url.json +163 -0
- package/tests/common/schema/url-action.json +667 -0
- package/tests/common/url-action.spec.js +48 -0
- package/tests/helpers/cookie.helper.js +31 -0
- package/tests/helpers/oauth.helper.js +43 -0
- package/tests/platform/catalog.spec.js +49 -0
- package/tests/public/location.spec.js +39 -0
|
@@ -0,0 +1,439 @@
|
|
|
1
|
+
const Paginator = require("../../common/Paginator");
|
|
2
|
+
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
3
|
+
const { FDKClientValidationError } = require("../../common/FDKError");
|
|
4
|
+
const LeadValidator = require("../models/LeadValidator");
|
|
5
|
+
class Lead {
|
|
6
|
+
constructor(config) {
|
|
7
|
+
this.config = config;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @param {Object} arg - Arg object.
|
|
12
|
+
* @param {boolean} [arg.items] - Decides that the reponse will contain the
|
|
13
|
+
* list of tickets
|
|
14
|
+
* @param {boolean} [arg.filters] - Decides that the reponse will contain
|
|
15
|
+
* the ticket filters
|
|
16
|
+
* @param {string} [arg.q] - Search through ticket titles and description
|
|
17
|
+
* @param {string} [arg.status] - Filter tickets on status
|
|
18
|
+
* @param {PriorityEnum} [arg.priority] - Filter tickets on priority
|
|
19
|
+
* @param {string} [arg.category] - Filter tickets on category
|
|
20
|
+
* @param {number} [arg.pageNo] - The page number to navigate through the
|
|
21
|
+
* given set of results.
|
|
22
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
23
|
+
* page. Default is 12.
|
|
24
|
+
* @summary: Gets the list of company level tickets and/or ticket filters depending on query params
|
|
25
|
+
* @description: Gets the list of company level tickets and/or ticket filters
|
|
26
|
+
*/
|
|
27
|
+
getTickets({
|
|
28
|
+
items,
|
|
29
|
+
filters,
|
|
30
|
+
q,
|
|
31
|
+
status,
|
|
32
|
+
priority,
|
|
33
|
+
category,
|
|
34
|
+
pageNo,
|
|
35
|
+
pageSize,
|
|
36
|
+
} = {}) {
|
|
37
|
+
const { error } = LeadValidator.getTickets().validate(
|
|
38
|
+
{
|
|
39
|
+
items,
|
|
40
|
+
filters,
|
|
41
|
+
q,
|
|
42
|
+
status,
|
|
43
|
+
priority,
|
|
44
|
+
category,
|
|
45
|
+
pageNo,
|
|
46
|
+
pageSize,
|
|
47
|
+
},
|
|
48
|
+
{ abortEarly: false, allowUnknown: true }
|
|
49
|
+
);
|
|
50
|
+
if (error) {
|
|
51
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const query_params = {};
|
|
55
|
+
query_params["items"] = items;
|
|
56
|
+
query_params["filters"] = filters;
|
|
57
|
+
query_params["q"] = q;
|
|
58
|
+
query_params["status"] = status;
|
|
59
|
+
query_params["priority"] = priority;
|
|
60
|
+
query_params["category"] = category;
|
|
61
|
+
query_params["page_no"] = pageNo;
|
|
62
|
+
query_params["page_size"] = pageSize;
|
|
63
|
+
|
|
64
|
+
const xHeaders = {};
|
|
65
|
+
|
|
66
|
+
return PlatformAPIClient.execute(
|
|
67
|
+
this.config,
|
|
68
|
+
"get",
|
|
69
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/ticket`,
|
|
70
|
+
query_params,
|
|
71
|
+
undefined,
|
|
72
|
+
xHeaders
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @param {Object} arg - Arg object.
|
|
78
|
+
* @param {boolean} [arg.items] - Decides that the reponse will contain the
|
|
79
|
+
* list of tickets
|
|
80
|
+
* @param {boolean} [arg.filters] - Decides that the reponse will contain
|
|
81
|
+
* the ticket filters
|
|
82
|
+
* @param {string} [arg.q] - Search through ticket titles and description
|
|
83
|
+
* @param {string} [arg.status] - Filter tickets on status
|
|
84
|
+
* @param {PriorityEnum} [arg.priority] - Filter tickets on priority
|
|
85
|
+
* @param {string} [arg.category] - Filter tickets on category
|
|
86
|
+
* @param {number} [arg.pageSize] - Number of items to retrieve in each
|
|
87
|
+
* page. Default is 12.
|
|
88
|
+
* @summary: Gets the list of company level tickets and/or ticket filters depending on query params
|
|
89
|
+
* @description: Gets the list of company level tickets and/or ticket filters
|
|
90
|
+
*/
|
|
91
|
+
getTicketsPaginator({
|
|
92
|
+
items,
|
|
93
|
+
filters,
|
|
94
|
+
q,
|
|
95
|
+
status,
|
|
96
|
+
priority,
|
|
97
|
+
category,
|
|
98
|
+
pageSize,
|
|
99
|
+
} = {}) {
|
|
100
|
+
const paginator = new Paginator();
|
|
101
|
+
const callback = async () => {
|
|
102
|
+
const pageId = paginator.nextId;
|
|
103
|
+
const pageNo = paginator.pageNo;
|
|
104
|
+
const pageType = "number";
|
|
105
|
+
const data = await this.getTickets({
|
|
106
|
+
items: items,
|
|
107
|
+
filters: filters,
|
|
108
|
+
q: q,
|
|
109
|
+
status: status,
|
|
110
|
+
priority: priority,
|
|
111
|
+
category: category,
|
|
112
|
+
pageNo: pageNo,
|
|
113
|
+
pageSize: pageSize,
|
|
114
|
+
});
|
|
115
|
+
paginator.setPaginator({
|
|
116
|
+
hasNext: data.page.has_next ? true : false,
|
|
117
|
+
nextId: data.page.next_id,
|
|
118
|
+
});
|
|
119
|
+
return data;
|
|
120
|
+
};
|
|
121
|
+
paginator.setCallback(callback);
|
|
122
|
+
return paginator;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @param {Object} arg - Arg object.
|
|
127
|
+
* @param {AddTicketPayload} arg.body
|
|
128
|
+
* @summary: Creates a company level ticket
|
|
129
|
+
* @description: Creates a company level ticket
|
|
130
|
+
*/
|
|
131
|
+
createTicket({ body } = {}) {
|
|
132
|
+
const { error } = LeadValidator.createTicket().validate(
|
|
133
|
+
{
|
|
134
|
+
body,
|
|
135
|
+
},
|
|
136
|
+
{ abortEarly: false, allowUnknown: true }
|
|
137
|
+
);
|
|
138
|
+
if (error) {
|
|
139
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const query_params = {};
|
|
143
|
+
|
|
144
|
+
const xHeaders = {};
|
|
145
|
+
|
|
146
|
+
return PlatformAPIClient.execute(
|
|
147
|
+
this.config,
|
|
148
|
+
"post",
|
|
149
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/ticket`,
|
|
150
|
+
query_params,
|
|
151
|
+
body,
|
|
152
|
+
xHeaders
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @param {Object} arg - Arg object.
|
|
158
|
+
* @param {string} arg.id - Tiket ID of the ticket to be fetched
|
|
159
|
+
* @summary: Retreives ticket details of a company level ticket with ticket ID
|
|
160
|
+
* @description: Retreives ticket details of a company level ticket
|
|
161
|
+
*/
|
|
162
|
+
getTicket({ id } = {}) {
|
|
163
|
+
const { error } = LeadValidator.getTicket().validate(
|
|
164
|
+
{
|
|
165
|
+
id,
|
|
166
|
+
},
|
|
167
|
+
{ abortEarly: false, allowUnknown: true }
|
|
168
|
+
);
|
|
169
|
+
if (error) {
|
|
170
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const query_params = {};
|
|
174
|
+
|
|
175
|
+
const xHeaders = {};
|
|
176
|
+
|
|
177
|
+
return PlatformAPIClient.execute(
|
|
178
|
+
this.config,
|
|
179
|
+
"get",
|
|
180
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/ticket/${id}`,
|
|
181
|
+
query_params,
|
|
182
|
+
undefined,
|
|
183
|
+
xHeaders
|
|
184
|
+
);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* @param {Object} arg - Arg object.
|
|
189
|
+
* @param {string} arg.id - Ticket ID of ticket to be edited
|
|
190
|
+
* @param {EditTicketPayload} arg.body
|
|
191
|
+
* @summary: Edits ticket details of a company level ticket
|
|
192
|
+
* @description: Edits ticket details of a company level ticket such as status, priority, category, tags, attachments, assigne & ticket content changes
|
|
193
|
+
*/
|
|
194
|
+
editTicket({ id, body } = {}) {
|
|
195
|
+
const { error } = LeadValidator.editTicket().validate(
|
|
196
|
+
{
|
|
197
|
+
id,
|
|
198
|
+
body,
|
|
199
|
+
},
|
|
200
|
+
{ abortEarly: false, allowUnknown: true }
|
|
201
|
+
);
|
|
202
|
+
if (error) {
|
|
203
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
const query_params = {};
|
|
207
|
+
|
|
208
|
+
const xHeaders = {};
|
|
209
|
+
|
|
210
|
+
return PlatformAPIClient.execute(
|
|
211
|
+
this.config,
|
|
212
|
+
"put",
|
|
213
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/ticket/${id}`,
|
|
214
|
+
query_params,
|
|
215
|
+
body,
|
|
216
|
+
xHeaders
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* @param {Object} arg - Arg object.
|
|
222
|
+
* @param {string} arg.id - Ticket ID for which history is created
|
|
223
|
+
* @param {TicketHistoryPayload} arg.body
|
|
224
|
+
* @summary: Create history for specific company level ticket
|
|
225
|
+
* @description: Create history for specific company level ticket, this history is seen on ticket detail page, this can be comment, log or rating.
|
|
226
|
+
*/
|
|
227
|
+
createHistory({ id, body } = {}) {
|
|
228
|
+
const { error } = LeadValidator.createHistory().validate(
|
|
229
|
+
{
|
|
230
|
+
id,
|
|
231
|
+
body,
|
|
232
|
+
},
|
|
233
|
+
{ abortEarly: false, allowUnknown: true }
|
|
234
|
+
);
|
|
235
|
+
if (error) {
|
|
236
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
const query_params = {};
|
|
240
|
+
|
|
241
|
+
const xHeaders = {};
|
|
242
|
+
|
|
243
|
+
return PlatformAPIClient.execute(
|
|
244
|
+
this.config,
|
|
245
|
+
"post",
|
|
246
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/ticket/${id}/history`,
|
|
247
|
+
query_params,
|
|
248
|
+
body,
|
|
249
|
+
xHeaders
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* @param {Object} arg - Arg object.
|
|
255
|
+
* @param {string} arg.id - Ticket ID for which history is to be fetched
|
|
256
|
+
* @summary: Gets history list for specific company level ticket
|
|
257
|
+
* @description: Gets history list for specific company level ticket, this history is seen on ticket detail page, this can be comment, log or rating.
|
|
258
|
+
*/
|
|
259
|
+
getTicketHistory({ id } = {}) {
|
|
260
|
+
const { error } = LeadValidator.getTicketHistory().validate(
|
|
261
|
+
{
|
|
262
|
+
id,
|
|
263
|
+
},
|
|
264
|
+
{ abortEarly: false, allowUnknown: true }
|
|
265
|
+
);
|
|
266
|
+
if (error) {
|
|
267
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
const query_params = {};
|
|
271
|
+
|
|
272
|
+
const xHeaders = {};
|
|
273
|
+
|
|
274
|
+
return PlatformAPIClient.execute(
|
|
275
|
+
this.config,
|
|
276
|
+
"get",
|
|
277
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/ticket/${id}/history`,
|
|
278
|
+
query_params,
|
|
279
|
+
undefined,
|
|
280
|
+
xHeaders
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* @param {Object} arg - Arg object.
|
|
286
|
+
* @param {string} arg.id - Ticket ID for which feedbacks are to be fetched
|
|
287
|
+
* @summary: Gets a list of feedback submitted against that ticket
|
|
288
|
+
* @description: Gets a list of feedback submitted against that ticket
|
|
289
|
+
*/
|
|
290
|
+
getFeedbacks({ id } = {}) {
|
|
291
|
+
const { error } = LeadValidator.getFeedbacks().validate(
|
|
292
|
+
{
|
|
293
|
+
id,
|
|
294
|
+
},
|
|
295
|
+
{ abortEarly: false, allowUnknown: true }
|
|
296
|
+
);
|
|
297
|
+
if (error) {
|
|
298
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
const query_params = {};
|
|
302
|
+
|
|
303
|
+
const xHeaders = {};
|
|
304
|
+
|
|
305
|
+
return PlatformAPIClient.execute(
|
|
306
|
+
this.config,
|
|
307
|
+
"get",
|
|
308
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/ticket/${id}/feedback`,
|
|
309
|
+
query_params,
|
|
310
|
+
undefined,
|
|
311
|
+
xHeaders
|
|
312
|
+
);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @param {Object} arg - Arg object.
|
|
317
|
+
* @param {string} arg.id - Ticket ID for which feedback is to be submitted
|
|
318
|
+
* @param {TicketFeedbackPayload} arg.body
|
|
319
|
+
* @summary: Submit a response for feeback form against that ticket
|
|
320
|
+
* @description: Submit a response for feeback form against that ticket
|
|
321
|
+
*/
|
|
322
|
+
submitFeedback({ id, body } = {}) {
|
|
323
|
+
const { error } = LeadValidator.submitFeedback().validate(
|
|
324
|
+
{
|
|
325
|
+
id,
|
|
326
|
+
body,
|
|
327
|
+
},
|
|
328
|
+
{ abortEarly: false, allowUnknown: true }
|
|
329
|
+
);
|
|
330
|
+
if (error) {
|
|
331
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
const query_params = {};
|
|
335
|
+
|
|
336
|
+
const xHeaders = {};
|
|
337
|
+
|
|
338
|
+
return PlatformAPIClient.execute(
|
|
339
|
+
this.config,
|
|
340
|
+
"post",
|
|
341
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/ticket/${id}/feedback`,
|
|
342
|
+
query_params,
|
|
343
|
+
body,
|
|
344
|
+
xHeaders
|
|
345
|
+
);
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* @param {Object} arg - Arg object.
|
|
350
|
+
* @param {string} arg.uniqueName - Unique name of video room
|
|
351
|
+
* @summary: Get Token to join a specific Video Room using it's unqiue name
|
|
352
|
+
* @description: Get Token to join a specific Video Room using it's unqiue name, this Token is your ticket to Room and also creates your identity there.
|
|
353
|
+
*/
|
|
354
|
+
getTokenForVideoRoom({ uniqueName } = {}) {
|
|
355
|
+
const { error } = LeadValidator.getTokenForVideoRoom().validate(
|
|
356
|
+
{
|
|
357
|
+
uniqueName,
|
|
358
|
+
},
|
|
359
|
+
{ abortEarly: false, allowUnknown: true }
|
|
360
|
+
);
|
|
361
|
+
if (error) {
|
|
362
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
const query_params = {};
|
|
366
|
+
|
|
367
|
+
const xHeaders = {};
|
|
368
|
+
|
|
369
|
+
return PlatformAPIClient.execute(
|
|
370
|
+
this.config,
|
|
371
|
+
"get",
|
|
372
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/video/room/${uniqueName}/token`,
|
|
373
|
+
query_params,
|
|
374
|
+
undefined,
|
|
375
|
+
xHeaders
|
|
376
|
+
);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* @param {Object} arg - Arg object.
|
|
381
|
+
* @param {string} arg.uniqueName - Unique name of Video Room
|
|
382
|
+
* @summary: Get participants of a specific Video Room using it's unique name
|
|
383
|
+
* @description: Get participants of a specific Video Room using it's unique name, this can be used to check if people are already there in the room and also to show their names.
|
|
384
|
+
*/
|
|
385
|
+
getVideoParticipants({ uniqueName } = {}) {
|
|
386
|
+
const { error } = LeadValidator.getVideoParticipants().validate(
|
|
387
|
+
{
|
|
388
|
+
uniqueName,
|
|
389
|
+
},
|
|
390
|
+
{ abortEarly: false, allowUnknown: true }
|
|
391
|
+
);
|
|
392
|
+
if (error) {
|
|
393
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
const query_params = {};
|
|
397
|
+
|
|
398
|
+
const xHeaders = {};
|
|
399
|
+
|
|
400
|
+
return PlatformAPIClient.execute(
|
|
401
|
+
this.config,
|
|
402
|
+
"get",
|
|
403
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/video/room/${uniqueName}/participants`,
|
|
404
|
+
query_params,
|
|
405
|
+
undefined,
|
|
406
|
+
xHeaders
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* @param {Object} arg - Arg object.
|
|
412
|
+
* @summary: Get general support configuration.
|
|
413
|
+
* @description: Get general support configuration.
|
|
414
|
+
*/
|
|
415
|
+
getGeneralConfig({} = {}) {
|
|
416
|
+
const { error } = LeadValidator.getGeneralConfig().validate(
|
|
417
|
+
{},
|
|
418
|
+
{ abortEarly: false, allowUnknown: true }
|
|
419
|
+
);
|
|
420
|
+
if (error) {
|
|
421
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
const query_params = {};
|
|
425
|
+
|
|
426
|
+
const xHeaders = {};
|
|
427
|
+
|
|
428
|
+
return PlatformAPIClient.execute(
|
|
429
|
+
this.config,
|
|
430
|
+
"get",
|
|
431
|
+
`/service/platform/lead/v1.0/company/${this.config.companyId}/general-config`,
|
|
432
|
+
query_params,
|
|
433
|
+
undefined,
|
|
434
|
+
xHeaders
|
|
435
|
+
);
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
module.exports = Lead;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
export = Order;
|
|
2
|
+
declare class Order {
|
|
3
|
+
constructor(config: any);
|
|
4
|
+
config: any;
|
|
5
|
+
/**
|
|
6
|
+
* @param {Object} arg - Arg object.
|
|
7
|
+
* @param {UpdateShipmentStatusBody} arg.body
|
|
8
|
+
* @summary: Update status of Shipment
|
|
9
|
+
* @description: Update Shipment Status
|
|
10
|
+
*/
|
|
11
|
+
shipmentStatusUpdate({ body }?: {
|
|
12
|
+
body: any;
|
|
13
|
+
}): Promise<any>;
|
|
14
|
+
/**
|
|
15
|
+
* @param {Object} arg - Arg object.
|
|
16
|
+
* @param {string} arg.bagId - Bag Id
|
|
17
|
+
* @summary: Get Activity Status
|
|
18
|
+
* @description: Get Activity Status
|
|
19
|
+
*/
|
|
20
|
+
activityStatus({ bagId }?: {
|
|
21
|
+
bagId: string;
|
|
22
|
+
}): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* @param {Object} arg - Arg object.
|
|
25
|
+
* @param {UpdateProcessShipmenstRequestBody} arg.body
|
|
26
|
+
* @summary: Update Store Process-Shipment
|
|
27
|
+
* @description: Update Store Process-Shipment
|
|
28
|
+
*/
|
|
29
|
+
storeProcessShipmentUpdate({ body }?: {
|
|
30
|
+
body: any;
|
|
31
|
+
}): Promise<any>;
|
|
32
|
+
/**
|
|
33
|
+
* @param {Object} arg - Arg object.
|
|
34
|
+
* @param {string} arg.shipmentId - Shipment Id
|
|
35
|
+
* @summary: Check Refund is available or not
|
|
36
|
+
* @description: Check Refund is available or not
|
|
37
|
+
*/
|
|
38
|
+
checkRefund({ shipmentId }?: {
|
|
39
|
+
shipmentId: string;
|
|
40
|
+
}): Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* @param {Object} arg - Arg object.
|
|
43
|
+
* @param {CanBreakRequestBody} arg.body
|
|
44
|
+
* @summary: Decides if Shipment bags can break
|
|
45
|
+
* @description: Decides if Shipment bags can break
|
|
46
|
+
*/
|
|
47
|
+
shipmentBagsCanBreak({ body }?: {
|
|
48
|
+
body: any;
|
|
49
|
+
}): Promise<any>;
|
|
50
|
+
/**
|
|
51
|
+
* @param {Object} arg - Arg object.
|
|
52
|
+
* @param {string} [arg.pageNo] - Current page number
|
|
53
|
+
* @param {string} [arg.pageSize] - Page limit
|
|
54
|
+
* @param {string} [arg.fromDate] - From Date
|
|
55
|
+
* @param {string} [arg.toDate] - To Date
|
|
56
|
+
* @param {boolean} [arg.isPrioritySort] - Sorting Order
|
|
57
|
+
* @param {boolean} [arg.lockStatus] - Hide Lock Status
|
|
58
|
+
* @param {string} [arg.userId] - User Id
|
|
59
|
+
* @param {string} [arg.q] - Keyword for Search
|
|
60
|
+
* @param {string} [arg.stage] - Specefic Order Stage
|
|
61
|
+
* @param {string} [arg.salesChannels] - Selected Sales Channel
|
|
62
|
+
* @param {string} [arg.orderId] - Order Id
|
|
63
|
+
* @param {string} [arg.stores] - Selected Stores
|
|
64
|
+
* @param {string} [arg.deploymentStores] - Selected Deployment Stores
|
|
65
|
+
* @param {string} [arg.status] - Status of order
|
|
66
|
+
* @param {string} [arg.dp] - Delivery Partners
|
|
67
|
+
* @param {string} [arg.filterType] - Filters
|
|
68
|
+
* @summary: Get Orders for company based on Company Id
|
|
69
|
+
* @description: Get Orders
|
|
70
|
+
*/
|
|
71
|
+
getOrdersByCompanyId({ pageNo, pageSize, fromDate, toDate, isPrioritySort, lockStatus, userId, q, stage, salesChannels, orderId, stores, deploymentStores, status, dp, filterType, }?: {
|
|
72
|
+
pageNo?: string;
|
|
73
|
+
pageSize?: string;
|
|
74
|
+
fromDate?: string;
|
|
75
|
+
toDate?: string;
|
|
76
|
+
isPrioritySort?: boolean;
|
|
77
|
+
lockStatus?: boolean;
|
|
78
|
+
userId?: string;
|
|
79
|
+
q?: string;
|
|
80
|
+
stage?: string;
|
|
81
|
+
salesChannels?: string;
|
|
82
|
+
orderId?: string;
|
|
83
|
+
stores?: string;
|
|
84
|
+
deploymentStores?: string;
|
|
85
|
+
status?: string;
|
|
86
|
+
dp?: string;
|
|
87
|
+
filterType?: string;
|
|
88
|
+
}): Promise<any>;
|
|
89
|
+
/**
|
|
90
|
+
* @param {Object} arg - Arg object.
|
|
91
|
+
* @param {string} [arg.pageNo] - Current page number
|
|
92
|
+
* @param {string} [arg.pageSize] - Page limit
|
|
93
|
+
* @param {string} [arg.fromDate] - From Date
|
|
94
|
+
* @param {string} [arg.toDate] - To Date
|
|
95
|
+
* @param {string} [arg.q] - Keyword for Search
|
|
96
|
+
* @param {string} [arg.stage] - Specefic Order Stage
|
|
97
|
+
* @param {string} [arg.salesChannels] - Selected Sales Channel
|
|
98
|
+
* @param {string} [arg.orderId] - Order Id
|
|
99
|
+
* @param {string} [arg.stores] - Selected Stores
|
|
100
|
+
* @param {string} [arg.status] - Status of order
|
|
101
|
+
* @param {string} [arg.filterType] - Filters
|
|
102
|
+
* @summary: Get Order Lanes Count for company based on Company Id
|
|
103
|
+
* @description: Get Orders Seperate Lane Count
|
|
104
|
+
*/
|
|
105
|
+
getOrderLanesCountByCompanyId({ pageNo, pageSize, fromDate, toDate, q, stage, salesChannels, orderId, stores, status, filterType, }?: {
|
|
106
|
+
pageNo?: string;
|
|
107
|
+
pageSize?: string;
|
|
108
|
+
fromDate?: string;
|
|
109
|
+
toDate?: string;
|
|
110
|
+
q?: string;
|
|
111
|
+
stage?: string;
|
|
112
|
+
salesChannels?: string;
|
|
113
|
+
orderId?: string;
|
|
114
|
+
stores?: string;
|
|
115
|
+
status?: string;
|
|
116
|
+
filterType?: string;
|
|
117
|
+
}): Promise<any>;
|
|
118
|
+
/**
|
|
119
|
+
* @param {Object} arg - Arg object.
|
|
120
|
+
* @param {string} [arg.orderId] - Order Id
|
|
121
|
+
* @param {string} [arg.next] - Next
|
|
122
|
+
* @param {string} [arg.previous] - Previous
|
|
123
|
+
* @summary: Get Order Details for company based on Company Id and Order Id
|
|
124
|
+
* @description: Get Orders
|
|
125
|
+
*/
|
|
126
|
+
getOrderDetails({ orderId, next, previous }?: {
|
|
127
|
+
orderId?: string;
|
|
128
|
+
next?: string;
|
|
129
|
+
previous?: string;
|
|
130
|
+
}): Promise<any>;
|
|
131
|
+
/**
|
|
132
|
+
* @param {Object} arg - Arg object.
|
|
133
|
+
* @param {string} [arg.pageNo] - Current page number
|
|
134
|
+
* @param {string} [arg.pageSize] - Page limit
|
|
135
|
+
* @param {string} [arg.fromDate] - From Date
|
|
136
|
+
* @param {string} [arg.toDate] - To Date
|
|
137
|
+
* @param {string} [arg.q] - Keyword for Search
|
|
138
|
+
* @param {string} [arg.stage] - Specefic Order Stage
|
|
139
|
+
* @param {string} [arg.salesChannels] - Selected Sales Channel
|
|
140
|
+
* @param {string} [arg.orderId] - Order Id
|
|
141
|
+
* @param {string} [arg.stores] - Selected Stores
|
|
142
|
+
* @param {string} [arg.status] - Status of order
|
|
143
|
+
* @param {string} [arg.filterType] - Filters
|
|
144
|
+
* @summary: Get Orders for company based on Company Id
|
|
145
|
+
* @description: Get Orders
|
|
146
|
+
*/
|
|
147
|
+
getPicklistOrdersByCompanyId({ pageNo, pageSize, fromDate, toDate, q, stage, salesChannels, orderId, stores, status, filterType, }?: {
|
|
148
|
+
pageNo?: string;
|
|
149
|
+
pageSize?: string;
|
|
150
|
+
fromDate?: string;
|
|
151
|
+
toDate?: string;
|
|
152
|
+
q?: string;
|
|
153
|
+
stage?: string;
|
|
154
|
+
salesChannels?: string;
|
|
155
|
+
orderId?: string;
|
|
156
|
+
stores?: string;
|
|
157
|
+
status?: string;
|
|
158
|
+
filterType?: string;
|
|
159
|
+
}): Promise<any>;
|
|
160
|
+
/**
|
|
161
|
+
* @param {Object} arg - Arg object.
|
|
162
|
+
* @param {string} arg.shipmentId - ID of the shipment. An order may contain
|
|
163
|
+
* multiple items and may get divided into one or more shipment, each
|
|
164
|
+
* having its own ID.
|
|
165
|
+
* @param {string} arg.addressCategory - Category of the address it falls
|
|
166
|
+
* into(billing or delivery).
|
|
167
|
+
* @summary: Use this API to get address of a shipment using its shipment ID and Address Category.
|
|
168
|
+
* @description: Get Shipment Address
|
|
169
|
+
*/
|
|
170
|
+
getShipmentAddress({ shipmentId, addressCategory }?: {
|
|
171
|
+
shipmentId: string;
|
|
172
|
+
addressCategory: string;
|
|
173
|
+
}): Promise<any>;
|
|
174
|
+
/**
|
|
175
|
+
* @param {Object} arg - Arg object.
|
|
176
|
+
* @param {string} arg.shipmentId - ID of the shipment. An order may contain
|
|
177
|
+
* multiple items and may get divided into one or more shipment, each
|
|
178
|
+
* having its own ID.
|
|
179
|
+
* @param {string} arg.addressCategory - Category of the address it falls
|
|
180
|
+
* into(billing or delivery).
|
|
181
|
+
* @param {UpdateShipmentAddressRequest} arg.body
|
|
182
|
+
* @summary: Use this API to update address of a shipment using its shipment ID and Address Category.
|
|
183
|
+
* @description: Update Shipment Address
|
|
184
|
+
*/
|
|
185
|
+
updateShipmentAddress({ shipmentId, addressCategory, body }?: {
|
|
186
|
+
shipmentId: string;
|
|
187
|
+
addressCategory: string;
|
|
188
|
+
body: any;
|
|
189
|
+
}): Promise<any>;
|
|
190
|
+
}
|