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,198 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<style type = "text/css">
|
|
6
|
+
</style>
|
|
7
|
+
</head>
|
|
8
|
+
|
|
9
|
+
<body>
|
|
10
|
+
|
|
11
|
+
<div>
|
|
12
|
+
<div class="header">
|
|
13
|
+
<svg class="tango-eye-logo-color-option-03" width="230" height="57" viewBox="0 0 230 57" fill="none"
|
|
14
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
15
|
+
<path d="M63.8252 13.75H83.127V15.9331H74.6799V40.3642H72.2484V15.9331H63.8252V13.75Z" fill="#0066CC"
|
|
16
|
+
stroke="#0066CC" stroke-width="1.21" stroke-miterlimit="10" />
|
|
17
|
+
<path
|
|
18
|
+
d="M83.123 34.7872C83.123 30.8354 86.2818 29.579 90.7908 29.0169C94.1449 28.6002 96.0162 28.5829 96.0162 27.0638V26.5951C96.0162 23.8672 94.3403 22.2049 91.3118 22.2049C88.4266 22.2049 86.6204 23.6719 85.8845 25.3885L83.6875 24.5942C85.04 21.3391 88.1857 20.126 91.2402 20.126C94.2947 20.126 98.324 21.4497 98.324 26.8034V40.3644H96.0162V37.2025H95.8751C95.0415 38.9712 93.0138 40.8158 89.688 40.8158C86.0603 40.8158 83.123 38.6283 83.123 34.7872ZM96.0162 32.7083V29.822C95.3411 30.4861 92.4299 30.8485 90.7908 31.0438C87.4128 31.4604 85.4373 32.4739 85.4373 34.8892C85.4373 37.3045 87.3911 38.6977 89.9962 38.6977C93.6912 38.6977 96.0162 35.9808 96.0162 32.7083Z"
|
|
19
|
+
fill="#0066CC" stroke="#0066CC" stroke-width="1.21" stroke-miterlimit="10" />
|
|
20
|
+
<path
|
|
21
|
+
d="M104.781 40.3638H102.469V20.3989H104.718V23.5303H104.935C105.871 21.4904 107.885 20.1406 110.809 20.1406C114.839 20.1406 117.583 22.6992 117.583 27.43V40.3638H115.258V27.5732C115.258 24.3181 113.282 22.2608 110.215 22.2608C107.069 22.2608 104.787 24.4027 104.787 27.8857L104.781 40.3638Z"
|
|
22
|
+
fill="#0066CC" stroke="#0066CC" stroke-width="1.21" stroke-miterlimit="10" />
|
|
23
|
+
<path
|
|
24
|
+
d="M121.485 44.2576L123.383 43.0119C124.227 44.531 125.864 46.1824 129.283 46.1824C132.82 46.1824 135.197 44.4464 135.197 40.7376V36.2412H134.98C134.185 38.0728 132.431 40.1474 128.845 40.1474C124.069 40.1474 120.628 36.4452 120.628 30.3255C120.628 24.2492 123.943 20.126 128.877 20.126C132.544 20.126 134.194 22.4111 135.015 24.2058H135.247V20.3994H137.509V40.8787C137.509 45.9459 134.001 48.2571 129.26 48.2571C125.202 48.2614 122.658 46.5448 121.485 44.2576ZM135.236 30.2908C135.236 25.612 133.041 22.2353 129.127 22.2353C125.124 22.2353 122.966 25.7943 122.966 30.2908C122.966 34.8632 125.163 38.0337 129.127 38.0337C132.976 38.0337 135.236 35.1106 135.236 30.2908Z"
|
|
25
|
+
fill="#0066CC" stroke="#0066CC" stroke-width="1.21" stroke-miterlimit="10" />
|
|
26
|
+
<path
|
|
27
|
+
d="M140.62 30.4726C140.62 24.3529 144.235 20.1299 149.408 20.1299C154.581 20.1299 158.194 24.3529 158.194 30.4726C158.194 36.5489 154.581 40.7763 149.408 40.7763C144.235 40.7763 140.62 36.5532 140.62 30.4726ZM155.869 30.4726C155.869 26.0022 153.555 22.2262 149.408 22.2262C145.262 22.2262 142.947 25.9935 142.947 30.4726C142.947 34.9517 145.262 38.6582 149.408 38.6582C153.555 38.6582 155.873 34.9387 155.873 30.4726H155.869Z"
|
|
28
|
+
fill="#0066CC" stroke="#0066CC" stroke-width="1.21" stroke-miterlimit="10" />
|
|
29
|
+
<path
|
|
30
|
+
d="M161.301 13.7393H176.743V15.9224H163.732V25.9418H175.926V28.1249H163.732V38.1681H177.005V40.3513H161.301V13.7393Z"
|
|
31
|
+
fill="#0066CC" stroke="#0066CC" stroke-width="1.21" stroke-miterlimit="10" />
|
|
32
|
+
<path
|
|
33
|
+
d="M180.637 47.4194L181.26 45.3795C183.613 46.1195 185.168 45.5965 186.279 42.5736L187.006 40.5467L179.662 20.3994H182.17L188.098 37.3045H188.281L194.207 20.3994H196.717L188.268 43.5089C187.202 46.406 185.367 47.8361 182.873 47.8361C182.107 47.8477 181.347 47.706 180.637 47.4194Z"
|
|
34
|
+
fill="#0066CC" stroke="#0066CC" stroke-width="1.21" stroke-miterlimit="10" />
|
|
35
|
+
<path
|
|
36
|
+
d="M198.188 30.4879C198.188 24.4463 201.761 20.1191 206.934 20.1191C211.263 20.1191 215.384 23.2506 215.384 29.9172V31.0608H200.515C200.617 35.6723 203.205 38.6562 207.286 38.6562C210.108 38.6562 211.927 37.174 212.694 35.3815L214.891 36.0955C213.981 38.6041 211.289 40.7742 207.292 40.7742C201.696 40.7677 198.188 36.5447 198.188 30.4879ZM213.019 29.0209C213.019 25.1733 210.51 22.2241 206.941 22.2241C203.289 22.2241 200.78 25.3035 200.534 29.0209H213.019Z"
|
|
37
|
+
fill="#0066CC" stroke="#0066CC" stroke-width="1.21" stroke-miterlimit="10" />
|
|
38
|
+
<path
|
|
39
|
+
d="M52.1853 39.3987L50.7459 37.96L35.2628 22.4828L39.8543 17.8887L40.9572 16.7884C41.0626 16.6827 41.1217 16.5395 41.1217 16.3902C41.1217 16.2409 41.0626 16.0977 40.9572 15.992L39.8543 14.8896L34.9762 10.009L33.8669 8.8979C33.7611 8.79255 33.6179 8.7334 33.4685 8.7334C33.3192 8.7334 33.176 8.79255 33.0702 8.8979L31.9673 10.0025L25.9951 15.9703C25.8896 16.0764 25.8303 16.2199 25.8303 16.3696C25.8303 16.5192 25.8896 16.6628 25.9951 16.7689L31.7003 22.4741L16.2215 37.96L14.7822 39.3987C14.7298 39.4507 14.6882 39.5126 14.6599 39.5808C14.6315 39.6489 14.617 39.7221 14.6172 39.7959C14.6169 39.87 14.6313 39.9435 14.6596 40.0121C14.6878 40.0807 14.7294 40.143 14.7819 40.1955C14.8343 40.2479 14.8967 40.2895 14.9653 40.3177C15.0339 40.346 15.1074 40.3604 15.1816 40.3601H29.1212C29.1953 40.3604 29.2688 40.346 29.3372 40.3177C29.4057 40.2894 29.4679 40.2478 29.5202 40.1954C29.5725 40.1429 29.6139 40.0805 29.6419 40.012C29.6699 39.9434 29.6841 39.8699 29.6835 39.7959V38.4113C29.6841 38.3372 29.67 38.2636 29.642 38.1949C29.614 38.1262 29.5726 38.0638 29.5204 38.0111C29.4681 37.9585 29.4059 37.9167 29.3374 37.8881C29.2689 37.8596 29.1954 37.8449 29.1212 37.8449H19.8904L33.4848 24.2601L47.0771 37.8449H37.7746C37.7002 37.8447 37.6265 37.8591 37.5577 37.8875C37.489 37.9159 37.4265 37.9576 37.374 38.0103C37.3215 38.063 37.28 38.1256 37.2519 38.1944C37.2238 38.2633 37.2096 38.337 37.2101 38.4113V39.7959C37.209 39.8705 37.2228 39.9446 37.2507 40.0138C37.2786 40.083 37.32 40.146 37.3726 40.1989C37.4252 40.2519 37.4878 40.2938 37.5569 40.3223C37.6259 40.3507 37.6999 40.365 37.7746 40.3644H51.7902C51.8675 40.3651 51.9442 40.3496 52.0152 40.319C52.0862 40.2883 52.1501 40.2432 52.2026 40.1865C52.3004 40.0816 52.3547 39.9436 52.3546 39.8002C52.3548 39.7254 52.3399 39.6512 52.3108 39.5823C52.2817 39.5133 52.239 39.4509 52.1853 39.3987ZM33.474 12.0554L37.8006 16.3826L33.4848 20.7055L29.1581 16.3783L33.474 12.0554Z"
|
|
40
|
+
fill="url(#paint0_linear_7342_55182)" />
|
|
41
|
+
<defs>
|
|
42
|
+
<linearGradient id="paint0_linear_7342_55182" x1="14.6172" y1="24.5509" x2="52.3503" y2="24.5509"
|
|
43
|
+
gradientUnits="userSpaceOnUse">
|
|
44
|
+
<stop stop-color="#794FD9" />
|
|
45
|
+
<stop offset="1" stop-color="#33B1F7" />
|
|
46
|
+
</linearGradient>
|
|
47
|
+
</defs>
|
|
48
|
+
</svg>
|
|
49
|
+
<table border="0" style="border:none; margin-top:0px; !important">
|
|
50
|
+
<tr style="border:none">
|
|
51
|
+
<td style="width:50%;border:none">
|
|
52
|
+
<div style="font-size:20px;"><b>Tango Eye IT Solutions</b></div>
|
|
53
|
+
<div class="margin-top:0px;">2nd Floor, Apeejay Business Centre,</div>
|
|
54
|
+
<div style="margin-top:0px;">No 12 Haddows Road, Nungambakkam</div>
|
|
55
|
+
<div class="margin-top:0px;">Chennai Tamil Nadu 600006</div>
|
|
56
|
+
<div class="margin-top:0px;">GSTIN 33AAGCT3124R1Z2</div>
|
|
57
|
+
</td>
|
|
58
|
+
<td style="width:50%;border:none;">
|
|
59
|
+
<div style="font-size:20px;margin-left:80px">
|
|
60
|
+
<b> <span>Invoice </span>
|
|
61
|
+
<span style="color:#009bf3 !important">{{data.invoice}}</span></b>
|
|
62
|
+
</div>
|
|
63
|
+
<div style="font-size:15px;margin-left:130px;margin-top:0px;"><span>Invoice Date: </span><span>{{data.invoiceDate}}</span></div>
|
|
64
|
+
<div style="font-size:15px;margin-left:130px;margin-top:0px;"><span>Terms : </span><span>Due on Receipt</span></div>
|
|
65
|
+
<div style="font-size:15px;margin-left:130px;margin-top:0px;"><span>Due Date : </span><span>{{data.dueDate}}</span></div>
|
|
66
|
+
</td>
|
|
67
|
+
</tr>
|
|
68
|
+
</table>
|
|
69
|
+
<table>
|
|
70
|
+
<tr style="gap:60px;">
|
|
71
|
+
<td style="width:50%;border:1px solid grey;margin-left:20px;border-radius:12px !important; position:relative">
|
|
72
|
+
<div style="font-size:20px"><b>Bill to</b></div>
|
|
73
|
+
<div style="font-size:15px;margin-top:0px">{{data.clientName}}</div>
|
|
74
|
+
<div style="font-size:15px;margin-top:0px;line-height:2px;">{{data.address}}</div>
|
|
75
|
+
<div style="font-size:15px;margin-top:0px">Issued On: {{data.invoiceDate}}</div>
|
|
76
|
+
</td>
|
|
77
|
+
<td style="width:50%;border:1px solid grey;margin-left:20px;border-radius:50%">
|
|
78
|
+
<div style="font-size:20px"><b>Ship to</b></div>
|
|
79
|
+
<div style="font-size:15px;margin-top:0px">{{data.clientName}}</div>
|
|
80
|
+
<div style="font-size:15px;margin-top:0px;line-height:2px;">{{data.address}}</div>
|
|
81
|
+
<div style="font-size:15px;margin-top:0px">Issued On: {{data.invoiceDate}}</div>
|
|
82
|
+
</td>
|
|
83
|
+
</tr>
|
|
84
|
+
</table>
|
|
85
|
+
<div class="font-weight:100px"><b>Invoice Details:</b></div>
|
|
86
|
+
<table style="border:none">
|
|
87
|
+
<tr style="border:none;height:40px;margin-top:10px;">
|
|
88
|
+
<th style="width:300px;">Description</th>
|
|
89
|
+
<th style="width:120px;">Price</th>
|
|
90
|
+
<th style="width:120px;">Stores</th>
|
|
91
|
+
<th style="width:120px;">Total Amount</th>
|
|
92
|
+
</tr>
|
|
93
|
+
{{#each data.products}}
|
|
94
|
+
<tr style="border:none;margin-top:10px;">
|
|
95
|
+
<td>{{product.product}}</td>
|
|
96
|
+
<td><span style="font-size:15px">{{../data.currencyType}} </span>{{basePrice}}</td>
|
|
97
|
+
<td>{{count}}</td>
|
|
98
|
+
<td><span style="font-size:15px">{{../data.currencyType}} </span> {{price}}</td>
|
|
99
|
+
</tr>
|
|
100
|
+
{{/each}}
|
|
101
|
+
<tr style="border:none;">
|
|
102
|
+
<td></td>
|
|
103
|
+
<td></td>
|
|
104
|
+
<td></td>
|
|
105
|
+
<td></td>
|
|
106
|
+
</tr>
|
|
107
|
+
<tr style="border:none;border-top: 5px solid #eaecf0;margin-top:10px;">
|
|
108
|
+
<td>Sub Total</td>
|
|
109
|
+
<td></td>
|
|
110
|
+
<td></td>
|
|
111
|
+
<td><span style="font-size:15px">{{data.currencyType}} </span> {{data.amount}}</td>
|
|
112
|
+
</tr>
|
|
113
|
+
<tr style="border:none;margin-top:10px;">
|
|
114
|
+
<td>IGST</td>
|
|
115
|
+
<td></td>
|
|
116
|
+
<td></td>
|
|
117
|
+
<td>0%</td>
|
|
118
|
+
</tr>
|
|
119
|
+
<tr style="border:none;margin-top:10px;">
|
|
120
|
+
<td>Total</td>
|
|
121
|
+
<td></td>
|
|
122
|
+
<td></td>
|
|
123
|
+
<td><span style="font-size:15px">{{data.currencyType}} </span> {{data.total}}</td>
|
|
124
|
+
</tr>
|
|
125
|
+
<tr style="border:none;margin-top:10px;">
|
|
126
|
+
<td>Discount</td>
|
|
127
|
+
<td></td>
|
|
128
|
+
<td></td>
|
|
129
|
+
<td>0%(-$0)</td>
|
|
130
|
+
</tr>
|
|
131
|
+
<tr style="border:none;">
|
|
132
|
+
<td></td>
|
|
133
|
+
<td></td>
|
|
134
|
+
<td></td>
|
|
135
|
+
<td></td>
|
|
136
|
+
</tr>
|
|
137
|
+
<tr style="border:none;border-top: 5px solid #eaecf0;margin-top:10px;">
|
|
138
|
+
<td>Final Value</td>
|
|
139
|
+
<td></td>
|
|
140
|
+
<td></td>
|
|
141
|
+
<td><span style="font-size:15px">{{data.currencyType}} </span> {{data.total}}</td>
|
|
142
|
+
</tr>
|
|
143
|
+
</table>
|
|
144
|
+
<br/>
|
|
145
|
+
<br/>
|
|
146
|
+
<br/>
|
|
147
|
+
<br/>
|
|
148
|
+
<br/>
|
|
149
|
+
<br/>
|
|
150
|
+
<br/>
|
|
151
|
+
<br/>
|
|
152
|
+
<br/>
|
|
153
|
+
<table style="border:none">
|
|
154
|
+
<tr style="border:none;margin-top:10px;">
|
|
155
|
+
<td><b>Thanks for your business</b></td>
|
|
156
|
+
<td></td>
|
|
157
|
+
<td></td>
|
|
158
|
+
</tr>
|
|
159
|
+
<tr style="border:none;margin-top:10px;">
|
|
160
|
+
<td>Beneficiary Name</td>
|
|
161
|
+
<td></td>
|
|
162
|
+
<td></td>
|
|
163
|
+
</tr>
|
|
164
|
+
<tr style="border:none;margin-top:10px;">
|
|
165
|
+
<td><b>Tango IT Solutions India Private Limited</b></td>
|
|
166
|
+
<td></td>
|
|
167
|
+
<td></td>
|
|
168
|
+
</tr>
|
|
169
|
+
<tr style="border:none;margin-top:10px;">
|
|
170
|
+
<td></td>
|
|
171
|
+
<td></td>
|
|
172
|
+
<td></td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr style="border:none;margin-top:10px;">
|
|
175
|
+
<td>Account Number</td>
|
|
176
|
+
<td>IFSC Code</td>
|
|
177
|
+
<td>Payment Type</td>
|
|
178
|
+
</tr>
|
|
179
|
+
<tr style="border:none;margin-top:10px;">
|
|
180
|
+
<td><b>50200027441433</b></td>
|
|
181
|
+
<td><b>HDFC0000269</b></td>
|
|
182
|
+
<td><b>Virtual Ac</b></td>
|
|
183
|
+
</tr>
|
|
184
|
+
<tr style="border:none;margin-top:10px;">
|
|
185
|
+
<td>SWIFT Code</td>
|
|
186
|
+
<td>Branch</td>
|
|
187
|
+
<td></td>
|
|
188
|
+
</tr>
|
|
189
|
+
<tr style="border:none;margin-top:10px;">
|
|
190
|
+
<td><b>HDFCINBBCHE</b></td>
|
|
191
|
+
<td><b>RS Puram, Coimbatore</b></td>
|
|
192
|
+
<td></td>
|
|
193
|
+
</tr>
|
|
194
|
+
</table>
|
|
195
|
+
</div>
|
|
196
|
+
</div>
|
|
197
|
+
</body>
|
|
198
|
+
</html>
|