@headspace/protos-events 1.208.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 +786 -0
- package/lib/index.js +2078 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -7537,6 +7537,748 @@ $root.b2b = (function() {
|
|
|
7537
7537
|
return UpdateAdminAttributes;
|
|
7538
7538
|
})();
|
|
7539
7539
|
|
|
7540
|
+
b2b.Organization = (function() {
|
|
7541
|
+
|
|
7542
|
+
/**
|
|
7543
|
+
* Properties of an Organization.
|
|
7544
|
+
* @memberof b2b
|
|
7545
|
+
* @interface IOrganization
|
|
7546
|
+
* @property {number|null} [orgId] Organization orgId
|
|
7547
|
+
* @property {string|null} [orgName] Organization orgName
|
|
7548
|
+
* @property {string|null} [salesforceAccountId] Organization salesforceAccountId
|
|
7549
|
+
* @property {b2b.OrgType|null} [orgType] Organization orgType
|
|
7550
|
+
* @property {boolean|null} [ssoEnabled] Organization ssoEnabled
|
|
7551
|
+
* @property {boolean|null} [promoEmailsDisabled] Organization promoEmailsDisabled
|
|
7552
|
+
* @property {string|null} [healthHubId] Organization healthHubId
|
|
7553
|
+
* @property {string|null} [healthHubName] Organization healthHubName
|
|
7554
|
+
*/
|
|
7555
|
+
|
|
7556
|
+
/**
|
|
7557
|
+
* Constructs a new Organization.
|
|
7558
|
+
* @memberof b2b
|
|
7559
|
+
* @classdesc Represents an Organization.
|
|
7560
|
+
* @implements IOrganization
|
|
7561
|
+
* @constructor
|
|
7562
|
+
* @param {b2b.IOrganization=} [properties] Properties to set
|
|
7563
|
+
*/
|
|
7564
|
+
function Organization(properties) {
|
|
7565
|
+
if (properties)
|
|
7566
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7567
|
+
if (properties[keys[i]] != null)
|
|
7568
|
+
this[keys[i]] = properties[keys[i]];
|
|
7569
|
+
}
|
|
7570
|
+
|
|
7571
|
+
/**
|
|
7572
|
+
* Organization orgId.
|
|
7573
|
+
* @member {number} orgId
|
|
7574
|
+
* @memberof b2b.Organization
|
|
7575
|
+
* @instance
|
|
7576
|
+
*/
|
|
7577
|
+
Organization.prototype.orgId = 0;
|
|
7578
|
+
|
|
7579
|
+
/**
|
|
7580
|
+
* Organization orgName.
|
|
7581
|
+
* @member {string} orgName
|
|
7582
|
+
* @memberof b2b.Organization
|
|
7583
|
+
* @instance
|
|
7584
|
+
*/
|
|
7585
|
+
Organization.prototype.orgName = "";
|
|
7586
|
+
|
|
7587
|
+
/**
|
|
7588
|
+
* Organization salesforceAccountId.
|
|
7589
|
+
* @member {string} salesforceAccountId
|
|
7590
|
+
* @memberof b2b.Organization
|
|
7591
|
+
* @instance
|
|
7592
|
+
*/
|
|
7593
|
+
Organization.prototype.salesforceAccountId = "";
|
|
7594
|
+
|
|
7595
|
+
/**
|
|
7596
|
+
* Organization orgType.
|
|
7597
|
+
* @member {b2b.OrgType} orgType
|
|
7598
|
+
* @memberof b2b.Organization
|
|
7599
|
+
* @instance
|
|
7600
|
+
*/
|
|
7601
|
+
Organization.prototype.orgType = 0;
|
|
7602
|
+
|
|
7603
|
+
/**
|
|
7604
|
+
* Organization ssoEnabled.
|
|
7605
|
+
* @member {boolean} ssoEnabled
|
|
7606
|
+
* @memberof b2b.Organization
|
|
7607
|
+
* @instance
|
|
7608
|
+
*/
|
|
7609
|
+
Organization.prototype.ssoEnabled = false;
|
|
7610
|
+
|
|
7611
|
+
/**
|
|
7612
|
+
* Organization promoEmailsDisabled.
|
|
7613
|
+
* @member {boolean} promoEmailsDisabled
|
|
7614
|
+
* @memberof b2b.Organization
|
|
7615
|
+
* @instance
|
|
7616
|
+
*/
|
|
7617
|
+
Organization.prototype.promoEmailsDisabled = false;
|
|
7618
|
+
|
|
7619
|
+
/**
|
|
7620
|
+
* Organization healthHubId.
|
|
7621
|
+
* @member {string} healthHubId
|
|
7622
|
+
* @memberof b2b.Organization
|
|
7623
|
+
* @instance
|
|
7624
|
+
*/
|
|
7625
|
+
Organization.prototype.healthHubId = "";
|
|
7626
|
+
|
|
7627
|
+
/**
|
|
7628
|
+
* Organization healthHubName.
|
|
7629
|
+
* @member {string} healthHubName
|
|
7630
|
+
* @memberof b2b.Organization
|
|
7631
|
+
* @instance
|
|
7632
|
+
*/
|
|
7633
|
+
Organization.prototype.healthHubName = "";
|
|
7634
|
+
|
|
7635
|
+
/**
|
|
7636
|
+
* Creates a new Organization instance using the specified properties.
|
|
7637
|
+
* @function create
|
|
7638
|
+
* @memberof b2b.Organization
|
|
7639
|
+
* @static
|
|
7640
|
+
* @param {b2b.IOrganization=} [properties] Properties to set
|
|
7641
|
+
* @returns {b2b.Organization} Organization instance
|
|
7642
|
+
*/
|
|
7643
|
+
Organization.create = function create(properties) {
|
|
7644
|
+
return new Organization(properties);
|
|
7645
|
+
};
|
|
7646
|
+
|
|
7647
|
+
/**
|
|
7648
|
+
* Encodes the specified Organization message. Does not implicitly {@link b2b.Organization.verify|verify} messages.
|
|
7649
|
+
* @function encode
|
|
7650
|
+
* @memberof b2b.Organization
|
|
7651
|
+
* @static
|
|
7652
|
+
* @param {b2b.IOrganization} message Organization message or plain object to encode
|
|
7653
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7654
|
+
* @returns {$protobuf.Writer} Writer
|
|
7655
|
+
*/
|
|
7656
|
+
Organization.encode = function encode(message, writer) {
|
|
7657
|
+
if (!writer)
|
|
7658
|
+
writer = $Writer.create();
|
|
7659
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
7660
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.orgId);
|
|
7661
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
7662
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.orgName);
|
|
7663
|
+
if (message.salesforceAccountId != null && message.hasOwnProperty("salesforceAccountId"))
|
|
7664
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.salesforceAccountId);
|
|
7665
|
+
if (message.orgType != null && message.hasOwnProperty("orgType"))
|
|
7666
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.orgType);
|
|
7667
|
+
if (message.ssoEnabled != null && message.hasOwnProperty("ssoEnabled"))
|
|
7668
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ssoEnabled);
|
|
7669
|
+
if (message.promoEmailsDisabled != null && message.hasOwnProperty("promoEmailsDisabled"))
|
|
7670
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.promoEmailsDisabled);
|
|
7671
|
+
if (message.healthHubId != null && message.hasOwnProperty("healthHubId"))
|
|
7672
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.healthHubId);
|
|
7673
|
+
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
7674
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.healthHubName);
|
|
7675
|
+
return writer;
|
|
7676
|
+
};
|
|
7677
|
+
|
|
7678
|
+
/**
|
|
7679
|
+
* Encodes the specified Organization message, length delimited. Does not implicitly {@link b2b.Organization.verify|verify} messages.
|
|
7680
|
+
* @function encodeDelimited
|
|
7681
|
+
* @memberof b2b.Organization
|
|
7682
|
+
* @static
|
|
7683
|
+
* @param {b2b.IOrganization} message Organization message or plain object to encode
|
|
7684
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7685
|
+
* @returns {$protobuf.Writer} Writer
|
|
7686
|
+
*/
|
|
7687
|
+
Organization.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7688
|
+
return this.encode(message, writer).ldelim();
|
|
7689
|
+
};
|
|
7690
|
+
|
|
7691
|
+
/**
|
|
7692
|
+
* Decodes an Organization message from the specified reader or buffer.
|
|
7693
|
+
* @function decode
|
|
7694
|
+
* @memberof b2b.Organization
|
|
7695
|
+
* @static
|
|
7696
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7697
|
+
* @param {number} [length] Message length if known beforehand
|
|
7698
|
+
* @returns {b2b.Organization} Organization
|
|
7699
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7700
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7701
|
+
*/
|
|
7702
|
+
Organization.decode = function decode(reader, length) {
|
|
7703
|
+
if (!(reader instanceof $Reader))
|
|
7704
|
+
reader = $Reader.create(reader);
|
|
7705
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.b2b.Organization();
|
|
7706
|
+
while (reader.pos < end) {
|
|
7707
|
+
var tag = reader.uint32();
|
|
7708
|
+
switch (tag >>> 3) {
|
|
7709
|
+
case 1:
|
|
7710
|
+
message.orgId = reader.uint32();
|
|
7711
|
+
break;
|
|
7712
|
+
case 2:
|
|
7713
|
+
message.orgName = reader.string();
|
|
7714
|
+
break;
|
|
7715
|
+
case 3:
|
|
7716
|
+
message.salesforceAccountId = reader.string();
|
|
7717
|
+
break;
|
|
7718
|
+
case 4:
|
|
7719
|
+
message.orgType = reader.int32();
|
|
7720
|
+
break;
|
|
7721
|
+
case 5:
|
|
7722
|
+
message.ssoEnabled = reader.bool();
|
|
7723
|
+
break;
|
|
7724
|
+
case 6:
|
|
7725
|
+
message.promoEmailsDisabled = reader.bool();
|
|
7726
|
+
break;
|
|
7727
|
+
case 7:
|
|
7728
|
+
message.healthHubId = reader.string();
|
|
7729
|
+
break;
|
|
7730
|
+
case 8:
|
|
7731
|
+
message.healthHubName = reader.string();
|
|
7732
|
+
break;
|
|
7733
|
+
default:
|
|
7734
|
+
reader.skipType(tag & 7);
|
|
7735
|
+
break;
|
|
7736
|
+
}
|
|
7737
|
+
}
|
|
7738
|
+
return message;
|
|
7739
|
+
};
|
|
7740
|
+
|
|
7741
|
+
/**
|
|
7742
|
+
* Decodes an Organization message from the specified reader or buffer, length delimited.
|
|
7743
|
+
* @function decodeDelimited
|
|
7744
|
+
* @memberof b2b.Organization
|
|
7745
|
+
* @static
|
|
7746
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7747
|
+
* @returns {b2b.Organization} Organization
|
|
7748
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7749
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7750
|
+
*/
|
|
7751
|
+
Organization.decodeDelimited = function decodeDelimited(reader) {
|
|
7752
|
+
if (!(reader instanceof $Reader))
|
|
7753
|
+
reader = new $Reader(reader);
|
|
7754
|
+
return this.decode(reader, reader.uint32());
|
|
7755
|
+
};
|
|
7756
|
+
|
|
7757
|
+
/**
|
|
7758
|
+
* Verifies an Organization message.
|
|
7759
|
+
* @function verify
|
|
7760
|
+
* @memberof b2b.Organization
|
|
7761
|
+
* @static
|
|
7762
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7763
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7764
|
+
*/
|
|
7765
|
+
Organization.verify = function verify(message) {
|
|
7766
|
+
if (typeof message !== "object" || message === null)
|
|
7767
|
+
return "object expected";
|
|
7768
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
7769
|
+
if (!$util.isInteger(message.orgId))
|
|
7770
|
+
return "orgId: integer expected";
|
|
7771
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
7772
|
+
if (!$util.isString(message.orgName))
|
|
7773
|
+
return "orgName: string expected";
|
|
7774
|
+
if (message.salesforceAccountId != null && message.hasOwnProperty("salesforceAccountId"))
|
|
7775
|
+
if (!$util.isString(message.salesforceAccountId))
|
|
7776
|
+
return "salesforceAccountId: string expected";
|
|
7777
|
+
if (message.orgType != null && message.hasOwnProperty("orgType"))
|
|
7778
|
+
switch (message.orgType) {
|
|
7779
|
+
default:
|
|
7780
|
+
return "orgType: enum value expected";
|
|
7781
|
+
case 0:
|
|
7782
|
+
case 1:
|
|
7783
|
+
case 2:
|
|
7784
|
+
case 3:
|
|
7785
|
+
case 4:
|
|
7786
|
+
case 5:
|
|
7787
|
+
case 6:
|
|
7788
|
+
break;
|
|
7789
|
+
}
|
|
7790
|
+
if (message.ssoEnabled != null && message.hasOwnProperty("ssoEnabled"))
|
|
7791
|
+
if (typeof message.ssoEnabled !== "boolean")
|
|
7792
|
+
return "ssoEnabled: boolean expected";
|
|
7793
|
+
if (message.promoEmailsDisabled != null && message.hasOwnProperty("promoEmailsDisabled"))
|
|
7794
|
+
if (typeof message.promoEmailsDisabled !== "boolean")
|
|
7795
|
+
return "promoEmailsDisabled: boolean expected";
|
|
7796
|
+
if (message.healthHubId != null && message.hasOwnProperty("healthHubId"))
|
|
7797
|
+
if (!$util.isString(message.healthHubId))
|
|
7798
|
+
return "healthHubId: string expected";
|
|
7799
|
+
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
7800
|
+
if (!$util.isString(message.healthHubName))
|
|
7801
|
+
return "healthHubName: string expected";
|
|
7802
|
+
return null;
|
|
7803
|
+
};
|
|
7804
|
+
|
|
7805
|
+
/**
|
|
7806
|
+
* Creates an Organization message from a plain object. Also converts values to their respective internal types.
|
|
7807
|
+
* @function fromObject
|
|
7808
|
+
* @memberof b2b.Organization
|
|
7809
|
+
* @static
|
|
7810
|
+
* @param {Object.<string,*>} object Plain object
|
|
7811
|
+
* @returns {b2b.Organization} Organization
|
|
7812
|
+
*/
|
|
7813
|
+
Organization.fromObject = function fromObject(object) {
|
|
7814
|
+
if (object instanceof $root.b2b.Organization)
|
|
7815
|
+
return object;
|
|
7816
|
+
var message = new $root.b2b.Organization();
|
|
7817
|
+
if (object.orgId != null)
|
|
7818
|
+
message.orgId = object.orgId >>> 0;
|
|
7819
|
+
if (object.orgName != null)
|
|
7820
|
+
message.orgName = String(object.orgName);
|
|
7821
|
+
if (object.salesforceAccountId != null)
|
|
7822
|
+
message.salesforceAccountId = String(object.salesforceAccountId);
|
|
7823
|
+
switch (object.orgType) {
|
|
7824
|
+
case "ORG_TYPE_UNKNOWN":
|
|
7825
|
+
case 0:
|
|
7826
|
+
message.orgType = 0;
|
|
7827
|
+
break;
|
|
7828
|
+
case "ORG_TYPE_B2B":
|
|
7829
|
+
case 1:
|
|
7830
|
+
message.orgType = 1;
|
|
7831
|
+
break;
|
|
7832
|
+
case "ORG_TYPE_HEALTH":
|
|
7833
|
+
case 2:
|
|
7834
|
+
message.orgType = 2;
|
|
7835
|
+
break;
|
|
7836
|
+
case "ORG_TYPE_HEALTH_PARTNERSHIP":
|
|
7837
|
+
case 3:
|
|
7838
|
+
message.orgType = 3;
|
|
7839
|
+
break;
|
|
7840
|
+
case "ORG_TYPE_PARTNERSHIP":
|
|
7841
|
+
case 4:
|
|
7842
|
+
message.orgType = 4;
|
|
7843
|
+
break;
|
|
7844
|
+
case "ORG_TYPE_SOCIAL_IMPACT":
|
|
7845
|
+
case 5:
|
|
7846
|
+
message.orgType = 5;
|
|
7847
|
+
break;
|
|
7848
|
+
case "ORG_TYPE_TEST":
|
|
7849
|
+
case 6:
|
|
7850
|
+
message.orgType = 6;
|
|
7851
|
+
break;
|
|
7852
|
+
}
|
|
7853
|
+
if (object.ssoEnabled != null)
|
|
7854
|
+
message.ssoEnabled = Boolean(object.ssoEnabled);
|
|
7855
|
+
if (object.promoEmailsDisabled != null)
|
|
7856
|
+
message.promoEmailsDisabled = Boolean(object.promoEmailsDisabled);
|
|
7857
|
+
if (object.healthHubId != null)
|
|
7858
|
+
message.healthHubId = String(object.healthHubId);
|
|
7859
|
+
if (object.healthHubName != null)
|
|
7860
|
+
message.healthHubName = String(object.healthHubName);
|
|
7861
|
+
return message;
|
|
7862
|
+
};
|
|
7863
|
+
|
|
7864
|
+
/**
|
|
7865
|
+
* Creates a plain object from an Organization message. Also converts values to other types if specified.
|
|
7866
|
+
* @function toObject
|
|
7867
|
+
* @memberof b2b.Organization
|
|
7868
|
+
* @static
|
|
7869
|
+
* @param {b2b.Organization} message Organization
|
|
7870
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7871
|
+
* @returns {Object.<string,*>} Plain object
|
|
7872
|
+
*/
|
|
7873
|
+
Organization.toObject = function toObject(message, options) {
|
|
7874
|
+
if (!options)
|
|
7875
|
+
options = {};
|
|
7876
|
+
var object = {};
|
|
7877
|
+
if (options.defaults) {
|
|
7878
|
+
object.orgId = 0;
|
|
7879
|
+
object.orgName = "";
|
|
7880
|
+
object.salesforceAccountId = "";
|
|
7881
|
+
object.orgType = options.enums === String ? "ORG_TYPE_UNKNOWN" : 0;
|
|
7882
|
+
object.ssoEnabled = false;
|
|
7883
|
+
object.promoEmailsDisabled = false;
|
|
7884
|
+
object.healthHubId = "";
|
|
7885
|
+
object.healthHubName = "";
|
|
7886
|
+
}
|
|
7887
|
+
if (message.orgId != null && message.hasOwnProperty("orgId"))
|
|
7888
|
+
object.orgId = message.orgId;
|
|
7889
|
+
if (message.orgName != null && message.hasOwnProperty("orgName"))
|
|
7890
|
+
object.orgName = message.orgName;
|
|
7891
|
+
if (message.salesforceAccountId != null && message.hasOwnProperty("salesforceAccountId"))
|
|
7892
|
+
object.salesforceAccountId = message.salesforceAccountId;
|
|
7893
|
+
if (message.orgType != null && message.hasOwnProperty("orgType"))
|
|
7894
|
+
object.orgType = options.enums === String ? $root.b2b.OrgType[message.orgType] : message.orgType;
|
|
7895
|
+
if (message.ssoEnabled != null && message.hasOwnProperty("ssoEnabled"))
|
|
7896
|
+
object.ssoEnabled = message.ssoEnabled;
|
|
7897
|
+
if (message.promoEmailsDisabled != null && message.hasOwnProperty("promoEmailsDisabled"))
|
|
7898
|
+
object.promoEmailsDisabled = message.promoEmailsDisabled;
|
|
7899
|
+
if (message.healthHubId != null && message.hasOwnProperty("healthHubId"))
|
|
7900
|
+
object.healthHubId = message.healthHubId;
|
|
7901
|
+
if (message.healthHubName != null && message.hasOwnProperty("healthHubName"))
|
|
7902
|
+
object.healthHubName = message.healthHubName;
|
|
7903
|
+
return object;
|
|
7904
|
+
};
|
|
7905
|
+
|
|
7906
|
+
/**
|
|
7907
|
+
* Converts this Organization to JSON.
|
|
7908
|
+
* @function toJSON
|
|
7909
|
+
* @memberof b2b.Organization
|
|
7910
|
+
* @instance
|
|
7911
|
+
* @returns {Object.<string,*>} JSON object
|
|
7912
|
+
*/
|
|
7913
|
+
Organization.prototype.toJSON = function toJSON() {
|
|
7914
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7915
|
+
};
|
|
7916
|
+
|
|
7917
|
+
return Organization;
|
|
7918
|
+
})();
|
|
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
|
+
|
|
7540
8282
|
/**
|
|
7541
8283
|
* OrgType enum.
|
|
7542
8284
|
* @name b2b.OrgType
|
|
@@ -46250,6 +46992,1342 @@ $root.AssetCreated = (function() {
|
|
|
46250
46992
|
return AssetCreated;
|
|
46251
46993
|
})();
|
|
46252
46994
|
|
|
46995
|
+
$root.OrganizationCreated = (function() {
|
|
46996
|
+
|
|
46997
|
+
/**
|
|
46998
|
+
* Properties of an OrganizationCreated.
|
|
46999
|
+
* @exports IOrganizationCreated
|
|
47000
|
+
* @interface IOrganizationCreated
|
|
47001
|
+
* @property {number|null} [dashboardUserId] OrganizationCreated dashboardUserId
|
|
47002
|
+
* @property {number|Long|null} [timestamp] OrganizationCreated timestamp
|
|
47003
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationCreated organization
|
|
47004
|
+
*/
|
|
47005
|
+
|
|
47006
|
+
/**
|
|
47007
|
+
* Constructs a new OrganizationCreated.
|
|
47008
|
+
* @exports OrganizationCreated
|
|
47009
|
+
* @classdesc Represents an OrganizationCreated.
|
|
47010
|
+
* @implements IOrganizationCreated
|
|
47011
|
+
* @constructor
|
|
47012
|
+
* @param {IOrganizationCreated=} [properties] Properties to set
|
|
47013
|
+
*/
|
|
47014
|
+
function OrganizationCreated(properties) {
|
|
47015
|
+
if (properties)
|
|
47016
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47017
|
+
if (properties[keys[i]] != null)
|
|
47018
|
+
this[keys[i]] = properties[keys[i]];
|
|
47019
|
+
}
|
|
47020
|
+
|
|
47021
|
+
/**
|
|
47022
|
+
* OrganizationCreated dashboardUserId.
|
|
47023
|
+
* @member {number} dashboardUserId
|
|
47024
|
+
* @memberof OrganizationCreated
|
|
47025
|
+
* @instance
|
|
47026
|
+
*/
|
|
47027
|
+
OrganizationCreated.prototype.dashboardUserId = 0;
|
|
47028
|
+
|
|
47029
|
+
/**
|
|
47030
|
+
* OrganizationCreated timestamp.
|
|
47031
|
+
* @member {number|Long} timestamp
|
|
47032
|
+
* @memberof OrganizationCreated
|
|
47033
|
+
* @instance
|
|
47034
|
+
*/
|
|
47035
|
+
OrganizationCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
47036
|
+
|
|
47037
|
+
/**
|
|
47038
|
+
* OrganizationCreated organization.
|
|
47039
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
47040
|
+
* @memberof OrganizationCreated
|
|
47041
|
+
* @instance
|
|
47042
|
+
*/
|
|
47043
|
+
OrganizationCreated.prototype.organization = null;
|
|
47044
|
+
|
|
47045
|
+
/**
|
|
47046
|
+
* Creates a new OrganizationCreated instance using the specified properties.
|
|
47047
|
+
* @function create
|
|
47048
|
+
* @memberof OrganizationCreated
|
|
47049
|
+
* @static
|
|
47050
|
+
* @param {IOrganizationCreated=} [properties] Properties to set
|
|
47051
|
+
* @returns {OrganizationCreated} OrganizationCreated instance
|
|
47052
|
+
*/
|
|
47053
|
+
OrganizationCreated.create = function create(properties) {
|
|
47054
|
+
return new OrganizationCreated(properties);
|
|
47055
|
+
};
|
|
47056
|
+
|
|
47057
|
+
/**
|
|
47058
|
+
* Encodes the specified OrganizationCreated message. Does not implicitly {@link OrganizationCreated.verify|verify} messages.
|
|
47059
|
+
* @function encode
|
|
47060
|
+
* @memberof OrganizationCreated
|
|
47061
|
+
* @static
|
|
47062
|
+
* @param {IOrganizationCreated} message OrganizationCreated message or plain object to encode
|
|
47063
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47064
|
+
* @returns {$protobuf.Writer} Writer
|
|
47065
|
+
*/
|
|
47066
|
+
OrganizationCreated.encode = function encode(message, writer) {
|
|
47067
|
+
if (!writer)
|
|
47068
|
+
writer = $Writer.create();
|
|
47069
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47070
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.dashboardUserId);
|
|
47071
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47072
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
47073
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
47074
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
47075
|
+
return writer;
|
|
47076
|
+
};
|
|
47077
|
+
|
|
47078
|
+
/**
|
|
47079
|
+
* Encodes the specified OrganizationCreated message, length delimited. Does not implicitly {@link OrganizationCreated.verify|verify} messages.
|
|
47080
|
+
* @function encodeDelimited
|
|
47081
|
+
* @memberof OrganizationCreated
|
|
47082
|
+
* @static
|
|
47083
|
+
* @param {IOrganizationCreated} message OrganizationCreated message or plain object to encode
|
|
47084
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47085
|
+
* @returns {$protobuf.Writer} Writer
|
|
47086
|
+
*/
|
|
47087
|
+
OrganizationCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47088
|
+
return this.encode(message, writer).ldelim();
|
|
47089
|
+
};
|
|
47090
|
+
|
|
47091
|
+
/**
|
|
47092
|
+
* Decodes an OrganizationCreated message from the specified reader or buffer.
|
|
47093
|
+
* @function decode
|
|
47094
|
+
* @memberof OrganizationCreated
|
|
47095
|
+
* @static
|
|
47096
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47097
|
+
* @param {number} [length] Message length if known beforehand
|
|
47098
|
+
* @returns {OrganizationCreated} OrganizationCreated
|
|
47099
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47100
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47101
|
+
*/
|
|
47102
|
+
OrganizationCreated.decode = function decode(reader, length) {
|
|
47103
|
+
if (!(reader instanceof $Reader))
|
|
47104
|
+
reader = $Reader.create(reader);
|
|
47105
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationCreated();
|
|
47106
|
+
while (reader.pos < end) {
|
|
47107
|
+
var tag = reader.uint32();
|
|
47108
|
+
switch (tag >>> 3) {
|
|
47109
|
+
case 1:
|
|
47110
|
+
message.dashboardUserId = reader.uint32();
|
|
47111
|
+
break;
|
|
47112
|
+
case 2:
|
|
47113
|
+
message.timestamp = reader.uint64();
|
|
47114
|
+
break;
|
|
47115
|
+
case 3:
|
|
47116
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
47117
|
+
break;
|
|
47118
|
+
default:
|
|
47119
|
+
reader.skipType(tag & 7);
|
|
47120
|
+
break;
|
|
47121
|
+
}
|
|
47122
|
+
}
|
|
47123
|
+
return message;
|
|
47124
|
+
};
|
|
47125
|
+
|
|
47126
|
+
/**
|
|
47127
|
+
* Decodes an OrganizationCreated message from the specified reader or buffer, length delimited.
|
|
47128
|
+
* @function decodeDelimited
|
|
47129
|
+
* @memberof OrganizationCreated
|
|
47130
|
+
* @static
|
|
47131
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47132
|
+
* @returns {OrganizationCreated} OrganizationCreated
|
|
47133
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47134
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47135
|
+
*/
|
|
47136
|
+
OrganizationCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
47137
|
+
if (!(reader instanceof $Reader))
|
|
47138
|
+
reader = new $Reader(reader);
|
|
47139
|
+
return this.decode(reader, reader.uint32());
|
|
47140
|
+
};
|
|
47141
|
+
|
|
47142
|
+
/**
|
|
47143
|
+
* Verifies an OrganizationCreated message.
|
|
47144
|
+
* @function verify
|
|
47145
|
+
* @memberof OrganizationCreated
|
|
47146
|
+
* @static
|
|
47147
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47148
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47149
|
+
*/
|
|
47150
|
+
OrganizationCreated.verify = function verify(message) {
|
|
47151
|
+
if (typeof message !== "object" || message === null)
|
|
47152
|
+
return "object expected";
|
|
47153
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47154
|
+
if (!$util.isInteger(message.dashboardUserId))
|
|
47155
|
+
return "dashboardUserId: integer expected";
|
|
47156
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47157
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
47158
|
+
return "timestamp: integer|Long expected";
|
|
47159
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
47160
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
47161
|
+
if (error)
|
|
47162
|
+
return "organization." + error;
|
|
47163
|
+
}
|
|
47164
|
+
return null;
|
|
47165
|
+
};
|
|
47166
|
+
|
|
47167
|
+
/**
|
|
47168
|
+
* Creates an OrganizationCreated message from a plain object. Also converts values to their respective internal types.
|
|
47169
|
+
* @function fromObject
|
|
47170
|
+
* @memberof OrganizationCreated
|
|
47171
|
+
* @static
|
|
47172
|
+
* @param {Object.<string,*>} object Plain object
|
|
47173
|
+
* @returns {OrganizationCreated} OrganizationCreated
|
|
47174
|
+
*/
|
|
47175
|
+
OrganizationCreated.fromObject = function fromObject(object) {
|
|
47176
|
+
if (object instanceof $root.OrganizationCreated)
|
|
47177
|
+
return object;
|
|
47178
|
+
var message = new $root.OrganizationCreated();
|
|
47179
|
+
if (object.dashboardUserId != null)
|
|
47180
|
+
message.dashboardUserId = object.dashboardUserId >>> 0;
|
|
47181
|
+
if (object.timestamp != null)
|
|
47182
|
+
if ($util.Long)
|
|
47183
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
47184
|
+
else if (typeof object.timestamp === "string")
|
|
47185
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
47186
|
+
else if (typeof object.timestamp === "number")
|
|
47187
|
+
message.timestamp = object.timestamp;
|
|
47188
|
+
else if (typeof object.timestamp === "object")
|
|
47189
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
47190
|
+
if (object.organization != null) {
|
|
47191
|
+
if (typeof object.organization !== "object")
|
|
47192
|
+
throw TypeError(".OrganizationCreated.organization: object expected");
|
|
47193
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
47194
|
+
}
|
|
47195
|
+
return message;
|
|
47196
|
+
};
|
|
47197
|
+
|
|
47198
|
+
/**
|
|
47199
|
+
* Creates a plain object from an OrganizationCreated message. Also converts values to other types if specified.
|
|
47200
|
+
* @function toObject
|
|
47201
|
+
* @memberof OrganizationCreated
|
|
47202
|
+
* @static
|
|
47203
|
+
* @param {OrganizationCreated} message OrganizationCreated
|
|
47204
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47205
|
+
* @returns {Object.<string,*>} Plain object
|
|
47206
|
+
*/
|
|
47207
|
+
OrganizationCreated.toObject = function toObject(message, options) {
|
|
47208
|
+
if (!options)
|
|
47209
|
+
options = {};
|
|
47210
|
+
var object = {};
|
|
47211
|
+
if (options.defaults) {
|
|
47212
|
+
object.dashboardUserId = 0;
|
|
47213
|
+
if ($util.Long) {
|
|
47214
|
+
var long = new $util.Long(0, 0, true);
|
|
47215
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
47216
|
+
} else
|
|
47217
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
47218
|
+
object.organization = null;
|
|
47219
|
+
}
|
|
47220
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47221
|
+
object.dashboardUserId = message.dashboardUserId;
|
|
47222
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47223
|
+
if (typeof message.timestamp === "number")
|
|
47224
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
47225
|
+
else
|
|
47226
|
+
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;
|
|
47227
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
47228
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
47229
|
+
return object;
|
|
47230
|
+
};
|
|
47231
|
+
|
|
47232
|
+
/**
|
|
47233
|
+
* Converts this OrganizationCreated to JSON.
|
|
47234
|
+
* @function toJSON
|
|
47235
|
+
* @memberof OrganizationCreated
|
|
47236
|
+
* @instance
|
|
47237
|
+
* @returns {Object.<string,*>} JSON object
|
|
47238
|
+
*/
|
|
47239
|
+
OrganizationCreated.prototype.toJSON = function toJSON() {
|
|
47240
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47241
|
+
};
|
|
47242
|
+
|
|
47243
|
+
return OrganizationCreated;
|
|
47244
|
+
})();
|
|
47245
|
+
|
|
47246
|
+
$root.OrganizationUpdated = (function() {
|
|
47247
|
+
|
|
47248
|
+
/**
|
|
47249
|
+
* Properties of an OrganizationUpdated.
|
|
47250
|
+
* @exports IOrganizationUpdated
|
|
47251
|
+
* @interface IOrganizationUpdated
|
|
47252
|
+
* @property {number|null} [dashboardUserId] OrganizationUpdated dashboardUserId
|
|
47253
|
+
* @property {number|Long|null} [timestamp] OrganizationUpdated timestamp
|
|
47254
|
+
* @property {b2b.IOrganization|null} [organization] OrganizationUpdated organization
|
|
47255
|
+
*/
|
|
47256
|
+
|
|
47257
|
+
/**
|
|
47258
|
+
* Constructs a new OrganizationUpdated.
|
|
47259
|
+
* @exports OrganizationUpdated
|
|
47260
|
+
* @classdesc Represents an OrganizationUpdated.
|
|
47261
|
+
* @implements IOrganizationUpdated
|
|
47262
|
+
* @constructor
|
|
47263
|
+
* @param {IOrganizationUpdated=} [properties] Properties to set
|
|
47264
|
+
*/
|
|
47265
|
+
function OrganizationUpdated(properties) {
|
|
47266
|
+
if (properties)
|
|
47267
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47268
|
+
if (properties[keys[i]] != null)
|
|
47269
|
+
this[keys[i]] = properties[keys[i]];
|
|
47270
|
+
}
|
|
47271
|
+
|
|
47272
|
+
/**
|
|
47273
|
+
* OrganizationUpdated dashboardUserId.
|
|
47274
|
+
* @member {number} dashboardUserId
|
|
47275
|
+
* @memberof OrganizationUpdated
|
|
47276
|
+
* @instance
|
|
47277
|
+
*/
|
|
47278
|
+
OrganizationUpdated.prototype.dashboardUserId = 0;
|
|
47279
|
+
|
|
47280
|
+
/**
|
|
47281
|
+
* OrganizationUpdated timestamp.
|
|
47282
|
+
* @member {number|Long} timestamp
|
|
47283
|
+
* @memberof OrganizationUpdated
|
|
47284
|
+
* @instance
|
|
47285
|
+
*/
|
|
47286
|
+
OrganizationUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
47287
|
+
|
|
47288
|
+
/**
|
|
47289
|
+
* OrganizationUpdated organization.
|
|
47290
|
+
* @member {b2b.IOrganization|null|undefined} organization
|
|
47291
|
+
* @memberof OrganizationUpdated
|
|
47292
|
+
* @instance
|
|
47293
|
+
*/
|
|
47294
|
+
OrganizationUpdated.prototype.organization = null;
|
|
47295
|
+
|
|
47296
|
+
/**
|
|
47297
|
+
* Creates a new OrganizationUpdated instance using the specified properties.
|
|
47298
|
+
* @function create
|
|
47299
|
+
* @memberof OrganizationUpdated
|
|
47300
|
+
* @static
|
|
47301
|
+
* @param {IOrganizationUpdated=} [properties] Properties to set
|
|
47302
|
+
* @returns {OrganizationUpdated} OrganizationUpdated instance
|
|
47303
|
+
*/
|
|
47304
|
+
OrganizationUpdated.create = function create(properties) {
|
|
47305
|
+
return new OrganizationUpdated(properties);
|
|
47306
|
+
};
|
|
47307
|
+
|
|
47308
|
+
/**
|
|
47309
|
+
* Encodes the specified OrganizationUpdated message. Does not implicitly {@link OrganizationUpdated.verify|verify} messages.
|
|
47310
|
+
* @function encode
|
|
47311
|
+
* @memberof OrganizationUpdated
|
|
47312
|
+
* @static
|
|
47313
|
+
* @param {IOrganizationUpdated} message OrganizationUpdated message or plain object to encode
|
|
47314
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47315
|
+
* @returns {$protobuf.Writer} Writer
|
|
47316
|
+
*/
|
|
47317
|
+
OrganizationUpdated.encode = function encode(message, writer) {
|
|
47318
|
+
if (!writer)
|
|
47319
|
+
writer = $Writer.create();
|
|
47320
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47321
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.dashboardUserId);
|
|
47322
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47323
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
|
|
47324
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
47325
|
+
$root.b2b.Organization.encode(message.organization, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
47326
|
+
return writer;
|
|
47327
|
+
};
|
|
47328
|
+
|
|
47329
|
+
/**
|
|
47330
|
+
* Encodes the specified OrganizationUpdated message, length delimited. Does not implicitly {@link OrganizationUpdated.verify|verify} messages.
|
|
47331
|
+
* @function encodeDelimited
|
|
47332
|
+
* @memberof OrganizationUpdated
|
|
47333
|
+
* @static
|
|
47334
|
+
* @param {IOrganizationUpdated} message OrganizationUpdated message or plain object to encode
|
|
47335
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47336
|
+
* @returns {$protobuf.Writer} Writer
|
|
47337
|
+
*/
|
|
47338
|
+
OrganizationUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47339
|
+
return this.encode(message, writer).ldelim();
|
|
47340
|
+
};
|
|
47341
|
+
|
|
47342
|
+
/**
|
|
47343
|
+
* Decodes an OrganizationUpdated message from the specified reader or buffer.
|
|
47344
|
+
* @function decode
|
|
47345
|
+
* @memberof OrganizationUpdated
|
|
47346
|
+
* @static
|
|
47347
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47348
|
+
* @param {number} [length] Message length if known beforehand
|
|
47349
|
+
* @returns {OrganizationUpdated} OrganizationUpdated
|
|
47350
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47351
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47352
|
+
*/
|
|
47353
|
+
OrganizationUpdated.decode = function decode(reader, length) {
|
|
47354
|
+
if (!(reader instanceof $Reader))
|
|
47355
|
+
reader = $Reader.create(reader);
|
|
47356
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.OrganizationUpdated();
|
|
47357
|
+
while (reader.pos < end) {
|
|
47358
|
+
var tag = reader.uint32();
|
|
47359
|
+
switch (tag >>> 3) {
|
|
47360
|
+
case 1:
|
|
47361
|
+
message.dashboardUserId = reader.uint32();
|
|
47362
|
+
break;
|
|
47363
|
+
case 2:
|
|
47364
|
+
message.timestamp = reader.uint64();
|
|
47365
|
+
break;
|
|
47366
|
+
case 3:
|
|
47367
|
+
message.organization = $root.b2b.Organization.decode(reader, reader.uint32());
|
|
47368
|
+
break;
|
|
47369
|
+
default:
|
|
47370
|
+
reader.skipType(tag & 7);
|
|
47371
|
+
break;
|
|
47372
|
+
}
|
|
47373
|
+
}
|
|
47374
|
+
return message;
|
|
47375
|
+
};
|
|
47376
|
+
|
|
47377
|
+
/**
|
|
47378
|
+
* Decodes an OrganizationUpdated message from the specified reader or buffer, length delimited.
|
|
47379
|
+
* @function decodeDelimited
|
|
47380
|
+
* @memberof OrganizationUpdated
|
|
47381
|
+
* @static
|
|
47382
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47383
|
+
* @returns {OrganizationUpdated} OrganizationUpdated
|
|
47384
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47385
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47386
|
+
*/
|
|
47387
|
+
OrganizationUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
47388
|
+
if (!(reader instanceof $Reader))
|
|
47389
|
+
reader = new $Reader(reader);
|
|
47390
|
+
return this.decode(reader, reader.uint32());
|
|
47391
|
+
};
|
|
47392
|
+
|
|
47393
|
+
/**
|
|
47394
|
+
* Verifies an OrganizationUpdated message.
|
|
47395
|
+
* @function verify
|
|
47396
|
+
* @memberof OrganizationUpdated
|
|
47397
|
+
* @static
|
|
47398
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47399
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47400
|
+
*/
|
|
47401
|
+
OrganizationUpdated.verify = function verify(message) {
|
|
47402
|
+
if (typeof message !== "object" || message === null)
|
|
47403
|
+
return "object expected";
|
|
47404
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47405
|
+
if (!$util.isInteger(message.dashboardUserId))
|
|
47406
|
+
return "dashboardUserId: integer expected";
|
|
47407
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47408
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
47409
|
+
return "timestamp: integer|Long expected";
|
|
47410
|
+
if (message.organization != null && message.hasOwnProperty("organization")) {
|
|
47411
|
+
var error = $root.b2b.Organization.verify(message.organization);
|
|
47412
|
+
if (error)
|
|
47413
|
+
return "organization." + error;
|
|
47414
|
+
}
|
|
47415
|
+
return null;
|
|
47416
|
+
};
|
|
47417
|
+
|
|
47418
|
+
/**
|
|
47419
|
+
* Creates an OrganizationUpdated message from a plain object. Also converts values to their respective internal types.
|
|
47420
|
+
* @function fromObject
|
|
47421
|
+
* @memberof OrganizationUpdated
|
|
47422
|
+
* @static
|
|
47423
|
+
* @param {Object.<string,*>} object Plain object
|
|
47424
|
+
* @returns {OrganizationUpdated} OrganizationUpdated
|
|
47425
|
+
*/
|
|
47426
|
+
OrganizationUpdated.fromObject = function fromObject(object) {
|
|
47427
|
+
if (object instanceof $root.OrganizationUpdated)
|
|
47428
|
+
return object;
|
|
47429
|
+
var message = new $root.OrganizationUpdated();
|
|
47430
|
+
if (object.dashboardUserId != null)
|
|
47431
|
+
message.dashboardUserId = object.dashboardUserId >>> 0;
|
|
47432
|
+
if (object.timestamp != null)
|
|
47433
|
+
if ($util.Long)
|
|
47434
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
47435
|
+
else if (typeof object.timestamp === "string")
|
|
47436
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
47437
|
+
else if (typeof object.timestamp === "number")
|
|
47438
|
+
message.timestamp = object.timestamp;
|
|
47439
|
+
else if (typeof object.timestamp === "object")
|
|
47440
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
47441
|
+
if (object.organization != null) {
|
|
47442
|
+
if (typeof object.organization !== "object")
|
|
47443
|
+
throw TypeError(".OrganizationUpdated.organization: object expected");
|
|
47444
|
+
message.organization = $root.b2b.Organization.fromObject(object.organization);
|
|
47445
|
+
}
|
|
47446
|
+
return message;
|
|
47447
|
+
};
|
|
47448
|
+
|
|
47449
|
+
/**
|
|
47450
|
+
* Creates a plain object from an OrganizationUpdated message. Also converts values to other types if specified.
|
|
47451
|
+
* @function toObject
|
|
47452
|
+
* @memberof OrganizationUpdated
|
|
47453
|
+
* @static
|
|
47454
|
+
* @param {OrganizationUpdated} message OrganizationUpdated
|
|
47455
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47456
|
+
* @returns {Object.<string,*>} Plain object
|
|
47457
|
+
*/
|
|
47458
|
+
OrganizationUpdated.toObject = function toObject(message, options) {
|
|
47459
|
+
if (!options)
|
|
47460
|
+
options = {};
|
|
47461
|
+
var object = {};
|
|
47462
|
+
if (options.defaults) {
|
|
47463
|
+
object.dashboardUserId = 0;
|
|
47464
|
+
if ($util.Long) {
|
|
47465
|
+
var long = new $util.Long(0, 0, true);
|
|
47466
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
47467
|
+
} else
|
|
47468
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
47469
|
+
object.organization = null;
|
|
47470
|
+
}
|
|
47471
|
+
if (message.dashboardUserId != null && message.hasOwnProperty("dashboardUserId"))
|
|
47472
|
+
object.dashboardUserId = message.dashboardUserId;
|
|
47473
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
47474
|
+
if (typeof message.timestamp === "number")
|
|
47475
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
47476
|
+
else
|
|
47477
|
+
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;
|
|
47478
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
47479
|
+
object.organization = $root.b2b.Organization.toObject(message.organization, options);
|
|
47480
|
+
return object;
|
|
47481
|
+
};
|
|
47482
|
+
|
|
47483
|
+
/**
|
|
47484
|
+
* Converts this OrganizationUpdated to JSON.
|
|
47485
|
+
* @function toJSON
|
|
47486
|
+
* @memberof OrganizationUpdated
|
|
47487
|
+
* @instance
|
|
47488
|
+
* @returns {Object.<string,*>} JSON object
|
|
47489
|
+
*/
|
|
47490
|
+
OrganizationUpdated.prototype.toJSON = function toJSON() {
|
|
47491
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47492
|
+
};
|
|
47493
|
+
|
|
47494
|
+
return OrganizationUpdated;
|
|
47495
|
+
})();
|
|
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
|
+
|
|
46253
48331
|
$root.FamilyMemberAdded = (function() {
|
|
46254
48332
|
|
|
46255
48333
|
/**
|