@headspace/protos-events 1.759.0 → 1.760.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
@@ -52336,6 +52336,9 @@ export interface ISubscriptionUpcomingRenewal {
52336
52336
 
52337
52337
  /** SubscriptionUpcomingRenewal renewalTermLength */
52338
52338
  renewalTermLength?: (number|null);
52339
+
52340
+ /** SubscriptionUpcomingRenewal platform */
52341
+ platform?: (subscription.SubscriptionPlatform|null);
52339
52342
  }
52340
52343
 
52341
52344
  /** Represents a SubscriptionUpcomingRenewal. */
@@ -52377,6 +52380,9 @@ export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal
52377
52380
  /** SubscriptionUpcomingRenewal renewalTermLength. */
52378
52381
  public renewalTermLength: number;
52379
52382
 
52383
+ /** SubscriptionUpcomingRenewal platform. */
52384
+ public platform: subscription.SubscriptionPlatform;
52385
+
52380
52386
  /**
52381
52387
  * Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
52382
52388
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -148815,6 +148815,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
148815
148815
  * @property {number|null} [renewalAmount] SubscriptionUpcomingRenewal renewalAmount
148816
148816
  * @property {string|null} [currency] SubscriptionUpcomingRenewal currency
148817
148817
  * @property {number|null} [renewalTermLength] SubscriptionUpcomingRenewal renewalTermLength
148818
+ * @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionUpcomingRenewal platform
148818
148819
  */
148819
148820
 
148820
148821
  /**
@@ -148912,6 +148913,14 @@ $root.SubscriptionUpcomingRenewal = (function() {
148912
148913
  */
148913
148914
  SubscriptionUpcomingRenewal.prototype.renewalTermLength = 0;
148914
148915
 
148916
+ /**
148917
+ * SubscriptionUpcomingRenewal platform.
148918
+ * @member {subscription.SubscriptionPlatform} platform
148919
+ * @memberof SubscriptionUpcomingRenewal
148920
+ * @instance
148921
+ */
148922
+ SubscriptionUpcomingRenewal.prototype.platform = 0;
148923
+
148915
148924
  /**
148916
148925
  * Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
148917
148926
  * @function create
@@ -148956,6 +148965,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
148956
148965
  writer.uint32(/* id 9, wireType 2 =*/74).string(message.currency);
148957
148966
  if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
148958
148967
  writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.renewalTermLength);
148968
+ if (message.platform != null && message.hasOwnProperty("platform"))
148969
+ writer.uint32(/* id 11, wireType 0 =*/88).int32(message.platform);
148959
148970
  return writer;
148960
148971
  };
148961
148972
 
@@ -149020,6 +149031,9 @@ $root.SubscriptionUpcomingRenewal = (function() {
149020
149031
  case 10:
149021
149032
  message.renewalTermLength = reader.uint32();
149022
149033
  break;
149034
+ case 11:
149035
+ message.platform = reader.int32();
149036
+ break;
149023
149037
  default:
149024
149038
  reader.skipType(tag & 7);
149025
149039
  break;
@@ -149099,6 +149113,21 @@ $root.SubscriptionUpcomingRenewal = (function() {
149099
149113
  if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
149100
149114
  if (!$util.isInteger(message.renewalTermLength))
149101
149115
  return "renewalTermLength: integer expected";
149116
+ if (message.platform != null && message.hasOwnProperty("platform"))
149117
+ switch (message.platform) {
149118
+ default:
149119
+ return "platform: enum value expected";
149120
+ case 0:
149121
+ case 1:
149122
+ case 2:
149123
+ case 3:
149124
+ case 4:
149125
+ case 5:
149126
+ case 6:
149127
+ case 7:
149128
+ case 8:
149129
+ break;
149130
+ }
149102
149131
  return null;
149103
149132
  };
149104
149133
 
@@ -149168,6 +149197,44 @@ $root.SubscriptionUpcomingRenewal = (function() {
149168
149197
  message.currency = String(object.currency);
149169
149198
  if (object.renewalTermLength != null)
149170
149199
  message.renewalTermLength = object.renewalTermLength >>> 0;
149200
+ switch (object.platform) {
149201
+ case "PLATFORM_UNKNOWN":
149202
+ case 0:
149203
+ message.platform = 0;
149204
+ break;
149205
+ case "ITUNES":
149206
+ case 1:
149207
+ message.platform = 1;
149208
+ break;
149209
+ case "PLAY_STORE":
149210
+ case 2:
149211
+ message.platform = 2;
149212
+ break;
149213
+ case "ZUORA":
149214
+ case 3:
149215
+ message.platform = 3;
149216
+ break;
149217
+ case "HEADSPACE":
149218
+ case 4:
149219
+ message.platform = 4;
149220
+ break;
149221
+ case "SPOTIFY":
149222
+ case 5:
149223
+ message.platform = 5;
149224
+ break;
149225
+ case "AMAZON":
149226
+ case 6:
149227
+ message.platform = 6;
149228
+ break;
149229
+ case "SUBSCRIPTION_PLATFORM_SIKA":
149230
+ case 7:
149231
+ message.platform = 7;
149232
+ break;
149233
+ case "SUBSCRIPTION_PLATFORM_PAPI":
149234
+ case 8:
149235
+ message.platform = 8;
149236
+ break;
149237
+ }
149171
149238
  return message;
149172
149239
  };
149173
149240
 
@@ -149199,6 +149266,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
149199
149266
  object.renewalAmount = 0;
149200
149267
  object.currency = "";
149201
149268
  object.renewalTermLength = 0;
149269
+ object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
149202
149270
  }
149203
149271
  if (message.id != null && message.hasOwnProperty("id"))
149204
149272
  object.id = message.id;
@@ -149223,6 +149291,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
149223
149291
  object.currency = message.currency;
149224
149292
  if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
149225
149293
  object.renewalTermLength = message.renewalTermLength;
149294
+ if (message.platform != null && message.hasOwnProperty("platform"))
149295
+ object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
149226
149296
  return object;
149227
149297
  };
149228
149298
 
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.759.0"
19
+ "version": "1.760.0"
20
20
  }