@gofynd/fdk-client-javascript 1.1.2 → 1.1.3

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 (117) hide show
  1. package/README.md +1 -2
  2. package/index.d.ts +4 -7
  3. package/index.js +5 -12
  4. package/package.json +1 -1
  5. package/sdk/application/ApplicationClient.d.ts +20 -20
  6. package/sdk/application/ApplicationClient.js +26 -26
  7. package/sdk/application/Cart/CartApplicationClient.d.ts +36 -6
  8. package/sdk/application/Cart/CartApplicationClient.js +105 -10
  9. package/sdk/application/Cart/CartApplicationModel.d.ts +9 -0
  10. package/sdk/application/Cart/CartApplicationModel.js +105 -1
  11. package/sdk/application/Cart/CartApplicationValidator.d.ts +1 -0
  12. package/sdk/application/Cart/CartApplicationValidator.js +15 -1
  13. package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1 -0
  14. package/sdk/application/Catalog/CatalogApplicationModel.js +13 -0
  15. package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +14 -10
  16. package/sdk/application/Configuration/ConfigurationApplicationClient.js +16 -10
  17. package/sdk/application/Configuration/ConfigurationApplicationModel.js +1 -0
  18. package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
  19. package/sdk/application/Content/ContentApplicationModel.js +3 -1
  20. package/sdk/application/Logistic/LogisticApplicationModel.js +3 -2
  21. package/sdk/application/Order/OrderApplicationClient.d.ts +2 -2
  22. package/sdk/application/Order/OrderApplicationClient.js +2 -2
  23. package/sdk/application/Order/OrderApplicationModel.js +18 -8
  24. package/sdk/application/Payment/PaymentApplicationClient.d.ts +35 -0
  25. package/sdk/application/Payment/PaymentApplicationClient.js +200 -0
  26. package/sdk/application/Payment/PaymentApplicationModel.d.ts +4 -0
  27. package/sdk/application/Payment/PaymentApplicationModel.js +58 -7
  28. package/sdk/application/Payment/PaymentApplicationValidator.d.ts +3 -0
  29. package/sdk/application/Payment/PaymentApplicationValidator.js +19 -0
  30. package/sdk/application/PosCart/PosCartApplicationClient.d.ts +16 -3
  31. package/sdk/application/PosCart/PosCartApplicationClient.js +39 -6
  32. package/sdk/application/PosCart/PosCartApplicationModel.d.ts +6 -0
  33. package/sdk/application/PosCart/PosCartApplicationModel.js +63 -1
  34. package/sdk/application/PosCart/PosCartApplicationValidator.js +6 -0
  35. package/sdk/application/index.d.ts +10 -10
  36. package/sdk/application/index.js +13 -13
  37. package/sdk/common/Constant.d.ts +5 -0
  38. package/sdk/common/Constant.js +5 -0
  39. package/sdk/platform/Billing/BillingPlatformModel.js +6 -1
  40. package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +459 -2
  41. package/sdk/platform/Cart/CartPlatformApplicationClient.js +2480 -340
  42. package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +29 -0
  43. package/sdk/platform/Cart/CartPlatformApplicationValidator.js +250 -0
  44. package/sdk/platform/Cart/CartPlatformModel.d.ts +52 -0
  45. package/sdk/platform/Cart/CartPlatformModel.js +580 -2
  46. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +8 -2
  47. package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +10 -0
  48. package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +1 -0
  49. package/sdk/platform/Catalog/CatalogPlatformClient.js +2 -2
  50. package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1 -0
  51. package/sdk/platform/Catalog/CatalogPlatformModel.js +41 -29
  52. package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1 -0
  53. package/sdk/platform/Communication/CommunicationPlatformModel.js +9 -0
  54. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -2
  55. package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +2 -2
  56. package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +5 -4
  57. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +99 -78
  58. package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +99 -78
  59. package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +87 -71
  60. package/sdk/platform/Configuration/ConfigurationPlatformClient.js +87 -71
  61. package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2 -0
  62. package/sdk/platform/Configuration/ConfigurationPlatformModel.js +26 -0
  63. package/sdk/platform/Content/ContentPlatformModel.js +3 -1
  64. package/sdk/platform/Finance/FinancePlatformClient.d.ts +135 -0
  65. package/sdk/platform/Finance/FinancePlatformClient.js +853 -0
  66. package/sdk/platform/Finance/FinancePlatformModel.d.ts +51 -0
  67. package/sdk/platform/Finance/FinancePlatformModel.js +342 -0
  68. package/sdk/platform/Finance/FinancePlatformValidator.d.ts +16 -0
  69. package/sdk/platform/Finance/FinancePlatformValidator.js +84 -0
  70. package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +11 -1
  71. package/sdk/platform/Order/OrderPlatformApplicationClient.js +66 -2
  72. package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -0
  73. package/sdk/platform/Order/OrderPlatformApplicationValidator.js +6 -0
  74. package/sdk/platform/Order/OrderPlatformClient.d.ts +159 -79
  75. package/sdk/platform/Order/OrderPlatformClient.js +541 -114
  76. package/sdk/platform/Order/OrderPlatformModel.d.ts +42 -6
  77. package/sdk/platform/Order/OrderPlatformModel.js +569 -159
  78. package/sdk/platform/Order/OrderPlatformValidator.d.ts +6 -0
  79. package/sdk/platform/Order/OrderPlatformValidator.js +51 -9
  80. package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +22 -0
  81. package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +127 -0
  82. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +2 -0
  83. package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +13 -0
  84. package/sdk/platform/Partner/PartnerPlatformClient.d.ts +145 -0
  85. package/sdk/platform/Partner/PartnerPlatformClient.js +799 -0
  86. package/sdk/platform/Partner/PartnerPlatformModel.d.ts +39 -0
  87. package/sdk/platform/Partner/PartnerPlatformModel.js +367 -0
  88. package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +14 -0
  89. package/sdk/platform/Partner/PartnerPlatformValidator.js +87 -0
  90. package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +221 -0
  91. package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +1476 -190
  92. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +20 -0
  93. package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +126 -0
  94. package/sdk/platform/Payment/PaymentPlatformModel.d.ts +44 -0
  95. package/sdk/platform/Payment/PaymentPlatformModel.js +410 -0
  96. package/sdk/platform/PlatformApplicationClient.d.ts +1149 -938
  97. package/sdk/platform/PlatformApplicationClient.js +1259 -1035
  98. package/sdk/platform/PlatformClient.d.ts +9888 -8286
  99. package/sdk/platform/PlatformClient.js +10960 -9038
  100. package/sdk/platform/index.d.ts +15 -14
  101. package/sdk/platform/index.js +20 -18
  102. package/sdk/public/PublicClient.d.ts +2 -2
  103. package/sdk/public/PublicClient.js +4 -4
  104. package/sdk/public/index.d.ts +1 -1
  105. package/sdk/public/index.js +2 -2
  106. package/partner.d.ts +0 -4
  107. package/partner.js +0 -7
  108. package/sdk/partner/OAuthClient.d.ts +0 -14
  109. package/sdk/partner/OAuthClient.js +0 -112
  110. package/sdk/partner/PartnerAPIClient.d.ts +0 -12
  111. package/sdk/partner/PartnerAPIClient.js +0 -42
  112. package/sdk/partner/PartnerClient.d.ts +0 -6
  113. package/sdk/partner/PartnerClient.js +0 -17
  114. package/sdk/partner/PartnerConfig.d.ts +0 -30
  115. package/sdk/partner/PartnerConfig.js +0 -39
  116. package/sdk/partner/index.d.ts +0 -3
  117. package/sdk/partner/index.js +0 -5
