@headspace/protos-events 1.723.0 → 1.725.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
@@ -40302,6 +40302,9 @@ export interface IGiftPurchased {
40302
40302
 
40303
40303
  /** GiftPurchased giftRecipientEmailSendOn */
40304
40304
  giftRecipientEmailSendOn?: (number|Long|null);
40305
+
40306
+ /** GiftPurchased paymentPlatform */
40307
+ paymentPlatform?: (gift.IGiftPaymentPlatform|null);
40305
40308
  }
40306
40309
 
40307
40310
  /** Represents a GiftPurchased. */
@@ -40346,6 +40349,9 @@ export class GiftPurchased implements IGiftPurchased {
40346
40349
  /** GiftPurchased giftRecipientEmailSendOn. */
40347
40350
  public giftRecipientEmailSendOn: (number|Long);
40348
40351
 
40352
+ /** GiftPurchased paymentPlatform. */
40353
+ public paymentPlatform?: (gift.IGiftPaymentPlatform|null);
40354
+
40349
40355
  /**
40350
40356
  * Creates a new GiftPurchased instance using the specified properties.
40351
40357
  * @param [properties] Properties to set
@@ -69358,6 +69364,108 @@ export namespace gift {
69358
69364
  GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE = 2,
69359
69365
  GIFT_PRODUCT_SKU_TAX_MODE_EXEMPT = 3
69360
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
+ }
69361
69469
  }
69362
69470
 
69363
69471
  /** Properties of a GingerProviderProfileUpdateRequested. */
@@ -70731,7 +70839,8 @@ export namespace productcatalog {
70731
70839
  PLATFORM_SPOTIFY = 4,
70732
70840
  PLATFORM_ZUORA = 5,
70733
70841
  PLATFORM_B2B_ORG = 6,
70734
- PRODUCT_SKU_PLATFORM_SIKA = 7
70842
+ PRODUCT_SKU_PLATFORM_SIKA = 7,
70843
+ PRODUCT_SKU_PLATFORM_PAPI = 8
70735
70844
  }
70736
70845
 
70737
70846
  /** ProductSkuBillingCategory enum. */
@@ -72318,7 +72427,8 @@ export namespace subscription {
72318
72427
  HEADSPACE = 4,
72319
72428
  SPOTIFY = 5,
72320
72429
  AMAZON = 6,
72321
- SUBSCRIPTION_PLATFORM_SIKA = 7
72430
+ SUBSCRIPTION_PLATFORM_SIKA = 7,
72431
+ SUBSCRIPTION_PLATFORM_PAPI = 8
72322
72432
  }
72323
72433
 
72324
72434
  /** AutoRenewalStatus enum. */
package/lib/index.js CHANGED
@@ -114861,6 +114861,7 @@ $root.GiftPurchased = (function() {
114861
114861
  * @property {string|null} [productSkuSlug] GiftPurchased productSkuSlug
114862
114862
  * @property {gift.GiftProductSkuTaxMode|null} [productSkuTaxMode] GiftPurchased productSkuTaxMode
114863
114863
  * @property {number|Long|null} [giftRecipientEmailSendOn] GiftPurchased giftRecipientEmailSendOn
114864
+ * @property {gift.IGiftPaymentPlatform|null} [paymentPlatform] GiftPurchased paymentPlatform
114864
114865
  */
114865
114866
 
114866
114867
  /**
@@ -114966,6 +114967,14 @@ $root.GiftPurchased = (function() {
114966
114967
  */
114967
114968
  GiftPurchased.prototype.giftRecipientEmailSendOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
114968
114969
 
114970
+ /**
114971
+ * GiftPurchased paymentPlatform.
114972
+ * @member {gift.IGiftPaymentPlatform|null|undefined} paymentPlatform
114973
+ * @memberof GiftPurchased
114974
+ * @instance
114975
+ */
114976
+ GiftPurchased.prototype.paymentPlatform = null;
114977
+
114969
114978
  /**
114970
114979
  * Creates a new GiftPurchased instance using the specified properties.
114971
114980
  * @function create
@@ -115012,6 +115021,8 @@ $root.GiftPurchased = (function() {
115012
115021
  writer.uint32(/* id 10, wireType 0 =*/80).int32(message.productSkuTaxMode);
115013
115022
  if (message.giftRecipientEmailSendOn != null && message.hasOwnProperty("giftRecipientEmailSendOn"))
115014
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();
115015
115026
  return writer;
115016
115027
  };
115017
115028
 
@@ -115079,6 +115090,9 @@ $root.GiftPurchased = (function() {
115079
115090
  case 11:
115080
115091
  message.giftRecipientEmailSendOn = reader.uint64();
115081
115092
  break;
115093
+ case 12:
115094
+ message.paymentPlatform = $root.gift.GiftPaymentPlatform.decode(reader, reader.uint32());
115095
+ break;
115082
115096
  default:
115083
115097
  reader.skipType(tag & 7);
115084
115098
  break;
@@ -115154,6 +115168,11 @@ $root.GiftPurchased = (function() {
115154
115168
  if (message.giftRecipientEmailSendOn != null && message.hasOwnProperty("giftRecipientEmailSendOn"))
115155
115169
  if (!$util.isInteger(message.giftRecipientEmailSendOn) && !(message.giftRecipientEmailSendOn && $util.isInteger(message.giftRecipientEmailSendOn.low) && $util.isInteger(message.giftRecipientEmailSendOn.high)))
115156
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
+ }
115157
115176
  return null;
115158
115177
  };
115159
115178
 
@@ -115221,6 +115240,11 @@ $root.GiftPurchased = (function() {
115221
115240
  message.giftRecipientEmailSendOn = object.giftRecipientEmailSendOn;
115222
115241
  else if (typeof object.giftRecipientEmailSendOn === "object")
115223
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
+ }
115224
115248
  return message;
115225
115249
  };
115226
115250
 
@@ -115257,6 +115281,7 @@ $root.GiftPurchased = (function() {
115257
115281
  object.giftRecipientEmailSendOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
115258
115282
  } else
115259
115283
  object.giftRecipientEmailSendOn = options.longs === String ? "0" : 0;
115284
+ object.paymentPlatform = null;
115260
115285
  }
115261
115286
  if (message.hsUserId != null && message.hasOwnProperty("hsUserId"))
115262
115287
  object.hsUserId = message.hsUserId;
@@ -115286,6 +115311,8 @@ $root.GiftPurchased = (function() {
115286
115311
  object.giftRecipientEmailSendOn = options.longs === String ? String(message.giftRecipientEmailSendOn) : message.giftRecipientEmailSendOn;
115287
115312
  else
115288
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);
115289
115316
  return object;
115290
115317
  };
115291
115318
 
@@ -142974,6 +143001,7 @@ $root.SubscriptionCreated = (function() {
142974
143001
  case 5:
142975
143002
  case 6:
142976
143003
  case 7:
143004
+ case 8:
142977
143005
  break;
142978
143006
  }
142979
143007
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -143130,6 +143158,10 @@ $root.SubscriptionCreated = (function() {
143130
143158
  case 7:
143131
143159
  message.platform = 7;
143132
143160
  break;
143161
+ case "SUBSCRIPTION_PLATFORM_PAPI":
143162
+ case 8:
143163
+ message.platform = 8;
143164
+ break;
143133
143165
  }
143134
143166
  switch (object.autoRenewalStatus) {
143135
143167
  case "UNKNOWN_STATUS":
@@ -143765,6 +143797,7 @@ $root.SubscriptionCancelled = (function() {
143765
143797
  case 5:
143766
143798
  case 6:
143767
143799
  case 7:
143800
+ case 8:
143768
143801
  break;
143769
143802
  }
143770
143803
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -143935,6 +143968,10 @@ $root.SubscriptionCancelled = (function() {
143935
143968
  case 7:
143936
143969
  message.platform = 7;
143937
143970
  break;
143971
+ case "SUBSCRIPTION_PLATFORM_PAPI":
143972
+ case 8:
143973
+ message.platform = 8;
143974
+ break;
143938
143975
  }
143939
143976
  switch (object.autoRenewalStatus) {
143940
143977
  case "UNKNOWN_STATUS":
@@ -144571,6 +144608,7 @@ $root.SubscriptionRenewed = (function() {
144571
144608
  case 5:
144572
144609
  case 6:
144573
144610
  case 7:
144611
+ case 8:
144574
144612
  break;
144575
144613
  }
144576
144614
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -144727,6 +144765,10 @@ $root.SubscriptionRenewed = (function() {
144727
144765
  case 7:
144728
144766
  message.platform = 7;
144729
144767
  break;
144768
+ case "SUBSCRIPTION_PLATFORM_PAPI":
144769
+ case 8:
144770
+ message.platform = 8;
144771
+ break;
144730
144772
  }
144731
144773
  switch (object.autoRenewalStatus) {
144732
144774
  case "UNKNOWN_STATUS":
@@ -146436,6 +146478,7 @@ $root.SubscriptionGraced = (function() {
146436
146478
  case 5:
146437
146479
  case 6:
146438
146480
  case 7:
146481
+ case 8:
146439
146482
  break;
146440
146483
  }
146441
146484
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -146592,6 +146635,10 @@ $root.SubscriptionGraced = (function() {
146592
146635
  case 7:
146593
146636
  message.platform = 7;
146594
146637
  break;
146638
+ case "SUBSCRIPTION_PLATFORM_PAPI":
146639
+ case 8:
146640
+ message.platform = 8;
146641
+ break;
146595
146642
  }
146596
146643
  switch (object.autoRenewalStatus) {
146597
146644
  case "UNKNOWN_STATUS":
@@ -147205,6 +147252,7 @@ $root.SubscriptionStarted = (function() {
147205
147252
  case 5:
147206
147253
  case 6:
147207
147254
  case 7:
147255
+ case 8:
147208
147256
  break;
147209
147257
  }
147210
147258
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -147362,6 +147410,10 @@ $root.SubscriptionStarted = (function() {
147362
147410
  case 7:
147363
147411
  message.platform = 7;
147364
147412
  break;
147413
+ case "SUBSCRIPTION_PLATFORM_PAPI":
147414
+ case 8:
147415
+ message.platform = 8;
147416
+ break;
147365
147417
  }
147366
147418
  switch (object.autoRenewalStatus) {
147367
147419
  case "UNKNOWN_STATUS":
@@ -147991,6 +148043,7 @@ $root.SubscriptionEnded = (function() {
147991
148043
  case 5:
147992
148044
  case 6:
147993
148045
  case 7:
148046
+ case 8:
147994
148047
  break;
147995
148048
  }
147996
148049
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -148157,6 +148210,10 @@ $root.SubscriptionEnded = (function() {
148157
148210
  case 7:
148158
148211
  message.platform = 7;
148159
148212
  break;
148213
+ case "SUBSCRIPTION_PLATFORM_PAPI":
148214
+ case 8:
148215
+ message.platform = 8;
148216
+ break;
148160
148217
  }
148161
148218
  switch (object.autoRenewalStatus) {
148162
148219
  case "UNKNOWN_STATUS":
@@ -148789,6 +148846,7 @@ $root.SubscriptionRecovered = (function() {
148789
148846
  case 5:
148790
148847
  case 6:
148791
148848
  case 7:
148849
+ case 8:
148792
148850
  break;
148793
148851
  }
148794
148852
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -148946,6 +149004,10 @@ $root.SubscriptionRecovered = (function() {
148946
149004
  case 7:
148947
149005
  message.platform = 7;
148948
149006
  break;
149007
+ case "SUBSCRIPTION_PLATFORM_PAPI":
149008
+ case 8:
149009
+ message.platform = 8;
149010
+ break;
148949
149011
  }
148950
149012
  switch (object.autoRenewalStatus) {
148951
149013
  case "UNKNOWN_STATUS":
@@ -149561,6 +149623,7 @@ $root.SubscriptionAmended = (function() {
149561
149623
  case 5:
149562
149624
  case 6:
149563
149625
  case 7:
149626
+ case 8:
149564
149627
  break;
149565
149628
  }
149566
149629
  if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
@@ -149718,6 +149781,10 @@ $root.SubscriptionAmended = (function() {
149718
149781
  case 7:
149719
149782
  message.platform = 7;
149720
149783
  break;
149784
+ case "SUBSCRIPTION_PLATFORM_PAPI":
149785
+ case 8:
149786
+ message.platform = 8;
149787
+ break;
149721
149788
  }
149722
149789
  switch (object.autoRenewalStatus) {
149723
149790
  case "UNKNOWN_STATUS":
@@ -196337,6 +196404,243 @@ $root.gift = (function() {
196337
196404
  return values;
196338
196405
  })();
196339
196406
 
196407
+ /**
196408
+ * GiftPaymentPlatformName enum.
196409
+ * @name gift.GiftPaymentPlatformName
196410
+ * @enum {string}
196411
+ * @property {number} GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN=0 GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN value
196412
+ * @property {number} GIFT_PAYMENT_PLATFORM_NAME_ZUORA=1 GIFT_PAYMENT_PLATFORM_NAME_ZUORA value
196413
+ */
196414
+ gift.GiftPaymentPlatformName = (function() {
196415
+ var valuesById = {}, values = Object.create(valuesById);
196416
+ values[valuesById[0] = "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN"] = 0;
196417
+ values[valuesById[1] = "GIFT_PAYMENT_PLATFORM_NAME_ZUORA"] = 1;
196418
+ return values;
196419
+ })();
196420
+
196421
+ gift.GiftPaymentPlatform = (function() {
196422
+
196423
+ /**
196424
+ * Properties of a GiftPaymentPlatform.
196425
+ * @memberof gift
196426
+ * @interface IGiftPaymentPlatform
196427
+ * @property {gift.GiftPaymentPlatformName|null} [name] GiftPaymentPlatform name
196428
+ * @property {string|null} [externalId] GiftPaymentPlatform externalId
196429
+ */
196430
+
196431
+ /**
196432
+ * Constructs a new GiftPaymentPlatform.
196433
+ * @memberof gift
196434
+ * @classdesc Represents a GiftPaymentPlatform.
196435
+ * @implements IGiftPaymentPlatform
196436
+ * @constructor
196437
+ * @param {gift.IGiftPaymentPlatform=} [properties] Properties to set
196438
+ */
196439
+ function GiftPaymentPlatform(properties) {
196440
+ if (properties)
196441
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
196442
+ if (properties[keys[i]] != null)
196443
+ this[keys[i]] = properties[keys[i]];
196444
+ }
196445
+
196446
+ /**
196447
+ * GiftPaymentPlatform name.
196448
+ * @member {gift.GiftPaymentPlatformName} name
196449
+ * @memberof gift.GiftPaymentPlatform
196450
+ * @instance
196451
+ */
196452
+ GiftPaymentPlatform.prototype.name = 0;
196453
+
196454
+ /**
196455
+ * GiftPaymentPlatform externalId.
196456
+ * @member {string} externalId
196457
+ * @memberof gift.GiftPaymentPlatform
196458
+ * @instance
196459
+ */
196460
+ GiftPaymentPlatform.prototype.externalId = "";
196461
+
196462
+ /**
196463
+ * Creates a new GiftPaymentPlatform instance using the specified properties.
196464
+ * @function create
196465
+ * @memberof gift.GiftPaymentPlatform
196466
+ * @static
196467
+ * @param {gift.IGiftPaymentPlatform=} [properties] Properties to set
196468
+ * @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform instance
196469
+ */
196470
+ GiftPaymentPlatform.create = function create(properties) {
196471
+ return new GiftPaymentPlatform(properties);
196472
+ };
196473
+
196474
+ /**
196475
+ * Encodes the specified GiftPaymentPlatform message. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
196476
+ * @function encode
196477
+ * @memberof gift.GiftPaymentPlatform
196478
+ * @static
196479
+ * @param {gift.IGiftPaymentPlatform} message GiftPaymentPlatform message or plain object to encode
196480
+ * @param {$protobuf.Writer} [writer] Writer to encode to
196481
+ * @returns {$protobuf.Writer} Writer
196482
+ */
196483
+ GiftPaymentPlatform.encode = function encode(message, writer) {
196484
+ if (!writer)
196485
+ writer = $Writer.create();
196486
+ if (message.name != null && message.hasOwnProperty("name"))
196487
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.name);
196488
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
196489
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.externalId);
196490
+ return writer;
196491
+ };
196492
+
196493
+ /**
196494
+ * Encodes the specified GiftPaymentPlatform message, length delimited. Does not implicitly {@link gift.GiftPaymentPlatform.verify|verify} messages.
196495
+ * @function encodeDelimited
196496
+ * @memberof gift.GiftPaymentPlatform
196497
+ * @static
196498
+ * @param {gift.IGiftPaymentPlatform} message GiftPaymentPlatform message or plain object to encode
196499
+ * @param {$protobuf.Writer} [writer] Writer to encode to
196500
+ * @returns {$protobuf.Writer} Writer
196501
+ */
196502
+ GiftPaymentPlatform.encodeDelimited = function encodeDelimited(message, writer) {
196503
+ return this.encode(message, writer).ldelim();
196504
+ };
196505
+
196506
+ /**
196507
+ * Decodes a GiftPaymentPlatform message from the specified reader or buffer.
196508
+ * @function decode
196509
+ * @memberof gift.GiftPaymentPlatform
196510
+ * @static
196511
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
196512
+ * @param {number} [length] Message length if known beforehand
196513
+ * @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
196514
+ * @throws {Error} If the payload is not a reader or valid buffer
196515
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
196516
+ */
196517
+ GiftPaymentPlatform.decode = function decode(reader, length) {
196518
+ if (!(reader instanceof $Reader))
196519
+ reader = $Reader.create(reader);
196520
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.gift.GiftPaymentPlatform();
196521
+ while (reader.pos < end) {
196522
+ var tag = reader.uint32();
196523
+ switch (tag >>> 3) {
196524
+ case 1:
196525
+ message.name = reader.int32();
196526
+ break;
196527
+ case 2:
196528
+ message.externalId = reader.string();
196529
+ break;
196530
+ default:
196531
+ reader.skipType(tag & 7);
196532
+ break;
196533
+ }
196534
+ }
196535
+ return message;
196536
+ };
196537
+
196538
+ /**
196539
+ * Decodes a GiftPaymentPlatform message from the specified reader or buffer, length delimited.
196540
+ * @function decodeDelimited
196541
+ * @memberof gift.GiftPaymentPlatform
196542
+ * @static
196543
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
196544
+ * @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
196545
+ * @throws {Error} If the payload is not a reader or valid buffer
196546
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
196547
+ */
196548
+ GiftPaymentPlatform.decodeDelimited = function decodeDelimited(reader) {
196549
+ if (!(reader instanceof $Reader))
196550
+ reader = new $Reader(reader);
196551
+ return this.decode(reader, reader.uint32());
196552
+ };
196553
+
196554
+ /**
196555
+ * Verifies a GiftPaymentPlatform message.
196556
+ * @function verify
196557
+ * @memberof gift.GiftPaymentPlatform
196558
+ * @static
196559
+ * @param {Object.<string,*>} message Plain object to verify
196560
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
196561
+ */
196562
+ GiftPaymentPlatform.verify = function verify(message) {
196563
+ if (typeof message !== "object" || message === null)
196564
+ return "object expected";
196565
+ if (message.name != null && message.hasOwnProperty("name"))
196566
+ switch (message.name) {
196567
+ default:
196568
+ return "name: enum value expected";
196569
+ case 0:
196570
+ case 1:
196571
+ break;
196572
+ }
196573
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
196574
+ if (!$util.isString(message.externalId))
196575
+ return "externalId: string expected";
196576
+ return null;
196577
+ };
196578
+
196579
+ /**
196580
+ * Creates a GiftPaymentPlatform message from a plain object. Also converts values to their respective internal types.
196581
+ * @function fromObject
196582
+ * @memberof gift.GiftPaymentPlatform
196583
+ * @static
196584
+ * @param {Object.<string,*>} object Plain object
196585
+ * @returns {gift.GiftPaymentPlatform} GiftPaymentPlatform
196586
+ */
196587
+ GiftPaymentPlatform.fromObject = function fromObject(object) {
196588
+ if (object instanceof $root.gift.GiftPaymentPlatform)
196589
+ return object;
196590
+ var message = new $root.gift.GiftPaymentPlatform();
196591
+ switch (object.name) {
196592
+ case "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN":
196593
+ case 0:
196594
+ message.name = 0;
196595
+ break;
196596
+ case "GIFT_PAYMENT_PLATFORM_NAME_ZUORA":
196597
+ case 1:
196598
+ message.name = 1;
196599
+ break;
196600
+ }
196601
+ if (object.externalId != null)
196602
+ message.externalId = String(object.externalId);
196603
+ return message;
196604
+ };
196605
+
196606
+ /**
196607
+ * Creates a plain object from a GiftPaymentPlatform message. Also converts values to other types if specified.
196608
+ * @function toObject
196609
+ * @memberof gift.GiftPaymentPlatform
196610
+ * @static
196611
+ * @param {gift.GiftPaymentPlatform} message GiftPaymentPlatform
196612
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
196613
+ * @returns {Object.<string,*>} Plain object
196614
+ */
196615
+ GiftPaymentPlatform.toObject = function toObject(message, options) {
196616
+ if (!options)
196617
+ options = {};
196618
+ var object = {};
196619
+ if (options.defaults) {
196620
+ object.name = options.enums === String ? "GIFT_PAYMENT_PLATFORM_NAME_UNKNOWN" : 0;
196621
+ object.externalId = "";
196622
+ }
196623
+ if (message.name != null && message.hasOwnProperty("name"))
196624
+ object.name = options.enums === String ? $root.gift.GiftPaymentPlatformName[message.name] : message.name;
196625
+ if (message.externalId != null && message.hasOwnProperty("externalId"))
196626
+ object.externalId = message.externalId;
196627
+ return object;
196628
+ };
196629
+
196630
+ /**
196631
+ * Converts this GiftPaymentPlatform to JSON.
196632
+ * @function toJSON
196633
+ * @memberof gift.GiftPaymentPlatform
196634
+ * @instance
196635
+ * @returns {Object.<string,*>} JSON object
196636
+ */
196637
+ GiftPaymentPlatform.prototype.toJSON = function toJSON() {
196638
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
196639
+ };
196640
+
196641
+ return GiftPaymentPlatform;
196642
+ })();
196643
+
196340
196644
  return gift;
196341
196645
  })();
196342
196646
 
@@ -198361,6 +198665,7 @@ $root.productcatalog = (function() {
198361
198665
  case 5:
198362
198666
  case 6:
198363
198667
  case 7:
198668
+ case 8:
198364
198669
  break;
198365
198670
  }
198366
198671
  if (message.billingCategory != null && message.hasOwnProperty("billingCategory"))
@@ -198477,6 +198782,10 @@ $root.productcatalog = (function() {
198477
198782
  case 7:
198478
198783
  message.platform = 7;
198479
198784
  break;
198785
+ case "PRODUCT_SKU_PLATFORM_PAPI":
198786
+ case 8:
198787
+ message.platform = 8;
198788
+ break;
198480
198789
  }
198481
198790
  switch (object.billingCategory) {
198482
198791
  case "BC_UNKNOWN":
@@ -200112,6 +200421,7 @@ $root.productcatalog = (function() {
200112
200421
  * @property {number} PLATFORM_ZUORA=5 PLATFORM_ZUORA value
200113
200422
  * @property {number} PLATFORM_B2B_ORG=6 PLATFORM_B2B_ORG value
200114
200423
  * @property {number} PRODUCT_SKU_PLATFORM_SIKA=7 PRODUCT_SKU_PLATFORM_SIKA value
200424
+ * @property {number} PRODUCT_SKU_PLATFORM_PAPI=8 PRODUCT_SKU_PLATFORM_PAPI value
200115
200425
  */
200116
200426
  productcatalog.ProductSkuPlatform = (function() {
200117
200427
  var valuesById = {}, values = Object.create(valuesById);
@@ -200123,6 +200433,7 @@ $root.productcatalog = (function() {
200123
200433
  values[valuesById[5] = "PLATFORM_ZUORA"] = 5;
200124
200434
  values[valuesById[6] = "PLATFORM_B2B_ORG"] = 6;
200125
200435
  values[valuesById[7] = "PRODUCT_SKU_PLATFORM_SIKA"] = 7;
200436
+ values[valuesById[8] = "PRODUCT_SKU_PLATFORM_PAPI"] = 8;
200126
200437
  return values;
200127
200438
  })();
200128
200439
 
@@ -203880,6 +204191,7 @@ $root.subscription = (function() {
203880
204191
  * @property {number} SPOTIFY=5 SPOTIFY value
203881
204192
  * @property {number} AMAZON=6 AMAZON value
203882
204193
  * @property {number} SUBSCRIPTION_PLATFORM_SIKA=7 SUBSCRIPTION_PLATFORM_SIKA value
204194
+ * @property {number} SUBSCRIPTION_PLATFORM_PAPI=8 SUBSCRIPTION_PLATFORM_PAPI value
203883
204195
  */
203884
204196
  subscription.SubscriptionPlatform = (function() {
203885
204197
  var valuesById = {}, values = Object.create(valuesById);
@@ -203891,6 +204203,7 @@ $root.subscription = (function() {
203891
204203
  values[valuesById[5] = "SPOTIFY"] = 5;
203892
204204
  values[valuesById[6] = "AMAZON"] = 6;
203893
204205
  values[valuesById[7] = "SUBSCRIPTION_PLATFORM_SIKA"] = 7;
204206
+ values[valuesById[8] = "SUBSCRIPTION_PLATFORM_PAPI"] = 8;
203894
204207
  return values;
203895
204208
  })();
203896
204209
 
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.723.0"
19
+ "version": "1.725.0"
20
20
  }