@headspace/protos-events 1.269.0 → 1.271.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
@@ -27719,6 +27719,9 @@ export interface IGiftEmailScheduled {
27719
27719
 
27720
27720
  /** GiftEmailScheduled timestamp */
27721
27721
  timestamp?: (number|Long|null);
27722
+
27723
+ /** GiftEmailScheduled giftRedemptionCode */
27724
+ giftRedemptionCode?: (string|null);
27722
27725
  }
27723
27726
 
27724
27727
  /** Represents a GiftEmailScheduled. */
@@ -27754,6 +27757,9 @@ export class GiftEmailScheduled implements IGiftEmailScheduled {
27754
27757
  /** GiftEmailScheduled timestamp. */
27755
27758
  public timestamp: (number|Long);
27756
27759
 
27760
+ /** GiftEmailScheduled giftRedemptionCode. */
27761
+ public giftRedemptionCode: string;
27762
+
27757
27763
  /**
27758
27764
  * Creates a new GiftEmailScheduled instance using the specified properties.
27759
27765
  * @param [properties] Properties to set
@@ -27825,6 +27831,126 @@ export class GiftEmailScheduled implements IGiftEmailScheduled {
27825
27831
  public toJSON(): { [k: string]: any };
27826
27832
  }
27827
27833
 
27834
+ /** Properties of a GiftPurchased. */
27835
+ export interface IGiftPurchased {
27836
+
27837
+ /** GiftPurchased hsUserId */
27838
+ hsUserId?: (string|null);
27839
+
27840
+ /** GiftPurchased giftRecipientEmail */
27841
+ giftRecipientEmail?: (string|null);
27842
+
27843
+ /** GiftPurchased giftRecipientFirstName */
27844
+ giftRecipientFirstName?: (string|null);
27845
+
27846
+ /** GiftPurchased giftRecipientLastName */
27847
+ giftRecipientLastName?: (string|null);
27848
+
27849
+ /** GiftPurchased giftNumMonths */
27850
+ giftNumMonths?: (number|null);
27851
+
27852
+ /** GiftPurchased purchasedOn */
27853
+ purchasedOn?: (number|Long|null);
27854
+ }
27855
+
27856
+ /** Represents a GiftPurchased. */
27857
+ export class GiftPurchased implements IGiftPurchased {
27858
+
27859
+ /**
27860
+ * Constructs a new GiftPurchased.
27861
+ * @param [properties] Properties to set
27862
+ */
27863
+ constructor(properties?: IGiftPurchased);
27864
+
27865
+ /** GiftPurchased hsUserId. */
27866
+ public hsUserId: string;
27867
+
27868
+ /** GiftPurchased giftRecipientEmail. */
27869
+ public giftRecipientEmail: string;
27870
+
27871
+ /** GiftPurchased giftRecipientFirstName. */
27872
+ public giftRecipientFirstName: string;
27873
+
27874
+ /** GiftPurchased giftRecipientLastName. */
27875
+ public giftRecipientLastName: string;
27876
+
27877
+ /** GiftPurchased giftNumMonths. */
27878
+ public giftNumMonths: number;
27879
+
27880
+ /** GiftPurchased purchasedOn. */
27881
+ public purchasedOn: (number|Long);
27882
+
27883
+ /**
27884
+ * Creates a new GiftPurchased instance using the specified properties.
27885
+ * @param [properties] Properties to set
27886
+ * @returns GiftPurchased instance
27887
+ */
27888
+ public static create(properties?: IGiftPurchased): GiftPurchased;
27889
+
27890
+ /**
27891
+ * Encodes the specified GiftPurchased message. Does not implicitly {@link GiftPurchased.verify|verify} messages.
27892
+ * @param message GiftPurchased message or plain object to encode
27893
+ * @param [writer] Writer to encode to
27894
+ * @returns Writer
27895
+ */
27896
+ public static encode(message: IGiftPurchased, writer?: $protobuf.Writer): $protobuf.Writer;
27897
+
27898
+ /**
27899
+ * Encodes the specified GiftPurchased message, length delimited. Does not implicitly {@link GiftPurchased.verify|verify} messages.
27900
+ * @param message GiftPurchased message or plain object to encode
27901
+ * @param [writer] Writer to encode to
27902
+ * @returns Writer
27903
+ */
27904
+ public static encodeDelimited(message: IGiftPurchased, writer?: $protobuf.Writer): $protobuf.Writer;
27905
+
27906
+ /**
27907
+ * Decodes a GiftPurchased message from the specified reader or buffer.
27908
+ * @param reader Reader or buffer to decode from
27909
+ * @param [length] Message length if known beforehand
27910
+ * @returns GiftPurchased
27911
+ * @throws {Error} If the payload is not a reader or valid buffer
27912
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27913
+ */
27914
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GiftPurchased;
27915
+
27916
+ /**
27917
+ * Decodes a GiftPurchased message from the specified reader or buffer, length delimited.
27918
+ * @param reader Reader or buffer to decode from
27919
+ * @returns GiftPurchased
27920
+ * @throws {Error} If the payload is not a reader or valid buffer
27921
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
27922
+ */
27923
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GiftPurchased;
27924
+
27925
+ /**
27926
+ * Verifies a GiftPurchased message.
27927
+ * @param message Plain object to verify
27928
+ * @returns `null` if valid, otherwise the reason why it is not
27929
+ */
27930
+ public static verify(message: { [k: string]: any }): (string|null);
27931
+
27932
+ /**
27933
+ * Creates a GiftPurchased message from a plain object. Also converts values to their respective internal types.
27934
+ * @param object Plain object
27935
+ * @returns GiftPurchased
27936
+ */
27937
+ public static fromObject(object: { [k: string]: any }): GiftPurchased;
27938
+
27939
+ /**
27940
+ * Creates a plain object from a GiftPurchased message. Also converts values to other types if specified.
27941
+ * @param message GiftPurchased
27942
+ * @param [options] Conversion options
27943
+ * @returns Plain object
27944
+ */
27945
+ public static toObject(message: GiftPurchased, options?: $protobuf.IConversionOptions): { [k: string]: any };
27946
+
27947
+ /**
27948
+ * Converts this GiftPurchased to JSON.
27949
+ * @returns JSON object
27950
+ */
27951
+ public toJSON(): { [k: string]: any };
27952
+ }
27953
+
27828
27954
  /** Properties of a GoogleSubscriptionPurchased. */
27829
27955
  export interface IGoogleSubscriptionPurchased {
27830
27956
 
package/lib/index.js CHANGED
@@ -75841,6 +75841,7 @@ $root.GiftEmailScheduled = (function() {
75841
75841
  * @property {string|null} [giftTemplateId] GiftEmailScheduled giftTemplateId
75842
75842
  * @property {number|null} [giftNumMonths] GiftEmailScheduled giftNumMonths
75843
75843
  * @property {number|Long|null} [timestamp] GiftEmailScheduled timestamp
75844
+ * @property {string|null} [giftRedemptionCode] GiftEmailScheduled giftRedemptionCode
75844
75845
  */
75845
75846
 
75846
75847
  /**
@@ -75922,6 +75923,14 @@ $root.GiftEmailScheduled = (function() {
75922
75923
  */
75923
75924
  GiftEmailScheduled.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
75924
75925
 
75926
+ /**
75927
+ * GiftEmailScheduled giftRedemptionCode.
75928
+ * @member {string} giftRedemptionCode
75929
+ * @memberof GiftEmailScheduled
75930
+ * @instance
75931
+ */
75932
+ GiftEmailScheduled.prototype.giftRedemptionCode = "";
75933
+
75925
75934
  /**
75926
75935
  * Creates a new GiftEmailScheduled instance using the specified properties.
75927
75936
  * @function create
@@ -75962,6 +75971,8 @@ $root.GiftEmailScheduled = (function() {
75962
75971
  writer.uint32(/* id 7, wireType 0 =*/56).int32(message.giftNumMonths);
75963
75972
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
75964
75973
  writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.timestamp);
75974
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
75975
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.giftRedemptionCode);
75965
75976
  return writer;
75966
75977
  };
