@headspace/protos-events 1.48.0 → 1.50.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +229 -408
- package/lib/index.js +815 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -5304,6 +5304,323 @@ $root.ContentPlayed = (function() {
|
|
|
5304
5304
|
return ContentPlayed;
|
|
5305
5305
|
})();
|
|
5306
5306
|
|
|
5307
|
+
$root.BuddyAccepted = (function() {
|
|
5308
|
+
|
|
5309
|
+
/**
|
|
5310
|
+
* Properties of a BuddyAccepted.
|
|
5311
|
+
* @exports IBuddyAccepted
|
|
5312
|
+
* @interface IBuddyAccepted
|
|
5313
|
+
* @property {string|null} [buddyName] BuddyAccepted buddyName
|
|
5314
|
+
* @property {string|null} [userId] BuddyAccepted userId
|
|
5315
|
+
* @property {string|null} [deepLink] BuddyAccepted deepLink
|
|
5316
|
+
* @property {string|null} [actionIdIos] BuddyAccepted actionIdIos
|
|
5317
|
+
* @property {Action|null} [actionIos] BuddyAccepted actionIos
|
|
5318
|
+
*/
|
|
5319
|
+
|
|
5320
|
+
/**
|
|
5321
|
+
* Constructs a new BuddyAccepted.
|
|
5322
|
+
* @exports BuddyAccepted
|
|
5323
|
+
* @classdesc Represents a BuddyAccepted.
|
|
5324
|
+
* @implements IBuddyAccepted
|
|
5325
|
+
* @constructor
|
|
5326
|
+
* @param {IBuddyAccepted=} [properties] Properties to set
|
|
5327
|
+
*/
|
|
5328
|
+
function BuddyAccepted(properties) {
|
|
5329
|
+
if (properties)
|
|
5330
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5331
|
+
if (properties[keys[i]] != null)
|
|
5332
|
+
this[keys[i]] = properties[keys[i]];
|
|
5333
|
+
}
|
|
5334
|
+
|
|
5335
|
+
/**
|
|
5336
|
+
* BuddyAccepted buddyName.
|
|
5337
|
+
* @member {string} buddyName
|
|
5338
|
+
* @memberof BuddyAccepted
|
|
5339
|
+
* @instance
|
|
5340
|
+
*/
|
|
5341
|
+
BuddyAccepted.prototype.buddyName = "";
|
|
5342
|
+
|
|
5343
|
+
/**
|
|
5344
|
+
* BuddyAccepted userId.
|
|
5345
|
+
* @member {string} userId
|
|
5346
|
+
* @memberof BuddyAccepted
|
|
5347
|
+
* @instance
|
|
5348
|
+
*/
|
|
5349
|
+
BuddyAccepted.prototype.userId = "";
|
|
5350
|
+
|
|
5351
|
+
/**
|
|
5352
|
+
* BuddyAccepted deepLink.
|
|
5353
|
+
* @member {string} deepLink
|
|
5354
|
+
* @memberof BuddyAccepted
|
|
5355
|
+
* @instance
|
|
5356
|
+
*/
|
|
5357
|
+
BuddyAccepted.prototype.deepLink = "";
|
|
5358
|
+
|
|
5359
|
+
/**
|
|
5360
|
+
* BuddyAccepted actionIdIos.
|
|
5361
|
+
* @member {string} actionIdIos
|
|
5362
|
+
* @memberof BuddyAccepted
|
|
5363
|
+
* @instance
|
|
5364
|
+
*/
|
|
5365
|
+
BuddyAccepted.prototype.actionIdIos = "";
|
|
5366
|
+
|
|
5367
|
+
/**
|
|
5368
|
+
* BuddyAccepted actionIos.
|
|
5369
|
+
* @member {Action} actionIos
|
|
5370
|
+
* @memberof BuddyAccepted
|
|
5371
|
+
* @instance
|
|
5372
|
+
*/
|
|
5373
|
+
BuddyAccepted.prototype.actionIos = 0;
|
|
5374
|
+
|
|
5375
|
+
/**
|
|
5376
|
+
* Creates a new BuddyAccepted instance using the specified properties.
|
|
5377
|
+
* @function create
|
|
5378
|
+
* @memberof BuddyAccepted
|
|
5379
|
+
* @static
|
|
5380
|
+
* @param {IBuddyAccepted=} [properties] Properties to set
|
|
5381
|
+
* @returns {BuddyAccepted} BuddyAccepted instance
|
|
5382
|
+
*/
|
|
5383
|
+
BuddyAccepted.create = function create(properties) {
|
|
5384
|
+
return new BuddyAccepted(properties);
|
|
5385
|
+
};
|
|
5386
|
+
|
|
5387
|
+
/**
|
|
5388
|
+
* Encodes the specified BuddyAccepted message. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
|
|
5389
|
+
* @function encode
|
|
5390
|
+
* @memberof BuddyAccepted
|
|
5391
|
+
* @static
|
|
5392
|
+
* @param {IBuddyAccepted} message BuddyAccepted message or plain object to encode
|
|
5393
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5394
|
+
* @returns {$protobuf.Writer} Writer
|
|
5395
|
+
*/
|
|
5396
|
+
BuddyAccepted.encode = function encode(message, writer) {
|
|
5397
|
+
if (!writer)
|
|
5398
|
+
writer = $Writer.create();
|
|
5399
|
+
if (message.buddyName != null && message.hasOwnProperty("buddyName"))
|
|
5400
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.buddyName);
|
|
5401
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
5402
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
5403
|
+
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
5404
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.deepLink);
|
|
5405
|
+
if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
|
|
5406
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.actionIdIos);
|
|
5407
|
+
if (message.actionIos != null && message.hasOwnProperty("actionIos"))
|
|
5408
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.actionIos);
|
|
5409
|
+
return writer;
|
|
5410
|
+
};
|
|
5411
|
+
|
|
5412
|
+
/**
|
|
5413
|
+
* Encodes the specified BuddyAccepted message, length delimited. Does not implicitly {@link BuddyAccepted.verify|verify} messages.
|
|
5414
|
+
* @function encodeDelimited
|
|
5415
|
+
* @memberof BuddyAccepted
|
|
5416
|
+
* @static
|
|
5417
|
+
* @param {IBuddyAccepted} message BuddyAccepted message or plain object to encode
|
|
5418
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5419
|
+
* @returns {$protobuf.Writer} Writer
|
|
5420
|
+
*/
|
|
5421
|
+
BuddyAccepted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5422
|
+
return this.encode(message, writer).ldelim();
|
|
5423
|
+
};
|
|
5424
|
+
|
|
5425
|
+
/**
|
|
5426
|
+
* Decodes a BuddyAccepted message from the specified reader or buffer.
|
|
5427
|
+
* @function decode
|
|
5428
|
+
* @memberof BuddyAccepted
|
|
5429
|
+
* @static
|
|
5430
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5431
|
+
* @param {number} [length] Message length if known beforehand
|
|
5432
|
+
* @returns {BuddyAccepted} BuddyAccepted
|
|
5433
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5434
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5435
|
+
*/
|
|
5436
|
+
BuddyAccepted.decode = function decode(reader, length) {
|
|
5437
|
+
if (!(reader instanceof $Reader))
|
|
5438
|
+
reader = $Reader.create(reader);
|
|
5439
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BuddyAccepted();
|
|
5440
|
+
while (reader.pos < end) {
|
|
5441
|
+
var tag = reader.uint32();
|
|
5442
|
+
switch (tag >>> 3) {
|
|
5443
|
+
case 1:
|
|
5444
|
+
message.buddyName = reader.string();
|
|
5445
|
+
break;
|
|
5446
|
+
case 2:
|
|
5447
|
+
message.userId = reader.string();
|
|
5448
|
+
break;
|
|
5449
|
+
case 3:
|
|
5450
|
+
message.deepLink = reader.string();
|
|
5451
|
+
break;
|
|
5452
|
+
case 4:
|
|
5453
|
+
message.actionIdIos = reader.string();
|
|
5454
|
+
break;
|
|
5455
|
+
case 5:
|
|
5456
|
+
message.actionIos = reader.int32();
|
|
5457
|
+
break;
|
|
5458
|
+
default:
|
|
5459
|
+
reader.skipType(tag & 7);
|
|
5460
|
+
break;
|
|
5461
|
+
}
|
|
5462
|
+
}
|
|
5463
|
+
return message;
|
|
5464
|
+
};
|
|
5465
|
+
|
|
5466
|
+
/**
|
|
5467
|
+
* Decodes a BuddyAccepted message from the specified reader or buffer, length delimited.
|
|
5468
|
+
* @function decodeDelimited
|
|
5469
|
+
* @memberof BuddyAccepted
|
|
5470
|
+
* @static
|
|
5471
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5472
|
+
* @returns {BuddyAccepted} BuddyAccepted
|
|
5473
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5474
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5475
|
+
*/
|
|
5476
|
+
BuddyAccepted.decodeDelimited = function decodeDelimited(reader) {
|
|
5477
|
+
if (!(reader instanceof $Reader))
|
|
5478
|
+
reader = new $Reader(reader);
|
|
5479
|
+
return this.decode(reader, reader.uint32());
|
|
5480
|
+
};
|
|
5481
|
+
|
|
5482
|
+
/**
|
|
5483
|
+
* Verifies a BuddyAccepted message.
|
|
5484
|
+
* @function verify
|
|
5485
|
+
* @memberof BuddyAccepted
|
|
5486
|
+
* @static
|
|
5487
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5488
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5489
|
+
*/
|
|
5490
|
+
BuddyAccepted.verify = function verify(message) {
|
|
5491
|
+
if (typeof message !== "object" || message === null)
|
|
5492
|
+
return "object expected";
|
|
5493
|
+
if (message.buddyName != null && message.hasOwnProperty("buddyName"))
|
|
5494
|
+
if (!$util.isString(message.buddyName))
|
|
5495
|
+
return "buddyName: string expected";
|
|
5496
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
5497
|
+
if (!$util.isString(message.userId))
|
|
5498
|
+
return "userId: string expected";
|
|
5499
|
+
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
5500
|
+
if (!$util.isString(message.deepLink))
|
|
5501
|
+
return "deepLink: string expected";
|
|
5502
|
+
if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
|
|
5503
|
+
if (!$util.isString(message.actionIdIos))
|
|
5504
|
+
return "actionIdIos: string expected";
|
|
5505
|
+
if (message.actionIos != null && message.hasOwnProperty("actionIos"))
|
|
5506
|
+
switch (message.actionIos) {
|
|
5507
|
+
default:
|
|
5508
|
+
return "actionIos: enum value expected";
|
|
5509
|
+
case 0:
|
|
5510
|
+
case 1:
|
|
5511
|
+
case 2:
|
|
5512
|
+
case 3:
|
|
5513
|
+
break;
|
|
5514
|
+
}
|
|
5515
|
+
return null;
|
|
5516
|
+
};
|
|
5517
|
+
|
|
5518
|
+
/**
|
|
5519
|
+
* Creates a BuddyAccepted message from a plain object. Also converts values to their respective internal types.
|
|
5520
|
+
* @function fromObject
|
|
5521
|
+
* @memberof BuddyAccepted
|
|
5522
|
+
* @static
|
|
5523
|
+
* @param {Object.<string,*>} object Plain object
|
|
5524
|
+
* @returns {BuddyAccepted} BuddyAccepted
|
|
5525
|
+
*/
|
|
5526
|
+
BuddyAccepted.fromObject = function fromObject(object) {
|
|
5527
|
+
if (object instanceof $root.BuddyAccepted)
|
|
5528
|
+
return object;
|
|
5529
|
+
var message = new $root.BuddyAccepted();
|
|
5530
|
+
if (object.buddyName != null)
|
|
5531
|
+
message.buddyName = String(object.buddyName);
|
|
5532
|
+
if (object.userId != null)
|
|
5533
|
+
message.userId = String(object.userId);
|
|
5534
|
+
if (object.deepLink != null)
|
|
5535
|
+
message.deepLink = String(object.deepLink);
|
|
5536
|
+
if (object.actionIdIos != null)
|
|
5537
|
+
message.actionIdIos = String(object.actionIdIos);
|
|
5538
|
+
switch (object.actionIos) {
|
|
5539
|
+
case "OPEN_APP":
|
|
5540
|
+
case 0:
|
|
5541
|
+
message.actionIos = 0;
|
|
5542
|
+
break;
|
|
5543
|
+
case "URI":
|
|
5544
|
+
case 1:
|
|
5545
|
+
message.actionIos = 1;
|
|
5546
|
+
break;
|
|
5547
|
+
case "DEEP_LINK":
|
|
5548
|
+
case 2:
|
|
5549
|
+
message.actionIos = 2;
|
|
5550
|
+
break;
|
|
5551
|
+
case "CLOSE":
|
|
5552
|
+
case 3:
|
|
5553
|
+
message.actionIos = 3;
|
|
5554
|
+
break;
|
|
5555
|
+
}
|
|
5556
|
+
return message;
|
|
5557
|
+
};
|
|
5558
|
+
|
|
5559
|
+
/**
|
|
5560
|
+
* Creates a plain object from a BuddyAccepted message. Also converts values to other types if specified.
|
|
5561
|
+
* @function toObject
|
|
5562
|
+
* @memberof BuddyAccepted
|
|
5563
|
+
* @static
|
|
5564
|
+
* @param {BuddyAccepted} message BuddyAccepted
|
|
5565
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5566
|
+
* @returns {Object.<string,*>} Plain object
|
|
5567
|
+
*/
|
|
5568
|
+
BuddyAccepted.toObject = function toObject(message, options) {
|
|
5569
|
+
if (!options)
|
|
5570
|
+
options = {};
|
|
5571
|
+
var object = {};
|
|
5572
|
+
if (options.defaults) {
|
|
5573
|
+
object.buddyName = "";
|
|
5574
|
+
object.userId = "";
|
|
5575
|
+
object.deepLink = "";
|
|
5576
|
+
object.actionIdIos = "";
|
|
5577
|
+
object.actionIos = options.enums === String ? "OPEN_APP" : 0;
|
|
5578
|
+
}
|
|
5579
|
+
if (message.buddyName != null && message.hasOwnProperty("buddyName"))
|
|
5580
|
+
object.buddyName = message.buddyName;
|
|
5581
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
5582
|
+
object.userId = message.userId;
|
|
5583
|
+
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
5584
|
+
object.deepLink = message.deepLink;
|
|
5585
|
+
if (message.actionIdIos != null && message.hasOwnProperty("actionIdIos"))
|
|
5586
|
+
object.actionIdIos = message.actionIdIos;
|
|
5587
|
+
if (message.actionIos != null && message.hasOwnProperty("actionIos"))
|
|
5588
|
+
object.actionIos = options.enums === String ? $root.Action[message.actionIos] : message.actionIos;
|
|
5589
|
+
return object;
|
|
5590
|
+
};
|
|
5591
|
+
|
|
5592
|
+
/**
|
|
5593
|
+
* Converts this BuddyAccepted to JSON.
|
|
5594
|
+
* @function toJSON
|
|
5595
|
+
* @memberof BuddyAccepted
|
|
5596
|
+
* @instance
|
|
5597
|
+
* @returns {Object.<string,*>} JSON object
|
|
5598
|
+
*/
|
|
5599
|
+
BuddyAccepted.prototype.toJSON = function toJSON() {
|
|
5600
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5601
|
+
};
|
|
5602
|
+
|
|
5603
|
+
return BuddyAccepted;
|
|
5604
|
+
})();
|
|
5605
|
+
|
|
5606
|
+
/**
|
|
5607
|
+
* Action enum.
|
|
5608
|
+
* @exports Action
|
|
5609
|
+
* @enum {string}
|
|
5610
|
+
* @property {number} OPEN_APP=0 OPEN_APP value
|
|
5611
|
+
* @property {number} URI=1 URI value
|
|
5612
|
+
* @property {number} DEEP_LINK=2 DEEP_LINK value
|
|
5613
|
+
* @property {number} CLOSE=3 CLOSE value
|
|
5614
|
+
*/
|
|
5615
|
+
$root.Action = (function() {
|
|
5616
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
5617
|
+
values[valuesById[0] = "OPEN_APP"] = 0;
|
|
5618
|
+
values[valuesById[1] = "URI"] = 1;
|
|
5619
|
+
values[valuesById[2] = "DEEP_LINK"] = 2;
|
|
5620
|
+
values[valuesById[3] = "CLOSE"] = 3;
|
|
5621
|
+
return values;
|
|
5622
|
+
})();
|
|
5623
|
+
|
|
5307
5624
|
$root.FamilyMemberAdded = (function() {
|
|
5308
5625
|
|
|
5309
5626
|
/**
|
|
@@ -10799,6 +11116,504 @@ $root.SubscriptionPaymentDeclined = (function() {
|
|
|
10799
11116
|
return SubscriptionPaymentDeclined;
|
|
10800
11117
|
})();
|
|
10801
11118
|
|
|
11119
|
+
$root.SubscriptionGraced = (function() {
|
|
11120
|
+
|
|
11121
|
+
/**
|
|
11122
|
+
* Properties of a SubscriptionGraced.
|
|
11123
|
+
* @exports ISubscriptionGraced
|
|
11124
|
+
* @interface ISubscriptionGraced
|
|
11125
|
+
* @property {number|null} [id] SubscriptionGraced id
|
|
11126
|
+
* @property {number|Long|null} [updatedOn] SubscriptionGraced updatedOn
|
|
11127
|
+
* @property {string|null} [userId] SubscriptionGraced userId
|
|
11128
|
+
* @property {number|Long|null} [createdAt] SubscriptionGraced createdAt
|
|
11129
|
+
* @property {number|Long|null} [startsAt] SubscriptionGraced startsAt
|
|
11130
|
+
* @property {number|Long|null} [endsAt] SubscriptionGraced endsAt
|
|
11131
|
+
* @property {string|null} [voucherCode] SubscriptionGraced voucherCode
|
|
11132
|
+
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionGraced platform
|
|
11133
|
+
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionGraced autoRenewalStatus
|
|
11134
|
+
* @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
|
|
11135
|
+
*/
|
|
11136
|
+
|
|
11137
|
+
/**
|
|
11138
|
+
* Constructs a new SubscriptionGraced.
|
|
11139
|
+
* @exports SubscriptionGraced
|
|
11140
|
+
* @classdesc Represents a SubscriptionGraced.
|
|
11141
|
+
* @implements ISubscriptionGraced
|
|
11142
|
+
* @constructor
|
|
11143
|
+
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
11144
|
+
*/
|
|
11145
|
+
function SubscriptionGraced(properties) {
|
|
11146
|
+
if (properties)
|
|
11147
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11148
|
+
if (properties[keys[i]] != null)
|
|
11149
|
+
this[keys[i]] = properties[keys[i]];
|
|
11150
|
+
}
|
|
11151
|
+
|
|
11152
|
+
/**
|
|
11153
|
+
* SubscriptionGraced id.
|
|
11154
|
+
* @member {number} id
|
|
11155
|
+
* @memberof SubscriptionGraced
|
|
11156
|
+
* @instance
|
|
11157
|
+
*/
|
|
11158
|
+
SubscriptionGraced.prototype.id = 0;
|
|
11159
|
+
|
|
11160
|
+
/**
|
|
11161
|
+
* SubscriptionGraced updatedOn.
|
|
11162
|
+
* @member {number|Long} updatedOn
|
|
11163
|
+
* @memberof SubscriptionGraced
|
|
11164
|
+
* @instance
|
|
11165
|
+
*/
|
|
11166
|
+
SubscriptionGraced.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11167
|
+
|
|
11168
|
+
/**
|
|
11169
|
+
* SubscriptionGraced userId.
|
|
11170
|
+
* @member {string} userId
|
|
11171
|
+
* @memberof SubscriptionGraced
|
|
11172
|
+
* @instance
|
|
11173
|
+
*/
|
|
11174
|
+
SubscriptionGraced.prototype.userId = "";
|
|
11175
|
+
|
|
11176
|
+
/**
|
|
11177
|
+
* SubscriptionGraced createdAt.
|
|
11178
|
+
* @member {number|Long} createdAt
|
|
11179
|
+
* @memberof SubscriptionGraced
|
|
11180
|
+
* @instance
|
|
11181
|
+
*/
|
|
11182
|
+
SubscriptionGraced.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11183
|
+
|
|
11184
|
+
/**
|
|
11185
|
+
* SubscriptionGraced startsAt.
|
|
11186
|
+
* @member {number|Long} startsAt
|
|
11187
|
+
* @memberof SubscriptionGraced
|
|
11188
|
+
* @instance
|
|
11189
|
+
*/
|
|
11190
|
+
SubscriptionGraced.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11191
|
+
|
|
11192
|
+
/**
|
|
11193
|
+
* SubscriptionGraced endsAt.
|
|
11194
|
+
* @member {number|Long} endsAt
|
|
11195
|
+
* @memberof SubscriptionGraced
|
|
11196
|
+
* @instance
|
|
11197
|
+
*/
|
|
11198
|
+
SubscriptionGraced.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11199
|
+
|
|
11200
|
+
/**
|
|
11201
|
+
* SubscriptionGraced voucherCode.
|
|
11202
|
+
* @member {string} voucherCode
|
|
11203
|
+
* @memberof SubscriptionGraced
|
|
11204
|
+
* @instance
|
|
11205
|
+
*/
|
|
11206
|
+
SubscriptionGraced.prototype.voucherCode = "";
|
|
11207
|
+
|
|
11208
|
+
/**
|
|
11209
|
+
* SubscriptionGraced platform.
|
|
11210
|
+
* @member {subscription.SubscriptionPlatform} platform
|
|
11211
|
+
* @memberof SubscriptionGraced
|
|
11212
|
+
* @instance
|
|
11213
|
+
*/
|
|
11214
|
+
SubscriptionGraced.prototype.platform = 0;
|
|
11215
|
+
|
|
11216
|
+
/**
|
|
11217
|
+
* SubscriptionGraced autoRenewalStatus.
|
|
11218
|
+
* @member {subscription.AutoRenewalStatus} autoRenewalStatus
|
|
11219
|
+
* @memberof SubscriptionGraced
|
|
11220
|
+
* @instance
|
|
11221
|
+
*/
|
|
11222
|
+
SubscriptionGraced.prototype.autoRenewalStatus = 0;
|
|
11223
|
+
|
|
11224
|
+
/**
|
|
11225
|
+
* SubscriptionGraced plan.
|
|
11226
|
+
* @member {subscription.IPlan|null|undefined} plan
|
|
11227
|
+
* @memberof SubscriptionGraced
|
|
11228
|
+
* @instance
|
|
11229
|
+
*/
|
|
11230
|
+
SubscriptionGraced.prototype.plan = null;
|
|
11231
|
+
|
|
11232
|
+
/**
|
|
11233
|
+
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
11234
|
+
* @function create
|
|
11235
|
+
* @memberof SubscriptionGraced
|
|
11236
|
+
* @static
|
|
11237
|
+
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
11238
|
+
* @returns {SubscriptionGraced} SubscriptionGraced instance
|
|
11239
|
+
*/
|
|
11240
|
+
SubscriptionGraced.create = function create(properties) {
|
|
11241
|
+
return new SubscriptionGraced(properties);
|
|
11242
|
+
};
|
|
11243
|
+
|
|
11244
|
+
/**
|
|
11245
|
+
* Encodes the specified SubscriptionGraced message. Does not implicitly {@link SubscriptionGraced.verify|verify} messages.
|
|
11246
|
+
* @function encode
|
|
11247
|
+
* @memberof SubscriptionGraced
|
|
11248
|
+
* @static
|
|
11249
|
+
* @param {ISubscriptionGraced} message SubscriptionGraced message or plain object to encode
|
|
11250
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11251
|
+
* @returns {$protobuf.Writer} Writer
|
|
11252
|
+
*/
|
|
11253
|
+
SubscriptionGraced.encode = function encode(message, writer) {
|
|
11254
|
+
if (!writer)
|
|
11255
|
+
writer = $Writer.create();
|
|
11256
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11257
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
11258
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
11259
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
11260
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
11261
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
11262
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11263
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
11264
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
11265
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.startsAt);
|
|
11266
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
11267
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.endsAt);
|
|
11268
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
11269
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
11270
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
11271
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
11272
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
11273
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
|
|
11274
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
11275
|
+
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
11276
|
+
return writer;
|
|
11277
|
+
};
|
|
11278
|
+
|
|
11279
|
+
/**
|
|
11280
|
+
* Encodes the specified SubscriptionGraced message, length delimited. Does not implicitly {@link SubscriptionGraced.verify|verify} messages.
|
|
11281
|
+
* @function encodeDelimited
|
|
11282
|
+
* @memberof SubscriptionGraced
|
|
11283
|
+
* @static
|
|
11284
|
+
* @param {ISubscriptionGraced} message SubscriptionGraced message or plain object to encode
|
|
11285
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11286
|
+
* @returns {$protobuf.Writer} Writer
|
|
11287
|
+
*/
|
|
11288
|
+
SubscriptionGraced.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11289
|
+
return this.encode(message, writer).ldelim();
|
|
11290
|
+
};
|
|
11291
|
+
|
|
11292
|
+
/**
|
|
11293
|
+
* Decodes a SubscriptionGraced message from the specified reader or buffer.
|
|
11294
|
+
* @function decode
|
|
11295
|
+
* @memberof SubscriptionGraced
|
|
11296
|
+
* @static
|
|
11297
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11298
|
+
* @param {number} [length] Message length if known beforehand
|
|
11299
|
+
* @returns {SubscriptionGraced} SubscriptionGraced
|
|
11300
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11301
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11302
|
+
*/
|
|
11303
|
+
SubscriptionGraced.decode = function decode(reader, length) {
|
|
11304
|
+
if (!(reader instanceof $Reader))
|
|
11305
|
+
reader = $Reader.create(reader);
|
|
11306
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionGraced();
|
|
11307
|
+
while (reader.pos < end) {
|
|
11308
|
+
var tag = reader.uint32();
|
|
11309
|
+
switch (tag >>> 3) {
|
|
11310
|
+
case 1:
|
|
11311
|
+
message.id = reader.uint32();
|
|
11312
|
+
break;
|
|
11313
|
+
case 2:
|
|
11314
|
+
message.updatedOn = reader.uint64();
|
|
11315
|
+
break;
|
|
11316
|
+
case 3:
|
|
11317
|
+
message.userId = reader.string();
|
|
11318
|
+
break;
|
|
11319
|
+
case 4:
|
|
11320
|
+
message.createdAt = reader.uint64();
|
|
11321
|
+
break;
|
|
11322
|
+
case 5:
|
|
11323
|
+
message.startsAt = reader.uint64();
|
|
11324
|
+
break;
|
|
11325
|
+
case 6:
|
|
11326
|
+
message.endsAt = reader.uint64();
|
|
11327
|
+
break;
|
|
11328
|
+
case 7:
|
|
11329
|
+
message.voucherCode = reader.string();
|
|
11330
|
+
break;
|
|
11331
|
+
case 8:
|
|
11332
|
+
message.platform = reader.int32();
|
|
11333
|
+
break;
|
|
11334
|
+
case 9:
|
|
11335
|
+
message.autoRenewalStatus = reader.int32();
|
|
11336
|
+
break;
|
|
11337
|
+
case 10:
|
|
11338
|
+
message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
|
|
11339
|
+
break;
|
|
11340
|
+
default:
|
|
11341
|
+
reader.skipType(tag & 7);
|
|
11342
|
+
break;
|
|
11343
|
+
}
|
|
11344
|
+
}
|
|
11345
|
+
return message;
|
|
11346
|
+
};
|
|
11347
|
+
|
|
11348
|
+
/**
|
|
11349
|
+
* Decodes a SubscriptionGraced message from the specified reader or buffer, length delimited.
|
|
11350
|
+
* @function decodeDelimited
|
|
11351
|
+
* @memberof SubscriptionGraced
|
|
11352
|
+
* @static
|
|
11353
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11354
|
+
* @returns {SubscriptionGraced} SubscriptionGraced
|
|
11355
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11356
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11357
|
+
*/
|
|
11358
|
+
SubscriptionGraced.decodeDelimited = function decodeDelimited(reader) {
|
|
11359
|
+
if (!(reader instanceof $Reader))
|
|
11360
|
+
reader = new $Reader(reader);
|
|
11361
|
+
return this.decode(reader, reader.uint32());
|
|
11362
|
+
};
|
|
11363
|
+
|
|
11364
|
+
/**
|
|
11365
|
+
* Verifies a SubscriptionGraced message.
|
|
11366
|
+
* @function verify
|
|
11367
|
+
* @memberof SubscriptionGraced
|
|
11368
|
+
* @static
|
|
11369
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11370
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11371
|
+
*/
|
|
11372
|
+
SubscriptionGraced.verify = function verify(message) {
|
|
11373
|
+
if (typeof message !== "object" || message === null)
|
|
11374
|
+
return "object expected";
|
|
11375
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11376
|
+
if (!$util.isInteger(message.id))
|
|
11377
|
+
return "id: integer expected";
|
|
11378
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
11379
|
+
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
11380
|
+
return "updatedOn: integer|Long expected";
|
|
11381
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
11382
|
+
if (!$util.isString(message.userId))
|
|
11383
|
+
return "userId: string expected";
|
|
11384
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11385
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
11386
|
+
return "createdAt: integer|Long expected";
|
|
11387
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
11388
|
+
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
11389
|
+
return "startsAt: integer|Long expected";
|
|
11390
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
11391
|
+
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
11392
|
+
return "endsAt: integer|Long expected";
|
|
11393
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
11394
|
+
if (!$util.isString(message.voucherCode))
|
|
11395
|
+
return "voucherCode: string expected";
|
|
11396
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
11397
|
+
switch (message.platform) {
|
|
11398
|
+
default:
|
|
11399
|
+
return "platform: enum value expected";
|
|
11400
|
+
case 0:
|
|
11401
|
+
case 1:
|
|
11402
|
+
case 2:
|
|
11403
|
+
case 3:
|
|
11404
|
+
case 4:
|
|
11405
|
+
case 5:
|
|
11406
|
+
break;
|
|
11407
|
+
}
|
|
11408
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
11409
|
+
switch (message.autoRenewalStatus) {
|
|
11410
|
+
default:
|
|
11411
|
+
return "autoRenewalStatus: enum value expected";
|
|
11412
|
+
case 0:
|
|
11413
|
+
case 1:
|
|
11414
|
+
case 2:
|
|
11415
|
+
break;
|
|
11416
|
+
}
|
|
11417
|
+
if (message.plan != null && message.hasOwnProperty("plan")) {
|
|
11418
|
+
var error = $root.subscription.Plan.verify(message.plan);
|
|
11419
|
+
if (error)
|
|
11420
|
+
return "plan." + error;
|
|
11421
|
+
}
|
|
11422
|
+
return null;
|
|
11423
|
+
};
|
|
11424
|
+
|
|
11425
|
+
/**
|
|
11426
|
+
* Creates a SubscriptionGraced message from a plain object. Also converts values to their respective internal types.
|
|
11427
|
+
* @function fromObject
|
|
11428
|
+
* @memberof SubscriptionGraced
|
|
11429
|
+
* @static
|
|
11430
|
+
* @param {Object.<string,*>} object Plain object
|
|
11431
|
+
* @returns {SubscriptionGraced} SubscriptionGraced
|
|
11432
|
+
*/
|
|
11433
|
+
SubscriptionGraced.fromObject = function fromObject(object) {
|
|
11434
|
+
if (object instanceof $root.SubscriptionGraced)
|
|
11435
|
+
return object;
|
|
11436
|
+
var message = new $root.SubscriptionGraced();
|
|
11437
|
+
if (object.id != null)
|
|
11438
|
+
message.id = object.id >>> 0;
|
|
11439
|
+
if (object.updatedOn != null)
|
|
11440
|
+
if ($util.Long)
|
|
11441
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
11442
|
+
else if (typeof object.updatedOn === "string")
|
|
11443
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
11444
|
+
else if (typeof object.updatedOn === "number")
|
|
11445
|
+
message.updatedOn = object.updatedOn;
|
|
11446
|
+
else if (typeof object.updatedOn === "object")
|
|
11447
|
+
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
11448
|
+
if (object.userId != null)
|
|
11449
|
+
message.userId = String(object.userId);
|
|
11450
|
+
if (object.createdAt != null)
|
|
11451
|
+
if ($util.Long)
|
|
11452
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
11453
|
+
else if (typeof object.createdAt === "string")
|
|
11454
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
11455
|
+
else if (typeof object.createdAt === "number")
|
|
11456
|
+
message.createdAt = object.createdAt;
|
|
11457
|
+
else if (typeof object.createdAt === "object")
|
|
11458
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
11459
|
+
if (object.startsAt != null)
|
|
11460
|
+
if ($util.Long)
|
|
11461
|
+
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
11462
|
+
else if (typeof object.startsAt === "string")
|
|
11463
|
+
message.startsAt = parseInt(object.startsAt, 10);
|
|
11464
|
+
else if (typeof object.startsAt === "number")
|
|
11465
|
+
message.startsAt = object.startsAt;
|
|
11466
|
+
else if (typeof object.startsAt === "object")
|
|
11467
|
+
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
11468
|
+
if (object.endsAt != null)
|
|
11469
|
+
if ($util.Long)
|
|
11470
|
+
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
11471
|
+
else if (typeof object.endsAt === "string")
|
|
11472
|
+
message.endsAt = parseInt(object.endsAt, 10);
|
|
11473
|
+
else if (typeof object.endsAt === "number")
|
|
11474
|
+
message.endsAt = object.endsAt;
|
|
11475
|
+
else if (typeof object.endsAt === "object")
|
|
11476
|
+
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
11477
|
+
if (object.voucherCode != null)
|
|
11478
|
+
message.voucherCode = String(object.voucherCode);
|
|
11479
|
+
switch (object.platform) {
|
|
11480
|
+
case "PLATFORM_UNKNOWN":
|
|
11481
|
+
case 0:
|
|
11482
|
+
message.platform = 0;
|
|
11483
|
+
break;
|
|
11484
|
+
case "ITUNES":
|
|
11485
|
+
case 1:
|
|
11486
|
+
message.platform = 1;
|
|
11487
|
+
break;
|
|
11488
|
+
case "PLAY_STORE":
|
|
11489
|
+
case 2:
|
|
11490
|
+
message.platform = 2;
|
|
11491
|
+
break;
|
|
11492
|
+
case "ZUORA":
|
|
11493
|
+
case 3:
|
|
11494
|
+
message.platform = 3;
|
|
11495
|
+
break;
|
|
11496
|
+
case "HEADSPACE":
|
|
11497
|
+
case 4:
|
|
11498
|
+
message.platform = 4;
|
|
11499
|
+
break;
|
|
11500
|
+
case "SPOTIFY":
|
|
11501
|
+
case 5:
|
|
11502
|
+
message.platform = 5;
|
|
11503
|
+
break;
|
|
11504
|
+
}
|
|
11505
|
+
switch (object.autoRenewalStatus) {
|
|
11506
|
+
case "UNKNOWN_STATUS":
|
|
11507
|
+
case 0:
|
|
11508
|
+
message.autoRenewalStatus = 0;
|
|
11509
|
+
break;
|
|
11510
|
+
case "ENABLED":
|
|
11511
|
+
case 1:
|
|
11512
|
+
message.autoRenewalStatus = 1;
|
|
11513
|
+
break;
|
|
11514
|
+
case "DISABLED":
|
|
11515
|
+
case 2:
|
|
11516
|
+
message.autoRenewalStatus = 2;
|
|
11517
|
+
break;
|
|
11518
|
+
}
|
|
11519
|
+
if (object.plan != null) {
|
|
11520
|
+
if (typeof object.plan !== "object")
|
|
11521
|
+
throw TypeError(".SubscriptionGraced.plan: object expected");
|
|
11522
|
+
message.plan = $root.subscription.Plan.fromObject(object.plan);
|
|
11523
|
+
}
|
|
11524
|
+
return message;
|
|
11525
|
+
};
|
|
11526
|
+
|
|
11527
|
+
/**
|
|
11528
|
+
* Creates a plain object from a SubscriptionGraced message. Also converts values to other types if specified.
|
|
11529
|
+
* @function toObject
|
|
11530
|
+
* @memberof SubscriptionGraced
|
|
11531
|
+
* @static
|
|
11532
|
+
* @param {SubscriptionGraced} message SubscriptionGraced
|
|
11533
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11534
|
+
* @returns {Object.<string,*>} Plain object
|
|
11535
|
+
*/
|
|
11536
|
+
SubscriptionGraced.toObject = function toObject(message, options) {
|
|
11537
|
+
if (!options)
|
|
11538
|
+
options = {};
|
|
11539
|
+
var object = {};
|
|
11540
|
+
if (options.defaults) {
|
|
11541
|
+
object.id = 0;
|
|
11542
|
+
if ($util.Long) {
|
|
11543
|
+
var long = new $util.Long(0, 0, true);
|
|
11544
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11545
|
+
} else
|
|
11546
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
11547
|
+
object.userId = "";
|
|
11548
|
+
if ($util.Long) {
|
|
11549
|
+
var long = new $util.Long(0, 0, true);
|
|
11550
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11551
|
+
} else
|
|
11552
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
11553
|
+
if ($util.Long) {
|
|
11554
|
+
var long = new $util.Long(0, 0, true);
|
|
11555
|
+
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11556
|
+
} else
|
|
11557
|
+
object.startsAt = options.longs === String ? "0" : 0;
|
|
11558
|
+
if ($util.Long) {
|
|
11559
|
+
var long = new $util.Long(0, 0, true);
|
|
11560
|
+
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11561
|
+
} else
|
|
11562
|
+
object.endsAt = options.longs === String ? "0" : 0;
|
|
11563
|
+
object.voucherCode = "";
|
|
11564
|
+
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
11565
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
11566
|
+
object.plan = null;
|
|
11567
|
+
}
|
|
11568
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11569
|
+
object.id = message.id;
|
|
11570
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
11571
|
+
if (typeof message.updatedOn === "number")
|
|
11572
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
11573
|
+
else
|
|
11574
|
+
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
11575
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
11576
|
+
object.userId = message.userId;
|
|
11577
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11578
|
+
if (typeof message.createdAt === "number")
|
|
11579
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
11580
|
+
else
|
|
11581
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
11582
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
11583
|
+
if (typeof message.startsAt === "number")
|
|
11584
|
+
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
11585
|
+
else
|
|
11586
|
+
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
11587
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
11588
|
+
if (typeof message.endsAt === "number")
|
|
11589
|
+
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
11590
|
+
else
|
|
11591
|
+
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
11592
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
11593
|
+
object.voucherCode = message.voucherCode;
|
|
11594
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
11595
|
+
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
11596
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
11597
|
+
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
11598
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
11599
|
+
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
11600
|
+
return object;
|
|
11601
|
+
};
|
|
11602
|
+
|
|
11603
|
+
/**
|
|
11604
|
+
* Converts this SubscriptionGraced to JSON.
|
|
11605
|
+
* @function toJSON
|
|
11606
|
+
* @memberof SubscriptionGraced
|
|
11607
|
+
* @instance
|
|
11608
|
+
* @returns {Object.<string,*>} JSON object
|
|
11609
|
+
*/
|
|
11610
|
+
SubscriptionGraced.prototype.toJSON = function toJSON() {
|
|
11611
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11612
|
+
};
|
|
11613
|
+
|
|
11614
|
+
return SubscriptionGraced;
|
|
11615
|
+
})();
|
|
11616
|
+
|
|
10802
11617
|
$root.UserDoubleOptInEmailRequested = (function() {
|
|
10803
11618
|
|
|
10804
11619
|
/**
|