@headspace/protos-events 1.209.0 → 1.211.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +462 -0
  2. package/lib/index.js +1250 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -7917,6 +7917,368 @@ $root.b2b = (function() {
7917
7917
  return Organization;
7918
7918
  })();
7919
7919
 
7920
+ b2b.B2BSubscriptionManagement = (function() {
7921
+
7922
+ /**
7923
+ * Properties of a B2BSubscriptionManagement.
7924
+ * @memberof b2b
7925
+ * @interface IB2BSubscriptionManagement
7926
+ * @property {string|null} [salesforceOpportunityId] B2BSubscriptionManagement salesforceOpportunityId
7927
+ * @property {number|Long|null} [orgSubscriptionStartDate] B2BSubscriptionManagement orgSubscriptionStartDate
7928
+ * @property {number|Long|null} [orgSubscriptionEndDate] B2BSubscriptionManagement orgSubscriptionEndDate
7929
+ * @property {number|null} [seats] B2BSubscriptionManagement seats
7930
+ * @property {number|Long|null} [dependentsPerEmployee] B2BSubscriptionManagement dependentsPerEmployee
7931
+ * @property {boolean|null} [isPartialPay] B2BSubscriptionManagement isPartialPay
7932
+ * @property {boolean|null} [isPilot] B2BSubscriptionManagement isPilot
7933
+ */
7934
+
7935
+ /**
7936
+ * Constructs a new B2BSubscriptionManagement.
7937
+ * @memberof b2b
7938
+ * @classdesc Represents a B2BSubscriptionManagement.
7939
+ * @implements IB2BSubscriptionManagement
7940
+ * @constructor
7941
+ * @param {b2b.IB2BSubscriptionManagement=} [properties] Properties to set
7942
+ */
7943
+ function B2BSubscriptionManagement(properties) {
7944
+ if (properties)
7945
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7946
+ if (properties[keys[i]] != null)
7947
+ this[keys[i]] = properties[keys[i]];
7948
+ }
7949
+
7950
+ /**
7951
+ * B2BSubscriptionManagement salesforceOpportunityId.
7952
+ * @member {string} salesforceOpportunityId
7953
+ * @memberof b2b.B2BSubscriptionManagement
7954
+ * @instance
7955
+ */
7956
+ B2BSubscriptionManagement.prototype.salesforceOpportunityId = "";
7957
+
7958
+ /**
7959
+ * B2BSubscriptionManagement orgSubscriptionStartDate.
7960
+ * @member {number|Long} orgSubscriptionStartDate
7961
+ * @memberof b2b.B2BSubscriptionManagement
7962
+ * @instance
7963
+ */
7964
+ B2BSubscriptionManagement.prototype.orgSubscriptionStartDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
7965
+
7966
+ /**
7967
+ * B2BSubscriptionManagement orgSubscriptionEndDate.
7968
+ * @member {number|Long} orgSubscriptionEndDate
7969
+ * @memberof b2b.B2BSubscriptionManagement
7970
+ * @instance
7971
+ */
7972
+ B2BSubscriptionManagement.prototype.orgSubscriptionEndDate = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
7973
+
7974
+ /**
7975
+ * B2BSubscriptionManagement seats.
7976
+ * @member {number} seats
7977
+ * @memberof b2b.B2BSubscriptionManagement
7978
+ * @instance
7979
+ */
7980
+ B2BSubscriptionManagement.prototype.seats = 0;
7981
+
7982
+ /**
7983
+ * B2BSubscriptionManagement dependentsPerEmployee.
7984
+ * @member {number|Long} dependentsPerEmployee
7985
+ * @memberof b2b.B2BSubscriptionManagement
7986
+ * @instance
7987
+ */
7988
+ B2BSubscriptionManagement.prototype.dependentsPerEmployee = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
7989
+
7990
+ /**
7991
+ * B2BSubscriptionManagement isPartialPay.
7992
+ * @member {boolean} isPartialPay
7993
+ * @memberof b2b.B2BSubscriptionManagement
7994
+ * @instance
7995
+ */
7996
+ B2BSubscriptionManagement.prototype.isPartialPay = false;
7997
+
7998
+ /**
7999
+ * B2BSubscriptionManagement isPilot.
8000
+ * @member {boolean} isPilot
8001
+ * @memberof b2b.B2BSubscriptionManagement
8002
+ * @instance
8003
+ */
8004
+ B2BSubscriptionManagement.prototype.isPilot = false;
8005
+
8006
+ /**
8007
+ * Creates a new B2BSubscriptionManagement instance using the specified properties.
8008
+ * @function create
8009
+ * @memberof b2b.B2BSubscriptionManagement
8010
+ * @static
8011
+ * @param {b2b.IB2BSubscriptionManagement=} [properties] Properties to set
8012
+ * @returns {b2b.B2BSubscriptionManagement} B2BSubscriptionManagement instance
8013
+ */
8014
+ B2BSubscriptionManagement.create = function create(properties) {
8015
+ return new B2BSubscriptionManagement(properties);
8016
+ };
8017
+
8018
+ /**
8019
+ * Encodes the specified B2BSubscriptionManagement message. Does not implicitly {@link b2b.B2BSubscriptionManagement.verify|verify} messages.
8020
+ * @function encode
8021
+ * @memberof b2b.B2BSubscriptionManagement
8022
+ * @static
8023
+ * @param {b2b.IB2BSubscriptionManagement} message B2BSubscriptionManagement message or plain object to encode
8024
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8025
+ * @returns {$protobuf.Writer} Writer
8026
+ */
8027
+ B2BSubscriptionManagement.encode = function encode(message, writer) {
8028
+ if (!writer)
8029
+ writer = $Writer.create();
8030
+ if (message.salesforceOpportunityId != null && message.hasOwnProperty("salesforceOpportunityId"))
8031
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.salesforceOpportunityId);
8032
+ if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
8033
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.orgSubscriptionStartDate);
8034
+ if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
8035
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.orgSubscriptionEndDate);
8036
+ if (message.seats != null && message.hasOwnProperty("seats"))
8037
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.seats);
8038
+ if (message.dependentsPerEmployee != null && message.hasOwnProperty("dependentsPerEmployee"))
8039
+ writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.dependentsPerEmployee);
8040
+ if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
8041
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isPartialPay);
8042
+ if (message.isPilot != null && message.hasOwnProperty("isPilot"))
8043
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isPilot);
8044
+ return writer;
8045
+ };
8046
+
8047
+ /**
8048
+ * Encodes the specified B2BSubscriptionManagement message, length delimited. Does not implicitly {@link b2b.B2BSubscriptionManagement.verify|verify} messages.
8049
+ * @function encodeDelimited
8050
+ * @memberof b2b.B2BSubscriptionManagement
8051
+ * @static
8052
+ * @param {b2b.IB2BSubscriptionManagement} message B2BSubscriptionManagement message or plain object to encode
8053
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8054
+ * @returns {$protobuf.Writer} Writer
8055
+ */
8056
+ B2BSubscriptionManagement.encodeDelimited = function encodeDelimited(message, writer) {
8057
+ return this.encode(message, writer).ldelim();
8058
+ };
8059
+
8060
+ /**
8061
+ * Decodes a B2BSubscriptionManagement message from the specified reader or buffer.
8062
+ * @function decode
8063
+ * @memberof b2b.B2BSubscriptionManagement
8064
+ * @static
8065
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8066
+ * @param {number} [length] Message length if known beforehand
8067
+ * @returns {b2b.B2BSubscriptionManagement} B2BSubscriptionManagement
8068
+ * @throws {Error} If the payload is not a reader or valid buffer
8069
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8070
+ */
8071
+ B2BSubscriptionManagement.decode = function decode(reader, length) {
8072
+ if (!(reader instanceof $Reader))
8073
+ reader = $Reader.create(reader);
8074
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.b2b.B2BSubscriptionManagement();
8075
+ while (reader.pos < end) {
8076
+ var tag = reader.uint32();
8077
+ switch (tag >>> 3) {
8078
+ case 1:
8079
+ message.salesforceOpportunityId = reader.string();
8080
+ break;
8081
+ case 2:
8082
+ message.orgSubscriptionStartDate = reader.uint64();
8083
+ break;
8084
+ case 3:
8085
+ message.orgSubscriptionEndDate = reader.uint64();
8086
+ break;
8087
+ case 4:
8088
+ message.seats = reader.uint32();
8089
+ break;
8090
+ case 5:
8091
+ message.dependentsPerEmployee = reader.uint64();
8092
+ break;
8093
+ case 6:
8094
+ message.isPartialPay = reader.bool();
8095
+ break;
8096
+ case 7:
8097
+ message.isPilot = reader.bool();
8098
+ break;
8099
+ default:
8100
+ reader.skipType(tag & 7);
8101
+ break;
8102
+ }
8103
+ }
8104
+ return message;
8105
+ };
8106
+
8107
+ /**
8108
+ * Decodes a B2BSubscriptionManagement message from the specified reader or buffer, length delimited.
8109
+ * @function decodeDelimited
8110
+ * @memberof b2b.B2BSubscriptionManagement
8111
+ * @static
8112
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8113
+ * @returns {b2b.B2BSubscriptionManagement} B2BSubscriptionManagement
8114
+ * @throws {Error} If the payload is not a reader or valid buffer
8115
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8116
+ */
8117
+ B2BSubscriptionManagement.decodeDelimited = function decodeDelimited(reader) {
8118
+ if (!(reader instanceof $Reader))
8119
+ reader = new $Reader(reader);
8120
+ return this.decode(reader, reader.uint32());
8121
+ };
8122
+
8123
+ /**
8124
+ * Verifies a B2BSubscriptionManagement message.
8125
+ * @function verify
8126
+ * @memberof b2b.B2BSubscriptionManagement
8127
+ * @static
8128
+ * @param {Object.<string,*>} message Plain object to verify
8129
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8130
+ */
8131
+ B2BSubscriptionManagement.verify = function verify(message) {
8132
+ if (typeof message !== "object" || message === null)
8133
+ return "object expected";
8134
+ if (message.salesforceOpportunityId != null && message.hasOwnProperty("salesforceOpportunityId"))
8135
+ if (!$util.isString(message.salesforceOpportunityId))
8136
+ return "salesforceOpportunityId: string expected";
8137
+ if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
8138
+ if (!$util.isInteger(message.orgSubscriptionStartDate) && !(message.orgSubscriptionStartDate && $util.isInteger(message.orgSubscriptionStartDate.low) && $util.isInteger(message.orgSubscriptionStartDate.high)))
8139
+ return "orgSubscriptionStartDate: integer|Long expected";
8140
+ if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
8141
+ if (!$util.isInteger(message.orgSubscriptionEndDate) && !(message.orgSubscriptionEndDate && $util.isInteger(message.orgSubscriptionEndDate.low) && $util.isInteger(message.orgSubscriptionEndDate.high)))
8142
+ return "orgSubscriptionEndDate: integer|Long expected";
8143
+ if (message.seats != null && message.hasOwnProperty("seats"))
8144
+ if (!$util.isInteger(message.seats))
8145
+ return "seats: integer expected";
8146
+ if (message.dependentsPerEmployee != null && message.hasOwnProperty("dependentsPerEmployee"))
8147
+ if (!$util.isInteger(message.dependentsPerEmployee) && !(message.dependentsPerEmployee && $util.isInteger(message.dependentsPerEmployee.low) && $util.isInteger(message.dependentsPerEmployee.high)))
8148
+ return "dependentsPerEmployee: integer|Long expected";
8149
+ if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
8150
+ if (typeof message.isPartialPay !== "boolean")
8151
+ return "isPartialPay: boolean expected";
8152
+ if (message.isPilot != null && message.hasOwnProperty("isPilot"))
8153
+ if (typeof message.isPilot !== "boolean")
8154
+ return "isPilot: boolean expected";
8155
+ return null;
8156
+ };
8157
+
8158
+ /**
8159
+ * Creates a B2BSubscriptionManagement message from a plain object. Also converts values to their respective internal types.
8160
+ * @function fromObject
8161
+ * @memberof b2b.B2BSubscriptionManagement
8162
+ * @static
8163
+ * @param {Object.<string,*>} object Plain object
8164
+ * @returns {b2b.B2BSubscriptionManagement} B2BSubscriptionManagement
8165
+ */
8166
+ B2BSubscriptionManagement.fromObject = function fromObject(object) {
8167
+ if (object instanceof $root.b2b.B2BSubscriptionManagement)
8168
+ return object;
8169
+ var message = new $root.b2b.B2BSubscriptionManagement();
8170
+ if (object.salesforceOpportunityId != null)
8171
+ message.salesforceOpportunityId = String(object.salesforceOpportunityId);
8172
+ if (object.orgSubscriptionStartDate != null)
8173
+ if ($util.Long)
8174
+ (message.orgSubscriptionStartDate = $util.Long.fromValue(object.orgSubscriptionStartDate)).unsigned = true;
8175
+ else if (typeof object.orgSubscriptionStartDate === "string")
8176
+ message.orgSubscriptionStartDate = parseInt(object.orgSubscriptionStartDate, 10);
8177
+ else if (typeof object.orgSubscriptionStartDate === "number")
8178
+ message.orgSubscriptionStartDate = object.orgSubscriptionStartDate;
8179
+ else if (typeof object.orgSubscriptionStartDate === "object")
8180
+ message.orgSubscriptionStartDate = new $util.LongBits(object.orgSubscriptionStartDate.low >>> 0, object.orgSubscriptionStartDate.high >>> 0).toNumber(true);
8181
+ if (object.orgSubscriptionEndDate != null)
8182
+ if ($util.Long)
8183
+ (message.orgSubscriptionEndDate = $util.Long.fromValue(object.orgSubscriptionEndDate)).unsigned = true;
8184
+ else if (typeof object.orgSubscriptionEndDate === "string")
8185
+ message.orgSubscriptionEndDate = parseInt(object.orgSubscriptionEndDate, 10);
8186
+ else if (typeof object.orgSubscriptionEndDate === "number")
8187
+ message.orgSubscriptionEndDate = object.orgSubscriptionEndDate;
8188
+ else if (typeof object.orgSubscriptionEndDate === "object")
8189
+ message.orgSubscriptionEndDate = new $util.LongBits(object.orgSubscriptionEndDate.low >>> 0, object.orgSubscriptionEndDate.high >>> 0).toNumber(true);
8190
+ if (object.seats != null)
8191
+ message.seats = object.seats >>> 0;
8192
+ if (object.dependentsPerEmployee != null)
8193
+ if ($util.Long)
8194
+ (message.dependentsPerEmployee = $util.Long.fromValue(object.dependentsPerEmployee)).unsigned = true;
8195
+ else if (typeof object.dependentsPerEmployee === "string")
8196
+ message.dependentsPerEmployee = parseInt(object.dependentsPerEmployee, 10);
8197
+ else if (typeof object.dependentsPerEmployee === "number")
8198
+ message.dependentsPerEmployee = object.dependentsPerEmployee;
8199
+ else if (typeof object.dependentsPerEmployee === "object")
8200
+ message.dependentsPerEmployee = new $util.LongBits(object.dependentsPerEmployee.low >>> 0, object.dependentsPerEmployee.high >>> 0).toNumber(true);
8201
+ if (object.isPartialPay != null)
8202
+ message.isPartialPay = Boolean(object.isPartialPay);
8203
+ if (object.isPilot != null)
8204
+ message.isPilot = Boolean(object.isPilot);
8205
+ return message;
8206
+ };
8207
+
8208
+ /**
8209
+ * Creates a plain object from a B2BSubscriptionManagement message. Also converts values to other types if specified.
8210
+ * @function toObject
8211
+ * @memberof b2b.B2BSubscriptionManagement
8212
+ * @static
8213
+ * @param {b2b.B2BSubscriptionManagement} message B2BSubscriptionManagement
8214
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8215
+ * @returns {Object.<string,*>} Plain object
8216
+ */
8217
+ B2BSubscriptionManagement.toObject = function toObject(message, options) {
8218
+ if (!options)
8219
+ options = {};
8220
+ var object = {};
8221
+ if (options.defaults) {
8222
+ object.salesforceOpportunityId = "";
8223
+ if ($util.Long) {
8224
+ var long = new $util.Long(0, 0, true);
8225
+ object.orgSubscriptionStartDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8226
+ } else
8227
+ object.orgSubscriptionStartDate = options.longs === String ? "0" : 0;
8228
+ if ($util.Long) {
8229
+ var long = new $util.Long(0, 0, true);
8230
+ object.orgSubscriptionEndDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8231
+ } else
8232
+ object.orgSubscriptionEndDate = options.longs === String ? "0" : 0;
8233
+ object.seats = 0;
8234
+ if ($util.Long) {
8235
+ var long = new $util.Long(0, 0, true);
8236
+ object.dependentsPerEmployee = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
8237
+ } else
8238
+ object.dependentsPerEmployee = options.longs === String ? "0" : 0;
8239
+ object.isPartialPay = false;
8240
+ object.isPilot = false;
8241
+ }
8242
+ if (message.salesforceOpportunityId != null && message.hasOwnProperty("salesforceOpportunityId"))
8243
+ object.salesforceOpportunityId = message.salesforceOpportunityId;
8244
+ if (message.orgSubscriptionStartDate != null && message.hasOwnProperty("orgSubscriptionStartDate"))
8245
+ if (typeof message.orgSubscriptionStartDate === "number")
8246
+ object.orgSubscriptionStartDate = options.longs === String ? String(message.orgSubscriptionStartDate) : message.orgSubscriptionStartDate;
8247
+ else
8248
+ object.orgSubscriptionStartDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionStartDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionStartDate.low >>> 0, message.orgSubscriptionStartDate.high >>> 0).toNumber(true) : message.orgSubscriptionStartDate;
8249
+ if (message.orgSubscriptionEndDate != null && message.hasOwnProperty("orgSubscriptionEndDate"))
8250
+ if (typeof message.orgSubscriptionEndDate === "number")
8251
+ object.orgSubscriptionEndDate = options.longs === String ? String(message.orgSubscriptionEndDate) : message.orgSubscriptionEndDate;
8252
+ else
8253
+ object.orgSubscriptionEndDate = options.longs === String ? $util.Long.prototype.toString.call(message.orgSubscriptionEndDate) : options.longs === Number ? new $util.LongBits(message.orgSubscriptionEndDate.low >>> 0, message.orgSubscriptionEndDate.high >>> 0).toNumber(true) : message.orgSubscriptionEndDate;
8254
+ if (message.seats != null && message.hasOwnProperty("seats"))
8255
+ object.seats = message.seats;
8256
+ if (message.dependentsPerEmployee != null && message.hasOwnProperty("dependentsPerEmployee"))
8257
+ if (typeof message.dependentsPerEmployee === "number")
8258
+ object.dependentsPerEmployee = options.longs === String ? String(message.dependentsPerEmployee) : message.dependentsPerEmployee;
8259
+ else
8260
+ object.dependentsPerEmployee = options.longs === String ? $util.Long.prototype.toString.call(message.dependentsPerEmployee) : options.longs === Number ? new $util.LongBits(message.dependentsPerEmployee.low >>> 0, message.dependentsPerEmployee.high >>> 0).toNumber(true) : message.dependentsPerEmployee;
8261
+ if (message.isPartialPay != null && message.hasOwnProperty("isPartialPay"))
8262
+ object.isPartialPay = message.isPartialPay;
8263
+ if (message.isPilot != null && message.hasOwnProperty("isPilot"))
8264
+ object.isPilot = message.isPilot;
8265
+ return object;
8266
+ };
8267
+
8268
+ /**
8269
+ * Converts this B2BSubscriptionManagement to JSON.
8270
+ * @function toJSON
8271
+ * @memberof b2b.B2BSubscriptionManagement
8272
+ * @instance
8273
+ * @returns {Object.<string,*>} JSON object
8274
+ */
8275
+ B2BSubscriptionManagement.prototype.toJSON = function toJSON() {
8276
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8277
+ };
8278
+
8279
+ return B2BSubscriptionManagement;
8280
+ })();
8281
+
7920
8282
  /**
7921
8283
  * OrgType enum.
7922
8284
  * @name b2b.OrgType
@@ -14223,6 +14585,7 @@ $root.ContentfulPlaylistCreated = (function() {
14223
14585
  * @property {Object.<string,string>|null} [schedule] ContentfulPlaylistCreated schedule
14224
14586
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistCreated accessGroups
14225
14587
  * @property {number|Long|null} [createdAt] ContentfulPlaylistCreated createdAt
14588
+ * @property {contentful.ISlugReference|null} [variationContainer] ContentfulPlaylistCreated variationContainer
14226
14589
  */
