@headspace/protos-events 1.722.0 → 1.724.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
@@ -23229,6 +23229,9 @@ export interface IContentfulFeaturedContentCreated {
23229
23229
 
23230
23230
  /** ContentfulFeaturedContentCreated createdAt */
23231
23231
  createdAt?: (number|Long|null);
23232
+
23233
+ /** ContentfulFeaturedContentCreated localizedContent */
23234
+ localizedContent?: ({ [k: string]: contentful.ISlugReferences }|null);
23232
23235
  }
23233
23236
 
23234
23237
  /** Represents a ContentfulFeaturedContentCreated. */
@@ -23255,6 +23258,9 @@ export class ContentfulFeaturedContentCreated implements IContentfulFeaturedCont
23255
23258
  /** ContentfulFeaturedContentCreated createdAt. */
23256
23259
  public createdAt: (number|Long);
23257
23260
 
23261
+ /** ContentfulFeaturedContentCreated localizedContent. */
23262
+ public localizedContent: { [k: string]: contentful.ISlugReferences };
23263
+
23258
23264
  /**
23259
23265
  * Creates a new ContentfulFeaturedContentCreated instance using the specified properties.
23260
23266
  * @param [properties] Properties to set
@@ -23343,6 +23349,9 @@ export interface IContentfulFeaturedContentUpdated {
23343
23349
 
23344
23350
  /** ContentfulFeaturedContentUpdated updatedAt */
23345
23351
  updatedAt?: (number|Long|null);
23352
+
23353
+ /** ContentfulFeaturedContentUpdated localizedContent */
23354
+ localizedContent?: ({ [k: string]: contentful.ISlugReferences }|null);
23346
23355
  }
23347
23356
 
23348
23357
  /** Represents a ContentfulFeaturedContentUpdated. */
@@ -23369,6 +23378,9 @@ export class ContentfulFeaturedContentUpdated implements IContentfulFeaturedCont
23369
23378
  /** ContentfulFeaturedContentUpdated updatedAt. */
23370
23379
  public updatedAt: (number|Long);
23371
23380
 
23381
+ /** ContentfulFeaturedContentUpdated localizedContent. */
23382
+ public localizedContent: { [k: string]: contentful.ISlugReferences };
23383
+
23372
23384
  /**
23373
23385
  * Creates a new ContentfulFeaturedContentUpdated instance using the specified properties.
23374
23386
  * @param [properties] Properties to set
@@ -40290,6 +40302,9 @@ export interface IGiftPurchased {
40290
40302
 
40291
40303
  /** GiftPurchased giftRecipientEmailSendOn */
40292
40304
  giftRecipientEmailSendOn?: (number|Long|null);
40305
+
40306
+ /** GiftPurchased paymentPlatform */
40307
+ paymentPlatform?: (gift.IGiftPaymentPlatform|null);
40293
40308
  }
40294
40309
 
40295
40310
  /** Represents a GiftPurchased. */
