@cuenca-mx/cuenca-js 0.0.14-dev14 → 0.0.14-dev15

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.
@@ -473,6 +473,13 @@ class BusinessDetails {
473
473
  accountUsageDescription: obj.account_usage_description,
474
474
  businessDescription: obj.business_description,
475
475
  });
476
+
477
+ toObject() {
478
+ return {
479
+ account_usage_description: this.accountUsageDescription,
480
+ business_description: this.businessDescription,
481
+ };
482
+ }
476
483
  }
477
484
 
478
485
  class VerificationError {
@@ -558,6 +565,16 @@ class PhysicalPerson {
558
565
  secondSurname: obj.second_surname,
559
566
  });
560
567
  };
568
+
569
+ toObject() {
570
+ return {
571
+ names: this.names,
572
+ curp: this.curp,
573
+ rfc: this.rfc,
574
+ first_surname: this.firstSurname,
575
+ second_surname: this.secondSurname,
576
+ };
577
+ }
561
578
  }
562
579
 
563
580
  class LegalRepresentatives extends PhysicalPerson {
@@ -599,14 +616,24 @@ class LegalRepresentatives extends PhysicalPerson {
599
616
  }
600
617
 
601
618
  class ShareholderPhysical extends PhysicalPerson {
602
- constructor({ names, curp, rfc, firstSurname, secondSurname, percentage }) {
619
+ constructor({
620
+ names,
621
+ curp,
622
+ rfc,
623
+ firstSurname,
624
+ secondSurname,
625
+ shareCapital,
626
+ percentage,
627
+ }) {
603
628
  super({ names, curp, rfc, firstSurname, secondSurname });
629
+ this.shareCapital = shareCapital;
604
630
  this.percentage = percentage;
605
631
  }
606
632
 
607
633
  static fromObject = ({ percentage, ...obj }) => {
608
634
  return new ShareholderPhysical({
609
635
  percentage,
636
+ shareCapital: obj.share_capital,
610
637
  ...PhysicalPerson.fromObject(obj),
611
638
  });
612
639
  };
@@ -665,13 +692,16 @@ class TransactionalProfileServices {
665
692
  this.internalTransfersAmount = internalTransfersAmount;
666
693
  }
667
694
 
668
- static fromObject = ({ ...obj }) =>
669
- new TransactionalProfileServices({
695
+ static fromObject = ({ ...obj }) => {
696
+ const response = new TransactionalProfileServices({
670
697
  speiTransfersNum: obj.spei_transfers_num,
671
698
  speiTransfersAmount: obj.spei_transfers_amount,
672
699
  internalTransfersNum: obj.internal_transfers_num,
673
700
  internalTransfersAmount: obj.internal_transfers_amount,
674
701
  });
702
+
703
+ return response;
704
+ };
675
705
  }
676
706
 
677
707
  class TOSAgreements {