@headspace/protos-events 1.280.0 → 1.281.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
@@ -29175,6 +29175,9 @@ export interface IGiftPurchased {
29175
29175
 
29176
29176
  /** GiftPurchased purchasedOn */
29177
29177
  purchasedOn?: (number|Long|null);
29178
+
29179
+ /** GiftPurchased giftPurchaseId */
29180
+ giftPurchaseId?: (string|null);
29178
29181
  }
29179
29182
 
29180
29183
  /** Represents a GiftPurchased. */
@@ -29204,6 +29207,9 @@ export class GiftPurchased implements IGiftPurchased {
29204
29207
  /** GiftPurchased purchasedOn. */
29205
29208
  public purchasedOn: (number|Long);
29206
29209
 
29210
+ /** GiftPurchased giftPurchaseId. */
29211
+ public giftPurchaseId: string;
29212
+
29207
29213
  /**
29208
29214
  * Creates a new GiftPurchased instance using the specified properties.
29209
29215
  * @param [properties] Properties to set
@@ -29275,6 +29281,114 @@ export class GiftPurchased implements IGiftPurchased {
29275
29281
  public toJSON(): { [k: string]: any };
29276
29282
  }
29277
29283
 
29284
+ /** Properties of a GiftRedemptionCodeGenerated. */
29285
+ export interface IGiftRedemptionCodeGenerated {
29286
+
29287
+ /** GiftRedemptionCodeGenerated hsUserId */
29288
+ hsUserId?: (string|null);
29289
+
29290
+ /** GiftRedemptionCodeGenerated giftRedemptionCode */
29291
+ giftRedemptionCode?: (string|null);
29292
+
29293
+ /** GiftRedemptionCodeGenerated giftPurchaseId */
29294
+ giftPurchaseId?: (string|null);
29295
+
29296
+ /** GiftRedemptionCodeGenerated timestamp */
29297
+ timestamp?: (number|Long|null);
29298
+ }
29299
+
29300
+ /** Represents a GiftRedemptionCodeGenerated. */
29301
+ export class GiftRedemptionCodeGenerated implements IGiftRedemptionCodeGenerated {
29302
+
29303
+ /**
29304
+ * Constructs a new GiftRedemptionCodeGenerated.
29305
+ * @param [properties] Properties to set
29306
+ */
29307
+ constructor(properties?: IGiftRedemptionCodeGenerated);
29308
+
29309
+ /** GiftRedemptionCodeGenerated hsUserId. */
29310
+ public hsUserId: string;
29311
+
29312
+ /** GiftRedemptionCodeGenerated giftRedemptionCode. */
29313
+ public giftRedemptionCode: string;
29314
+
29315
+ /** GiftRedemptionCodeGenerated giftPurchaseId. */
29316
+ public giftPurchaseId: string;
29317
+
29318
+ /** GiftRedemptionCodeGenerated timestamp. */
29319
+ public timestamp: (number|Long);
29320
+
29321
+ /**
29322
+ * Creates a new GiftRedemptionCodeGenerated instance using the specified properties.
29323
+ * @param [properties] Properties to set
29324
+ * @returns GiftRedemptionCodeGenerated instance
29325
+ */
29326
+ public static create(properties?: IGiftRedemptionCodeGenerated): GiftRedemptionCodeGenerated;
29327
+
29328
+ /**
29329
+ * Encodes the specified GiftRedemptionCodeGenerated message. Does not implicitly {@link GiftRedemptionCodeGenerated.verify|verify} messages.
29330
+ * @param message GiftRedemptionCodeGenerated message or plain object to encode
29331
+ * @param [writer] Writer to encode to
29332
+ * @returns Writer
29333
+ */
29334
+ public static encode(message: IGiftRedemptionCodeGenerated, writer?: $protobuf.Writer): $protobuf.Writer;
29335
+
29336
+ /**
29337
+ * Encodes the specified GiftRedemptionCodeGenerated message, length delimited. Does not implicitly {@link GiftRedemptionCodeGenerated.verify|verify} messages.
29338
+ * @param message GiftRedemptionCodeGenerated message or plain object to encode
29339
+ * @param [writer] Writer to encode to
29340
+ * @returns Writer
29341
+ */
29342
+ public static encodeDelimited(message: IGiftRedemptionCodeGenerated, writer?: $protobuf.Writer): $protobuf.Writer;
29343
+
29344
+ /**
29345
+ * Decodes a GiftRedemptionCodeGenerated message from the specified reader or buffer.
29346
+ * @param reader Reader or buffer to decode from
29347
+ * @param [length] Message length if known beforehand
29348
+ * @returns GiftRedemptionCodeGenerated
29349
+ * @throws {Error} If the payload is not a reader or valid buffer
29350
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29351
+ */
29352
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GiftRedemptionCodeGenerated;
29353
+
29354
+ /**
29355
+ * Decodes a GiftRedemptionCodeGenerated message from the specified reader or buffer, length delimited.
29356
+ * @param reader Reader or buffer to decode from
29357
+ * @returns GiftRedemptionCodeGenerated
29358
+ * @throws {Error} If the payload is not a reader or valid buffer
29359
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29360
+ */
29361
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GiftRedemptionCodeGenerated;
29362
+
29363
+ /**
29364
+ * Verifies a GiftRedemptionCodeGenerated message.
29365
+ * @param message Plain object to verify
29366
+ * @returns `null` if valid, otherwise the reason why it is not
29367
+ */
29368
+ public static verify(message: { [k: string]: any }): (string|null);
29369
+
29370
+ /**
29371
+ * Creates a GiftRedemptionCodeGenerated message from a plain object. Also converts values to their respective internal types.
29372
+ * @param object Plain object
29373
+ * @returns GiftRedemptionCodeGenerated
29374
+ */
29375
+ public static fromObject(object: { [k: string]: any }): GiftRedemptionCodeGenerated;
29376
+
29377
+ /**
29378
+ * Creates a plain object from a GiftRedemptionCodeGenerated message. Also converts values to other types if specified.
29379
+ * @param message GiftRedemptionCodeGenerated
29380
+ * @param [options] Conversion options
29381
+ * @returns Plain object
29382
+ */
29383
+ public static toObject(message: GiftRedemptionCodeGenerated, options?: $protobuf.IConversionOptions): { [k: string]: any };
29384
+
29385
+ /**
29386
+ * Converts this GiftRedemptionCodeGenerated to JSON.
29387
+ * @returns JSON object
29388
+ */
29389
+ public toJSON(): { [k: string]: any };
29390
+ }
29391
+
29278
29392
  /** Properties of a GoogleSubscriptionPurchased. */
29279
29393
  export interface IGoogleSubscriptionPurchased {
29280
29394
 
package/lib/index.js CHANGED
@@ -79819,6 +79819,7 @@ $root.GiftPurchased = (function() {
79819
79819
  * @property {string|null} [giftRecipientLastName] GiftPurchased giftRecipientLastName
79820
79820
  * @property {number|null} [giftNumMonths] GiftPurchased giftNumMonths
79821
79821
  * @property {number|Long|null} [purchasedOn] GiftPurchased purchasedOn
79822
+ * @property {string|null} [giftPurchaseId] GiftPurchased giftPurchaseId
79822
79823
  */
79823
79824
 
79824
79825
  /**
@@ -79884,6 +79885,14 @@ $root.GiftPurchased = (function() {
79884
79885
  */
79885
79886
  GiftPurchased.prototype.purchasedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
79886
79887
 
79888
+ /**
79889
+ * GiftPurchased giftPurchaseId.
79890
+ * @member {string} giftPurchaseId
79891
+ * @memberof GiftPurchased
79892
+ * @instance
79893
+ */
79894
+ GiftPurchased.prototype.giftPurchaseId = "";
79895
+
79887
79896
  /**
79888
79897
  * Creates a new GiftPurchased instance using the specified properties.
79889
79898
  * @function create
@@ -79920,6 +79929,8 @@ $root.GiftPurchased = (function() {
79920
79929
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.giftNumMonths);
79921
79930
  if (message.purchasedOn != null && message.hasOwnProperty("purchasedOn"))
79922
79931
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.purchasedOn);
79932
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
79933
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.giftPurchaseId);
79923
79934
  return writer;
79924
79935
  };
79925
79936
 
@@ -79972,6 +79983,9 @@ $root.GiftPurchased = (function() {
79972
79983
  case 6:
79973
79984
  message.purchasedOn = reader.uint64();
79974
79985
  break;
79986
+ case 7:
79987
+ message.giftPurchaseId = reader.string();
79988
+ break;
79975
79989
  default:
79976
79990
  reader.skipType(tag & 7);
79977
79991
  break;
@@ -80025,6 +80039,9 @@ $root.GiftPurchased = (function() {
80025
80039
  if (message.purchasedOn != null && message.hasOwnProperty("purchasedOn"))
80026
80040
  if (!$util.isInteger(message.purchasedOn) && !(message.purchasedOn && $util.isInteger(message.purchasedOn.low) && $util.isInteger(message.purchasedOn.high)))
80027
80041
  return "purchasedOn: integer|Long expected";
80042
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
80043
+ if (!$util.isString(message.giftPurchaseId))
80044
+ return "giftPurchaseId: string expected";
80028
80045
  return null;
80029
80046
  };
80030
80047
 
@@ -80059,6 +80076,8 @@ $root.GiftPurchased = (function() {
80059
80076
  message.purchasedOn = object.purchasedOn;
80060
80077
  else if (typeof object.purchasedOn === "object")
80061
80078
  message.purchasedOn = new $util.LongBits(object.purchasedOn.low >>> 0, object.purchasedOn.high >>> 0).toNumber(true);
80079
+ if (object.giftPurchaseId != null)
80080
+ message.giftPurchaseId = String(object.giftPurchaseId);
80062
80081
  return message;
80063
80082
  };
80064
80083
 
@@ -80086,6 +80105,7 @@ $root.GiftPurchased = (function() {
80086
80105
  object.purchasedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80087
80106
  } else
80088
80107
  object.purchasedOn = options.longs === String ? "0" : 0;
80108
+ object.giftPurchaseId = "";
80089
80109
  }
80090
80110
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
80091
80111
  object.hsUserId = message.hsUserId;
@@ -80102,6 +80122,8 @@ $root.GiftPurchased = (function() {
80102
80122
  object.purchasedOn = options.longs === String ? String(message.purchasedOn) : message.purchasedOn;
80103
80123
  else
80104
80124
  object.purchasedOn = options.longs === String ? $util.Long.prototype.toString.call(message.purchasedOn) : options.longs === Number ? new $util.LongBits(message.purchasedOn.low >>> 0, message.purchasedOn.high >>> 0).toNumber(true) : message.purchasedOn;
80125
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
80126
+ object.giftPurchaseId = message.giftPurchaseId;
80105
80127
  return object;
80106
80128
  };
80107
80129
 
@@ -80119,6 +80141,274 @@ $root.GiftPurchased = (function() {
80119
80141
  return GiftPurchased;
80120
80142
  })();
80121
80143
 
80144
+ $root.GiftRedemptionCodeGenerated = (function() {
80145
+
80146
+ /**
80147
+ * Properties of a GiftRedemptionCodeGenerated.
80148
+ * @exports IGiftRedemptionCodeGenerated
80149
+ * @interface IGiftRedemptionCodeGenerated
80150
+ * @property {string|null} [hsUserId] GiftRedemptionCodeGenerated hsUserId
80151
+ * @property {string|null} [giftRedemptionCode] GiftRedemptionCodeGenerated giftRedemptionCode
80152
+ * @property {string|null} [giftPurchaseId] GiftRedemptionCodeGenerated giftPurchaseId
80153
+ * @property {number|Long|null} [timestamp] GiftRedemptionCodeGenerated timestamp
80154
+ */
80155
+
80156
+ /**
80157
+ * Constructs a new GiftRedemptionCodeGenerated.
80158
+ * @exports GiftRedemptionCodeGenerated
80159
+ * @classdesc Represents a GiftRedemptionCodeGenerated.
80160
+ * @implements IGiftRedemptionCodeGenerated
80161
+ * @constructor
80162
+ * @param {IGiftRedemptionCodeGenerated=} [properties] Properties to set
80163
+ */
80164
+ function GiftRedemptionCodeGenerated(properties) {
80165
+ if (properties)
80166
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
80167
+ if (properties[keys[i]] != null)
80168
+ this[keys[i]] = properties[keys[i]];
80169
+ }
80170
+
80171
+ /**
80172
+ * GiftRedemptionCodeGenerated hsUserId.
80173
+ * @member {string} hsUserId
80174
+ * @memberof GiftRedemptionCodeGenerated
80175
+ * @instance
80176
+ */
80177
+ GiftRedemptionCodeGenerated.prototype.hsUserId = "";
80178
+
80179
+ /**
80180
+ * GiftRedemptionCodeGenerated giftRedemptionCode.
80181
+ * @member {string} giftRedemptionCode
80182
+ * @memberof GiftRedemptionCodeGenerated
80183
+ * @instance
80184
+ */
80185
+ GiftRedemptionCodeGenerated.prototype.giftRedemptionCode = "";
80186
+
80187
+ /**
80188
+ * GiftRedemptionCodeGenerated giftPurchaseId.
80189
+ * @member {string} giftPurchaseId
80190
+ * @memberof GiftRedemptionCodeGenerated
80191
+ * @instance
80192
+ */
80193
+ GiftRedemptionCodeGenerated.prototype.giftPurchaseId = "";
80194
+
80195
+ /**
80196
+ * GiftRedemptionCodeGenerated timestamp.
80197
+ * @member {number|Long} timestamp
80198
+ * @memberof GiftRedemptionCodeGenerated
80199
+ * @instance
80200
+ */
80201
+ GiftRedemptionCodeGenerated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
80202
+
80203
+ /**
80204
+ * Creates a new GiftRedemptionCodeGenerated instance using the specified properties.
80205
+ * @function create
80206
+ * @memberof GiftRedemptionCodeGenerated
80207
+ * @static
80208
+ * @param {IGiftRedemptionCodeGenerated=} [properties] Properties to set
80209
+ * @returns {GiftRedemptionCodeGenerated} GiftRedemptionCodeGenerated instance
80210
+ */
80211
+ GiftRedemptionCodeGenerated.create = function create(properties) {
80212
+ return new GiftRedemptionCodeGenerated(properties);
80213
+ };
80214
+
80215
+ /**
80216
+ * Encodes the specified GiftRedemptionCodeGenerated message. Does not implicitly {@link GiftRedemptionCodeGenerated.verify|verify} messages.
80217
+ * @function encode
80218
+ * @memberof GiftRedemptionCodeGenerated
80219
+ * @static
80220
+ * @param {IGiftRedemptionCodeGenerated} message GiftRedemptionCodeGenerated message or plain object to encode
80221
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80222
+ * @returns {$protobuf.Writer} Writer
80223
+ */
80224
+ GiftRedemptionCodeGenerated.encode = function encode(message, writer) {
80225
+ if (!writer)
80226
+ writer = $Writer.create();
80227
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
80228
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
80229
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
80230
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.giftRedemptionCode);
80231
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
80232
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.giftPurchaseId);
80233
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
80234
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.timestamp);
80235
+ return writer;
80236
+ };
80237
+
80238
+ /**
80239
+ * Encodes the specified GiftRedemptionCodeGenerated message, length delimited. Does not implicitly {@link GiftRedemptionCodeGenerated.verify|verify} messages.
80240
+ * @function encodeDelimited
80241
+ * @memberof GiftRedemptionCodeGenerated
80242
+ * @static
80243
+ * @param {IGiftRedemptionCodeGenerated} message GiftRedemptionCodeGenerated message or plain object to encode
80244
+ * @param {$protobuf.Writer} [writer] Writer to encode to
80245
+ * @returns {$protobuf.Writer} Writer
80246
+ */
80247
+ GiftRedemptionCodeGenerated.encodeDelimited = function encodeDelimited(message, writer) {
80248
+ return this.encode(message, writer).ldelim();
80249
+ };
80250
+
80251
+ /**
80252
+ * Decodes a GiftRedemptionCodeGenerated message from the specified reader or buffer.
80253
+ * @function decode
80254
+ * @memberof GiftRedemptionCodeGenerated
80255
+ * @static
80256
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80257
+ * @param {number} [length] Message length if known beforehand
80258
+ * @returns {GiftRedemptionCodeGenerated} GiftRedemptionCodeGenerated
80259
+ * @throws {Error} If the payload is not a reader or valid buffer
80260
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80261
+ */
80262
+ GiftRedemptionCodeGenerated.decode = function decode(reader, length) {
80263
+ if (!(reader instanceof $Reader))
80264
+ reader = $Reader.create(reader);
80265
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GiftRedemptionCodeGenerated();
80266
+ while (reader.pos < end) {
80267
+ var tag = reader.uint32();
80268
+ switch (tag >>> 3) {
80269
+ case 1:
80270
+ message.hsUserId = reader.string();
80271
+ break;
80272
+ case 2:
80273
+ message.giftRedemptionCode = reader.string();
80274
+ break;
80275
+ case 3:
80276
+ message.giftPurchaseId = reader.string();
80277
+ break;
80278
+ case 4:
80279
+ message.timestamp = reader.uint64();
80280
+ break;
80281
+ default:
80282
+ reader.skipType(tag & 7);
80283
+ break;
80284
+ }
80285
+ }
80286
+ return message;
80287
+ };
80288
+
80289
+ /**
80290
+ * Decodes a GiftRedemptionCodeGenerated message from the specified reader or buffer, length delimited.
80291
+ * @function decodeDelimited
80292
+ * @memberof GiftRedemptionCodeGenerated
80293
+ * @static
80294
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
80295
+ * @returns {GiftRedemptionCodeGenerated} GiftRedemptionCodeGenerated
80296
+ * @throws {Error} If the payload is not a reader or valid buffer
80297
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
80298
+ */
80299
+ GiftRedemptionCodeGenerated.decodeDelimited = function decodeDelimited(reader) {
80300
+ if (!(reader instanceof $Reader))
80301
+ reader = new $Reader(reader);
80302
+ return this.decode(reader, reader.uint32());
80303
+ };
80304
+
80305
+ /**
80306
+ * Verifies a GiftRedemptionCodeGenerated message.
80307
+ * @function verify
80308
+ * @memberof GiftRedemptionCodeGenerated
80309
+ * @static
80310
+ * @param {Object.<string,*>} message Plain object to verify
80311
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
80312
+ */
80313
+ GiftRedemptionCodeGenerated.verify = function verify(message) {
80314
+ if (typeof message !== "object" || message === null)
80315
+ return "object expected";
80316
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
80317
+ if (!$util.isString(message.hsUserId))
80318
+ return "hsUserId: string expected";
80319
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
80320
+ if (!$util.isString(message.giftRedemptionCode))
80321
+ return "giftRedemptionCode: string expected";
80322
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
80323
+ if (!$util.isString(message.giftPurchaseId))
80324
+ return "giftPurchaseId: string expected";
80325
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
80326
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
80327
+ return "timestamp: integer|Long expected";
80328
+ return null;
80329
+ };
80330
+
80331
+ /**
80332
+ * Creates a GiftRedemptionCodeGenerated message from a plain object. Also converts values to their respective internal types.
80333
+ * @function fromObject
80334
+ * @memberof GiftRedemptionCodeGenerated
80335
+ * @static
80336
+ * @param {Object.<string,*>} object Plain object
80337
+ * @returns {GiftRedemptionCodeGenerated} GiftRedemptionCodeGenerated
80338
+ */
80339
+ GiftRedemptionCodeGenerated.fromObject = function fromObject(object) {
80340
+ if (object instanceof $root.GiftRedemptionCodeGenerated)
80341
+ return object;
80342
+ var message = new $root.GiftRedemptionCodeGenerated();
80343
+ if (object.hsUserId != null)
80344
+ message.hsUserId = String(object.hsUserId);
80345
+ if (object.giftRedemptionCode != null)
80346
+ message.giftRedemptionCode = String(object.giftRedemptionCode);
80347
+ if (object.giftPurchaseId != null)
80348
+ message.giftPurchaseId = String(object.giftPurchaseId);
80349
+ if (object.timestamp != null)
80350
+ if ($util.Long)
80351
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
80352
+ else if (typeof object.timestamp === "string")
80353
+ message.timestamp = parseInt(object.timestamp, 10);
80354
+ else if (typeof object.timestamp === "number")
80355
+ message.timestamp = object.timestamp;
80356
+ else if (typeof object.timestamp === "object")
80357
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
80358
+ return message;
80359
+ };
80360
+
80361
+ /**
80362
+ * Creates a plain object from a GiftRedemptionCodeGenerated message. Also converts values to other types if specified.
80363
+ * @function toObject
80364
+ * @memberof GiftRedemptionCodeGenerated
80365
+ * @static
80366
+ * @param {GiftRedemptionCodeGenerated} message GiftRedemptionCodeGenerated
80367
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
80368
+ * @returns {Object.<string,*>} Plain object
80369
+ */
80370
+ GiftRedemptionCodeGenerated.toObject = function toObject(message, options) {
80371
+ if (!options)
80372
+ options = {};
80373
+ var object = {};
80374
+ if (options.defaults) {
80375
+ object.hsUserId = "";
80376
+ object.giftRedemptionCode = "";
80377
+ object.giftPurchaseId = "";
80378
+ if ($util.Long) {
80379
+ var long = new $util.Long(0, 0, true);
80380
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
80381
+ } else
80382
+ object.timestamp = options.longs === String ? "0" : 0;
80383
+ }
80384
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
80385
+ object.hsUserId = message.hsUserId;
80386
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
80387
+ object.giftRedemptionCode = message.giftRedemptionCode;
80388
+ if (message.giftPurchaseId != null && message.hasOwnProperty("giftPurchaseId"))
80389
+ object.giftPurchaseId = message.giftPurchaseId;
80390
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
80391
+ if (typeof message.timestamp === "number")
80392
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
80393
+ else
80394
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
80395
+ return object;
80396
+ };
80397
+
80398
+ /**
80399
+ * Converts this GiftRedemptionCodeGenerated to JSON.
80400
+ * @function toJSON
80401
+ * @memberof GiftRedemptionCodeGenerated
80402
+ * @instance
80403
+ * @returns {Object.<string,*>} JSON object
80404
+ */
80405
+ GiftRedemptionCodeGenerated.prototype.toJSON = function toJSON() {
80406
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
80407
+ };
80408
+
80409
+ return GiftRedemptionCodeGenerated;
80410
+ })();
80411
+
80122
80412
  $root.GoogleSubscriptionPurchased = (function() {
80123
80413
 
80124
80414
  /**
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.280.0"
19
+ "version": "1.281.0"
20
20
  }