@headspace/protos-events 1.45.0 → 1.47.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 CHANGED
@@ -1020,6 +1020,15 @@ export namespace subscription {
1020
1020
 
1021
1021
  /** Plan affiliation */
1022
1022
  affiliation?: (string|null);
1023
+
1024
+ /** Plan category */
1025
+ category?: (string|null);
1026
+
1027
+ /** Plan renewalTermLength */
1028
+ renewalTermLength?: (number|null);
1029
+
1030
+ /** Plan serviceActivationDelay */
1031
+ serviceActivationDelay?: (number|null);
1023
1032
  }
1024
1033
 
1025
1034
  /** Represents a Plan. */
@@ -1049,6 +1058,15 @@ export namespace subscription {
1049
1058
  /** Plan affiliation. */
1050
1059
  public affiliation: string;
1051
1060
 
1061
+ /** Plan category. */
1062
+ public category: string;
1063
+
1064
+ /** Plan renewalTermLength. */
1065
+ public renewalTermLength: number;
1066
+
1067
+ /** Plan serviceActivationDelay. */
1068
+ public serviceActivationDelay: number;
1069
+
1052
1070
  /**
1053
1071
  * Creates a new Plan instance using the specified properties.
1054
1072
  * @param [properties] Properties to set
@@ -1142,6 +1160,13 @@ export namespace subscription {
1142
1160
  HEADSPACE = 4,
1143
1161
  SPOTIFY = 5
1144
1162
  }
1163
+
1164
+ /** AutoRenewalStatus enum. */
1165
+ enum AutoRenewalStatus {
1166
+ UNKNOWN_STATUS = 0,
1167
+ ENABLED = 1,
1168
+ DISABLED = 2
1169
+ }
1145
1170
  }
1146
1171
 
1147
1172
  /** Namespace userdomain. */
@@ -3403,6 +3428,12 @@ export interface ISubscriptionCreated {
3403
3428
 
3404
3429
  /** SubscriptionCreated platform */
3405
3430
  platform?: (subscription.SubscriptionPlatform|null);
3431
+
3432
+ /** SubscriptionCreated autoRenewalStatus */
3433
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3434
+
3435
+ /** SubscriptionCreated plan */
3436
+ plan?: (subscription.IPlan|null);
3406
3437
  }
3407
3438
 
3408
3439
  /** Represents a SubscriptionCreated. */
@@ -3438,6 +3469,12 @@ export class SubscriptionCreated implements ISubscriptionCreated {
3438
3469
  /** SubscriptionCreated platform. */
3439
3470
  public platform: subscription.SubscriptionPlatform;
3440
3471
 
3472
+ /** SubscriptionCreated autoRenewalStatus. */
3473
+ public autoRenewalStatus: subscription.AutoRenewalStatus;
3474
+
3475
+ /** SubscriptionCreated plan. */
3476
+ public plan?: (subscription.IPlan|null);
3477
+
3441
3478
  /**
3442
3479
  * Creates a new SubscriptionCreated instance using the specified properties.
3443
3480
  * @param [properties] Properties to set
@@ -3538,6 +3575,12 @@ export interface ISubscriptionCancelled {
3538
3575
 
3539
3576
  /** SubscriptionCancelled platform */
3540
3577
  platform?: (subscription.SubscriptionPlatform|null);
3578
+
3579
+ /** SubscriptionCancelled autoRenewalStatus */
3580
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3581
+
3582
+ /** SubscriptionCancelled plan */
3583
+ plan?: (subscription.IPlan|null);
3541
3584
  }
3542
3585
 
3543
3586
  /** Represents a SubscriptionCancelled. */
@@ -3576,6 +3619,12 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
3576
3619
  /** SubscriptionCancelled platform. */
3577
3620
  public platform: subscription.SubscriptionPlatform;
3578
3621
 
