@headspace/protos-events 1.26.0 → 1.27.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
@@ -903,6 +903,102 @@ export namespace subscription {
903
903
  public toJSON(): { [k: string]: any };
904
904
  }
905
905
 
906
+ /** PaymentMethodStatus enum. */
907
+ enum PaymentMethodStatus {
908
+ ACTIVE = 0,
909
+ CLOSED = 1
910
+ }
911
+
912
+ /** Properties of a PaymentMethod. */
913
+ interface IPaymentMethod {
914
+
915
+ /** PaymentMethod paymentMethodStatus */
916
+ paymentMethodStatus?: (subscription.PaymentMethodStatus|null);
917
+ }
918
+
919
+ /** Represents a PaymentMethod. */
920
+ class PaymentMethod implements IPaymentMethod {
921
+
922
+ /**
923
+ * Constructs a new PaymentMethod.
924
+ * @param [properties] Properties to set
925
+ */
926
+ constructor(properties?: subscription.IPaymentMethod);
927
+
928
+ /** PaymentMethod paymentMethodStatus. */
929
+ public paymentMethodStatus: subscription.PaymentMethodStatus;
930
+
931
+ /**
932
+ * Creates a new PaymentMethod instance using the specified properties.
933
+ * @param [properties] Properties to set
934
+ * @returns PaymentMethod instance
935
+ */
936
+ public static create(properties?: subscription.IPaymentMethod): subscription.PaymentMethod;
937
+
938
+ /**
939
+ * Encodes the specified PaymentMethod message. Does not implicitly {@link subscription.PaymentMethod.verify|verify} messages.
940
+ * @param message PaymentMethod message or plain object to encode
941
+ * @param [writer] Writer to encode to
942
+ * @returns Writer
943
+ */
944
+ public static encode(message: subscription.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer;
945
+
946
+ /**
947
+ * Encodes the specified PaymentMethod message, length delimited. Does not implicitly {@link subscription.PaymentMethod.verify|verify} messages.
948
+ * @param message PaymentMethod message or plain object to encode
949
+ * @param [writer] Writer to encode to
950
+ * @returns Writer
951
+ */
952
+ public static encodeDelimited(message: subscription.IPaymentMethod, writer?: $protobuf.Writer): $protobuf.Writer;
953
+
954
+ /**
955
+ * Decodes a PaymentMethod message from the specified reader or buffer.
956
+ * @param reader Reader or buffer to decode from
957
+ * @param [length] Message length if known beforehand
958
+ * @returns PaymentMethod
959
+ * @throws {Error} If the payload is not a reader or valid buffer
960
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
961
+ */
962
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): subscription.PaymentMethod;
963
+
964
+ /**
965
+ * Decodes a PaymentMethod message from the specified reader or buffer, length delimited.
966
+ * @param reader Reader or buffer to decode from
967
+ * @returns PaymentMethod
968
+ * @throws {Error} If the payload is not a reader or valid buffer
969
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
970
+ */
971
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): subscription.PaymentMethod;
972
+
973
+ /**
974
+ * Verifies a PaymentMethod message.
975
+ * @param message Plain object to verify
976
+ * @returns `null` if valid, otherwise the reason why it is not
977
+ */
978
+ public static verify(message: { [k: string]: any }): (string|null);
979
+
980
+ /**
981
+ * Creates a PaymentMethod message from a plain object. Also converts values to their respective internal types.
982
+ * @param object Plain object
983
+ * @returns PaymentMethod
984
+ */
985
+ public static fromObject(object: { [k: string]: any }): subscription.PaymentMethod;
986
+
987
+ /**
988
+ * Creates a plain object from a PaymentMethod message. Also converts values to other types if specified.
989
+ * @param message PaymentMethod
990
+ * @param [options] Conversion options
991
+ * @returns Plain object
992
+ */
993
+ public static toObject(message: subscription.PaymentMethod, options?: $protobuf.IConversionOptions): { [k: string]: any };
994
+
995
+ /**
996
+ * Converts this PaymentMethod to JSON.
997
+ * @returns JSON object
998
+ */
999
+ public toJSON(): { [k: string]: any };
1000
+ }
1001
+
906
1002
  /** Properties of a Plan. */
