@driveflux/pdf 2.0.12 → 3.0.0-next.0

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 (54) hide show
  1. package/dist/__mocks__/quotation.js +11 -10
  2. package/dist/__mocks__/subscription.d.ts.map +1 -1
  3. package/dist/__mocks__/subscription.js +143 -421
  4. package/dist/__mocks__/subscription.js.map +1 -1
  5. package/dist/__mocks__/tou.js +10 -9
  6. package/dist/components/FluxLogo.js +3 -62
  7. package/dist/components/StandardPage.js +10 -99
  8. package/dist/debug.js +27 -206
  9. package/dist/debug.js.map +1 -1
  10. package/dist/index.js +1 -0
  11. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.d.ts.map +1 -1
  12. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js +27 -145
  13. package/dist/templates/QuotationPdf/CustomerSubscriptionSection.js.map +1 -1
  14. package/dist/templates/QuotationPdf/GFV.js +12 -49
  15. package/dist/templates/QuotationPdf/Header.js +5 -63
  16. package/dist/templates/QuotationPdf/Pricing.d.ts.map +1 -1
  17. package/dist/templates/QuotationPdf/Pricing.js +201 -573
  18. package/dist/templates/QuotationPdf/Pricing.js.map +1 -1
  19. package/dist/templates/QuotationPdf/QuotationPdfPage.js +3 -23
  20. package/dist/templates/QuotationPdf/SectionBoxNew.js +4 -34
  21. package/dist/templates/QuotationPdf/TermsSection.js +5 -42
  22. package/dist/templates/QuotationPdf/TermsSection.js.map +1 -1
  23. package/dist/templates/QuotationPdf/VehiclePhotos.js +24 -54
  24. package/dist/templates/QuotationPdf/VehiclePhotos.js.map +1 -1
  25. package/dist/templates/QuotationPdf/index.js +11 -190
  26. package/dist/templates/QuotationPdf/index.js.map +1 -1
  27. package/dist/templates/QuotationPdf/translations.js +22 -34
  28. package/dist/templates/QuotationPdf/utils.d.ts +2 -2
  29. package/dist/templates/QuotationPdf/utils.js +29 -59
  30. package/dist/templates/QuotationPdf/utils.js.map +1 -1
  31. package/dist/templates/SubscriptionAgreement/Confirmation.js +10 -65
  32. package/dist/templates/SubscriptionAgreement/CoverPage.js +10 -93
  33. package/dist/templates/SubscriptionAgreement/CoverPageSection.js +5 -16
  34. package/dist/templates/SubscriptionAgreement/Details.js +51 -129
  35. package/dist/templates/SubscriptionAgreement/Details.js.map +1 -1
  36. package/dist/templates/SubscriptionAgreement/Footer.js +6 -48
  37. package/dist/templates/SubscriptionAgreement/Header.js +5 -35
  38. package/dist/templates/SubscriptionAgreement/LabelValue.js +3 -25
  39. package/dist/templates/SubscriptionAgreement/SubscriptionAgreementPage.js +3 -26
  40. package/dist/templates/SubscriptionAgreement/TermsOfUse.js +8 -94
  41. package/dist/templates/SubscriptionAgreement/TermsOfUseSubSection.js +11 -97
  42. package/dist/templates/SubscriptionAgreement/index.js +15 -245
  43. package/dist/templates/SubscriptionAgreement/translations.js +194 -195
  44. package/dist/templates/SubscriptionAgreement/types.d.ts +1 -2
  45. package/dist/templates/SubscriptionAgreement/types.d.ts.map +1 -1
  46. package/dist/templates/SubscriptionAgreement/types.js +2 -1
  47. package/dist/templates/SubscriptionAgreement/utils.js +11 -16
  48. package/dist/templates/index.js +1 -0
  49. package/dist/theme/colors.js +63 -44
  50. package/dist/theme/index.js +1 -0
  51. package/dist/types.js +2 -1
  52. package/dist/utils.js +16 -159
  53. package/dist/watch.js +4 -3
  54. package/package.json +10 -10
@@ -1,5 +1,6 @@
1
1
  import { generateId } from '@driveflux/db/id';
