@stashfin/grpc 1.2.475 → 1.2.476

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.475",
3
+ "version": "1.2.476",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -35,21 +35,21 @@ export interface Details {
35
35
  }
36
36
  /** Account nested message */
37
37
  export interface Account {
38
- regMobFormat?: string | undefined;
39
- defaultVa?: string | undefined;
38
+ reg_mob_format?: string | undefined;
39
+ default_va?: string | undefined;
40
40
  mmid?: string | undefined;
41
- globalStartDate?: string | undefined;
41
+ global_start_date?: string | undefined;
42
42
  va?: string | undefined;
43
- defaultDebit?: string | undefined;
44
- globalEndDate?: string | undefined;
45
- aadharOtp?: string | undefined;
46
- merchantGenre?: string | undefined;
47
- accProviderId?: number | undefined;
43
+ default_debit?: string | undefined;
44
+ global_end_date?: string | undefined;
45
+ aadhar_otp?: string | undefined;
46
+ merchant_genre?: string | undefined;
47
+ acc_provider_id?: number | undefined;
48
48
  accRefNumber?: string | undefined;
49
49
  name?: string | undefined;
50
- allowGlobalTxn?: string | undefined;
51
- accProviderName?: string | undefined;
52
- credsAllowed?: CredsAllowed | undefined;
50
+ allow_global_txn?: string | undefined;
51
+ acc_provider_name?: string | undefined;
52
+ CredsAllowed?: CredsAllowedList | undefined;
53
53
  ifsc?: string | undefined;
54
54
  accType?: string | undefined;
55
55
  defaultCredit?: string | undefined;
@@ -58,7 +58,7 @@ export interface Account {
58
58
  onboardingType?: string | undefined;
59
59
  }
60
60
  /** CredsAllowed nested message */
61
- export interface CredsAllowed {
61
+ export interface CredsAllowedList {
62
62
  Child: CredChild[];
63
63
  }
64
64
  /** CredChild nested message */
@@ -109,13 +109,13 @@ export declare const Account: {
109
109
  create<I extends Exact<DeepPartial<Account>, I>>(base?: I): Account;
110
110
  fromPartial<I extends Exact<DeepPartial<Account>, I>>(object: I): Account;
111
111
  };
112
- export declare const CredsAllowed: {
113
- encode(message: CredsAllowed, writer?: _m0.Writer): _m0.Writer;
114
- decode(input: _m0.Reader | Uint8Array, length?: number): CredsAllowed;
115
- fromJSON(object: any): CredsAllowed;
116
- toJSON(message: CredsAllowed): unknown;
117
- create<I extends Exact<DeepPartial<CredsAllowed>, I>>(base?: I): CredsAllowed;
118
- fromPartial<I extends Exact<DeepPartial<CredsAllowed>, I>>(object: I): CredsAllowed;
112
+ export declare const CredsAllowedList: {
113
+ encode(message: CredsAllowedList, writer?: _m0.Writer): _m0.Writer;
114
+ decode(input: _m0.Reader | Uint8Array, length?: number): CredsAllowedList;
115
+ fromJSON(object: any): CredsAllowedList;
116
+ toJSON(message: CredsAllowedList): unknown;
117
+ create<I extends Exact<DeepPartial<CredsAllowedList>, I>>(base?: I): CredsAllowedList;
118
+ fromPartial<I extends Exact<DeepPartial<CredsAllowedList>, I>>(object: I): CredsAllowedList;
119
119
  };
120
120
  export declare const CredChild: {
121
121
  encode(message: CredChild, writer?: _m0.Writer): _m0.Writer;
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.CredChild = exports.CredsAllowed = exports.Account = exports.Details = exports.MobileAppData = exports.getProfileResponse = exports.getProfileRequest = exports.protobufPackage = void 0;
11
+ exports.CredChild = exports.CredsAllowedList = exports.Account = exports.Details = exports.MobileAppData = exports.getProfileResponse = exports.getProfileRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
13
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
14
  exports.protobufPackage = "upi.getProfile";
@@ -528,21 +528,21 @@ exports.Details = {
528
528
  };
529
529
  function createBaseAccount() {
530
530
  return {
531
- regMobFormat: undefined,
532
- defaultVa: undefined,
531
+ reg_mob_format: undefined,
532
+ default_va: undefined,
533
533
  mmid: undefined,
534
- globalStartDate: undefined,
534
+ global_start_date: undefined,
535
535
  va: undefined,
536
- defaultDebit: undefined,
537
- globalEndDate: undefined,
538
- aadharOtp: undefined,
539
- merchantGenre: undefined,
540
- accProviderId: undefined,
536
+ default_debit: undefined,
537
+ global_end_date: undefined,
538
+ aadhar_otp: undefined,
539
+ merchant_genre: undefined,
540
+ acc_provider_id: undefined,
541
541
  accRefNumber: undefined,
542
542
  name: undefined,
543
- allowGlobalTxn: undefined,
544
- accProviderName: undefined,
545
- credsAllowed: undefined,
543
+ allow_global_txn: undefined,
544
+ acc_provider_name: undefined,
545
+ CredsAllowed: undefined,
546
546
  ifsc: undefined,
547
547
  accType: undefined,
548
548
  defaultCredit: undefined,
@@ -553,35 +553,35 @@ function createBaseAccount() {
553
553
  }
554
554
  exports.Account = {
555
555
  encode(message, writer = minimal_1.default.Writer.create()) {
556
- if (message.regMobFormat !== undefined) {
557
- writer.uint32(10).string(message.regMobFormat);
556
+ if (message.reg_mob_format !== undefined) {
557
+ writer.uint32(10).string(message.reg_mob_format);
558
558
  }
559
- if (message.defaultVa !== undefined) {
560
- writer.uint32(18).string(message.defaultVa);
559
+ if (message.default_va !== undefined) {
560
+ writer.uint32(18).string(message.default_va);
561
561
  }
562
562
  if (message.mmid !== undefined) {
563
563
  writer.uint32(26).string(message.mmid);
564
564
  }
565
- if (message.globalStartDate !== undefined) {
566
- writer.uint32(34).string(message.globalStartDate);
565
+ if (message.global_start_date !== undefined) {
566
+ writer.uint32(34).string(message.global_start_date);
567
567
  }
568
568
  if (message.va !== undefined) {
569
569
  writer.uint32(42).string(message.va);
570
570
  }
571
- if (message.defaultDebit !== undefined) {
572
- writer.uint32(50).string(message.defaultDebit);
571
+ if (message.default_debit !== undefined) {
572
+ writer.uint32(50).string(message.default_debit);
573
573
  }
574
- if (message.globalEndDate !== undefined) {
575
- writer.uint32(58).string(message.globalEndDate);
574
+ if (message.global_end_date !== undefined) {
575
+ writer.uint32(58).string(message.global_end_date);
576
576
  }
577
- if (message.aadharOtp !== undefined) {
578
- writer.uint32(66).string(message.aadharOtp);
577
+ if (message.aadhar_otp !== undefined) {
578
+ writer.uint32(66).string(message.aadhar_otp);
579
579
  }
580
- if (message.merchantGenre !== undefined) {
581
- writer.uint32(74).string(message.merchantGenre);
580
+ if (message.merchant_genre !== undefined) {
581
+ writer.uint32(74).string(message.merchant_genre);
582
582
  }
583
- if (message.accProviderId !== undefined) {
584
- writer.uint32(80).int32(message.accProviderId);
583
+ if (message.acc_provider_id !== undefined) {
584
+ writer.uint32(80).int32(message.acc_provider_id);
585
585
  }
586
586
  if (message.accRefNumber !== undefined) {
587
587
  writer.uint32(90).string(message.accRefNumber);
@@ -589,14 +589,14 @@ exports.Account = {
589
589
  if (message.name !== undefined) {
590
590
  writer.uint32(98).string(message.name);
591
591
  }
592
- if (message.allowGlobalTxn !== undefined) {
593
- writer.uint32(106).string(message.allowGlobalTxn);
592
+ if (message.allow_global_txn !== undefined) {
593
+ writer.uint32(106).string(message.allow_global_txn);
594
594
  }
595
- if (message.accProviderName !== undefined) {
596
- writer.uint32(114).string(message.accProviderName);
595
+ if (message.acc_provider_name !== undefined) {
596
+ writer.uint32(114).string(message.acc_provider_name);
597
597
  }
598
- if (message.credsAllowed !== undefined) {
599
- exports.CredsAllowed.encode(message.credsAllowed, writer.uint32(122).fork()).ldelim();
598
+ if (message.CredsAllowed !== undefined) {
599
+ exports.CredsAllowedList.encode(message.CredsAllowed, writer.uint32(122).fork()).ldelim();
600
600
  }
601
601
  if (message.ifsc !== undefined) {
602
602
  writer.uint32(130).string(message.ifsc);
@@ -629,13 +629,13 @@ exports.Account = {
629
629
  if (tag !== 10) {
630
630
  break;
631
631
  }
632
- message.regMobFormat = reader.string();
632
+ message.reg_mob_format = reader.string();
633
633
  continue;
634
634
  case 2:
635
635
  if (tag !== 18) {
636
636
  break;
637
637
  }
638
- message.defaultVa = reader.string();
638
+ message.default_va = reader.string();
639
639
  continue;
640
640
  case 3:
641
641
  if (tag !== 26) {
@@ -647,7 +647,7 @@ exports.Account = {
647
647
  if (tag !== 34) {
648
648
  break;
649
649
  }
650
- message.globalStartDate = reader.string();
650
+ message.global_start_date = reader.string();
651
651
  continue;
652
652
  case 5:
653
653
  if (tag !== 42) {
@@ -659,31 +659,31 @@ exports.Account = {
659
659
  if (tag !== 50) {
660
660
  break;
661
661
  }
662
- message.defaultDebit = reader.string();
662
+ message.default_debit = reader.string();
663
663
  continue;
664
664
  case 7:
665
665
  if (tag !== 58) {
666
666
  break;
667
667
  }
668
- message.globalEndDate = reader.string();
668
+ message.global_end_date = reader.string();
669
669
  continue;
670
670
  case 8:
671
671
  if (tag !== 66) {
672
672
  break;
673
673
  }
674
- message.aadharOtp = reader.string();
674
+ message.aadhar_otp = reader.string();
675
675
  continue;
676
676
  case 9:
677
677
  if (tag !== 74) {
678
678
  break;
679
679
  }
680
- message.merchantGenre = reader.string();
680
+ message.merchant_genre = reader.string();
681
681
  continue;
682
682
  case 10:
683
683
  if (tag !== 80) {
684
684
  break;
685
685
  }
686
- message.accProviderId = reader.int32();
686
+ message.acc_provider_id = reader.int32();
687
687
  continue;
688
688
  case 11:
689
689
  if (tag !== 90) {
@@ -701,19 +701,19 @@ exports.Account = {
701
701
  if (tag !== 106) {
702
702
  break;
703
703
  }
704
- message.allowGlobalTxn = reader.string();
704
+ message.allow_global_txn = reader.string();
705
705
  continue;
706
706
  case 14:
707
707
  if (tag !== 114) {
708
708
  break;
709
709
  }
710
- message.accProviderName = reader.string();
710
+ message.acc_provider_name = reader.string();
711
711
  continue;
712
712
  case 15:
713
713
  if (tag !== 122) {
714
714
  break;
715
715
  }
716
- message.credsAllowed = exports.CredsAllowed.decode(reader, reader.uint32());
716
+ message.CredsAllowed = exports.CredsAllowedList.decode(reader, reader.uint32());
717
717
  continue;
718
718
  case 16:
719
719
  if (tag !== 130) {
@@ -761,21 +761,21 @@ exports.Account = {
761
761
  },
762
762
  fromJSON(object) {
763
763
  return {
764
- regMobFormat: isSet(object.regMobFormat) ? globalThis.String(object.regMobFormat) : undefined,
765
- defaultVa: isSet(object.defaultVa) ? globalThis.String(object.defaultVa) : undefined,
764
+ reg_mob_format: isSet(object.reg_mob_format) ? globalThis.String(object.reg_mob_format) : undefined,
765
+ default_va: isSet(object.default_va) ? globalThis.String(object.default_va) : undefined,
766
766
  mmid: isSet(object.mmid) ? globalThis.String(object.mmid) : undefined,
767
- globalStartDate: isSet(object.globalStartDate) ? globalThis.String(object.globalStartDate) : undefined,
767
+ global_start_date: isSet(object.global_start_date) ? globalThis.String(object.global_start_date) : undefined,
768
768
  va: isSet(object.va) ? globalThis.String(object.va) : undefined,
769
- defaultDebit: isSet(object.defaultDebit) ? globalThis.String(object.defaultDebit) : undefined,
770
- globalEndDate: isSet(object.globalEndDate) ? globalThis.String(object.globalEndDate) : undefined,
771
- aadharOtp: isSet(object.aadharOtp) ? globalThis.String(object.aadharOtp) : undefined,
772
- merchantGenre: isSet(object.merchantGenre) ? globalThis.String(object.merchantGenre) : undefined,
773
- accProviderId: isSet(object.accProviderId) ? globalThis.Number(object.accProviderId) : undefined,
769
+ default_debit: isSet(object.default_debit) ? globalThis.String(object.default_debit) : undefined,
770
+ global_end_date: isSet(object.global_end_date) ? globalThis.String(object.global_end_date) : undefined,
771
+ aadhar_otp: isSet(object.aadhar_otp) ? globalThis.String(object.aadhar_otp) : undefined,
772
+ merchant_genre: isSet(object.merchant_genre) ? globalThis.String(object.merchant_genre) : undefined,
773
+ acc_provider_id: isSet(object.acc_provider_id) ? globalThis.Number(object.acc_provider_id) : undefined,
774
774
  accRefNumber: isSet(object.accRefNumber) ? globalThis.String(object.accRefNumber) : undefined,
775
775
  name: isSet(object.name) ? globalThis.String(object.name) : undefined,
776
- allowGlobalTxn: isSet(object.allowGlobalTxn) ? globalThis.String(object.allowGlobalTxn) : undefined,
777
- accProviderName: isSet(object.accProviderName) ? globalThis.String(object.accProviderName) : undefined,
778
- credsAllowed: isSet(object.credsAllowed) ? exports.CredsAllowed.fromJSON(object.credsAllowed) : undefined,
776
+ allow_global_txn: isSet(object.allow_global_txn) ? globalThis.String(object.allow_global_txn) : undefined,
777
+ acc_provider_name: isSet(object.acc_provider_name) ? globalThis.String(object.acc_provider_name) : undefined,
778
+ CredsAllowed: isSet(object.CredsAllowed) ? exports.CredsAllowedList.fromJSON(object.CredsAllowed) : undefined,
779
779
  ifsc: isSet(object.ifsc) ? globalThis.String(object.ifsc) : undefined,
780
780
  accType: isSet(object.accType) ? globalThis.String(object.accType) : undefined,
781
781
  defaultCredit: isSet(object.defaultCredit) ? globalThis.String(object.defaultCredit) : undefined,
@@ -786,35 +786,35 @@ exports.Account = {
786
786
  },
787
787
  toJSON(message) {
788
788
  const obj = {};
789
- if (message.regMobFormat !== undefined) {
790
- obj.regMobFormat = message.regMobFormat;
789
+ if (message.reg_mob_format !== undefined) {
790
+ obj.reg_mob_format = message.reg_mob_format;
791
791
  }
792
- if (message.defaultVa !== undefined) {
793
- obj.defaultVa = message.defaultVa;
792
+ if (message.default_va !== undefined) {
793
+ obj.default_va = message.default_va;
794
794
  }
795
795
  if (message.mmid !== undefined) {
796
796
  obj.mmid = message.mmid;
797
797
  }
798
- if (message.globalStartDate !== undefined) {
799
- obj.globalStartDate = message.globalStartDate;
798
+ if (message.global_start_date !== undefined) {
799
+ obj.global_start_date = message.global_start_date;
800
800
  }
801
801
  if (message.va !== undefined) {
802
802
  obj.va = message.va;
803
803
  }
804
- if (message.defaultDebit !== undefined) {
805
- obj.defaultDebit = message.defaultDebit;
804
+ if (message.default_debit !== undefined) {
805
+ obj.default_debit = message.default_debit;
806
806
  }
807
- if (message.globalEndDate !== undefined) {
808
- obj.globalEndDate = message.globalEndDate;
807
+ if (message.global_end_date !== undefined) {
808
+ obj.global_end_date = message.global_end_date;
809
809
  }
810
- if (message.aadharOtp !== undefined) {
811
- obj.aadharOtp = message.aadharOtp;
810
+ if (message.aadhar_otp !== undefined) {
811
+ obj.aadhar_otp = message.aadhar_otp;
812
812
  }
813
- if (message.merchantGenre !== undefined) {
814
- obj.merchantGenre = message.merchantGenre;
813
+ if (message.merchant_genre !== undefined) {
814
+ obj.merchant_genre = message.merchant_genre;
815
815
  }
816
- if (message.accProviderId !== undefined) {
817
- obj.accProviderId = Math.round(message.accProviderId);
816
+ if (message.acc_provider_id !== undefined) {
817
+ obj.acc_provider_id = Math.round(message.acc_provider_id);
818
818
  }
819
819
  if (message.accRefNumber !== undefined) {
820
820
  obj.accRefNumber = message.accRefNumber;
@@ -822,14 +822,14 @@ exports.Account = {
822
822
  if (message.name !== undefined) {
823
823
  obj.name = message.name;
824
824
  }
825
- if (message.allowGlobalTxn !== undefined) {
826
- obj.allowGlobalTxn = message.allowGlobalTxn;
825
+ if (message.allow_global_txn !== undefined) {
826
+ obj.allow_global_txn = message.allow_global_txn;
827
827
  }
828
- if (message.accProviderName !== undefined) {
829
- obj.accProviderName = message.accProviderName;
828
+ if (message.acc_provider_name !== undefined) {
829
+ obj.acc_provider_name = message.acc_provider_name;
830
830
  }
831
- if (message.credsAllowed !== undefined) {
832
- obj.credsAllowed = exports.CredsAllowed.toJSON(message.credsAllowed);
831
+ if (message.CredsAllowed !== undefined) {
832
+ obj.CredsAllowed = exports.CredsAllowedList.toJSON(message.CredsAllowed);
833
833
  }
834
834
  if (message.ifsc !== undefined) {
835
835
  obj.ifsc = message.ifsc;
@@ -856,22 +856,22 @@ exports.Account = {
856
856
  },
857
857
  fromPartial(object) {
858
858
  const message = createBaseAccount();
859
- message.regMobFormat = object.regMobFormat ?? undefined;
860
- message.defaultVa = object.defaultVa ?? undefined;
859
+ message.reg_mob_format = object.reg_mob_format ?? undefined;
860
+ message.default_va = object.default_va ?? undefined;
861
861
  message.mmid = object.mmid ?? undefined;
862
- message.globalStartDate = object.globalStartDate ?? undefined;
862
+ message.global_start_date = object.global_start_date ?? undefined;
863
863
  message.va = object.va ?? undefined;
864
- message.defaultDebit = object.defaultDebit ?? undefined;
865
- message.globalEndDate = object.globalEndDate ?? undefined;
866
- message.aadharOtp = object.aadharOtp ?? undefined;
867
- message.merchantGenre = object.merchantGenre ?? undefined;
868
- message.accProviderId = object.accProviderId ?? undefined;
864
+ message.default_debit = object.default_debit ?? undefined;
865
+ message.global_end_date = object.global_end_date ?? undefined;
866
+ message.aadhar_otp = object.aadhar_otp ?? undefined;
867
+ message.merchant_genre = object.merchant_genre ?? undefined;
868
+ message.acc_provider_id = object.acc_provider_id ?? undefined;
869
869
  message.accRefNumber = object.accRefNumber ?? undefined;
870
870
  message.name = object.name ?? undefined;
871
- message.allowGlobalTxn = object.allowGlobalTxn ?? undefined;
872
- message.accProviderName = object.accProviderName ?? undefined;
873
- message.credsAllowed = (object.credsAllowed !== undefined && object.credsAllowed !== null)
874
- ? exports.CredsAllowed.fromPartial(object.credsAllowed)
871
+ message.allow_global_txn = object.allow_global_txn ?? undefined;
872
+ message.acc_provider_name = object.acc_provider_name ?? undefined;
873
+ message.CredsAllowed = (object.CredsAllowed !== undefined && object.CredsAllowed !== null)
874
+ ? exports.CredsAllowedList.fromPartial(object.CredsAllowed)
875
875
  : undefined;
876
876
  message.ifsc = object.ifsc ?? undefined;
877
877
  message.accType = object.accType ?? undefined;
@@ -882,10 +882,10 @@ exports.Account = {
882
882
  return message;
883
883
  },
884
884
  };
885
- function createBaseCredsAllowed() {
885
+ function createBaseCredsAllowedList() {
886
886
  return { Child: [] };
887
887
  }
888
- exports.CredsAllowed = {
888
+ exports.CredsAllowedList = {
889
889
  encode(message, writer = minimal_1.default.Writer.create()) {
890
890
  for (const v of message.Child) {
891
891
  exports.CredChild.encode(v, writer.uint32(10).fork()).ldelim();
@@ -895,7 +895,7 @@ exports.CredsAllowed = {
895
895
  decode(input, length) {
896
896
  const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
897
897
  let end = length === undefined ? reader.len : reader.pos + length;
898
- const message = createBaseCredsAllowed();
898
+ const message = createBaseCredsAllowedList();
899
899
  while (reader.pos < end) {
900
900
  const tag = reader.uint32();
901
901
  switch (tag >>> 3) {
@@ -926,10 +926,10 @@ exports.CredsAllowed = {
926
926
  return obj;
927
927
  },
928
928
  create(base) {
929
- return exports.CredsAllowed.fromPartial(base ?? {});
929
+ return exports.CredsAllowedList.fromPartial(base ?? {});
930
930
  },
931
931
  fromPartial(object) {
932
- const message = createBaseCredsAllowed();
932
+ const message = createBaseCredsAllowedList();
933
933
  message.Child = object.Child?.map((e) => exports.CredChild.fromPartial(e)) || [];
934
934
  return message;
935
935
  },