14227
14590
 
14228
14591
  /**
@@ -14345,6 +14708,14 @@ $root.ContentfulPlaylistCreated = (function() {
14345
14708
  */
14346
14709
  ContentfulPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
14347
14710
 
14711
+ /**
14712
+ * ContentfulPlaylistCreated variationContainer.
14713
+ * @member {contentful.ISlugReference|null|undefined} variationContainer
14714
+ * @memberof ContentfulPlaylistCreated
14715
+ * @instance
14716
+ */
14717
+ ContentfulPlaylistCreated.prototype.variationContainer = null;
14718
+
14348
14719
  /**
14349
14720
  * Creates a new ContentfulPlaylistCreated instance using the specified properties.
14350
14721
  * @function create
@@ -14406,6 +14777,8 @@ $root.ContentfulPlaylistCreated = (function() {
14406
14777
  $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
14407
14778
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
14408
14779
  writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
14780
+ if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
14781
+ $root.contentful.SlugReference.encode(message.variationContainer, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
14409
14782
  return writer;
14410
14783
  };
14411
14784
 
@@ -14518,6 +14891,9 @@ $root.ContentfulPlaylistCreated = (function() {
14518
14891
  case 12:
14519
14892
  message.createdAt = reader.uint64();
14520
14893
  break;
14894
+ case 13:
14895
+ message.variationContainer = $root.contentful.SlugReference.decode(reader, reader.uint32());
14896
+ break;
14521
14897
  default:
14522
14898
  reader.skipType(tag & 7);
14523
14899
  break;
@@ -14639,6 +15015,11 @@ $root.ContentfulPlaylistCreated = (function() {
14639
15015
  if (message.createdAt != null && message.hasOwnProperty("createdAt"))
14640
15016
  if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
14641
15017
  return "createdAt: integer|Long expected";
15018
+ if (message.variationContainer != null && message.hasOwnProperty("variationContainer")) {
15019
+ var error = $root.contentful.SlugReference.verify(message.variationContainer);
15020
+ if (error)
15021
+ return "variationContainer." + error;
15022
+ }
14642
15023
  return null;
14643
15024
  };
14644
15025
 
@@ -14739,6 +15120,11 @@ $root.ContentfulPlaylistCreated = (function() {
14739
15120
  message.createdAt = object.createdAt;
14740
15121
  else if (typeof object.createdAt === "object")
14741
15122
  message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
15123
+ if (object.variationContainer != null) {
15124
+ if (typeof object.variationContainer !== "object")
15125
+ throw TypeError(".ContentfulPlaylistCreated.variationContainer: object expected");
15126
+ message.variationContainer = $root.contentful.SlugReference.fromObject(object.variationContainer);
15127
+ }
14742
15128
  return message;
14743
15129
  };
14744
15130
 
@@ -14775,6 +15161,7 @@ $root.ContentfulPlaylistCreated = (function() {
14775
15161
  object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
14776
15162
  } else
14777
15163
  object.createdAt = options.longs === String ? "0" : 0;
15164
+ object.variationContainer = null;
14778
15165
  }
14779
15166
  if (message.slug != null && message.hasOwnProperty("slug"))
14780
15167
  object.slug = message.slug;
@@ -14831,6 +15218,8 @@ $root.ContentfulPlaylistCreated = (function() {
14831
15218
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
14832
15219
  else
14833
15220
  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;
15221
+ if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15222
+ object.variationContainer = $root.contentful.SlugReference.toObject(message.variationContainer, options);
14834
15223
  return object;
14835
15224
  };
14836
15225
 
@@ -14866,6 +15255,7 @@ $root.ContentfulPlaylistUpdated = (function() {
14866
15255
  * @property {Object.<string,string>|null} [schedule] ContentfulPlaylistUpdated schedule
14867
15256
  * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulPlaylistUpdated accessGroups
14868
15257
  * @property {number|Long|null} [updatedAt] ContentfulPlaylistUpdated updatedAt
15258
+ * @property {contentful.ISlugReference|null} [variationContainer] ContentfulPlaylistUpdated variationContainer
14869
15259
  */