907
1003
  interface IPlan {
908
1004
 
@@ -2230,6 +2326,9 @@ export interface ISubscriptionCancelled {
2230
2326
 
2231
2327
  /** SubscriptionCancelled userId */
2232
2328
  userId?: (string|null);
2329
+
2330
+ /** SubscriptionCancelled paymentMethod */
2331
+ paymentMethod?: (subscription.IPaymentMethod|null);
2233
2332
  }
2234
2333
 
2235
2334
  /** Represents a SubscriptionCancelled. */
@@ -2250,6 +2349,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
2250
2349
  /** SubscriptionCancelled userId. */
2251
2350
  public userId: string;
2252
2351
 
2352
+ /** SubscriptionCancelled paymentMethod. */
2353
+ public paymentMethod?: (subscription.IPaymentMethod|null);
2354
+
2253
2355
  /**
2254
2356
  * Creates a new SubscriptionCancelled instance using the specified properties.
2255
2357
  * @param [properties] Properties to set
@@ -2443,6 +2545,9 @@ export interface ISubscriptionUpcomingRenewal {
2443
2545
 
2444
2546
  /** SubscriptionUpcomingRenewal renewalDate */
2445
2547
  renewalDate?: (number|Long|null);
2548
+
2549
+ /** SubscriptionUpcomingRenewal paymentMethod */
2550
+ paymentMethod?: (subscription.IPaymentMethod|null);
2446
2551
  }
2447
2552
 
2448
2553
  /** Represents a SubscriptionUpcomingRenewal. */
@@ -2472,6 +2577,9 @@ export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal
2472
2577
  /** SubscriptionUpcomingRenewal renewalDate. */
2473
2578
  public renewalDate: (number|Long);
2474
2579
 