3622
+ /** SubscriptionCancelled autoRenewalStatus. */
3623
+ public autoRenewalStatus: subscription.AutoRenewalStatus;
3624
+
3625
+ /** SubscriptionCancelled plan. */
3626
+ public plan?: (subscription.IPlan|null);
3627
+
3579
3628
  /**
3580
3629
  * Creates a new SubscriptionCancelled instance using the specified properties.
3581
3630
  * @param [properties] Properties to set
@@ -3673,6 +3722,12 @@ export interface ISubscriptionRenewed {
3673
3722
 
3674
3723
  /** SubscriptionRenewed platform */
3675
3724
  platform?: (subscription.SubscriptionPlatform|null);
3725
+
3726
+ /** SubscriptionRenewed autoRenewalStatus */
3727
+ autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
3728
+
3729
+ /** SubscriptionRenewed plan */
3730
+ plan?: (subscription.IPlan|null);
3676
3731
  }
3677
3732
 
3678
3733
  /** Represents a SubscriptionRenewed. */
@@ -3708,6 +3763,12 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
3708
3763
  /** SubscriptionRenewed platform. */
3709
3764
  public platform: subscription.SubscriptionPlatform;
3710
3765
 
3766
+ /** SubscriptionRenewed autoRenewalStatus. */
3767
+ public autoRenewalStatus: subscription.AutoRenewalStatus;
3768
+
3769
+ /** SubscriptionRenewed plan. */
3770
+ public plan?: (subscription.IPlan|null);
3771
+
3711
3772
  /**
3712
3773
  * Creates a new SubscriptionRenewed instance using the specified properties.
3713
3774
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -2228,6 +2228,9 @@ $root.subscription = (function() {
2228
2228
  * @property {string|null} [name] Plan name
2229
2229
  * @property {string|null} [subscriptionType] Plan subscriptionType
2230
2230
  * @property {string|null} [affiliation] Plan affiliation
2231
+ * @property {string|null} [category] Plan category
2232
+ * @property {number|null} [renewalTermLength] Plan renewalTermLength
2233
+ * @property {number|null} [serviceActivationDelay] Plan serviceActivationDelay
2231
2234
  */
2232
2235
 
2233
2236
  /**
@@ -2293,6 +2296,30 @@ $root.subscription = (function() {
2293
2296
  */
2294
2297
  Plan.prototype.affiliation = "";
2295
2298
 
2299
+ /**
2300
+ * Plan category.
2301
+ * @member {string} category
2302
+ * @memberof subscription.Plan
2303
+ * @instance
2304
+ */
2305
+ Plan.prototype.category = "";
2306
+
2307
+ /**
2308
+ * Plan renewalTermLength.
2309
+ * @member {number} renewalTermLength
2310
+ * @memberof subscription.Plan
2311
+ * @instance
2312
+ */
2313
+ Plan.prototype.renewalTermLength = 0;
2314
+
2315
+ /**
2316
+ * Plan serviceActivationDelay.
2317
+ * @member {number} serviceActivationDelay
2318
+ * @memberof subscription.Plan
2319
+ * @instance
2320
+ */
2321
+ Plan.prototype.serviceActivationDelay = 0;
2322
+
2296
2323
  /**
2297
2324
  * Creates a new Plan instance using the specified properties.
2298
2325
  * @function create
@@ -2329,6 +2356,12 @@ $root.subscription = (function() {
2329
2356
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.subscriptionType);
2330
2357
  if (message.affiliation != null && message.hasOwnProperty("affiliation"))
2331
2358
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.affiliation);
2359
+ if (message.category != null && message.hasOwnProperty("category"))
2360
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.category);
2361
+ if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
2362
+ writer.uint32(/* id 8, wireType 0 =*/64).int32(message.renewalTermLength);
2363
+ if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
2364
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.serviceActivationDelay);
2332
2365
  return writer;
2333
2366
  };
2334
2367
 