2
- export var subscription = {
2
+ export const subscription = {
3
+ customerId: 'U2DCCUKVW',
3
4
  invoicing: {
4
5
  payerId: 'U2DCCUKVW',
5
6
  name: 'Zishan Kalim',
@@ -12,10 +13,22 @@ export var subscription = {
12
13
  state: 'Dubai',
13
14
  country: 'AE',
14
15
  postalCode: '00000',
15
- metadata: {}
16
- }
16
+ metadata: {},
17
+ },
17
18
  },
19
+ scheduledEndAt: new Date('2024-05-25T16:00:00.000Z'),
20
+ scheduledStartAt: new Date('2024-04-25T16:00:00.000Z'),
21
+ lastBillingDate: new Date('2024-04-25T16:00:00.000Z'),
22
+ prepaidCycles: 0,
23
+ prepaidUntil: null,
24
+ currency: 'MYR',
25
+ currentCycleNumber: 1,
26
+ lastPaymentErrorMessage: null,
18
27
  leadId: null,
28
+ gracePeriodEndsAt: null,
29
+ failedPaymentAttempts: 0,
30
+ lastFailedPaymentAt: null,
31
+ unpaidAt: null,
19
32
  primaryPaymentMethod: {
20
33
  paymentMethodId: 'PM_CKDDMJME',
21
34
  card: {
@@ -25,8 +38,8 @@ export var subscription = {
25
38
  expYear: 2028,
26
39
  funding: 'debit',
27
40
  country: 'AE',
28
- cardholderName: 'Zishan Kalim'
29
- }
41
+ cardholderName: 'Zishan Kalim',
42
+ },
30
43
  },
31
44
  onTheRoad: null,
32
45
  fees: {
@@ -42,7 +55,7 @@ export var subscription = {
42
55
  startFee: 2700,
43
56
  noStartFeeReason: null,
44
57
  notes: null,
45
- hostPrepaymentRatio: 0
58
+ hostPrepaymentRatio: 0,
46
59
  },
47
60
  unaccountedMileage: null,
48
61
  signature: null,
@@ -53,40 +66,25 @@ export var subscription = {
53
66
  started: true,
54
67
  startedAt: new Date('2024-04-26T01:39:46.563Z'),
55
68
  cycleAnchor: new Date('2024-04-25T16:00:00.000Z'),
56
- nextCycleDate: new Date('2024-05-25T16:00:00.000Z'),
57
- successfulPaymentLeeway: 86400,
58
- endSubscriptionAfterFailedPaymentIn: 1296000,
59
- cyclePaymentBehaviour: 'prepay',
60
- customPaymentForCycleAfterStartDate: null,
61
- paymentInterval: 86400,
62
- lastPaymentAttemptAt: null,
63
- nextPaymentAttemptAt: null,
64
- lastPaymentError: null,
69
+ nextBillingDate: new Date('2024-05-25T16:00:00.000Z'),
65
70
  ended: false,
66
71
  endedAt: null,
67
72
  completionReason: null,
68
73
  timezone: 'Asia/Kuala_Lumpur',
69
74
  active: true,
70
75
  price: 3960,
71
- frequency: 'monthly',
76
+ billingCycle: 'monthly',
72
77
  chargingMethod: 'automatic',
73
78
  currentInvoiceId: 'IQVTSHDC9',
74
79
  currentCycleId: 'CY-S5Y9TWWSK-BR2WRKTU',
75
- discountIds: [
76
- 'discount_5bOaD3WHUAPKuYd1PblpH'
77
- ],
78
- subscriptionRunnerId: null,
80
+ discountIds: ['discount_5bOaD3WHUAPKuYd1PblpH'],
79
81
  status: 'active',
80
82
  error: null,
81
83
  agreedTermsOfUsePdf: null,
82
84
  createdAt: new Date('2024-03-12T04:38:31.275Z'),
83
85
  updatedAt: new Date('2024-05-16T03:13:57.487Z'),
84
86
  metadata: {},
85
- invoiceIds: [
86
- 'IJJ3GHPCS',
87
- 'I9CC6JYET',
88
- 'IQVTSHDC9'
89
- ],
87
+ invoiceIds: ['IJJ3GHPCS', 'I9CC6JYET', 'IQVTSHDC9'],
90
88
  excludeMileage: false,
91
89
  vehicleId: 'VM98GEJKS',
92
90
  vehicleType: 'car',
@@ -120,15 +118,10 @@ export var subscription = {
120
118
  nextHostPayoutId: 'XZB4HLGEP',
121
119
  payoutIds: [],
122
120
  prepared: true,
123
- criticalMissions: null,
124
- depositInvoiceIds: [
125
- 'IQVTSHDC9'
126
- ],
121
+ depositInvoiceIds: ['IQVTSHDC9'],
127
122
  totalDepositPaid: null,
128
123
  totalDepositRefunded: null,
129
- startFeeInvoiceIds: [
130
- 'I9CC6JYET'
131
- ],
124
+ startFeeInvoiceIds: ['I9CC6JYET'],
132
125
  totalStartFeePaid: null,
133
126
  startingMileage: 56,
134
127
  preparationInvoiceId: 'I9CC6JYET',
@@ -161,11 +154,9 @@ export var subscription = {
161
154
  department: null,
162
155
  signupParams: {
163
156
  method: 'email',
164
- source: null
157
+ source: null,
165
158
  },
166
- groups: [
167
- 'member'
168
- ],
159
+ groups: ['member'],
169
160
  maritalStatus: null,
170
161
  gender: null,
171
162
  emergencyContactName: null,
@@ -184,47 +175,21 @@ export var subscription = {
184
175
  'utilization.pricePerKm',
185
176
  'utilization.paid',
186
177
  'utilization.allowedMileage',
187
- 'utilization.mileage'
178
+ 'utilization.mileage',
188
179
  ],
189
- conditions: {
190
- subscription: {
191
- userId: 'U2DCCUKVW'
192
- }
193
- }
194
- },
195
- {
196
- action: 'read',
197
- subject: 'Vehicle',
198
- conditions: {
199
- status: 'listed'
200
- }
201
- },
202
- {
203
- action: 'create',
204
- subject: 'Business'
180
+ conditions: { subscription: { userId: 'U2DCCUKVW' } },
205
181
  },
182
+ { action: 'read', subject: 'Vehicle', conditions: { status: 'listed' } },
183
+ { action: 'create', subject: 'Business' },
206
184
  {
207
185
  action: 'read',
208
186
  subject: 'Subscription',
209
- conditions: {
210
- userId: 'U2DCCUKVW'
211
- }
212
- },
213
- {
214
- action: 'read',
215
- subject: 'Coupon'
216
- },
217
- {
218
- action: 'manageAdmin',
219
- inverted: true,
220
- subject: 'User'
187
+ conditions: { userId: 'U2DCCUKVW' },
221
188
  },
189
+ { action: 'read', subject: 'Coupon' },
190
+ { action: 'manageAdmin', inverted: true, subject: 'User' },
222
191
  {
223
- action: [
224
- 'create',
225
- 'update',
226
- 'delete'
227
- ],
192
+ action: ['create', 'update', 'delete'],
228
193
  inverted: true,
229
194
  subject: 'User',
230
195
  conditions: {
@@ -250,54 +215,29 @@ export var subscription = {
250
215
  'designer',
251
216
  'engineer',
252
217
  'productManager',
253
- 'ceo'
254
- ]
255
- }
218
+ 'ceo',
219
+ ],
220
+ },
256
221
  },
257
- reason: 'You are not allowed to update admin users'
258
- },
259
- {
260
- action: 'update',
261
- subject: 'User',
262
- conditions: {
263
- id: 'U2DCCUKVW'
264
- }
222
+ reason: 'You are not allowed to update admin users',
265
223
  },
224
+ { action: 'update', subject: 'User', conditions: { id: 'U2DCCUKVW' } },
266
225
  {
267
- action: [
268
- 'read',
269
- 'update'
270
- ],
226
+ action: ['read', 'update'],
271
227
  subject: 'User',
272
- conditions: {
273
- id: 'U2DCCUKVW'
274
- }
228
+ conditions: { id: 'U2DCCUKVW' },
275
229
  },
276
230
  {
277
- action: [
278
- 'read'
279
- ],
231
+ action: ['read'],
280
232
  subject: 'Invoice',
281
- conditions: {
282
- payerId: 'U2DCCUKVW'
283
- }
233
+ conditions: { payerId: 'U2DCCUKVW' },
284
234
  },
285
235
  {
286
236
  action: 'reserveVehicle',
287
237
  subject: 'User',
288
- conditions: {
289
- banned: false,
290
- consented: true
291
- }
238
+ conditions: { banned: false, consented: true },
292
239
  },
293
- {
294
- action: 'update',
295
- inverted: true,
296
- subject: 'User',
297
- fields: [
298
- 'groups'
299
- ]
300
- }
240
+ { action: 'update', inverted: true, subject: 'User', fields: ['groups'] },
301
241
  ],
