tango-app-api-payment-subscription 3.0.14-dev → 3.0.14
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/index.js +2 -1
- package/package.json +8 -3
- package/src/controllers/paymentSubscription.controllers.js +1616 -123
- package/src/docs/payment.docs.js +673 -0
- package/src/dtos/validation.dtos.js +197 -100
- package/src/hbs/invoicePdf.hbs +1577 -0
- package/src/hbs/invoicePdfold.hbs +198 -0
- package/src/hbs/invoiceRaised.hbs +654 -0
- package/src/hbs/revisedPriceEmail.hbs +290 -0
- package/src/hbs/trialCreditNoteEmail.hbs +603 -0
- package/src/hbs/trialExpiredEmail.hbs +309 -0
- package/src/hbs/trialExtentionEmail.hbs +194 -0
- package/src/hbs/trialInitiateEmail.hbs +10 -10
- package/src/hbs/trialReminderEmail.hbs +315 -0
- package/src/hbs/trialSubscriptionEmail.hbs +197 -0
- package/src/hbs/trialUnsubscribeEmail.hbs +188 -0
- package/src/routes/paymentSubscription.routes.js +151 -48
- package/src/services/basePrice.service.js +4 -0
- package/src/services/clientRequest.service.js +8 -0
- package/src/services/dailyPrice.service.js +22 -0
- package/src/services/invoice.service.js +12 -1
- package/src/services/user.service.js +8 -0
- package/src/utils/validations/client.validation.js +1 -2
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import * as schema from '../dtos/validation.dtos.js';
|
|
4
|
+
import j2s from 'joi-to-swagger';
|
|
5
|
+
|
|
6
|
+
export const paymentDocs = {
|
|
7
|
+
'/v3/paymentSubscription/addBilling': {
|
|
8
|
+
post: {
|
|
9
|
+
tags: [ 'payment' ],
|
|
10
|
+
description: 'Add Billing Details',
|
|
11
|
+
operationId: '',
|
|
12
|
+
parameters: {},
|
|
13
|
+
requestBody: {
|
|
14
|
+
content: {
|
|
15
|
+
'application/json': {
|
|
16
|
+
schema: j2s( schema.validateBillingSchema ).swagger,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
responses: {
|
|
21
|
+
200: { description: 'Billing Details Updated Successfully.' },
|
|
22
|
+
401: { description: 'Incorrect Update' },
|
|
23
|
+
422: { description: 'Field Error' },
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
|
|
28
|
+
'/v3/paymentSubscription/clientBillingSubscriptionInfo/{clientId}': {
|
|
29
|
+
get: {
|
|
30
|
+
tags: [ 'payment' ],
|
|
31
|
+
description: 'Get Client Details',
|
|
32
|
+
operationId: '',
|
|
33
|
+
parameters: [
|
|
34
|
+
{
|
|
35
|
+
in: 'path',
|
|
36
|
+
name: 'clientId',
|
|
37
|
+
schema: { type: 'string' },
|
|
38
|
+
required: true,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
responses: {
|
|
42
|
+
200: { description: 'Get Client Details Successfully' },
|
|
43
|
+
401: { description: 'Incorrect Update' },
|
|
44
|
+
422: { description: 'Field Error' },
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
|
|
49
|
+
'/v3/paymentSubscription/basePricing': {
|
|
50
|
+
post: {
|
|
51
|
+
tags: [ 'payment' ],
|
|
52
|
+
description: 'Get Client pricing Details',
|
|
53
|
+
operationId: '',
|
|
54
|
+
parameters: [],
|
|
55
|
+
requestBody: {
|
|
56
|
+
content: {
|
|
57
|
+
'application/json': {
|
|
58
|
+
schema: j2s( schema.validateProductsSchema ).swagger,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
responses: {
|
|
63
|
+
200: { description: 'Get Client pricing Details Successfully' },
|
|
64
|
+
401: { description: 'Incorrect Update' },
|
|
65
|
+
422: { description: 'Field Error' },
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
'/v3/paymentSubscription/update/subscription/{clientId}': {
|
|
71
|
+
put: {
|
|
72
|
+
tags: [ 'payment' ],
|
|
73
|
+
description: 'Update Subscription Clients',
|
|
74
|
+
operationId: '',
|
|
75
|
+
parameters: [
|
|
76
|
+
{
|
|
77
|
+
in: 'path',
|
|
78
|
+
name: 'clientId',
|
|
79
|
+
schema: {
|
|
80
|
+
type: 'string',
|
|
81
|
+
},
|
|
82
|
+
required: true,
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
requestBody: {
|
|
86
|
+
content: {
|
|
87
|
+
'application/json': {
|
|
88
|
+
schema: j2s( schema.validateUpdateSubscriptionSchema ).swagger,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
responses: {
|
|
93
|
+
200: { description: 'Subscription Details Updated Successfully' },
|
|
94
|
+
401: { description: 'Incorrect Update' },
|
|
95
|
+
422: { description: 'Field Error' },
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
|
|
100
|
+
'/v3/paymentSubscription/getTrialProducts': {
|
|
101
|
+
get: {
|
|
102
|
+
tags: [ 'payment' ],
|
|
103
|
+
description: 'Get Trial Products Details',
|
|
104
|
+
operationId: '',
|
|
105
|
+
parameters: [
|
|
106
|
+
{
|
|
107
|
+
in: 'query',
|
|
108
|
+
name: 'clientId',
|
|
109
|
+
schema: { type: 'string' },
|
|
110
|
+
required: true,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
responses: {
|
|
114
|
+
200: { description: 'Get Trial Products Details Successfully' },
|
|
115
|
+
401: { description: 'Incorrect Update' },
|
|
116
|
+
422: { description: 'Field Error' },
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
'/paymentSubscription/unsubscribe': {
|
|
121
|
+
post: {
|
|
122
|
+
tags: [ 'payment' ],
|
|
123
|
+
description: 'Unsubscribe Client',
|
|
124
|
+
operationId: '',
|
|
125
|
+
parameters: [],
|
|
126
|
+
requestBody: {
|
|
127
|
+
content: {
|
|
128
|
+
'application/json': {
|
|
129
|
+
schema: j2s( schema.validateunsubscribeSchema ).swagger,
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
responses: {
|
|
134
|
+
200: { description: 'Unsubscribed Successfully' },
|
|
135
|
+
401: { description: 'Incorrect Update' },
|
|
136
|
+
422: { description: 'Field Error' },
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
'/paymentSubscription/trialExtendRequest': {
|
|
141
|
+
post: {
|
|
142
|
+
tags: [ 'payment' ],
|
|
143
|
+
description: 'get Trail Extend Request',
|
|
144
|
+
operationId: '',
|
|
145
|
+
parameters: [],
|
|
146
|
+
requestBody: {
|
|
147
|
+
content: {
|
|
148
|
+
'application/json': {
|
|
149
|
+
schema: j2s( schema.validateTrialExtendandSubscibeSchema ).swagger,
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
responses: {
|
|
154
|
+
200: { description: 'Trail Extended Successfully' },
|
|
155
|
+
401: { description: 'Incorrect Update' },
|
|
156
|
+
422: { description: 'Field Error' },
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
'/paymentSubscription/trialRequest': {
|
|
161
|
+
post: {
|
|
162
|
+
tags: [ 'payment' ],
|
|
163
|
+
description: 'get Trail Request',
|
|
164
|
+
operationId: '',
|
|
165
|
+
parameters: [],
|
|
166
|
+
requestBody: {
|
|
167
|
+
content: {
|
|
168
|
+
'application/json': {
|
|
169
|
+
schema: j2s( schema.validateTrialExtendandSubscibeSchema ).swagger,
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
responses: {
|
|
174
|
+
200: { description: 'Trail Requested Successfully' },
|
|
175
|
+
401: { description: 'Incorrect Update' },
|
|
176
|
+
422: { description: 'Field Error' },
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
'/paymentSubscription/InvoiceDetails/{clientId}': {
|
|
181
|
+
get: {
|
|
182
|
+
tags: [ 'payment' ],
|
|
183
|
+
description: 'get Invoice Details',
|
|
184
|
+
operationId: '',
|
|
185
|
+
parameters: [ {
|
|
186
|
+
in: 'path',
|
|
187
|
+
name: 'clientId',
|
|
188
|
+
schema: { type: 'string' },
|
|
189
|
+
required: true,
|
|
190
|
+
} ],
|
|
191
|
+
responses: {
|
|
192
|
+
200: { description: 'Get Invoice Details Successfully' },
|
|
193
|
+
401: { description: 'Incorrect Update' },
|
|
194
|
+
422: { description: 'Field Error' },
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
},
|
|
198
|
+
'/paymentSubscription/update/InvoiceDetails/{clientId}': {
|
|
199
|
+
put: {
|
|
200
|
+
tags: [ 'payment' ],
|
|
201
|
+
description: 'get Update Invoice Details',
|
|
202
|
+
operationId: '',
|
|
203
|
+
parameters: [ {
|
|
204
|
+
in: 'path',
|
|
205
|
+
name: 'clientId',
|
|
206
|
+
schema: { type: 'string' },
|
|
207
|
+
required: true,
|
|
208
|
+
} ],
|
|
209
|
+
responses: {
|
|
210
|
+
200: { description: 'Invoice Details Updated Successfully' },
|
|
211
|
+
401: { description: 'Incorrect Update' },
|
|
212
|
+
422: { description: 'Field Error' },
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
},
|
|
216
|
+
'/paymentSubscription/admin/notificationList': {
|
|
217
|
+
get: {
|
|
218
|
+
tags: [ 'payment' ],
|
|
219
|
+
description: 'get Notification List',
|
|
220
|
+
operationId: '',
|
|
221
|
+
parameters: [],
|
|
222
|
+
requestBody: {
|
|
223
|
+
},
|
|
224
|
+
responses: {
|
|
225
|
+
200: { description: 'Get Notification List Successfully' },
|
|
226
|
+
401: { description: 'Incorrect Update' },
|
|
227
|
+
422: { description: 'Field Error' },
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
'/paymentSubscription/admin/trialApproval': {
|
|
232
|
+
post: {
|
|
233
|
+
tags: [ 'payment' ],
|
|
234
|
+
description: 'Trail Approval',
|
|
235
|
+
operationId: '',
|
|
236
|
+
parameters: [],
|
|
237
|
+
requestBody: {
|
|
238
|
+
content: {
|
|
239
|
+
'application/json': {
|
|
240
|
+
schema: j2s( schema.validateTrialandUnsubscribeSchema ).swagger,
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
responses: {
|
|
245
|
+
200: { description: 'Trail Approved Successfully' },
|
|
246
|
+
401: { description: 'Incorrect Update' },
|
|
247
|
+
422: { description: 'Field Error' },
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
'/paymentSubscription/admin/trialExtendApproval': {
|
|
252
|
+
post: {
|
|
253
|
+
tags: [ 'payment' ],
|
|
254
|
+
description: 'Trail Extend Approval',
|
|
255
|
+
operationId: '',
|
|
256
|
+
parameters: [],
|
|
257
|
+
requestBody: {
|
|
258
|
+
content: {
|
|
259
|
+
'application/json': {
|
|
260
|
+
schema: j2s( schema.validateTrialExtendRequestSchema ).swagger,
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
responses: {
|
|
265
|
+
200: { description: 'Trail Extended Successfully' },
|
|
266
|
+
401: { description: 'Incorrect Update' },
|
|
267
|
+
422: { description: 'Field Error' },
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
'/paymentSubscription/admin/subscribeproduct': {
|
|
272
|
+
post: {
|
|
273
|
+
tags: [ 'payment' ],
|
|
274
|
+
description: 'Subscribe Product',
|
|
275
|
+
operationId: '',
|
|
276
|
+
parameters: [],
|
|
277
|
+
requestBody: {
|
|
278
|
+
content: {
|
|
279
|
+
'application/json': {
|
|
280
|
+
schema: j2s( schema.validateSubscibeSchema ).swagger,
|
|
281
|
+
},
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
responses: {
|
|
285
|
+
200: { description: 'Subscribed Product Successfully' },
|
|
286
|
+
401: { description: 'Incorrect Update' },
|
|
287
|
+
422: { description: 'Field Error' },
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
'/paymentSubscription/admin/unsubscribeApproval': {
|
|
292
|
+
post: {
|
|
293
|
+
tags: [ 'payment' ],
|
|
294
|
+
description: 'UnSubscribe Product',
|
|
295
|
+
operationId: '',
|
|
296
|
+
parameters: [],
|
|
297
|
+
requestBody: {
|
|
298
|
+
content: {
|
|
299
|
+
'application/json': {
|
|
300
|
+
schema: j2s( schema.validateTrialandUnsubscribeSchema ).swagger,
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
},
|
|
304
|
+
responses: {
|
|
305
|
+
200: { description: 'UnSubscribed Successfully' },
|
|
306
|
+
401: { description: 'Incorrect Update' },
|
|
307
|
+
422: { description: 'Field Error' },
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
'/paymentSubscription/admin/getProductViewList': {
|
|
312
|
+
get: {
|
|
313
|
+
tags: [ 'payment' ],
|
|
314
|
+
description: 'Product View List',
|
|
315
|
+
operationId: '',
|
|
316
|
+
parameters: [
|
|
317
|
+
{
|
|
318
|
+
in: 'query',
|
|
319
|
+
name: 'clientId',
|
|
320
|
+
schema: { type: 'string' },
|
|
321
|
+
required: true,
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
in: 'query',
|
|
325
|
+
name: 'sortColumn',
|
|
326
|
+
schema: { type: 'string' },
|
|
327
|
+
required: true,
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
in: 'query',
|
|
331
|
+
name: 'sortBy',
|
|
332
|
+
schema: { type: 'string' },
|
|
333
|
+
required: true,
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
responses: {
|
|
337
|
+
200: { description: 'Product List view Details Successfully' },
|
|
338
|
+
401: { description: 'Incorrect Update' },
|
|
339
|
+
422: { description: 'Field Error' },
|
|
340
|
+
},
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
'/paymentSubscription/admin/getstoreViewList': {
|
|
344
|
+
post: {
|
|
345
|
+
tags: [ 'payment' ],
|
|
346
|
+
description: 'Store View List',
|
|
347
|
+
operationId: '',
|
|
348
|
+
parameters: [
|
|
349
|
+
{
|
|
350
|
+
in: 'query',
|
|
351
|
+
name: 'clientId',
|
|
352
|
+
schema: { type: 'string' },
|
|
353
|
+
required: true,
|
|
354
|
+
},
|
|
355
|
+
],
|
|
356
|
+
requestBody: {
|
|
357
|
+
content: {
|
|
358
|
+
'application/json': {
|
|
359
|
+
schema: j2s( schema.validateStoreViewSchema ).swagger,
|
|
360
|
+
},
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
responses: {
|
|
364
|
+
200: { description: 'Store List view Details Successfully' },
|
|
365
|
+
401: { description: 'Incorrect Update' },
|
|
366
|
+
422: { description: 'Field Error' },
|
|
367
|
+
},
|
|
368
|
+
},
|
|
369
|
+
},
|
|
370
|
+
'/paymentSubscription/admin/getStoreLocationList': {
|
|
371
|
+
get: {
|
|
372
|
+
tags: [ 'payment' ],
|
|
373
|
+
description: 'Store Location List',
|
|
374
|
+
operationId: '',
|
|
375
|
+
parameters: [
|
|
376
|
+
{
|
|
377
|
+
in: 'query',
|
|
378
|
+
name: 'clientId',
|
|
379
|
+
schema: { type: 'string' },
|
|
380
|
+
required: true,
|
|
381
|
+
},
|
|
382
|
+
],
|
|
383
|
+
responses: {
|
|
384
|
+
200: { description: 'Store Location List view Details Successfully' },
|
|
385
|
+
401: { description: 'Incorrect Update' },
|
|
386
|
+
422: { description: 'Field Error' },
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
'/paymentSubscription/admin/addStoreProduct': {
|
|
391
|
+
post: {
|
|
392
|
+
tags: [ 'payment' ],
|
|
393
|
+
description: 'Add Store Product',
|
|
394
|
+
operationId: '',
|
|
395
|
+
parameters: [
|
|
396
|
+
{
|
|
397
|
+
in: 'query',
|
|
398
|
+
name: 'clientId',
|
|
399
|
+
schema: { type: 'string' },
|
|
400
|
+
required: true,
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
requestBody: {
|
|
404
|
+
content: {
|
|
405
|
+
'application/json': {
|
|
406
|
+
schema: j2s( schema.validateAddStoreProductSchema ).swagger,
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
responses: {
|
|
411
|
+
200: { description: 'Store Product Added Successfully' },
|
|
412
|
+
401: { description: 'Incorrect Update' },
|
|
413
|
+
422: { description: 'Field Error' },
|
|
414
|
+
},
|
|
415
|
+
},
|
|
416
|
+
},
|
|
417
|
+
'/paymentSubscription/invoiceList': {
|
|
418
|
+
post: {
|
|
419
|
+
tags: [ 'payment' ],
|
|
420
|
+
description: 'Invoice List',
|
|
421
|
+
operationId: '',
|
|
422
|
+
parameters: [
|
|
423
|
+
{
|
|
424
|
+
in: 'query',
|
|
425
|
+
name: 'clientId',
|
|
426
|
+
schema: { type: 'string' },
|
|
427
|
+
required: true,
|
|
428
|
+
},
|
|
429
|
+
],
|
|
430
|
+
requestBody: {
|
|
431
|
+
content: {
|
|
432
|
+
'application/json': {
|
|
433
|
+
schema: j2s( schema.validateInvoiceSchema ).swagger,
|
|
434
|
+
},
|
|
435
|
+
},
|
|
436
|
+
},
|
|
437
|
+
responses: {
|
|
438
|
+
200: { description: '' },
|
|
439
|
+
401: { description: 'Incorrect Update' },
|
|
440
|
+
422: { description: 'Field Error' },
|
|
441
|
+
},
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
'/paymentSubscription/admin/priceList': {
|
|
445
|
+
post: {
|
|
446
|
+
tags: [ 'payment' ],
|
|
447
|
+
description: 'Price List',
|
|
448
|
+
operationId: '',
|
|
449
|
+
parameters: [
|
|
450
|
+
{
|
|
451
|
+
in: 'query',
|
|
452
|
+
name: 'clientId',
|
|
453
|
+
schema: { type: 'string' },
|
|
454
|
+
required: true,
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
requestBody: {
|
|
458
|
+
content: {
|
|
459
|
+
'application/json': {
|
|
460
|
+
schema: j2s( schema.validatePriceListSchema ).swagger,
|
|
461
|
+
},
|
|
462
|
+
},
|
|
463
|
+
},
|
|
464
|
+
responses: {
|
|
465
|
+
200: { description: 'PriceList Added Successfully' },
|
|
466
|
+
401: { description: 'Incorrect Update' },
|
|
467
|
+
422: { description: 'Field Error' },
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
'/paymentSubscription/admin/pricing': {
|
|
472
|
+
post: {
|
|
473
|
+
tags: [ 'payment' ],
|
|
474
|
+
description: 'Pricing',
|
|
475
|
+
operationId: '',
|
|
476
|
+
parameters: [
|
|
477
|
+
{
|
|
478
|
+
in: 'query',
|
|
479
|
+
name: 'clientId',
|
|
480
|
+
schema: { type: 'string' },
|
|
481
|
+
required: true,
|
|
482
|
+
},
|
|
483
|
+
],
|
|
484
|
+
requestBody: {
|
|
485
|
+
content: {
|
|
486
|
+
'application/json': {
|
|
487
|
+
schema: j2s( schema.validatePriceSchema ).swagger,
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
responses: {
|
|
492
|
+
200: { description: 'Pricing Added Successfully' },
|
|
493
|
+
401: { description: 'Incorrect Update' },
|
|
494
|
+
422: { description: 'Field Error' },
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
},
|
|
498
|
+
'/paymentSubscription/creditNotes': {
|
|
499
|
+
post: {
|
|
500
|
+
tags: [ 'payment' ],
|
|
501
|
+
description: 'Pricing',
|
|
502
|
+
operationId: '',
|
|
503
|
+
parameters: [
|
|
504
|
+
{
|
|
505
|
+
in: 'query',
|
|
506
|
+
name: 'clientId',
|
|
507
|
+
schema: { type: 'string' },
|
|
508
|
+
required: true,
|
|
509
|
+
},
|
|
510
|
+
],
|
|
511
|
+
requestBody: {
|
|
512
|
+
content: {
|
|
513
|
+
'application/json': {
|
|
514
|
+
schema: j2s( schema.revisedSchema ).swagger,
|
|
515
|
+
},
|
|
516
|
+
},
|
|
517
|
+
},
|
|
518
|
+
responses: {
|
|
519
|
+
200: { description: 'CreditNoted Updated Successfully' },
|
|
520
|
+
401: { description: 'Incorrect Update' },
|
|
521
|
+
422: { description: 'Field Error' },
|
|
522
|
+
},
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
'/paymentSubscription/creditNotes/invoiceList/{clientId}': {
|
|
526
|
+
get: {
|
|
527
|
+
tags: [ 'payment' ],
|
|
528
|
+
description: 'get Invoice List',
|
|
529
|
+
operationId: '',
|
|
530
|
+
parameters: [ {
|
|
531
|
+
in: 'path',
|
|
532
|
+
name: 'clientId',
|
|
533
|
+
schema: { type: 'string' },
|
|
534
|
+
required: true,
|
|
535
|
+
} ],
|
|
536
|
+
responses: {
|
|
537
|
+
200: { description: 'Get Invoice Details Successfully' },
|
|
538
|
+
401: { description: 'Incorrect Update' },
|
|
539
|
+
422: { description: 'Field Error' },
|
|
540
|
+
},
|
|
541
|
+
},
|
|
542
|
+
},
|
|
543
|
+
'/paymentSubscription/admin/getStoreProducts': {
|
|
544
|
+
post: {
|
|
545
|
+
tags: [ 'payment' ],
|
|
546
|
+
description: 'Get Store Products',
|
|
547
|
+
operationId: '',
|
|
548
|
+
parameters: [
|
|
549
|
+
{
|
|
550
|
+
in: 'query',
|
|
551
|
+
name: 'clientId',
|
|
552
|
+
schema: { type: 'string' },
|
|
553
|
+
required: true,
|
|
554
|
+
},
|
|
555
|
+
],
|
|
556
|
+
requestBody: {
|
|
557
|
+
content: {
|
|
558
|
+
'application/json': {
|
|
559
|
+
schema: j2s( schema.validateStoreProductsSchema ).swagger,
|
|
560
|
+
},
|
|
561
|
+
},
|
|
562
|
+
},
|
|
563
|
+
responses: {
|
|
564
|
+
200: { description: 'Store Products Updated Successfully' },
|
|
565
|
+
401: { description: 'Incorrect Update' },
|
|
566
|
+
422: { description: 'Field Error' },
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
},
|
|
570
|
+
'/paymentSubscription/admin/getStoreProducts': {
|
|
571
|
+
post: {
|
|
572
|
+
tags: [ 'payment' ],
|
|
573
|
+
description: 'Get Store Products',
|
|
574
|
+
operationId: '',
|
|
575
|
+
parameters: [
|
|
576
|
+
{
|
|
577
|
+
in: 'query',
|
|
578
|
+
name: 'clientId',
|
|
579
|
+
schema: { type: 'string' },
|
|
580
|
+
required: true,
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
requestBody: {
|
|
584
|
+
content: {
|
|
585
|
+
'application/json': {
|
|
586
|
+
schema: j2s( schema.validateStoreProductsSchema ).swagger,
|
|
587
|
+
},
|
|
588
|
+
},
|
|
589
|
+
},
|
|
590
|
+
responses: {
|
|
591
|
+
200: { description: 'Store Products Updated Successfully' },
|
|
592
|
+
401: { description: 'Incorrect Update' },
|
|
593
|
+
422: { description: 'Field Error' },
|
|
594
|
+
},
|
|
595
|
+
},
|
|
596
|
+
},
|
|
597
|
+
'/v3/paymentSubscription/trialRemaindList': {
|
|
598
|
+
get: {
|
|
599
|
+
tags: [ 'payment' ],
|
|
600
|
+
description: 'Get Trail Remind List',
|
|
601
|
+
operationId: '',
|
|
602
|
+
parameters: [],
|
|
603
|
+
requestBody: {
|
|
604
|
+
},
|
|
605
|
+
responses: {
|
|
606
|
+
200: { description: 'Trail Remind List Details Successfully' },
|
|
607
|
+
401: { description: 'Incorrect Update' },
|
|
608
|
+
422: { description: 'Field Error' },
|
|
609
|
+
},
|
|
610
|
+
},
|
|
611
|
+
},
|
|
612
|
+
'/v3/paymentSubscription/trialExpiredList': {
|
|
613
|
+
get: {
|
|
614
|
+
tags: [ 'payment' ],
|
|
615
|
+
description: 'Get Trail Expired List',
|
|
616
|
+
operationId: '',
|
|
617
|
+
parameters: [],
|
|
618
|
+
requestBody: {
|
|
619
|
+
},
|
|
620
|
+
responses: {
|
|
621
|
+
200: { description: 'Trail Expired List Details Successfully' },
|
|
622
|
+
401: { description: 'Incorrect Update' },
|
|
623
|
+
422: { description: 'Field Error' },
|
|
624
|
+
},
|
|
625
|
+
},
|
|
626
|
+
},
|
|
627
|
+
'/v3/paymentSubscription/invoiceDownload': {
|
|
628
|
+
post: {
|
|
629
|
+
tags: [ 'payment' ],
|
|
630
|
+
description: 'Get Invoice Download',
|
|
631
|
+
operationId: '',
|
|
632
|
+
parameters: [],
|
|
633
|
+
requestBody: {
|
|
634
|
+
},
|
|
635
|
+
responses: {
|
|
636
|
+
200: { description: 'Invoice Downloaded Successfully' },
|
|
637
|
+
401: { description: 'Incorrect Update' },
|
|
638
|
+
422: { description: 'Field Error' },
|
|
639
|
+
},
|
|
640
|
+
},
|
|
641
|
+
},
|
|
642
|
+
'/v3/paymentSubscription/invoiceStatusUpdate/{invoiceId}': {
|
|
643
|
+
post: {
|
|
644
|
+
tags: [ 'payment' ],
|
|
645
|
+
description: 'Get Invoice Status Update',
|
|
646
|
+
operationId: '',
|
|
647
|
+
parameters: [],
|
|
648
|
+
requestBody: {
|
|
649
|
+
},
|
|
650
|
+
responses: {
|
|
651
|
+
200: { description: 'Invoice Status Updated Successfully' },
|
|
652
|
+
401: { description: 'Incorrect Update' },
|
|
653
|
+
422: { description: 'Field Error' },
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
},
|
|
657
|
+
'/v3/paymentSubscription/invoice/create': {
|
|
658
|
+
post: {
|
|
659
|
+
tags: [ 'payment' ],
|
|
660
|
+
description: 'Get Invoice Create',
|
|
661
|
+
operationId: '',
|
|
662
|
+
parameters: [],
|
|
663
|
+
requestBody: {
|
|
664
|
+
},
|
|
665
|
+
responses: {
|
|
666
|
+
200: { description: 'Invoice Created Successfully' },
|
|
667
|
+
401: { description: 'Incorrect Update' },
|
|
668
|
+
422: { description: 'Field Error' },
|
|
669
|
+
},
|
|
670
|
+
},
|
|
671
|
+
},
|
|
672
|
+
};
|
|
673
|
+
|