14870
15260
 
14871
15261
  /**
@@ -14988,6 +15378,14 @@ $root.ContentfulPlaylistUpdated = (function() {
14988
15378
  */
14989
15379
  ContentfulPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
14990
15380
 
15381
+ /**
15382
+ * ContentfulPlaylistUpdated variationContainer.
15383
+ * @member {contentful.ISlugReference|null|undefined} variationContainer
15384
+ * @memberof ContentfulPlaylistUpdated
15385
+ * @instance
15386
+ */
15387
+ ContentfulPlaylistUpdated.prototype.variationContainer = null;
15388
+
14991
15389
  /**
14992
15390
  * Creates a new ContentfulPlaylistUpdated instance using the specified properties.
14993
15391
  * @function create
@@ -15049,6 +15447,8 @@ $root.ContentfulPlaylistUpdated = (function() {
15049
15447
  $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
15050
15448
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
15051
15449
  writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.updatedAt);
15450
+ if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15451
+ $root.contentful.SlugReference.encode(message.variationContainer, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
15052
15452
  return writer;
15053
15453
  };
15054
15454
 
@@ -15161,6 +15561,9 @@ $root.ContentfulPlaylistUpdated = (function() {
15161
15561
  case 12:
15162
15562
  message.updatedAt = reader.uint64();
15163
15563
  break;
15564
+ case 13:
15565
+ message.variationContainer = $root.contentful.SlugReference.decode(reader, reader.uint32());
15566
+ break;
15164
15567
  default:
15165
15568
  reader.skipType(tag & 7);
15166
15569
  break;
@@ -15282,6 +15685,11 @@ $root.ContentfulPlaylistUpdated = (function() {
15282
15685
  if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
15283
15686
  if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
15284
15687
  return "updatedAt: integer|Long expected";
15688
+ if (message.variationContainer != null && message.hasOwnProperty("variationContainer")) {
15689
+ var error = $root.contentful.SlugReference.verify(message.variationContainer);
15690
+ if (error)
15691
+ return "variationContainer." + error;
15692
+ }
15285
15693
  return null;
15286
15694
  };
15287
15695
 
@@ -15382,6 +15790,11 @@ $root.ContentfulPlaylistUpdated = (function() {
15382
15790
  message.updatedAt = object.updatedAt;
15383
15791
  else if (typeof object.updatedAt === "object")
15384
15792
  message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
15793
+ if (object.variationContainer != null) {
15794
+ if (typeof object.variationContainer !== "object")
15795
+ throw TypeError(".ContentfulPlaylistUpdated.variationContainer: object expected");
15796
+ message.variationContainer = $root.contentful.SlugReference.fromObject(object.variationContainer);
15797
+ }
15385
15798
  return message;
15386
15799
  };
15387
15800
 
@@ -15418,6 +15831,7 @@ $root.ContentfulPlaylistUpdated = (function() {
15418
15831
  object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
15419
15832
  } else
15420
15833
  object.updatedAt = options.longs === String ? "0" : 0;
15834
+ object.variationContainer = null;
15421
15835
  }
15422
15836
  if (message.slug != null && message.hasOwnProperty("slug"))
15423
15837
  object.slug = message.slug;
@@ -15474,6 +15888,8 @@ $root.ContentfulPlaylistUpdated = (function() {
15474
15888
  object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
15475
15889
  else
15476
15890
  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;
15891
+ if (message.variationContainer != null && message.hasOwnProperty("variationContainer"))
15892
+ object.variationContainer = $root.contentful.SlugReference.toObject(message.variationContainer, options);
15477
15893
  return object;
15478
15894
  };
15479
15895
 
@@ -47132,6 +47548,840 @@ $root.OrganizationUpdated = (function() {
47132
47548
  return OrganizationUpdated;
47133
47549
  })();
47134
47550
 
47551
+ $root.OrganizationSubscriptionCreated = (function() {
47552
+
47553
+ /**
47554
+ * Properties of an OrganizationSubscriptionCreated.
47555
+ * @exports IOrganizationSubscriptionCreated
47556
+ * @interface IOrganizationSubscriptionCreated
47557
+ * @property {number|Long|null} [timestamp] OrganizationSubscriptionCreated timestamp
47558
+ * @property {number|null} [dashboardUserId] OrganizationSubscriptionCreated dashboardUserId
47559
+ * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionCreated organization
47560
+ * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionCreated subscription
47561
+ */
47562
+
47563
+ /**
47564
+ * Constructs a new OrganizationSubscriptionCreated.
47565
+ * @exports OrganizationSubscriptionCreated
47566
+ * @classdesc Represents an OrganizationSubscriptionCreated.
47567
+ * @implements IOrganizationSubscriptionCreated
47568
+ * @constructor
47569
+ * @param {IOrganizationSubscriptionCreated=} [properties] Properties to set
47570
+ */
47571
+ function OrganizationSubscriptionCreated(properties) {
47572
+ if (properties)
47573
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47574
+ if (properties[keys[i]] != null)
47575
+ this[keys[i]] = properties[keys[i]];
47576
+ }
47577
+
47578
+ /**
47579
+ * OrganizationSubscriptionCreated timestamp.
47580
+ * @member {number|Long} timestamp
47581
+ * @memberof OrganizationSubscriptionCreated
47582
+ * @instance
47583
+ */
47584
+ OrganizationSubscriptionCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
47585
+
47586
+ /**
47587
+ * OrganizationSubscriptionCreated dashboardUserId.
47588
+ * @member {number} dashboardUserId
47589
+ * @memberof OrganizationSubscriptionCreated
47590
+ * @instance
47591
+ */
47592
+ OrganizationSubscriptionCreated.prototype.dashboardUserId = 0;
47593
+
47594
+ /**
47595
+ * OrganizationSubscriptionCreated organization.
47596
+ * @member {b2b.IOrganization|null|undefined} organization
47597
+ * @memberof OrganizationSubscriptionCreated
47598
+ * @instance
47599
+ */
47600
+ OrganizationSubscriptionCreated.prototype.organization = null;
47601
+
47602
+ /**
47603
+ * OrganizationSubscriptionCreated subscription.
47604
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
47605
+ * @memberof OrganizationSubscriptionCreated
47606
+ * @instance
47607
+ */
47608
+ OrganizationSubscriptionCreated.prototype.subscription = null;
47609
+
47610
+ /**
47611
+ * Creates a new OrganizationSubscriptionCreated instance using the specified properties.
47612
+ * @function create
47613
+ * @memberof OrganizationSubscriptionCreated
47614
+ * @static
47615
+ * @param {IOrganizationSubscriptionCreated=} [properties] Properties to set
47616
+ * @returns {OrganizationSubscriptionCreated} OrganizationSubscriptionCreated instance
47617
+ */
47618
+ OrganizationSubscriptionCreated.create = function create(properties) {
47619
+ return new OrganizationSubscriptionCreated(properties);
47620
+ };
47621
+
47622
+ /**
47623
+ * Encodes the specified OrganizationSubscriptionCreated message. Does not implicitly {@link OrganizationSubscriptionCreated.verify|verify} messages.
47624
+ * @function encode
47625
+ * @memberof OrganizationSubscriptionCreated
47626
+ * @static
47627
+ * @param {IOrganizationSubscriptionCreated} message OrganizationSubscriptionCreated message or plain object to encode
47628
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47629
+ * @returns {$protobuf.Writer} Writer
47630
+ */
47631
+ OrganizationSubscriptionCreated.encode = function encode(message, writer) {
47632
+ if (!writer)
47633
+ writer = $Writer.create();
47634
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
47635
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
47636
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
47637
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
47638
+ if (message.organization != null && message.hasOwnProperty("organization"))
47639
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
47640
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
47641
+ $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
47642
+ return writer;
47643
+ };
47644
+
47645
+ /**
47646
+ * Encodes the specified OrganizationSubscriptionCreated message, length delimited. Does not implicitly {@link OrganizationSubscriptionCreated.verify|verify} messages.
47647
+ * @function encodeDelimited
47648
+ * @memberof OrganizationSubscriptionCreated
47649
+ * @static
47650
+ * @param {IOrganizationSubscriptionCreated} message OrganizationSubscriptionCreated message or plain object to encode
47651
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47652
+ * @returns {$protobuf.Writer} Writer
47653
+ */
47654
+ OrganizationSubscriptionCreated.encodeDelimited = function encodeDelimited(message, writer) {
47655
+ return this.encode(message, writer).ldelim();
47656
+ };
47657
+
47658
+ /**
47659
+ * Decodes an OrganizationSubscriptionCreated message from the specified reader or buffer.
47660
+ * @function decode
47661
+ * @memberof OrganizationSubscriptionCreated
47662
+ * @static
47663
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47664
+ * @param {number} [length] Message length if known beforehand
47665
+ * @returns {OrganizationSubscriptionCreated} OrganizationSubscriptionCreated
47666
+ * @throws {Error} If the payload is not a reader or valid buffer
47667
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47668
+ */
47669
+ OrganizationSubscriptionCreated.decode = function decode(reader, length) {
47670
+ if (!(reader instanceof $Reader))
47671
+ reader = $Reader.create(reader);
47672
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionCreated();
47673
+ while (reader.pos < end) {
47674
+ var tag = reader.uint32();
47675
+ switch (tag >>> 3) {
47676
+ case 1:
47677
+ message.timestamp = reader.uint64();
47678
+ break;
47679
+ case 2:
47680
+ message.dashboardUserId = reader.uint32();
47681
+ break;
47682
+ case 3:
47683
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
47684
+ break;
47685
+ case 4:
47686
+ message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
47687
+ break;
47688
+ default:
47689
+ reader.skipType(tag & 7);
47690
+ break;
47691
+ }
47692
+ }
47693
+ return message;
47694
+ };
47695
+
47696
+ /**
47697
+ * Decodes an OrganizationSubscriptionCreated message from the specified reader or buffer, length delimited.
47698
+ * @function decodeDelimited
47699
+ * @memberof OrganizationSubscriptionCreated
47700
+ * @static
47701
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47702
+ * @returns {OrganizationSubscriptionCreated} OrganizationSubscriptionCreated
47703
+ * @throws {Error} If the payload is not a reader or valid buffer
47704
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47705
+ */
47706
+ OrganizationSubscriptionCreated.decodeDelimited = function decodeDelimited(reader) {
47707
+ if (!(reader instanceof $Reader))
47708
+ reader = new $Reader(reader);
47709
+ return this.decode(reader, reader.uint32());
47710
+ };
47711
+
47712
+ /**
47713
+ * Verifies an OrganizationSubscriptionCreated message.
47714
+ * @function verify
47715
+ * @memberof OrganizationSubscriptionCreated
47716
+ * @static
47717
+ * @param {Object.<string,*>} message Plain object to verify
47718
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47719
+ */
47720
+ OrganizationSubscriptionCreated.verify = function verify(message) {
47721
+ if (typeof message !== "object" || message === null)
47722
+ return "object expected";
47723
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
47724
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
47725
+ return "timestamp: integer|Long expected";
47726
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
47727
+ if (!$util.isInteger(message.dashboardUserId))
47728
+ return "dashboardUserId: integer expected";
47729
+ if (message.organization != null && message.hasOwnProperty("organization")) {
47730
+ var error = $root.b2b.Organization.verify(message.organization);
47731
+ if (error)
47732
+ return "organization." + error;
47733
+ }
47734
+ if (message.subscription != null && message.hasOwnProperty("subscription")) {
47735
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
47736
+ if (error)
47737
+ return "subscription." + error;
47738
+ }
47739
+ return null;
47740
+ };
47741
+
47742
+ /**
47743
+ * Creates an OrganizationSubscriptionCreated message from a plain object. Also converts values to their respective internal types.
47744
+ * @function fromObject
47745
+ * @memberof OrganizationSubscriptionCreated
47746
+ * @static
47747
+ * @param {Object.<string,*>} object Plain object
47748
+ * @returns {OrganizationSubscriptionCreated} OrganizationSubscriptionCreated
47749
+ */
47750
+ OrganizationSubscriptionCreated.fromObject = function fromObject(object) {
47751
+ if (object instanceof $root.OrganizationSubscriptionCreated)
47752
+ return object;
47753
+ var message = new $root.OrganizationSubscriptionCreated();
47754
+ if (object.timestamp != null)
47755
+ if ($util.Long)
47756
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
47757
+ else if (typeof object.timestamp === "string")
47758
+ message.timestamp = parseInt(object.timestamp, 10);
47759
+ else if (typeof object.timestamp === "number")
47760
+ message.timestamp = object.timestamp;
47761
+ else if (typeof object.timestamp === "object")
47762
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
47763
+ if (object.dashboardUserId != null)
47764
+ message.dashboardUserId = object.dashboardUserId >>> 0;
47765
+ if (object.organization != null) {
47766
+ if (typeof object.organization !== "object")
47767
+ throw TypeError(".OrganizationSubscriptionCreated.organization: object expected");
47768
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
47769
+ }
47770
+ if (object.subscription != null) {
47771
+ if (typeof object.subscription !== "object")
47772
+ throw TypeError(".OrganizationSubscriptionCreated.subscription: object expected");
47773
+ message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
47774
+ }
47775
+ return message;
47776
+ };
47777
+
47778
+ /**
47779
+ * Creates a plain object from an OrganizationSubscriptionCreated message. Also converts values to other types if specified.
47780
+ * @function toObject
47781
+ * @memberof OrganizationSubscriptionCreated
47782
+ * @static
47783
+ * @param {OrganizationSubscriptionCreated} message OrganizationSubscriptionCreated
47784
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47785
+ * @returns {Object.<string,*>} Plain object
47786
+ */
47787
+ OrganizationSubscriptionCreated.toObject = function toObject(message, options) {
47788
+ if (!options)
47789
+ options = {};
47790
+ var object = {};
47791
+ if (options.defaults) {
47792
+ if ($util.Long) {
47793
+ var long = new $util.Long(0, 0, true);
47794
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
47795
+ } else
47796
+ object.timestamp = options.longs === String ? "0" : 0;
47797
+ object.dashboardUserId = 0;
47798
+ object.organization = null;
47799
+ object.subscription = null;
47800
+ }
47801
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
47802
+ if (typeof message.timestamp === "number")
47803
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
47804
+ else
47805
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
47806
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
47807
+ object.dashboardUserId = message.dashboardUserId;
47808
+ if (message.organization != null && message.hasOwnProperty("organization"))
47809
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
47810
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
47811
+ object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
47812
+ return object;
47813
+ };
47814
+
47815
+ /**
47816
+ * Converts this OrganizationSubscriptionCreated to JSON.
47817
+ * @function toJSON
47818
+ * @memberof OrganizationSubscriptionCreated
47819
+ * @instance
47820
+ * @returns {Object.<string,*>} JSON object
47821
+ */
47822
+ OrganizationSubscriptionCreated.prototype.toJSON = function toJSON() {
47823
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47824
+ };
47825
+
47826
+ return OrganizationSubscriptionCreated;
47827
+ })();
47828
+
47829
+ $root.OrganizationSubscriptionExpired = (function() {
47830
+
47831
+ /**
47832
+ * Properties of an OrganizationSubscriptionExpired.
47833
+ * @exports IOrganizationSubscriptionExpired
47834
+ * @interface IOrganizationSubscriptionExpired
47835
+ * @property {number|Long|null} [timestamp] OrganizationSubscriptionExpired timestamp
47836
+ * @property {number|null} [dashboardUserId] OrganizationSubscriptionExpired dashboardUserId
47837
+ * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionExpired organization
47838
+ * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionExpired subscription
47839
+ */
47840
+
47841
+ /**
47842
+ * Constructs a new OrganizationSubscriptionExpired.
47843
+ * @exports OrganizationSubscriptionExpired
47844
+ * @classdesc Represents an OrganizationSubscriptionExpired.
47845
+ * @implements IOrganizationSubscriptionExpired
47846
+ * @constructor
47847
+ * @param {IOrganizationSubscriptionExpired=} [properties] Properties to set
47848
+ */
47849
+ function OrganizationSubscriptionExpired(properties) {
47850
+ if (properties)
47851
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47852
+ if (properties[keys[i]] != null)
47853
+ this[keys[i]] = properties[keys[i]];
47854
+ }
47855
+
47856
+ /**
47857
+ * OrganizationSubscriptionExpired timestamp.
47858
+ * @member {number|Long} timestamp
47859
+ * @memberof OrganizationSubscriptionExpired
47860
+ * @instance
47861
+ */
47862
+ OrganizationSubscriptionExpired.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
47863
+
47864
+ /**
47865
+ * OrganizationSubscriptionExpired dashboardUserId.
47866
+ * @member {number} dashboardUserId
47867
+ * @memberof OrganizationSubscriptionExpired
47868
+ * @instance
47869
+ */
47870
+ OrganizationSubscriptionExpired.prototype.dashboardUserId = 0;
47871
+
47872
+ /**
47873
+ * OrganizationSubscriptionExpired organization.
47874
+ * @member {b2b.IOrganization|null|undefined} organization
47875
+ * @memberof OrganizationSubscriptionExpired
47876
+ * @instance
47877
+ */
47878
+ OrganizationSubscriptionExpired.prototype.organization = null;
47879
+
47880
+ /**
47881
+ * OrganizationSubscriptionExpired subscription.
47882
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
47883
+ * @memberof OrganizationSubscriptionExpired
47884
+ * @instance
47885
+ */
47886
+ OrganizationSubscriptionExpired.prototype.subscription = null;
47887
+
47888
+ /**
47889
+ * Creates a new OrganizationSubscriptionExpired instance using the specified properties.
47890
+ * @function create
47891
+ * @memberof OrganizationSubscriptionExpired
47892
+ * @static
47893
+ * @param {IOrganizationSubscriptionExpired=} [properties] Properties to set
47894
+ * @returns {OrganizationSubscriptionExpired} OrganizationSubscriptionExpired instance
47895
+ */
47896
+ OrganizationSubscriptionExpired.create = function create(properties) {
47897
+ return new OrganizationSubscriptionExpired(properties);
47898
+ };
47899
+
47900
+ /**
47901
+ * Encodes the specified OrganizationSubscriptionExpired message. Does not implicitly {@link OrganizationSubscriptionExpired.verify|verify} messages.
47902
+ * @function encode
47903
+ * @memberof OrganizationSubscriptionExpired
47904
+ * @static
47905
+ * @param {IOrganizationSubscriptionExpired} message OrganizationSubscriptionExpired message or plain object to encode
47906
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47907
+ * @returns {$protobuf.Writer} Writer
47908
+ */
47909
+ OrganizationSubscriptionExpired.encode = function encode(message, writer) {
47910
+ if (!writer)
47911
+ writer = $Writer.create();
47912
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
47913
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
47914
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
47915
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
47916
+ if (message.organization != null && message.hasOwnProperty("organization"))
47917
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
47918
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
47919
+ $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
47920
+ return writer;
47921
+ };
47922
+
47923
+ /**
47924
+ * Encodes the specified OrganizationSubscriptionExpired message, length delimited. Does not implicitly {@link OrganizationSubscriptionExpired.verify|verify} messages.
47925
+ * @function encodeDelimited
47926
+ * @memberof OrganizationSubscriptionExpired
47927
+ * @static
47928
+ * @param {IOrganizationSubscriptionExpired} message OrganizationSubscriptionExpired message or plain object to encode
47929
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47930
+ * @returns {$protobuf.Writer} Writer
47931
+ */
47932
+ OrganizationSubscriptionExpired.encodeDelimited = function encodeDelimited(message, writer) {
47933
+ return this.encode(message, writer).ldelim();
47934
+ };
47935
+
47936
+ /**
47937
+ * Decodes an OrganizationSubscriptionExpired message from the specified reader or buffer.
47938
+ * @function decode
47939
+ * @memberof OrganizationSubscriptionExpired
47940
+ * @static
47941
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47942
+ * @param {number} [length] Message length if known beforehand
47943
+ * @returns {OrganizationSubscriptionExpired} OrganizationSubscriptionExpired
47944
+ * @throws {Error} If the payload is not a reader or valid buffer
47945
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47946
+ */
47947
+ OrganizationSubscriptionExpired.decode = function decode(reader, length) {
47948
+ if (!(reader instanceof $Reader))
47949
+ reader = $Reader.create(reader);
47950
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionExpired();
47951
+ while (reader.pos < end) {
47952
+ var tag = reader.uint32();
47953
+ switch (tag >>> 3) {
47954
+ case 1:
47955
+ message.timestamp = reader.uint64();
47956
+ break;
47957
+ case 2:
47958
+ message.dashboardUserId = reader.uint32();
47959
+ break;
47960
+ case 3:
47961
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
47962
+ break;
47963
+ case 4:
47964
+ message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
47965
+ break;
47966
+ default:
47967
+ reader.skipType(tag & 7);
47968
+ break;
47969
+ }
47970
+ }
47971
+ return message;
47972
+ };
47973
+
47974
+ /**
47975
+ * Decodes an OrganizationSubscriptionExpired message from the specified reader or buffer, length delimited.
47976
+ * @function decodeDelimited
47977
+ * @memberof OrganizationSubscriptionExpired
47978
+ * @static
47979
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47980
+ * @returns {OrganizationSubscriptionExpired} OrganizationSubscriptionExpired
47981
+ * @throws {Error} If the payload is not a reader or valid buffer
47982
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47983
+ */
47984
+ OrganizationSubscriptionExpired.decodeDelimited = function decodeDelimited(reader) {
47985
+ if (!(reader instanceof $Reader))
47986
+ reader = new $Reader(reader);
47987
+ return this.decode(reader, reader.uint32());
47988
+ };
47989
+
47990
+ /**
47991
+ * Verifies an OrganizationSubscriptionExpired message.
47992
+ * @function verify
47993
+ * @memberof OrganizationSubscriptionExpired
47994
+ * @static
47995
+ * @param {Object.<string,*>} message Plain object to verify
47996
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47997
+ */
47998
+ OrganizationSubscriptionExpired.verify = function verify(message) {
47999
+ if (typeof message !== "object" || message === null)
48000
+ return "object expected";
48001
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
48002
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
48003
+ return "timestamp: integer|Long expected";
48004
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
48005
+ if (!$util.isInteger(message.dashboardUserId))
48006
+ return "dashboardUserId: integer expected";
48007
+ if (message.organization != null && message.hasOwnProperty("organization")) {
48008
+ var error = $root.b2b.Organization.verify(message.organization);
48009
+ if (error)
48010
+ return "organization." + error;
48011
+ }
48012
+ if (message.subscription != null && message.hasOwnProperty("subscription")) {
48013
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
48014
+ if (error)
48015
+ return "subscription." + error;
48016
+ }
48017
+ return null;
48018
+ };
48019
+
48020
+ /**
48021
+ * Creates an OrganizationSubscriptionExpired message from a plain object. Also converts values to their respective internal types.
48022
+ * @function fromObject
48023
+ * @memberof OrganizationSubscriptionExpired
48024
+ * @static
48025
+ * @param {Object.<string,*>} object Plain object
48026
+ * @returns {OrganizationSubscriptionExpired} OrganizationSubscriptionExpired
48027
+ */
48028
+ OrganizationSubscriptionExpired.fromObject = function fromObject(object) {
48029
+ if (object instanceof $root.OrganizationSubscriptionExpired)
48030
+ return object;
48031
+ var message = new $root.OrganizationSubscriptionExpired();
48032
+ if (object.timestamp != null)
48033
+ if ($util.Long)
48034
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
48035
+ else if (typeof object.timestamp === "string")
48036
+ message.timestamp = parseInt(object.timestamp, 10);
48037
+ else if (typeof object.timestamp === "number")
48038
+ message.timestamp = object.timestamp;
48039
+ else if (typeof object.timestamp === "object")
48040
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
48041
+ if (object.dashboardUserId != null)
48042
+ message.dashboardUserId = object.dashboardUserId >>> 0;
48043
+ if (object.organization != null) {
48044
+ if (typeof object.organization !== "object")
48045
+ throw TypeError(".OrganizationSubscriptionExpired.organization: object expected");
48046
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
48047
+ }
48048
+ if (object.subscription != null) {
48049
+ if (typeof object.subscription !== "object")
48050
+ throw TypeError(".OrganizationSubscriptionExpired.subscription: object expected");
48051
+ message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
48052
+ }
48053
+ return message;
48054
+ };
48055
+
48056
+ /**
48057
+ * Creates a plain object from an OrganizationSubscriptionExpired message. Also converts values to other types if specified.
48058
+ * @function toObject
48059
+ * @memberof OrganizationSubscriptionExpired
48060
+ * @static
48061
+ * @param {OrganizationSubscriptionExpired} message OrganizationSubscriptionExpired
48062
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
48063
+ * @returns {Object.<string,*>} Plain object
48064
+ */
48065
+ OrganizationSubscriptionExpired.toObject = function toObject(message, options) {
48066
+ if (!options)
48067
+ options = {};
48068
+ var object = {};
48069
+ if (options.defaults) {
48070
+ if ($util.Long) {
48071
+ var long = new $util.Long(0, 0, true);
48072
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
48073
+ } else
48074
+ object.timestamp = options.longs === String ? "0" : 0;
48075
+ object.dashboardUserId = 0;
48076
+ object.organization = null;
48077
+ object.subscription = null;
48078
+ }
48079
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
48080
+ if (typeof message.timestamp === "number")
48081
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
48082
+ else
48083
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
48084
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
48085
+ object.dashboardUserId = message.dashboardUserId;
48086
+ if (message.organization != null && message.hasOwnProperty("organization"))
48087
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
48088
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
48089
+ object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
48090
+ return object;
48091
+ };
48092
+
48093
+ /**
48094
+ * Converts this OrganizationSubscriptionExpired to JSON.
48095
+ * @function toJSON
48096
+ * @memberof OrganizationSubscriptionExpired
48097
+ * @instance
48098
+ * @returns {Object.<string,*>} JSON object
48099
+ */
48100
+ OrganizationSubscriptionExpired.prototype.toJSON = function toJSON() {
48101
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
48102
+ };
48103
+
48104
+ return OrganizationSubscriptionExpired;
48105
+ })();
48106
+
48107
+ $root.OrganizationSubscriptionAmended = (function() {
48108
+
48109
+ /**
48110
+ * Properties of an OrganizationSubscriptionAmended.
48111
+ * @exports IOrganizationSubscriptionAmended
48112
+ * @interface IOrganizationSubscriptionAmended
48113
+ * @property {number|Long|null} [timestamp] OrganizationSubscriptionAmended timestamp
48114
+ * @property {number|null} [dashboardUserId] OrganizationSubscriptionAmended dashboardUserId
48115
+ * @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionAmended organization
48116
+ * @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionAmended subscription
48117
+ */
48118
+
48119
+ /**
48120
+ * Constructs a new OrganizationSubscriptionAmended.
48121
+ * @exports OrganizationSubscriptionAmended
48122
+ * @classdesc Represents an OrganizationSubscriptionAmended.
48123
+ * @implements IOrganizationSubscriptionAmended
48124
+ * @constructor
48125
+ * @param {IOrganizationSubscriptionAmended=} [properties] Properties to set
48126
+ */
48127
+ function OrganizationSubscriptionAmended(properties) {
48128
+ if (properties)
48129
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
48130
+ if (properties[keys[i]] != null)
48131
+ this[keys[i]] = properties[keys[i]];
48132
+ }
48133
+
48134
+ /**
48135
+ * OrganizationSubscriptionAmended timestamp.
48136
+ * @member {number|Long} timestamp
48137
+ * @memberof OrganizationSubscriptionAmended
48138
+ * @instance
48139
+ */
48140
+ OrganizationSubscriptionAmended.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
48141
+
48142
+ /**
48143
+ * OrganizationSubscriptionAmended dashboardUserId.
48144
+ * @member {number} dashboardUserId
48145
+ * @memberof OrganizationSubscriptionAmended
48146
+ * @instance
48147
+ */
48148
+ OrganizationSubscriptionAmended.prototype.dashboardUserId = 0;
48149
+
48150
+ /**
48151
+ * OrganizationSubscriptionAmended organization.
48152
+ * @member {b2b.IOrganization|null|undefined} organization
48153
+ * @memberof OrganizationSubscriptionAmended
48154
+ * @instance
48155
+ */
48156
+ OrganizationSubscriptionAmended.prototype.organization = null;
48157
+
48158
+ /**
48159
+ * OrganizationSubscriptionAmended subscription.
48160
+ * @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
48161
+ * @memberof OrganizationSubscriptionAmended
48162
+ * @instance
48163
+ */
48164
+ OrganizationSubscriptionAmended.prototype.subscription = null;
48165
+
48166
+ /**
48167
+ * Creates a new OrganizationSubscriptionAmended instance using the specified properties.
48168
+ * @function create
48169
+ * @memberof OrganizationSubscriptionAmended
48170
+ * @static
48171
+ * @param {IOrganizationSubscriptionAmended=} [properties] Properties to set
48172
+ * @returns {OrganizationSubscriptionAmended} OrganizationSubscriptionAmended instance
48173
+ */
48174
+ OrganizationSubscriptionAmended.create = function create(properties) {
48175
+ return new OrganizationSubscriptionAmended(properties);
48176
+ };
48177
+
48178
+ /**
48179
+ * Encodes the specified OrganizationSubscriptionAmended message. Does not implicitly {@link OrganizationSubscriptionAmended.verify|verify} messages.
48180
+ * @function encode
48181
+ * @memberof OrganizationSubscriptionAmended
48182
+ * @static
48183
+ * @param {IOrganizationSubscriptionAmended} message OrganizationSubscriptionAmended message or plain object to encode
48184
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48185
+ * @returns {$protobuf.Writer} Writer
48186
+ */
48187
+ OrganizationSubscriptionAmended.encode = function encode(message, writer) {
48188
+ if (!writer)
48189
+ writer = $Writer.create();
48190
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
48191
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
48192
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
48193
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
48194
+ if (message.organization != null && message.hasOwnProperty("organization"))
48195
+ $root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
48196
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
48197
+ $root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
48198
+ return writer;
48199
+ };
48200
+
48201
+ /**
48202
+ * Encodes the specified OrganizationSubscriptionAmended message, length delimited. Does not implicitly {@link OrganizationSubscriptionAmended.verify|verify} messages.
48203
+ * @function encodeDelimited
48204
+ * @memberof OrganizationSubscriptionAmended
48205
+ * @static
48206
+ * @param {IOrganizationSubscriptionAmended} message OrganizationSubscriptionAmended message or plain object to encode
48207
+ * @param {$protobuf.Writer} [writer] Writer to encode to
48208
+ * @returns {$protobuf.Writer} Writer
48209
+ */
48210
+ OrganizationSubscriptionAmended.encodeDelimited = function encodeDelimited(message, writer) {
48211
+ return this.encode(message, writer).ldelim();
48212
+ };
48213
+
48214
+ /**
48215
+ * Decodes an OrganizationSubscriptionAmended message from the specified reader or buffer.
48216
+ * @function decode
48217
+ * @memberof OrganizationSubscriptionAmended
48218
+ * @static
48219
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48220
+ * @param {number} [length] Message length if known beforehand
48221
+ * @returns {OrganizationSubscriptionAmended} OrganizationSubscriptionAmended
48222
+ * @throws {Error} If the payload is not a reader or valid buffer
48223
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48224
+ */
48225
+ OrganizationSubscriptionAmended.decode = function decode(reader, length) {
48226
+ if (!(reader instanceof $Reader))
48227
+ reader = $Reader.create(reader);
48228
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionAmended();
48229
+ while (reader.pos < end) {
48230
+ var tag = reader.uint32();
48231
+ switch (tag >>> 3) {
48232
+ case 1:
48233
+ message.timestamp = reader.uint64();
48234
+ break;
48235
+ case 2:
48236
+ message.dashboardUserId = reader.uint32();
48237
+ break;
48238
+ case 3:
48239
+ message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
48240
+ break;
48241
+ case 4:
48242
+ message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
48243
+ break;
48244
+ default:
48245
+ reader.skipType(tag & 7);
48246
+ break;
48247
+ }
48248
+ }
48249
+ return message;
48250
+ };
48251
+
48252
+ /**
48253
+ * Decodes an OrganizationSubscriptionAmended message from the specified reader or buffer, length delimited.
48254
+ * @function decodeDelimited
48255
+ * @memberof OrganizationSubscriptionAmended
48256
+ * @static
48257
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
48258
+ * @returns {OrganizationSubscriptionAmended} OrganizationSubscriptionAmended
48259
+ * @throws {Error} If the payload is not a reader or valid buffer
48260
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
48261
+ */
48262
+ OrganizationSubscriptionAmended.decodeDelimited = function decodeDelimited(reader) {
48263
+ if (!(reader instanceof $Reader))
48264
+ reader = new $Reader(reader);
48265
+ return this.decode(reader, reader.uint32());
48266
+ };
48267
+
48268
+ /**
48269
+ * Verifies an OrganizationSubscriptionAmended message.
48270
+ * @function verify
48271
+ * @memberof OrganizationSubscriptionAmended
48272
+ * @static
48273
+ * @param {Object.<string,*>} message Plain object to verify
48274
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
48275
+ */
48276
+ OrganizationSubscriptionAmended.verify = function verify(message) {
48277
+ if (typeof message !== "object" || message === null)
48278
+ return "object expected";
48279
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
48280
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
48281
+ return "timestamp: integer|Long expected";
48282
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
48283
+ if (!$util.isInteger(message.dashboardUserId))
48284
+ return "dashboardUserId: integer expected";
48285
+ if (message.organization != null && message.hasOwnProperty("organization")) {
48286
+ var error = $root.b2b.Organization.verify(message.organization);
48287
+ if (error)
48288
+ return "organization." + error;
48289
+ }
48290
+ if (message.subscription != null && message.hasOwnProperty("subscription")) {
48291
+ var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
48292
+ if (error)
48293
+ return "subscription." + error;
48294
+ }
48295
+ return null;
48296
+ };
48297
+
48298
+ /**
48299
+ * Creates an OrganizationSubscriptionAmended message from a plain object. Also converts values to their respective internal types.
48300
+ * @function fromObject
48301
+ * @memberof OrganizationSubscriptionAmended
48302
+ * @static
48303
+ * @param {Object.<string,*>} object Plain object
48304
+ * @returns {OrganizationSubscriptionAmended} OrganizationSubscriptionAmended
48305
+ */
48306
+ OrganizationSubscriptionAmended.fromObject = function fromObject(object) {
48307
+ if (object instanceof $root.OrganizationSubscriptionAmended)
48308
+ return object;
48309
+ var message = new $root.OrganizationSubscriptionAmended();
48310
+ if (object.timestamp != null)
48311
+ if ($util.Long)
48312
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
48313
+ else if (typeof object.timestamp === "string")
48314
+ message.timestamp = parseInt(object.timestamp, 10);
48315
+ else if (typeof object.timestamp === "number")
48316
+ message.timestamp = object.timestamp;
48317
+ else if (typeof object.timestamp === "object")
48318
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
48319
+ if (object.dashboardUserId != null)
48320
+ message.dashboardUserId = object.dashboardUserId >>> 0;
48321
+ if (object.organization != null) {
48322
+ if (typeof object.organization !== "object")
48323
+ throw TypeError(".OrganizationSubscriptionAmended.organization: object expected");
48324
+ message.organization = $root.b2b.Organization.fromObject(object.organization);
48325
+ }
48326
+ if (object.subscription != null) {
48327
+ if (typeof object.subscription !== "object")
48328
+ throw TypeError(".OrganizationSubscriptionAmended.subscription: object expected");
48329
+ message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
48330
+ }
48331
+ return message;
48332
+ };
48333
+
48334
+ /**
48335
+ * Creates a plain object from an OrganizationSubscriptionAmended message. Also converts values to other types if specified.
48336
+ * @function toObject
48337
+ * @memberof OrganizationSubscriptionAmended
48338
+ * @static
48339
+ * @param {OrganizationSubscriptionAmended} message OrganizationSubscriptionAmended
48340
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
48341
+ * @returns {Object.<string,*>} Plain object
48342
+ */
48343
+ OrganizationSubscriptionAmended.toObject = function toObject(message, options) {
48344
+ if (!options)
48345
+ options = {};
48346
+ var object = {};
48347
+ if (options.defaults) {
48348
+ if ($util.Long) {
48349
+ var long = new $util.Long(0, 0, true);
48350
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
48351
+ } else
48352
+ object.timestamp = options.longs === String ? "0" : 0;
48353
+ object.dashboardUserId = 0;
48354
+ object.organization = null;
48355
+ object.subscription = null;
48356
+ }
48357
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
48358
+ if (typeof message.timestamp === "number")
48359
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
48360
+ else
48361
+ object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
48362
+ if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
48363
+ object.dashboardUserId = message.dashboardUserId;
48364
+ if (message.organization != null && message.hasOwnProperty("organization"))
48365
+ object.organization = $root.b2b.Organization.toObject(message.organization, options);
48366
+ if (message.subscription != null && message.hasOwnProperty("subscription"))
48367
+ object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
48368
+ return object;
48369
+ };
48370
+
48371
+ /**
48372
+ * Converts this OrganizationSubscriptionAmended to JSON.
48373
+ * @function toJSON
48374
+ * @memberof OrganizationSubscriptionAmended
48375
+ * @instance
48376
+ * @returns {Object.<string,*>} JSON object
48377
+ */
48378
+ OrganizationSubscriptionAmended.prototype.toJSON = function toJSON() {
48379
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
48380
+ };
48381
+
48382
+ return OrganizationSubscriptionAmended;
48383
+ })();
48384
+
47135
48385
  $root.FamilyMemberAdded = (function() {
47136
48386
 
47137
48387
  /**