@headspace/protos-events 1.28.0 → 1.29.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
@@ -905,8 +905,9 @@ export namespace subscription {
905
905
 
906
906
  /** PaymentMethodStatus enum. */
907
907
  enum PaymentMethodStatus {
908
- ACTIVE = 0,
909
- CLOSED = 1
908
+ UNKNOWN = 0,
909
+ CLOSED = 1,
910
+ ACTIVE = 2
910
911
  }
911
912
 
912
913
  /** Properties of a PaymentMethod. */
package/lib/index.js CHANGED
@@ -1999,13 +1999,15 @@ $root.subscription = (function() {
1999
1999
  * PaymentMethodStatus enum.
2000
2000
  * @name subscription.PaymentMethodStatus
2001
2001
  * @enum {string}
2002
- * @property {number} ACTIVE=0 ACTIVE value
2002
+ * @property {number} UNKNOWN=0 UNKNOWN value
2003
2003
  * @property {number} CLOSED=1 CLOSED value
2004
+ * @property {number} ACTIVE=2 ACTIVE value
2004
2005
  */
2005
2006
  subscription.PaymentMethodStatus = (function() {
2006
2007
  var valuesById = {}, values = Object.create(valuesById);
2007
- values[valuesById[0] = "ACTIVE"] = 0;
2008
+ values[valuesById[0] = "UNKNOWN"] = 0;
2008
2009
  values[valuesById[1] = "CLOSED"] = 1;
2010
+ values[valuesById[2] = "ACTIVE"] = 2;
2009
2011
  return values;
2010
2012
  })();
2011
2013
 
@@ -2145,6 +2147,7 @@ $root.subscription = (function() {
2145
2147
  return "paymentMethodStatus: enum value expected";
2146
2148
  case 0:
2147
2149
  case 1:
2150
+ case 2:
2148
2151
  break;
2149
2152
  }
2150
2153
  return null;
@@ -2163,7 +2166,7 @@ $root.subscription = (function() {
2163
2166
  return object;
2164
2167
  var message = new $root.subscription.PaymentMethod();
2165
2168
  switch (object.paymentMethodStatus) {
2166
- case "ACTIVE":
2169
+ case "UNKNOWN":
2167
2170
  case 0:
2168
2171
  message.paymentMethodStatus = 0;
2169
2172
  break;
@@ -2171,6 +2174,10 @@ $root.subscription = (function() {
2171
2174
  case 1:
2172
2175
  message.paymentMethodStatus = 1;
2173
2176
  break;
2177
+ case "ACTIVE":
2178
+ case 2:
2179
+ message.paymentMethodStatus = 2;
2180
+ break;
2174
2181
  }
2175
2182
  return message;
2176
2183
  };
@@ -2189,7 +2196,7 @@ $root.subscription = (function() {
2189
2196
  options = {};
2190
2197
  var object = {};
2191
2198
  if (options.defaults)
2192
- object.paymentMethodStatus = options.enums === String ? "ACTIVE" : 0;
2199
+ object.paymentMethodStatus = options.enums === String ? "UNKNOWN" : 0;
2193
2200
  if (message.paymentMethodStatus != null && message.hasOwnProperty("paymentMethodStatus"))
2194
2201
  object.paymentMethodStatus = options.enums === String ? $root.subscription.PaymentMethodStatus[message.paymentMethodStatus] : message.paymentMethodStatus;
2195
2202
  return object;
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.28.0"
19
+ "version": "1.29.0"
20
20
  }