75967
75978
 
@@ -76020,6 +76031,9 @@ $root.GiftEmailScheduled = (function() {
76020
76031
  case 8:
76021
76032
  message.timestamp = reader.uint64();
76022
76033
  break;
76034
+ case 9:
76035
+ message.giftRedemptionCode = reader.string();
76036
+ break;
76023
76037
  default:
76024
76038
  reader.skipType(tag & 7);
76025
76039
  break;
@@ -76079,6 +76093,9 @@ $root.GiftEmailScheduled = (function() {
76079
76093
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
76080
76094
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
76081
76095
  return "timestamp: integer|Long expected";
76096
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
76097
+ if (!$util.isString(message.giftRedemptionCode))
76098
+ return "giftRedemptionCode: string expected";
76082
76099
  return null;
76083
76100
  };
76084
76101
 
@@ -76117,6 +76134,8 @@ $root.GiftEmailScheduled = (function() {
76117
76134
  message.timestamp = object.timestamp;
76118
76135
  else if (typeof object.timestamp === "object")
76119
76136
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
76137
+ if (object.giftRedemptionCode != null)
76138
+ message.giftRedemptionCode = String(object.giftRedemptionCode);
76120
76139
  return message;
76121
76140
  };
76122
76141
 
@@ -76146,6 +76165,7 @@ $root.GiftEmailScheduled = (function() {
76146
76165
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
76147
76166
  } else
76148
76167
  object.timestamp = options.longs === String ? "0" : 0;
76168
+ object.giftRedemptionCode = "";
76149
76169
  }
76150
76170
  if (message.giftPurchaserHsUserId != null && message.hasOwnProperty("giftPurchaserHsUserId"))
76151
76171
  object.giftPurchaserHsUserId = message.giftPurchaserHsUserId;
@@ -76166,6 +76186,8 @@ $root.GiftEmailScheduled = (function() {
76166
76186
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
76167
76187
  else
76168
76188
  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;
76189
+ if (message.giftRedemptionCode != null && message.hasOwnProperty("giftRedemptionCode"))
76190
+ object.giftRedemptionCode = message.giftRedemptionCode;
76169
76191
  return object;
76170
76192
  };
76171
76193
 
@@ -76183,6 +76205,318 @@ $root.GiftEmailScheduled = (function() {
76183
76205
  return GiftEmailScheduled;
76184
76206
  })();
76185
76207
 
76208
+ $root.GiftPurchased = (function() {
76209
+
76210
+ /**
76211
+ * Properties of a GiftPurchased.
76212
+ * @exports IGiftPurchased
76213
+ * @interface IGiftPurchased
76214
+ * @property {string|null} [hsUserId] GiftPurchased hsUserId
76215
+ * @property {string|null} [giftRecipientEmail] GiftPurchased giftRecipientEmail
76216
+ * @property {string|null} [giftRecipientFirstName] GiftPurchased giftRecipientFirstName
76217
+ * @property {string|null} [giftRecipientLastName] GiftPurchased giftRecipientLastName
76218
+ * @property {number|null} [giftNumMonths] GiftPurchased giftNumMonths
76219
+ * @property {number|Long|null} [purchasedOn] GiftPurchased purchasedOn
76220
+ */
76221
+
76222
+ /**
76223
+ * Constructs a new GiftPurchased.
76224
+ * @exports GiftPurchased
76225
+ * @classdesc Represents a GiftPurchased.
76226
+ * @implements IGiftPurchased
76227
+ * @constructor
76228
+ * @param {IGiftPurchased=} [properties] Properties to set
76229
+ */
76230
+ function GiftPurchased(properties) {
76231
+ if (properties)
76232
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
76233
+ if (properties[keys[i]] != null)
76234
+ this[keys[i]] = properties[keys[i]];
76235
+ }
76236
+
76237
+ /**
76238
+ * GiftPurchased hsUserId.
76239
+ * @member {string} hsUserId
76240
+ * @memberof GiftPurchased
76241
+ * @instance
76242
+ */
76243
+ GiftPurchased.prototype.hsUserId = "";
76244
+
76245
+ /**
76246
+ * GiftPurchased giftRecipientEmail.
76247
+ * @member {string} giftRecipientEmail
76248
+ * @memberof GiftPurchased
76249
+ * @instance
76250
+ */
76251
+ GiftPurchased.prototype.giftRecipientEmail = "";
76252
+
76253
+ /**
76254
+ * GiftPurchased giftRecipientFirstName.
76255
+ * @member {string} giftRecipientFirstName
76256
+ * @memberof GiftPurchased
76257
+ * @instance
76258
+ */
76259
+ GiftPurchased.prototype.giftRecipientFirstName = "";
76260
+
76261
+ /**
76262
+ * GiftPurchased giftRecipientLastName.
76263
+ * @member {string} giftRecipientLastName
76264
+ * @memberof GiftPurchased
76265
+ * @instance
76266
+ */
76267
+ GiftPurchased.prototype.giftRecipientLastName = "";
76268
+
76269
+ /**
76270
+ * GiftPurchased giftNumMonths.
76271
+ * @member {number} giftNumMonths
76272
+ * @memberof GiftPurchased
76273
+ * @instance
76274
+ */
76275
+ GiftPurchased.prototype.giftNumMonths = 0;
76276
+
76277
+ /**
76278
+ * GiftPurchased purchasedOn.
76279
+ * @member {number|Long} purchasedOn
76280
+ * @memberof GiftPurchased
76281
+ * @instance
76282
+ */
76283
+ GiftPurchased.prototype.purchasedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
76284
+
76285
+ /**
76286
+ * Creates a new GiftPurchased instance using the specified properties.
76287
+ * @function create
76288
+ * @memberof GiftPurchased
76289
+ * @static
76290
+ * @param {IGiftPurchased=} [properties] Properties to set
76291
+ * @returns {GiftPurchased} GiftPurchased instance
76292
+ */
76293
+ GiftPurchased.create = function create(properties) {
76294
+ return new GiftPurchased(properties);
76295
+ };
76296
+
76297
+ /**
76298
+ * Encodes the specified GiftPurchased message. Does not implicitly {@link GiftPurchased.verify|verify} messages.
76299
+ * @function encode
76300
+ * @memberof GiftPurchased
76301
+ * @static
76302
+ * @param {IGiftPurchased} message GiftPurchased message or plain object to encode
76303
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76304
+ * @returns {$protobuf.Writer} Writer
76305
+ */
76306
+ GiftPurchased.encode = function encode(message, writer) {
76307
+ if (!writer)
76308
+ writer = $Writer.create();
76309
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
76310
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsUserId);
76311
+ if (message.giftRecipientEmail != null && message.hasOwnProperty("giftRecipientEmail"))
76312
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.giftRecipientEmail);
76313
+ if (message.giftRecipientFirstName != null && message.hasOwnProperty("giftRecipientFirstName"))
76314
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.giftRecipientFirstName);
76315
+ if (message.giftRecipientLastName != null && message.hasOwnProperty("giftRecipientLastName"))
76316
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.giftRecipientLastName);
76317
+ if (message.giftNumMonths != null && message.hasOwnProperty("giftNumMonths"))
76318
+ writer.uint32(/* id 5, wireType 0 =*/40).int32(message.giftNumMonths);
76319
+ if (message.purchasedOn != null && message.hasOwnProperty("purchasedOn"))
76320
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.purchasedOn);
76321
+ return writer;
76322
+ };
76323
+
76324
+ /**
76325
+ * Encodes the specified GiftPurchased message, length delimited. Does not implicitly {@link GiftPurchased.verify|verify} messages.
76326
+ * @function encodeDelimited
76327
+ * @memberof GiftPurchased
76328
+ * @static
76329
+ * @param {IGiftPurchased} message GiftPurchased message or plain object to encode
76330
+ * @param {$protobuf.Writer} [writer] Writer to encode to
76331
+ * @returns {$protobuf.Writer} Writer
76332
+ */
76333
+ GiftPurchased.encodeDelimited = function encodeDelimited(message, writer) {
76334
+ return this.encode(message, writer).ldelim();
76335
+ };
76336
+
76337
+ /**
76338
+ * Decodes a GiftPurchased message from the specified reader or buffer.
76339
+ * @function decode
76340
+ * @memberof GiftPurchased
76341
+ * @static
76342
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76343
+ * @param {number} [length] Message length if known beforehand
76344
+ * @returns {GiftPurchased} GiftPurchased
76345
+ * @throws {Error} If the payload is not a reader or valid buffer
76346
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76347
+ */
76348
+ GiftPurchased.decode = function decode(reader, length) {
76349
+ if (!(reader instanceof $Reader))
76350
+ reader = $Reader.create(reader);
76351
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.GiftPurchased();
76352
+ while (reader.pos < end) {
76353
+ var tag = reader.uint32();
76354
+ switch (tag >>> 3) {
76355
+ case 1:
76356
+ message.hsUserId = reader.string();
76357
+ break;
76358
+ case 2:
76359
+ message.giftRecipientEmail = reader.string();
76360
+ break;
76361
+ case 3:
76362
+ message.giftRecipientFirstName = reader.string();
76363
+ break;
76364
+ case 4:
76365
+ message.giftRecipientLastName = reader.string();
76366
+ break;
76367
+ case 5:
76368
+ message.giftNumMonths = reader.int32();
76369
+ break;
76370
+ case 6:
76371
+ message.purchasedOn = reader.uint64();
76372
+ break;
76373
+ default:
76374
+ reader.skipType(tag & 7);
76375
+ break;
76376
+ }
76377
+ }
76378
+ return message;
76379
+ };
76380
+
76381
+ /**
76382
+ * Decodes a GiftPurchased message from the specified reader or buffer, length delimited.
76383
+ * @function decodeDelimited
76384
+ * @memberof GiftPurchased
76385
+ * @static
76386
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
76387
+ * @returns {GiftPurchased} GiftPurchased
76388
+ * @throws {Error} If the payload is not a reader or valid buffer
76389
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
76390
+ */
76391
+ GiftPurchased.decodeDelimited = function decodeDelimited(reader) {
76392
+ if (!(reader instanceof $Reader))
76393
+ reader = new $Reader(reader);
76394
+ return this.decode(reader, reader.uint32());
76395
+ };
76396
+
76397
+ /**
76398
+ * Verifies a GiftPurchased message.
76399
+ * @function verify
76400
+ * @memberof GiftPurchased
76401
+ * @static
76402
+ * @param {Object.<string,*>} message Plain object to verify
76403
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
76404
+ */
76405
+ GiftPurchased.verify = function verify(message) {
76406
+ if (typeof message !== "object" || message === null)
76407
+ return "object expected";
76408
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
76409
+ if (!$util.isString(message.hsUserId))
76410
+ return "hsUserId: string expected";
76411
+ if (message.giftRecipientEmail != null && message.hasOwnProperty("giftRecipientEmail"))
76412
+ if (!$util.isString(message.giftRecipientEmail))
76413
+ return "giftRecipientEmail: string expected";
76414
+ if (message.giftRecipientFirstName != null && message.hasOwnProperty("giftRecipientFirstName"))
76415
+ if (!$util.isString(message.giftRecipientFirstName))
76416
+ return "giftRecipientFirstName: string expected";
76417
+ if (message.giftRecipientLastName != null && message.hasOwnProperty("giftRecipientLastName"))
76418
+ if (!$util.isString(message.giftRecipientLastName))
76419
+ return "giftRecipientLastName: string expected";
76420
+ if (message.giftNumMonths != null && message.hasOwnProperty("giftNumMonths"))
76421
+ if (!$util.isInteger(message.giftNumMonths))
76422
+ return "giftNumMonths: integer expected";
76423
+ if (message.purchasedOn != null && message.hasOwnProperty("purchasedOn"))
76424
+ if (!$util.isInteger(message.purchasedOn) && !(message.purchasedOn && $util.isInteger(message.purchasedOn.low) && $util.isInteger(message.purchasedOn.high)))
76425
+ return "purchasedOn: integer|Long expected";
76426
+ return null;
76427
+ };
76428
+
76429
+ /**
76430
+ * Creates a GiftPurchased message from a plain object. Also converts values to their respective internal types.
76431
+ * @function fromObject
76432
+ * @memberof GiftPurchased
76433
+ * @static
76434
+ * @param {Object.<string,*>} object Plain object
76435
+ * @returns {GiftPurchased} GiftPurchased
76436
+ */
76437
+ GiftPurchased.fromObject = function fromObject(object) {
76438
+ if (object instanceof $root.GiftPurchased)
76439
+ return object;
76440
+ var message = new $root.GiftPurchased();
76441
+ if (object.hsUserId != null)
76442
+ message.hsUserId = String(object.hsUserId);
76443
+ if (object.giftRecipientEmail != null)
76444
+ message.giftRecipientEmail = String(object.giftRecipientEmail);
76445
+ if (object.giftRecipientFirstName != null)
76446
+ message.giftRecipientFirstName = String(object.giftRecipientFirstName);
76447
+ if (object.giftRecipientLastName != null)
76448
+ message.giftRecipientLastName = String(object.giftRecipientLastName);
76449
+ if (object.giftNumMonths != null)
76450
+ message.giftNumMonths = object.giftNumMonths | 0;
76451
+ if (object.purchasedOn != null)
76452
+ if ($util.Long)
76453
+ (message.purchasedOn = $util.Long.fromValue(object.purchasedOn)).unsigned = true;
76454
+ else if (typeof object.purchasedOn === "string")
76455
+ message.purchasedOn = parseInt(object.purchasedOn, 10);
76456
+ else if (typeof object.purchasedOn === "number")
76457
+ message.purchasedOn = object.purchasedOn;
76458
+ else if (typeof object.purchasedOn === "object")
76459
+ message.purchasedOn = new $util.LongBits(object.purchasedOn.low >>> 0, object.purchasedOn.high >>> 0).toNumber(true);
76460
+ return message;
76461
+ };
76462
+
76463
+ /**
76464
+ * Creates a plain object from a GiftPurchased message. Also converts values to other types if specified.
76465
+ * @function toObject
76466
+ * @memberof GiftPurchased
76467
+ * @static
76468
+ * @param {GiftPurchased} message GiftPurchased
76469
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
76470
+ * @returns {Object.<string,*>} Plain object
76471
+ */
76472
+ GiftPurchased.toObject = function toObject(message, options) {
76473
+ if (!options)
76474
+ options = {};
76475
+ var object = {};
76476
+ if (options.defaults) {
76477
+ object.hsUserId = "";
76478
+ object.giftRecipientEmail = "";
76479
+ object.giftRecipientFirstName = "";
76480
+ object.giftRecipientLastName = "";
76481
+ object.giftNumMonths = 0;
76482
+ if ($util.Long) {
76483
+ var long = new $util.Long(0, 0, true);
76484
+ object.purchasedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
76485
+ } else
76486
+ object.purchasedOn = options.longs === String ? "0" : 0;
76487
+ }
76488
+ if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
76489
+ object.hsUserId = message.hsUserId;
76490
+ if (message.giftRecipientEmail != null && message.hasOwnProperty("giftRecipientEmail"))
76491
+ object.giftRecipientEmail = message.giftRecipientEmail;
76492
+ if (message.giftRecipientFirstName != null && message.hasOwnProperty("giftRecipientFirstName"))
76493
+ object.giftRecipientFirstName = message.giftRecipientFirstName;
76494
+ if (message.giftRecipientLastName != null && message.hasOwnProperty("giftRecipientLastName"))
76495
+ object.giftRecipientLastName = message.giftRecipientLastName;
76496
+ if (message.giftNumMonths != null && message.hasOwnProperty("giftNumMonths"))
76497
+ object.giftNumMonths = message.giftNumMonths;
76498
+ if (message.purchasedOn != null && message.hasOwnProperty("purchasedOn"))
76499
+ if (typeof message.purchasedOn === "number")
76500
+ object.purchasedOn = options.longs === String ? String(message.purchasedOn) : message.purchasedOn;
76501
+ else
76502
+ 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;
76503
+ return object;
76504
+ };
76505
+
76506
+ /**
76507
+ * Converts this GiftPurchased to JSON.
76508
+ * @function toJSON
76509
+ * @memberof GiftPurchased
76510
+ * @instance
76511
+ * @returns {Object.<string,*>} JSON object
76512
+ */
76513
+ GiftPurchased.prototype.toJSON = function toJSON() {
76514
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
76515
+ };
76516
+
76517
+ return GiftPurchased;
76518
+ })();
76519
+
76186
76520
  $root.GoogleSubscriptionPurchased = (function() {
76187
76521
 
76188
76522
  /**
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.269.0"
19
+ "version": "1.271.0"
20
20
  }