302
242
  banned: false,
303
243
  banReason: null,
@@ -325,7 +265,7 @@ export var subscription = {
325
265
  entryDate: null,
326
266
  visaExpiry: null,
327
267
  visaValidityMonths: null,
328
- verified: false
268
+ verified: false,
329
269
  },
330
270
  documents: {
331
271
  passport: {
@@ -337,7 +277,7 @@ export var subscription = {
337
277
  uploaded: true,
338
278
  createdAt: new Date('2024-03-12T04:18:36.116Z'),
339
279
  updatedAt: null,
340
- metadata: null
280
+ metadata: null,
341
281
  },
342
282
  visa: {
343
283
  name: 'Visa',
@@ -348,7 +288,7 @@ export var subscription = {
348
288
  uploaded: true,
349
289
  createdAt: new Date('2024-03-12T04:18:36.116Z'),
350
290
  updatedAt: null,
351
- metadata: null
291
+ metadata: null,
352
292
  },
353
293
  idFront: null,
354
294
  idBack: null,
@@ -361,7 +301,7 @@ export var subscription = {
361
301
  uploaded: true,
362
302
  createdAt: new Date('2024-03-12T04:22:11.640Z'),
363
303
  updatedAt: null,
364
- metadata: null
304
+ metadata: null,
365
305
  },
366
306
  experianReport: null,
367
307
  pdrm: null,
@@ -376,7 +316,7 @@ export var subscription = {
376
316
  uploaded: true,
377
317
  createdAt: new Date('2024-03-12T04:29:23.025Z'),
378
318
  updatedAt: null,
379
- metadata: null
319
+ metadata: null,
380
320
  },
381
321
  bankStatement2: {
382
322
  name: 'Bank Statement 2',
@@ -387,7 +327,7 @@ export var subscription = {
387
327
  uploaded: true,
388
328
  createdAt: new Date('2024-03-12T04:29:23.025Z'),
389
329
  updatedAt: null,
390
- metadata: null
330
+ metadata: null,
391
331
  },
392
332
  bankStatement3: {
393
333
  name: 'Bank Statement 3',
@@ -398,7 +338,7 @@ export var subscription = {
398
338
  uploaded: true,
399
339
  createdAt: new Date('2024-03-12T04:29:23.025Z'),
400
340
  updatedAt: null,
401
- metadata: null
341
+ metadata: null,
402
342
  },
403
343
  epfStatement: null,
404
344
  offerLetter: {
@@ -410,24 +350,24 @@ export var subscription = {
410
350
  uploaded: true,
411
351
  createdAt: new Date('2024-03-12T04:32:27.837Z'),
412
352
  updatedAt: null,
413
- metadata: null
414
- }
353
+ metadata: null,
354
+ },
415
355
  },
416
356
  paymentMethods: [
417
357
  {
418
358
  id: 'PM_7J8HD3RZ',
359
+ ownerId: 'U2DCCUKVW',
419
360
  object: 'paymentMethod',
420
361
  provider: 'stripe',
421
362
  chargingMethod: 'instant',
363
+ statusText: 'Active',
422
364
  type: 'card',
423
- default: true,
424
- stripe: {
425
- customerId: 'cus_PioidrQGcxLkbQ',
426
- paymentMethodId: 'pm_1PGL4QGmjNrRwDjL0HpLF2OS',
427
- setupIntentId: null
428
- },
429
- curlec: null,
430
- payex: null,
365
+ isDefault: true,
366
+ stripeCustomerId: 'cus_PioidrQGcxLkbQ',
367
+ providerPaymentMethodId: 'pm_1PGL4QGmjNrRwDjL0HpLF2OS',
368
+ stripeSetupIntentId: null,
369
+ payexDetails: null,
370
+ payexMandateId: null,
431
371
  card: {
432
372
  brand: 'mastercard',
433
373
  last4: '5896',
@@ -435,12 +375,12 @@ export var subscription = {
435
375
  expYear: 2029,
436
376
  funding: 'prepaid',
437
377
  country: 'MY',
438
- cardholderName: 'Zishan Kalim'
378
+ cardholderName: 'Zishan Kalim',
439
379
  },
440
380
  accountType: 'personal',
441
381
  status: 'active',
442
- metadata: {}
443
- }
382
+ metadata: {},
383
+ },
444
384
  ],
445
385
  addresses: {
446
386
  home: {
@@ -451,8 +391,7 @@ export var subscription = {
451
391
  state: 'Dubai',
452
392
  country: 'AE',
453
393
  postalCode: '00000',
454
- metadata: {},
455
- coordinates: null
394
+ coordinates: null,
456
395
  },
457
396
  billing: {
458
397
  name: null,
@@ -462,8 +401,7 @@ export var subscription = {
462
401
  state: 'Dubai',
463
402
  country: 'AE',
464
403
  postalCode: '00000',
465
- metadata: {}
466
- }
404
+ },
467
405
  },
468
406
  verifications: null,
469
407
  emailPreferences: {
@@ -472,11 +410,11 @@ export var subscription = {
472
410
  signUpOnly: false,
473
411
  signUpPaymentAdded: false,
474
412
  activeSub: true,
475
- expiredSub: false
413
+ expiredSub: false,
476
414
  },
477
415
  companyName: 'FLUX',
478
416
  ethnicity: null,
479
- geoRegion: null
417
+ geoRegion: null,
480
418
  },
481
419
  vehicle: {
482
420
  id: 'VM98GEJKS',
@@ -515,10 +453,7 @@ export var subscription = {
515
453
  mileageTrackingOff: false,
516
454
  featureOnLandingPage: false,
517
455
  lastMileageRecordedAt: new Date('2024-04-23T08:36:08.893Z'),
518
- locationAvailability: [
519
- 'Kuala Lumpur',
520
- 'Johor'
521
- ],
456
+ locationAvailability: ['Kuala Lumpur', 'Johor'],
522
457
  temporary: true,
523
458
  hotDeal: null,
524
459
  activeSubscriptionId: 'S5Y9TWWSK',
@@ -536,8 +471,7 @@ export var subscription = {
536
471
  state: 'Kuala Lumpur',
537
472
  country: 'MY',
538
473
  postalCode: '50480',
539
- metadata: {},
540
- coordinates: null
474
+ coordinates: null,
541
475
  },
542
476
  pickup: {
543
477
  name: 'Main',
@@ -547,9 +481,8 @@ export var subscription = {
547
481
  state: 'Kuala Lumpur',
548
482
  country: 'MY',
549
483
  postalCode: '50480',
550
- metadata: {},
551
- coordinates: null
552
- }
484
+ coordinates: null,
485
+ },
553
486
  },
554
487
  documents: null,
555
488
  pricing: {
@@ -558,267 +491,74 @@ export var subscription = {
558
491
  tmv: 160000,
559
492
  bought: false,
560
493
  gfvNotApplicable: true,
561
- gfv: {
562
- plan60: 0,
563
- plan36: 0,
564
- plan24: 0
565
- },
494
+ gfv: { plan60: 0, plan36: 0, plan24: 0 },
566
495
  fluxPrice: {
567
496
  add: null,
568
497
  coefficient: 10,
569
498
  excessMileage: 1.4,
570
499
  originalExcessMileage: 1.8,
571
500
  matrix: {
572
- plan60: {
573
- lite: 2640,
574
- standard: 2970,
575
- plus: 3300,
576
- unlimited: 4140
577
- },
578
- plan36: {
579
- lite: 3300,
580
- standard: 3630,
581
- plus: 3960,
582
- unlimited: 4800
583
- },
584
- plan24: {
585
- lite: 3630,
586
- standard: 3960,
587
- plus: 4290,
588
- unlimited: 5130
589
- },
590
- plan12: {
591
- lite: 3960,
592
- standard: 4290,
593
- plus: 4620,
594
- unlimited: 5460
595
- },
596
- plan1: {
597
- lite: 7599,
598
- standard: 7599,
599
- plus: 7599,
600
- unlimited: 7599
601
- },
602
- planWeekly: {
603
- lite: 200,
604
- standard: 530,
605
- plus: 860,
606
- unlimited: 1700
607
- }
501
+ plan60: { lite: 2640, standard: 2970, plus: 3300, unlimited: 4140 },
502
+ plan36: { lite: 3300, standard: 3630, plus: 3960, unlimited: 4800 },
503
+ plan24: { lite: 3630, standard: 3960, plus: 4290, unlimited: 5130 },
504
+ plan12: { lite: 3960, standard: 4290, plus: 4620, unlimited: 5460 },
505
+ plan1: { lite: 7599, standard: 7599, plus: 7599, unlimited: 7599 },
506
+ planWeekly: { lite: 200, standard: 530, plus: 860, unlimited: 1700 },
608
507
  },
609
508
  originalMatrix: {
610
- plan60: {
611
- lite: 2640,
612
- standard: 2970,
613
- plus: 3300,
614
- unlimited: 4140
615
- },
616
- plan36: {
617
- lite: 3300,
618
- standard: 3630,
619
- plus: 3960,
620
- unlimited: 4800
621
- },
622
- plan24: {
623
- lite: 3630,
624
- standard: 3960,
625
- plus: 4290,
626
- unlimited: 5130
627
- },
628
- plan12: {
629
- lite: 3960,
630
- standard: 4290,
631
- plus: 4620,
632
- unlimited: 5460
633
- },
634
- plan1: {
635
- lite: 7599,
636
- standard: 7599,
637
- plus: 7599,
638
- unlimited: 7599
639
- },
640
- planWeekly: {
641
- lite: 200,
642
- standard: 530,
643
- plus: 860,
644
- unlimited: 1700
645
- }
509
+ plan60: { lite: 2640, standard: 2970, plus: 3300, unlimited: 4140 },
510
+ plan36: { lite: 3300, standard: 3630, plus: 3960, unlimited: 4800 },
511
+ plan24: { lite: 3630, standard: 3960, plus: 4290, unlimited: 5130 },
512
+ plan12: { lite: 3960, standard: 4290, plus: 4620, unlimited: 5460 },
513
+ plan1: { lite: 7599, standard: 7599, plus: 7599, unlimited: 7599 },
514
+ planWeekly: { lite: 200, standard: 530, plus: 860, unlimited: 1700 },
646
515
  },
647
- matrixComments: null
516
+ matrixComments: null,
648
517
  },
649
518
  hostTake: {
650
519
  excessMileage: 1.1,
651
520
  originalExcessMileage: 1.44,
652
521
  matrix: {
653
- plan60: {
654
- lite: 3000,
655
- standard: 3150,
656
- plus: 3150,
657
- unlimited: 4250
658
- },
659
- plan36: {
660
- lite: 3000,
661
- standard: 3300,
662
- plus: 3600,
663
- unlimited: 4350
664
- },
665
- plan24: {
666
- lite: 3300,
667
- standard: 3600,
668
- plus: 3900,
669
- unlimited: 4650
670
- },
671
- plan12: {
672
- lite: 3600,
673
- standard: 3900,
674
- plus: 4200,
675
- unlimited: 4950
676
- },
677
- plan1: {
678
- lite: 6500,
679
- standard: 6500,
680
- plus: 6500,
681
- unlimited: 6500
682
- },
683
- planWeekly: {
684
- lite: 0,
685
- standard: 0,
686
- plus: 0,
687
- unlimited: 0
688
- }
522
+ plan60: { lite: 3000, standard: 3150, plus: 3150, unlimited: 4250 },
523
+ plan36: { lite: 3000, standard: 3300, plus: 3600, unlimited: 4350 },
524
+ plan24: { lite: 3300, standard: 3600, plus: 3900, unlimited: 4650 },
525
+ plan12: { lite: 3600, standard: 3900, plus: 4200, unlimited: 4950 },
526
+ plan1: { lite: 6500, standard: 6500, plus: 6500, unlimited: 6500 },
527
+ planWeekly: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
689
528
  },
690
529
  originalMatrix: {
691
- plan60: {
692
- lite: 2400,
693
- standard: 2700,
694
- plus: 3000,
695
- unlimited: 3750
696
- },
697
- plan36: {
698
- lite: 3000,
699
- standard: 3300,
700
- plus: 3600,
701
- unlimited: 4350
702
- },
703
- plan24: {
704
- lite: 3300,
705
- standard: 3600,
706
- plus: 3900,
707
- unlimited: 4650
708
- },
709
- plan12: {
710
- lite: 3600,
711
- standard: 3900,
712
- plus: 4200,
713
- unlimited: 4950
714
- },
715
- plan1: {
716
- lite: 6500,
717
- standard: 6500,
718
- plus: 6500,
719
- unlimited: 6500
720
- },
721
- planWeekly: {
722
- lite: 0,
723
- standard: 0,
724
- plus: 0,
725
- unlimited: 0
726
- }
530
+ plan60: { lite: 2400, standard: 2700, plus: 3000, unlimited: 3750 },
531
+ plan36: { lite: 3000, standard: 3300, plus: 3600, unlimited: 4350 },
532
+ plan24: { lite: 3300, standard: 3600, plus: 3900, unlimited: 4650 },
533
+ plan12: { lite: 3600, standard: 3900, plus: 4200, unlimited: 4950 },
534
+ plan1: { lite: 6500, standard: 6500, plus: 6500, unlimited: 6500 },
535
+ planWeekly: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
727
536
  },
728
- matrixComments: null
537
+ matrixComments: null,
729
538
  },
730
539
  startFee: {
731
540
  matrix: {
732
- plan60: {
733
- lite: 1800,
734
- standard: 2040,
735
- plus: 2250,
736
- unlimited: 2820
737
- },
738
- plan36: {
739
- lite: 2250,
740
- standard: 2490,
741
- plus: 2700,
742
- unlimited: 3270
743
- },
744
- plan24: {
745
- lite: 2490,
746
- standard: 2700,
747
- plus: 2940,
748
- unlimited: 3510
749
- },
750
- plan12: {
751
- lite: 2700,
752
- standard: 2940,
753
- plus: 3150,
754
- unlimited: 3720
755
- },
756
- plan1: {
757
- lite: 0,
758
- standard: 0,
759
- plus: 0,
760
- unlimited: 0
761
- },
762
- planWeekly: {
763
- lite: 0,
764
- standard: 0,
765
- plus: 0,
766
- unlimited: 0
767
- }
541
+ plan60: { lite: 1800, standard: 2040, plus: 2250, unlimited: 2820 },
542
+ plan36: { lite: 2250, standard: 2490, plus: 2700, unlimited: 3270 },
543
+ plan24: { lite: 2490, standard: 2700, plus: 2940, unlimited: 3510 },
544
+ plan12: { lite: 2700, standard: 2940, plus: 3150, unlimited: 3720 },
545
+ plan1: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
546
+ planWeekly: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
768
547
  },
769
548
  originalMatrix: {
770
- plan60: {
771
- lite: 1800,
772
- standard: 2040,
773
- plus: 2250,
774
- unlimited: 2820
775
- },
776
- plan36: {
777
- lite: 2250,
778
- standard: 2490,
779
- plus: 2700,
780
- unlimited: 3270
781
- },
782
- plan24: {
783
- lite: 2490,
784
- standard: 2700,
785
- plus: 2940,
786
- unlimited: 3510
787
- },
788
- plan12: {
789
- lite: 2700,
790
- standard: 2940,
791
- plus: 3150,
792
- unlimited: 3720
793
- },
794
- plan1: {
795
- lite: 0,
796
- standard: 0,
797
- plus: 0,
798
- unlimited: 0
799
- },
800
- planWeekly: {
801
- lite: 0,
802
- standard: 0,
803
- plus: 0,
804
- unlimited: 0
805
- }
549
+ plan60: { lite: 1800, standard: 2040, plus: 2250, unlimited: 2820 },
550
+ plan36: { lite: 2250, standard: 2490, plus: 2700, unlimited: 3270 },
551
+ plan24: { lite: 2490, standard: 2700, plus: 2940, unlimited: 3510 },
552
+ plan12: { lite: 2700, standard: 2940, plus: 3150, unlimited: 3720 },
553
+ plan1: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
554
+ planWeekly: { lite: 0, standard: 0, plus: 0, unlimited: 0 },
806
555
  },
807
- matrixComments: null
556
+ matrixComments: null,
808
557
  },
809
558
  ultraTier: 'tier11',
810
- availablePlans: [
811
- 'plan36',
812
- 'plan24',
813
- 'plan12'
814
- ],
815
- availableMileagePackages: [
816
- 'lite',
817
- 'standard',
818
- 'plus',
819
- 'unlimited'
820
- ],
821
- recommendedDeposit: null
559
+ availablePlans: ['plan36', 'plan24', 'plan12'],
560
+ availableMileagePackages: ['lite', 'standard', 'plus', 'unlimited'],
561
+ recommendedDeposit: null,
822
562
  },
823
563
  images: [
824
564
  {
@@ -831,7 +571,7 @@ export var subscription = {
831
571
  description: null,
832
572
  inspection: true,
833
573
  inspectionType: 'exterior',
834
- notActualPhoto: false
574
+ notActualPhoto: false,
835
575
  },
836
576
  {
837
577
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/ae2738e1-0475-4ea1-bf9a-9721e80d9455.jpg',
@@ -843,7 +583,7 @@ export var subscription = {
843
583
  description: null,
844
584
  inspection: false,
845
585
  inspectionType: null,
846
- notActualPhoto: false
586
+ notActualPhoto: false,
847
587
  },
848
588
  {
849
589
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/78481cf6-ccb3-4914-a878-472267db0241.jpg',
@@ -855,7 +595,7 @@ export var subscription = {
855
595
  description: null,
856
596
  inspection: false,
857
597
  inspectionType: null,
858
- notActualPhoto: false
598
+ notActualPhoto: false,
859
599
  },
860
600
  {
861
601
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/8597f00c-8714-45f3-bc5f-07b108729152.jpg',
@@ -867,7 +607,7 @@ export var subscription = {
867
607
  description: null,
868
608
  inspection: false,
869
609
  inspectionType: null,
870
- notActualPhoto: false
610
+ notActualPhoto: false,
871
611
  },
872
612
  {
873
613
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/22e6bba8-23d6-4d64-997a-37bc502aac16.jpg',
@@ -879,7 +619,7 @@ export var subscription = {
879
619
  description: null,
880
620
  inspection: false,
881
621
  inspectionType: null,
882
- notActualPhoto: false
622
+ notActualPhoto: false,
883
623
  },
884
624
  {
885
625
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7884.JPG',
@@ -891,7 +631,7 @@ export var subscription = {
891
631
  description: null,
892
632
  inspection: false,
893
633
  inspectionType: null,
894
- notActualPhoto: false
634
+ notActualPhoto: false,
895
635
  },
896
636
  {
897
637
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7882.JPG',
@@ -903,7 +643,7 @@ export var subscription = {
903
643
  description: null,
904
644
  inspection: true,
905
645
  inspectionType: 'frame',
906
- notActualPhoto: false
646
+ notActualPhoto: false,
907
647
  },
908
648
  {
909
649
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7880.JPG',
@@ -915,7 +655,7 @@ export var subscription = {
915
655
  description: null,
916
656
  inspection: false,
917
657
  inspectionType: null,
918
- notActualPhoto: false
658
+ notActualPhoto: false,
919
659
  },
920
660
  {
921
661
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7879.JPG',
@@ -927,7 +667,7 @@ export var subscription = {
927
667
  description: null,
928
668
  inspection: false,
929
669
  inspectionType: null,
930
- notActualPhoto: false
670
+ notActualPhoto: false,
931
671
  },
932
672
  {
933
673
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7878.JPG',
@@ -939,7 +679,7 @@ export var subscription = {
939
679
  description: null,
940
680
  inspection: true,
941
681
  inspectionType: 'interior',
942
- notActualPhoto: false
682
+ notActualPhoto: false,
943
683
  },
944
684
  {
945
685
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7876.JPG',
@@ -951,7 +691,7 @@ export var subscription = {
951
691
  description: null,
952
692
  inspection: false,
953
693
  inspectionType: null,
954
- notActualPhoto: false
694
+ notActualPhoto: false,
955
695
  },
956
696
  {
957
697
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7877.JPG',
@@ -963,7 +703,7 @@ export var subscription = {
963
703
  description: null,
964
704
  inspection: false,
965
705
  inspectionType: null,
966
- notActualPhoto: false
706
+ notActualPhoto: false,
967
707
  },
968
708
  {
969
709
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7873.JPG',
@@ -975,7 +715,7 @@ export var subscription = {
975
715
  description: null,
976
716
  inspection: false,
977
717
  inspectionType: null,
978
- notActualPhoto: false
718
+ notActualPhoto: false,
979
719
  },
980
720
  {
981
721
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7871.JPG',
@@ -987,7 +727,7 @@ export var subscription = {
987
727
  description: null,
988
728
  inspection: false,
989
729
  inspectionType: null,
990
- notActualPhoto: false
730
+ notActualPhoto: false,
991
731
  },
992
732
  {
993
733
  default: 'https://flux-site-files.s3.ap-southeast-1.amazonaws.com/vehicles/VDDVYB78L/images/IMG_7885.JPG',
@@ -999,8 +739,8 @@ export var subscription = {
999
739
  description: null,
1000
740
  inspection: true,
1001
741
  inspectionType: 'engine',
1002
- notActualPhoto: false
1003
- }
742
+ notActualPhoto: false,
743
+ },
1004
744
  ],
1005
745
  details: {
1006
746
  numberOfSeats: 6,
@@ -1034,9 +774,9 @@ export var subscription = {
1034
774
  'abs',
1035
775
  'parking-sensor',
1036
776
  'braking-assist',
1037
- 'adaptive-headlights'
777
+ 'adaptive-headlights',
1038
778
  ],
1039
- condition: 'used'
779
+ condition: 'used',
1040
780
  },
1041
781
  inspection: {
1042
782
  exterior: 5,
@@ -1046,34 +786,15 @@ export var subscription = {
1046
786
  dashboard: null,
1047
787
  date: new Date('2023-09-18T16:00:00.000Z'),
1048
788
  total: 5,
1049
- comment: 'All new Proton X90, prestigious, high-riding motoring for corporate and family use. Well-detailed cabin and clean exterior.'
789
+ comment: 'All new Proton X90, prestigious, high-riding motoring for corporate and family use. Well-detailed cabin and clean exterior.',
1050
790
  },
1051
791
  appliedCoupon: null,
1052
792
  displayVehicleId: null,
1053
- isHostConfirmed: null
1054
- },
1055
- schedule: {
1056
- id: 'SC_6FLUKBFH',
1057
- object: 'subscriptionSchedule',
1058
- startAt: null,
1059
- endAt: new Date('2025-04-25T15:59:59.999Z'),
1060
- cancelSubscriptionAt: null,
1061
- subscriptionCancellationReason: null,
1062
- subscriptionId: 'S5Y9TWWSK',
1063
- currentPhaseId: null,
1064
- completed: false,
1065
- canceled: false,
1066
- cancelReason: null,
1067
- onComplete: 'release',
1068
- createdAt: new Date('2024-04-30T09:39:11.522Z'),
1069
- updatedAt: new Date('2024-04-30T09:39:11.564Z'),
1070
- metadata: {},
1071
- expiryNoticeSent: false,
1072
- phases: []
793
+ isHostConfirmed: null,
1073
794
  },
1074
- subscriptionTag: 'new'
795
+ subscriptionTag: 'new',
1075
796
  };
1076
- export var signature = {
797
+ export const signature = {
1077
798
  id: generateId('SubscriptionSignature'),
1078
799
  subscriptionId: subscription.id,
1079
800
  object: 'subscriptionSignature',
@@ -1094,9 +815,10 @@ export var signature = {
1094
815
  heading: 0,
1095
816
  altitude: 61.10000228881836,
1096
817
  longitude: 101.6787272,
1097
- accuracy: 100
1098
- }
818
+ accuracy: 100,
819
+ },
1099
820
  },
1100
821
  agreedToTerms: true,
1101
- ipAddress: null
822
+ ipAddress: null,
1102
823
  };
824
+ //# sourceMappingURL=subscription.js.map