@@ -40334,6 +40349,9 @@ export class GiftPurchased implements IGiftPurchased {
40334
40349
  /** GiftPurchased giftRecipientEmailSendOn. */
40335
40350
  public giftRecipientEmailSendOn: (number|Long);
40336
40351
 
40352
+ /** GiftPurchased paymentPlatform. */
40353
+ public paymentPlatform?: (gift.IGiftPaymentPlatform|null);
40354
+
40337
40355
  /**
40338
40356
  * Creates a new GiftPurchased instance using the specified properties.
40339
40357
  * @param [properties] Properties to set
@@ -69346,6 +69364,108 @@ export namespace gift {
69346
69364
  GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE = 2,
69347
69365
  GIFT_PRODUCT_SKU_TAX_MODE_EXEMPT = 3
69348
69366
  }
69367
+
69368
+ /** GiftPaymentPlatformName enum. */
69369
+ enum GiftPaymentPlatformName {
69370
+ GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN = 0,
69371
+ GIFT_PAYMENT_PLATFORM_NAME_ZUORA = 1
69372
+ }
69373
+
69374
+ /** Properties of a GiftPaymentPlatform. */
69375
+ interface IGiftPaymentPlatform {
69376
+
69377
+ /** GiftPaymentPlatform name */
69378
+ name?: (gift.GiftPaymentPlatformName|null);
69379
+
69380
+ /** GiftPaymentPlatform externalId */
69381
+ externalId?: (string|null);
69382
+ }
69383
+
69384
+ /** Represents a GiftPaymentPlatform. */
69385
+ class GiftPaymentPlatform implements IGiftPaymentPlatform {
69386
+
69387
+ /**
69388
+ * Constructs a new GiftPaymentPlatform.
69389
+ * @param [properties] Properties to set
69390
+ */
69391
+ constructor(properties?: gift.IGiftPaymentPlatform);
69392
+
69393
+ /** GiftPaymentPlatform name. */
69394
+ public name: gift.GiftPaymentPlatformName;
69395
+
69396
+ /** GiftPaymentPlatform externalId. */
69397
+ public externalId: string;
69398
+
69399
+ /**
69400
+ * Creates a new GiftPaymentPlatform instance using the specified properties.
69401
+ * @param [properties] Properties to set
69402
+ * @returns GiftPaymentPlatform instance
69403
+ */
69404
+ public static create(properties?: gift.IGiftPaymentPlatform): gift.GiftPaymentPlatform;
69405
+
69406
+ /**
69407
+ * Encodes the specified GiftPaymentPlatform message. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
69408
+ * @param message GiftPaymentPlatform message or plain object to encode
69409
+ * @param [writer] Writer to encode to
69410
+ * @returns Writer
69411
+ */
69412
+ public static encode(message: gift.IGiftPaymentPlatform, writer?: $protobuf.Writer): $protobuf.Writer;
69413
+
69414
+ /**
69415
+ * Encodes the specified GiftPaymentPlatform message, length delimited. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
69416
+ * @param message GiftPaymentPlatform message or plain object to encode
69417
+ * @param [writer] Writer to encode to
69418
+ * @returns Writer
69419
+ */
69420
+ public static encodeDelimited(message: gift.IGiftPaymentPlatform, writer?: $protobuf.Writer): $protobuf.Writer;
69421
+
69422
+ /**
69423
+ * Decodes a GiftPaymentPlatform message from the specified reader or buffer.
69424
+ * @param reader Reader or buffer to decode from
69425
+ * @param [length] Message length if known beforehand
69426
+ * @returns GiftPaymentPlatform
69427
+ * @throws {Error} If the payload is not a reader or valid buffer
69428
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
69429
+ */
69430
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): gift.GiftPaymentPlatform;
69431
+
69432
+ /**
69433
+ * Decodes a GiftPaymentPlatform message from the specified reader or buffer, length delimited.
69434
+ * @param reader Reader or buffer to decode from
69435
+ * @returns GiftPaymentPlatform
69436
+ * @throws {Error} If the payload is not a reader or valid buffer
69437
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
69438
+ */
69439
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): gift.GiftPaymentPlatform;
69440
+
69441
+ /**
69442
+ * Verifies a GiftPaymentPlatform message.
69443
+ * @param message Plain object to verify
69444
+ * @returns `null` if valid, otherwise the reason why it is not
69445
+ */
69446
+ public static verify(message: { [k: string]: any }): (string|null);
69447
+
69448
+ /**
69449
+ * Creates a GiftPaymentPlatform message from a plain object. Also converts values to their respective internal types.
69450
+ * @param object Plain object
69451
+ * @returns GiftPaymentPlatform
69452
+ */
69453
+ public static fromObject(object: { [k: string]: any }): gift.GiftPaymentPlatform;
69454
+
69455
+ /**
69456
+ * Creates a plain object from a GiftPaymentPlatform message. Also converts values to other types if specified.
69457
+ * @param message GiftPaymentPlatform
69458
+ * @param [options] Conversion options
69459
+ * @returns Plain object
69460
+ */
69461
+ public static toObject(message: gift.GiftPaymentPlatform, options?: $protobuf.IConversionOptions): { [k: string]: any };
69462
+
69463
+ /**
69464
+ * Converts this GiftPaymentPlatform to JSON.
69465
+ * @returns JSON object
69466
+ */
69467
+ public toJSON(): { [k: string]: any };
69468
+ }
69349
69469
  }
69350
69470
 
69351
69471
  /** Properties of a GingerProviderProfileUpdateRequested. */