2580
+ /** SubscriptionUpcomingRenewal paymentMethod. */
2581
+ public paymentMethod?: (subscription.IPaymentMethod|null);
2582
+
2475
2583
  /**
2476
2584
  * Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
2477
2585
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -1995,6 +1995,220 @@ $root.subscription = (function() {
1995
1995
  return UserSubscriptionResponse;
1996
1996
  })();
1997
1997
 
1998
+ /**
1999
+ * PaymentMethodStatus enum.
2000
+ * @name subscription.PaymentMethodStatus
2001
+ * @enum {string}
2002
+ * @property {number} ACTIVE=0 ACTIVE value
2003
+ * @property {number} CLOSED=1 CLOSED value
2004
+ */
2005
+ subscription.PaymentMethodStatus = (function() {
2006
+ var valuesById = {}, values = Object.create(valuesById);
2007
+ values[valuesById[0] = "ACTIVE"] = 0;
2008
+ values[valuesById[1] = "CLOSED"] = 1;
2009
+ return values;
2010
+ })();
2011
+
2012
+ subscription.PaymentMethod = (function() {
2013
+
2014
+ /**
2015
+ * Properties of a PaymentMethod.
2016
+ * @memberof subscription
2017
+ * @interface IPaymentMethod
2018
+ * @property {subscription.PaymentMethodStatus|null} [paymentMethodStatus] PaymentMethod paymentMethodStatus
2019
+ */
2020
+
2021
+ /**
2022
+ * Constructs a new PaymentMethod.
2023
+ * @memberof subscription
2024
+ * @classdesc Represents a PaymentMethod.
2025
+ * @implements IPaymentMethod
2026
+ * @constructor
2027
+ * @param {subscription.IPaymentMethod=} [properties] Properties to set
2028
+ */
2029
+ function PaymentMethod(properties) {
2030
+ if (properties)
2031
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2032
+ if (properties[keys[i]] != null)
2033
+ this[keys[i]] = properties[keys[i]];
2034
+ }
2035
+
2036
+ /**
2037
+ * PaymentMethod paymentMethodStatus.
2038
+ * @member {subscription.PaymentMethodStatus} paymentMethodStatus
2039
+ * @memberof subscription.PaymentMethod
2040
+ * @instance
2041
+ */
2042
+ PaymentMethod.prototype.paymentMethodStatus = 0;
2043
+
2044
+ /**
2045
+ * Creates a new PaymentMethod instance using the specified properties.
2046
+ * @function create
2047
+ * @memberof subscription.PaymentMethod
2048
+ * @static
2049
+ * @param {subscription.IPaymentMethod=} [properties] Properties to set
2050
+ * @returns {subscription.PaymentMethod} PaymentMethod instance
2051
+ */
2052
+ PaymentMethod.create = function create(properties) {
2053
+ return new PaymentMethod(properties);
2054
+ };
2055
+
2056
+ /**
2057
+ * Encodes the specified PaymentMethod message. Does not implicitly {@link subscription.PaymentMethod.verify|verify} messages.
2058
+ * @function encode
2059
+ * @memberof subscription.PaymentMethod
2060
+ * @static
2061
+ * @param {subscription.IPaymentMethod} message PaymentMethod message or plain object to encode
2062
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2063
+ * @returns {$protobuf.Writer} Writer
2064
+ */
2065
+ PaymentMethod.encode = function encode(message, writer) {
2066
+ if (!writer)
2067
+ writer = $Writer.create();
2068
+ if (message.paymentMethodStatus != null && message.hasOwnProperty("paymentMethodStatus"))
2069
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.paymentMethodStatus);
2070
+ return writer;
2071
+ };
2072
+
2073
+ /**
2074
+ * Encodes the specified PaymentMethod message, length delimited. Does not implicitly {@link subscription.PaymentMethod.verify|verify} messages.
2075
+ * @function encodeDelimited
2076
+ * @memberof subscription.PaymentMethod
2077
+ * @static
2078
+ * @param {subscription.IPaymentMethod} message PaymentMethod message or plain object to encode
2079
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2080
+ * @returns {$protobuf.Writer} Writer
2081
+ */
2082
+ PaymentMethod.encodeDelimited = function encodeDelimited(message, writer) {
2083
+ return this.encode(message, writer).ldelim();
2084
+ };
2085
+
2086
+ /**
2087
+ * Decodes a PaymentMethod message from the specified reader or buffer.
2088
+ * @function decode
2089
+ * @memberof subscription.PaymentMethod
2090
+ * @static
2091
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2092
+ * @param {number} [length] Message length if known beforehand
2093
+ * @returns {subscription.PaymentMethod} PaymentMethod
2094
+ * @throws {Error} If the payload is not a reader or valid buffer
2095
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2096
+ */
2097
+ PaymentMethod.decode = function decode(reader, length) {
2098
+ if (!(reader instanceof $Reader))
2099
+ reader = $Reader.create(reader);
2100
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.subscription.PaymentMethod();
2101
+ while (reader.pos < end) {
2102
+ var tag = reader.uint32();
2103
+ switch (tag >>> 3) {
2104
+ case 1:
2105
+ message.paymentMethodStatus = reader.int32();
2106
+ break;
2107
+ default:
2108
+ reader.skipType(tag & 7);
2109
+ break;
2110
+ }
2111
+ }
2112
+ return message;
2113
+ };
2114
+
2115
+ /**
2116
+ * Decodes a PaymentMethod message from the specified reader or buffer, length delimited.
2117
+ * @function decodeDelimited
2118
+ * @memberof subscription.PaymentMethod
2119
+ * @static
2120
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2121
+ * @returns {subscription.PaymentMethod} PaymentMethod
2122
+ * @throws {Error} If the payload is not a reader or valid buffer
2123
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2124
+ */
2125
+ PaymentMethod.decodeDelimited = function decodeDelimited(reader) {
2126
+ if (!(reader instanceof $Reader))
2127
+ reader = new $Reader(reader);
2128
+ return this.decode(reader, reader.uint32());
2129
+ };
2130
+
2131
+ /**
2132
+ * Verifies a PaymentMethod message.
2133
+ * @function verify
2134
+ * @memberof subscription.PaymentMethod
2135
+ * @static
2136
+ * @param {Object.<string,*>} message Plain object to verify
2137
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2138
+ */
2139
+ PaymentMethod.verify = function verify(message) {
2140
+ if (typeof message !== "object" || message === null)
2141
+ return "object expected";
2142
+ if (message.paymentMethodStatus != null && message.hasOwnProperty("paymentMethodStatus"))
2143
+ switch (message.paymentMethodStatus) {
2144
+ default:
2145
+ return "paymentMethodStatus: enum value expected";
2146
+ case 0:
2147
+ case 1:
2148
+ break;
2149
+ }
2150
+ return null;
2151
+ };
2152
+
2153
+ /**
2154
+ * Creates a PaymentMethod message from a plain object. Also converts values to their respective internal types.
2155
+ * @function fromObject
2156
+ * @memberof subscription.PaymentMethod
2157
+ * @static
2158
+ * @param {Object.<string,*>} object Plain object
2159
+ * @returns {subscription.PaymentMethod} PaymentMethod
2160
+ */
2161
+ PaymentMethod.fromObject = function fromObject(object) {
2162
+ if (object instanceof $root.subscription.PaymentMethod)
2163
+ return object;
2164
+ var message = new $root.subscription.PaymentMethod();
2165
+ switch (object.paymentMethodStatus) {
2166
+ case "ACTIVE":
2167
+ case 0:
2168
+ message.paymentMethodStatus = 0;
2169
+ break;
2170
+ case "CLOSED":
2171
+ case 1:
2172
+ message.paymentMethodStatus = 1;
2173
+ break;
2174
+ }
2175
+ return message;
2176
+ };
2177
+
2178
+ /**
2179
+ * Creates a plain object from a PaymentMethod message. Also converts values to other types if specified.
2180
+ * @function toObject
2181
+ * @memberof subscription.PaymentMethod
2182
+ * @static
2183
+ * @param {subscription.PaymentMethod} message PaymentMethod
2184
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2185
+ * @returns {Object.<string,*>} Plain object
2186
+ */
2187
+ PaymentMethod.toObject = function toObject(message, options) {
2188
+ if (!options)
2189
+ options = {};
2190
+ var object = {};
2191
+ if (options.defaults)
2192
+ object.paymentMethodStatus = options.enums === String ? "ACTIVE" : 0;
2193
+ if (message.paymentMethodStatus != null && message.hasOwnProperty("paymentMethodStatus"))
2194
+ object.paymentMethodStatus = options.enums === String ? $root.subscription.PaymentMethodStatus[message.paymentMethodStatus] : message.paymentMethodStatus;
2195
+ return object;
2196
+ };
2197
+
2198
+ /**
2199
+ * Converts this PaymentMethod to JSON.
2200
+ * @function toJSON
2201
+ * @memberof subscription.PaymentMethod
2202
+ * @instance
2203
+ * @returns {Object.<string,*>} JSON object
2204
+ */
2205
+ PaymentMethod.prototype.toJSON = function toJSON() {
2206
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2207
+ };
2208
+
2209
+ return PaymentMethod;
2210
+ })();
2211
+
1998
2212
  subscription.Plan = (function() {
1999
2213
 
2000
2214
  /**
@@ -5283,6 +5497,7 @@ $root.SubscriptionCancelled = (function() {
5283
5497
  * @property {number|null} [id] SubscriptionCancelled id
5284
5498
  * @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
5285
5499
  * @property {string|null} [userId] SubscriptionCancelled userId
5500
+ * @property {subscription.IPaymentMethod|null} [paymentMethod] SubscriptionCancelled paymentMethod
5286
5501
  */
5287
5502
 
5288
5503
  /**
@@ -5324,6 +5539,14 @@ $root.SubscriptionCancelled = (function() {
5324
5539
  */
5325
5540
  SubscriptionCancelled.prototype.userId = "";
5326
5541
 
5542
+ /**
5543
+ * SubscriptionCancelled paymentMethod.
5544
+ * @member {subscription.IPaymentMethod|null|undefined} paymentMethod
5545
+ * @memberof SubscriptionCancelled
5546
+ * @instance
5547
+ */
5548
+ SubscriptionCancelled.prototype.paymentMethod = null;
5549
+
5327
5550
  /**
5328
5551
  * Creates a new SubscriptionCancelled instance using the specified properties.
5329
5552
  * @function create
@@ -5354,6 +5577,8 @@ $root.SubscriptionCancelled = (function() {
5354
5577
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
5355
5578
  if (message.userId != null && message.hasOwnProperty("userId"))
5356
5579
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
5580
+ if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
5581
+ $root.subscription.PaymentMethod.encode(message.paymentMethod, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
5357
5582
  return writer;
5358
5583
  };
5359
5584
 
@@ -5397,6 +5622,9 @@ $root.SubscriptionCancelled = (function() {
5397
5622
  case 3:
5398
5623
  message.userId = reader.string();
5399
5624
  break;
5625
+ case 4:
5626
+ message.paymentMethod = $root.subscription.PaymentMethod.decode(reader, reader.uint32());
5627
+ break;
5400
5628
  default:
5401
5629
  reader.skipType(tag & 7);
5402
5630
  break;
@@ -5441,6 +5669,11 @@ $root.SubscriptionCancelled = (function() {
5441
5669
  if (message.userId != null && message.hasOwnProperty("userId"))
5442
5670
  if (!$util.isString(message.userId))
5443
5671
  return "userId: string expected";
5672
+ if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod")) {
5673
+ var error = $root.subscription.PaymentMethod.verify(message.paymentMethod);
5674
+ if (error)
5675
+ return "paymentMethod." + error;
5676
+ }
5444
5677
  return null;
5445
5678
  };
5446
5679
 
@@ -5469,6 +5702,11 @@ $root.SubscriptionCancelled = (function() {
5469
5702
  message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
5470
5703
  if (object.userId != null)
5471
5704
  message.userId = String(object.userId);
5705
+ if (object.paymentMethod != null) {
5706
+ if (typeof object.paymentMethod !== "object")
5707
+ throw TypeError(".SubscriptionCancelled.paymentMethod: object expected");
5708
+ message.paymentMethod = $root.subscription.PaymentMethod.fromObject(object.paymentMethod);
5709
+ }
5472
5710
  return message;
5473
5711
  };
5474
5712
 
@@ -5493,6 +5731,7 @@ $root.SubscriptionCancelled = (function() {
5493
5731
  } else
5494
5732
  object.updatedOn = options.longs === String ? "0" : 0;
5495
5733
  object.userId = "";
5734
+ object.paymentMethod = null;
5496
5735
  }
5497
5736
  if (message.id != null && message.hasOwnProperty("id"))
5498
5737
  object.id = message.id;
@@ -5503,6 +5742,8 @@ $root.SubscriptionCancelled = (function() {
5503
5742
  object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
5504
5743
  if (message.userId != null && message.hasOwnProperty("userId"))
5505
5744
  object.userId = message.userId;
5745
+ if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
5746
+ object.paymentMethod = $root.subscription.PaymentMethod.toObject(message.paymentMethod, options);
5506
5747
  return object;
5507
5748
  };
5508
5749
 
@@ -5778,6 +6019,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
5778
6019
  * @property {subscription.SubscriptionMembership|null} [membership] SubscriptionUpcomingRenewal membership
5779
6020
  * @property {subscription.PlanAffiliation|null} [planAffiliation] SubscriptionUpcomingRenewal planAffiliation
5780
6021
  * @property {number|Long|null} [renewalDate] SubscriptionUpcomingRenewal renewalDate
6022
+ * @property {subscription.IPaymentMethod|null} [paymentMethod] SubscriptionUpcomingRenewal paymentMethod
5781
6023
  */
5782
6024
 
5783
6025
  /**
@@ -5843,6 +6085,14 @@ $root.SubscriptionUpcomingRenewal = (function() {
5843
6085
  */
5844
6086
  SubscriptionUpcomingRenewal.prototype.renewalDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
5845
6087
 
6088
+ /**
6089
+ * SubscriptionUpcomingRenewal paymentMethod.
6090
+ * @member {subscription.IPaymentMethod|null|undefined} paymentMethod
6091
+ * @memberof SubscriptionUpcomingRenewal
6092
+ * @instance
6093
+ */
6094
+ SubscriptionUpcomingRenewal.prototype.paymentMethod = null;
6095
+
5846
6096
  /**
5847
6097
  * Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
5848
6098
  * @function create
@@ -5879,6 +6129,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
5879
6129
  writer.uint32(/* id 5, wireType 0 =*/40).int32(message.planAffiliation);
5880
6130
  if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
5881
6131
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.renewalDate);
6132
+ if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
6133
+ $root.subscription.PaymentMethod.encode(message.paymentMethod, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
5882
6134
  return writer;
5883
6135
  };