@@ -1,15 +1,35 @@
1
1
  export = PaymentValidator;
2
2
  declare class PaymentValidator {
3
+ static addEdcDevice(): any;
3
4
  static addRefundBankAccountUsingOTP(): any;
5
+ static cancelPaymentLink(): any;
6
+ static checkAndUpdatePaymentStatus(): any;
4
7
  static confirmPayment(): any;
8
+ static createPaymentLink(): any;
9
+ static edcAggregatorsAndModelList(): any;
10
+ static edcDeviceList(): any;
11
+ static edcDeviceStats(): any;
5
12
  static getBankAccountDetailsOpenAPI(): any;
6
13
  static getBrandPaymentGatewayConfig(): any;
14
+ static getEdcDevice(): any;
15
+ static getPaymentCodeOption(): any;
16
+ static getPaymentLink(): any;
7
17
  static getPaymentModeRoutes(): any;
18
+ static getPosPaymentModeRoutes(): any;
8
19
  static getUserBeneficiaries(): any;
9
20
  static getUserCODlimitRoutes(): any;
10
21
  static getUserOrderBeneficiaries(): any;
22
+ static initialisePayment(): any;
23
+ static merchantOnBoarding(): any;
11
24
  static oauthGetUrl(): any;
25
+ static paymentStatusBulk(): any;
26
+ static pollingPaymentLink(): any;
27
+ static repaymentDetails(): any;
28
+ static resendOrCancelPayment(): any;
29
+ static resendPaymentLink(): any;
12
30
  static revokeOauthToken(): any;
13
31
  static saveBrandPaymentGatewayConfig(): any;
14
32
  static setUserCODlimitRoutes(): any;
33
+ static updateEdcDevice(): any;
34
+ static verifyCustomerForPayment(): any;
15
35
  }
