@headspace/protos-events 1.40.0 → 1.41.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 +100 -0
- package/lib/index.js +577 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1132,6 +1132,16 @@ export namespace subscription {
|
|
|
1132
1132
|
PRIMARY = 0,
|
|
1133
1133
|
MEMBER = 1
|
|
1134
1134
|
}
|
|
1135
|
+
|
|
1136
|
+
/** SubscriptionPlatform enum. */
|
|
1137
|
+
enum SubscriptionPlatform {
|
|
1138
|
+
PLATFORM_UNKNOWN = 0,
|
|
1139
|
+
ITUNES = 1,
|
|
1140
|
+
PLAY_STORE = 2,
|
|
1141
|
+
ZUORA = 3,
|
|
1142
|
+
HEADSPACE = 4,
|
|
1143
|
+
SPOTIFY = 5
|
|
1144
|
+
}
|
|
1135
1145
|
}
|
|
1136
1146
|
|
|
1137
1147
|
/** Namespace com. */
|
|
@@ -3582,6 +3592,21 @@ export interface ISubscriptionCreated {
|
|
|
3582
3592
|
|
|
3583
3593
|
/** SubscriptionCreated userId */
|
|
3584
3594
|
userId?: (string|null);
|
|
3595
|
+
|
|
3596
|
+
/** SubscriptionCreated createdAt */
|
|
3597
|
+
createdAt?: (number|Long|null);
|
|
3598
|
+
|
|
3599
|
+
/** SubscriptionCreated startsAt */
|
|
3600
|
+
startsAt?: (number|Long|null);
|
|
3601
|
+
|
|
3602
|
+
/** SubscriptionCreated endsAt */
|
|
3603
|
+
endsAt?: (number|Long|null);
|
|
3604
|
+
|
|
3605
|
+
/** SubscriptionCreated voucherCode */
|
|
3606
|
+
voucherCode?: (string|null);
|
|
3607
|
+
|
|
3608
|
+
/** SubscriptionCreated platform */
|
|
3609
|
+
platform?: (subscription.SubscriptionPlatform|null);
|
|
3585
3610
|
}
|
|
3586
3611
|
|
|
3587
3612
|
/** Represents a SubscriptionCreated. */
|
|
@@ -3602,6 +3627,21 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
3602
3627
|
/** SubscriptionCreated userId. */
|
|
3603
3628
|
public userId: string;
|
|
3604
3629
|
|
|
3630
|
+
/** SubscriptionCreated createdAt. */
|
|
3631
|
+
public createdAt: (number|Long);
|
|
3632
|
+
|
|
3633
|
+
/** SubscriptionCreated startsAt. */
|
|
3634
|
+
public startsAt: (number|Long);
|
|
3635
|
+
|
|
3636
|
+
/** SubscriptionCreated endsAt. */
|
|
3637
|
+
public endsAt: (number|Long);
|
|
3638
|
+
|
|
3639
|
+
/** SubscriptionCreated voucherCode. */
|
|
3640
|
+
public voucherCode: string;
|
|
3641
|
+
|
|
3642
|
+
/** SubscriptionCreated platform. */
|
|
3643
|
+
public platform: subscription.SubscriptionPlatform;
|
|
3644
|
+
|
|
3605
3645
|
/**
|
|
3606
3646
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
3607
3647
|
* @param [properties] Properties to set
|
|
@@ -3687,6 +3727,21 @@ export interface ISubscriptionCancelled {
|
|
|
3687
3727
|
|
|
3688
3728
|
/** SubscriptionCancelled paymentMethod */
|
|
3689
3729
|
paymentMethod?: (subscription.IPaymentMethod|null);
|
|
3730
|
+
|
|
3731
|
+
/** SubscriptionCancelled createdAt */
|
|
3732
|
+
createdAt?: (number|Long|null);
|
|
3733
|
+
|
|
3734
|
+
/** SubscriptionCancelled startsAt */
|
|
3735
|
+
startsAt?: (number|Long|null);
|
|
3736
|
+
|
|
3737
|
+
/** SubscriptionCancelled endsAt */
|
|
3738
|
+
endsAt?: (number|Long|null);
|
|
3739
|
+
|
|
3740
|
+
/** SubscriptionCancelled voucherCode */
|
|
3741
|
+
voucherCode?: (string|null);
|
|
3742
|
+
|
|
3743
|
+
/** SubscriptionCancelled platform */
|
|
3744
|
+
platform?: (subscription.SubscriptionPlatform|null);
|
|
3690
3745
|
}
|
|
3691
3746
|
|
|
3692
3747
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -3710,6 +3765,21 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
3710
3765
|
/** SubscriptionCancelled paymentMethod. */
|
|
3711
3766
|
public paymentMethod?: (subscription.IPaymentMethod|null);
|
|
3712
3767
|
|
|
3768
|
+
/** SubscriptionCancelled createdAt. */
|
|
3769
|
+
public createdAt: (number|Long);
|
|
3770
|
+
|
|
3771
|
+
/** SubscriptionCancelled startsAt. */
|
|
3772
|
+
public startsAt: (number|Long);
|
|
3773
|
+
|
|
3774
|
+
/** SubscriptionCancelled endsAt. */
|
|
3775
|
+
public endsAt: (number|Long);
|
|
3776
|
+
|
|
3777
|
+
/** SubscriptionCancelled voucherCode. */
|
|
3778
|
+
public voucherCode: string;
|
|
3779
|
+
|
|
3780
|
+
/** SubscriptionCancelled platform. */
|
|
3781
|
+
public platform: subscription.SubscriptionPlatform;
|
|
3782
|
+
|
|
3713
3783
|
/**
|
|
3714
3784
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
3715
3785
|
* @param [properties] Properties to set
|
|
@@ -3792,6 +3862,21 @@ export interface ISubscriptionRenewed {
|
|
|
3792
3862
|
|
|
3793
3863
|
/** SubscriptionRenewed userId */
|
|
3794
3864
|
userId?: (string|null);
|
|
3865
|
+
|
|
3866
|
+
/** SubscriptionRenewed createdAt */
|
|
3867
|
+
createdAt?: (number|Long|null);
|
|
3868
|
+
|
|
3869
|
+
/** SubscriptionRenewed startsAt */
|
|
3870
|
+
startsAt?: (number|Long|null);
|
|
3871
|
+
|
|
3872
|
+
/** SubscriptionRenewed endsAt */
|
|
3873
|
+
endsAt?: (number|Long|null);
|
|
3874
|
+
|
|
3875
|
+
/** SubscriptionRenewed voucherCode */
|
|
3876
|
+
voucherCode?: (string|null);
|
|
3877
|
+
|
|
3878
|
+
/** SubscriptionRenewed platform */
|
|
3879
|
+
platform?: (subscription.SubscriptionPlatform|null);
|
|
3795
3880
|
}
|
|
3796
3881
|
|
|
3797
3882
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -3812,6 +3897,21 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
3812
3897
|
/** SubscriptionRenewed userId. */
|
|
3813
3898
|
public userId: string;
|
|
3814
3899
|
|
|
3900
|
+
/** SubscriptionRenewed createdAt. */
|
|
3901
|
+
public createdAt: (number|Long);
|
|
3902
|
+
|
|
3903
|
+
/** SubscriptionRenewed startsAt. */
|
|
3904
|
+
public startsAt: (number|Long);
|
|
3905
|
+
|
|
3906
|
+
/** SubscriptionRenewed endsAt. */
|
|
3907
|
+
public endsAt: (number|Long);
|
|
3908
|
+
|
|
3909
|
+
/** SubscriptionRenewed voucherCode. */
|
|
3910
|
+
public voucherCode: string;
|
|
3911
|
+
|
|
3912
|
+
/** SubscriptionRenewed platform. */
|
|
3913
|
+
public platform: subscription.SubscriptionPlatform;
|
|
3914
|
+
|
|
3815
3915
|
/**
|
|
3816
3916
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
3817
3917
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -2544,6 +2544,28 @@ $root.subscription = (function() {
|
|
|
2544
2544
|
return values;
|
|
2545
2545
|
})();
|
|
2546
2546
|
|
|
2547
|
+
/**
|
|
2548
|
+
* SubscriptionPlatform enum.
|
|
2549
|
+
* @name subscription.SubscriptionPlatform
|
|
2550
|
+
* @enum {string}
|
|
2551
|
+
* @property {number} PLATFORM_UNKNOWN=0 PLATFORM_UNKNOWN value
|
|
2552
|
+
* @property {number} ITUNES=1 ITUNES value
|
|
2553
|
+
* @property {number} PLAY_STORE=2 PLAY_STORE value
|
|
2554
|
+
* @property {number} ZUORA=3 ZUORA value
|
|
2555
|
+
* @property {number} HEADSPACE=4 HEADSPACE value
|
|
2556
|
+
* @property {number} SPOTIFY=5 SPOTIFY value
|
|
2557
|
+
*/
|
|
2558
|
+
subscription.SubscriptionPlatform = (function() {
|
|
2559
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2560
|
+
values[valuesById[0] = "PLATFORM_UNKNOWN"] = 0;
|
|
2561
|
+
values[valuesById[1] = "ITUNES"] = 1;
|
|
2562
|
+
values[valuesById[2] = "PLAY_STORE"] = 2;
|
|
2563
|
+
values[valuesById[3] = "ZUORA"] = 3;
|
|
2564
|
+
values[valuesById[4] = "HEADSPACE"] = 4;
|
|
2565
|
+
values[valuesById[5] = "SPOTIFY"] = 5;
|
|
2566
|
+
return values;
|
|
2567
|
+
})();
|
|
2568
|
+
|
|
2547
2569
|
return subscription;
|
|
2548
2570
|
})();
|
|
2549
2571
|
|
|
@@ -8381,6 +8403,11 @@ $root.SubscriptionCreated = (function() {
|
|
|
8381
8403
|
* @property {number|null} [id] SubscriptionCreated id
|
|
8382
8404
|
* @property {number|Long|null} [updatedOn] SubscriptionCreated updatedOn
|
|
8383
8405
|
* @property {string|null} [userId] SubscriptionCreated userId
|
|
8406
|
+
* @property {number|Long|null} [createdAt] SubscriptionCreated createdAt
|
|
8407
|
+
* @property {number|Long|null} [startsAt] SubscriptionCreated startsAt
|
|
8408
|
+
* @property {number|Long|null} [endsAt] SubscriptionCreated endsAt
|
|
8409
|
+
* @property {string|null} [voucherCode] SubscriptionCreated voucherCode
|
|
8410
|
+
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
|
|
8384
8411
|
*/
|
|
8385
8412
|
|
|
8386
8413
|
/**
|
|
@@ -8422,6 +8449,46 @@ $root.SubscriptionCreated = (function() {
|
|
|
8422
8449
|
*/
|
|
8423
8450
|
SubscriptionCreated.prototype.userId = "";
|
|
8424
8451
|
|
|
8452
|
+
/**
|
|
8453
|
+
* SubscriptionCreated createdAt.
|
|
8454
|
+
* @member {number|Long} createdAt
|
|
8455
|
+
* @memberof SubscriptionCreated
|
|
8456
|
+
* @instance
|
|
8457
|
+
*/
|
|
8458
|
+
SubscriptionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8459
|
+
|
|
8460
|
+
/**
|
|
8461
|
+
* SubscriptionCreated startsAt.
|
|
8462
|
+
* @member {number|Long} startsAt
|
|
8463
|
+
* @memberof SubscriptionCreated
|
|
8464
|
+
* @instance
|
|
8465
|
+
*/
|
|
8466
|
+
SubscriptionCreated.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8467
|
+
|
|
8468
|
+
/**
|
|
8469
|
+
* SubscriptionCreated endsAt.
|
|
8470
|
+
* @member {number|Long} endsAt
|
|
8471
|
+
* @memberof SubscriptionCreated
|
|
8472
|
+
* @instance
|
|
8473
|
+
*/
|
|
8474
|
+
SubscriptionCreated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8475
|
+
|
|
8476
|
+
/**
|
|
8477
|
+
* SubscriptionCreated voucherCode.
|
|
8478
|
+
* @member {string} voucherCode
|
|
8479
|
+
* @memberof SubscriptionCreated
|
|
8480
|
+
* @instance
|
|
8481
|
+
*/
|
|
8482
|
+
SubscriptionCreated.prototype.voucherCode = "";
|
|
8483
|
+
|
|
8484
|
+
/**
|
|
8485
|
+
* SubscriptionCreated platform.
|
|
8486
|
+
* @member {subscription.SubscriptionPlatform} platform
|
|
8487
|
+
* @memberof SubscriptionCreated
|
|
8488
|
+
* @instance
|
|
8489
|
+
*/
|
|
8490
|
+
SubscriptionCreated.prototype.platform = 0;
|
|
8491
|
+
|
|
8425
8492
|
/**
|
|
8426
8493
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
8427
8494
|
* @function create
|
|
@@ -8452,6 +8519,16 @@ $root.SubscriptionCreated = (function() {
|
|
|
8452
8519
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
8453
8520
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8454
8521
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
8522
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8523
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
8524
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8525
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.startsAt);
|
|
8526
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8527
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.endsAt);
|
|
8528
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8529
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
8530
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8531
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
8455
8532
|
return writer;
|
|
8456
8533
|
};
|
|
8457
8534
|
|
|
@@ -8495,6 +8572,21 @@ $root.SubscriptionCreated = (function() {
|
|
|
8495
8572
|
case 3:
|
|
8496
8573
|
message.userId = reader.string();
|
|
8497
8574
|
break;
|
|
8575
|
+
case 4:
|
|
8576
|
+
message.createdAt = reader.uint64();
|
|
8577
|
+
break;
|
|
8578
|
+
case 5:
|
|
8579
|
+
message.startsAt = reader.uint64();
|
|
8580
|
+
break;
|
|
8581
|
+
case 6:
|
|
8582
|
+
message.endsAt = reader.uint64();
|
|
8583
|
+
break;
|
|
8584
|
+
case 7:
|
|
8585
|
+
message.voucherCode = reader.string();
|
|
8586
|
+
break;
|
|
8587
|
+
case 8:
|
|
8588
|
+
message.platform = reader.int32();
|
|
8589
|
+
break;
|
|
8498
8590
|
default:
|
|
8499
8591
|
reader.skipType(tag & 7);
|
|
8500
8592
|
break;
|
|
@@ -8539,6 +8631,30 @@ $root.SubscriptionCreated = (function() {
|
|
|
8539
8631
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8540
8632
|
if (!$util.isString(message.userId))
|
|
8541
8633
|
return "userId: string expected";
|
|
8634
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8635
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
8636
|
+
return "createdAt: integer|Long expected";
|
|
8637
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8638
|
+
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
8639
|
+
return "startsAt: integer|Long expected";
|
|
8640
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8641
|
+
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
8642
|
+
return "endsAt: integer|Long expected";
|
|
8643
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8644
|
+
if (!$util.isString(message.voucherCode))
|
|
8645
|
+
return "voucherCode: string expected";
|
|
8646
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8647
|
+
switch (message.platform) {
|
|
8648
|
+
default:
|
|
8649
|
+
return "platform: enum value expected";
|
|
8650
|
+
case 0:
|
|
8651
|
+
case 1:
|
|
8652
|
+
case 2:
|
|
8653
|
+
case 3:
|
|
8654
|
+
case 4:
|
|
8655
|
+
case 5:
|
|
8656
|
+
break;
|
|
8657
|
+
}
|
|
8542
8658
|
return null;
|
|
8543
8659
|
};
|
|
8544
8660
|
|
|
@@ -8567,6 +8683,61 @@ $root.SubscriptionCreated = (function() {
|
|
|
8567
8683
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
8568
8684
|
if (object.userId != null)
|
|
8569
8685
|
message.userId = String(object.userId);
|
|
8686
|
+
if (object.createdAt != null)
|
|
8687
|
+
if ($util.Long)
|
|
8688
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
8689
|
+
else if (typeof object.createdAt === "string")
|
|
8690
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
8691
|
+
else if (typeof object.createdAt === "number")
|
|
8692
|
+
message.createdAt = object.createdAt;
|
|
8693
|
+
else if (typeof object.createdAt === "object")
|
|
8694
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
8695
|
+
if (object.startsAt != null)
|
|
8696
|
+
if ($util.Long)
|
|
8697
|
+
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
8698
|
+
else if (typeof object.startsAt === "string")
|
|
8699
|
+
message.startsAt = parseInt(object.startsAt, 10);
|
|
8700
|
+
else if (typeof object.startsAt === "number")
|
|
8701
|
+
message.startsAt = object.startsAt;
|
|
8702
|
+
else if (typeof object.startsAt === "object")
|
|
8703
|
+
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
8704
|
+
if (object.endsAt != null)
|
|
8705
|
+
if ($util.Long)
|
|
8706
|
+
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
8707
|
+
else if (typeof object.endsAt === "string")
|
|
8708
|
+
message.endsAt = parseInt(object.endsAt, 10);
|
|
8709
|
+
else if (typeof object.endsAt === "number")
|
|
8710
|
+
message.endsAt = object.endsAt;
|
|
8711
|
+
else if (typeof object.endsAt === "object")
|
|
8712
|
+
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
8713
|
+
if (object.voucherCode != null)
|
|
8714
|
+
message.voucherCode = String(object.voucherCode);
|
|
8715
|
+
switch (object.platform) {
|
|
8716
|
+
case "PLATFORM_UNKNOWN":
|
|
8717
|
+
case 0:
|
|
8718
|
+
message.platform = 0;
|
|
8719
|
+
break;
|
|
8720
|
+
case "ITUNES":
|
|
8721
|
+
case 1:
|
|
8722
|
+
message.platform = 1;
|
|
8723
|
+
break;
|
|
8724
|
+
case "PLAY_STORE":
|
|
8725
|
+
case 2:
|
|
8726
|
+
message.platform = 2;
|
|
8727
|
+
break;
|
|
8728
|
+
case "ZUORA":
|
|
8729
|
+
case 3:
|
|
8730
|
+
message.platform = 3;
|
|
8731
|
+
break;
|
|
8732
|
+
case "HEADSPACE":
|
|
8733
|
+
case 4:
|
|
8734
|
+
message.platform = 4;
|
|
8735
|
+
break;
|
|
8736
|
+
case "SPOTIFY":
|
|
8737
|
+
case 5:
|
|
8738
|
+
message.platform = 5;
|
|
8739
|
+
break;
|
|
8740
|
+
}
|
|
8570
8741
|
return message;
|
|
8571
8742
|
};
|
|
8572
8743
|
|
|
@@ -8591,6 +8762,23 @@ $root.SubscriptionCreated = (function() {
|
|
|
8591
8762
|
} else
|
|
8592
8763
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
8593
8764
|
object.userId = "";
|
|
8765
|
+
if ($util.Long) {
|
|
8766
|
+
var long = new $util.Long(0, 0, true);
|
|
8767
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8768
|
+
} else
|
|
8769
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
8770
|
+
if ($util.Long) {
|
|
8771
|
+
var long = new $util.Long(0, 0, true);
|
|
8772
|
+
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8773
|
+
} else
|
|
8774
|
+
object.startsAt = options.longs === String ? "0" : 0;
|
|
8775
|
+
if ($util.Long) {
|
|
8776
|
+
var long = new $util.Long(0, 0, true);
|
|
8777
|
+
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8778
|
+
} else
|
|
8779
|
+
object.endsAt = options.longs === String ? "0" : 0;
|
|
8780
|
+
object.voucherCode = "";
|
|
8781
|
+
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
8594
8782
|
}
|
|
8595
8783
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8596
8784
|
object.id = message.id;
|
|
@@ -8601,6 +8789,25 @@ $root.SubscriptionCreated = (function() {
|
|
|
8601
8789
|
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;
|
|
8602
8790
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8603
8791
|
object.userId = message.userId;
|
|
8792
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8793
|
+
if (typeof message.createdAt === "number")
|
|
8794
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
8795
|
+
else
|
|
8796
|
+
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;
|
|
8797
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8798
|
+
if (typeof message.startsAt === "number")
|
|
8799
|
+
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
8800
|
+
else
|
|
8801
|
+
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;
|
|
8802
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8803
|
+
if (typeof message.endsAt === "number")
|
|
8804
|
+
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
8805
|
+
else
|
|
8806
|
+
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;
|
|
8807
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8808
|
+
object.voucherCode = message.voucherCode;
|
|
8809
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8810
|
+
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
8604
8811
|
return object;
|
|
8605
8812
|
};
|
|
8606
8813
|
|
|
@@ -8628,6 +8835,11 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8628
8835
|
* @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
|
|
8629
8836
|
* @property {string|null} [userId] SubscriptionCancelled userId
|
|
8630
8837
|
* @property {subscription.IPaymentMethod|null} [paymentMethod] SubscriptionCancelled paymentMethod
|
|
8838
|
+
* @property {number|Long|null} [createdAt] SubscriptionCancelled createdAt
|
|
8839
|
+
* @property {number|Long|null} [startsAt] SubscriptionCancelled startsAt
|
|
8840
|
+
* @property {number|Long|null} [endsAt] SubscriptionCancelled endsAt
|
|
8841
|
+
* @property {string|null} [voucherCode] SubscriptionCancelled voucherCode
|
|
8842
|
+
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
|
|
8631
8843
|
*/
|
|
8632
8844
|
|
|
8633
8845
|
/**
|
|
@@ -8677,6 +8889,46 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8677
8889
|
*/
|
|
8678
8890
|
SubscriptionCancelled.prototype.paymentMethod = null;
|
|
8679
8891
|
|
|
8892
|
+
/**
|
|
8893
|
+
* SubscriptionCancelled createdAt.
|
|
8894
|
+
* @member {number|Long} createdAt
|
|
8895
|
+
* @memberof SubscriptionCancelled
|
|
8896
|
+
* @instance
|
|
8897
|
+
*/
|
|
8898
|
+
SubscriptionCancelled.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8899
|
+
|
|
8900
|
+
/**
|
|
8901
|
+
* SubscriptionCancelled startsAt.
|
|
8902
|
+
* @member {number|Long} startsAt
|
|
8903
|
+
* @memberof SubscriptionCancelled
|
|
8904
|
+
* @instance
|
|
8905
|
+
*/
|
|
8906
|
+
SubscriptionCancelled.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8907
|
+
|
|
8908
|
+
/**
|
|
8909
|
+
* SubscriptionCancelled endsAt.
|
|
8910
|
+
* @member {number|Long} endsAt
|
|
8911
|
+
* @memberof SubscriptionCancelled
|
|
8912
|
+
* @instance
|
|
8913
|
+
*/
|
|
8914
|
+
SubscriptionCancelled.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8915
|
+
|
|
8916
|
+
/**
|
|
8917
|
+
* SubscriptionCancelled voucherCode.
|
|
8918
|
+
* @member {string} voucherCode
|
|
8919
|
+
* @memberof SubscriptionCancelled
|
|
8920
|
+
* @instance
|
|
8921
|
+
*/
|
|
8922
|
+
SubscriptionCancelled.prototype.voucherCode = "";
|
|
8923
|
+
|
|
8924
|
+
/**
|
|
8925
|
+
* SubscriptionCancelled platform.
|
|
8926
|
+
* @member {subscription.SubscriptionPlatform} platform
|
|
8927
|
+
* @memberof SubscriptionCancelled
|
|
8928
|
+
* @instance
|
|
8929
|
+
*/
|
|
8930
|
+
SubscriptionCancelled.prototype.platform = 0;
|
|
8931
|
+
|
|
8680
8932
|
/**
|
|
8681
8933
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
8682
8934
|
* @function create
|
|
@@ -8709,6 +8961,16 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8709
8961
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
8710
8962
|
if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
|
|
8711
8963
|
$root.subscription.PaymentMethod.encode(message.paymentMethod, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
8964
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
8965
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
8966
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
8967
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.startsAt);
|
|
8968
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
8969
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.endsAt);
|
|
8970
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
8971
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.voucherCode);
|
|
8972
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
8973
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.platform);
|
|
8712
8974
|
return writer;
|
|
8713
8975
|
};
|
|
8714
8976
|
|
|
@@ -8755,6 +9017,21 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8755
9017
|
case 4:
|
|
8756
9018
|
message.paymentMethod = $root.subscription.PaymentMethod.decode(reader, reader.uint32());
|
|
8757
9019
|
break;
|
|
9020
|
+
case 5:
|
|
9021
|
+
message.createdAt = reader.uint64();
|
|
9022
|
+
break;
|
|
9023
|
+
case 6:
|
|
9024
|
+
message.startsAt = reader.uint64();
|
|
9025
|
+
break;
|
|
9026
|
+
case 7:
|
|
9027
|
+
message.endsAt = reader.uint64();
|
|
9028
|
+
break;
|
|
9029
|
+
case 8:
|
|
9030
|
+
message.voucherCode = reader.string();
|
|
9031
|
+
break;
|
|
9032
|
+
case 9:
|
|
9033
|
+
message.platform = reader.int32();
|
|
9034
|
+
break;
|
|
8758
9035
|
default:
|
|
8759
9036
|
reader.skipType(tag & 7);
|
|
8760
9037
|
break;
|
|
@@ -8804,6 +9081,30 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8804
9081
|
if (error)
|
|
8805
9082
|
return "paymentMethod." + error;
|
|
8806
9083
|
}
|
|
9084
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
9085
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
9086
|
+
return "createdAt: integer|Long expected";
|
|
9087
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9088
|
+
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
9089
|
+
return "startsAt: integer|Long expected";
|
|
9090
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9091
|
+
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
9092
|
+
return "endsAt: integer|Long expected";
|
|
9093
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
9094
|
+
if (!$util.isString(message.voucherCode))
|
|
9095
|
+
return "voucherCode: string expected";
|
|
9096
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9097
|
+
switch (message.platform) {
|
|
9098
|
+
default:
|
|
9099
|
+
return "platform: enum value expected";
|
|
9100
|
+
case 0:
|
|
9101
|
+
case 1:
|
|
9102
|
+
case 2:
|
|
9103
|
+
case 3:
|
|
9104
|
+
case 4:
|
|
9105
|
+
case 5:
|
|
9106
|
+
break;
|
|
9107
|
+
}
|
|
8807
9108
|
return null;
|
|
8808
9109
|
};
|
|
8809
9110
|
|
|
@@ -8837,6 +9138,61 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8837
9138
|
throw TypeError(".SubscriptionCancelled.paymentMethod: object expected");
|
|
8838
9139
|
message.paymentMethod = $root.subscription.PaymentMethod.fromObject(object.paymentMethod);
|
|
8839
9140
|
}
|
|
9141
|
+
if (object.createdAt != null)
|
|
9142
|
+
if ($util.Long)
|
|
9143
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
9144
|
+
else if (typeof object.createdAt === "string")
|
|
9145
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
9146
|
+
else if (typeof object.createdAt === "number")
|
|
9147
|
+
message.createdAt = object.createdAt;
|
|
9148
|
+
else if (typeof object.createdAt === "object")
|
|
9149
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
9150
|
+
if (object.startsAt != null)
|
|
9151
|
+
if ($util.Long)
|
|
9152
|
+
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
9153
|
+
else if (typeof object.startsAt === "string")
|
|
9154
|
+
message.startsAt = parseInt(object.startsAt, 10);
|
|
9155
|
+
else if (typeof object.startsAt === "number")
|
|
9156
|
+
message.startsAt = object.startsAt;
|
|
9157
|
+
else if (typeof object.startsAt === "object")
|
|
9158
|
+
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
9159
|
+
if (object.endsAt != null)
|
|
9160
|
+
if ($util.Long)
|
|
9161
|
+
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
9162
|
+
else if (typeof object.endsAt === "string")
|
|
9163
|
+
message.endsAt = parseInt(object.endsAt, 10);
|
|
9164
|
+
else if (typeof object.endsAt === "number")
|
|
9165
|
+
message.endsAt = object.endsAt;
|
|
9166
|
+
else if (typeof object.endsAt === "object")
|
|
9167
|
+
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
9168
|
+
if (object.voucherCode != null)
|
|
9169
|
+
message.voucherCode = String(object.voucherCode);
|
|
9170
|
+
switch (object.platform) {
|
|
9171
|
+
case "PLATFORM_UNKNOWN":
|
|
9172
|
+
case 0:
|
|
9173
|
+
message.platform = 0;
|
|
9174
|
+
break;
|
|
9175
|
+
case "ITUNES":
|
|
9176
|
+
case 1:
|
|
9177
|
+
message.platform = 1;
|
|
9178
|
+
break;
|
|
9179
|
+
case "PLAY_STORE":
|
|
9180
|
+
case 2:
|
|
9181
|
+
message.platform = 2;
|
|
9182
|
+
break;
|
|
9183
|
+
case "ZUORA":
|
|
9184
|
+
case 3:
|
|
9185
|
+
message.platform = 3;
|
|
9186
|
+
break;
|
|
9187
|
+
case "HEADSPACE":
|
|
9188
|
+
case 4:
|
|
9189
|
+
message.platform = 4;
|
|
9190
|
+
break;
|
|
9191
|
+
case "SPOTIFY":
|
|
9192
|
+
case 5:
|
|
9193
|
+
message.platform = 5;
|
|
9194
|
+
break;
|
|
9195
|
+
}
|
|
8840
9196
|
return message;
|
|
8841
9197
|
};
|
|
8842
9198
|
|
|
@@ -8862,6 +9218,23 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8862
9218
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
8863
9219
|
object.userId = "";
|
|
8864
9220
|
object.paymentMethod = null;
|
|
9221
|
+
if ($util.Long) {
|
|
9222
|
+
var long = new $util.Long(0, 0, true);
|
|
9223
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9224
|
+
} else
|
|
9225
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
9226
|
+
if ($util.Long) {
|
|
9227
|
+
var long = new $util.Long(0, 0, true);
|
|
9228
|
+
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9229
|
+
} else
|
|
9230
|
+
object.startsAt = options.longs === String ? "0" : 0;
|
|
9231
|
+
if ($util.Long) {
|
|
9232
|
+
var long = new $util.Long(0, 0, true);
|
|
9233
|
+
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9234
|
+
} else
|
|
9235
|
+
object.endsAt = options.longs === String ? "0" : 0;
|
|
9236
|
+
object.voucherCode = "";
|
|
9237
|
+
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
8865
9238
|
}
|
|
8866
9239
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8867
9240
|
object.id = message.id;
|
|
@@ -8874,6 +9247,25 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8874
9247
|
object.userId = message.userId;
|
|
8875
9248
|
if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
|
|
8876
9249
|
object.paymentMethod = $root.subscription.PaymentMethod.toObject(message.paymentMethod, options);
|
|
9250
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
9251
|
+
if (typeof message.createdAt === "number")
|
|
9252
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
9253
|
+
else
|
|
9254
|
+
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;
|
|
9255
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9256
|
+
if (typeof message.startsAt === "number")
|
|
9257
|
+
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
9258
|
+
else
|
|
9259
|
+
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;
|
|
9260
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9261
|
+
if (typeof message.endsAt === "number")
|
|
9262
|
+
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
9263
|
+
else
|
|
9264
|
+
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;
|
|
9265
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
9266
|
+
object.voucherCode = message.voucherCode;
|
|
9267
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9268
|
+
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
8877
9269
|
return object;
|
|
8878
9270
|
};
|
|
8879
9271
|
|
|
@@ -8900,6 +9292,11 @@ $root.SubscriptionRenewed = (function() {
|
|
|
8900
9292
|
* @property {number|null} [id] SubscriptionRenewed id
|
|
8901
9293
|
* @property {number|Long|null} [updatedOn] SubscriptionRenewed updatedOn
|
|
8902
9294
|
* @property {string|null} [userId] SubscriptionRenewed userId
|
|
9295
|
+
* @property {number|Long|null} [createdAt] SubscriptionRenewed createdAt
|
|
9296
|
+
* @property {number|Long|null} [startsAt] SubscriptionRenewed startsAt
|
|
9297
|
+
* @property {number|Long|null} [endsAt] SubscriptionRenewed endsAt
|
|
9298
|
+
* @property {string|null} [voucherCode] SubscriptionRenewed voucherCode
|
|
9299
|
+
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionRenewed platform
|
|
8903
9300
|
*/
|
|
8904
9301
|
|
|
8905
9302
|
/**
|
|
@@ -8941,6 +9338,46 @@ $root.SubscriptionRenewed = (function() {
|
|
|
8941
9338
|
*/
|
|
8942
9339
|
SubscriptionRenewed.prototype.userId = "";
|
|
8943
9340
|
|
|
9341
|
+
/**
|
|
9342
|
+
* SubscriptionRenewed createdAt.
|
|
9343
|
+
* @member {number|Long} createdAt
|
|
9344
|
+
* @memberof SubscriptionRenewed
|
|
9345
|
+
* @instance
|
|
9346
|
+
*/
|
|
9347
|
+
SubscriptionRenewed.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
9348
|
+
|
|
9349
|
+
/**
|
|
9350
|
+
* SubscriptionRenewed startsAt.
|
|
9351
|
+
* @member {number|Long} startsAt
|
|
9352
|
+
* @memberof SubscriptionRenewed
|
|
9353
|
+
* @instance
|
|
9354
|
+
*/
|
|
9355
|
+
SubscriptionRenewed.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
9356
|
+
|
|
9357
|
+
/**
|
|
9358
|
+
* SubscriptionRenewed endsAt.
|
|
9359
|
+
* @member {number|Long} endsAt
|
|
9360
|
+
* @memberof SubscriptionRenewed
|
|
9361
|
+
* @instance
|
|
9362
|
+
*/
|
|
9363
|
+
SubscriptionRenewed.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
9364
|
+
|
|
9365
|
+
/**
|
|
9366
|
+
* SubscriptionRenewed voucherCode.
|
|
9367
|
+
* @member {string} voucherCode
|
|
9368
|
+
* @memberof SubscriptionRenewed
|
|
9369
|
+
* @instance
|
|
9370
|
+
*/
|
|
9371
|
+
SubscriptionRenewed.prototype.voucherCode = "";
|
|
9372
|
+
|
|
9373
|
+
/**
|
|
9374
|
+
* SubscriptionRenewed platform.
|
|
9375
|
+
* @member {subscription.SubscriptionPlatform} platform
|
|
9376
|
+
* @memberof SubscriptionRenewed
|
|
9377
|
+
* @instance
|
|
9378
|
+
*/
|
|
9379
|
+
SubscriptionRenewed.prototype.platform = 0;
|
|
9380
|
+
|
|
8944
9381
|
/**
|
|
8945
9382
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
8946
9383
|
* @function create
|
|
@@ -8971,6 +9408,16 @@ $root.SubscriptionRenewed = (function() {
|
|
|
8971
9408
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
8972
9409
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8973
9410
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
9411
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
9412
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
9413
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9414
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.startsAt);
|
|
9415
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9416
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.endsAt);
|
|
9417
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
9418
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
9419
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9420
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
8974
9421
|
return writer;
|
|
8975
9422
|
};
|
|
8976
9423
|
|
|
@@ -9014,6 +9461,21 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9014
9461
|
case 3:
|
|
9015
9462
|
message.userId = reader.string();
|
|
9016
9463
|
break;
|
|
9464
|
+
case 4:
|
|
9465
|
+
message.createdAt = reader.uint64();
|
|
9466
|
+
break;
|
|
9467
|
+
case 5:
|
|
9468
|
+
message.startsAt = reader.uint64();
|
|
9469
|
+
break;
|
|
9470
|
+
case 6:
|
|
9471
|
+
message.endsAt = reader.uint64();
|
|
9472
|
+
break;
|
|
9473
|
+
case 7:
|
|
9474
|
+
message.voucherCode = reader.string();
|
|
9475
|
+
break;
|
|
9476
|
+
case 8:
|
|
9477
|
+
message.platform = reader.int32();
|
|
9478
|
+
break;
|
|
9017
9479
|
default:
|
|
9018
9480
|
reader.skipType(tag & 7);
|
|
9019
9481
|
break;
|
|
@@ -9058,6 +9520,30 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9058
9520
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9059
9521
|
if (!$util.isString(message.userId))
|
|
9060
9522
|
return "userId: string expected";
|
|
9523
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
9524
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
9525
|
+
return "createdAt: integer|Long expected";
|
|
9526
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9527
|
+
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
9528
|
+
return "startsAt: integer|Long expected";
|
|
9529
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9530
|
+
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
9531
|
+
return "endsAt: integer|Long expected";
|
|
9532
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
9533
|
+
if (!$util.isString(message.voucherCode))
|
|
9534
|
+
return "voucherCode: string expected";
|
|
9535
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9536
|
+
switch (message.platform) {
|
|
9537
|
+
default:
|
|
9538
|
+
return "platform: enum value expected";
|
|
9539
|
+
case 0:
|
|
9540
|
+
case 1:
|
|
9541
|
+
case 2:
|
|
9542
|
+
case 3:
|
|
9543
|
+
case 4:
|
|
9544
|
+
case 5:
|
|
9545
|
+
break;
|
|
9546
|
+
}
|
|
9061
9547
|
return null;
|
|
9062
9548
|
};
|
|
9063
9549
|
|
|
@@ -9086,6 +9572,61 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9086
9572
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
9087
9573
|
if (object.userId != null)
|
|
9088
9574
|
message.userId = String(object.userId);
|
|
9575
|
+
if (object.createdAt != null)
|
|
9576
|
+
if ($util.Long)
|
|
9577
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
9578
|
+
else if (typeof object.createdAt === "string")
|
|
9579
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
9580
|
+
else if (typeof object.createdAt === "number")
|
|
9581
|
+
message.createdAt = object.createdAt;
|
|
9582
|
+
else if (typeof object.createdAt === "object")
|
|
9583
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
9584
|
+
if (object.startsAt != null)
|
|
9585
|
+
if ($util.Long)
|
|
9586
|
+
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
9587
|
+
else if (typeof object.startsAt === "string")
|
|
9588
|
+
message.startsAt = parseInt(object.startsAt, 10);
|
|
9589
|
+
else if (typeof object.startsAt === "number")
|
|
9590
|
+
message.startsAt = object.startsAt;
|
|
9591
|
+
else if (typeof object.startsAt === "object")
|
|
9592
|
+
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
9593
|
+
if (object.endsAt != null)
|
|
9594
|
+
if ($util.Long)
|
|
9595
|
+
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
9596
|
+
else if (typeof object.endsAt === "string")
|
|
9597
|
+
message.endsAt = parseInt(object.endsAt, 10);
|
|
9598
|
+
else if (typeof object.endsAt === "number")
|
|
9599
|
+
message.endsAt = object.endsAt;
|
|
9600
|
+
else if (typeof object.endsAt === "object")
|
|
9601
|
+
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
9602
|
+
if (object.voucherCode != null)
|
|
9603
|
+
message.voucherCode = String(object.voucherCode);
|
|
9604
|
+
switch (object.platform) {
|
|
9605
|
+
case "PLATFORM_UNKNOWN":
|
|
9606
|
+
case 0:
|
|
9607
|
+
message.platform = 0;
|
|
9608
|
+
break;
|
|
9609
|
+
case "ITUNES":
|
|
9610
|
+
case 1:
|
|
9611
|
+
message.platform = 1;
|
|
9612
|
+
break;
|
|
9613
|
+
case "PLAY_STORE":
|
|
9614
|
+
case 2:
|
|
9615
|
+
message.platform = 2;
|
|
9616
|
+
break;
|
|
9617
|
+
case "ZUORA":
|
|
9618
|
+
case 3:
|
|
9619
|
+
message.platform = 3;
|
|
9620
|
+
break;
|
|
9621
|
+
case "HEADSPACE":
|
|
9622
|
+
case 4:
|
|
9623
|
+
message.platform = 4;
|
|
9624
|
+
break;
|
|
9625
|
+
case "SPOTIFY":
|
|
9626
|
+
case 5:
|
|
9627
|
+
message.platform = 5;
|
|
9628
|
+
break;
|
|
9629
|
+
}
|
|
9089
9630
|
return message;
|
|
9090
9631
|
};
|
|
9091
9632
|
|
|
@@ -9110,6 +9651,23 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9110
9651
|
} else
|
|
9111
9652
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
9112
9653
|
object.userId = "";
|
|
9654
|
+
if ($util.Long) {
|
|
9655
|
+
var long = new $util.Long(0, 0, true);
|
|
9656
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9657
|
+
} else
|
|
9658
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
9659
|
+
if ($util.Long) {
|
|
9660
|
+
var long = new $util.Long(0, 0, true);
|
|
9661
|
+
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9662
|
+
} else
|
|
9663
|
+
object.startsAt = options.longs === String ? "0" : 0;
|
|
9664
|
+
if ($util.Long) {
|
|
9665
|
+
var long = new $util.Long(0, 0, true);
|
|
9666
|
+
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9667
|
+
} else
|
|
9668
|
+
object.endsAt = options.longs === String ? "0" : 0;
|
|
9669
|
+
object.voucherCode = "";
|
|
9670
|
+
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
9113
9671
|
}
|
|
9114
9672
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
9115
9673
|
object.id = message.id;
|
|
@@ -9120,6 +9678,25 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9120
9678
|
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;
|
|
9121
9679
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
9122
9680
|
object.userId = message.userId;
|
|
9681
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
9682
|
+
if (typeof message.createdAt === "number")
|
|
9683
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
9684
|
+
else
|
|
9685
|
+
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;
|
|
9686
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
9687
|
+
if (typeof message.startsAt === "number")
|
|
9688
|
+
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
9689
|
+
else
|
|
9690
|
+
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;
|
|
9691
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
9692
|
+
if (typeof message.endsAt === "number")
|
|
9693
|
+
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
9694
|
+
else
|
|
9695
|
+
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;
|
|
9696
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
9697
|
+
object.voucherCode = message.voucherCode;
|
|
9698
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
9699
|
+
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
9123
9700
|
return object;
|
|
9124
9701
|
};
|
|
9125
9702
|
|
package/package.json
CHANGED