@@ -2381,6 +2414,15 @@ $root.subscription = (function() {
2381
2414
  case 6:
2382
2415
  message.affiliation = reader.string();
2383
2416
  break;
2417
+ case 7:
2418
+ message.category = reader.string();
2419
+ break;
2420
+ case 8:
2421
+ message.renewalTermLength = reader.int32();
2422
+ break;
2423
+ case 9:
2424
+ message.serviceActivationDelay = reader.int32();
2425
+ break;
2384
2426
  default:
2385
2427
  reader.skipType(tag & 7);
2386
2428
  break;
@@ -2434,6 +2476,15 @@ $root.subscription = (function() {
2434
2476
  if (message.affiliation != null && message.hasOwnProperty("affiliation"))
2435
2477
  if (!$util.isString(message.affiliation))
2436
2478
  return "affiliation: string expected";
2479
+ if (message.category != null && message.hasOwnProperty("category"))
2480
+ if (!$util.isString(message.category))
2481
+ return "category: string expected";
2482
+ if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
2483
+ if (!$util.isInteger(message.renewalTermLength))
2484
+ return "renewalTermLength: integer expected";
2485
+ if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
2486
+ if (!$util.isInteger(message.serviceActivationDelay))
2487
+ return "serviceActivationDelay: integer expected";
2437
2488
  return null;
2438
2489
  };
2439
2490
 
@@ -2461,6 +2512,12 @@ $root.subscription = (function() {
2461
2512
  message.subscriptionType = String(object.subscriptionType);
2462
2513
  if (object.affiliation != null)
2463
2514
  message.affiliation = String(object.affiliation);
2515
+ if (object.category != null)
2516
+ message.category = String(object.category);
2517
+ if (object.renewalTermLength != null)
2518
+ message.renewalTermLength = object.renewalTermLength | 0;
2519
+ if (object.serviceActivationDelay != null)
2520
+ message.serviceActivationDelay = object.serviceActivationDelay | 0;
2464
2521
  return message;
2465
2522
  };
2466
2523
 
@@ -2484,6 +2541,9 @@ $root.subscription = (function() {
2484
2541
  object.name = "";
2485
2542
  object.subscriptionType = "";
2486
2543
  object.affiliation = "";
2544
+ object.category = "";
2545
+ object.renewalTermLength = 0;
2546
+ object.serviceActivationDelay = 0;
2487
2547
  }
2488
2548
  if (message.id != null && message.hasOwnProperty("id"))
2489
2549
  object.id = message.id;
@@ -2497,6 +2557,12 @@ $root.subscription = (function() {
2497
2557
  object.subscriptionType = message.subscriptionType;
2498
2558
  if (message.affiliation != null && message.hasOwnProperty("affiliation"))
2499
2559
  object.affiliation = message.affiliation;
2560
+ if (message.category != null && message.hasOwnProperty("category"))
2561
+ object.category = message.category;
2562
+ if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
2563
+ object.renewalTermLength = message.renewalTermLength;
2564
+ if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
2565
+ object.serviceActivationDelay = message.serviceActivationDelay;
2500
2566
  return object;
2501
2567
  };
2502
2568
 
@@ -2566,6 +2632,22 @@ $root.subscription = (function() {
2566
2632
  return values;
2567
2633
  })();
2568
2634
 
2635
+ /**
2636
+ * AutoRenewalStatus enum.
2637
+ * @name subscription.AutoRenewalStatus
2638
+ * @enum {string}
2639
+ * @property {number} UNKNOWN_STATUS=0 UNKNOWN_STATUS value
2640
+ * @property {number} ENABLED=1 ENABLED value
2641
+ * @property {number} DISABLED=2 DISABLED value
2642
+ */
2643
+ subscription.AutoRenewalStatus = (function() {
2644
+ var valuesById = {}, values = Object.create(valuesById);
2645
+ values[valuesById[0] = "UNKNOWN_STATUS"] = 0;
2646
+ values[valuesById[1] = "ENABLED"] = 1;
2647
+ values[valuesById[2] = "DISABLED"] = 2;
2648
+ return values;
2649
+ })();
2650
+
2569
2651
  return subscription;
2570
2652
  })();
2571
2653
 
@@ -8132,6 +8214,8 @@ $root.SubscriptionCreated = (function() {
8132
8214
  * @property {number|Long|null} [endsAt] SubscriptionCreated endsAt
8133
8215
  * @property {string|null} [voucherCode] SubscriptionCreated voucherCode
8134
8216
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
8217
+ * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
8218
+ * @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
8135
8219
  */
8136
8220
 
8137
8221
  /**
@@ -8213,6 +8297,22 @@ $root.SubscriptionCreated = (function() {
8213
8297
  */
8214
8298
  SubscriptionCreated.prototype.platform = 0;
8215
8299
 
8300
+ /**
8301
+ * SubscriptionCreated autoRenewalStatus.
8302
+ * @member {subscription.AutoRenewalStatus} autoRenewalStatus
8303
+ * @memberof SubscriptionCreated
8304
+ * @instance
8305
+ */
8306
+ SubscriptionCreated.prototype.autoRenewalStatus = 0;
8307
+
8308
+ /**
8309
+ * SubscriptionCreated plan.
8310
+ * @member {subscription.IPlan|null|undefined} plan
8311
+ * @memberof SubscriptionCreated
8312
+ * @instance
8313
+ */
8314
+ SubscriptionCreated.prototype.plan = null;
8315
+
8216
8316
  /**
8217
8317
  * Creates a new SubscriptionCreated instance using the specified properties.
8218
8318
  * @function create
@@ -8253,6 +8353,10 @@ $root.SubscriptionCreated = (function() {
8253
8353
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
8254
8354
  if (message.platform != null && message.hasOwnProperty("platform"))
8255
8355
  writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
8356
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
8357
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
8358
+ if (message.plan != null && message.hasOwnProperty("plan"))
8359
+ $root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
8256
8360
  return writer;
8257
8361
  };
8258
8362
 
@@ -8311,6 +8415,12 @@ $root.SubscriptionCreated = (function() {
8311
8415
  case 8:
8312
8416
  message.platform = reader.int32();
8313
8417
  break;
8418
+ case 9:
8419
+ message.autoRenewalStatus = reader.int32();
8420
+ break;
8421
+ case 10:
8422
+ message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
8423
+ break;
8314
8424
  default:
8315
8425
  reader.skipType(tag & 7);
8316
8426
  break;
@@ -8379,6 +8489,20 @@ $root.SubscriptionCreated = (function() {
8379
8489
  case 5:
8380
8490
  break;
8381
8491
  }
8492
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
8493
+ switch (message.autoRenewalStatus) {
8494
+ default:
8495
+ return "autoRenewalStatus: enum value expected";
8496
+ case 0:
8497
+ case 1:
8498
+ case 2:
8499
+ break;
8500
+ }
8501
+ if (message.plan != null && message.hasOwnProperty("plan")) {
8502
+ var error = $root.subscription.Plan.verify(message.plan);
8503
+ if (error)
8504
+ return "plan." + error;
8505
+ }
8382
8506
  return null;
8383
8507
  };
8384
8508
 
@@ -8462,6 +8586,25 @@ $root.SubscriptionCreated = (function() {
8462
8586
  message.platform = 5;
8463
8587
  break;
8464
8588
  }
8589
+ switch (object.autoRenewalStatus) {
8590
+ case "UNKNOWN_STATUS":
8591
+ case 0:
8592
+ message.autoRenewalStatus = 0;
8593
+ break;
8594
+ case "ENABLED":
8595
+ case 1:
8596
+ message.autoRenewalStatus = 1;
8597
+ break;
8598
+ case "DISABLED":
8599
+ case 2:
8600
+ message.autoRenewalStatus = 2;
8601
+ break;
8602
+ }
8603
+ if (object.plan != null) {
8604
+ if (typeof object.plan !== "object")
8605
+ throw TypeError(".SubscriptionCreated.plan: object expected");
8606
+ message.plan = $root.subscription.Plan.fromObject(object.plan);
8607
+ }
8465
8608
  return message;
8466
8609
  };
8467
8610
 
@@ -8503,6 +8646,8 @@ $root.SubscriptionCreated = (function() {
8503
8646
  object.endsAt = options.longs === String ? "0" : 0;
8504
8647
  object.voucherCode = "";
8505
8648
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
8649
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
8650
+ object.plan = null;
8506
8651
  }
8507
8652
  if (message.id != null && message.hasOwnProperty("id"))
8508
8653
  object.id = message.id;
@@ -8532,6 +8677,10 @@ $root.SubscriptionCreated = (function() {
8532
8677
  object.voucherCode = message.voucherCode;
8533
8678
  if (message.platform != null && message.hasOwnProperty("platform"))
8534
8679
  object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
8680
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
8681
+ object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
8682
+ if (message.plan != null && message.hasOwnProperty("plan"))
8683
+ object.plan = $root.subscription.Plan.toObject(message.plan, options);
8535
8684
  return object;
8536
8685
  };
8537
8686
 
@@ -8564,6 +8713,8 @@ $root.SubscriptionCancelled = (function() {
8564
8713
  * @property {number|Long|null} [endsAt] SubscriptionCancelled endsAt
8565
8714
  * @property {string|null} [voucherCode] SubscriptionCancelled voucherCode
8566
8715
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
8716
+ * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCancelled autoRenewalStatus
8717
+ * @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
8567
8718
  */
8568
8719
 
8569
8720
  /**
@@ -8653,6 +8804,22 @@ $root.SubscriptionCancelled = (function() {
8653
8804
  */
8654
8805
  SubscriptionCancelled.prototype.platform = 0;
8655
8806
 
8807
+ /**
8808
+ * SubscriptionCancelled autoRenewalStatus.
8809
+ * @member {subscription.AutoRenewalStatus} autoRenewalStatus
8810
+ * @memberof SubscriptionCancelled
8811
+ * @instance
8812
+ */
8813
+ SubscriptionCancelled.prototype.autoRenewalStatus = 0;
8814
+
8815
+ /**
8816
+ * SubscriptionCancelled plan.
8817
+ * @member {subscription.IPlan|null|undefined} plan
8818
+ * @memberof SubscriptionCancelled
8819
+ * @instance
8820
+ */
8821
+ SubscriptionCancelled.prototype.plan = null;
8822
+
8656
8823
  /**
8657
8824
  * Creates a new SubscriptionCancelled instance using the specified properties.
8658
8825
  * @function create
@@ -8695,6 +8862,10 @@ $root.SubscriptionCancelled = (function() {
8695
8862
  writer.uint32(/* id 8, wireType 2 =*/66).string(message.voucherCode);
8696
8863
  if (message.platform != null && message.hasOwnProperty("platform"))
8697
8864
  writer.uint32(/* id 9, wireType 0 =*/72).int32(message.platform);
8865
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
8866
+ writer.uint32(/* id 10, wireType 0 =*/80).int32(message.autoRenewalStatus);
8867
+ if (message.plan != null && message.hasOwnProperty("plan"))
8868
+ $root.subscription.Plan.encode(message.plan, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
8698
8869
  return writer;
8699
8870
  };
8700
8871
 
@@ -8756,6 +8927,12 @@ $root.SubscriptionCancelled = (function() {
8756
8927
  case 9:
8757
8928
  message.platform = reader.int32();
8758
8929
  break;
8930
+ case 10:
8931
+ message.autoRenewalStatus = reader.int32();
8932
+ break;
8933
+ case 11:
8934
+ message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
8935
+ break;
8759
8936
  default:
8760
8937
  reader.skipType(tag & 7);
8761
8938
  break;
@@ -8829,6 +9006,20 @@ $root.SubscriptionCancelled = (function() {
8829
9006
  case 5:
8830
9007
  break;
8831
9008
  }
9009
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
9010
+ switch (message.autoRenewalStatus) {
9011
+ default:
9012
+ return "autoRenewalStatus: enum value expected";
9013
+ case 0:
9014
+ case 1:
9015
+ case 2:
9016
+ break;
9017
+ }
9018
+ if (message.plan != null && message.hasOwnProperty("plan")) {
9019
+ var error = $root.subscription.Plan.verify(message.plan);
9020
+ if (error)
9021
+ return "plan." + error;
9022
+ }
8832
9023
  return null;
8833
9024
  };
8834
9025
 
@@ -8917,6 +9108,25 @@ $root.SubscriptionCancelled = (function() {
8917
9108
  message.platform = 5;
8918
9109
  break;
8919
9110
  }
9111
+ switch (object.autoRenewalStatus) {
9112
+ case "UNKNOWN_STATUS":
9113
+ case 0:
9114
+ message.autoRenewalStatus = 0;
9115
+ break;
9116
+ case "ENABLED":
9117
+ case 1:
9118
+ message.autoRenewalStatus = 1;
9119
+ break;
9120
+ case "DISABLED":
9121
+ case 2:
9122
+ message.autoRenewalStatus = 2;
9123
+ break;
9124
+ }
9125
+ if (object.plan != null) {
9126
+ if (typeof object.plan !== "object")
9127
+ throw TypeError(".SubscriptionCancelled.plan: object expected");
9128
+ message.plan = $root.subscription.Plan.fromObject(object.plan);
9129
+ }
8920
9130
  return message;
8921
9131
  };
8922
9132
 
@@ -8959,6 +9169,8 @@ $root.SubscriptionCancelled = (function() {
8959
9169
  object.endsAt = options.longs === String ? "0" : 0;
8960
9170
  object.voucherCode = "";
8961
9171
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
9172
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
9173
+ object.plan = null;
8962
9174
  }
8963
9175
  if (message.id != null && message.hasOwnProperty("id"))
8964
9176
  object.id = message.id;
@@ -8990,6 +9202,10 @@ $root.SubscriptionCancelled = (function() {
8990
9202
  object.voucherCode = message.voucherCode;
8991
9203
  if (message.platform != null && message.hasOwnProperty("platform"))
8992
9204
  object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
9205
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
9206
+ object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
9207
+ if (message.plan != null && message.hasOwnProperty("plan"))
9208
+ object.plan = $root.subscription.Plan.toObject(message.plan, options);
8993
9209
  return object;
8994
9210
  };
8995
9211
 
@@ -9021,6 +9237,8 @@ $root.SubscriptionRenewed = (function() {
9021
9237
  * @property {number|Long|null} [endsAt] SubscriptionRenewed endsAt
9022
9238
  * @property {string|null} [voucherCode] SubscriptionRenewed voucherCode
9023
9239
  * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionRenewed platform
9240
+ * @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
9241
+ * @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
9024
9242
  */
9025
9243
 
9026
9244
  /**
@@ -9102,6 +9320,22 @@ $root.SubscriptionRenewed = (function() {
9102
9320
  */
9103
9321
  SubscriptionRenewed.prototype.platform = 0;
9104
9322
 
9323
+ /**
9324
+ * SubscriptionRenewed autoRenewalStatus.
9325
+ * @member {subscription.AutoRenewalStatus} autoRenewalStatus
9326
+ * @memberof SubscriptionRenewed
9327
+ * @instance
9328
+ */
9329
+ SubscriptionRenewed.prototype.autoRenewalStatus = 0;
9330
+
9331
+ /**
9332
+ * SubscriptionRenewed plan.
9333
+ * @member {subscription.IPlan|null|undefined} plan
9334
+ * @memberof SubscriptionRenewed
9335
+ * @instance
9336
+ */
9337
+ SubscriptionRenewed.prototype.plan = null;
9338
+
9105
9339
  /**
9106
9340
  * Creates a new SubscriptionRenewed instance using the specified properties.
9107
9341
  * @function create
@@ -9142,6 +9376,10 @@ $root.SubscriptionRenewed = (function() {
9142
9376
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
9143
9377
  if (message.platform != null && message.hasOwnProperty("platform"))
9144
9378
  writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
9379
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
9380
+ writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
9381
+ if (message.plan != null && message.hasOwnProperty("plan"))
9382
+ $root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
9145
9383
  return writer;
9146
9384
  };
9147
9385
 
@@ -9200,6 +9438,12 @@ $root.SubscriptionRenewed = (function() {
9200
9438
  case 8:
9201
9439
  message.platform = reader.int32();
9202
9440
  break;
9441
+ case 9:
9442
+ message.autoRenewalStatus = reader.int32();
9443
+ break;
9444
+ case 10:
9445
+ message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
9446
+ break;
9203
9447
  default:
9204
9448
  reader.skipType(tag & 7);
9205
9449
  break;
@@ -9268,6 +9512,20 @@ $root.SubscriptionRenewed = (function() {
9268
9512
  case 5:
9269
9513
  break;
9270
9514
  }
9515
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
9516
+ switch (message.autoRenewalStatus) {
9517
+ default:
9518
+ return "autoRenewalStatus: enum value expected";
9519
+ case 0:
9520
+ case 1:
9521
+ case 2:
9522
+ break;
9523
+ }
9524
+ if (message.plan != null && message.hasOwnProperty("plan")) {
9525
+ var error = $root.subscription.Plan.verify(message.plan);
9526
+ if (error)
9527
+ return "plan." + error;
9528
+ }
9271
9529
  return null;
9272
9530
  };
9273
9531
 
@@ -9351,6 +9609,25 @@ $root.SubscriptionRenewed = (function() {
9351
9609
  message.platform = 5;
9352
9610
  break;
9353
9611
  }
9612
+ switch (object.autoRenewalStatus) {
9613
+ case "UNKNOWN_STATUS":
9614
+ case 0:
9615
+ message.autoRenewalStatus = 0;
9616
+ break;
9617
+ case "ENABLED":
9618
+ case 1:
9619
+ message.autoRenewalStatus = 1;
9620
+ break;
9621
+ case "DISABLED":
9622
+ case 2:
9623
+ message.autoRenewalStatus = 2;
9624
+ break;
9625
+ }
9626
+ if (object.plan != null) {
9627
+ if (typeof object.plan !== "object")
9628
+ throw TypeError(".SubscriptionRenewed.plan: object expected");
9629
+ message.plan = $root.subscription.Plan.fromObject(object.plan);
9630
+ }
9354
9631
  return message;
9355
9632
  };
9356
9633
 
@@ -9392,6 +9669,8 @@ $root.SubscriptionRenewed = (function() {
9392
9669
  object.endsAt = options.longs === String ? "0" : 0;
9393
9670
  object.voucherCode = "";
9394
9671
  object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
9672
+ object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
9673
+ object.plan = null;
9395
9674
  }
9396
9675
  if (message.id != null && message.hasOwnProperty("id"))
9397
9676
  object.id = message.id;
@@ -9421,6 +9700,10 @@ $root.SubscriptionRenewed = (function() {
9421
9700
  object.voucherCode = message.voucherCode;
9422
9701
  if (message.platform != null && message.hasOwnProperty("platform"))
9423
9702
  object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
9703
+ if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
9704
+ object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
9705
+ if (message.plan != null && message.hasOwnProperty("plan"))
9706
+ object.plan = $root.subscription.Plan.toObject(message.plan, options);
9424
9707
  return object;
9425
9708
  };
9426
9709
 
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.45.0"
19
+ "version": "1.47.0"
20
20
  }