@@ -2,18 +2,61 @@ const Joi = require("joi");
2
2
 
3
3
  const PaymentModel = require("./PaymentPlatformModel");
4
4
  class PaymentValidator {
5
+ static addEdcDevice() {
6
+ return Joi.object({
7
+ terminalUniqueIdentifier: Joi.string().allow("").required(),
8
+ body: PaymentModel.EdcUpdateRequest().required(),
9
+ }).required();
10
+ }
11
+
5
12
  static addRefundBankAccountUsingOTP() {
6
13
  return Joi.object({
7
14
  body: PaymentModel.AddBeneficiaryDetailsOTPRequest().required(),
8
15
  }).required();
9
16
  }
10
17
 
18
+ static cancelPaymentLink() {
19
+ return Joi.object({
20
+ body: PaymentModel.CancelOrResendPaymentLinkRequest().required(),
21
+ }).required();
22
+ }
23
+
24
+ static checkAndUpdatePaymentStatus() {
25
+ return Joi.object({
26
+ body: PaymentModel.PaymentStatusUpdateRequest().required(),
27
+ }).required();
28
+ }
29
+
11
30
  static confirmPayment() {
12
31
  return Joi.object({
13
32
  body: PaymentModel.PaymentConfirmationRequest().required(),
14
33
  }).required();
15
34
  }
16
35
 
36
+ static createPaymentLink() {
37
+ return Joi.object({
38
+ body: PaymentModel.CreatePaymentLinkRequest().required(),
39
+ }).required();
40
+ }
41
+
42
+ static edcAggregatorsAndModelList() {
43
+ return Joi.object({}).required();
44
+ }
45
+
46
+ static edcDeviceList() {
47
+ return Joi.object({
48
+ pageNo: Joi.number(),
49
+ pageSize: Joi.number(),
50
+ isActive: Joi.boolean(),
51
+ storeId: Joi.number(),
52
+ deviceTag: Joi.string().allow(""),
53
+ }).required();
54
+ }
55
+
56
+ static edcDeviceStats() {
57
+ return Joi.object({}).required();
58
+ }
59
+
17
60
  static getBankAccountDetailsOpenAPI() {
18
61
  return Joi.object({
19
62
  orderId: Joi.string().allow("").required(),
@@ -25,6 +68,22 @@ class PaymentValidator {
25
68
  return Joi.object({}).required();
26
69
  }
27
70
 
71
+ static getEdcDevice() {
72
+ return Joi.object({
73
+ terminalUniqueIdentifier: Joi.string().allow("").required(),
74
+ }).required();
75
+ }
76
+
77
+ static getPaymentCodeOption() {
78
+ return Joi.object({}).required();
79
+ }
80
+
81
+ static getPaymentLink() {
82
+ return Joi.object({
83
+ paymentLinkId: Joi.string().allow(""),
84
+ }).required();
85
+ }
86
+
28
87
  static getPaymentModeRoutes() {
29
88
  return Joi.object({
30
89
  refresh: Joi.boolean().required(),
@@ -32,6 +91,19 @@ class PaymentValidator {
32
91
  }).required();
33
92
  }
34
93
 
94
+ static getPosPaymentModeRoutes() {
95
+ return Joi.object({
96
+ amount: Joi.number().required(),
97
+ cartId: Joi.string().allow("").required(),
98
+ pincode: Joi.string().allow("").required(),
99
+ checkoutMode: Joi.string().allow("").required(),
100
+ refresh: Joi.boolean(),
101
+ cardReference: Joi.string().allow(""),
102
+ orderType: Joi.string().allow("").required(),
103
+ userDetails: Joi.string().allow(""),
104
+ }).required();
105
+ }
106
+
35
107
  static getUserBeneficiaries() {
36
108
  return Joi.object({
37
109
  orderId: Joi.string().allow("").required(),
@@ -51,6 +123,18 @@ class PaymentValidator {
51
123
  }).required();
52
124
  }
53
125
 
126
+ static initialisePayment() {
127
+ return Joi.object({
128
+ body: PaymentModel.PaymentInitializationRequest().required(),
129
+ }).required();
130
+ }
131
+
132
+ static merchantOnBoarding() {
133
+ return Joi.object({
134
+ body: PaymentModel.MerchantOnBoardingRequest().required(),
135
+ }).required();
136
+ }
137
+
54
138
  static oauthGetUrl() {
55
139
  return Joi.object({
56
140
  aggregator: Joi.string().allow("").required(),
@@ -59,6 +143,36 @@ class PaymentValidator {
59
143
  }).required();
60
144
  }
61
145
 
146
+ static paymentStatusBulk() {
147
+ return Joi.object({
148
+ body: PaymentModel.PaymentStatusBulkHandlerRequest().required(),
149
+ }).required();
150
+ }
151
+
152
+ static pollingPaymentLink() {
153
+ return Joi.object({
154
+ paymentLinkId: Joi.string().allow(""),
155
+ }).required();
156
+ }
157
+
158
+ static repaymentDetails() {
159
+ return Joi.object({
160
+ body: PaymentModel.RepaymentDetailsSerialiserPayAll().required(),
161
+ }).required();
162
+ }
163
+
164
+ static resendOrCancelPayment() {
165
+ return Joi.object({
166
+ body: PaymentModel.ResendOrCancelPaymentRequest().required(),
167
+ }).required();
168
+ }
169
+
170
+ static resendPaymentLink() {
171
+ return Joi.object({
172
+ body: PaymentModel.CancelOrResendPaymentLinkRequest().required(),
173
+ }).required();
174
+ }
175
+
62
176
  static revokeOauthToken() {
63
177
  return Joi.object({
64
178
  aggregator: Joi.string().allow("").required(),
@@ -76,6 +190,18 @@ class PaymentValidator {
76
190
  body: PaymentModel.SetCODForUserRequest().required(),
77
191
  }).required();
78
192
  }
193
+
194
+ static updateEdcDevice() {
195
+ return Joi.object({
196
+ body: PaymentModel.EdcAddRequest().required(),
197
+ }).required();
198
+ }
199
+
200
+ static verifyCustomerForPayment() {
201
+ return Joi.object({
202
+ body: PaymentModel.ValidateCustomerRequest().required(),
203
+ }).required();
204
+ }
79
205
  }
80
206
 
81
207
  module.exports = PaymentValidator;
@@ -2,45 +2,89 @@ export = PaymentModel;
2
2
  declare class PaymentModel {
3
3
  static AddBeneficiaryDetailsOTPRequest(): any;
4
4
  static BankDetailsForOTP(): any;
5
+ static CancelOrResendPaymentLinkRequest(): any;
6
+ static CancelPaymentLinkResponse(): any;
5
7
  static CODdata(): any;
8
+ static Code(): any;
9
+ static CreatePaymentLinkMeta(): any;
10
+ static CreatePaymentLinkRequest(): any;
11
+ static CreatePaymentLinkResponse(): any;
6
12
  static DeletePayoutResponse(): any;
7
13
  static DeleteSubscriptionPaymentMethodResponse(): any;
14
+ static EdcAddRequest(): any;
15
+ static EdcAggregatorAndModelListResponse(): any;
16
+ static EdcDevice(): any;
17
+ static EdcDeviceAddResponse(): any;
18
+ static EdcDeviceDetailsResponse(): any;
19
+ static EdcDeviceListResponse(): any;
20
+ static EdcDeviceStatsResponse(): any;
21
+ static EdcDeviceUpdateResponse(): any;
22
+ static EdcModelData(): any;
23
+ static EdcUpdateRequest(): any;
8
24
  static ErrorCodeAndDescription(): any;
9
25
  static ErrorCodeDescription(): any;
26
+ static ErrorDescription(): any;
27
+ static ErrorResponse(): any;
10
28
  static GetOauthUrlResponse(): any;
29
+ static GetPaymentCode(): any;
30
+ static GetPaymentCodeResponse(): any;
31
+ static GetPaymentLinkResponse(): any;
11
32
  static GetUserCODLimitResponse(): any;
12
33
  static HttpErrorCodeAndResponse(): any;
13
34
  static IfscCodeResponse(): any;
14
35
  static IntentApp(): any;
15
36
  static IntentAppErrorList(): any;
37
+ static LinkStatus(): any;
38
+ static MerchantOnBoardingRequest(): any;
39
+ static MerchantOnBoardingResponse(): any;
16
40
  static MultiTenderPaymentMeta(): any;
17
41
  static MultiTenderPaymentMethod(): any;
18
42
  static NotFoundResourceError(): any;
19
43
  static OrderBeneficiaryDetails(): any;
20
44
  static OrderBeneficiaryResponse(): any;
45
+ static Page(): any;
46
+ static PaymentCode(): any;
21
47
  static PaymentConfirmationRequest(): any;
22
48
  static PaymentConfirmationResponse(): any;
23
49
  static PaymentGatewayConfig(): any;
24
50
  static PaymentGatewayConfigRequest(): any;
25
51
  static PaymentGatewayConfigResponse(): any;
26
52
  static PaymentGatewayToBeReviewed(): any;
53
+ static PaymentInitializationRequest(): any;
54
+ static PaymentInitializationResponse(): any;
27
55
  static PaymentModeList(): any;
28
56
  static PaymentModeLogo(): any;
57
+ static PaymentObjectListSerializer(): any;
29
58
  static PaymentOptions(): any;
30
59
  static PaymentOptionsResponse(): any;
60
+ static PaymentStatusBulkHandlerRequest(): any;
61
+ static PaymentStatusBulkHandlerResponse(): any;
62
+ static PaymentStatusObject(): any;
63
+ static PaymentStatusUpdateRequest(): any;
64
+ static PaymentStatusUpdateResponse(): any;
31
65
  static PayoutBankDetails(): any;
32
66
  static PayoutRequest(): any;
33
67
  static PayoutResponse(): any;
34
68
  static PayoutsResponse(): any;
69
+ static PollingPaymentLinkResponse(): any;
35
70
  static RefundAccountResponse(): any;
71
+ static RepaymentDetailsSerialiserPayAll(): any;
72
+ static RepaymentRequestDetails(): any;
73
+ static RepaymentResponse(): any;
74
+ static ResendOrCancelPaymentRequest(): any;
75
+ static ResendOrCancelPaymentResponse(): any;
76
+ static ResendPaymentLinkResponse(): any;
36
77
  static RevokeOAuthToken(): any;
37
78
  static RootPaymentMode(): any;
38
79
  static SaveSubscriptionSetupIntentRequest(): any;
39
80
  static SaveSubscriptionSetupIntentResponse(): any;
40
81
  static SetCODForUserRequest(): any;
41
82
  static SetCODOptionResponse(): any;
83
+ static StatisticsData(): any;
42
84
  static SubscriptionConfigResponse(): any;
43
85
  static SubscriptionPaymentMethodResponse(): any;
44
86
  static UpdatePayoutRequest(): any;
45
87
  static UpdatePayoutResponse(): any;
88
+ static ValidateCustomerRequest(): any;
89
+ static ValidateCustomerResponse(): any;
46
90
  }