package/lib/index.js CHANGED
@@ -65697,6 +65697,7 @@ $root.ContentfulFeaturedContentCreated = (function() {
65697
65697
  * @property {string|null} [mode] ContentfulFeaturedContentCreated mode
65698
65698
  * @property {Array.<contentful.ISlugReference>|null} [content] ContentfulFeaturedContentCreated content
65699
65699
  * @property {number|Long|null} [createdAt] ContentfulFeaturedContentCreated createdAt
65700
+ * @property {Object.<string,contentful.ISlugReferences>|null} [localizedContent] ContentfulFeaturedContentCreated localizedContent
65700
65701
  */
65701
65702
 
65702
65703
  /**
@@ -65709,6 +65710,7 @@ $root.ContentfulFeaturedContentCreated = (function() {
65709
65710
  */
65710
65711
  function ContentfulFeaturedContentCreated(properties) {
65711
65712
  this.content = [];
65713
+ this.localizedContent = {};
65712
65714
  if (properties)
65713
65715
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
65714
65716
  if (properties[keys[i]] != null)
@@ -65755,6 +65757,14 @@ $root.ContentfulFeaturedContentCreated = (function() {
65755
65757
  */
65756
65758
  ContentfulFeaturedContentCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
65757
65759
 
65760
+ /**
65761
+ * ContentfulFeaturedContentCreated localizedContent.
65762
+ * @member {Object.<string,contentful.ISlugReferences>} localizedContent
65763
+ * @memberof ContentfulFeaturedContentCreated
65764
+ * @instance
65765
+ */
65766
+ ContentfulFeaturedContentCreated.prototype.localizedContent = $util.emptyObject;
65767
+
65758
65768
  /**
65759
65769
  * Creates a new ContentfulFeaturedContentCreated instance using the specified properties.
65760
65770
  * @function create
@@ -65790,6 +65800,11 @@ $root.ContentfulFeaturedContentCreated = (function() {
65790
65800
  $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
65791
65801
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
65792
65802
  writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
65803
+ if (message.localizedContent != null && message.hasOwnProperty("localizedContent"))
65804
+ for (var keys = Object.keys(message.localizedContent), i = 0; i < keys.length; ++i) {
65805
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
65806
+ $root.contentful.SlugReferences.encode(message.localizedContent[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
65807
+ }
65793
65808
  return writer;
65794
65809
  };
65795
65810
 
@@ -65820,7 +65835,7 @@ $root.ContentfulFeaturedContentCreated = (function() {
65820
65835
  ContentfulFeaturedContentCreated.decode = function decode(reader, length) {
65821
65836
  if (!(reader instanceof $Reader))
65822
65837
  reader = $Reader.create(reader);
65823
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentCreated();
65838
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentCreated(), key;
65824
65839
  while (reader.pos < end) {
65825
65840
  var tag = reader.uint32();
65826
65841
  switch (tag >>> 3) {
@@ -65841,6 +65856,14 @@ $root.ContentfulFeaturedContentCreated = (function() {
65841
65856
  case 5:
65842
65857
  message.createdAt = reader.uint64();
65843
65858
  break;
65859
+ case 6:
65860
+ reader.skip().pos++;
65861
+ if (message.localizedContent === $util.emptyObject)
65862
+ message.localizedContent = {};
65863
+ key = reader.string();
65864
+ reader.pos++;
65865
+ message.localizedContent[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
65866
+ break;
65844
65867
  default:
65845
65868
  reader.skipType(tag & 7);
65846
65869
  break;
@@ -65897,6 +65920,16 @@ $root.ContentfulFeaturedContentCreated = (function() {
65897
65920
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
65898
65921
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
65899
65922
  return "createdAt: integer|Long expected";
65923
+ if (message.localizedContent != null && message.hasOwnProperty("localizedContent")) {
65924
+ if (!$util.isObject(message.localizedContent))
65925
+ return "localizedContent: object expected";
65926
+ var key = Object.keys(message.localizedContent);
65927
+ for (var i = 0; i < key.length; ++i) {
65928
+ var error = $root.contentful.SlugReferences.verify(message.localizedContent[key[i]]);
65929
+ if (error)
65930
+ return "localizedContent." + error;
65931
+ }
65932
+ }
65900
65933
  return null;
65901
65934
  };
65902
65935
 
@@ -65937,6 +65970,16 @@ $root.ContentfulFeaturedContentCreated = (function() {
65937
65970
  message.createdAt = object.createdAt;
65938
65971
  else if (typeof object.createdAt === "object")
65939
65972
  message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
65973
+ if (object.localizedContent) {
65974
+ if (typeof object.localizedContent !== "object")
65975
+ throw TypeError(".ContentfulFeaturedContentCreated.localizedContent: object expected");
65976
+ message.localizedContent = {};
65977
+ for (var keys = Object.keys(object.localizedContent), i = 0; i < keys.length; ++i) {
65978
+ if (typeof object.localizedContent[keys[i]] !== "object")
65979
+ throw TypeError(".ContentfulFeaturedContentCreated.localizedContent: object expected");
65980
+ message.localizedContent[keys[i]] = $root.contentful.SlugReferences.fromObject(object.localizedContent[keys[i]]);
65981
+ }
65982
+ }
65940
65983
  return message;
65941
65984
  };
65942
65985
 
@@ -65955,6 +65998,8 @@ $root.ContentfulFeaturedContentCreated = (function() {
65955
65998
  var object = {};
65956
65999
  if (options.arrays || options.defaults)
65957
66000
  object.content = [];
66001
+ if (options.objects || options.defaults)
66002
+ object.localizedContent = {};
65958
66003
  if (options.defaults) {
65959
66004
  object.slug = "";
65960
66005
  object.featureType = "";
@@ -65981,6 +66026,12 @@ $root.ContentfulFeaturedContentCreated = (function() {
65981
66026
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
65982
66027
  else
65983
66028
  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;
66029
+ var keys2;
66030
+ if (message.localizedContent && (keys2 = Object.keys(message.localizedContent)).length) {
66031
+ object.localizedContent = {};
66032
+ for (var j = 0; j < keys2.length; ++j)
66033
+ object.localizedContent[keys2[j]] = $root.contentful.SlugReferences.toObject(message.localizedContent[keys2[j]], options);
66034
+ }
65984
66035
  return object;
65985
66036
  };
65986
66037
 
@@ -66009,6 +66060,7 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66009
66060
  * @property {string|null} [mode] ContentfulFeaturedContentUpdated mode
66010
66061
  * @property {Array.<contentful.ISlugReference>|null} [content] ContentfulFeaturedContentUpdated content
66011
66062
  * @property {number|Long|null} [updatedAt] ContentfulFeaturedContentUpdated updatedAt
66063
+ * @property {Object.<string,contentful.ISlugReferences>|null} [localizedContent] ContentfulFeaturedContentUpdated localizedContent
66012
66064
  */
66013
66065
 
66014
66066
  /**
@@ -66021,6 +66073,7 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66021
66073
  */
66022
66074
  function ContentfulFeaturedContentUpdated(properties) {
66023
66075
  this.content = [];
66076
+ this.localizedContent = {};
66024
66077
  if (properties)
66025
66078
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
66026
66079
  if (properties[keys[i]] != null)
@@ -66067,6 +66120,14 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66067
66120
  */
66068
66121
  ContentfulFeaturedContentUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
66069
66122
 
66123
+ /**
66124
+ * ContentfulFeaturedContentUpdated localizedContent.
66125
+ * @member {Object.<string,contentful.ISlugReferences>} localizedContent
66126
+ * @memberof ContentfulFeaturedContentUpdated
66127
+ * @instance
66128
+ */
66129
+ ContentfulFeaturedContentUpdated.prototype.localizedContent = $util.emptyObject;
66130
+
66070
66131
  /**
66071
66132
  * Creates a new ContentfulFeaturedContentUpdated instance using the specified properties.
66072
66133
  * @function create
@@ -66102,6 +66163,11 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66102
66163
  $root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
66103
66164
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
66104
66165
  writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
66166
+ if (message.localizedContent != null && message.hasOwnProperty("localizedContent"))
66167
+ for (var keys = Object.keys(message.localizedContent), i = 0; i < keys.length; ++i) {
66168
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
66169
+ $root.contentful.SlugReferences.encode(message.localizedContent[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
66170
+ }
66105
66171
  return writer;
66106
66172
  };
66107
66173
 
@@ -66132,7 +66198,7 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66132
66198
  ContentfulFeaturedContentUpdated.decode = function decode(reader, length) {
66133
66199
  if (!(reader instanceof $Reader))
66134
66200
  reader = $Reader.create(reader);
66135
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentUpdated();
66201
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentUpdated(), key;
66136
66202
  while (reader.pos < end) {
66137
66203
  var tag = reader.uint32();
66138
66204
  switch (tag >>> 3) {
@@ -66153,6 +66219,14 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66153
66219
  case 5:
66154
66220
  message.updatedAt = reader.uint64();
66155
66221
  break;
66222
+ case 6:
66223
+ reader.skip().pos++;
66224
+ if (message.localizedContent === $util.emptyObject)
66225
+ message.localizedContent = {};
66226
+ key = reader.string();
66227
+ reader.pos++;
66228
+ message.localizedContent[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
66229
+ break;
66156
66230
  default:
66157
66231
  reader.skipType(tag & 7);
66158
66232
  break;
@@ -66209,6 +66283,16 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66209
66283
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
66210
66284
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
66211
66285
  return "updatedAt: integer|Long expected";
66286
+ if (message.localizedContent != null && message.hasOwnProperty("localizedContent")) {
66287
+ if (!$util.isObject(message.localizedContent))
66288
+ return "localizedContent: object expected";
66289
+ var key = Object.keys(message.localizedContent);
66290
+ for (var i = 0; i < key.length; ++i) {
66291
+ var error = $root.contentful.SlugReferences.verify(message.localizedContent[key[i]]);
66292
+ if (error)
66293
+ return "localizedContent." + error;
66294
+ }
66295
+ }
66212
66296
  return null;
66213
66297
  };
66214
66298
 
@@ -66249,6 +66333,16 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66249
66333
  message.updatedAt = object.updatedAt;
66250
66334
  else if (typeof object.updatedAt === "object")
66251
66335
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
66336
+ if (object.localizedContent) {
66337
+ if (typeof object.localizedContent !== "object")
66338
+ throw TypeError(".ContentfulFeaturedContentUpdated.localizedContent: object expected");
66339
+ message.localizedContent = {};
66340
+ for (var keys = Object.keys(object.localizedContent), i = 0; i < keys.length; ++i) {
66341
+ if (typeof object.localizedContent[keys[i]] !== "object")
66342
+ throw TypeError(".ContentfulFeaturedContentUpdated.localizedContent: object expected");
66343
+ message.localizedContent[keys[i]] = $root.contentful.SlugReferences.fromObject(object.localizedContent[keys[i]]);
66344
+ }
66345
+ }
66252
66346
  return message;
66253
66347
  };
66254
66348
 
@@ -66267,6 +66361,8 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66267
66361
  var object = {};
66268
66362
  if (options.arrays || options.defaults)
66269
66363
  object.content = [];
66364
+ if (options.objects || options.defaults)
66365
+ object.localizedContent = {};
66270
66366
  if (options.defaults) {
66271
66367
  object.slug = "";
66272
66368
  object.featureType = "";
@@ -66293,6 +66389,12 @@ $root.ContentfulFeaturedContentUpdated = (function() {
66293
66389
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
66294
66390
  else
66295
66391
  object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
66392
+ var keys2;
66393
+ if (message.localizedContent && (keys2 = Object.keys(message.localizedContent)).length) {
66394
+ object.localizedContent = {};
66395
+ for (var j = 0; j < keys2.length; ++j)
66396
+ object.localizedContent[keys2[j]] = $root.contentful.SlugReferences.toObject(message.localizedContent[keys2[j]], options);
66397
+ }
66296
66398
  return object;
66297
66399
  };
66298
66400
 
@@ -114759,6 +114861,7 @@ $root.GiftPurchased = (function() {
114759
114861
  * @property {string|null} [productSkuSlug] GiftPurchased productSkuSlug
114760
114862
  * @property {gift.GiftProductSkuTaxMode|null} [productSkuTaxMode] GiftPurchased productSkuTaxMode
114761
114863
  * @property {number|Long|null} [giftRecipientEmailSendOn] GiftPurchased giftRecipientEmailSendOn
114864
+ * @property {gift.IGiftPaymentPlatform|null} [paymentPlatform] GiftPurchased paymentPlatform
114762
114865
  */
114763
114866
 
114764
114867
  /**
@@ -114864,6 +114967,14 @@ $root.GiftPurchased = (function() {
114864
114967
  */
114865
114968
  GiftPurchased.prototype.giftRecipientEmailSendOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
114866
114969
 
114970
+ /**
114971
+ * GiftPurchased paymentPlatform.
114972
+ * @member {gift.IGiftPaymentPlatform|null|undefined} paymentPlatform
114973
+ * @memberof GiftPurchased
114974
+ * @instance
114975
+ */
114976
+ GiftPurchased.prototype.paymentPlatform = null;
114977
+
114867
114978
  /**
114868
114979
  * Creates a new GiftPurchased instance using the specified properties.
114869
114980
  * @function create
@@ -114910,6 +115021,8 @@ $root.GiftPurchased = (function() {
114910
115021
  writer.uint32(/* id 10, wireType 0 =*/80).int32(message.productSkuTaxMode);
114911
115022
  if (message.giftRecipientEmailSendOn != null && message.hasOwnProperty("giftRecipientEmailSendOn"))
114912
115023
  writer.uint32(/* id 11, wireType 0 =*/88).uint64(message.giftRecipientEmailSendOn);
115024
+ if (message.paymentPlatform != null && message.hasOwnProperty("paymentPlatform"))
115025
+ $root.gift.GiftPaymentPlatform.encode(message.paymentPlatform, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
114913
115026
  return writer;
114914
115027
  };
114915
115028
 
@@ -114977,6 +115090,9 @@ $root.GiftPurchased = (function() {
114977
115090
  case 11:
114978
115091
  message.giftRecipientEmailSendOn = reader.uint64();
114979
115092
  break;
115093
+ case 12:
115094
+ message.paymentPlatform = $root.gift.GiftPaymentPlatform.decode(reader, reader.uint32());
115095
+ break;
114980
115096
  default:
114981
115097
  reader.skipType(tag & 7);
114982
115098
  break;
@@ -115052,6 +115168,11 @@ $root.GiftPurchased = (function() {
115052
115168
  if (message.giftRecipientEmailSendOn != null && message.hasOwnProperty("giftRecipientEmailSendOn"))
115053
115169
  if (!$util.isInteger(message.giftRecipientEmailSendOn) && !(message.giftRecipientEmailSendOn && $util.isInteger(message.giftRecipientEmailSendOn.low) && $util.isInteger(message.giftRecipientEmailSendOn.high)))
115054
115170
  return "giftRecipientEmailSendOn: integer|Long expected";
115171
+ if (message.paymentPlatform != null && message.hasOwnProperty("paymentPlatform")) {
115172
+ var error = $root.gift.GiftPaymentPlatform.verify(message.paymentPlatform);
115173
+ if (error)
115174
+ return "paymentPlatform." + error;
115175
+ }
115055
115176
  return null;
115056
115177
  };
115057
115178
 
@@ -115119,6 +115240,11 @@ $root.GiftPurchased = (function() {
115119
115240
  message.giftRecipientEmailSendOn = object.giftRecipientEmailSendOn;
115120
115241
  else if (typeof object.giftRecipientEmailSendOn === "object")
115121
115242
  message.giftRecipientEmailSendOn = new $util.LongBits(object.giftRecipientEmailSendOn.low >>> 0, object.giftRecipientEmailSendOn.high >>> 0).toNumber(true);
115243
+ if (object.paymentPlatform != null) {
115244
+ if (typeof object.paymentPlatform !== "object")
115245
+ throw TypeError(".GiftPurchased.paymentPlatform: object expected");
115246
+ message.paymentPlatform = $root.gift.GiftPaymentPlatform.fromObject(object.paymentPlatform);
115247
+ }
115122
115248
  return message;
115123
115249
  };
115124
115250
 
@@ -115155,6 +115281,7 @@ $root.GiftPurchased = (function() {
115155
115281
  object.giftRecipientEmailSendOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
115156
115282
  } else
115157
115283
  object.giftRecipientEmailSendOn = options.longs === String ? "0" : 0;
115284
+ object.paymentPlatform = null;
115158
115285
  }
115159
115286
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
115160
115287
  object.hsUserId = message.hsUserId;
@@ -115184,6 +115311,8 @@ $root.GiftPurchased = (function() {
115184
115311
  object.giftRecipientEmailSendOn = options.longs === String ? String(message.giftRecipientEmailSendOn) : message.giftRecipientEmailSendOn;
115185
115312
  else
115186
115313
  object.giftRecipientEmailSendOn = options.longs === String ? $util.Long.prototype.toString.call(message.giftRecipientEmailSendOn) : options.longs === Number ? new $util.LongBits(message.giftRecipientEmailSendOn.low >>> 0, message.giftRecipientEmailSendOn.high >>> 0).toNumber(true) : message.giftRecipientEmailSendOn;
115314
+ if (message.paymentPlatform != null && message.hasOwnProperty("paymentPlatform"))
115315
+ object.paymentPlatform = $root.gift.GiftPaymentPlatform.toObject(message.paymentPlatform, options);
115187
115316
  return object;
115188
115317
  };
115189
115318
 
@@ -196235,6 +196364,243 @@ $root.gift = (function() {
196235
196364
  return values;
196236
196365
  })();
196237
196366
 
196367
+ /**
196368
+ * GiftPaymentPlatformName enum.
196369
+ * @name gift.GiftPaymentPlatformName
196370
+ * @enum {string}
196371
+ * @property {number} GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN=0 GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN value
196372
+ * @property {number} GIFT_PAYMENT_PLATFORM_NAME_ZUORA=1 GIFT_PAYMENT_PLATFORM_NAME_ZUORA value
196373
+ */
196374
+ gift.GiftPaymentPlatformName = (function() {
196375
+ var valuesById = {}, values = Object.create(valuesById);
196376
+ values[valuesById[0] = "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN"] = 0;
196377
+ values[valuesById[1] = "GIFT_PAYMENT_PLATFORM_NAME_ZUORA"] = 1;
196378
+ return values;
196379
+ })();
196380
+
196381
+ gift.GiftPaymentPlatform = (function() {
196382
+
196383
+ /**
196384
+ * Properties of a GiftPaymentPlatform.
196385
+ * @memberof gift
196386
+ * @interface IGiftPaymentPlatform
196387
+ * @property {gift.GiftPaymentPlatformName|null} [name] GiftPaymentPlatform name
196388
+ * @property {string|null} [externalId] GiftPaymentPlatform externalId
196389
+ */
196390
+
196391
+ /**
196392
+ * Constructs a new GiftPaymentPlatform.
196393
+ * @memberof gift
196394
+ * @classdesc Represents a GiftPaymentPlatform.
196395
+ * @implements IGiftPaymentPlatform
196396
+ * @constructor
196397
+ * @param {gift.IGiftPaymentPlatform=} [properties] Properties to set
196398
+ */
196399
+ function GiftPaymentPlatform(properties) {
196400
+ if (properties)
196401
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
196402
+ if (properties[keys[i]] != null)
196403
+ this[keys[i]] = properties[keys[i]];
196404
+ }
196405
+
196406
+ /**
196407
+ * GiftPaymentPlatform name.
196408
+ * @member {gift.GiftPaymentPlatformName} name
196409
+ * @memberof gift.GiftPaymentPlatform
196410
+ * @instance
196411
+ */
196412
+ GiftPaymentPlatform.prototype.name = 0;
196413
+
196414
+ /**
196415
+ * GiftPaymentPlatform externalId.
196416
+ * @member {string} externalId
196417
+ * @memberof gift.GiftPaymentPlatform
196418
+ * @instance
196419
+ */
196420
+ GiftPaymentPlatform.prototype.externalId = "";
196421
+
196422
+ /**
196423
+ * Creates a new GiftPaymentPlatform instance using the specified properties.
196424
+ * @function create
196425
+ * @memberof gift.GiftPaymentPlatform
196426
+ * @static
196427
+ * @param {gift.IGiftPaymentPlatform=} [properties] Properties to set
196428
+ * @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform instance
196429
+ */
196430
+ GiftPaymentPlatform.create = function create(properties) {
196431
+ return new GiftPaymentPlatform(properties);
196432
+ };
196433
+
196434
+ /**
196435
+ * Encodes the specified GiftPaymentPlatform message. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
196436
+ * @function encode
196437
+ * @memberof gift.GiftPaymentPlatform
196438
+ * @static
196439
+ * @param {gift.IGiftPaymentPlatform} message GiftPaymentPlatform message or plain object to encode
196440
+ * @param {$protobuf.Writer} [writer] Writer to encode to
196441
+ * @returns {$protobuf.Writer} Writer
196442
+ */
196443
+ GiftPaymentPlatform.encode = function encode(message, writer) {
196444
+ if (!writer)
196445
+ writer = $Writer.create();
196446
+ if (message.name != null && message.hasOwnProperty("name"))
196447
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.name);
196448
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
196449
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.externalId);
196450
+ return writer;
196451
+ };
196452
+
196453
+ /**
196454
+ * Encodes the specified GiftPaymentPlatform message, length delimited. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
196455
+ * @function encodeDelimited
196456
+ * @memberof gift.GiftPaymentPlatform
196457
+ * @static
196458
+ * @param {gift.IGiftPaymentPlatform} message GiftPaymentPlatform message or plain object to encode
196459
+ * @param {$protobuf.Writer} [writer] Writer to encode to
196460
+ * @returns {$protobuf.Writer} Writer
196461
+ */
196462
+ GiftPaymentPlatform.encodeDelimited = function encodeDelimited(message, writer) {
196463
+ return this.encode(message, writer).ldelim();
196464
+ };
196465
+
196466
+ /**
196467
+ * Decodes a GiftPaymentPlatform message from the specified reader or buffer.
196468
+ * @function decode
196469
+ * @memberof gift.GiftPaymentPlatform
196470
+ * @static
196471
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
196472
+ * @param {number} [length] Message length if known beforehand
196473
+ * @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
196474
+ * @throws {Error} If the payload is not a reader or valid buffer
196475
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
196476
+ */
196477
+ GiftPaymentPlatform.decode = function decode(reader, length) {
196478
+ if (!(reader instanceof $Reader))
196479
+ reader = $Reader.create(reader);
196480
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gift.GiftPaymentPlatform();
196481
+ while (reader.pos < end) {
196482
+ var tag = reader.uint32();
196483
+ switch (tag >>> 3) {
196484
+ case 1:
196485
+ message.name = reader.int32();
196486
+ break;
196487
+ case 2:
196488
+ message.externalId = reader.string();
196489
+ break;
196490
+ default:
196491
+ reader.skipType(tag & 7);
196492
+ break;
196493
+ }
196494
+ }
196495
+ return message;
196496
+ };
196497
+
196498
+ /**
196499
+ * Decodes a GiftPaymentPlatform message from the specified reader or buffer, length delimited.
196500
+ * @function decodeDelimited
196501
+ * @memberof gift.GiftPaymentPlatform
196502
+ * @static
196503
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
196504
+ * @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
196505
+ * @throws {Error} If the payload is not a reader or valid buffer
196506
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
196507
+ */
196508
+ GiftPaymentPlatform.decodeDelimited = function decodeDelimited(reader) {
196509
+ if (!(reader instanceof $Reader))
196510
+ reader = new $Reader(reader);
196511
+ return this.decode(reader, reader.uint32());
196512
+ };
196513
+
196514
+ /**
196515
+ * Verifies a GiftPaymentPlatform message.
196516
+ * @function verify
196517
+ * @memberof gift.GiftPaymentPlatform
196518
+ * @static
196519
+ * @param {Object.<string,*>} message Plain object to verify
196520
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
196521
+ */
196522
+ GiftPaymentPlatform.verify = function verify(message) {
196523
+ if (typeof message !== "object" || message === null)
196524
+ return "object expected";
196525
+ if (message.name != null && message.hasOwnProperty("name"))
196526
+ switch (message.name) {
196527
+ default:
196528
+ return "name: enum value expected";
196529
+ case 0:
196530
+ case 1:
196531
+ break;
196532
+ }
196533
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
196534
+ if (!$util.isString(message.externalId))
196535
+ return "externalId: string expected";
196536
+ return null;
196537
+ };
196538
+
196539
+ /**
196540
+ * Creates a GiftPaymentPlatform message from a plain object. Also converts values to their respective internal types.
196541
+ * @function fromObject
196542
+ * @memberof gift.GiftPaymentPlatform
196543
+ * @static
196544
+ * @param {Object.<string,*>} object Plain object
196545
+ * @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
196546
+ */
196547
+ GiftPaymentPlatform.fromObject = function fromObject(object) {
196548
+ if (object instanceof $root.gift.GiftPaymentPlatform)
196549
+ return object;
196550
+ var message = new $root.gift.GiftPaymentPlatform();
196551
+ switch (object.name) {
196552
+ case "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN":
196553
+ case 0:
196554
+ message.name = 0;
196555
+ break;
196556
+ case "GIFT_PAYMENT_PLATFORM_NAME_ZUORA":
196557
+ case 1:
196558
+ message.name = 1;
196559
+ break;
196560
+ }
196561
+ if (object.externalId != null)
196562
+ message.externalId = String(object.externalId);
196563
+ return message;
196564
+ };
196565
+
196566
+ /**
196567
+ * Creates a plain object from a GiftPaymentPlatform message. Also converts values to other types if specified.
196568
+ * @function toObject
196569
+ * @memberof gift.GiftPaymentPlatform
196570
+ * @static
196571
+ * @param {gift.GiftPaymentPlatform} message GiftPaymentPlatform
196572
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
196573
+ * @returns {Object.<string,*>} Plain object
196574
+ */
196575
+ GiftPaymentPlatform.toObject = function toObject(message, options) {
196576
+ if (!options)
196577
+ options = {};
196578
+ var object = {};
196579
+ if (options.defaults) {
196580
+ object.name = options.enums === String ? "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN" : 0;
196581
+ object.externalId = "";
196582
+ }
196583
+ if (message.name != null && message.hasOwnProperty("name"))
196584
+ object.name = options.enums === String ? $root.gift.GiftPaymentPlatformName[message.name] : message.name;
196585
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
196586
+ object.externalId = message.externalId;
196587
+ return object;
196588
+ };
196589
+
196590
+ /**
196591
+ * Converts this GiftPaymentPlatform to JSON.
196592
+ * @function toJSON
196593
+ * @memberof gift.GiftPaymentPlatform
196594
+ * @instance
196595
+ * @returns {Object.<string,*>} JSON object
196596
+ */
196597
+ GiftPaymentPlatform.prototype.toJSON = function toJSON() {
196598
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
196599
+ };
196600
+
196601
+ return GiftPaymentPlatform;
196602
+ })();
196603
+
196238
196604
  return gift;
196239
196605
  })();
196240
196606
 
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.722.0"
19
+ "version": "1.724.0"
20
20
  }