@gofynd/fdk-client-javascript 1.4.7 → 1.4.8-beta.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.d.ts +16 -3
- package/sdk/application/Cart/CartApplicationClient.js +118 -13
- package/sdk/application/Cart/CartApplicationModel.d.ts +121 -45
- package/sdk/application/Cart/CartApplicationModel.js +98 -26
- package/sdk/application/Cart/CartApplicationValidator.d.ts +45 -1
- package/sdk/application/Cart/CartApplicationValidator.js +26 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +4 -2
- package/sdk/application/Catalog/CatalogApplicationModel.js +4 -2
- package/sdk/application/Content/ContentApplicationClient.d.ts +1 -1
- package/sdk/application/Content/ContentApplicationClient.js +5 -3
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -18
- package/sdk/application/Content/ContentApplicationModel.js +4 -20
- package/sdk/application/Content/ContentApplicationValidator.d.ts +10 -0
- package/sdk/application/Content/ContentApplicationValidator.js +4 -0
- package/sdk/application/Lead/LeadApplicationClient.d.ts +0 -27
- package/sdk/application/Lead/LeadApplicationClient.js +0 -167
- package/sdk/application/Lead/LeadApplicationModel.d.ts +1 -146
- package/sdk/application/Lead/LeadApplicationModel.js +0 -126
- package/sdk/application/Lead/LeadApplicationValidator.d.ts +1 -25
- package/sdk/application/Lead/LeadApplicationValidator.js +0 -24
- package/sdk/application/Logistic/LogisticApplicationClient.js +1 -1
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +2 -0
- package/sdk/application/Logistic/LogisticApplicationModel.js +2 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +2 -0
- package/sdk/application/Order/OrderApplicationModel.js +2 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +9 -2
- package/sdk/application/Payment/PaymentApplicationModel.js +5 -2
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +2 -0
- package/sdk/application/Theme/ThemeApplicationModel.js +2 -0
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -23
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -157
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +12 -581
- package/sdk/partner/Lead/LeadPartnerModel.js +14 -403
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -2
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -12
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +1 -1
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +4 -4
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +162 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +119 -1
- package/sdk/partner/Theme/ThemePartnerModel.js +142 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +2 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +14 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +304 -43
- package/sdk/platform/Billing/BillingPlatformClient.js +2218 -118
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +1330 -282
- package/sdk/platform/Billing/BillingPlatformModel.js +1808 -590
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +324 -16
- package/sdk/platform/Billing/BillingPlatformValidator.js +340 -12
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +28 -5
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +198 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +81 -1
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +48 -0
- package/sdk/platform/Cart/CartPlatformModel.d.ts +214 -40
- package/sdk/platform/Cart/CartPlatformModel.js +164 -24
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +2 -2
- package/sdk/platform/Catalog/CatalogPlatformClient.js +18 -2
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +4 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.js +4 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +28 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +12 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +18 -1
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +25 -0
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +10 -0
- package/sdk/platform/Content/ContentPlatformModel.d.ts +6 -4
- package/sdk/platform/Content/ContentPlatformModel.js +6 -4
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +49 -28
- package/sdk/platform/Finance/FinancePlatformClient.js +181 -28
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +350 -127
- package/sdk/platform/Finance/FinancePlatformModel.js +378 -108
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +56 -43
- package/sdk/platform/Finance/FinancePlatformValidator.js +61 -42
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +0 -47
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +0 -321
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +1 -46
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +0 -48
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +2 -25
- package/sdk/platform/Lead/LeadPlatformClient.js +2 -167
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +82 -204
- package/sdk/platform/Lead/LeadPlatformModel.js +98 -178
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +1 -25
- package/sdk/platform/Lead/LeadPlatformValidator.js +0 -24
- package/sdk/platform/Order/OrderPlatformModel.d.ts +108 -15
- package/sdk/platform/Order/OrderPlatformModel.js +47 -14
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +12 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +5 -0
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +12 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +82 -0
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +18 -1
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +14 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +67 -1
- package/sdk/platform/Theme/ThemePlatformModel.js +78 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +0 -40
- package/sdk/platform/Webhook/WebhookPlatformClient.js +0 -307
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +112 -164
- package/sdk/platform/Webhook/WebhookPlatformModel.js +118 -169
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +9 -35
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +8 -46
- package/sdk/public/Billing/BillingPublicClient.d.ts +24 -2
- package/sdk/public/Billing/BillingPublicClient.js +156 -3
- package/sdk/public/Billing/BillingPublicModel.d.ts +368 -26
- package/sdk/public/Billing/BillingPublicModel.js +317 -18
- package/sdk/public/Billing/BillingPublicValidator.d.ts +19 -3
- package/sdk/public/Billing/BillingPublicValidator.js +22 -3
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +22 -22
- package/sdk/public/Webhook/WebhookPublicModel.js +22 -22
|
@@ -21,7 +21,7 @@ class Finance {
|
|
|
21
21
|
* @returns {Promise<FinancePlatformModel.ChannelDisplayNameResponse>} -
|
|
22
22
|
* Success response
|
|
23
23
|
* @name channelDisplayName
|
|
24
|
-
* @summary: Get channel display name
|
|
24
|
+
* @summary: Get channel display name.
|
|
25
25
|
* @description: Retrieve the display name for a channel. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/channelDisplayName/).
|
|
26
26
|
*/
|
|
27
27
|
async channelDisplayName(
|
|
@@ -105,7 +105,7 @@ class Finance {
|
|
|
105
105
|
* - Success response
|
|
106
106
|
*
|
|
107
107
|
* @name createSellerCreditNoteConfig
|
|
108
|
-
* @summary: Create seller credit note config
|
|
108
|
+
* @summary: Create seller credit note config.
|
|
109
109
|
* @description: Set up configuration for seller credit notes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/createSellerCreditNoteConfig/).
|
|
110
110
|
*/
|
|
111
111
|
async createSellerCreditNoteConfig(
|
|
@@ -187,7 +187,7 @@ class Finance {
|
|
|
187
187
|
* @returns {Promise<FinancePlatformModel.CreditNoteDetailsResponse>} -
|
|
188
188
|
* Success response
|
|
189
189
|
* @name creditNoteDetails
|
|
190
|
-
* @summary: Get credit note details
|
|
190
|
+
* @summary: Get credit note details.
|
|
191
191
|
* @description: Retrieve detailed information about a credit note. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/creditNoteDetails/).
|
|
192
192
|
*/
|
|
193
193
|
async creditNoteDetails(
|
|
@@ -268,7 +268,7 @@ class Finance {
|
|
|
268
268
|
* - Success response
|
|
269
269
|
*
|
|
270
270
|
* @name creditlineDataplatform
|
|
271
|
-
* @summary: Access credit line data platform
|
|
271
|
+
* @summary: Access credit line data platform.
|
|
272
272
|
* @description: Connect to the credit line data platform. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/creditlineDataplatform/).
|
|
273
273
|
*/
|
|
274
274
|
async creditlineDataplatform(
|
|
@@ -349,7 +349,7 @@ class Finance {
|
|
|
349
349
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
350
350
|
* @returns {Promise<FinancePlatformModel.DeleteConfigResponse>} - Success response
|
|
351
351
|
* @name deleteConfig
|
|
352
|
-
* @summary: Deletes credit note config
|
|
352
|
+
* @summary: Deletes credit note config.
|
|
353
353
|
* @description: Deletes credit note config. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/deleteConfig/).
|
|
354
354
|
*/
|
|
355
355
|
async deleteConfig(
|
|
@@ -430,7 +430,7 @@ class Finance {
|
|
|
430
430
|
* - Success response
|
|
431
431
|
*
|
|
432
432
|
* @name downloadCreditDebitNote
|
|
433
|
-
* @summary: Download credit/debit note
|
|
433
|
+
* @summary: Download credit/debit note.
|
|
434
434
|
* @description: Retrieve and save credit/debit notes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/downloadCreditDebitNote/).
|
|
435
435
|
*/
|
|
436
436
|
async downloadCreditDebitNote(
|
|
@@ -511,7 +511,7 @@ class Finance {
|
|
|
511
511
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
512
512
|
* @returns {Promise<FinancePlatformModel.DownloadReportList>} - Success response
|
|
513
513
|
* @name downloadReport
|
|
514
|
-
* @summary: Download financial report
|
|
514
|
+
* @summary: Download financial report.
|
|
515
515
|
* @description: Retrieve and save a financial report. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/downloadReport/).
|
|
516
516
|
*/
|
|
517
517
|
async downloadReport(
|
|
@@ -592,7 +592,7 @@ class Finance {
|
|
|
592
592
|
* - Success response
|
|
593
593
|
*
|
|
594
594
|
* @name downloadReportCustomerCn
|
|
595
|
-
* @summary: Download customer credit note report
|
|
595
|
+
* @summary: Download customer credit note report.
|
|
596
596
|
* @description: Retrieve and save a report for customer credit notes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/downloadReportCustomerCn/).
|
|
597
597
|
*/
|
|
598
598
|
async downloadReportCustomerCn(
|
|
@@ -673,7 +673,7 @@ class Finance {
|
|
|
673
673
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
674
674
|
* @returns {Promise<FinancePlatformModel.GenerateReportJson>} - Success response
|
|
675
675
|
* @name generateReport
|
|
676
|
-
* @summary: Generate financial report
|
|
676
|
+
* @summary: Generate financial report.
|
|
677
677
|
* @description: Create a financial report with relevant data. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/generateReport/).
|
|
678
678
|
*/
|
|
679
679
|
async generateReport(
|
|
@@ -754,7 +754,7 @@ class Finance {
|
|
|
754
754
|
* - Success response
|
|
755
755
|
*
|
|
756
756
|
* @name generateReportCustomerCn
|
|
757
|
-
* @summary: Generate customer credit note report
|
|
757
|
+
* @summary: Generate customer credit note report.
|
|
758
758
|
* @description: Create a report specifically for customer credit notes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/generateReportCustomerCn/).
|
|
759
759
|
*/
|
|
760
760
|
async generateReportCustomerCn(
|
|
@@ -835,7 +835,7 @@ class Finance {
|
|
|
835
835
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
836
836
|
* @returns {Promise<FinancePlatformModel.GetAffiliateResponse>} - Success response
|
|
837
837
|
* @name getAffiliate
|
|
838
|
-
* @summary: Get affiliate details
|
|
838
|
+
* @summary: Get affiliate details.
|
|
839
839
|
* @description: Retrieve information about an affiliate. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getAffiliate/).
|
|
840
840
|
*/
|
|
841
841
|
async getAffiliate(
|
|
@@ -914,7 +914,7 @@ class Finance {
|
|
|
914
914
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
915
915
|
* @returns {Promise<FinancePlatformModel.GetCnConfigResponse>} - Success response
|
|
916
916
|
* @name getCnConfig
|
|
917
|
-
* @summary: Get credit note configuration
|
|
917
|
+
* @summary: Get credit note configuration.
|
|
918
918
|
* @description: Retrieve configuration settings for credit notes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getCnConfig/).
|
|
919
919
|
*/
|
|
920
920
|
async getCnConfig(
|
|
@@ -993,7 +993,7 @@ class Finance {
|
|
|
993
993
|
* - Success response
|
|
994
994
|
*
|
|
995
995
|
* @name getCustomerCreditBalance
|
|
996
|
-
* @summary: Get customer credit balance
|
|
996
|
+
* @summary: Get customer credit balance.
|
|
997
997
|
* @description: Retrieve the credit balance of a customer. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getCustomerCreditBalance/).
|
|
998
998
|
*/
|
|
999
999
|
async getCustomerCreditBalance(
|
|
@@ -1074,7 +1074,7 @@ class Finance {
|
|
|
1074
1074
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1075
1075
|
* @returns {Promise<FinancePlatformModel.GetEngineResponse>} - Success response
|
|
1076
1076
|
* @name getData
|
|
1077
|
-
* @summary: Get financial data
|
|
1077
|
+
* @summary: Get financial data.
|
|
1078
1078
|
* @description: Retrieve financial data for analysis. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getData/).
|
|
1079
1079
|
*/
|
|
1080
1080
|
async getData(
|
|
@@ -1151,7 +1151,7 @@ class Finance {
|
|
|
1151
1151
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1152
1152
|
* @returns {Promise<FinancePlatformModel.GetPdfUrlViewResponse>} - Success response
|
|
1153
1153
|
* @name getPdfUrlView
|
|
1154
|
-
* @summary: Get PDF URL view
|
|
1154
|
+
* @summary: Get PDF URL view.
|
|
1155
1155
|
* @description: Retrieve a URL to view a PDF document. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getPdfUrlView/).
|
|
1156
1156
|
*/
|
|
1157
1157
|
async getPdfUrlView(
|
|
@@ -1230,7 +1230,7 @@ class Finance {
|
|
|
1230
1230
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1231
1231
|
* @returns {Promise<FinancePlatformModel.GetReasonResponse>} - Success response
|
|
1232
1232
|
* @name getReason
|
|
1233
|
-
* @summary: Get transaction reason
|
|
1233
|
+
* @summary: Get transaction reason.
|
|
1234
1234
|
* @description: Retrieve the reason behind a transaction. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getReason/).
|
|
1235
1235
|
*/
|
|
1236
1236
|
async getReason(
|
|
@@ -1307,7 +1307,7 @@ class Finance {
|
|
|
1307
1307
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1308
1308
|
* @returns {Promise<FinancePlatformModel.GetReportListResponse>} - Success response
|
|
1309
1309
|
* @name getReportList
|
|
1310
|
-
* @summary: Get report list
|
|
1310
|
+
* @summary: Get report list.
|
|
1311
1311
|
* @description: Retrieve a list of available financial reports. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getReportList/).
|
|
1312
1312
|
*/
|
|
1313
1313
|
async getReportList(
|
|
@@ -1387,7 +1387,7 @@ class Finance {
|
|
|
1387
1387
|
* @returns {Promise<FinancePlatformModel.GetReportingFiltersResponse>} -
|
|
1388
1388
|
* Success response
|
|
1389
1389
|
* @name getReportingFilters
|
|
1390
|
-
* @summary: Get reporting filters
|
|
1390
|
+
* @summary: Get reporting filters.
|
|
1391
1391
|
* @description: Retrieve available filters for financial reporting. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/getReportingFilters/).
|
|
1392
1392
|
*/
|
|
1393
1393
|
async getReportingFilters(
|
|
@@ -1471,7 +1471,7 @@ class Finance {
|
|
|
1471
1471
|
* @returns {Promise<FinancePlatformModel.InvoiceActivityLogsResponse>} -
|
|
1472
1472
|
* Success response
|
|
1473
1473
|
* @name invoiceActivityLogs
|
|
1474
|
-
* @summary: Display activity log details of an invoice
|
|
1474
|
+
* @summary: Display activity log details of an invoice.
|
|
1475
1475
|
* @description: Display activity log details of invoice. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoiceActivityLogs/).
|
|
1476
1476
|
*/
|
|
1477
1477
|
async invoiceActivityLogs(
|
|
@@ -1550,8 +1550,8 @@ class Finance {
|
|
|
1550
1550
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1551
1551
|
* @returns {Promise<FinancePlatformModel.InvoiceListingResponse>} - Success response
|
|
1552
1552
|
* @name invoiceListing
|
|
1553
|
-
* @summary:
|
|
1554
|
-
* @description:
|
|
1553
|
+
* @summary: Gives list of invoices.
|
|
1554
|
+
* @description: Gives list of invoices. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoiceListing/).
|
|
1555
1555
|
*/
|
|
1556
1556
|
async invoiceListing(
|
|
1557
1557
|
{ body, requestHeaders } = { requestHeaders: {} },
|
|
@@ -1629,7 +1629,7 @@ class Finance {
|
|
|
1629
1629
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1630
1630
|
* @returns {Promise<FinancePlatformModel.InvoicePdfResponse>} - Success response
|
|
1631
1631
|
* @name invoicePDF
|
|
1632
|
-
* @summary: Get invoice PDF
|
|
1632
|
+
* @summary: Get invoice PDF.
|
|
1633
1633
|
* @description: Retrieve the PDF version of an invoice. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoicePDF/).
|
|
1634
1634
|
*/
|
|
1635
1635
|
async invoicePDF(
|
|
@@ -1707,7 +1707,7 @@ class Finance {
|
|
|
1707
1707
|
* @returns {Promise<FinancePlatformModel.InvoicePaymentDetailsResponse>} -
|
|
1708
1708
|
* Success response
|
|
1709
1709
|
* @name invoicePaymentDetails
|
|
1710
|
-
* @summary: Display payment details of an invoice
|
|
1710
|
+
* @summary: Display payment details of an invoice.
|
|
1711
1711
|
* @description: Display payment details of invoice. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoicePaymentDetails/).
|
|
1712
1712
|
*/
|
|
1713
1713
|
async invoicePaymentDetails(
|
|
@@ -1780,13 +1780,93 @@ class Finance {
|
|
|
1780
1780
|
return response;
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
+
/**
|
|
1784
|
+
* @param {FinancePlatformValidator.InvoicePaymentOptionsParam} arg - Arg object
|
|
1785
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1786
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1787
|
+
* @returns {Promise<FinancePlatformModel.InvoicePaymentOptionsResponse>} -
|
|
1788
|
+
* Success response
|
|
1789
|
+
* @name invoicePaymentOptions
|
|
1790
|
+
* @summary: Display all payment options for an invoice.
|
|
1791
|
+
* @description: Display all payment options for an invoice. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoicePaymentOptions/).
|
|
1792
|
+
*/
|
|
1793
|
+
async invoicePaymentOptions(
|
|
1794
|
+
{ body, requestHeaders } = { requestHeaders: {} },
|
|
1795
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
1796
|
+
) {
|
|
1797
|
+
const { error } = FinancePlatformValidator.invoicePaymentOptions().validate(
|
|
1798
|
+
{
|
|
1799
|
+
body,
|
|
1800
|
+
},
|
|
1801
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1802
|
+
);
|
|
1803
|
+
if (error) {
|
|
1804
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1808
|
+
const {
|
|
1809
|
+
error: warrning,
|
|
1810
|
+
} = FinancePlatformValidator.invoicePaymentOptions().validate(
|
|
1811
|
+
{
|
|
1812
|
+
body,
|
|
1813
|
+
},
|
|
1814
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1815
|
+
);
|
|
1816
|
+
if (warrning) {
|
|
1817
|
+
Logger({
|
|
1818
|
+
level: "WARN",
|
|
1819
|
+
message: `Parameter Validation warrnings for platform > Finance > invoicePaymentOptions \n ${warrning}`,
|
|
1820
|
+
});
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
const query_params = {};
|
|
1824
|
+
|
|
1825
|
+
const xHeaders = {};
|
|
1826
|
+
|
|
1827
|
+
const response = await PlatformAPIClient.execute(
|
|
1828
|
+
this.config,
|
|
1829
|
+
"post",
|
|
1830
|
+
`/service/platform/finance/v1.0/company/${this.config.companyId}/invoice-payment-options`,
|
|
1831
|
+
query_params,
|
|
1832
|
+
body,
|
|
1833
|
+
{ ...xHeaders, ...requestHeaders },
|
|
1834
|
+
{ responseHeaders }
|
|
1835
|
+
);
|
|
1836
|
+
|
|
1837
|
+
let responseData = response;
|
|
1838
|
+
if (responseHeaders) {
|
|
1839
|
+
responseData = response[0];
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
const {
|
|
1843
|
+
error: res_error,
|
|
1844
|
+
} = FinancePlatformModel.InvoicePaymentOptionsResponse().validate(
|
|
1845
|
+
responseData,
|
|
1846
|
+
{ abortEarly: false, allowUnknown: true }
|
|
1847
|
+
);
|
|
1848
|
+
|
|
1849
|
+
if (res_error) {
|
|
1850
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1851
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1852
|
+
} else {
|
|
1853
|
+
Logger({
|
|
1854
|
+
level: "WARN",
|
|
1855
|
+
message: `Response Validation Warnings for platform > Finance > invoicePaymentOptions \n ${res_error}`,
|
|
1856
|
+
});
|
|
1857
|
+
}
|
|
1858
|
+
}
|
|
1859
|
+
|
|
1860
|
+
return response;
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1783
1863
|
/**
|
|
1784
1864
|
* @param {FinancePlatformValidator.InvoiceTypeParam} arg - Arg object
|
|
1785
1865
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
1786
1866
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
1787
1867
|
* @returns {Promise<FinancePlatformModel.InvoiceTypeResponse>} - Success response
|
|
1788
1868
|
* @name invoiceType
|
|
1789
|
-
* @summary: Get invoice types
|
|
1869
|
+
* @summary: Get invoice types.
|
|
1790
1870
|
* @description: Retrieve a list of available invoice types. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/invoiceType/).
|
|
1791
1871
|
*/
|
|
1792
1872
|
async invoiceType(
|
|
@@ -1864,7 +1944,7 @@ class Finance {
|
|
|
1864
1944
|
* @returns {Promise<FinancePlatformModel.IsCnRefundMethodResponse>} -
|
|
1865
1945
|
* Success response
|
|
1866
1946
|
* @name isCnRefundMethod
|
|
1867
|
-
* @summary: Check refund method
|
|
1947
|
+
* @summary: Check CN refund method.
|
|
1868
1948
|
* @description: Verify the refund method for credit notes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/isCnRefundMethod/).
|
|
1869
1949
|
*/
|
|
1870
1950
|
async isCnRefundMethod(
|
|
@@ -1944,7 +2024,7 @@ class Finance {
|
|
|
1944
2024
|
* @returns {Promise<FinancePlatformModel.IsCreditlinePlatformResponse>} -
|
|
1945
2025
|
* Success response
|
|
1946
2026
|
* @name isCreditlinePlatform
|
|
1947
|
-
* @summary: Check credit line platform status
|
|
2027
|
+
* @summary: Check credit line platform status.
|
|
1948
2028
|
* @description: Determine if the credit line platform is operational. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/isCreditlinePlatform/).
|
|
1949
2029
|
*/
|
|
1950
2030
|
async isCreditlinePlatform(
|
|
@@ -2017,13 +2097,86 @@ class Finance {
|
|
|
2017
2097
|
return response;
|
|
2018
2098
|
}
|
|
2019
2099
|
|
|
2100
|
+
/**
|
|
2101
|
+
* @param {FinancePlatformValidator.OrderFreezeParam} arg - Arg object
|
|
2102
|
+
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2103
|
+
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2104
|
+
* @returns {Promise<FinancePlatformModel.OrederFreezeResponse>} - Success response
|
|
2105
|
+
* @name orderFreeze
|
|
2106
|
+
* @summary: Get status of oms freeze.
|
|
2107
|
+
* @description: Used to get status of oms freeze. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/orderFreeze/).
|
|
2108
|
+
*/
|
|
2109
|
+
async orderFreeze(
|
|
2110
|
+
{ requestHeaders } = { requestHeaders: {} },
|
|
2111
|
+
{ responseHeaders } = { responseHeaders: false }
|
|
2112
|
+
) {
|
|
2113
|
+
const { error } = FinancePlatformValidator.orderFreeze().validate(
|
|
2114
|
+
{},
|
|
2115
|
+
{ abortEarly: false, allowUnknown: true }
|
|
2116
|
+
);
|
|
2117
|
+
if (error) {
|
|
2118
|
+
return Promise.reject(new FDKClientValidationError(error));
|
|
2119
|
+
}
|
|
2120
|
+
|
|
2121
|
+
// Showing warrnings if extra unknown parameters are found
|
|
2122
|
+
const { error: warrning } = FinancePlatformValidator.orderFreeze().validate(
|
|
2123
|
+
{},
|
|
2124
|
+
{ abortEarly: false, allowUnknown: false }
|
|
2125
|
+
);
|
|
2126
|
+
if (warrning) {
|
|
2127
|
+
Logger({
|
|
2128
|
+
level: "WARN",
|
|
2129
|
+
message: `Parameter Validation warrnings for platform > Finance > orderFreeze \n ${warrning}`,
|
|
2130
|
+
});
|
|
2131
|
+
}
|
|
2132
|
+
|
|
2133
|
+
const query_params = {};
|
|
2134
|
+
|
|
2135
|
+
const xHeaders = {};
|
|
2136
|
+
|
|
2137
|
+
const response = await PlatformAPIClient.execute(
|
|
2138
|
+
this.config,
|
|
2139
|
+
"get",
|
|
2140
|
+
`/service/platform/finance/v1.0/company/${this.config.companyId}/order/freeze`,
|
|
2141
|
+
query_params,
|
|
2142
|
+
undefined,
|
|
2143
|
+
{ ...xHeaders, ...requestHeaders },
|
|
2144
|
+
{ responseHeaders }
|
|
2145
|
+
);
|
|
2146
|
+
|
|
2147
|
+
let responseData = response;
|
|
2148
|
+
if (responseHeaders) {
|
|
2149
|
+
responseData = response[0];
|
|
2150
|
+
}
|
|
2151
|
+
|
|
2152
|
+
const {
|
|
2153
|
+
error: res_error,
|
|
2154
|
+
} = FinancePlatformModel.OrederFreezeResponse().validate(responseData, {
|
|
2155
|
+
abortEarly: false,
|
|
2156
|
+
allowUnknown: true,
|
|
2157
|
+
});
|
|
2158
|
+
|
|
2159
|
+
if (res_error) {
|
|
2160
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2161
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2162
|
+
} else {
|
|
2163
|
+
Logger({
|
|
2164
|
+
level: "WARN",
|
|
2165
|
+
message: `Response Validation Warnings for platform > Finance > orderFreeze \n ${res_error}`,
|
|
2166
|
+
});
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
|
|
2170
|
+
return response;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2020
2173
|
/**
|
|
2021
2174
|
* @param {FinancePlatformValidator.PaymentProcessParam} arg - Arg object
|
|
2022
2175
|
* @param {object} [arg.requestHeaders={}] - Request headers. Default is `{}`
|
|
2023
2176
|
* @param {import("../PlatformAPIClient").Options} - Options
|
|
2024
2177
|
* @returns {Promise<FinancePlatformModel.PaymentProcessResponse>} - Success response
|
|
2025
2178
|
* @name paymentProcess
|
|
2026
|
-
* @summary: Process payments
|
|
2179
|
+
* @summary: Process payments.
|
|
2027
2180
|
* @description: Initiate and manage payment processes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/paymentProcess/).
|
|
2028
2181
|
*/
|
|
2029
2182
|
async paymentProcess(
|
|
@@ -2103,7 +2256,7 @@ class Finance {
|
|
|
2103
2256
|
* @returns {Promise<FinancePlatformModel.UnlockCreditNoteResponse>} -
|
|
2104
2257
|
* Success response
|
|
2105
2258
|
* @name unlockCreditNote
|
|
2106
|
-
* @summary:
|
|
2259
|
+
* @summary: Unlocks credit notes.
|
|
2107
2260
|
* @description: Used to unlock all request credit notes. - Check out [method documentation](https://partners.fynd.com/help/docs/sdk/platform/finance/unlockCreditNote/).
|
|
2108
2261
|
*/
|
|
2109
2262
|
async unlockCreditNote(
|