@itsliaaa/baileys 0.3.5 → 0.3.7
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/WAProto/index.d.ts +67 -61
- package/WAProto/index.js +428 -426
- package/lib/Defaults/index.d.ts +0 -4
- package/lib/Defaults/index.d.ts.map +1 -1
- package/lib/Defaults/index.js +1 -5
- package/lib/Defaults/index.js.map +1 -1
- package/lib/Socket/business.d.ts +2 -2
- package/lib/Socket/chats.d.ts +2 -2
- package/lib/Socket/chats.d.ts.map +1 -1
- package/lib/Socket/chats.js +6 -3
- package/lib/Socket/chats.js.map +1 -1
- package/lib/Socket/communities.d.ts +2 -2
- package/lib/Socket/groups.d.ts +2 -2
- package/lib/Socket/index.d.ts +2 -2
- package/lib/Socket/messages-recv.d.ts +2 -2
- package/lib/Socket/messages-send.d.ts +2 -2
- package/lib/Socket/newsletter.d.ts +2 -2
- package/lib/Utils/generics.js +1 -1
- package/lib/Utils/rich-message-utils.d.ts +0 -32
- package/lib/Utils/rich-message-utils.d.ts.map +1 -1
- package/lib/Utils/rich-message-utils.js +8 -11
- package/lib/Utils/rich-message-utils.js.map +1 -1
- package/package.json +30 -32
package/WAProto/index.js
CHANGED
|
@@ -7397,6 +7397,18 @@ export const proto = $root.proto = (() => {
|
|
|
7397
7397
|
case 61:
|
|
7398
7398
|
m.capabilities[i] = 61;
|
|
7399
7399
|
break;
|
|
7400
|
+
case "UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED":
|
|
7401
|
+
case 62:
|
|
7402
|
+
m.capabilities[i] = 62;
|
|
7403
|
+
break;
|
|
7404
|
+
case "UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED":
|
|
7405
|
+
case 63:
|
|
7406
|
+
m.capabilities[i] = 63;
|
|
7407
|
+
break;
|
|
7408
|
+
case "AI_RICH_RESPONSE_MAPS_V2_ENABLED":
|
|
7409
|
+
case 64:
|
|
7410
|
+
m.capabilities[i] = 64;
|
|
7411
|
+
break;
|
|
7400
7412
|
}
|
|
7401
7413
|
}
|
|
7402
7414
|
}
|
|
@@ -7494,6 +7506,9 @@ export const proto = $root.proto = (() => {
|
|
|
7494
7506
|
values[valuesById[59] = "AI_TAB_FORCE_CLIPPY"] = 59;
|
|
7495
7507
|
values[valuesById[60] = "UNIFIED_RESPONSE_EMBEDDED_SCREENS"] = 60;
|
|
7496
7508
|
values[valuesById[61] = "AI_SUBSCRIPTION_ENABLED"] = 61;
|
|
7509
|
+
values[valuesById[62] = "UNIFIED_RESPONSE_AI_CONTENT_SEARCH_ENABLED"] = 62;
|
|
7510
|
+
values[valuesById[63] = "UNIFIED_RESPONSE_MARKDOWN_LINKS_ENABLED"] = 63;
|
|
7511
|
+
values[valuesById[64] = "AI_RICH_RESPONSE_MAPS_V2_ENABLED"] = 64;
|
|
7497
7512
|
return values;
|
|
7498
7513
|
})();
|
|
7499
7514
|
|
|
@@ -25420,6 +25435,14 @@ export const proto = $root.proto = (() => {
|
|
|
25420
25435
|
case 10:
|
|
25421
25436
|
m.pillType = 10;
|
|
25422
25437
|
break;
|
|
25438
|
+
case "SHOP":
|
|
25439
|
+
case 11:
|
|
25440
|
+
m.pillType = 11;
|
|
25441
|
+
break;
|
|
25442
|
+
case "ORDER":
|
|
25443
|
+
case 12:
|
|
25444
|
+
m.pillType = 12;
|
|
25445
|
+
break;
|
|
25423
25446
|
}
|
|
25424
25447
|
if (d.actionUrl != null) {
|
|
25425
25448
|
m.actionUrl = String(d.actionUrl);
|
|
@@ -25471,6 +25494,8 @@ export const proto = $root.proto = (() => {
|
|
|
25471
25494
|
values[valuesById[8] = "BESTSELLERS"] = 8;
|
|
25472
25495
|
values[valuesById[9] = "MENU"] = 9;
|
|
25473
25496
|
values[valuesById[10] = "ABOUT"] = 10;
|
|
25497
|
+
values[valuesById[11] = "SHOP"] = 11;
|
|
25498
|
+
values[valuesById[12] = "ORDER"] = 12;
|
|
25474
25499
|
return values;
|
|
25475
25500
|
})();
|
|
25476
25501
|
|
|
@@ -34373,6 +34398,10 @@ export const proto = $root.proto = (() => {
|
|
|
34373
34398
|
case 4:
|
|
34374
34399
|
m.processState = 4;
|
|
34375
34400
|
break;
|
|
34401
|
+
case "DEDUPED":
|
|
34402
|
+
case 5:
|
|
34403
|
+
m.processState = 5;
|
|
34404
|
+
break;
|
|
34376
34405
|
}
|
|
34377
34406
|
return m;
|
|
34378
34407
|
};
|
|
@@ -34412,6 +34441,7 @@ export const proto = $root.proto = (() => {
|
|
|
34412
34441
|
values[valuesById[2] = "INJECTED_PARTIAL"] = 2;
|
|
34413
34442
|
values[valuesById[3] = "INJECTION_FAILED"] = 3;
|
|
34414
34443
|
values[valuesById[4] = "INJECTION_FAILED_NO_RETRY"] = 4;
|
|
34444
|
+
values[valuesById[5] = "DEDUPED"] = 5;
|
|
34415
34445
|
return values;
|
|
34416
34446
|
})();
|
|
34417
34447
|
|
|
@@ -41237,8 +41267,9 @@ export const proto = $root.proto = (() => {
|
|
|
41237
41267
|
Message.prototype.pollAddOptionMessage = null;
|
|
41238
41268
|
Message.prototype.eventInviteMessage = null;
|
|
41239
41269
|
Message.prototype.groupRootKeyShare = null;
|
|
41240
|
-
Message.prototype.
|
|
41270
|
+
Message.prototype.paymentReminderMessage = null;
|
|
41241
41271
|
Message.prototype.splitPaymentMessage = null;
|
|
41272
|
+
Message.prototype.newsletterAdminProfileStatusMessage = null;
|
|
41242
41273
|
|
|
41243
41274
|
let $oneOfFields;
|
|
41244
41275
|
|
|
@@ -41861,8 +41892,8 @@ export const proto = $root.proto = (() => {
|
|
|
41861
41892
|
});
|
|
41862
41893
|
|
|
41863
41894
|
// Virtual OneOf for proto3 optional field
|
|
41864
|
-
Object.defineProperty(Message.prototype, "
|
|
41865
|
-
get: $util.oneOfGetter($oneOfFields = ["
|
|
41895
|
+
Object.defineProperty(Message.prototype, "_paymentReminderMessage", {
|
|
41896
|
+
get: $util.oneOfGetter($oneOfFields = ["paymentReminderMessage"]),
|
|
41866
41897
|
set: $util.oneOfSetter($oneOfFields)
|
|
41867
41898
|
});
|
|
41868
41899
|
|
|
@@ -41872,6 +41903,12 @@ export const proto = $root.proto = (() => {
|
|
|
41872
41903
|
set: $util.oneOfSetter($oneOfFields)
|
|
41873
41904
|
});
|
|
41874
41905
|
|
|
41906
|
+
// Virtual OneOf for proto3 optional field
|
|
41907
|
+
Object.defineProperty(Message.prototype, "_newsletterAdminProfileStatusMessage", {
|
|
41908
|
+
get: $util.oneOfGetter($oneOfFields = ["newsletterAdminProfileStatusMessage"]),
|
|
41909
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
41910
|
+
});
|
|
41911
|
+
|
|
41875
41912
|
Message.create = function create(properties) {
|
|
41876
41913
|
return new Message(properties);
|
|
41877
41914
|
};
|
|
@@ -42085,10 +42122,12 @@ export const proto = $root.proto = (() => {
|
|
|
42085
42122
|
$root.proto.Message.EventInviteMessage.encode(m.eventInviteMessage, w.uint32(978).fork()).ldelim();
|
|
42086
42123
|
if (m.groupRootKeyShare != null && Object.hasOwnProperty.call(m, "groupRootKeyShare"))
|
|
42087
42124
|
$root.proto.GroupRootKeyShare.encode(m.groupRootKeyShare, w.uint32(986).fork()).ldelim();
|
|
42088
|
-
if (m.
|
|
42089
|
-
$root.proto.Message.
|
|
42125
|
+
if (m.paymentReminderMessage != null && Object.hasOwnProperty.call(m, "paymentReminderMessage"))
|
|
42126
|
+
$root.proto.Message.PaymentReminderMessage.encode(m.paymentReminderMessage, w.uint32(994).fork()).ldelim();
|
|
42090
42127
|
if (m.splitPaymentMessage != null && Object.hasOwnProperty.call(m, "splitPaymentMessage"))
|
|
42091
42128
|
$root.proto.Message.SplitPaymentMessage.encode(m.splitPaymentMessage, w.uint32(1002).fork()).ldelim();
|
|
42129
|
+
if (m.newsletterAdminProfileStatusMessage != null && Object.hasOwnProperty.call(m, "newsletterAdminProfileStatusMessage"))
|
|
42130
|
+
$root.proto.Message.FutureProofMessage.encode(m.newsletterAdminProfileStatusMessage, w.uint32(1010).fork()).ldelim();
|
|
42092
42131
|
return w;
|
|
42093
42132
|
};
|
|
42094
42133
|
|
|
@@ -42518,13 +42557,17 @@ export const proto = $root.proto = (() => {
|
|
|
42518
42557
|
break;
|
|
42519
42558
|
}
|
|
42520
42559
|
case 124: {
|
|
42521
|
-
m.
|
|
42560
|
+
m.paymentReminderMessage = $root.proto.Message.PaymentReminderMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
42522
42561
|
break;
|
|
42523
42562
|
}
|
|
42524
42563
|
case 125: {
|
|
42525
42564
|
m.splitPaymentMessage = $root.proto.Message.SplitPaymentMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
42526
42565
|
break;
|
|
42527
42566
|
}
|
|
42567
|
+
case 126: {
|
|
42568
|
+
m.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
42569
|
+
break;
|
|
42570
|
+
}
|
|
42528
42571
|
default:
|
|
42529
42572
|
r.skipType(t & 7, n);
|
|
42530
42573
|
break;
|
|
@@ -43054,16 +43097,21 @@ export const proto = $root.proto = (() => {
|
|
|
43054
43097
|
throw TypeError(".proto.Message.groupRootKeyShare: object expected");
|
|
43055
43098
|
m.groupRootKeyShare = $root.proto.GroupRootKeyShare.fromObject(d.groupRootKeyShare, n + 1);
|
|
43056
43099
|
}
|
|
43057
|
-
if (d.
|
|
43058
|
-
if (typeof d.
|
|
43059
|
-
throw TypeError(".proto.Message.
|
|
43060
|
-
m.
|
|
43100
|
+
if (d.paymentReminderMessage != null) {
|
|
43101
|
+
if (typeof d.paymentReminderMessage !== "object")
|
|
43102
|
+
throw TypeError(".proto.Message.paymentReminderMessage: object expected");
|
|
43103
|
+
m.paymentReminderMessage = $root.proto.Message.PaymentReminderMessage.fromObject(d.paymentReminderMessage, n + 1);
|
|
43061
43104
|
}
|
|
43062
43105
|
if (d.splitPaymentMessage != null) {
|
|
43063
43106
|
if (typeof d.splitPaymentMessage !== "object")
|
|
43064
43107
|
throw TypeError(".proto.Message.splitPaymentMessage: object expected");
|
|
43065
43108
|
m.splitPaymentMessage = $root.proto.Message.SplitPaymentMessage.fromObject(d.splitPaymentMessage, n + 1);
|
|
43066
43109
|
}
|
|
43110
|
+
if (d.newsletterAdminProfileStatusMessage != null) {
|
|
43111
|
+
if (typeof d.newsletterAdminProfileStatusMessage !== "object")
|
|
43112
|
+
throw TypeError(".proto.Message.newsletterAdminProfileStatusMessage: object expected");
|
|
43113
|
+
m.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.fromObject(d.newsletterAdminProfileStatusMessage, n + 1);
|
|
43114
|
+
}
|
|
43067
43115
|
return m;
|
|
43068
43116
|
};
|
|
43069
43117
|
|
|
@@ -43586,16 +43634,21 @@ export const proto = $root.proto = (() => {
|
|
|
43586
43634
|
if (o.oneofs)
|
|
43587
43635
|
d._groupRootKeyShare = "groupRootKeyShare";
|
|
43588
43636
|
}
|
|
43589
|
-
if (m.
|
|
43590
|
-
d.
|
|
43637
|
+
if (m.paymentReminderMessage != null && m.hasOwnProperty("paymentReminderMessage")) {
|
|
43638
|
+
d.paymentReminderMessage = $root.proto.Message.PaymentReminderMessage.toObject(m.paymentReminderMessage, o);
|
|
43591
43639
|
if (o.oneofs)
|
|
43592
|
-
d.
|
|
43640
|
+
d._paymentReminderMessage = "paymentReminderMessage";
|
|
43593
43641
|
}
|
|
43594
43642
|
if (m.splitPaymentMessage != null && m.hasOwnProperty("splitPaymentMessage")) {
|
|
43595
43643
|
d.splitPaymentMessage = $root.proto.Message.SplitPaymentMessage.toObject(m.splitPaymentMessage, o);
|
|
43596
43644
|
if (o.oneofs)
|
|
43597
43645
|
d._splitPaymentMessage = "splitPaymentMessage";
|
|
43598
43646
|
}
|
|
43647
|
+
if (m.newsletterAdminProfileStatusMessage != null && m.hasOwnProperty("newsletterAdminProfileStatusMessage")) {
|
|
43648
|
+
d.newsletterAdminProfileStatusMessage = $root.proto.Message.FutureProofMessage.toObject(m.newsletterAdminProfileStatusMessage, o);
|
|
43649
|
+
if (o.oneofs)
|
|
43650
|
+
d._newsletterAdminProfileStatusMessage = "newsletterAdminProfileStatusMessage";
|
|
43651
|
+
}
|
|
43599
43652
|
return d;
|
|
43600
43653
|
};
|
|
43601
43654
|
|
|
@@ -50110,6 +50163,7 @@ export const proto = $root.proto = (() => {
|
|
|
50110
50163
|
EventInviteMessage.prototype.caption = null;
|
|
50111
50164
|
EventInviteMessage.prototype.isCanceled = null;
|
|
50112
50165
|
EventInviteMessage.prototype.endTime = null;
|
|
50166
|
+
EventInviteMessage.prototype.callLink = null;
|
|
50113
50167
|
|
|
50114
50168
|
let $oneOfFields;
|
|
50115
50169
|
|
|
@@ -50161,6 +50215,12 @@ export const proto = $root.proto = (() => {
|
|
|
50161
50215
|
set: $util.oneOfSetter($oneOfFields)
|
|
50162
50216
|
});
|
|
50163
50217
|
|
|
50218
|
+
// Virtual OneOf for proto3 optional field
|
|
50219
|
+
Object.defineProperty(EventInviteMessage.prototype, "_callLink", {
|
|
50220
|
+
get: $util.oneOfGetter($oneOfFields = ["callLink"]),
|
|
50221
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
50222
|
+
});
|
|
50223
|
+
|
|
50164
50224
|
EventInviteMessage.create = function create(properties) {
|
|
50165
50225
|
return new EventInviteMessage(properties);
|
|
50166
50226
|
};
|
|
@@ -50184,6 +50244,8 @@ export const proto = $root.proto = (() => {
|
|
|
50184
50244
|
w.uint32(56).bool(m.isCanceled);
|
|
50185
50245
|
if (m.endTime != null && Object.hasOwnProperty.call(m, "endTime"))
|
|
50186
50246
|
w.uint32(64).int64(m.endTime);
|
|
50247
|
+
if (m.callLink != null && Object.hasOwnProperty.call(m, "callLink"))
|
|
50248
|
+
w.uint32(74).string(m.callLink);
|
|
50187
50249
|
return w;
|
|
50188
50250
|
};
|
|
50189
50251
|
|
|
@@ -50232,6 +50294,10 @@ export const proto = $root.proto = (() => {
|
|
|
50232
50294
|
m.endTime = r.int64();
|
|
50233
50295
|
break;
|
|
50234
50296
|
}
|
|
50297
|
+
case 9: {
|
|
50298
|
+
m.callLink = r.string();
|
|
50299
|
+
break;
|
|
50300
|
+
}
|
|
50235
50301
|
default:
|
|
50236
50302
|
r.skipType(t & 7, n);
|
|
50237
50303
|
break;
|
|
@@ -50291,6 +50357,9 @@ export const proto = $root.proto = (() => {
|
|
|
50291
50357
|
else if (typeof d.endTime === "object")
|
|
50292
50358
|
m.endTime = new $util.LongBits(d.endTime.low >>> 0, d.endTime.high >>> 0).toNumber();
|
|
50293
50359
|
}
|
|
50360
|
+
if (d.callLink != null) {
|
|
50361
|
+
m.callLink = String(d.callLink);
|
|
50362
|
+
}
|
|
50294
50363
|
return m;
|
|
50295
50364
|
};
|
|
50296
50365
|
|
|
@@ -50344,6 +50413,11 @@ export const proto = $root.proto = (() => {
|
|
|
50344
50413
|
if (o.oneofs)
|
|
50345
50414
|
d._endTime = "endTime";
|
|
50346
50415
|
}
|
|
50416
|
+
if (m.callLink != null && m.hasOwnProperty("callLink")) {
|
|
50417
|
+
d.callLink = m.callLink;
|
|
50418
|
+
if (o.oneofs)
|
|
50419
|
+
d._callLink = "callLink";
|
|
50420
|
+
}
|
|
50347
50421
|
return d;
|
|
50348
50422
|
};
|
|
50349
50423
|
|
|
@@ -61597,419 +61671,6 @@ export const proto = $root.proto = (() => {
|
|
|
61597
61671
|
return OrderMessage;
|
|
61598
61672
|
})();
|
|
61599
61673
|
|
|
61600
|
-
Message.P2PPaymentReminderNotification = (function() {
|
|
61601
|
-
|
|
61602
|
-
function P2PPaymentReminderNotification(p) {
|
|
61603
|
-
if (p)
|
|
61604
|
-
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
61605
|
-
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
61606
|
-
this[ks[i]] = p[ks[i]];
|
|
61607
|
-
}
|
|
61608
|
-
|
|
61609
|
-
P2PPaymentReminderNotification.prototype.reminderId = null;
|
|
61610
|
-
P2PPaymentReminderNotification.prototype.amount = null;
|
|
61611
|
-
P2PPaymentReminderNotification.prototype.frequency = null;
|
|
61612
|
-
P2PPaymentReminderNotification.prototype.nextReminderTimestamp = null;
|
|
61613
|
-
P2PPaymentReminderNotification.prototype.expiryTimestamp = null;
|
|
61614
|
-
P2PPaymentReminderNotification.prototype.state = null;
|
|
61615
|
-
P2PPaymentReminderNotification.prototype.description = null;
|
|
61616
|
-
P2PPaymentReminderNotification.prototype.creatorJid = null;
|
|
61617
|
-
P2PPaymentReminderNotification.prototype.receiverJid = null;
|
|
61618
|
-
P2PPaymentReminderNotification.prototype.upiId = null;
|
|
61619
|
-
P2PPaymentReminderNotification.prototype.createdTimestamp = null;
|
|
61620
|
-
|
|
61621
|
-
let $oneOfFields;
|
|
61622
|
-
|
|
61623
|
-
// Virtual OneOf for proto3 optional field
|
|
61624
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_reminderId", {
|
|
61625
|
-
get: $util.oneOfGetter($oneOfFields = ["reminderId"]),
|
|
61626
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61627
|
-
});
|
|
61628
|
-
|
|
61629
|
-
// Virtual OneOf for proto3 optional field
|
|
61630
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_amount", {
|
|
61631
|
-
get: $util.oneOfGetter($oneOfFields = ["amount"]),
|
|
61632
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61633
|
-
});
|
|
61634
|
-
|
|
61635
|
-
// Virtual OneOf for proto3 optional field
|
|
61636
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_frequency", {
|
|
61637
|
-
get: $util.oneOfGetter($oneOfFields = ["frequency"]),
|
|
61638
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61639
|
-
});
|
|
61640
|
-
|
|
61641
|
-
// Virtual OneOf for proto3 optional field
|
|
61642
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_nextReminderTimestamp", {
|
|
61643
|
-
get: $util.oneOfGetter($oneOfFields = ["nextReminderTimestamp"]),
|
|
61644
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61645
|
-
});
|
|
61646
|
-
|
|
61647
|
-
// Virtual OneOf for proto3 optional field
|
|
61648
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_expiryTimestamp", {
|
|
61649
|
-
get: $util.oneOfGetter($oneOfFields = ["expiryTimestamp"]),
|
|
61650
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61651
|
-
});
|
|
61652
|
-
|
|
61653
|
-
// Virtual OneOf for proto3 optional field
|
|
61654
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_state", {
|
|
61655
|
-
get: $util.oneOfGetter($oneOfFields = ["state"]),
|
|
61656
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61657
|
-
});
|
|
61658
|
-
|
|
61659
|
-
// Virtual OneOf for proto3 optional field
|
|
61660
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_description", {
|
|
61661
|
-
get: $util.oneOfGetter($oneOfFields = ["description"]),
|
|
61662
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61663
|
-
});
|
|
61664
|
-
|
|
61665
|
-
// Virtual OneOf for proto3 optional field
|
|
61666
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_creatorJid", {
|
|
61667
|
-
get: $util.oneOfGetter($oneOfFields = ["creatorJid"]),
|
|
61668
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61669
|
-
});
|
|
61670
|
-
|
|
61671
|
-
// Virtual OneOf for proto3 optional field
|
|
61672
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_receiverJid", {
|
|
61673
|
-
get: $util.oneOfGetter($oneOfFields = ["receiverJid"]),
|
|
61674
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61675
|
-
});
|
|
61676
|
-
|
|
61677
|
-
// Virtual OneOf for proto3 optional field
|
|
61678
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_upiId", {
|
|
61679
|
-
get: $util.oneOfGetter($oneOfFields = ["upiId"]),
|
|
61680
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61681
|
-
});
|
|
61682
|
-
|
|
61683
|
-
// Virtual OneOf for proto3 optional field
|
|
61684
|
-
Object.defineProperty(P2PPaymentReminderNotification.prototype, "_createdTimestamp", {
|
|
61685
|
-
get: $util.oneOfGetter($oneOfFields = ["createdTimestamp"]),
|
|
61686
|
-
set: $util.oneOfSetter($oneOfFields)
|
|
61687
|
-
});
|
|
61688
|
-
|
|
61689
|
-
P2PPaymentReminderNotification.create = function create(properties) {
|
|
61690
|
-
return new P2PPaymentReminderNotification(properties);
|
|
61691
|
-
};
|
|
61692
|
-
|
|
61693
|
-
P2PPaymentReminderNotification.encode = function encode(m, w) {
|
|
61694
|
-
if (!w)
|
|
61695
|
-
w = $Writer.create();
|
|
61696
|
-
if (m.reminderId != null && Object.hasOwnProperty.call(m, "reminderId"))
|
|
61697
|
-
w.uint32(10).string(m.reminderId);
|
|
61698
|
-
if (m.amount != null && Object.hasOwnProperty.call(m, "amount"))
|
|
61699
|
-
$root.proto.Money.encode(m.amount, w.uint32(18).fork()).ldelim();
|
|
61700
|
-
if (m.frequency != null && Object.hasOwnProperty.call(m, "frequency"))
|
|
61701
|
-
w.uint32(24).int32(m.frequency);
|
|
61702
|
-
if (m.nextReminderTimestamp != null && Object.hasOwnProperty.call(m, "nextReminderTimestamp"))
|
|
61703
|
-
w.uint32(32).int64(m.nextReminderTimestamp);
|
|
61704
|
-
if (m.expiryTimestamp != null && Object.hasOwnProperty.call(m, "expiryTimestamp"))
|
|
61705
|
-
w.uint32(40).int64(m.expiryTimestamp);
|
|
61706
|
-
if (m.state != null && Object.hasOwnProperty.call(m, "state"))
|
|
61707
|
-
w.uint32(48).int32(m.state);
|
|
61708
|
-
if (m.description != null && Object.hasOwnProperty.call(m, "description"))
|
|
61709
|
-
w.uint32(58).string(m.description);
|
|
61710
|
-
if (m.creatorJid != null && Object.hasOwnProperty.call(m, "creatorJid"))
|
|
61711
|
-
w.uint32(66).string(m.creatorJid);
|
|
61712
|
-
if (m.receiverJid != null && Object.hasOwnProperty.call(m, "receiverJid"))
|
|
61713
|
-
w.uint32(74).string(m.receiverJid);
|
|
61714
|
-
if (m.upiId != null && Object.hasOwnProperty.call(m, "upiId"))
|
|
61715
|
-
w.uint32(82).string(m.upiId);
|
|
61716
|
-
if (m.createdTimestamp != null && Object.hasOwnProperty.call(m, "createdTimestamp"))
|
|
61717
|
-
w.uint32(88).int64(m.createdTimestamp);
|
|
61718
|
-
return w;
|
|
61719
|
-
};
|
|
61720
|
-
|
|
61721
|
-
P2PPaymentReminderNotification.decode = function decode(r, l, e, n) {
|
|
61722
|
-
if (!(r instanceof $Reader))
|
|
61723
|
-
r = $Reader.create(r);
|
|
61724
|
-
if (n === undefined)
|
|
61725
|
-
n = 0;
|
|
61726
|
-
if (n > $Reader.recursionLimit)
|
|
61727
|
-
throw Error("maximum nesting depth exceeded");
|
|
61728
|
-
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.P2PPaymentReminderNotification();
|
|
61729
|
-
while (r.pos < c) {
|
|
61730
|
-
var t = r.uint32();
|
|
61731
|
-
if (t === e)
|
|
61732
|
-
break;
|
|
61733
|
-
switch (t >>> 3) {
|
|
61734
|
-
case 1: {
|
|
61735
|
-
m.reminderId = r.string();
|
|
61736
|
-
break;
|
|
61737
|
-
}
|
|
61738
|
-
case 2: {
|
|
61739
|
-
m.amount = $root.proto.Money.decode(r, r.uint32(), undefined, n + 1);
|
|
61740
|
-
break;
|
|
61741
|
-
}
|
|
61742
|
-
case 3: {
|
|
61743
|
-
m.frequency = r.int32();
|
|
61744
|
-
break;
|
|
61745
|
-
}
|
|
61746
|
-
case 4: {
|
|
61747
|
-
m.nextReminderTimestamp = r.int64();
|
|
61748
|
-
break;
|
|
61749
|
-
}
|
|
61750
|
-
case 5: {
|
|
61751
|
-
m.expiryTimestamp = r.int64();
|
|
61752
|
-
break;
|
|
61753
|
-
}
|
|
61754
|
-
case 6: {
|
|
61755
|
-
m.state = r.int32();
|
|
61756
|
-
break;
|
|
61757
|
-
}
|
|
61758
|
-
case 7: {
|
|
61759
|
-
m.description = r.string();
|
|
61760
|
-
break;
|
|
61761
|
-
}
|
|
61762
|
-
case 8: {
|
|
61763
|
-
m.creatorJid = r.string();
|
|
61764
|
-
break;
|
|
61765
|
-
}
|
|
61766
|
-
case 9: {
|
|
61767
|
-
m.receiverJid = r.string();
|
|
61768
|
-
break;
|
|
61769
|
-
}
|
|
61770
|
-
case 10: {
|
|
61771
|
-
m.upiId = r.string();
|
|
61772
|
-
break;
|
|
61773
|
-
}
|
|
61774
|
-
case 11: {
|
|
61775
|
-
m.createdTimestamp = r.int64();
|
|
61776
|
-
break;
|
|
61777
|
-
}
|
|
61778
|
-
default:
|
|
61779
|
-
r.skipType(t & 7, n);
|
|
61780
|
-
break;
|
|
61781
|
-
}
|
|
61782
|
-
}
|
|
61783
|
-
return m;
|
|
61784
|
-
};
|
|
61785
|
-
|
|
61786
|
-
P2PPaymentReminderNotification.fromObject = function fromObject(d, n) {
|
|
61787
|
-
if (d instanceof $root.proto.Message.P2PPaymentReminderNotification)
|
|
61788
|
-
return d;
|
|
61789
|
-
if (n === undefined)
|
|
61790
|
-
n = 0;
|
|
61791
|
-
if (n > $util.recursionLimit)
|
|
61792
|
-
throw Error("maximum nesting depth exceeded");
|
|
61793
|
-
var m = new $root.proto.Message.P2PPaymentReminderNotification();
|
|
61794
|
-
if (d.reminderId != null) {
|
|
61795
|
-
m.reminderId = String(d.reminderId);
|
|
61796
|
-
}
|
|
61797
|
-
if (d.amount != null) {
|
|
61798
|
-
if (typeof d.amount !== "object")
|
|
61799
|
-
throw TypeError(".proto.Message.P2PPaymentReminderNotification.amount: object expected");
|
|
61800
|
-
m.amount = $root.proto.Money.fromObject(d.amount, n + 1);
|
|
61801
|
-
}
|
|
61802
|
-
switch (d.frequency) {
|
|
61803
|
-
default:
|
|
61804
|
-
if (typeof d.frequency === "number") {
|
|
61805
|
-
m.frequency = d.frequency;
|
|
61806
|
-
break;
|
|
61807
|
-
}
|
|
61808
|
-
break;
|
|
61809
|
-
case "UNKNOWN_FREQUENCY":
|
|
61810
|
-
case 0:
|
|
61811
|
-
m.frequency = 0;
|
|
61812
|
-
break;
|
|
61813
|
-
case "WEEKLY":
|
|
61814
|
-
case 1:
|
|
61815
|
-
m.frequency = 1;
|
|
61816
|
-
break;
|
|
61817
|
-
case "BIWEEKLY":
|
|
61818
|
-
case 2:
|
|
61819
|
-
m.frequency = 2;
|
|
61820
|
-
break;
|
|
61821
|
-
case "MONTHLY":
|
|
61822
|
-
case 3:
|
|
61823
|
-
m.frequency = 3;
|
|
61824
|
-
break;
|
|
61825
|
-
case "CUSTOM":
|
|
61826
|
-
case 4:
|
|
61827
|
-
m.frequency = 4;
|
|
61828
|
-
break;
|
|
61829
|
-
}
|
|
61830
|
-
if (d.nextReminderTimestamp != null) {
|
|
61831
|
-
if ($util.Long)
|
|
61832
|
-
(m.nextReminderTimestamp = $util.Long.fromValue(d.nextReminderTimestamp)).unsigned = false;
|
|
61833
|
-
else if (typeof d.nextReminderTimestamp === "string")
|
|
61834
|
-
m.nextReminderTimestamp = parseInt(d.nextReminderTimestamp, 10);
|
|
61835
|
-
else if (typeof d.nextReminderTimestamp === "number")
|
|
61836
|
-
m.nextReminderTimestamp = d.nextReminderTimestamp;
|
|
61837
|
-
else if (typeof d.nextReminderTimestamp === "object")
|
|
61838
|
-
m.nextReminderTimestamp = new $util.LongBits(d.nextReminderTimestamp.low >>> 0, d.nextReminderTimestamp.high >>> 0).toNumber();
|
|
61839
|
-
}
|
|
61840
|
-
if (d.expiryTimestamp != null) {
|
|
61841
|
-
if ($util.Long)
|
|
61842
|
-
(m.expiryTimestamp = $util.Long.fromValue(d.expiryTimestamp)).unsigned = false;
|
|
61843
|
-
else if (typeof d.expiryTimestamp === "string")
|
|
61844
|
-
m.expiryTimestamp = parseInt(d.expiryTimestamp, 10);
|
|
61845
|
-
else if (typeof d.expiryTimestamp === "number")
|
|
61846
|
-
m.expiryTimestamp = d.expiryTimestamp;
|
|
61847
|
-
else if (typeof d.expiryTimestamp === "object")
|
|
61848
|
-
m.expiryTimestamp = new $util.LongBits(d.expiryTimestamp.low >>> 0, d.expiryTimestamp.high >>> 0).toNumber();
|
|
61849
|
-
}
|
|
61850
|
-
switch (d.state) {
|
|
61851
|
-
default:
|
|
61852
|
-
if (typeof d.state === "number") {
|
|
61853
|
-
m.state = d.state;
|
|
61854
|
-
break;
|
|
61855
|
-
}
|
|
61856
|
-
break;
|
|
61857
|
-
case "UNKNOWN_STATE":
|
|
61858
|
-
case 0:
|
|
61859
|
-
m.state = 0;
|
|
61860
|
-
break;
|
|
61861
|
-
case "ACTIVE":
|
|
61862
|
-
case 1:
|
|
61863
|
-
m.state = 1;
|
|
61864
|
-
break;
|
|
61865
|
-
case "PAUSED":
|
|
61866
|
-
case 2:
|
|
61867
|
-
m.state = 2;
|
|
61868
|
-
break;
|
|
61869
|
-
case "STOPPED":
|
|
61870
|
-
case 3:
|
|
61871
|
-
m.state = 3;
|
|
61872
|
-
break;
|
|
61873
|
-
case "EXPIRED":
|
|
61874
|
-
case 4:
|
|
61875
|
-
m.state = 4;
|
|
61876
|
-
break;
|
|
61877
|
-
case "CANCELLED":
|
|
61878
|
-
case 5:
|
|
61879
|
-
m.state = 5;
|
|
61880
|
-
break;
|
|
61881
|
-
}
|
|
61882
|
-
if (d.description != null) {
|
|
61883
|
-
m.description = String(d.description);
|
|
61884
|
-
}
|
|
61885
|
-
if (d.creatorJid != null) {
|
|
61886
|
-
m.creatorJid = String(d.creatorJid);
|
|
61887
|
-
}
|
|
61888
|
-
if (d.receiverJid != null) {
|
|
61889
|
-
m.receiverJid = String(d.receiverJid);
|
|
61890
|
-
}
|
|
61891
|
-
if (d.upiId != null) {
|
|
61892
|
-
m.upiId = String(d.upiId);
|
|
61893
|
-
}
|
|
61894
|
-
if (d.createdTimestamp != null) {
|
|
61895
|
-
if ($util.Long)
|
|
61896
|
-
(m.createdTimestamp = $util.Long.fromValue(d.createdTimestamp)).unsigned = false;
|
|
61897
|
-
else if (typeof d.createdTimestamp === "string")
|
|
61898
|
-
m.createdTimestamp = parseInt(d.createdTimestamp, 10);
|
|
61899
|
-
else if (typeof d.createdTimestamp === "number")
|
|
61900
|
-
m.createdTimestamp = d.createdTimestamp;
|
|
61901
|
-
else if (typeof d.createdTimestamp === "object")
|
|
61902
|
-
m.createdTimestamp = new $util.LongBits(d.createdTimestamp.low >>> 0, d.createdTimestamp.high >>> 0).toNumber();
|
|
61903
|
-
}
|
|
61904
|
-
return m;
|
|
61905
|
-
};
|
|
61906
|
-
|
|
61907
|
-
P2PPaymentReminderNotification.toObject = function toObject(m, o) {
|
|
61908
|
-
if (!o)
|
|
61909
|
-
o = {};
|
|
61910
|
-
var d = {};
|
|
61911
|
-
if (m.reminderId != null && m.hasOwnProperty("reminderId")) {
|
|
61912
|
-
d.reminderId = m.reminderId;
|
|
61913
|
-
if (o.oneofs)
|
|
61914
|
-
d._reminderId = "reminderId";
|
|
61915
|
-
}
|
|
61916
|
-
if (m.amount != null && m.hasOwnProperty("amount")) {
|
|
61917
|
-
d.amount = $root.proto.Money.toObject(m.amount, o);
|
|
61918
|
-
if (o.oneofs)
|
|
61919
|
-
d._amount = "amount";
|
|
61920
|
-
}
|
|
61921
|
-
if (m.frequency != null && m.hasOwnProperty("frequency")) {
|
|
61922
|
-
d.frequency = o.enums === String ? $root.proto.Message.P2PPaymentReminderNotification.ReminderFrequency[m.frequency] === undefined ? m.frequency : $root.proto.Message.P2PPaymentReminderNotification.ReminderFrequency[m.frequency] : m.frequency;
|
|
61923
|
-
if (o.oneofs)
|
|
61924
|
-
d._frequency = "frequency";
|
|
61925
|
-
}
|
|
61926
|
-
if (m.nextReminderTimestamp != null && m.hasOwnProperty("nextReminderTimestamp")) {
|
|
61927
|
-
if (typeof m.nextReminderTimestamp === "number")
|
|
61928
|
-
d.nextReminderTimestamp = o.longs === String ? String(m.nextReminderTimestamp) : m.nextReminderTimestamp;
|
|
61929
|
-
else
|
|
61930
|
-
d.nextReminderTimestamp = o.longs === String ? longToString(m.nextReminderTimestamp) : o.longs === Number ? longToNumber(m.nextReminderTimestamp) : m.nextReminderTimestamp;
|
|
61931
|
-
if (o.oneofs)
|
|
61932
|
-
d._nextReminderTimestamp = "nextReminderTimestamp";
|
|
61933
|
-
}
|
|
61934
|
-
if (m.expiryTimestamp != null && m.hasOwnProperty("expiryTimestamp")) {
|
|
61935
|
-
if (typeof m.expiryTimestamp === "number")
|
|
61936
|
-
d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
|
|
61937
|
-
else
|
|
61938
|
-
d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp) : o.longs === Number ? longToNumber(m.expiryTimestamp) : m.expiryTimestamp;
|
|
61939
|
-
if (o.oneofs)
|
|
61940
|
-
d._expiryTimestamp = "expiryTimestamp";
|
|
61941
|
-
}
|
|
61942
|
-
if (m.state != null && m.hasOwnProperty("state")) {
|
|
61943
|
-
d.state = o.enums === String ? $root.proto.Message.P2PPaymentReminderNotification.ReminderState[m.state] === undefined ? m.state : $root.proto.Message.P2PPaymentReminderNotification.ReminderState[m.state] : m.state;
|
|
61944
|
-
if (o.oneofs)
|
|
61945
|
-
d._state = "state";
|
|
61946
|
-
}
|
|
61947
|
-
if (m.description != null && m.hasOwnProperty("description")) {
|
|
61948
|
-
d.description = m.description;
|
|
61949
|
-
if (o.oneofs)
|
|
61950
|
-
d._description = "description";
|
|
61951
|
-
}
|
|
61952
|
-
if (m.creatorJid != null && m.hasOwnProperty("creatorJid")) {
|
|
61953
|
-
d.creatorJid = m.creatorJid;
|
|
61954
|
-
if (o.oneofs)
|
|
61955
|
-
d._creatorJid = "creatorJid";
|
|
61956
|
-
}
|
|
61957
|
-
if (m.receiverJid != null && m.hasOwnProperty("receiverJid")) {
|
|
61958
|
-
d.receiverJid = m.receiverJid;
|
|
61959
|
-
if (o.oneofs)
|
|
61960
|
-
d._receiverJid = "receiverJid";
|
|
61961
|
-
}
|
|
61962
|
-
if (m.upiId != null && m.hasOwnProperty("upiId")) {
|
|
61963
|
-
d.upiId = m.upiId;
|
|
61964
|
-
if (o.oneofs)
|
|
61965
|
-
d._upiId = "upiId";
|
|
61966
|
-
}
|
|
61967
|
-
if (m.createdTimestamp != null && m.hasOwnProperty("createdTimestamp")) {
|
|
61968
|
-
if (typeof m.createdTimestamp === "number")
|
|
61969
|
-
d.createdTimestamp = o.longs === String ? String(m.createdTimestamp) : m.createdTimestamp;
|
|
61970
|
-
else
|
|
61971
|
-
d.createdTimestamp = o.longs === String ? longToString(m.createdTimestamp) : o.longs === Number ? longToNumber(m.createdTimestamp) : m.createdTimestamp;
|
|
61972
|
-
if (o.oneofs)
|
|
61973
|
-
d._createdTimestamp = "createdTimestamp";
|
|
61974
|
-
}
|
|
61975
|
-
return d;
|
|
61976
|
-
};
|
|
61977
|
-
|
|
61978
|
-
P2PPaymentReminderNotification.prototype.toJSON = function toJSON() {
|
|
61979
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
61980
|
-
};
|
|
61981
|
-
|
|
61982
|
-
P2PPaymentReminderNotification.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
61983
|
-
if (typeUrlPrefix === undefined) {
|
|
61984
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
61985
|
-
}
|
|
61986
|
-
return typeUrlPrefix + "/proto.Message.P2PPaymentReminderNotification";
|
|
61987
|
-
};
|
|
61988
|
-
|
|
61989
|
-
P2PPaymentReminderNotification.ReminderFrequency = (function() {
|
|
61990
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
61991
|
-
values[valuesById[0] = "UNKNOWN_FREQUENCY"] = 0;
|
|
61992
|
-
values[valuesById[1] = "WEEKLY"] = 1;
|
|
61993
|
-
values[valuesById[2] = "BIWEEKLY"] = 2;
|
|
61994
|
-
values[valuesById[3] = "MONTHLY"] = 3;
|
|
61995
|
-
values[valuesById[4] = "CUSTOM"] = 4;
|
|
61996
|
-
return values;
|
|
61997
|
-
})();
|
|
61998
|
-
|
|
61999
|
-
P2PPaymentReminderNotification.ReminderState = (function() {
|
|
62000
|
-
const valuesById = {}, values = Object.create(valuesById);
|
|
62001
|
-
values[valuesById[0] = "UNKNOWN_STATE"] = 0;
|
|
62002
|
-
values[valuesById[1] = "ACTIVE"] = 1;
|
|
62003
|
-
values[valuesById[2] = "PAUSED"] = 2;
|
|
62004
|
-
values[valuesById[3] = "STOPPED"] = 3;
|
|
62005
|
-
values[valuesById[4] = "EXPIRED"] = 4;
|
|
62006
|
-
values[valuesById[5] = "CANCELLED"] = 5;
|
|
62007
|
-
return values;
|
|
62008
|
-
})();
|
|
62009
|
-
|
|
62010
|
-
return P2PPaymentReminderNotification;
|
|
62011
|
-
})();
|
|
62012
|
-
|
|
62013
61674
|
Message.PaymentExtendedMetadata = (function() {
|
|
62014
61675
|
|
|
62015
61676
|
function PaymentExtendedMetadata(p) {
|
|
@@ -62819,6 +62480,347 @@ export const proto = $root.proto = (() => {
|
|
|
62819
62480
|
return PaymentLinkMetadata;
|
|
62820
62481
|
})();
|
|
62821
62482
|
|
|
62483
|
+
Message.PaymentReminderMessage = (function() {
|
|
62484
|
+
|
|
62485
|
+
function PaymentReminderMessage(p) {
|
|
62486
|
+
if (p)
|
|
62487
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
62488
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
62489
|
+
this[ks[i]] = p[ks[i]];
|
|
62490
|
+
}
|
|
62491
|
+
|
|
62492
|
+
PaymentReminderMessage.prototype.reminderId = null;
|
|
62493
|
+
PaymentReminderMessage.prototype.instanceId = null;
|
|
62494
|
+
PaymentReminderMessage.prototype.description = null;
|
|
62495
|
+
PaymentReminderMessage.prototype.frequency = null;
|
|
62496
|
+
PaymentReminderMessage.prototype.status = null;
|
|
62497
|
+
PaymentReminderMessage.prototype.payeeVpa = null;
|
|
62498
|
+
PaymentReminderMessage.prototype.payeeJid = null;
|
|
62499
|
+
PaymentReminderMessage.prototype.payerJid = null;
|
|
62500
|
+
PaymentReminderMessage.prototype.amount = null;
|
|
62501
|
+
|
|
62502
|
+
let $oneOfFields;
|
|
62503
|
+
|
|
62504
|
+
// Virtual OneOf for proto3 optional field
|
|
62505
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_reminderId", {
|
|
62506
|
+
get: $util.oneOfGetter($oneOfFields = ["reminderId"]),
|
|
62507
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62508
|
+
});
|
|
62509
|
+
|
|
62510
|
+
// Virtual OneOf for proto3 optional field
|
|
62511
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_instanceId", {
|
|
62512
|
+
get: $util.oneOfGetter($oneOfFields = ["instanceId"]),
|
|
62513
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62514
|
+
});
|
|
62515
|
+
|
|
62516
|
+
// Virtual OneOf for proto3 optional field
|
|
62517
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_description", {
|
|
62518
|
+
get: $util.oneOfGetter($oneOfFields = ["description"]),
|
|
62519
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62520
|
+
});
|
|
62521
|
+
|
|
62522
|
+
// Virtual OneOf for proto3 optional field
|
|
62523
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_frequency", {
|
|
62524
|
+
get: $util.oneOfGetter($oneOfFields = ["frequency"]),
|
|
62525
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62526
|
+
});
|
|
62527
|
+
|
|
62528
|
+
// Virtual OneOf for proto3 optional field
|
|
62529
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_status", {
|
|
62530
|
+
get: $util.oneOfGetter($oneOfFields = ["status"]),
|
|
62531
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62532
|
+
});
|
|
62533
|
+
|
|
62534
|
+
// Virtual OneOf for proto3 optional field
|
|
62535
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_payeeVpa", {
|
|
62536
|
+
get: $util.oneOfGetter($oneOfFields = ["payeeVpa"]),
|
|
62537
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62538
|
+
});
|
|
62539
|
+
|
|
62540
|
+
// Virtual OneOf for proto3 optional field
|
|
62541
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_payeeJid", {
|
|
62542
|
+
get: $util.oneOfGetter($oneOfFields = ["payeeJid"]),
|
|
62543
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62544
|
+
});
|
|
62545
|
+
|
|
62546
|
+
// Virtual OneOf for proto3 optional field
|
|
62547
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_payerJid", {
|
|
62548
|
+
get: $util.oneOfGetter($oneOfFields = ["payerJid"]),
|
|
62549
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62550
|
+
});
|
|
62551
|
+
|
|
62552
|
+
// Virtual OneOf for proto3 optional field
|
|
62553
|
+
Object.defineProperty(PaymentReminderMessage.prototype, "_amount", {
|
|
62554
|
+
get: $util.oneOfGetter($oneOfFields = ["amount"]),
|
|
62555
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
62556
|
+
});
|
|
62557
|
+
|
|
62558
|
+
PaymentReminderMessage.create = function create(properties) {
|
|
62559
|
+
return new PaymentReminderMessage(properties);
|
|
62560
|
+
};
|
|
62561
|
+
|
|
62562
|
+
PaymentReminderMessage.encode = function encode(m, w) {
|
|
62563
|
+
if (!w)
|
|
62564
|
+
w = $Writer.create();
|
|
62565
|
+
if (m.reminderId != null && Object.hasOwnProperty.call(m, "reminderId"))
|
|
62566
|
+
w.uint32(10).string(m.reminderId);
|
|
62567
|
+
if (m.instanceId != null && Object.hasOwnProperty.call(m, "instanceId"))
|
|
62568
|
+
w.uint32(18).string(m.instanceId);
|
|
62569
|
+
if (m.description != null && Object.hasOwnProperty.call(m, "description"))
|
|
62570
|
+
w.uint32(26).string(m.description);
|
|
62571
|
+
if (m.frequency != null && Object.hasOwnProperty.call(m, "frequency"))
|
|
62572
|
+
w.uint32(32).int32(m.frequency);
|
|
62573
|
+
if (m.status != null && Object.hasOwnProperty.call(m, "status"))
|
|
62574
|
+
w.uint32(40).int32(m.status);
|
|
62575
|
+
if (m.payeeVpa != null && Object.hasOwnProperty.call(m, "payeeVpa"))
|
|
62576
|
+
w.uint32(50).string(m.payeeVpa);
|
|
62577
|
+
if (m.payeeJid != null && Object.hasOwnProperty.call(m, "payeeJid"))
|
|
62578
|
+
w.uint32(58).string(m.payeeJid);
|
|
62579
|
+
if (m.payerJid != null && Object.hasOwnProperty.call(m, "payerJid"))
|
|
62580
|
+
w.uint32(66).string(m.payerJid);
|
|
62581
|
+
if (m.amount != null && Object.hasOwnProperty.call(m, "amount"))
|
|
62582
|
+
$root.proto.Money.encode(m.amount, w.uint32(74).fork()).ldelim();
|
|
62583
|
+
return w;
|
|
62584
|
+
};
|
|
62585
|
+
|
|
62586
|
+
PaymentReminderMessage.decode = function decode(r, l, e, n) {
|
|
62587
|
+
if (!(r instanceof $Reader))
|
|
62588
|
+
r = $Reader.create(r);
|
|
62589
|
+
if (n === undefined)
|
|
62590
|
+
n = 0;
|
|
62591
|
+
if (n > $Reader.recursionLimit)
|
|
62592
|
+
throw Error("maximum nesting depth exceeded");
|
|
62593
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.Message.PaymentReminderMessage();
|
|
62594
|
+
while (r.pos < c) {
|
|
62595
|
+
var t = r.uint32();
|
|
62596
|
+
if (t === e)
|
|
62597
|
+
break;
|
|
62598
|
+
switch (t >>> 3) {
|
|
62599
|
+
case 1: {
|
|
62600
|
+
m.reminderId = r.string();
|
|
62601
|
+
break;
|
|
62602
|
+
}
|
|
62603
|
+
case 2: {
|
|
62604
|
+
m.instanceId = r.string();
|
|
62605
|
+
break;
|
|
62606
|
+
}
|
|
62607
|
+
case 3: {
|
|
62608
|
+
m.description = r.string();
|
|
62609
|
+
break;
|
|
62610
|
+
}
|
|
62611
|
+
case 4: {
|
|
62612
|
+
m.frequency = r.int32();
|
|
62613
|
+
break;
|
|
62614
|
+
}
|
|
62615
|
+
case 5: {
|
|
62616
|
+
m.status = r.int32();
|
|
62617
|
+
break;
|
|
62618
|
+
}
|
|
62619
|
+
case 6: {
|
|
62620
|
+
m.payeeVpa = r.string();
|
|
62621
|
+
break;
|
|
62622
|
+
}
|
|
62623
|
+
case 7: {
|
|
62624
|
+
m.payeeJid = r.string();
|
|
62625
|
+
break;
|
|
62626
|
+
}
|
|
62627
|
+
case 8: {
|
|
62628
|
+
m.payerJid = r.string();
|
|
62629
|
+
break;
|
|
62630
|
+
}
|
|
62631
|
+
case 9: {
|
|
62632
|
+
m.amount = $root.proto.Money.decode(r, r.uint32(), undefined, n + 1);
|
|
62633
|
+
break;
|
|
62634
|
+
}
|
|
62635
|
+
default:
|
|
62636
|
+
r.skipType(t & 7, n);
|
|
62637
|
+
break;
|
|
62638
|
+
}
|
|
62639
|
+
}
|
|
62640
|
+
return m;
|
|
62641
|
+
};
|
|
62642
|
+
|
|
62643
|
+
PaymentReminderMessage.fromObject = function fromObject(d, n) {
|
|
62644
|
+
if (d instanceof $root.proto.Message.PaymentReminderMessage)
|
|
62645
|
+
return d;
|
|
62646
|
+
if (n === undefined)
|
|
62647
|
+
n = 0;
|
|
62648
|
+
if (n > $util.recursionLimit)
|
|
62649
|
+
throw Error("maximum nesting depth exceeded");
|
|
62650
|
+
var m = new $root.proto.Message.PaymentReminderMessage();
|
|
62651
|
+
if (d.reminderId != null) {
|
|
62652
|
+
m.reminderId = String(d.reminderId);
|
|
62653
|
+
}
|
|
62654
|
+
if (d.instanceId != null) {
|
|
62655
|
+
m.instanceId = String(d.instanceId);
|
|
62656
|
+
}
|
|
62657
|
+
if (d.description != null) {
|
|
62658
|
+
m.description = String(d.description);
|
|
62659
|
+
}
|
|
62660
|
+
switch (d.frequency) {
|
|
62661
|
+
default:
|
|
62662
|
+
if (typeof d.frequency === "number") {
|
|
62663
|
+
m.frequency = d.frequency;
|
|
62664
|
+
break;
|
|
62665
|
+
}
|
|
62666
|
+
break;
|
|
62667
|
+
case "REMINDER_FREQUENCY_UNKNOWN":
|
|
62668
|
+
case 0:
|
|
62669
|
+
m.frequency = 0;
|
|
62670
|
+
break;
|
|
62671
|
+
case "WEEKLY":
|
|
62672
|
+
case 1:
|
|
62673
|
+
m.frequency = 1;
|
|
62674
|
+
break;
|
|
62675
|
+
case "BI_WEEKLY":
|
|
62676
|
+
case 2:
|
|
62677
|
+
m.frequency = 2;
|
|
62678
|
+
break;
|
|
62679
|
+
case "MONTHLY":
|
|
62680
|
+
case 3:
|
|
62681
|
+
m.frequency = 3;
|
|
62682
|
+
break;
|
|
62683
|
+
case "QUARTERLY":
|
|
62684
|
+
case 4:
|
|
62685
|
+
m.frequency = 4;
|
|
62686
|
+
break;
|
|
62687
|
+
}
|
|
62688
|
+
switch (d.status) {
|
|
62689
|
+
default:
|
|
62690
|
+
if (typeof d.status === "number") {
|
|
62691
|
+
m.status = d.status;
|
|
62692
|
+
break;
|
|
62693
|
+
}
|
|
62694
|
+
break;
|
|
62695
|
+
case "REMINDER_STATUS_UNKNOWN":
|
|
62696
|
+
case 0:
|
|
62697
|
+
m.status = 0;
|
|
62698
|
+
break;
|
|
62699
|
+
case "ACTIVE":
|
|
62700
|
+
case 1:
|
|
62701
|
+
m.status = 1;
|
|
62702
|
+
break;
|
|
62703
|
+
case "CANCELLED_BY_CREATOR":
|
|
62704
|
+
case 2:
|
|
62705
|
+
m.status = 2;
|
|
62706
|
+
break;
|
|
62707
|
+
case "STOPPED_BY_RECEIVER":
|
|
62708
|
+
case 3:
|
|
62709
|
+
m.status = 3;
|
|
62710
|
+
break;
|
|
62711
|
+
case "EXPIRED":
|
|
62712
|
+
case 4:
|
|
62713
|
+
m.status = 4;
|
|
62714
|
+
break;
|
|
62715
|
+
case "PAID":
|
|
62716
|
+
case 5:
|
|
62717
|
+
m.status = 5;
|
|
62718
|
+
break;
|
|
62719
|
+
}
|
|
62720
|
+
if (d.payeeVpa != null) {
|
|
62721
|
+
m.payeeVpa = String(d.payeeVpa);
|
|
62722
|
+
}
|
|
62723
|
+
if (d.payeeJid != null) {
|
|
62724
|
+
m.payeeJid = String(d.payeeJid);
|
|
62725
|
+
}
|
|
62726
|
+
if (d.payerJid != null) {
|
|
62727
|
+
m.payerJid = String(d.payerJid);
|
|
62728
|
+
}
|
|
62729
|
+
if (d.amount != null) {
|
|
62730
|
+
if (typeof d.amount !== "object")
|
|
62731
|
+
throw TypeError(".proto.Message.PaymentReminderMessage.amount: object expected");
|
|
62732
|
+
m.amount = $root.proto.Money.fromObject(d.amount, n + 1);
|
|
62733
|
+
}
|
|
62734
|
+
return m;
|
|
62735
|
+
};
|
|
62736
|
+
|
|
62737
|
+
PaymentReminderMessage.toObject = function toObject(m, o) {
|
|
62738
|
+
if (!o)
|
|
62739
|
+
o = {};
|
|
62740
|
+
var d = {};
|
|
62741
|
+
if (m.reminderId != null && m.hasOwnProperty("reminderId")) {
|
|
62742
|
+
d.reminderId = m.reminderId;
|
|
62743
|
+
if (o.oneofs)
|
|
62744
|
+
d._reminderId = "reminderId";
|
|
62745
|
+
}
|
|
62746
|
+
if (m.instanceId != null && m.hasOwnProperty("instanceId")) {
|
|
62747
|
+
d.instanceId = m.instanceId;
|
|
62748
|
+
if (o.oneofs)
|
|
62749
|
+
d._instanceId = "instanceId";
|
|
62750
|
+
}
|
|
62751
|
+
if (m.description != null && m.hasOwnProperty("description")) {
|
|
62752
|
+
d.description = m.description;
|
|
62753
|
+
if (o.oneofs)
|
|
62754
|
+
d._description = "description";
|
|
62755
|
+
}
|
|
62756
|
+
if (m.frequency != null && m.hasOwnProperty("frequency")) {
|
|
62757
|
+
d.frequency = o.enums === String ? $root.proto.Message.PaymentReminderMessage.ReminderFrequency[m.frequency] === undefined ? m.frequency : $root.proto.Message.PaymentReminderMessage.ReminderFrequency[m.frequency] : m.frequency;
|
|
62758
|
+
if (o.oneofs)
|
|
62759
|
+
d._frequency = "frequency";
|
|
62760
|
+
}
|
|
62761
|
+
if (m.status != null && m.hasOwnProperty("status")) {
|
|
62762
|
+
d.status = o.enums === String ? $root.proto.Message.PaymentReminderMessage.ReminderStatus[m.status] === undefined ? m.status : $root.proto.Message.PaymentReminderMessage.ReminderStatus[m.status] : m.status;
|
|
62763
|
+
if (o.oneofs)
|
|
62764
|
+
d._status = "status";
|
|
62765
|
+
}
|
|
62766
|
+
if (m.payeeVpa != null && m.hasOwnProperty("payeeVpa")) {
|
|
62767
|
+
d.payeeVpa = m.payeeVpa;
|
|
62768
|
+
if (o.oneofs)
|
|
62769
|
+
d._payeeVpa = "payeeVpa";
|
|
62770
|
+
}
|
|
62771
|
+
if (m.payeeJid != null && m.hasOwnProperty("payeeJid")) {
|
|
62772
|
+
d.payeeJid = m.payeeJid;
|
|
62773
|
+
if (o.oneofs)
|
|
62774
|
+
d._payeeJid = "payeeJid";
|
|
62775
|
+
}
|
|
62776
|
+
if (m.payerJid != null && m.hasOwnProperty("payerJid")) {
|
|
62777
|
+
d.payerJid = m.payerJid;
|
|
62778
|
+
if (o.oneofs)
|
|
62779
|
+
d._payerJid = "payerJid";
|
|
62780
|
+
}
|
|
62781
|
+
if (m.amount != null && m.hasOwnProperty("amount")) {
|
|
62782
|
+
d.amount = $root.proto.Money.toObject(m.amount, o);
|
|
62783
|
+
if (o.oneofs)
|
|
62784
|
+
d._amount = "amount";
|
|
62785
|
+
}
|
|
62786
|
+
return d;
|
|
62787
|
+
};
|
|
62788
|
+
|
|
62789
|
+
PaymentReminderMessage.prototype.toJSON = function toJSON() {
|
|
62790
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
62791
|
+
};
|
|
62792
|
+
|
|
62793
|
+
PaymentReminderMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
62794
|
+
if (typeUrlPrefix === undefined) {
|
|
62795
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
62796
|
+
}
|
|
62797
|
+
return typeUrlPrefix + "/proto.Message.PaymentReminderMessage";
|
|
62798
|
+
};
|
|
62799
|
+
|
|
62800
|
+
PaymentReminderMessage.ReminderFrequency = (function() {
|
|
62801
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
62802
|
+
values[valuesById[0] = "REMINDER_FREQUENCY_UNKNOWN"] = 0;
|
|
62803
|
+
values[valuesById[1] = "WEEKLY"] = 1;
|
|
62804
|
+
values[valuesById[2] = "BI_WEEKLY"] = 2;
|
|
62805
|
+
values[valuesById[3] = "MONTHLY"] = 3;
|
|
62806
|
+
values[valuesById[4] = "QUARTERLY"] = 4;
|
|
62807
|
+
return values;
|
|
62808
|
+
})();
|
|
62809
|
+
|
|
62810
|
+
PaymentReminderMessage.ReminderStatus = (function() {
|
|
62811
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
62812
|
+
values[valuesById[0] = "REMINDER_STATUS_UNKNOWN"] = 0;
|
|
62813
|
+
values[valuesById[1] = "ACTIVE"] = 1;
|
|
62814
|
+
values[valuesById[2] = "CANCELLED_BY_CREATOR"] = 2;
|
|
62815
|
+
values[valuesById[3] = "STOPPED_BY_RECEIVER"] = 3;
|
|
62816
|
+
values[valuesById[4] = "EXPIRED"] = 4;
|
|
62817
|
+
values[valuesById[5] = "PAID"] = 5;
|
|
62818
|
+
return values;
|
|
62819
|
+
})();
|
|
62820
|
+
|
|
62821
|
+
return PaymentReminderMessage;
|
|
62822
|
+
})();
|
|
62823
|
+
|
|
62822
62824
|
Message.PeerDataOperationRequestMessage = (function() {
|
|
62823
62825
|
|
|
62824
62826
|
function PeerDataOperationRequestMessage(p) {
|