@wppconnect/wa-proto 2.3000.1053925913 → 2.3000.1054053575
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.proto +23 -1
- package/dist/index.d.ts +210 -0
- package/dist/index.js +711 -0
- package/package.json +1 -1
package/WAProto.proto
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
package waproto;
|
|
3
3
|
|
|
4
|
-
/// WhatsApp Version: 2.3000.
|
|
4
|
+
/// WhatsApp Version: 2.3000.1054053575
|
|
5
5
|
|
|
6
6
|
message ACP2Setting {
|
|
7
7
|
optional bool enabled = 1;
|
|
@@ -1608,6 +1608,7 @@ message ContextInfo {
|
|
|
1608
1608
|
optional uint32 sourceExperienceId = 84;
|
|
1609
1609
|
repeated uint32 sourceExperienceIds = 85 [packed=true];
|
|
1610
1610
|
optional bytes foaMutualsSignature = 86;
|
|
1611
|
+
optional fixed32 forwardReachScore = 87;
|
|
1611
1612
|
message AdReplyInfo {
|
|
1612
1613
|
optional string advertiserName = 1;
|
|
1613
1614
|
optional MediaType mediaType = 2;
|
|
@@ -2798,6 +2799,8 @@ message Message {
|
|
|
2798
2799
|
optional FutureProofMessage botGroupParticipantMessage = 137;
|
|
2799
2800
|
optional RequestLocationUpdateMessage requestLocationUpdateMessage = 138;
|
|
2800
2801
|
optional VpcRequestMessage vpcRequestMessage = 139;
|
|
2802
|
+
optional VideoMessage instantVideoMessage = 140;
|
|
2803
|
+
optional PaymentDetailsMessage paymentDetailsMessage = 141;
|
|
2801
2804
|
message AlbumMessage {
|
|
2802
2805
|
optional uint32 expectedImageCount = 2;
|
|
2803
2806
|
optional uint32 expectedVideoCount = 3;
|
|
@@ -3789,6 +3792,25 @@ message Message {
|
|
|
3789
3792
|
}
|
|
3790
3793
|
}
|
|
3791
3794
|
|
|
3795
|
+
message PaymentDetailsMessage {
|
|
3796
|
+
optional ServiceType serviceType = 1;
|
|
3797
|
+
optional Money amount = 2;
|
|
3798
|
+
optional string payeeName = 3;
|
|
3799
|
+
optional string payerName = 4;
|
|
3800
|
+
optional int64 transactionTimestampMs = 5;
|
|
3801
|
+
optional string transactionId = 6;
|
|
3802
|
+
optional Status status = 7;
|
|
3803
|
+
optional ContextInfo contextInfo = 17;
|
|
3804
|
+
enum ServiceType {
|
|
3805
|
+
UNKNOWN = 0;
|
|
3806
|
+
UPI = 1;
|
|
3807
|
+
}
|
|
3808
|
+
enum Status {
|
|
3809
|
+
STATUS_UNKNOWN = 0;
|
|
3810
|
+
SUCCESS = 1;
|
|
3811
|
+
}
|
|
3812
|
+
}
|
|
3813
|
+
|
|
3792
3814
|
message PaymentExtendedMetadata {
|
|
3793
3815
|
optional uint32 type = 1;
|
|
3794
3816
|
optional string platform = 2;
|
package/dist/index.d.ts
CHANGED
|
@@ -20577,6 +20577,9 @@ export namespace waproto {
|
|
|
20577
20577
|
/** ContextInfo foaMutualsSignature. */
|
|
20578
20578
|
foaMutualsSignature?: (Uint8Array|null);
|
|
20579
20579
|
|
|
20580
|
+
/** ContextInfo forwardReachScore. */
|
|
20581
|
+
forwardReachScore?: (number|null);
|
|
20582
|
+
|
|
20580
20583
|
/**
|
|
20581
20584
|
* Creates a new ContextInfo instance using the specified properties.
|
|
20582
20585
|
* @param [properties] Properties to set
|
|
@@ -20868,6 +20871,9 @@ export namespace waproto {
|
|
|
20868
20871
|
/** ContextInfo foaMutualsSignature */
|
|
20869
20872
|
foaMutualsSignature?: (Uint8Array|null);
|
|
20870
20873
|
|
|
20874
|
+
/** ContextInfo forwardReachScore */
|
|
20875
|
+
forwardReachScore?: (number|null);
|
|
20876
|
+
|
|
20871
20877
|
/** Unknown fields preserved while decoding when enabled */
|
|
20872
20878
|
$unknowns?: Uint8Array[];
|
|
20873
20879
|
}
|
|
@@ -20943,6 +20949,7 @@ export namespace waproto {
|
|
|
20943
20949
|
sourceExperienceId?: number|null;
|
|
20944
20950
|
sourceExperienceIds?: number[]|null;
|
|
20945
20951
|
foaMutualsSignature?: Uint8Array|null;
|
|
20952
|
+
forwardReachScore?: number|null;
|
|
20946
20953
|
$unknowns?: Uint8Array[];
|
|
20947
20954
|
};
|
|
20948
20955
|
|
|
@@ -36053,6 +36060,12 @@ export namespace waproto {
|
|
|
36053
36060
|
/** Message vpcRequestMessage. */
|
|
36054
36061
|
vpcRequestMessage?: (waproto.Message.VpcRequestMessage.$Properties|null);
|
|
36055
36062
|
|
|
36063
|
+
/** Message instantVideoMessage. */
|
|
36064
|
+
instantVideoMessage?: (waproto.Message.VideoMessage.$Properties|null);
|
|
36065
|
+
|
|
36066
|
+
/** Message paymentDetailsMessage. */
|
|
36067
|
+
paymentDetailsMessage?: (waproto.Message.PaymentDetailsMessage.$Properties|null);
|
|
36068
|
+
|
|
36056
36069
|
/**
|
|
36057
36070
|
* Creates a new Message instance using the specified properties.
|
|
36058
36071
|
* @param [properties] Properties to set
|
|
@@ -36491,6 +36504,12 @@ export namespace waproto {
|
|
|
36491
36504
|
/** Message vpcRequestMessage */
|
|
36492
36505
|
vpcRequestMessage?: (waproto.Message.VpcRequestMessage.$Properties|null);
|
|
36493
36506
|
|
|
36507
|
+
/** Message instantVideoMessage */
|
|
36508
|
+
instantVideoMessage?: (waproto.Message.VideoMessage.$Properties|null);
|
|
36509
|
+
|
|
36510
|
+
/** Message paymentDetailsMessage */
|
|
36511
|
+
paymentDetailsMessage?: (waproto.Message.PaymentDetailsMessage.$Properties|null);
|
|
36512
|
+
|
|
36494
36513
|
/** Unknown fields preserved while decoding when enabled */
|
|
36495
36514
|
$unknowns?: Uint8Array[];
|
|
36496
36515
|
}
|
|
@@ -36615,6 +36634,8 @@ export namespace waproto {
|
|
|
36615
36634
|
botGroupParticipantMessage?: waproto.Message.FutureProofMessage.$Shape|null;
|
|
36616
36635
|
requestLocationUpdateMessage?: waproto.Message.RequestLocationUpdateMessage.$Shape|null;
|
|
36617
36636
|
vpcRequestMessage?: waproto.Message.VpcRequestMessage.$Shape|null;
|
|
36637
|
+
instantVideoMessage?: waproto.Message.VideoMessage.$Shape|null;
|
|
36638
|
+
paymentDetailsMessage?: waproto.Message.PaymentDetailsMessage.$Shape|null;
|
|
36618
36639
|
$unknowns?: Uint8Array[];
|
|
36619
36640
|
};
|
|
36620
36641
|
|
|
@@ -51420,6 +51441,195 @@ export namespace waproto {
|
|
|
51420
51441
|
}
|
|
51421
51442
|
}
|
|
51422
51443
|
|
|
51444
|
+
/**
|
|
51445
|
+
* Properties of a PaymentDetailsMessage.
|
|
51446
|
+
* @deprecated Use waproto.Message.PaymentDetailsMessage.$Properties instead.
|
|
51447
|
+
*/
|
|
51448
|
+
interface IPaymentDetailsMessage extends waproto.Message.PaymentDetailsMessage.$Properties {
|
|
51449
|
+
}
|
|
51450
|
+
|
|
51451
|
+
/** Represents a PaymentDetailsMessage. */
|
|
51452
|
+
class PaymentDetailsMessage {
|
|
51453
|
+
|
|
51454
|
+
/**
|
|
51455
|
+
* Constructs a new PaymentDetailsMessage.
|
|
51456
|
+
* @param [properties] Properties to set
|
|
51457
|
+
*/
|
|
51458
|
+
constructor(properties?: waproto.Message.PaymentDetailsMessage.$Properties);
|
|
51459
|
+
|
|
51460
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
51461
|
+
$unknowns?: Uint8Array[];
|
|
51462
|
+
|
|
51463
|
+
/** PaymentDetailsMessage serviceType. */
|
|
51464
|
+
serviceType?: (waproto.Message.PaymentDetailsMessage.ServiceType|null);
|
|
51465
|
+
|
|
51466
|
+
/** PaymentDetailsMessage amount. */
|
|
51467
|
+
amount?: (waproto.Money.$Properties|null);
|
|
51468
|
+
|
|
51469
|
+
/** PaymentDetailsMessage payeeName. */
|
|
51470
|
+
payeeName?: (string|null);
|
|
51471
|
+
|
|
51472
|
+
/** PaymentDetailsMessage payerName. */
|
|
51473
|
+
payerName?: (string|null);
|
|
51474
|
+
|
|
51475
|
+
/** PaymentDetailsMessage transactionTimestampMs. */
|
|
51476
|
+
transactionTimestampMs?: (number|Long|null);
|
|
51477
|
+
|
|
51478
|
+
/** PaymentDetailsMessage transactionId. */
|
|
51479
|
+
transactionId?: (string|null);
|
|
51480
|
+
|
|
51481
|
+
/** PaymentDetailsMessage status. */
|
|
51482
|
+
status?: (waproto.Message.PaymentDetailsMessage.Status|null);
|
|
51483
|
+
|
|
51484
|
+
/** PaymentDetailsMessage contextInfo. */
|
|
51485
|
+
contextInfo?: (waproto.ContextInfo.$Properties|null);
|
|
51486
|
+
|
|
51487
|
+
/**
|
|
51488
|
+
* Creates a new PaymentDetailsMessage instance using the specified properties.
|
|
51489
|
+
* @param [properties] Properties to set
|
|
51490
|
+
* @returns PaymentDetailsMessage instance
|
|
51491
|
+
*/
|
|
51492
|
+
static create(properties: waproto.Message.PaymentDetailsMessage.$Shape): waproto.Message.PaymentDetailsMessage & waproto.Message.PaymentDetailsMessage.$Shape;
|
|
51493
|
+
static create(properties?: waproto.Message.PaymentDetailsMessage.$Properties): waproto.Message.PaymentDetailsMessage;
|
|
51494
|
+
|
|
51495
|
+
/**
|
|
51496
|
+
* Encodes the specified PaymentDetailsMessage message. Does not implicitly {@link waproto.Message.PaymentDetailsMessage.verify|verify} messages.
|
|
51497
|
+
* @param message PaymentDetailsMessage message or plain object to encode
|
|
51498
|
+
* @param [writer] Writer to encode to
|
|
51499
|
+
* @returns Writer
|
|
51500
|
+
*/
|
|
51501
|
+
static encode(message: waproto.Message.PaymentDetailsMessage.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
51502
|
+
|
|
51503
|
+
/**
|
|
51504
|
+
* Encodes the specified PaymentDetailsMessage message, length delimited. Does not implicitly {@link waproto.Message.PaymentDetailsMessage.verify|verify} messages.
|
|
51505
|
+
* @param message PaymentDetailsMessage message or plain object to encode
|
|
51506
|
+
* @param [writer] Writer to encode to
|
|
51507
|
+
* @returns Writer
|
|
51508
|
+
*/
|
|
51509
|
+
static encodeDelimited(message: waproto.Message.PaymentDetailsMessage.$Properties, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
51510
|
+
|
|
51511
|
+
/**
|
|
51512
|
+
* Decodes a PaymentDetailsMessage message from the specified reader or buffer.
|
|
51513
|
+
* @param reader Reader or buffer to decode from
|
|
51514
|
+
* @param [length] Message length if known beforehand
|
|
51515
|
+
* @returns {waproto.Message.PaymentDetailsMessage & waproto.Message.PaymentDetailsMessage.$Shape} PaymentDetailsMessage
|
|
51516
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51517
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51518
|
+
*/
|
|
51519
|
+
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.PaymentDetailsMessage & waproto.Message.PaymentDetailsMessage.$Shape;
|
|
51520
|
+
|
|
51521
|
+
/**
|
|
51522
|
+
* Decodes a PaymentDetailsMessage message from the specified reader or buffer, length delimited.
|
|
51523
|
+
* @param reader Reader or buffer to decode from
|
|
51524
|
+
* @returns {waproto.Message.PaymentDetailsMessage & waproto.Message.PaymentDetailsMessage.$Shape} PaymentDetailsMessage
|
|
51525
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51526
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51527
|
+
*/
|
|
51528
|
+
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.PaymentDetailsMessage & waproto.Message.PaymentDetailsMessage.$Shape;
|
|
51529
|
+
|
|
51530
|
+
/**
|
|
51531
|
+
* Verifies a PaymentDetailsMessage message.
|
|
51532
|
+
* @param message Plain object to verify
|
|
51533
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
51534
|
+
*/
|
|
51535
|
+
static verify(message: { [k: string]: any }): (string|null);
|
|
51536
|
+
|
|
51537
|
+
/**
|
|
51538
|
+
* Creates a PaymentDetailsMessage message from a plain object. Also converts values to their respective internal types.
|
|
51539
|
+
* @param object Plain object
|
|
51540
|
+
* @returns PaymentDetailsMessage
|
|
51541
|
+
*/
|
|
51542
|
+
static fromObject(object: { [k: string]: any }): waproto.Message.PaymentDetailsMessage;
|
|
51543
|
+
|
|
51544
|
+
/**
|
|
51545
|
+
* Creates a plain object from a PaymentDetailsMessage message. Also converts values to other types if specified.
|
|
51546
|
+
* @param message PaymentDetailsMessage
|
|
51547
|
+
* @param [options] Conversion options
|
|
51548
|
+
* @returns Plain object
|
|
51549
|
+
*/
|
|
51550
|
+
static toObject(message: waproto.Message.PaymentDetailsMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
51551
|
+
|
|
51552
|
+
/**
|
|
51553
|
+
* Converts this PaymentDetailsMessage to JSON.
|
|
51554
|
+
* @returns JSON object
|
|
51555
|
+
*/
|
|
51556
|
+
toJSON(): { [k: string]: any };
|
|
51557
|
+
|
|
51558
|
+
/**
|
|
51559
|
+
* Gets the type url for PaymentDetailsMessage
|
|
51560
|
+
* @param [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
51561
|
+
* @returns The type url
|
|
51562
|
+
*/
|
|
51563
|
+
static getTypeUrl(prefix?: string): string;
|
|
51564
|
+
}
|
|
51565
|
+
|
|
51566
|
+
namespace PaymentDetailsMessage {
|
|
51567
|
+
|
|
51568
|
+
/** Properties of a PaymentDetailsMessage. */
|
|
51569
|
+
interface $Properties {
|
|
51570
|
+
|
|
51571
|
+
/** PaymentDetailsMessage serviceType */
|
|
51572
|
+
serviceType?: (waproto.Message.PaymentDetailsMessage.ServiceType|null);
|
|
51573
|
+
|
|
51574
|
+
/** PaymentDetailsMessage amount */
|
|
51575
|
+
amount?: (waproto.Money.$Properties|null);
|
|
51576
|
+
|
|
51577
|
+
/** PaymentDetailsMessage payeeName */
|
|
51578
|
+
payeeName?: (string|null);
|
|
51579
|
+
|
|
51580
|
+
/** PaymentDetailsMessage payerName */
|
|
51581
|
+
payerName?: (string|null);
|
|
51582
|
+
|
|
51583
|
+
/** PaymentDetailsMessage transactionTimestampMs */
|
|
51584
|
+
transactionTimestampMs?: (number|Long|null);
|
|
51585
|
+
|
|
51586
|
+
/** PaymentDetailsMessage transactionId */
|
|
51587
|
+
transactionId?: (string|null);
|
|
51588
|
+
|
|
51589
|
+
/** PaymentDetailsMessage status */
|
|
51590
|
+
status?: (waproto.Message.PaymentDetailsMessage.Status|null);
|
|
51591
|
+
|
|
51592
|
+
/** PaymentDetailsMessage contextInfo */
|
|
51593
|
+
contextInfo?: (waproto.ContextInfo.$Properties|null);
|
|
51594
|
+
|
|
51595
|
+
/** Unknown fields preserved while decoding when enabled */
|
|
51596
|
+
$unknowns?: Uint8Array[];
|
|
51597
|
+
}
|
|
51598
|
+
|
|
51599
|
+
/** Shape of a PaymentDetailsMessage. */
|
|
51600
|
+
type $Shape = {
|
|
51601
|
+
serviceType?: waproto.Message.PaymentDetailsMessage.ServiceType|null;
|
|
51602
|
+
amount?: waproto.Money.$Shape|null;
|
|
51603
|
+
payeeName?: string|null;
|
|
51604
|
+
payerName?: string|null;
|
|
51605
|
+
transactionTimestampMs?: number|Long|null;
|
|
51606
|
+
transactionId?: string|null;
|
|
51607
|
+
status?: waproto.Message.PaymentDetailsMessage.Status|null;
|
|
51608
|
+
contextInfo?: waproto.ContextInfo.$Shape|null;
|
|
51609
|
+
$unknowns?: Uint8Array[];
|
|
51610
|
+
};
|
|
51611
|
+
|
|
51612
|
+
/** ServiceType enum. */
|
|
51613
|
+
enum ServiceType {
|
|
51614
|
+
|
|
51615
|
+
/** UNKNOWN value */
|
|
51616
|
+
UNKNOWN = 0,
|
|
51617
|
+
|
|
51618
|
+
/** UPI value */
|
|
51619
|
+
UPI = 1
|
|
51620
|
+
}
|
|
51621
|
+
|
|
51622
|
+
/** Status enum. */
|
|
51623
|
+
enum Status {
|
|
51624
|
+
|
|
51625
|
+
/** STATUS_UNKNOWN value */
|
|
51626
|
+
STATUS_UNKNOWN = 0,
|
|
51627
|
+
|
|
51628
|
+
/** SUCCESS value */
|
|
51629
|
+
SUCCESS = 1
|
|
51630
|
+
}
|
|
51631
|
+
}
|
|
51632
|
+
|
|
51423
51633
|
/**
|
|
51424
51634
|
* Properties of a PaymentExtendedMetadata.
|
|
51425
51635
|
* @deprecated Use waproto.Message.PaymentExtendedMetadata.$Properties instead.
|
package/dist/index.js
CHANGED
|
@@ -58259,6 +58259,7 @@ $root.waproto = (function() {
|
|
|
58259
58259
|
* @property {number|null} [sourceExperienceId] ContextInfo sourceExperienceId
|
|
58260
58260
|
* @property {Array.<number>|null} [sourceExperienceIds] ContextInfo sourceExperienceIds
|
|
58261
58261
|
* @property {Uint8Array|null} [foaMutualsSignature] ContextInfo foaMutualsSignature
|
|
58262
|
+
* @property {number|null} [forwardReachScore] ContextInfo forwardReachScore
|
|
58262
58263
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
58263
58264
|
*/
|
|
58264
58265
|
|
|
@@ -58342,6 +58343,7 @@ $root.waproto = (function() {
|
|
|
58342
58343
|
* sourceExperienceId?: number|null;
|
|
58343
58344
|
* sourceExperienceIds?: Array.<number>|null;
|
|
58344
58345
|
* foaMutualsSignature?: Uint8Array|null;
|
|
58346
|
+
* forwardReachScore?: number|null;
|
|
58345
58347
|
* $unknowns?: Array.<Uint8Array>;
|
|
58346
58348
|
* }} waproto.ContextInfo.$Shape
|
|
58347
58349
|
*/
|
|
@@ -58918,6 +58920,14 @@ $root.waproto = (function() {
|
|
|
58918
58920
|
*/
|
|
58919
58921
|
ContextInfo.prototype.foaMutualsSignature = null;
|
|
58920
58922
|
|
|
58923
|
+
/**
|
|
58924
|
+
* ContextInfo forwardReachScore.
|
|
58925
|
+
* @member {number|null|undefined} forwardReachScore
|
|
58926
|
+
* @memberof waproto.ContextInfo
|
|
58927
|
+
* @instance
|
|
58928
|
+
*/
|
|
58929
|
+
ContextInfo.prototype.forwardReachScore = null;
|
|
58930
|
+
|
|
58921
58931
|
// OneOf field names bound to virtual getters and setters
|
|
58922
58932
|
var $oneOfFields;
|
|
58923
58933
|
|
|
@@ -59305,6 +59315,12 @@ $root.waproto = (function() {
|
|
|
59305
59315
|
set: $util.oneOfSetter($oneOfFields)
|
|
59306
59316
|
});
|
|
59307
59317
|
|
|
59318
|
+
// Virtual OneOf for proto3 optional field
|
|
59319
|
+
$Object.defineProperty(ContextInfo.prototype, "_forwardReachScore", {
|
|
59320
|
+
get: $util.oneOfGetter($oneOfFields = ["forwardReachScore"]),
|
|
59321
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
59322
|
+
});
|
|
59323
|
+
|
|
59308
59324
|
/**
|
|
59309
59325
|
* Creates a new ContextInfo instance using the specified properties.
|
|
59310
59326
|
* @function create
|
|
@@ -59478,6 +59494,8 @@ $root.waproto = (function() {
|
|
|
59478
59494
|
writer.uint32(/* id 85, wireType 2 =*/682).uint32s(message.sourceExperienceIds);
|
|
59479
59495
|
if (message.foaMutualsSignature != null && $Object.hasOwnProperty.call(message, "foaMutualsSignature"))
|
|
59480
59496
|
writer.uint32(/* id 86, wireType 2 =*/690).bytes(message.foaMutualsSignature);
|
|
59497
|
+
if (message.forwardReachScore != null && $Object.hasOwnProperty.call(message, "forwardReachScore"))
|
|
59498
|
+
writer.uint32(/* id 87, wireType 5 =*/701).fixed32(message.forwardReachScore);
|
|
59481
59499
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
59482
59500
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
59483
59501
|
writer.raw(message.$unknowns[i]);
|
|
@@ -60035,6 +60053,13 @@ $root.waproto = (function() {
|
|
|
60035
60053
|
message._foaMutualsSignature = "foaMutualsSignature";
|
|
60036
60054
|
continue;
|
|
60037
60055
|
}
|
|
60056
|
+
case 87: {
|
|
60057
|
+
if (wireType !== 5)
|
|
60058
|
+
break;
|
|
60059
|
+
message.forwardReachScore = reader.fixed32();
|
|
60060
|
+
message._forwardReachScore = "forwardReachScore";
|
|
60061
|
+
continue;
|
|
60062
|
+
}
|
|
60038
60063
|
}
|
|
60039
60064
|
reader.skipType(wireType, _depth, tag);
|
|
60040
60065
|
if (!reader.discardUnknown) {
|
|
@@ -60509,6 +60534,11 @@ $root.waproto = (function() {
|
|
|
60509
60534
|
if (!(message.foaMutualsSignature && typeof message.foaMutualsSignature.length === "number" || $util.isString(message.foaMutualsSignature)))
|
|
60510
60535
|
return "foaMutualsSignature: buffer expected";
|
|
60511
60536
|
}
|
|
60537
|
+
if (message.forwardReachScore != null && $Object.hasOwnProperty.call(message, "forwardReachScore")) {
|
|
60538
|
+
properties._forwardReachScore = 1;
|
|
60539
|
+
if (!$util.isInteger(message.forwardReachScore))
|
|
60540
|
+
return "forwardReachScore: integer expected";
|
|
60541
|
+
}
|
|
60512
60542
|
return null;
|
|
60513
60543
|
};
|
|
60514
60544
|
|
|
@@ -60950,6 +60980,8 @@ $root.waproto = (function() {
|
|
|
60950
60980
|
$util.base64.decode(object.foaMutualsSignature, message.foaMutualsSignature = $util.newBuffer($util.base64.length(object.foaMutualsSignature)), 0);
|
|
60951
60981
|
else if (object.foaMutualsSignature.length >= 0)
|
|
60952
60982
|
message.foaMutualsSignature = object.foaMutualsSignature;
|
|
60983
|
+
if (object.forwardReachScore != null)
|
|
60984
|
+
message.forwardReachScore = object.forwardReachScore >>> 0;
|
|
60953
60985
|
return message;
|
|
60954
60986
|
};
|
|
60955
60987
|
|
|
@@ -61135,6 +61167,8 @@ $root.waproto = (function() {
|
|
|
61135
61167
|
}
|
|
61136
61168
|
if (message.foaMutualsSignature != null && $Object.hasOwnProperty.call(message, "foaMutualsSignature"))
|
|
61137
61169
|
object.foaMutualsSignature = options.bytes === $String ? $util.base64.encode(message.foaMutualsSignature, 0, message.foaMutualsSignature.length) : options.bytes === $Array ? $Array.prototype.slice.call(message.foaMutualsSignature) : message.foaMutualsSignature;
|
|
61170
|
+
if (message.forwardReachScore != null && $Object.hasOwnProperty.call(message, "forwardReachScore"))
|
|
61171
|
+
object.forwardReachScore = message.forwardReachScore;
|
|
61138
61172
|
return object;
|
|
61139
61173
|
};
|
|
61140
61174
|
|
|
@@ -105587,6 +105621,8 @@ $root.waproto = (function() {
|
|
|
105587
105621
|
* @property {waproto.Message.FutureProofMessage.$Properties|null} [botGroupParticipantMessage] Message botGroupParticipantMessage
|
|
105588
105622
|
* @property {waproto.Message.RequestLocationUpdateMessage.$Properties|null} [requestLocationUpdateMessage] Message requestLocationUpdateMessage
|
|
105589
105623
|
* @property {waproto.Message.VpcRequestMessage.$Properties|null} [vpcRequestMessage] Message vpcRequestMessage
|
|
105624
|
+
* @property {waproto.Message.VideoMessage.$Properties|null} [instantVideoMessage] Message instantVideoMessage
|
|
105625
|
+
* @property {waproto.Message.PaymentDetailsMessage.$Properties|null} [paymentDetailsMessage] Message paymentDetailsMessage
|
|
105590
105626
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
105591
105627
|
*/
|
|
105592
105628
|
|
|
@@ -105719,6 +105755,8 @@ $root.waproto = (function() {
|
|
|
105719
105755
|
* botGroupParticipantMessage?: waproto.Message.FutureProofMessage.$Shape|null;
|
|
105720
105756
|
* requestLocationUpdateMessage?: waproto.Message.RequestLocationUpdateMessage.$Shape|null;
|
|
105721
105757
|
* vpcRequestMessage?: waproto.Message.VpcRequestMessage.$Shape|null;
|
|
105758
|
+
* instantVideoMessage?: waproto.Message.VideoMessage.$Shape|null;
|
|
105759
|
+
* paymentDetailsMessage?: waproto.Message.PaymentDetailsMessage.$Shape|null;
|
|
105722
105760
|
* $unknowns?: Array.<Uint8Array>;
|
|
105723
105761
|
* }} waproto.Message.$Shape
|
|
105724
105762
|
*/
|
|
@@ -106682,6 +106720,22 @@ $root.waproto = (function() {
|
|
|
106682
106720
|
*/
|
|
106683
106721
|
Message.prototype.vpcRequestMessage = null;
|
|
106684
106722
|
|
|
106723
|
+
/**
|
|
106724
|
+
* Message instantVideoMessage.
|
|
106725
|
+
* @member {waproto.Message.VideoMessage.$Properties|null|undefined} instantVideoMessage
|
|
106726
|
+
* @memberof waproto.Message
|
|
106727
|
+
* @instance
|
|
106728
|
+
*/
|
|
106729
|
+
Message.prototype.instantVideoMessage = null;
|
|
106730
|
+
|
|
106731
|
+
/**
|
|
106732
|
+
* Message paymentDetailsMessage.
|
|
106733
|
+
* @member {waproto.Message.PaymentDetailsMessage.$Properties|null|undefined} paymentDetailsMessage
|
|
106734
|
+
* @memberof waproto.Message
|
|
106735
|
+
* @instance
|
|
106736
|
+
*/
|
|
106737
|
+
Message.prototype.paymentDetailsMessage = null;
|
|
106738
|
+
|
|
106685
106739
|
// OneOf field names bound to virtual getters and setters
|
|
106686
106740
|
var $oneOfFields;
|
|
106687
106741
|
|
|
@@ -107393,6 +107447,18 @@ $root.waproto = (function() {
|
|
|
107393
107447
|
set: $util.oneOfSetter($oneOfFields)
|
|
107394
107448
|
});
|
|
107395
107449
|
|
|
107450
|
+
// Virtual OneOf for proto3 optional field
|
|
107451
|
+
$Object.defineProperty(Message.prototype, "_instantVideoMessage", {
|
|
107452
|
+
get: $util.oneOfGetter($oneOfFields = ["instantVideoMessage"]),
|
|
107453
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
107454
|
+
});
|
|
107455
|
+
|
|
107456
|
+
// Virtual OneOf for proto3 optional field
|
|
107457
|
+
$Object.defineProperty(Message.prototype, "_paymentDetailsMessage", {
|
|
107458
|
+
get: $util.oneOfGetter($oneOfFields = ["paymentDetailsMessage"]),
|
|
107459
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
107460
|
+
});
|
|
107461
|
+
|
|
107396
107462
|
/**
|
|
107397
107463
|
* Creates a new Message instance using the specified properties.
|
|
107398
107464
|
* @function create
|
|
@@ -107661,6 +107727,10 @@ $root.waproto = (function() {
|
|
|
107661
107727
|
$root.waproto.Message.RequestLocationUpdateMessage.encode(message.requestLocationUpdateMessage, writer.uint32(/* id 138, wireType 2 =*/1106).fork(), _depth + 1).ldelim();
|
|
107662
107728
|
if (message.vpcRequestMessage != null && $Object.hasOwnProperty.call(message, "vpcRequestMessage"))
|
|
107663
107729
|
$root.waproto.Message.VpcRequestMessage.encode(message.vpcRequestMessage, writer.uint32(/* id 139, wireType 2 =*/1114).fork(), _depth + 1).ldelim();
|
|
107730
|
+
if (message.instantVideoMessage != null && $Object.hasOwnProperty.call(message, "instantVideoMessage"))
|
|
107731
|
+
$root.waproto.Message.VideoMessage.encode(message.instantVideoMessage, writer.uint32(/* id 140, wireType 2 =*/1122).fork(), _depth + 1).ldelim();
|
|
107732
|
+
if (message.paymentDetailsMessage != null && $Object.hasOwnProperty.call(message, "paymentDetailsMessage"))
|
|
107733
|
+
$root.waproto.Message.PaymentDetailsMessage.encode(message.paymentDetailsMessage, writer.uint32(/* id 141, wireType 2 =*/1130).fork(), _depth + 1).ldelim();
|
|
107664
107734
|
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
107665
107735
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
107666
107736
|
writer.raw(message.$unknowns[i]);
|
|
@@ -108544,6 +108614,20 @@ $root.waproto = (function() {
|
|
|
108544
108614
|
message._vpcRequestMessage = "vpcRequestMessage";
|
|
108545
108615
|
continue;
|
|
108546
108616
|
}
|
|
108617
|
+
case 140: {
|
|
108618
|
+
if (wireType !== 2)
|
|
108619
|
+
break;
|
|
108620
|
+
message.instantVideoMessage = $root.waproto.Message.VideoMessage.decode(reader, reader.size(), $undefined, _depth + 1, message.instantVideoMessage);
|
|
108621
|
+
message._instantVideoMessage = "instantVideoMessage";
|
|
108622
|
+
continue;
|
|
108623
|
+
}
|
|
108624
|
+
case 141: {
|
|
108625
|
+
if (wireType !== 2)
|
|
108626
|
+
break;
|
|
108627
|
+
message.paymentDetailsMessage = $root.waproto.Message.PaymentDetailsMessage.decode(reader, reader.size(), $undefined, _depth + 1, message.paymentDetailsMessage);
|
|
108628
|
+
message._paymentDetailsMessage = "paymentDetailsMessage";
|
|
108629
|
+
continue;
|
|
108630
|
+
}
|
|
108547
108631
|
}
|
|
108548
108632
|
reader.skipType(wireType, _depth, tag);
|
|
108549
108633
|
if (!reader.discardUnknown) {
|
|
@@ -109534,6 +109618,22 @@ $root.waproto = (function() {
|
|
|
109534
109618
|
return "vpcRequestMessage." + error;
|
|
109535
109619
|
}
|
|
109536
109620
|
}
|
|
109621
|
+
if (message.instantVideoMessage != null && $Object.hasOwnProperty.call(message, "instantVideoMessage")) {
|
|
109622
|
+
properties._instantVideoMessage = 1;
|
|
109623
|
+
{
|
|
109624
|
+
var error = $root.waproto.Message.VideoMessage.verify(message.instantVideoMessage, _depth + 1);
|
|
109625
|
+
if (error)
|
|
109626
|
+
return "instantVideoMessage." + error;
|
|
109627
|
+
}
|
|
109628
|
+
}
|
|
109629
|
+
if (message.paymentDetailsMessage != null && $Object.hasOwnProperty.call(message, "paymentDetailsMessage")) {
|
|
109630
|
+
properties._paymentDetailsMessage = 1;
|
|
109631
|
+
{
|
|
109632
|
+
var error = $root.waproto.Message.PaymentDetailsMessage.verify(message.paymentDetailsMessage, _depth + 1);
|
|
109633
|
+
if (error)
|
|
109634
|
+
return "paymentDetailsMessage." + error;
|
|
109635
|
+
}
|
|
109636
|
+
}
|
|
109537
109637
|
return null;
|
|
109538
109638
|
};
|
|
109539
109639
|
|
|
@@ -110142,6 +110242,16 @@ $root.waproto = (function() {
|
|
|
110142
110242
|
throw $TypeError(".waproto.Message.vpcRequestMessage: object expected");
|
|
110143
110243
|
message.vpcRequestMessage = $root.waproto.Message.VpcRequestMessage.fromObject(object.vpcRequestMessage, _depth + 1);
|
|
110144
110244
|
}
|
|
110245
|
+
if (object.instantVideoMessage != null) {
|
|
110246
|
+
if (!$util.isObject(object.instantVideoMessage))
|
|
110247
|
+
throw $TypeError(".waproto.Message.instantVideoMessage: object expected");
|
|
110248
|
+
message.instantVideoMessage = $root.waproto.Message.VideoMessage.fromObject(object.instantVideoMessage, _depth + 1);
|
|
110249
|
+
}
|
|
110250
|
+
if (object.paymentDetailsMessage != null) {
|
|
110251
|
+
if (!$util.isObject(object.paymentDetailsMessage))
|
|
110252
|
+
throw $TypeError(".waproto.Message.paymentDetailsMessage: object expected");
|
|
110253
|
+
message.paymentDetailsMessage = $root.waproto.Message.PaymentDetailsMessage.fromObject(object.paymentDetailsMessage, _depth + 1);
|
|
110254
|
+
}
|
|
110145
110255
|
return message;
|
|
110146
110256
|
};
|
|
110147
110257
|
|
|
@@ -110398,6 +110508,10 @@ $root.waproto = (function() {
|
|
|
110398
110508
|
object.requestLocationUpdateMessage = $root.waproto.Message.RequestLocationUpdateMessage.toObject(message.requestLocationUpdateMessage, options, _depth + 1);
|
|
110399
110509
|
if (message.vpcRequestMessage != null && $Object.hasOwnProperty.call(message, "vpcRequestMessage"))
|
|
110400
110510
|
object.vpcRequestMessage = $root.waproto.Message.VpcRequestMessage.toObject(message.vpcRequestMessage, options, _depth + 1);
|
|
110511
|
+
if (message.instantVideoMessage != null && $Object.hasOwnProperty.call(message, "instantVideoMessage"))
|
|
110512
|
+
object.instantVideoMessage = $root.waproto.Message.VideoMessage.toObject(message.instantVideoMessage, options, _depth + 1);
|
|
110513
|
+
if (message.paymentDetailsMessage != null && $Object.hasOwnProperty.call(message, "paymentDetailsMessage"))
|
|
110514
|
+
object.paymentDetailsMessage = $root.waproto.Message.PaymentDetailsMessage.toObject(message.paymentDetailsMessage, options, _depth + 1);
|
|
110401
110515
|
return object;
|
|
110402
110516
|
};
|
|
110403
110517
|
|
|
@@ -154496,6 +154610,603 @@ $root.waproto = (function() {
|
|
|
154496
154610
|
return OrderMessage;
|
|
154497
154611
|
})();
|
|
154498
154612
|
|
|
154613
|
+
Message.PaymentDetailsMessage = (function() {
|
|
154614
|
+
|
|
154615
|
+
/**
|
|
154616
|
+
* Properties of a PaymentDetailsMessage.
|
|
154617
|
+
* @typedef {Object} waproto.Message.PaymentDetailsMessage.$Properties
|
|
154618
|
+
* @property {waproto.Message.PaymentDetailsMessage.ServiceType|null} [serviceType] PaymentDetailsMessage serviceType
|
|
154619
|
+
* @property {waproto.Money.$Properties|null} [amount] PaymentDetailsMessage amount
|
|
154620
|
+
* @property {string|null} [payeeName] PaymentDetailsMessage payeeName
|
|
154621
|
+
* @property {string|null} [payerName] PaymentDetailsMessage payerName
|
|
154622
|
+
* @property {number|Long|null} [transactionTimestampMs] PaymentDetailsMessage transactionTimestampMs
|
|
154623
|
+
* @property {string|null} [transactionId] PaymentDetailsMessage transactionId
|
|
154624
|
+
* @property {waproto.Message.PaymentDetailsMessage.Status|null} [status] PaymentDetailsMessage status
|
|
154625
|
+
* @property {waproto.ContextInfo.$Properties|null} [contextInfo] PaymentDetailsMessage contextInfo
|
|
154626
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
154627
|
+
*/
|
|
154628
|
+
|
|
154629
|
+
/**
|
|
154630
|
+
* Properties of a PaymentDetailsMessage.
|
|
154631
|
+
* @memberof waproto.Message
|
|
154632
|
+
* @interface IPaymentDetailsMessage
|
|
154633
|
+
* @augments waproto.Message.PaymentDetailsMessage.$Properties
|
|
154634
|
+
* @deprecated Use waproto.Message.PaymentDetailsMessage.$Properties instead.
|
|
154635
|
+
*/
|
|
154636
|
+
|
|
154637
|
+
/**
|
|
154638
|
+
* Shape of a PaymentDetailsMessage.
|
|
154639
|
+
* @typedef {{
|
|
154640
|
+
* serviceType?: waproto.Message.PaymentDetailsMessage.ServiceType|null;
|
|
154641
|
+
* amount?: waproto.Money.$Shape|null;
|
|
154642
|
+
* payeeName?: string|null;
|
|
154643
|
+
* payerName?: string|null;
|
|
154644
|
+
* transactionTimestampMs?: number|Long|null;
|
|
154645
|
+
* transactionId?: string|null;
|
|
154646
|
+
* status?: waproto.Message.PaymentDetailsMessage.Status|null;
|
|
154647
|
+
* contextInfo?: waproto.ContextInfo.$Shape|null;
|
|
154648
|
+
* $unknowns?: Array.<Uint8Array>;
|
|
154649
|
+
* }} waproto.Message.PaymentDetailsMessage.$Shape
|
|
154650
|
+
*/
|
|
154651
|
+
|
|
154652
|
+
/**
|
|
154653
|
+
* Constructs a new PaymentDetailsMessage.
|
|
154654
|
+
* @memberof waproto.Message
|
|
154655
|
+
* @classdesc Represents a PaymentDetailsMessage.
|
|
154656
|
+
* @constructor
|
|
154657
|
+
* @param {waproto.Message.PaymentDetailsMessage.$Properties=} [properties] Properties to set
|
|
154658
|
+
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding when enabled
|
|
154659
|
+
*/
|
|
154660
|
+
var PaymentDetailsMessage = function (properties) {
|
|
154661
|
+
if (properties)
|
|
154662
|
+
for (var keys = $Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
154663
|
+
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
154664
|
+
this[keys[i]] = properties[keys[i]];
|
|
154665
|
+
};
|
|
154666
|
+
|
|
154667
|
+
/**
|
|
154668
|
+
* PaymentDetailsMessage serviceType.
|
|
154669
|
+
* @member {waproto.Message.PaymentDetailsMessage.ServiceType|null|undefined} serviceType
|
|
154670
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154671
|
+
* @instance
|
|
154672
|
+
*/
|
|
154673
|
+
PaymentDetailsMessage.prototype.serviceType = null;
|
|
154674
|
+
|
|
154675
|
+
/**
|
|
154676
|
+
* PaymentDetailsMessage amount.
|
|
154677
|
+
* @member {waproto.Money.$Properties|null|undefined} amount
|
|
154678
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154679
|
+
* @instance
|
|
154680
|
+
*/
|
|
154681
|
+
PaymentDetailsMessage.prototype.amount = null;
|
|
154682
|
+
|
|
154683
|
+
/**
|
|
154684
|
+
* PaymentDetailsMessage payeeName.
|
|
154685
|
+
* @member {string|null|undefined} payeeName
|
|
154686
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154687
|
+
* @instance
|
|
154688
|
+
*/
|
|
154689
|
+
PaymentDetailsMessage.prototype.payeeName = null;
|
|
154690
|
+
|
|
154691
|
+
/**
|
|
154692
|
+
* PaymentDetailsMessage payerName.
|
|
154693
|
+
* @member {string|null|undefined} payerName
|
|
154694
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154695
|
+
* @instance
|
|
154696
|
+
*/
|
|
154697
|
+
PaymentDetailsMessage.prototype.payerName = null;
|
|
154698
|
+
|
|
154699
|
+
/**
|
|
154700
|
+
* PaymentDetailsMessage transactionTimestampMs.
|
|
154701
|
+
* @member {number|Long|null|undefined} transactionTimestampMs
|
|
154702
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154703
|
+
* @instance
|
|
154704
|
+
*/
|
|
154705
|
+
PaymentDetailsMessage.prototype.transactionTimestampMs = null;
|
|
154706
|
+
|
|
154707
|
+
/**
|
|
154708
|
+
* PaymentDetailsMessage transactionId.
|
|
154709
|
+
* @member {string|null|undefined} transactionId
|
|
154710
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154711
|
+
* @instance
|
|
154712
|
+
*/
|
|
154713
|
+
PaymentDetailsMessage.prototype.transactionId = null;
|
|
154714
|
+
|
|
154715
|
+
/**
|
|
154716
|
+
* PaymentDetailsMessage status.
|
|
154717
|
+
* @member {waproto.Message.PaymentDetailsMessage.Status|null|undefined} status
|
|
154718
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154719
|
+
* @instance
|
|
154720
|
+
*/
|
|
154721
|
+
PaymentDetailsMessage.prototype.status = null;
|
|
154722
|
+
|
|
154723
|
+
/**
|
|
154724
|
+
* PaymentDetailsMessage contextInfo.
|
|
154725
|
+
* @member {waproto.ContextInfo.$Properties|null|undefined} contextInfo
|
|
154726
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154727
|
+
* @instance
|
|
154728
|
+
*/
|
|
154729
|
+
PaymentDetailsMessage.prototype.contextInfo = null;
|
|
154730
|
+
|
|
154731
|
+
// OneOf field names bound to virtual getters and setters
|
|
154732
|
+
var $oneOfFields;
|
|
154733
|
+
|
|
154734
|
+
// Virtual OneOf for proto3 optional field
|
|
154735
|
+
$Object.defineProperty(PaymentDetailsMessage.prototype, "_serviceType", {
|
|
154736
|
+
get: $util.oneOfGetter($oneOfFields = ["serviceType"]),
|
|
154737
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
154738
|
+
});
|
|
154739
|
+
|
|
154740
|
+
// Virtual OneOf for proto3 optional field
|
|
154741
|
+
$Object.defineProperty(PaymentDetailsMessage.prototype, "_amount", {
|
|
154742
|
+
get: $util.oneOfGetter($oneOfFields = ["amount"]),
|
|
154743
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
154744
|
+
});
|
|
154745
|
+
|
|
154746
|
+
// Virtual OneOf for proto3 optional field
|
|
154747
|
+
$Object.defineProperty(PaymentDetailsMessage.prototype, "_payeeName", {
|
|
154748
|
+
get: $util.oneOfGetter($oneOfFields = ["payeeName"]),
|
|
154749
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
154750
|
+
});
|
|
154751
|
+
|
|
154752
|
+
// Virtual OneOf for proto3 optional field
|
|
154753
|
+
$Object.defineProperty(PaymentDetailsMessage.prototype, "_payerName", {
|
|
154754
|
+
get: $util.oneOfGetter($oneOfFields = ["payerName"]),
|
|
154755
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
154756
|
+
});
|
|
154757
|
+
|
|
154758
|
+
// Virtual OneOf for proto3 optional field
|
|
154759
|
+
$Object.defineProperty(PaymentDetailsMessage.prototype, "_transactionTimestampMs", {
|
|
154760
|
+
get: $util.oneOfGetter($oneOfFields = ["transactionTimestampMs"]),
|
|
154761
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
154762
|
+
});
|
|
154763
|
+
|
|
154764
|
+
// Virtual OneOf for proto3 optional field
|
|
154765
|
+
$Object.defineProperty(PaymentDetailsMessage.prototype, "_transactionId", {
|
|
154766
|
+
get: $util.oneOfGetter($oneOfFields = ["transactionId"]),
|
|
154767
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
154768
|
+
});
|
|
154769
|
+
|
|
154770
|
+
// Virtual OneOf for proto3 optional field
|
|
154771
|
+
$Object.defineProperty(PaymentDetailsMessage.prototype, "_status", {
|
|
154772
|
+
get: $util.oneOfGetter($oneOfFields = ["status"]),
|
|
154773
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
154774
|
+
});
|
|
154775
|
+
|
|
154776
|
+
// Virtual OneOf for proto3 optional field
|
|
154777
|
+
$Object.defineProperty(PaymentDetailsMessage.prototype, "_contextInfo", {
|
|
154778
|
+
get: $util.oneOfGetter($oneOfFields = ["contextInfo"]),
|
|
154779
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
154780
|
+
});
|
|
154781
|
+
|
|
154782
|
+
/**
|
|
154783
|
+
* Creates a new PaymentDetailsMessage instance using the specified properties.
|
|
154784
|
+
* @function create
|
|
154785
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154786
|
+
* @static
|
|
154787
|
+
* @param {waproto.Message.PaymentDetailsMessage.$Properties=} [properties] Properties to set
|
|
154788
|
+
* @returns {waproto.Message.PaymentDetailsMessage} PaymentDetailsMessage instance
|
|
154789
|
+
* @type {{
|
|
154790
|
+
* (properties: waproto.Message.PaymentDetailsMessage.$Shape): waproto.Message.PaymentDetailsMessage & waproto.Message.PaymentDetailsMessage.$Shape;
|
|
154791
|
+
* (properties?: waproto.Message.PaymentDetailsMessage.$Properties): waproto.Message.PaymentDetailsMessage;
|
|
154792
|
+
* }}
|
|
154793
|
+
*/
|
|
154794
|
+
PaymentDetailsMessage.create = function(properties) {
|
|
154795
|
+
return new PaymentDetailsMessage(properties);
|
|
154796
|
+
};
|
|
154797
|
+
|
|
154798
|
+
/**
|
|
154799
|
+
* Encodes the specified PaymentDetailsMessage message. Does not implicitly {@link waproto.Message.PaymentDetailsMessage.verify|verify} messages.
|
|
154800
|
+
* @function encode
|
|
154801
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154802
|
+
* @static
|
|
154803
|
+
* @param {waproto.Message.PaymentDetailsMessage.$Properties} message PaymentDetailsMessage message or plain object to encode
|
|
154804
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
154805
|
+
* @returns {$protobuf.Writer} Writer
|
|
154806
|
+
*/
|
|
154807
|
+
PaymentDetailsMessage.encode = function (message, writer, _depth) {
|
|
154808
|
+
if (!writer)
|
|
154809
|
+
writer = $Writer.create();
|
|
154810
|
+
if (_depth === $undefined)
|
|
154811
|
+
_depth = 0;
|
|
154812
|
+
if (_depth > $util.recursionLimit)
|
|
154813
|
+
throw $Error("max depth exceeded");
|
|
154814
|
+
if (message.serviceType != null && $Object.hasOwnProperty.call(message, "serviceType"))
|
|
154815
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.serviceType);
|
|
154816
|
+
if (message.amount != null && $Object.hasOwnProperty.call(message, "amount"))
|
|
154817
|
+
$root.waproto.Money.encode(message.amount, writer.uint32(/* id 2, wireType 2 =*/18).fork(), _depth + 1).ldelim();
|
|
154818
|
+
if (message.payeeName != null && $Object.hasOwnProperty.call(message, "payeeName"))
|
|
154819
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.payeeName);
|
|
154820
|
+
if (message.payerName != null && $Object.hasOwnProperty.call(message, "payerName"))
|
|
154821
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.payerName);
|
|
154822
|
+
if (message.transactionTimestampMs != null && $Object.hasOwnProperty.call(message, "transactionTimestampMs"))
|
|
154823
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int64(message.transactionTimestampMs);
|
|
154824
|
+
if (message.transactionId != null && $Object.hasOwnProperty.call(message, "transactionId"))
|
|
154825
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.transactionId);
|
|
154826
|
+
if (message.status != null && $Object.hasOwnProperty.call(message, "status"))
|
|
154827
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.status);
|
|
154828
|
+
if (message.contextInfo != null && $Object.hasOwnProperty.call(message, "contextInfo"))
|
|
154829
|
+
$root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 17, wireType 2 =*/138).fork(), _depth + 1).ldelim();
|
|
154830
|
+
if (message.$unknowns != null && $Object.hasOwnProperty.call(message, "$unknowns"))
|
|
154831
|
+
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
154832
|
+
writer.raw(message.$unknowns[i]);
|
|
154833
|
+
return writer;
|
|
154834
|
+
};
|
|
154835
|
+
|
|
154836
|
+
/**
|
|
154837
|
+
* Encodes the specified PaymentDetailsMessage message, length delimited. Does not implicitly {@link waproto.Message.PaymentDetailsMessage.verify|verify} messages.
|
|
154838
|
+
* @function encodeDelimited
|
|
154839
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154840
|
+
* @static
|
|
154841
|
+
* @param {waproto.Message.PaymentDetailsMessage.$Properties} message PaymentDetailsMessage message or plain object to encode
|
|
154842
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
154843
|
+
* @returns {$protobuf.Writer} Writer
|
|
154844
|
+
*/
|
|
154845
|
+
PaymentDetailsMessage.encodeDelimited = function(message, writer) {
|
|
154846
|
+
return this.encode(message, (writer || $Writer.create()).fork()).ldelim();
|
|
154847
|
+
};
|
|
154848
|
+
|
|
154849
|
+
/**
|
|
154850
|
+
* Decodes a PaymentDetailsMessage message from the specified reader or buffer.
|
|
154851
|
+
* @function decode
|
|
154852
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154853
|
+
* @static
|
|
154854
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
154855
|
+
* @param {number} [length] Message length if known beforehand
|
|
154856
|
+
* @returns {waproto.Message.PaymentDetailsMessage & waproto.Message.PaymentDetailsMessage.$Shape} PaymentDetailsMessage
|
|
154857
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
154858
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
154859
|
+
*/
|
|
154860
|
+
PaymentDetailsMessage.decode = function (reader, length, _end, _depth, _target) {
|
|
154861
|
+
if (!(reader instanceof $Reader))
|
|
154862
|
+
reader = $Reader.create(reader);
|
|
154863
|
+
if (_depth === $undefined)
|
|
154864
|
+
_depth = 0;
|
|
154865
|
+
if (_depth > $Reader.recursionLimit)
|
|
154866
|
+
throw $Error("max depth exceeded");
|
|
154867
|
+
var end, message, value;
|
|
154868
|
+
if (length === $undefined)
|
|
154869
|
+
end = reader.len;
|
|
154870
|
+
else {
|
|
154871
|
+
end = reader.pos + length;
|
|
154872
|
+
if (end > reader.len)
|
|
154873
|
+
throw $RangeError("index out of range");
|
|
154874
|
+
length = reader.len;
|
|
154875
|
+
reader.len = end;
|
|
154876
|
+
}
|
|
154877
|
+
message = _target || new $root.waproto.Message.PaymentDetailsMessage();
|
|
154878
|
+
while (reader.pos < end) {
|
|
154879
|
+
var start = reader.pos;
|
|
154880
|
+
var tag = reader.tag();
|
|
154881
|
+
if (tag === _end) {
|
|
154882
|
+
_end = $undefined;
|
|
154883
|
+
break;
|
|
154884
|
+
}
|
|
154885
|
+
var wireType = tag & 7;
|
|
154886
|
+
switch (tag >>>= 3) {
|
|
154887
|
+
case 1: {
|
|
154888
|
+
if (wireType !== 0)
|
|
154889
|
+
break;
|
|
154890
|
+
message.serviceType = reader.int32();
|
|
154891
|
+
message._serviceType = "serviceType";
|
|
154892
|
+
continue;
|
|
154893
|
+
}
|
|
154894
|
+
case 2: {
|
|
154895
|
+
if (wireType !== 2)
|
|
154896
|
+
break;
|
|
154897
|
+
message.amount = $root.waproto.Money.decode(reader, reader.size(), $undefined, _depth + 1, message.amount);
|
|
154898
|
+
message._amount = "amount";
|
|
154899
|
+
continue;
|
|
154900
|
+
}
|
|
154901
|
+
case 3: {
|
|
154902
|
+
if (wireType !== 2)
|
|
154903
|
+
break;
|
|
154904
|
+
message.payeeName = reader.stringVerify();
|
|
154905
|
+
message._payeeName = "payeeName";
|
|
154906
|
+
continue;
|
|
154907
|
+
}
|
|
154908
|
+
case 4: {
|
|
154909
|
+
if (wireType !== 2)
|
|
154910
|
+
break;
|
|
154911
|
+
message.payerName = reader.stringVerify();
|
|
154912
|
+
message._payerName = "payerName";
|
|
154913
|
+
continue;
|
|
154914
|
+
}
|
|
154915
|
+
case 5: {
|
|
154916
|
+
if (wireType !== 0)
|
|
154917
|
+
break;
|
|
154918
|
+
message.transactionTimestampMs = reader.int64();
|
|
154919
|
+
message._transactionTimestampMs = "transactionTimestampMs";
|
|
154920
|
+
continue;
|
|
154921
|
+
}
|
|
154922
|
+
case 6: {
|
|
154923
|
+
if (wireType !== 2)
|
|
154924
|
+
break;
|
|
154925
|
+
message.transactionId = reader.stringVerify();
|
|
154926
|
+
message._transactionId = "transactionId";
|
|
154927
|
+
continue;
|
|
154928
|
+
}
|
|
154929
|
+
case 7: {
|
|
154930
|
+
if (wireType !== 0)
|
|
154931
|
+
break;
|
|
154932
|
+
message.status = reader.int32();
|
|
154933
|
+
message._status = "status";
|
|
154934
|
+
continue;
|
|
154935
|
+
}
|
|
154936
|
+
case 17: {
|
|
154937
|
+
if (wireType !== 2)
|
|
154938
|
+
break;
|
|
154939
|
+
message.contextInfo = $root.waproto.ContextInfo.decode(reader, reader.size(), $undefined, _depth + 1, message.contextInfo);
|
|
154940
|
+
message._contextInfo = "contextInfo";
|
|
154941
|
+
continue;
|
|
154942
|
+
}
|
|
154943
|
+
}
|
|
154944
|
+
reader.skipType(wireType, _depth, tag);
|
|
154945
|
+
if (!reader.discardUnknown) {
|
|
154946
|
+
$util.makeProp(message, "$unknowns", false);
|
|
154947
|
+
(message.$unknowns || (message.$unknowns = [])).push(reader.raw(start, reader.pos));
|
|
154948
|
+
}
|
|
154949
|
+
}
|
|
154950
|
+
if (length !== $undefined) {
|
|
154951
|
+
if (reader.pos !== end)
|
|
154952
|
+
throw $RangeError("index out of range");
|
|
154953
|
+
reader.len = length;
|
|
154954
|
+
}
|
|
154955
|
+
if (_end !== $undefined)
|
|
154956
|
+
throw $Error("missing end group");
|
|
154957
|
+
return message;
|
|
154958
|
+
};
|
|
154959
|
+
|
|
154960
|
+
/**
|
|
154961
|
+
* Decodes a PaymentDetailsMessage message from the specified reader or buffer, length delimited.
|
|
154962
|
+
* @function decodeDelimited
|
|
154963
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154964
|
+
* @static
|
|
154965
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
154966
|
+
* @returns {waproto.Message.PaymentDetailsMessage & waproto.Message.PaymentDetailsMessage.$Shape} PaymentDetailsMessage
|
|
154967
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
154968
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
154969
|
+
*/
|
|
154970
|
+
PaymentDetailsMessage.decodeDelimited = function(reader) {
|
|
154971
|
+
if (!(reader instanceof $Reader))
|
|
154972
|
+
reader = new $Reader(reader);
|
|
154973
|
+
return this.decode(reader, reader.size());
|
|
154974
|
+
};
|
|
154975
|
+
|
|
154976
|
+
/**
|
|
154977
|
+
* Verifies a PaymentDetailsMessage message.
|
|
154978
|
+
* @function verify
|
|
154979
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
154980
|
+
* @static
|
|
154981
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
154982
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
154983
|
+
*/
|
|
154984
|
+
PaymentDetailsMessage.verify = function (message, _depth) {
|
|
154985
|
+
if (typeof message !== "object" || message === null)
|
|
154986
|
+
return "object expected";
|
|
154987
|
+
if (_depth === $undefined)
|
|
154988
|
+
_depth = 0;
|
|
154989
|
+
if (_depth > $util.recursionLimit)
|
|
154990
|
+
return "max depth exceeded";
|
|
154991
|
+
var properties = {};
|
|
154992
|
+
if (message.serviceType != null && $Object.hasOwnProperty.call(message, "serviceType")) {
|
|
154993
|
+
properties._serviceType = 1;
|
|
154994
|
+
if (typeof message.serviceType !== "number" || (message.serviceType | 0) !== message.serviceType)
|
|
154995
|
+
return "serviceType: enum value expected";
|
|
154996
|
+
}
|
|
154997
|
+
if (message.amount != null && $Object.hasOwnProperty.call(message, "amount")) {
|
|
154998
|
+
properties._amount = 1;
|
|
154999
|
+
{
|
|
155000
|
+
var error = $root.waproto.Money.verify(message.amount, _depth + 1);
|
|
155001
|
+
if (error)
|
|
155002
|
+
return "amount." + error;
|
|
155003
|
+
}
|
|
155004
|
+
}
|
|
155005
|
+
if (message.payeeName != null && $Object.hasOwnProperty.call(message, "payeeName")) {
|
|
155006
|
+
properties._payeeName = 1;
|
|
155007
|
+
if (!$util.isString(message.payeeName))
|
|
155008
|
+
return "payeeName: string expected";
|
|
155009
|
+
}
|
|
155010
|
+
if (message.payerName != null && $Object.hasOwnProperty.call(message, "payerName")) {
|
|
155011
|
+
properties._payerName = 1;
|
|
155012
|
+
if (!$util.isString(message.payerName))
|
|
155013
|
+
return "payerName: string expected";
|
|
155014
|
+
}
|
|
155015
|
+
if (message.transactionTimestampMs != null && $Object.hasOwnProperty.call(message, "transactionTimestampMs")) {
|
|
155016
|
+
properties._transactionTimestampMs = 1;
|
|
155017
|
+
if (!$util.isInteger(message.transactionTimestampMs) && !(message.transactionTimestampMs && $util.isInteger(message.transactionTimestampMs.low) && $util.isInteger(message.transactionTimestampMs.high)))
|
|
155018
|
+
return "transactionTimestampMs: integer|Long expected";
|
|
155019
|
+
}
|
|
155020
|
+
if (message.transactionId != null && $Object.hasOwnProperty.call(message, "transactionId")) {
|
|
155021
|
+
properties._transactionId = 1;
|
|
155022
|
+
if (!$util.isString(message.transactionId))
|
|
155023
|
+
return "transactionId: string expected";
|
|
155024
|
+
}
|
|
155025
|
+
if (message.status != null && $Object.hasOwnProperty.call(message, "status")) {
|
|
155026
|
+
properties._status = 1;
|
|
155027
|
+
if (typeof message.status !== "number" || (message.status | 0) !== message.status)
|
|
155028
|
+
return "status: enum value expected";
|
|
155029
|
+
}
|
|
155030
|
+
if (message.contextInfo != null && $Object.hasOwnProperty.call(message, "contextInfo")) {
|
|
155031
|
+
properties._contextInfo = 1;
|
|
155032
|
+
{
|
|
155033
|
+
var error = $root.waproto.ContextInfo.verify(message.contextInfo, _depth + 1);
|
|
155034
|
+
if (error)
|
|
155035
|
+
return "contextInfo." + error;
|
|
155036
|
+
}
|
|
155037
|
+
}
|
|
155038
|
+
return null;
|
|
155039
|
+
};
|
|
155040
|
+
|
|
155041
|
+
/**
|
|
155042
|
+
* Creates a PaymentDetailsMessage message from a plain object. Also converts values to their respective internal types.
|
|
155043
|
+
* @function fromObject
|
|
155044
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
155045
|
+
* @static
|
|
155046
|
+
* @param {Object.<string,*>} object Plain object
|
|
155047
|
+
* @returns {waproto.Message.PaymentDetailsMessage} PaymentDetailsMessage
|
|
155048
|
+
*/
|
|
155049
|
+
PaymentDetailsMessage.fromObject = function (object, _depth) {
|
|
155050
|
+
if (object instanceof $root.waproto.Message.PaymentDetailsMessage)
|
|
155051
|
+
return object;
|
|
155052
|
+
if (!$util.isObject(object))
|
|
155053
|
+
throw $TypeError(".waproto.Message.PaymentDetailsMessage: object expected");
|
|
155054
|
+
if (_depth === $undefined)
|
|
155055
|
+
_depth = 0;
|
|
155056
|
+
if (_depth > $util.recursionLimit)
|
|
155057
|
+
throw $Error("max depth exceeded");
|
|
155058
|
+
var message = new $root.waproto.Message.PaymentDetailsMessage();
|
|
155059
|
+
switch (object.serviceType) {
|
|
155060
|
+
case "UNKNOWN":
|
|
155061
|
+
case 0:
|
|
155062
|
+
message.serviceType = 0;
|
|
155063
|
+
break;
|
|
155064
|
+
case "UPI":
|
|
155065
|
+
case 1:
|
|
155066
|
+
message.serviceType = 1;
|
|
155067
|
+
break;
|
|
155068
|
+
default:
|
|
155069
|
+
if (typeof object.serviceType === "number" && (object.serviceType | 0) === object.serviceType)
|
|
155070
|
+
message.serviceType = object.serviceType;
|
|
155071
|
+
}
|
|
155072
|
+
if (object.amount != null) {
|
|
155073
|
+
if (!$util.isObject(object.amount))
|
|
155074
|
+
throw $TypeError(".waproto.Message.PaymentDetailsMessage.amount: object expected");
|
|
155075
|
+
message.amount = $root.waproto.Money.fromObject(object.amount, _depth + 1);
|
|
155076
|
+
}
|
|
155077
|
+
if (object.payeeName != null)
|
|
155078
|
+
message.payeeName = $String(object.payeeName);
|
|
155079
|
+
if (object.payerName != null)
|
|
155080
|
+
message.payerName = $String(object.payerName);
|
|
155081
|
+
if (object.transactionTimestampMs != null)
|
|
155082
|
+
if ($util.Long)
|
|
155083
|
+
message.transactionTimestampMs = $util.Long.fromValue(object.transactionTimestampMs, false);
|
|
155084
|
+
else if (typeof object.transactionTimestampMs === "string")
|
|
155085
|
+
message.transactionTimestampMs = $parseInt(object.transactionTimestampMs, 10);
|
|
155086
|
+
else if (typeof object.transactionTimestampMs === "number")
|
|
155087
|
+
message.transactionTimestampMs = object.transactionTimestampMs;
|
|
155088
|
+
else if (typeof object.transactionTimestampMs === "object")
|
|
155089
|
+
message.transactionTimestampMs = new $util.LongBits(object.transactionTimestampMs.low >>> 0, object.transactionTimestampMs.high >>> 0).toNumber();
|
|
155090
|
+
if (object.transactionId != null)
|
|
155091
|
+
message.transactionId = $String(object.transactionId);
|
|
155092
|
+
switch (object.status) {
|
|
155093
|
+
case "STATUS_UNKNOWN":
|
|
155094
|
+
case 0:
|
|
155095
|
+
message.status = 0;
|
|
155096
|
+
break;
|
|
155097
|
+
case "SUCCESS":
|
|
155098
|
+
case 1:
|
|
155099
|
+
message.status = 1;
|
|
155100
|
+
break;
|
|
155101
|
+
default:
|
|
155102
|
+
if (typeof object.status === "number" && (object.status | 0) === object.status)
|
|
155103
|
+
message.status = object.status;
|
|
155104
|
+
}
|
|
155105
|
+
if (object.contextInfo != null) {
|
|
155106
|
+
if (!$util.isObject(object.contextInfo))
|
|
155107
|
+
throw $TypeError(".waproto.Message.PaymentDetailsMessage.contextInfo: object expected");
|
|
155108
|
+
message.contextInfo = $root.waproto.ContextInfo.fromObject(object.contextInfo, _depth + 1);
|
|
155109
|
+
}
|
|
155110
|
+
return message;
|
|
155111
|
+
};
|
|
155112
|
+
|
|
155113
|
+
/**
|
|
155114
|
+
* Creates a plain object from a PaymentDetailsMessage message. Also converts values to other types if specified.
|
|
155115
|
+
* @function toObject
|
|
155116
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
155117
|
+
* @static
|
|
155118
|
+
* @param {waproto.Message.PaymentDetailsMessage} message PaymentDetailsMessage
|
|
155119
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
155120
|
+
* @returns {Object.<string,*>} Plain object
|
|
155121
|
+
*/
|
|
155122
|
+
PaymentDetailsMessage.toObject = function (message, options, _depth) {
|
|
155123
|
+
if (!options)
|
|
155124
|
+
options = {};
|
|
155125
|
+
if (_depth === $undefined)
|
|
155126
|
+
_depth = 0;
|
|
155127
|
+
if (_depth > $util.recursionLimit)
|
|
155128
|
+
throw $Error("max depth exceeded");
|
|
155129
|
+
var object = {};
|
|
155130
|
+
if (message.serviceType != null && $Object.hasOwnProperty.call(message, "serviceType"))
|
|
155131
|
+
object.serviceType = options.enums === $String ? $root.waproto.Message.PaymentDetailsMessage.ServiceType[message.serviceType] === $undefined ? message.serviceType : $root.waproto.Message.PaymentDetailsMessage.ServiceType[message.serviceType] : message.serviceType;
|
|
155132
|
+
if (message.amount != null && $Object.hasOwnProperty.call(message, "amount"))
|
|
155133
|
+
object.amount = $root.waproto.Money.toObject(message.amount, options, _depth + 1);
|
|
155134
|
+
if (message.payeeName != null && $Object.hasOwnProperty.call(message, "payeeName"))
|
|
155135
|
+
object.payeeName = message.payeeName;
|
|
155136
|
+
if (message.payerName != null && $Object.hasOwnProperty.call(message, "payerName"))
|
|
155137
|
+
object.payerName = message.payerName;
|
|
155138
|
+
if (message.transactionTimestampMs != null && $Object.hasOwnProperty.call(message, "transactionTimestampMs"))
|
|
155139
|
+
if (typeof $BigInt !== "undefined" && options.longs === $BigInt)
|
|
155140
|
+
object.transactionTimestampMs = typeof message.transactionTimestampMs === "number" ? $BigInt(message.transactionTimestampMs) : $util.Long.fromBits(message.transactionTimestampMs.low >>> 0, message.transactionTimestampMs.high >>> 0, false).toBigInt();
|
|
155141
|
+
else if (typeof message.transactionTimestampMs === "number")
|
|
155142
|
+
object.transactionTimestampMs = options.longs === $String ? $String(message.transactionTimestampMs) : message.transactionTimestampMs;
|
|
155143
|
+
else
|
|
155144
|
+
object.transactionTimestampMs = options.longs === $String ? $util.Long.prototype.toString.call(message.transactionTimestampMs) : options.longs === $Number ? new $util.LongBits(message.transactionTimestampMs.low >>> 0, message.transactionTimestampMs.high >>> 0).toNumber() : message.transactionTimestampMs;
|
|
155145
|
+
if (message.transactionId != null && $Object.hasOwnProperty.call(message, "transactionId"))
|
|
155146
|
+
object.transactionId = message.transactionId;
|
|
155147
|
+
if (message.status != null && $Object.hasOwnProperty.call(message, "status"))
|
|
155148
|
+
object.status = options.enums === $String ? $root.waproto.Message.PaymentDetailsMessage.Status[message.status] === $undefined ? message.status : $root.waproto.Message.PaymentDetailsMessage.Status[message.status] : message.status;
|
|
155149
|
+
if (message.contextInfo != null && $Object.hasOwnProperty.call(message, "contextInfo"))
|
|
155150
|
+
object.contextInfo = $root.waproto.ContextInfo.toObject(message.contextInfo, options, _depth + 1);
|
|
155151
|
+
return object;
|
|
155152
|
+
};
|
|
155153
|
+
|
|
155154
|
+
/**
|
|
155155
|
+
* Converts this PaymentDetailsMessage to JSON.
|
|
155156
|
+
* @function toJSON
|
|
155157
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
155158
|
+
* @instance
|
|
155159
|
+
* @returns {Object.<string,*>} JSON object
|
|
155160
|
+
*/
|
|
155161
|
+
PaymentDetailsMessage.prototype.toJSON = function() {
|
|
155162
|
+
return PaymentDetailsMessage.toObject(this, $protobuf.util.toJSONOptions);
|
|
155163
|
+
};
|
|
155164
|
+
|
|
155165
|
+
/**
|
|
155166
|
+
* Gets the type url for PaymentDetailsMessage
|
|
155167
|
+
* @function getTypeUrl
|
|
155168
|
+
* @memberof waproto.Message.PaymentDetailsMessage
|
|
155169
|
+
* @static
|
|
155170
|
+
* @param {string} [prefix] Custom type url prefix, defaults to `"type.googleapis.com"`
|
|
155171
|
+
* @returns {string} The type url
|
|
155172
|
+
*/
|
|
155173
|
+
PaymentDetailsMessage.getTypeUrl = function(prefix) {
|
|
155174
|
+
if (prefix === $undefined)
|
|
155175
|
+
prefix = "type.googleapis.com";
|
|
155176
|
+
return prefix + "/waproto.Message.PaymentDetailsMessage";
|
|
155177
|
+
};
|
|
155178
|
+
|
|
155179
|
+
/**
|
|
155180
|
+
* ServiceType enum.
|
|
155181
|
+
* @name waproto.Message.PaymentDetailsMessage.ServiceType
|
|
155182
|
+
* @enum {number}
|
|
155183
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
155184
|
+
* @property {number} UPI=1 UPI value
|
|
155185
|
+
*/
|
|
155186
|
+
PaymentDetailsMessage.ServiceType = (function() {
|
|
155187
|
+
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
155188
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
155189
|
+
values[valuesById[1] = "UPI"] = 1;
|
|
155190
|
+
return values;
|
|
155191
|
+
})();
|
|
155192
|
+
|
|
155193
|
+
/**
|
|
155194
|
+
* Status enum.
|
|
155195
|
+
* @name waproto.Message.PaymentDetailsMessage.Status
|
|
155196
|
+
* @enum {number}
|
|
155197
|
+
* @property {number} STATUS_UNKNOWN=0 STATUS_UNKNOWN value
|
|
155198
|
+
* @property {number} SUCCESS=1 SUCCESS value
|
|
155199
|
+
*/
|
|
155200
|
+
PaymentDetailsMessage.Status = (function() {
|
|
155201
|
+
var valuesById = $Object.create(null), values = $Object.create(valuesById);
|
|
155202
|
+
values[valuesById[0] = "STATUS_UNKNOWN"] = 0;
|
|
155203
|
+
values[valuesById[1] = "SUCCESS"] = 1;
|
|
155204
|
+
return values;
|
|
155205
|
+
})();
|
|
155206
|
+
|
|
155207
|
+
return PaymentDetailsMessage;
|
|
155208
|
+
})();
|
|
155209
|
+
|
|
154499
155210
|
Message.PaymentExtendedMetadata = (function() {
|
|
154500
155211
|
|
|
154501
155212
|
/**
|