@headspace/protos-events 1.757.0 → 1.758.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
@@ -51928,6 +51928,9 @@ export interface ISubscriptionCancelled {
51928
51928
 
51929
51929
  /** SubscriptionCancelled productSku */
51930
51930
  productSku?: (subscription.ISubscriptionProductSku|null);
51931
+
51932
+ /** SubscriptionCancelled cancellationReason */
51933
+ cancellationReason?: (string|null);
51931
51934
  }
51932
51935
 
51933
51936
  /** Represents a SubscriptionCancelled. */
@@ -51993,6 +51996,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
51993
51996
  /** SubscriptionCancelled productSku. */
51994
51997
  public productSku?: (subscription.ISubscriptionProductSku|null);
51995
51998
 
51999
+ /** SubscriptionCancelled cancellationReason. */
52000
+ public cancellationReason: string;
52001
+
51996
52002
  /**
51997
52003
  * Creates a new SubscriptionCancelled instance using the specified properties.
51998
52004
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -146982,6 +146982,7 @@ $root.SubscriptionCancelled = (function() {
146982
146982
  * @property {Array.<subscription.ITerm>|null} [terms] SubscriptionCancelled terms
146983
146983
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCancelled membership
146984
146984
  * @property {subscription.ISubscriptionProductSku|null} [productSku] SubscriptionCancelled productSku
146985
+ * @property {string|null} [cancellationReason] SubscriptionCancelled cancellationReason
146985
146986
  */
146986
146987
 
146987
146988
  /**
@@ -147145,6 +147146,14 @@ $root.SubscriptionCancelled = (function() {
147145
147146
  */
147146
147147
  SubscriptionCancelled.prototype.productSku = null;
147147
147148
 
147149
+ /**
147150
+ * SubscriptionCancelled cancellationReason.
147151
+ * @member {string} cancellationReason
147152
+ * @memberof SubscriptionCancelled
147153
+ * @instance
147154
+ */
147155
+ SubscriptionCancelled.prototype.cancellationReason = "";
147156
+
147148
147157
  /**
147149
147158
  * Creates a new SubscriptionCancelled instance using the specified properties.
147150
147159
  * @function create
@@ -147210,6 +147219,8 @@ $root.SubscriptionCancelled = (function() {
147210
147219
  writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
147211
147220
  if (message.productSku != null && message.hasOwnProperty("productSku"))
147212
147221
  $root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
147222
+ if (message.cancellationReason != null && message.hasOwnProperty("cancellationReason"))
147223
+ writer.uint32(/* id 20, wireType 2 =*/162).string(message.cancellationReason);
147213
147224
  return writer;
147214
147225
  };
147215
147226
 
@@ -147307,6 +147318,9 @@ $root.SubscriptionCancelled = (function() {
147307
147318
  case 18:
147308
147319
  message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32());
147309
147320
  break;
147321
+ case 20:
147322
+ message.cancellationReason = reader.string();
147323
+ break;
147310
147324
  default:
147311
147325
  reader.skipType(tag & 7);
147312
147326
  break;
@@ -147456,6 +147470,9 @@ $root.SubscriptionCancelled = (function() {
147456
147470
  if (error)
147457
147471
  return "productSku." + error;
147458
147472
  }
147473
+ if (message.cancellationReason != null && message.hasOwnProperty("cancellationReason"))
147474
+ if (!$util.isString(message.cancellationReason))
147475
+ return "cancellationReason: string expected";
147459
147476
  return null;
147460
147477
  };
147461
147478
 
@@ -147670,6 +147687,8 @@ $root.SubscriptionCancelled = (function() {
147670
147687
  throw TypeError(".SubscriptionCancelled.productSku: object expected");
147671
147688
  message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku);
147672
147689
  }
147690
+ if (object.cancellationReason != null)
147691
+ message.cancellationReason = String(object.cancellationReason);
147673
147692
  return message;
147674
147693
  };
147675
147694
 
@@ -147727,6 +147746,7 @@ $root.SubscriptionCancelled = (function() {
147727
147746
  object.renewalCount = options.longs === String ? "0" : 0;
147728
147747
  object.membership = options.enums === String ? "PRIMARY" : 0;
147729
147748
  object.productSku = null;
147749
+ object.cancellationReason = "";
147730
147750
  }
147731
147751
  if (message.id != null && message.hasOwnProperty("id"))
147732
147752
  object.id = message.id;
@@ -147785,6 +147805,8 @@ $root.SubscriptionCancelled = (function() {
147785
147805
  object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] : message.membership;
147786
147806
  if (message.productSku != null && message.hasOwnProperty("productSku"))
147787
147807
  object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
147808
+ if (message.cancellationReason != null && message.hasOwnProperty("cancellationReason"))
147809
+ object.cancellationReason = message.cancellationReason;
147788
147810
  return object;
147789
147811
  };
147790
147812
 
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.757.0"
19
+ "version": "1.758.0"
20
20
  }