5884
6136
 
@@ -5931,6 +6183,9 @@ $root.SubscriptionUpcomingRenewal = (function() {
5931
6183
  case 6:
5932
6184
  message.renewalDate = reader.uint64();
5933
6185
  break;
6186
+ case 7:
6187
+ message.paymentMethod = $root.subscription.PaymentMethod.decode(reader, reader.uint32());
6188
+ break;
5934
6189
  default:
5935
6190
  reader.skipType(tag & 7);
5936
6191
  break;
@@ -5995,6 +6250,11 @@ $root.SubscriptionUpcomingRenewal = (function() {
5995
6250
  if (message.renewalDate != null && message.hasOwnProperty("renewalDate"))
5996
6251
  if (!$util.isInteger(message.renewalDate) && !(message.renewalDate && $util.isInteger(message.renewalDate.low) && $util.isInteger(message.renewalDate.high)))
5997
6252
  return "renewalDate: integer|Long expected";
6253
+ if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod")) {
6254
+ var error = $root.subscription.PaymentMethod.verify(message.paymentMethod);
6255
+ if (error)
6256
+ return "paymentMethod." + error;
6257
+ }
5998
6258
  return null;
5999
6259
  };
6000
6260
 
@@ -6049,6 +6309,11 @@ $root.SubscriptionUpcomingRenewal = (function() {
6049
6309
  message.renewalDate = object.renewalDate;
6050
6310
  else if (typeof object.renewalDate === "object")
6051
6311
  message.renewalDate = new $util.LongBits(object.renewalDate.low >>> 0, object.renewalDate.high >>> 0).toNumber(true);
6312
+ if (object.paymentMethod != null) {
6313
+ if (typeof object.paymentMethod !== "object")
6314
+ throw TypeError(".SubscriptionUpcomingRenewal.paymentMethod: object expected");
6315
+ message.paymentMethod = $root.subscription.PaymentMethod.fromObject(object.paymentMethod);
6316
+ }
6052
6317
  return message;
6053
6318
  };
6054
6319
 
@@ -6076,6 +6341,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
6076
6341
  object.renewalDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6077
6342
  } else
6078
6343
  object.renewalDate = options.longs === String ? "0" : 0;
6344
+ object.paymentMethod = null;
6079
6345
  }
6080
6346
  if (message.id != null && message.hasOwnProperty("id"))
6081
6347
  object.id = message.id;
@@ -6092,6 +6358,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
6092
6358
  object.renewalDate = options.longs === String ? String(message.renewalDate) : message.renewalDate;
6093
6359
  else
6094
6360
  object.renewalDate = options.longs === String ? $util.Long.prototype.toString.call(message.renewalDate) : options.longs === Number ? new $util.LongBits(message.renewalDate.low >>> 0, message.renewalDate.high >>> 0).toNumber(true) : message.renewalDate;
6361
+ if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
6362
+ object.paymentMethod = $root.subscription.PaymentMethod.toObject(message.paymentMethod, options);
6095
6363
  return object;
6096
6364
  };
6097
6365
 
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.26.0"
19
+ "version": "1.27.0"
20
20
  }