@headspace/protos-events 1.209.0 → 1.210.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 +450 -0
- package/lib/index.js +1196 -0
- 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
|
|
@@ -47132,6 +47494,840 @@ $root.OrganizationUpdated = (function() {
|
|
|
47132
47494
|
return OrganizationUpdated;
|
|
47133
47495
|
})();
|
|
47134
47496
|
|
|
47497
|
+
$root.OrganizationSubscriptionCreated = (function() {
|
|
47498
|
+
|
|
47499
|
+
/**
|
|
47500
|
+
* Properties of an OrganizationSubscriptionCreated.
|
|
47501
|
+
* @exports IOrganizationSubscriptionCreated
|
|
47502
|
+
* @interface IOrganizationSubscriptionCreated
|
|
47503
|
+
* @property {number|Long|null} [timestamp] OrganizationSubscriptionCreated timestamp
|
|
47504
|
+
* @property {number|null} [dashboardUserId] OrganizationSubscriptionCreated dashboardUserId
|
|
47505
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionCreated organization
|
|
47506
|
+
* @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionCreated subscription
|
|
47507
|
+
*/
|
|
47508
|
+
|
|
47509
|
+
/**
|
|
47510
|
+
* Constructs a new OrganizationSubscriptionCreated.
|
|
47511
|
+
* @exports OrganizationSubscriptionCreated
|
|
47512
|
+
* @classdesc Represents an OrganizationSubscriptionCreated.
|
|
47513
|
+
* @implements IOrganizationSubscriptionCreated
|
|
47514
|
+
* @constructor
|
|
47515
|
+
* @param {IOrganizationSubscriptionCreated=} [properties] Properties to set
|
|
47516
|
+
*/
|
|
47517
|
+
function OrganizationSubscriptionCreated(properties) {
|
|
47518
|
+
if (properties)
|
|
47519
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47520
|
+
if (properties[keys[i]] != null)
|
|
47521
|
+
this[keys[i]] = properties[keys[i]];
|
|
47522
|
+
}
|
|
47523
|
+
|
|
47524
|
+
/**
|
|
47525
|
+
* OrganizationSubscriptionCreated timestamp.
|
|
47526
|
+
* @member {number|Long} timestamp
|
|
47527
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47528
|
+
* @instance
|
|
47529
|
+
*/
|
|
47530
|
+
OrganizationSubscriptionCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
47531
|
+
|
|
47532
|
+
/**
|
|
47533
|
+
* OrganizationSubscriptionCreated dashboardUserId.
|
|
47534
|
+
* @member {number} dashboardUserId
|
|
47535
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47536
|
+
* @instance
|
|
47537
|
+
*/
|
|
47538
|
+
OrganizationSubscriptionCreated.prototype.dashboardUserId = 0;
|
|
47539
|
+
|
|
47540
|
+
/**
|
|
47541
|
+
* OrganizationSubscriptionCreated organization.
|
|
47542
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
47543
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47544
|
+
* @instance
|
|
47545
|
+
*/
|
|
47546
|
+
OrganizationSubscriptionCreated.prototype.organization = null;
|
|
47547
|
+
|
|
47548
|
+
/**
|
|
47549
|
+
* OrganizationSubscriptionCreated subscription.
|
|
47550
|
+
* @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
|
|
47551
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47552
|
+
* @instance
|
|
47553
|
+
*/
|
|
47554
|
+
OrganizationSubscriptionCreated.prototype.subscription = null;
|
|
47555
|
+
|
|
47556
|
+
/**
|
|
47557
|
+
* Creates a new OrganizationSubscriptionCreated instance using the specified properties.
|
|
47558
|
+
* @function create
|
|
47559
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47560
|
+
* @static
|
|
47561
|
+
* @param {IOrganizationSubscriptionCreated=} [properties] Properties to set
|
|
47562
|
+
* @returns {OrganizationSubscriptionCreated} OrganizationSubscriptionCreated instance
|
|
47563
|
+
*/
|
|
47564
|
+
OrganizationSubscriptionCreated.create = function create(properties) {
|
|
47565
|
+
return new OrganizationSubscriptionCreated(properties);
|
|
47566
|
+
};
|
|
47567
|
+
|
|
47568
|
+
/**
|
|
47569
|
+
* Encodes the specified OrganizationSubscriptionCreated message. Does not implicitly {@link OrganizationSubscriptionCreated.verify|verify} messages.
|
|
47570
|
+
* @function encode
|
|
47571
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47572
|
+
* @static
|
|
47573
|
+
* @param {IOrganizationSubscriptionCreated} message OrganizationSubscriptionCreated message or plain object to encode
|
|
47574
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47575
|
+
* @returns {$protobuf.Writer} Writer
|
|
47576
|
+
*/
|
|
47577
|
+
OrganizationSubscriptionCreated.encode = function encode(message, writer) {
|
|
47578
|
+
if (!writer)
|
|
47579
|
+
writer = $Writer.create();
|
|
47580
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47581
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
47582
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47583
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
|
|
47584
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
47585
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
47586
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
47587
|
+
$root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
47588
|
+
return writer;
|
|
47589
|
+
};
|
|
47590
|
+
|
|
47591
|
+
/**
|
|
47592
|
+
* Encodes the specified OrganizationSubscriptionCreated message, length delimited. Does not implicitly {@link OrganizationSubscriptionCreated.verify|verify} messages.
|
|
47593
|
+
* @function encodeDelimited
|
|
47594
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47595
|
+
* @static
|
|
47596
|
+
* @param {IOrganizationSubscriptionCreated} message OrganizationSubscriptionCreated message or plain object to encode
|
|
47597
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47598
|
+
* @returns {$protobuf.Writer} Writer
|
|
47599
|
+
*/
|
|
47600
|
+
OrganizationSubscriptionCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47601
|
+
return this.encode(message, writer).ldelim();
|
|
47602
|
+
};
|
|
47603
|
+
|
|
47604
|
+
/**
|
|
47605
|
+
* Decodes an OrganizationSubscriptionCreated message from the specified reader or buffer.
|
|
47606
|
+
* @function decode
|
|
47607
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47608
|
+
* @static
|
|
47609
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47610
|
+
* @param {number} [length] Message length if known beforehand
|
|
47611
|
+
* @returns {OrganizationSubscriptionCreated} OrganizationSubscriptionCreated
|
|
47612
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47613
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47614
|
+
*/
|
|
47615
|
+
OrganizationSubscriptionCreated.decode = function decode(reader, length) {
|
|
47616
|
+
if (!(reader instanceof $Reader))
|
|
47617
|
+
reader = $Reader.create(reader);
|
|
47618
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionCreated();
|
|
47619
|
+
while (reader.pos < end) {
|
|
47620
|
+
var tag = reader.uint32();
|
|
47621
|
+
switch (tag >>> 3) {
|
|
47622
|
+
case 1:
|
|
47623
|
+
message.timestamp = reader.uint64();
|
|
47624
|
+
break;
|
|
47625
|
+
case 2:
|
|
47626
|
+
message.dashboardUserId = reader.uint32();
|
|
47627
|
+
break;
|
|
47628
|
+
case 3:
|
|
47629
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
47630
|
+
break;
|
|
47631
|
+
case 4:
|
|
47632
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
|
|
47633
|
+
break;
|
|
47634
|
+
default:
|
|
47635
|
+
reader.skipType(tag & 7);
|
|
47636
|
+
break;
|
|
47637
|
+
}
|
|
47638
|
+
}
|
|
47639
|
+
return message;
|
|
47640
|
+
};
|
|
47641
|
+
|
|
47642
|
+
/**
|
|
47643
|
+
* Decodes an OrganizationSubscriptionCreated message from the specified reader or buffer, length delimited.
|
|
47644
|
+
* @function decodeDelimited
|
|
47645
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47646
|
+
* @static
|
|
47647
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47648
|
+
* @returns {OrganizationSubscriptionCreated} OrganizationSubscriptionCreated
|
|
47649
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47650
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47651
|
+
*/
|
|
47652
|
+
OrganizationSubscriptionCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
47653
|
+
if (!(reader instanceof $Reader))
|
|
47654
|
+
reader = new $Reader(reader);
|
|
47655
|
+
return this.decode(reader, reader.uint32());
|
|
47656
|
+
};
|
|
47657
|
+
|
|
47658
|
+
/**
|
|
47659
|
+
* Verifies an OrganizationSubscriptionCreated message.
|
|
47660
|
+
* @function verify
|
|
47661
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47662
|
+
* @static
|
|
47663
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47664
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47665
|
+
*/
|
|
47666
|
+
OrganizationSubscriptionCreated.verify = function verify(message) {
|
|
47667
|
+
if (typeof message !== "object" || message === null)
|
|
47668
|
+
return "object expected";
|
|
47669
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47670
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
47671
|
+
return "timestamp: integer|Long expected";
|
|
47672
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47673
|
+
if (!$util.isInteger(message.dashboardUserId))
|
|
47674
|
+
return "dashboardUserId: integer expected";
|
|
47675
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
47676
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
47677
|
+
if (error)
|
|
47678
|
+
return "organization." + error;
|
|
47679
|
+
}
|
|
47680
|
+
if (message.subscription != null && message.hasOwnProperty("subscription")) {
|
|
47681
|
+
var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
|
|
47682
|
+
if (error)
|
|
47683
|
+
return "subscription." + error;
|
|
47684
|
+
}
|
|
47685
|
+
return null;
|
|
47686
|
+
};
|
|
47687
|
+
|
|
47688
|
+
/**
|
|
47689
|
+
* Creates an OrganizationSubscriptionCreated message from a plain object. Also converts values to their respective internal types.
|
|
47690
|
+
* @function fromObject
|
|
47691
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47692
|
+
* @static
|
|
47693
|
+
* @param {Object.<string,*>} object Plain object
|
|
47694
|
+
* @returns {OrganizationSubscriptionCreated} OrganizationSubscriptionCreated
|
|
47695
|
+
*/
|
|
47696
|
+
OrganizationSubscriptionCreated.fromObject = function fromObject(object) {
|
|
47697
|
+
if (object instanceof $root.OrganizationSubscriptionCreated)
|
|
47698
|
+
return object;
|
|
47699
|
+
var message = new $root.OrganizationSubscriptionCreated();
|
|
47700
|
+
if (object.timestamp != null)
|
|
47701
|
+
if ($util.Long)
|
|
47702
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
47703
|
+
else if (typeof object.timestamp === "string")
|
|
47704
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
47705
|
+
else if (typeof object.timestamp === "number")
|
|
47706
|
+
message.timestamp = object.timestamp;
|
|
47707
|
+
else if (typeof object.timestamp === "object")
|
|
47708
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
47709
|
+
if (object.dashboardUserId != null)
|
|
47710
|
+
message.dashboardUserId = object.dashboardUserId >>> 0;
|
|
47711
|
+
if (object.organization != null) {
|
|
47712
|
+
if (typeof object.organization !== "object")
|
|
47713
|
+
throw TypeError(".OrganizationSubscriptionCreated.organization: object expected");
|
|
47714
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
47715
|
+
}
|
|
47716
|
+
if (object.subscription != null) {
|
|
47717
|
+
if (typeof object.subscription !== "object")
|
|
47718
|
+
throw TypeError(".OrganizationSubscriptionCreated.subscription: object expected");
|
|
47719
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
|
|
47720
|
+
}
|
|
47721
|
+
return message;
|
|
47722
|
+
};
|
|
47723
|
+
|
|
47724
|
+
/**
|
|
47725
|
+
* Creates a plain object from an OrganizationSubscriptionCreated message. Also converts values to other types if specified.
|
|
47726
|
+
* @function toObject
|
|
47727
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47728
|
+
* @static
|
|
47729
|
+
* @param {OrganizationSubscriptionCreated} message OrganizationSubscriptionCreated
|
|
47730
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47731
|
+
* @returns {Object.<string,*>} Plain object
|
|
47732
|
+
*/
|
|
47733
|
+
OrganizationSubscriptionCreated.toObject = function toObject(message, options) {
|
|
47734
|
+
if (!options)
|
|
47735
|
+
options = {};
|
|
47736
|
+
var object = {};
|
|
47737
|
+
if (options.defaults) {
|
|
47738
|
+
if ($util.Long) {
|
|
47739
|
+
var long = new $util.Long(0, 0, true);
|
|
47740
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
47741
|
+
} else
|
|
47742
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
47743
|
+
object.dashboardUserId = 0;
|
|
47744
|
+
object.organization = null;
|
|
47745
|
+
object.subscription = null;
|
|
47746
|
+
}
|
|
47747
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47748
|
+
if (typeof message.timestamp === "number")
|
|
47749
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
47750
|
+
else
|
|
47751
|
+
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;
|
|
47752
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47753
|
+
object.dashboardUserId = message.dashboardUserId;
|
|
47754
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
47755
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
47756
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
47757
|
+
object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
|
|
47758
|
+
return object;
|
|
47759
|
+
};
|
|
47760
|
+
|
|
47761
|
+
/**
|
|
47762
|
+
* Converts this OrganizationSubscriptionCreated to JSON.
|
|
47763
|
+
* @function toJSON
|
|
47764
|
+
* @memberof OrganizationSubscriptionCreated
|
|
47765
|
+
* @instance
|
|
47766
|
+
* @returns {Object.<string,*>} JSON object
|
|
47767
|
+
*/
|
|
47768
|
+
OrganizationSubscriptionCreated.prototype.toJSON = function toJSON() {
|
|
47769
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47770
|
+
};
|
|
47771
|
+
|
|
47772
|
+
return OrganizationSubscriptionCreated;
|
|
47773
|
+
})();
|
|
47774
|
+
|
|
47775
|
+
$root.OrganizationSubscriptionExpired = (function() {
|
|
47776
|
+
|
|
47777
|
+
/**
|
|
47778
|
+
* Properties of an OrganizationSubscriptionExpired.
|
|
47779
|
+
* @exports IOrganizationSubscriptionExpired
|
|
47780
|
+
* @interface IOrganizationSubscriptionExpired
|
|
47781
|
+
* @property {number|Long|null} [timestamp] OrganizationSubscriptionExpired timestamp
|
|
47782
|
+
* @property {number|null} [dashboardUserId] OrganizationSubscriptionExpired dashboardUserId
|
|
47783
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionExpired organization
|
|
47784
|
+
* @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionExpired subscription
|
|
47785
|
+
*/
|
|
47786
|
+
|
|
47787
|
+
/**
|
|
47788
|
+
* Constructs a new OrganizationSubscriptionExpired.
|
|
47789
|
+
* @exports OrganizationSubscriptionExpired
|
|
47790
|
+
* @classdesc Represents an OrganizationSubscriptionExpired.
|
|
47791
|
+
* @implements IOrganizationSubscriptionExpired
|
|
47792
|
+
* @constructor
|
|
47793
|
+
* @param {IOrganizationSubscriptionExpired=} [properties] Properties to set
|
|
47794
|
+
*/
|
|
47795
|
+
function OrganizationSubscriptionExpired(properties) {
|
|
47796
|
+
if (properties)
|
|
47797
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47798
|
+
if (properties[keys[i]] != null)
|
|
47799
|
+
this[keys[i]] = properties[keys[i]];
|
|
47800
|
+
}
|
|
47801
|
+
|
|
47802
|
+
/**
|
|
47803
|
+
* OrganizationSubscriptionExpired timestamp.
|
|
47804
|
+
* @member {number|Long} timestamp
|
|
47805
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47806
|
+
* @instance
|
|
47807
|
+
*/
|
|
47808
|
+
OrganizationSubscriptionExpired.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
47809
|
+
|
|
47810
|
+
/**
|
|
47811
|
+
* OrganizationSubscriptionExpired dashboardUserId.
|
|
47812
|
+
* @member {number} dashboardUserId
|
|
47813
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47814
|
+
* @instance
|
|
47815
|
+
*/
|
|
47816
|
+
OrganizationSubscriptionExpired.prototype.dashboardUserId = 0;
|
|
47817
|
+
|
|
47818
|
+
/**
|
|
47819
|
+
* OrganizationSubscriptionExpired organization.
|
|
47820
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
47821
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47822
|
+
* @instance
|
|
47823
|
+
*/
|
|
47824
|
+
OrganizationSubscriptionExpired.prototype.organization = null;
|
|
47825
|
+
|
|
47826
|
+
/**
|
|
47827
|
+
* OrganizationSubscriptionExpired subscription.
|
|
47828
|
+
* @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
|
|
47829
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47830
|
+
* @instance
|
|
47831
|
+
*/
|
|
47832
|
+
OrganizationSubscriptionExpired.prototype.subscription = null;
|
|
47833
|
+
|
|
47834
|
+
/**
|
|
47835
|
+
* Creates a new OrganizationSubscriptionExpired instance using the specified properties.
|
|
47836
|
+
* @function create
|
|
47837
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47838
|
+
* @static
|
|
47839
|
+
* @param {IOrganizationSubscriptionExpired=} [properties] Properties to set
|
|
47840
|
+
* @returns {OrganizationSubscriptionExpired} OrganizationSubscriptionExpired instance
|
|
47841
|
+
*/
|
|
47842
|
+
OrganizationSubscriptionExpired.create = function create(properties) {
|
|
47843
|
+
return new OrganizationSubscriptionExpired(properties);
|
|
47844
|
+
};
|
|
47845
|
+
|
|
47846
|
+
/**
|
|
47847
|
+
* Encodes the specified OrganizationSubscriptionExpired message. Does not implicitly {@link OrganizationSubscriptionExpired.verify|verify} messages.
|
|
47848
|
+
* @function encode
|
|
47849
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47850
|
+
* @static
|
|
47851
|
+
* @param {IOrganizationSubscriptionExpired} message OrganizationSubscriptionExpired message or plain object to encode
|
|
47852
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47853
|
+
* @returns {$protobuf.Writer} Writer
|
|
47854
|
+
*/
|
|
47855
|
+
OrganizationSubscriptionExpired.encode = function encode(message, writer) {
|
|
47856
|
+
if (!writer)
|
|
47857
|
+
writer = $Writer.create();
|
|
47858
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47859
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
47860
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47861
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
|
|
47862
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
47863
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
47864
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
47865
|
+
$root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
47866
|
+
return writer;
|
|
47867
|
+
};
|
|
47868
|
+
|
|
47869
|
+
/**
|
|
47870
|
+
* Encodes the specified OrganizationSubscriptionExpired message, length delimited. Does not implicitly {@link OrganizationSubscriptionExpired.verify|verify} messages.
|
|
47871
|
+
* @function encodeDelimited
|
|
47872
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47873
|
+
* @static
|
|
47874
|
+
* @param {IOrganizationSubscriptionExpired} message OrganizationSubscriptionExpired message or plain object to encode
|
|
47875
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47876
|
+
* @returns {$protobuf.Writer} Writer
|
|
47877
|
+
*/
|
|
47878
|
+
OrganizationSubscriptionExpired.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47879
|
+
return this.encode(message, writer).ldelim();
|
|
47880
|
+
};
|
|
47881
|
+
|
|
47882
|
+
/**
|
|
47883
|
+
* Decodes an OrganizationSubscriptionExpired message from the specified reader or buffer.
|
|
47884
|
+
* @function decode
|
|
47885
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47886
|
+
* @static
|
|
47887
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47888
|
+
* @param {number} [length] Message length if known beforehand
|
|
47889
|
+
* @returns {OrganizationSubscriptionExpired} OrganizationSubscriptionExpired
|
|
47890
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47891
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47892
|
+
*/
|
|
47893
|
+
OrganizationSubscriptionExpired.decode = function decode(reader, length) {
|
|
47894
|
+
if (!(reader instanceof $Reader))
|
|
47895
|
+
reader = $Reader.create(reader);
|
|
47896
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionExpired();
|
|
47897
|
+
while (reader.pos < end) {
|
|
47898
|
+
var tag = reader.uint32();
|
|
47899
|
+
switch (tag >>> 3) {
|
|
47900
|
+
case 1:
|
|
47901
|
+
message.timestamp = reader.uint64();
|
|
47902
|
+
break;
|
|
47903
|
+
case 2:
|
|
47904
|
+
message.dashboardUserId = reader.uint32();
|
|
47905
|
+
break;
|
|
47906
|
+
case 3:
|
|
47907
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
47908
|
+
break;
|
|
47909
|
+
case 4:
|
|
47910
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
|
|
47911
|
+
break;
|
|
47912
|
+
default:
|
|
47913
|
+
reader.skipType(tag & 7);
|
|
47914
|
+
break;
|
|
47915
|
+
}
|
|
47916
|
+
}
|
|
47917
|
+
return message;
|
|
47918
|
+
};
|
|
47919
|
+
|
|
47920
|
+
/**
|
|
47921
|
+
* Decodes an OrganizationSubscriptionExpired message from the specified reader or buffer, length delimited.
|
|
47922
|
+
* @function decodeDelimited
|
|
47923
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47924
|
+
* @static
|
|
47925
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47926
|
+
* @returns {OrganizationSubscriptionExpired} OrganizationSubscriptionExpired
|
|
47927
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47928
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47929
|
+
*/
|
|
47930
|
+
OrganizationSubscriptionExpired.decodeDelimited = function decodeDelimited(reader) {
|
|
47931
|
+
if (!(reader instanceof $Reader))
|
|
47932
|
+
reader = new $Reader(reader);
|
|
47933
|
+
return this.decode(reader, reader.uint32());
|
|
47934
|
+
};
|
|
47935
|
+
|
|
47936
|
+
/**
|
|
47937
|
+
* Verifies an OrganizationSubscriptionExpired message.
|
|
47938
|
+
* @function verify
|
|
47939
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47940
|
+
* @static
|
|
47941
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47942
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47943
|
+
*/
|
|
47944
|
+
OrganizationSubscriptionExpired.verify = function verify(message) {
|
|
47945
|
+
if (typeof message !== "object" || message === null)
|
|
47946
|
+
return "object expected";
|
|
47947
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47948
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
47949
|
+
return "timestamp: integer|Long expected";
|
|
47950
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47951
|
+
if (!$util.isInteger(message.dashboardUserId))
|
|
47952
|
+
return "dashboardUserId: integer expected";
|
|
47953
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
47954
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
47955
|
+
if (error)
|
|
47956
|
+
return "organization." + error;
|
|
47957
|
+
}
|
|
47958
|
+
if (message.subscription != null && message.hasOwnProperty("subscription")) {
|
|
47959
|
+
var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
|
|
47960
|
+
if (error)
|
|
47961
|
+
return "subscription." + error;
|
|
47962
|
+
}
|
|
47963
|
+
return null;
|
|
47964
|
+
};
|
|
47965
|
+
|
|
47966
|
+
/**
|
|
47967
|
+
* Creates an OrganizationSubscriptionExpired message from a plain object. Also converts values to their respective internal types.
|
|
47968
|
+
* @function fromObject
|
|
47969
|
+
* @memberof OrganizationSubscriptionExpired
|
|
47970
|
+
* @static
|
|
47971
|
+
* @param {Object.<string,*>} object Plain object
|
|
47972
|
+
* @returns {OrganizationSubscriptionExpired} OrganizationSubscriptionExpired
|
|
47973
|
+
*/
|
|
47974
|
+
OrganizationSubscriptionExpired.fromObject = function fromObject(object) {
|
|
47975
|
+
if (object instanceof $root.OrganizationSubscriptionExpired)
|
|
47976
|
+
return object;
|
|
47977
|
+
var message = new $root.OrganizationSubscriptionExpired();
|
|
47978
|
+
if (object.timestamp != null)
|
|
47979
|
+
if ($util.Long)
|
|
47980
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
47981
|
+
else if (typeof object.timestamp === "string")
|
|
47982
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
47983
|
+
else if (typeof object.timestamp === "number")
|
|
47984
|
+
message.timestamp = object.timestamp;
|
|
47985
|
+
else if (typeof object.timestamp === "object")
|
|
47986
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
47987
|
+
if (object.dashboardUserId != null)
|
|
47988
|
+
message.dashboardUserId = object.dashboardUserId >>> 0;
|
|
47989
|
+
if (object.organization != null) {
|
|
47990
|
+
if (typeof object.organization !== "object")
|
|
47991
|
+
throw TypeError(".OrganizationSubscriptionExpired.organization: object expected");
|
|
47992
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
47993
|
+
}
|
|
47994
|
+
if (object.subscription != null) {
|
|
47995
|
+
if (typeof object.subscription !== "object")
|
|
47996
|
+
throw TypeError(".OrganizationSubscriptionExpired.subscription: object expected");
|
|
47997
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
|
|
47998
|
+
}
|
|
47999
|
+
return message;
|
|
48000
|
+
};
|
|
48001
|
+
|
|
48002
|
+
/**
|
|
48003
|
+
* Creates a plain object from an OrganizationSubscriptionExpired message. Also converts values to other types if specified.
|
|
48004
|
+
* @function toObject
|
|
48005
|
+
* @memberof OrganizationSubscriptionExpired
|
|
48006
|
+
* @static
|
|
48007
|
+
* @param {OrganizationSubscriptionExpired} message OrganizationSubscriptionExpired
|
|
48008
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48009
|
+
* @returns {Object.<string,*>} Plain object
|
|
48010
|
+
*/
|
|
48011
|
+
OrganizationSubscriptionExpired.toObject = function toObject(message, options) {
|
|
48012
|
+
if (!options)
|
|
48013
|
+
options = {};
|
|
48014
|
+
var object = {};
|
|
48015
|
+
if (options.defaults) {
|
|
48016
|
+
if ($util.Long) {
|
|
48017
|
+
var long = new $util.Long(0, 0, true);
|
|
48018
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
48019
|
+
} else
|
|
48020
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
48021
|
+
object.dashboardUserId = 0;
|
|
48022
|
+
object.organization = null;
|
|
48023
|
+
object.subscription = null;
|
|
48024
|
+
}
|
|
48025
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
48026
|
+
if (typeof message.timestamp === "number")
|
|
48027
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
48028
|
+
else
|
|
48029
|
+
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;
|
|
48030
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
48031
|
+
object.dashboardUserId = message.dashboardUserId;
|
|
48032
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
48033
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
48034
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
48035
|
+
object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
|
|
48036
|
+
return object;
|
|
48037
|
+
};
|
|
48038
|
+
|
|
48039
|
+
/**
|
|
48040
|
+
* Converts this OrganizationSubscriptionExpired to JSON.
|
|
48041
|
+
* @function toJSON
|
|
48042
|
+
* @memberof OrganizationSubscriptionExpired
|
|
48043
|
+
* @instance
|
|
48044
|
+
* @returns {Object.<string,*>} JSON object
|
|
48045
|
+
*/
|
|
48046
|
+
OrganizationSubscriptionExpired.prototype.toJSON = function toJSON() {
|
|
48047
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48048
|
+
};
|
|
48049
|
+
|
|
48050
|
+
return OrganizationSubscriptionExpired;
|
|
48051
|
+
})();
|
|
48052
|
+
|
|
48053
|
+
$root.OrganizationSubscriptionAmended = (function() {
|
|
48054
|
+
|
|
48055
|
+
/**
|
|
48056
|
+
* Properties of an OrganizationSubscriptionAmended.
|
|
48057
|
+
* @exports IOrganizationSubscriptionAmended
|
|
48058
|
+
* @interface IOrganizationSubscriptionAmended
|
|
48059
|
+
* @property {number|Long|null} [timestamp] OrganizationSubscriptionAmended timestamp
|
|
48060
|
+
* @property {number|null} [dashboardUserId] OrganizationSubscriptionAmended dashboardUserId
|
|
48061
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationSubscriptionAmended organization
|
|
48062
|
+
* @property {b2b.IB2BSubscriptionManagement|null} [subscription] OrganizationSubscriptionAmended subscription
|
|
48063
|
+
*/
|
|
48064
|
+
|
|
48065
|
+
/**
|
|
48066
|
+
* Constructs a new OrganizationSubscriptionAmended.
|
|
48067
|
+
* @exports OrganizationSubscriptionAmended
|
|
48068
|
+
* @classdesc Represents an OrganizationSubscriptionAmended.
|
|
48069
|
+
* @implements IOrganizationSubscriptionAmended
|
|
48070
|
+
* @constructor
|
|
48071
|
+
* @param {IOrganizationSubscriptionAmended=} [properties] Properties to set
|
|
48072
|
+
*/
|
|
48073
|
+
function OrganizationSubscriptionAmended(properties) {
|
|
48074
|
+
if (properties)
|
|
48075
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
48076
|
+
if (properties[keys[i]] != null)
|
|
48077
|
+
this[keys[i]] = properties[keys[i]];
|
|
48078
|
+
}
|
|
48079
|
+
|
|
48080
|
+
/**
|
|
48081
|
+
* OrganizationSubscriptionAmended timestamp.
|
|
48082
|
+
* @member {number|Long} timestamp
|
|
48083
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48084
|
+
* @instance
|
|
48085
|
+
*/
|
|
48086
|
+
OrganizationSubscriptionAmended.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
48087
|
+
|
|
48088
|
+
/**
|
|
48089
|
+
* OrganizationSubscriptionAmended dashboardUserId.
|
|
48090
|
+
* @member {number} dashboardUserId
|
|
48091
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48092
|
+
* @instance
|
|
48093
|
+
*/
|
|
48094
|
+
OrganizationSubscriptionAmended.prototype.dashboardUserId = 0;
|
|
48095
|
+
|
|
48096
|
+
/**
|
|
48097
|
+
* OrganizationSubscriptionAmended organization.
|
|
48098
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
48099
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48100
|
+
* @instance
|
|
48101
|
+
*/
|
|
48102
|
+
OrganizationSubscriptionAmended.prototype.organization = null;
|
|
48103
|
+
|
|
48104
|
+
/**
|
|
48105
|
+
* OrganizationSubscriptionAmended subscription.
|
|
48106
|
+
* @member {b2b.IB2BSubscriptionManagement|null|undefined} subscription
|
|
48107
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48108
|
+
* @instance
|
|
48109
|
+
*/
|
|
48110
|
+
OrganizationSubscriptionAmended.prototype.subscription = null;
|
|
48111
|
+
|
|
48112
|
+
/**
|
|
48113
|
+
* Creates a new OrganizationSubscriptionAmended instance using the specified properties.
|
|
48114
|
+
* @function create
|
|
48115
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48116
|
+
* @static
|
|
48117
|
+
* @param {IOrganizationSubscriptionAmended=} [properties] Properties to set
|
|
48118
|
+
* @returns {OrganizationSubscriptionAmended} OrganizationSubscriptionAmended instance
|
|
48119
|
+
*/
|
|
48120
|
+
OrganizationSubscriptionAmended.create = function create(properties) {
|
|
48121
|
+
return new OrganizationSubscriptionAmended(properties);
|
|
48122
|
+
};
|
|
48123
|
+
|
|
48124
|
+
/**
|
|
48125
|
+
* Encodes the specified OrganizationSubscriptionAmended message. Does not implicitly {@link OrganizationSubscriptionAmended.verify|verify} messages.
|
|
48126
|
+
* @function encode
|
|
48127
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48128
|
+
* @static
|
|
48129
|
+
* @param {IOrganizationSubscriptionAmended} message OrganizationSubscriptionAmended message or plain object to encode
|
|
48130
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48131
|
+
* @returns {$protobuf.Writer} Writer
|
|
48132
|
+
*/
|
|
48133
|
+
OrganizationSubscriptionAmended.encode = function encode(message, writer) {
|
|
48134
|
+
if (!writer)
|
|
48135
|
+
writer = $Writer.create();
|
|
48136
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
48137
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
48138
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
48139
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.dashboardUserId);
|
|
48140
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
48141
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
48142
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
48143
|
+
$root.b2b.B2BSubscriptionManagement.encode(message.subscription, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
48144
|
+
return writer;
|
|
48145
|
+
};
|
|
48146
|
+
|
|
48147
|
+
/**
|
|
48148
|
+
* Encodes the specified OrganizationSubscriptionAmended message, length delimited. Does not implicitly {@link OrganizationSubscriptionAmended.verify|verify} messages.
|
|
48149
|
+
* @function encodeDelimited
|
|
48150
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48151
|
+
* @static
|
|
48152
|
+
* @param {IOrganizationSubscriptionAmended} message OrganizationSubscriptionAmended message or plain object to encode
|
|
48153
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
48154
|
+
* @returns {$protobuf.Writer} Writer
|
|
48155
|
+
*/
|
|
48156
|
+
OrganizationSubscriptionAmended.encodeDelimited = function encodeDelimited(message, writer) {
|
|
48157
|
+
return this.encode(message, writer).ldelim();
|
|
48158
|
+
};
|
|
48159
|
+
|
|
48160
|
+
/**
|
|
48161
|
+
* Decodes an OrganizationSubscriptionAmended message from the specified reader or buffer.
|
|
48162
|
+
* @function decode
|
|
48163
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48164
|
+
* @static
|
|
48165
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48166
|
+
* @param {number} [length] Message length if known beforehand
|
|
48167
|
+
* @returns {OrganizationSubscriptionAmended} OrganizationSubscriptionAmended
|
|
48168
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48169
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48170
|
+
*/
|
|
48171
|
+
OrganizationSubscriptionAmended.decode = function decode(reader, length) {
|
|
48172
|
+
if (!(reader instanceof $Reader))
|
|
48173
|
+
reader = $Reader.create(reader);
|
|
48174
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationSubscriptionAmended();
|
|
48175
|
+
while (reader.pos < end) {
|
|
48176
|
+
var tag = reader.uint32();
|
|
48177
|
+
switch (tag >>> 3) {
|
|
48178
|
+
case 1:
|
|
48179
|
+
message.timestamp = reader.uint64();
|
|
48180
|
+
break;
|
|
48181
|
+
case 2:
|
|
48182
|
+
message.dashboardUserId = reader.uint32();
|
|
48183
|
+
break;
|
|
48184
|
+
case 3:
|
|
48185
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
48186
|
+
break;
|
|
48187
|
+
case 4:
|
|
48188
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.decode(reader, reader.uint32());
|
|
48189
|
+
break;
|
|
48190
|
+
default:
|
|
48191
|
+
reader.skipType(tag & 7);
|
|
48192
|
+
break;
|
|
48193
|
+
}
|
|
48194
|
+
}
|
|
48195
|
+
return message;
|
|
48196
|
+
};
|
|
48197
|
+
|
|
48198
|
+
/**
|
|
48199
|
+
* Decodes an OrganizationSubscriptionAmended message from the specified reader or buffer, length delimited.
|
|
48200
|
+
* @function decodeDelimited
|
|
48201
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48202
|
+
* @static
|
|
48203
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
48204
|
+
* @returns {OrganizationSubscriptionAmended} OrganizationSubscriptionAmended
|
|
48205
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
48206
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
48207
|
+
*/
|
|
48208
|
+
OrganizationSubscriptionAmended.decodeDelimited = function decodeDelimited(reader) {
|
|
48209
|
+
if (!(reader instanceof $Reader))
|
|
48210
|
+
reader = new $Reader(reader);
|
|
48211
|
+
return this.decode(reader, reader.uint32());
|
|
48212
|
+
};
|
|
48213
|
+
|
|
48214
|
+
/**
|
|
48215
|
+
* Verifies an OrganizationSubscriptionAmended message.
|
|
48216
|
+
* @function verify
|
|
48217
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48218
|
+
* @static
|
|
48219
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
48220
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
48221
|
+
*/
|
|
48222
|
+
OrganizationSubscriptionAmended.verify = function verify(message) {
|
|
48223
|
+
if (typeof message !== "object" || message === null)
|
|
48224
|
+
return "object expected";
|
|
48225
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
48226
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
48227
|
+
return "timestamp: integer|Long expected";
|
|
48228
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
48229
|
+
if (!$util.isInteger(message.dashboardUserId))
|
|
48230
|
+
return "dashboardUserId: integer expected";
|
|
48231
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
48232
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
48233
|
+
if (error)
|
|
48234
|
+
return "organization." + error;
|
|
48235
|
+
}
|
|
48236
|
+
if (message.subscription != null && message.hasOwnProperty("subscription")) {
|
|
48237
|
+
var error = $root.b2b.B2BSubscriptionManagement.verify(message.subscription);
|
|
48238
|
+
if (error)
|
|
48239
|
+
return "subscription." + error;
|
|
48240
|
+
}
|
|
48241
|
+
return null;
|
|
48242
|
+
};
|
|
48243
|
+
|
|
48244
|
+
/**
|
|
48245
|
+
* Creates an OrganizationSubscriptionAmended message from a plain object. Also converts values to their respective internal types.
|
|
48246
|
+
* @function fromObject
|
|
48247
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48248
|
+
* @static
|
|
48249
|
+
* @param {Object.<string,*>} object Plain object
|
|
48250
|
+
* @returns {OrganizationSubscriptionAmended} OrganizationSubscriptionAmended
|
|
48251
|
+
*/
|
|
48252
|
+
OrganizationSubscriptionAmended.fromObject = function fromObject(object) {
|
|
48253
|
+
if (object instanceof $root.OrganizationSubscriptionAmended)
|
|
48254
|
+
return object;
|
|
48255
|
+
var message = new $root.OrganizationSubscriptionAmended();
|
|
48256
|
+
if (object.timestamp != null)
|
|
48257
|
+
if ($util.Long)
|
|
48258
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
48259
|
+
else if (typeof object.timestamp === "string")
|
|
48260
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
48261
|
+
else if (typeof object.timestamp === "number")
|
|
48262
|
+
message.timestamp = object.timestamp;
|
|
48263
|
+
else if (typeof object.timestamp === "object")
|
|
48264
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
48265
|
+
if (object.dashboardUserId != null)
|
|
48266
|
+
message.dashboardUserId = object.dashboardUserId >>> 0;
|
|
48267
|
+
if (object.organization != null) {
|
|
48268
|
+
if (typeof object.organization !== "object")
|
|
48269
|
+
throw TypeError(".OrganizationSubscriptionAmended.organization: object expected");
|
|
48270
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
48271
|
+
}
|
|
48272
|
+
if (object.subscription != null) {
|
|
48273
|
+
if (typeof object.subscription !== "object")
|
|
48274
|
+
throw TypeError(".OrganizationSubscriptionAmended.subscription: object expected");
|
|
48275
|
+
message.subscription = $root.b2b.B2BSubscriptionManagement.fromObject(object.subscription);
|
|
48276
|
+
}
|
|
48277
|
+
return message;
|
|
48278
|
+
};
|
|
48279
|
+
|
|
48280
|
+
/**
|
|
48281
|
+
* Creates a plain object from an OrganizationSubscriptionAmended message. Also converts values to other types if specified.
|
|
48282
|
+
* @function toObject
|
|
48283
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48284
|
+
* @static
|
|
48285
|
+
* @param {OrganizationSubscriptionAmended} message OrganizationSubscriptionAmended
|
|
48286
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
48287
|
+
* @returns {Object.<string,*>} Plain object
|
|
48288
|
+
*/
|
|
48289
|
+
OrganizationSubscriptionAmended.toObject = function toObject(message, options) {
|
|
48290
|
+
if (!options)
|
|
48291
|
+
options = {};
|
|
48292
|
+
var object = {};
|
|
48293
|
+
if (options.defaults) {
|
|
48294
|
+
if ($util.Long) {
|
|
48295
|
+
var long = new $util.Long(0, 0, true);
|
|
48296
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
48297
|
+
} else
|
|
48298
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
48299
|
+
object.dashboardUserId = 0;
|
|
48300
|
+
object.organization = null;
|
|
48301
|
+
object.subscription = null;
|
|
48302
|
+
}
|
|
48303
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
48304
|
+
if (typeof message.timestamp === "number")
|
|
48305
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
48306
|
+
else
|
|
48307
|
+
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;
|
|
48308
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
48309
|
+
object.dashboardUserId = message.dashboardUserId;
|
|
48310
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
48311
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
48312
|
+
if (message.subscription != null && message.hasOwnProperty("subscription"))
|
|
48313
|
+
object.subscription = $root.b2b.B2BSubscriptionManagement.toObject(message.subscription, options);
|
|
48314
|
+
return object;
|
|
48315
|
+
};
|
|
48316
|
+
|
|
48317
|
+
/**
|
|
48318
|
+
* Converts this OrganizationSubscriptionAmended to JSON.
|
|
48319
|
+
* @function toJSON
|
|
48320
|
+
* @memberof OrganizationSubscriptionAmended
|
|
48321
|
+
* @instance
|
|
48322
|
+
* @returns {Object.<string,*>} JSON object
|
|
48323
|
+
*/
|
|
48324
|
+
OrganizationSubscriptionAmended.prototype.toJSON = function toJSON() {
|
|
48325
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
48326
|
+
};
|
|
48327
|
+
|
|
48328
|
+
return OrganizationSubscriptionAmended;
|
|
48329
|
+
})();
|
|
48330
|
+
|
|
47135
48331
|
$root.FamilyMemberAdded = (function() {
|
|
47136
48332
|
|
|
47137
48333
|
/**
|