@headspace/protos-events 1.820.0 → 1.822.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 +77 -1
- package/lib/index.js +377 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -97806,6 +97806,9 @@ export class SubscriptionCreated {
|
|
|
97806
97806
|
/** SubscriptionCreated productSku. */
|
|
97807
97807
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
97808
97808
|
|
|
97809
|
+
/** SubscriptionCreated externalId. */
|
|
97810
|
+
externalId: string;
|
|
97811
|
+
|
|
97809
97812
|
/**
|
|
97810
97813
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
97811
97814
|
* @param [properties] Properties to set
|
|
@@ -97938,6 +97941,9 @@ export namespace SubscriptionCreated {
|
|
|
97938
97941
|
/** SubscriptionCreated productSku */
|
|
97939
97942
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
97940
97943
|
|
|
97944
|
+
/** SubscriptionCreated externalId */
|
|
97945
|
+
externalId?: (string|null);
|
|
97946
|
+
|
|
97941
97947
|
/** Unknown fields preserved while decoding */
|
|
97942
97948
|
$unknowns?: Uint8Array[];
|
|
97943
97949
|
}
|
|
@@ -98027,6 +98033,9 @@ export class SubscriptionCancelled {
|
|
|
98027
98033
|
/** SubscriptionCancelled cancellationReason. */
|
|
98028
98034
|
cancellationReason: string;
|
|
98029
98035
|
|
|
98036
|
+
/** SubscriptionCancelled externalId. */
|
|
98037
|
+
externalId: string;
|
|
98038
|
+
|
|
98030
98039
|
/**
|
|
98031
98040
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
98032
98041
|
* @param [properties] Properties to set
|
|
@@ -98168,6 +98177,9 @@ export namespace SubscriptionCancelled {
|
|
|
98168
98177
|
/** SubscriptionCancelled cancellationReason */
|
|
98169
98178
|
cancellationReason?: (string|null);
|
|
98170
98179
|
|
|
98180
|
+
/** SubscriptionCancelled externalId */
|
|
98181
|
+
externalId?: (string|null);
|
|
98182
|
+
|
|
98171
98183
|
/** Unknown fields preserved while decoding */
|
|
98172
98184
|
$unknowns?: Uint8Array[];
|
|
98173
98185
|
}
|
|
@@ -98376,6 +98388,9 @@ export class SubscriptionRenewed {
|
|
|
98376
98388
|
/** SubscriptionRenewed productSku. */
|
|
98377
98389
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
98378
98390
|
|
|
98391
|
+
/** SubscriptionRenewed externalId. */
|
|
98392
|
+
externalId: string;
|
|
98393
|
+
|
|
98379
98394
|
/**
|
|
98380
98395
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
98381
98396
|
* @param [properties] Properties to set
|
|
@@ -98508,6 +98523,9 @@ export namespace SubscriptionRenewed {
|
|
|
98508
98523
|
/** SubscriptionRenewed productSku */
|
|
98509
98524
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
98510
98525
|
|
|
98526
|
+
/** SubscriptionRenewed externalId */
|
|
98527
|
+
externalId?: (string|null);
|
|
98528
|
+
|
|
98511
98529
|
/** Unknown fields preserved while decoding */
|
|
98512
98530
|
$unknowns?: Uint8Array[];
|
|
98513
98531
|
}
|
|
@@ -98571,6 +98589,9 @@ export class SubscriptionUpcomingRenewal {
|
|
|
98571
98589
|
/** SubscriptionUpcomingRenewal platform. */
|
|
98572
98590
|
platform: subscription.SubscriptionPlatform;
|
|
98573
98591
|
|
|
98592
|
+
/** SubscriptionUpcomingRenewal externalId. */
|
|
98593
|
+
externalId: string;
|
|
98594
|
+
|
|
98574
98595
|
/**
|
|
98575
98596
|
* Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
|
|
98576
98597
|
* @param [properties] Properties to set
|
|
@@ -98688,6 +98709,9 @@ export namespace SubscriptionUpcomingRenewal {
|
|
|
98688
98709
|
/** SubscriptionUpcomingRenewal platform */
|
|
98689
98710
|
platform?: (subscription.SubscriptionPlatform|null);
|
|
98690
98711
|
|
|
98712
|
+
/** SubscriptionUpcomingRenewal externalId */
|
|
98713
|
+
externalId?: (string|null);
|
|
98714
|
+
|
|
98691
98715
|
/** Unknown fields preserved while decoding */
|
|
98692
98716
|
$unknowns?: Uint8Array[];
|
|
98693
98717
|
}
|
|
@@ -99067,6 +99091,9 @@ export class SubscriptionGraced {
|
|
|
99067
99091
|
/** SubscriptionGraced productSku. */
|
|
99068
99092
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99069
99093
|
|
|
99094
|
+
/** SubscriptionGraced externalId. */
|
|
99095
|
+
externalId: string;
|
|
99096
|
+
|
|
99070
99097
|
/**
|
|
99071
99098
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
99072
99099
|
* @param [properties] Properties to set
|
|
@@ -99199,6 +99226,9 @@ export namespace SubscriptionGraced {
|
|
|
99199
99226
|
/** SubscriptionGraced productSku */
|
|
99200
99227
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99201
99228
|
|
|
99229
|
+
/** SubscriptionGraced externalId */
|
|
99230
|
+
externalId?: (string|null);
|
|
99231
|
+
|
|
99202
99232
|
/** Unknown fields preserved while decoding */
|
|
99203
99233
|
$unknowns?: Uint8Array[];
|
|
99204
99234
|
}
|
|
@@ -99277,6 +99307,9 @@ export class SubscriptionStarted {
|
|
|
99277
99307
|
/** SubscriptionStarted productSku. */
|
|
99278
99308
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99279
99309
|
|
|
99310
|
+
/** SubscriptionStarted externalId. */
|
|
99311
|
+
externalId: string;
|
|
99312
|
+
|
|
99280
99313
|
/**
|
|
99281
99314
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
99282
99315
|
* @param [properties] Properties to set
|
|
@@ -99409,6 +99442,9 @@ export namespace SubscriptionStarted {
|
|
|
99409
99442
|
/** SubscriptionStarted productSku */
|
|
99410
99443
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99411
99444
|
|
|
99445
|
+
/** SubscriptionStarted externalId */
|
|
99446
|
+
externalId?: (string|null);
|
|
99447
|
+
|
|
99412
99448
|
/** Unknown fields preserved while decoding */
|
|
99413
99449
|
$unknowns?: Uint8Array[];
|
|
99414
99450
|
}
|
|
@@ -99490,6 +99526,9 @@ export class SubscriptionEnded {
|
|
|
99490
99526
|
/** SubscriptionEnded productSku. */
|
|
99491
99527
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99492
99528
|
|
|
99529
|
+
/** SubscriptionEnded externalId. */
|
|
99530
|
+
externalId: string;
|
|
99531
|
+
|
|
99493
99532
|
/**
|
|
99494
99533
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
99495
99534
|
* @param [properties] Properties to set
|
|
@@ -99625,6 +99664,9 @@ export namespace SubscriptionEnded {
|
|
|
99625
99664
|
/** SubscriptionEnded productSku */
|
|
99626
99665
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99627
99666
|
|
|
99667
|
+
/** SubscriptionEnded externalId */
|
|
99668
|
+
externalId?: (string|null);
|
|
99669
|
+
|
|
99628
99670
|
/** Unknown fields preserved while decoding */
|
|
99629
99671
|
$unknowns?: Uint8Array[];
|
|
99630
99672
|
}
|
|
@@ -99700,6 +99742,9 @@ export class SubscriptionRecovered {
|
|
|
99700
99742
|
/** SubscriptionRecovered productSku. */
|
|
99701
99743
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99702
99744
|
|
|
99745
|
+
/** SubscriptionRecovered externalId. */
|
|
99746
|
+
externalId: string;
|
|
99747
|
+
|
|
99703
99748
|
/**
|
|
99704
99749
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
99705
99750
|
* @param [properties] Properties to set
|
|
@@ -99832,6 +99877,9 @@ export namespace SubscriptionRecovered {
|
|
|
99832
99877
|
/** SubscriptionRecovered productSku */
|
|
99833
99878
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99834
99879
|
|
|
99880
|
+
/** SubscriptionRecovered externalId */
|
|
99881
|
+
externalId?: (string|null);
|
|
99882
|
+
|
|
99835
99883
|
/** Unknown fields preserved while decoding */
|
|
99836
99884
|
$unknowns?: Uint8Array[];
|
|
99837
99885
|
}
|
|
@@ -99911,6 +99959,9 @@ export class SubscriptionAmended {
|
|
|
99911
99959
|
/** SubscriptionAmended productSku. */
|
|
99912
99960
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
99913
99961
|
|
|
99962
|
+
/** SubscriptionAmended externalId. */
|
|
99963
|
+
externalId: string;
|
|
99964
|
+
|
|
99914
99965
|
/**
|
|
99915
99966
|
* Creates a new SubscriptionAmended instance using the specified properties.
|
|
99916
99967
|
* @param [properties] Properties to set
|
|
@@ -100043,6 +100094,9 @@ export namespace SubscriptionAmended {
|
|
|
100043
100094
|
/** SubscriptionAmended productSku */
|
|
100044
100095
|
productSku?: (subscription.SubscriptionProductSku.$Properties|null);
|
|
100045
100096
|
|
|
100097
|
+
/** SubscriptionAmended externalId */
|
|
100098
|
+
externalId?: (string|null);
|
|
100099
|
+
|
|
100046
100100
|
/** Unknown fields preserved while decoding */
|
|
100047
100101
|
$unknowns?: Uint8Array[];
|
|
100048
100102
|
}
|
|
@@ -101955,7 +102009,10 @@ export namespace subscription {
|
|
|
101955
102009
|
SUBSCRIPTION_PLATFORM_SIKA = 7,
|
|
101956
102010
|
|
|
101957
102011
|
/** SUBSCRIPTION_PLATFORM_PAPI value */
|
|
101958
|
-
SUBSCRIPTION_PLATFORM_PAPI = 8
|
|
102012
|
+
SUBSCRIPTION_PLATFORM_PAPI = 8,
|
|
102013
|
+
|
|
102014
|
+
/** SUBSCRIPTION_PLATFORM_B2B_ORG_SUB value */
|
|
102015
|
+
SUBSCRIPTION_PLATFORM_B2B_ORG_SUB = 9
|
|
101959
102016
|
}
|
|
101960
102017
|
|
|
101961
102018
|
/** AutoRenewalStatus enum. */
|
|
@@ -103676,6 +103733,19 @@ export namespace UserLanguagePreferenceUpdated {
|
|
|
103676
103733
|
type $Shape = UserLanguagePreferenceUpdated.$Properties;
|
|
103677
103734
|
}
|
|
103678
103735
|
|
|
103736
|
+
/** UserConsentSource enum. */
|
|
103737
|
+
export enum UserConsentSource {
|
|
103738
|
+
|
|
103739
|
+
/** USER_CONSENT_SOURCE_UNKNOWN value */
|
|
103740
|
+
USER_CONSENT_SOURCE_UNKNOWN = 0,
|
|
103741
|
+
|
|
103742
|
+
/** USER_CONSENT_SOURCE_SELF value */
|
|
103743
|
+
USER_CONSENT_SOURCE_SELF = 1,
|
|
103744
|
+
|
|
103745
|
+
/** USER_CONSENT_SOURCE_SYSTEM value */
|
|
103746
|
+
USER_CONSENT_SOURCE_SYSTEM = 2
|
|
103747
|
+
}
|
|
103748
|
+
|
|
103679
103749
|
/**
|
|
103680
103750
|
* Properties of a UserConsentUpdated.
|
|
103681
103751
|
* @deprecated Use UserConsentUpdated.$Properties instead.
|
|
@@ -103707,6 +103777,9 @@ export class UserConsentUpdated {
|
|
|
103707
103777
|
/** UserConsentUpdated version. */
|
|
103708
103778
|
version: (number|Long);
|
|
103709
103779
|
|
|
103780
|
+
/** UserConsentUpdated source. */
|
|
103781
|
+
source: UserConsentSource;
|
|
103782
|
+
|
|
103710
103783
|
/**
|
|
103711
103784
|
* Creates a new UserConsentUpdated instance using the specified properties.
|
|
103712
103785
|
* @param [properties] Properties to set
|
|
@@ -103803,6 +103876,9 @@ export namespace UserConsentUpdated {
|
|
|
103803
103876
|
/** UserConsentUpdated version */
|
|
103804
103877
|
version?: (number|Long|null);
|
|
103805
103878
|
|
|
103879
|
+
/** UserConsentUpdated source */
|
|
103880
|
+
source?: (UserConsentSource|null);
|
|
103881
|
+
|
|
103806
103882
|
/** Unknown fields preserved while decoding */
|
|
103807
103883
|
$unknowns?: Uint8Array[];
|
|
103808
103884
|
}
|
package/lib/index.js
CHANGED
|
@@ -285179,6 +285179,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
285179
285179
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionCreated terms
|
|
285180
285180
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCreated membership
|
|
285181
285181
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionCreated productSku
|
|
285182
|
+
* @property {string|null} [externalId] SubscriptionCreated externalId
|
|
285182
285183
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
285183
285184
|
*/
|
|
285184
285185
|
|
|
@@ -285343,6 +285344,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
285343
285344
|
*/
|
|
285344
285345
|
SubscriptionCreated.prototype.productSku = null;
|
|
285345
285346
|
|
|
285347
|
+
/**
|
|
285348
|
+
* SubscriptionCreated externalId.
|
|
285349
|
+
* @member {string} externalId
|
|
285350
|
+
* @memberof SubscriptionCreated
|
|
285351
|
+
* @instance
|
|
285352
|
+
*/
|
|
285353
|
+
SubscriptionCreated.prototype.externalId = "";
|
|
285354
|
+
|
|
285346
285355
|
/**
|
|
285347
285356
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
285348
285357
|
* @function create
|
|
@@ -285408,6 +285417,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
285408
285417
|
writer.uint32(/* id 15, wireType 0 =*/120).int32(message.membership);
|
|
285409
285418
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
285410
285419
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
285420
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
285421
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.externalId);
|
|
285411
285422
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
285412
285423
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
285413
285424
|
writer.raw(message.$unknowns[i]);
|
|
@@ -285599,6 +285610,15 @@ $root.SubscriptionCreated = (function() {
|
|
|
285599
285610
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
285600
285611
|
continue;
|
|
285601
285612
|
}
|
|
285613
|
+
case 18: {
|
|
285614
|
+
if (wireType !== 2)
|
|
285615
|
+
break;
|
|
285616
|
+
if ((value = reader.string()).length)
|
|
285617
|
+
message.externalId = value;
|
|
285618
|
+
else
|
|
285619
|
+
delete message.externalId;
|
|
285620
|
+
continue;
|
|
285621
|
+
}
|
|
285602
285622
|
}
|
|
285603
285623
|
reader.skipType(wireType, _depth, tag);
|
|
285604
285624
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -285674,6 +285694,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
285674
285694
|
case 6:
|
|
285675
285695
|
case 7:
|
|
285676
285696
|
case 8:
|
|
285697
|
+
case 9:
|
|
285677
285698
|
break;
|
|
285678
285699
|
}
|
|
285679
285700
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -285741,6 +285762,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
285741
285762
|
if (error)
|
|
285742
285763
|
return "productSku." + error;
|
|
285743
285764
|
}
|
|
285765
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
285766
|
+
if (!$util.isString(message.externalId))
|
|
285767
|
+
return "externalId: string expected";
|
|
285744
285768
|
return null;
|
|
285745
285769
|
};
|
|
285746
285770
|
|
|
@@ -285853,6 +285877,10 @@ $root.SubscriptionCreated = (function() {
|
|
|
285853
285877
|
case 8:
|
|
285854
285878
|
message.platform = 8;
|
|
285855
285879
|
break;
|
|
285880
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
285881
|
+
case 9:
|
|
285882
|
+
message.platform = 9;
|
|
285883
|
+
break;
|
|
285856
285884
|
}
|
|
285857
285885
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
285858
285886
|
switch (object.autoRenewalStatus) {
|
|
@@ -285977,6 +286005,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
285977
286005
|
throw TypeError(".SubscriptionCreated.productSku: object expected");
|
|
285978
286006
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
285979
286007
|
}
|
|
286008
|
+
if (object.externalId != null)
|
|
286009
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
286010
|
+
message.externalId = String(object.externalId);
|
|
285980
286011
|
return message;
|
|
285981
286012
|
};
|
|
285982
286013
|
|
|
@@ -286028,6 +286059,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
286028
286059
|
object.isQueuedSubscription = false;
|
|
286029
286060
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
286030
286061
|
object.productSku = null;
|
|
286062
|
+
object.externalId = "";
|
|
286031
286063
|
}
|
|
286032
286064
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
286033
286065
|
object.id = message.id;
|
|
@@ -286087,6 +286119,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
286087
286119
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
286088
286120
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
286089
286121
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
286122
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
286123
|
+
object.externalId = message.externalId;
|
|
286090
286124
|
return object;
|
|
286091
286125
|
};
|
|
286092
286126
|
|
|
@@ -286142,6 +286176,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286142
286176
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionCancelled membership
|
|
286143
286177
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionCancelled productSku
|
|
286144
286178
|
* @property {string|null} [cancellationReason] SubscriptionCancelled cancellationReason
|
|
286179
|
+
* @property {string|null} [externalId] SubscriptionCancelled externalId
|
|
286145
286180
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
286146
286181
|
*/
|
|
286147
286182
|
|
|
@@ -286330,6 +286365,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286330
286365
|
*/
|
|
286331
286366
|
SubscriptionCancelled.prototype.cancellationReason = "";
|
|
286332
286367
|
|
|
286368
|
+
/**
|
|
286369
|
+
* SubscriptionCancelled externalId.
|
|
286370
|
+
* @member {string} externalId
|
|
286371
|
+
* @memberof SubscriptionCancelled
|
|
286372
|
+
* @instance
|
|
286373
|
+
*/
|
|
286374
|
+
SubscriptionCancelled.prototype.externalId = "";
|
|
286375
|
+
|
|
286333
286376
|
/**
|
|
286334
286377
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
286335
286378
|
* @function create
|
|
@@ -286401,6 +286444,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286401
286444
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
286402
286445
|
if (message.cancellationReason != null && Object.hasOwnProperty.call(message, "cancellationReason"))
|
|
286403
286446
|
writer.uint32(/* id 20, wireType 2 =*/162).string(message.cancellationReason);
|
|
286447
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
286448
|
+
writer.uint32(/* id 21, wireType 2 =*/170).string(message.externalId);
|
|
286404
286449
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
286405
286450
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
286406
286451
|
writer.raw(message.$unknowns[i]);
|
|
@@ -286616,6 +286661,15 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286616
286661
|
delete message.cancellationReason;
|
|
286617
286662
|
continue;
|
|
286618
286663
|
}
|
|
286664
|
+
case 21: {
|
|
286665
|
+
if (wireType !== 2)
|
|
286666
|
+
break;
|
|
286667
|
+
if ((value = reader.string()).length)
|
|
286668
|
+
message.externalId = value;
|
|
286669
|
+
else
|
|
286670
|
+
delete message.externalId;
|
|
286671
|
+
continue;
|
|
286672
|
+
}
|
|
286619
286673
|
}
|
|
286620
286674
|
reader.skipType(wireType, _depth, tag);
|
|
286621
286675
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -286696,6 +286750,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286696
286750
|
case 6:
|
|
286697
286751
|
case 7:
|
|
286698
286752
|
case 8:
|
|
286753
|
+
case 9:
|
|
286699
286754
|
break;
|
|
286700
286755
|
}
|
|
286701
286756
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -286775,6 +286830,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286775
286830
|
if (message.cancellationReason != null && message.hasOwnProperty("cancellationReason"))
|
|
286776
286831
|
if (!$util.isString(message.cancellationReason))
|
|
286777
286832
|
return "cancellationReason: string expected";
|
|
286833
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
286834
|
+
if (!$util.isString(message.externalId))
|
|
286835
|
+
return "externalId: string expected";
|
|
286778
286836
|
return null;
|
|
286779
286837
|
};
|
|
286780
286838
|
|
|
@@ -286892,6 +286950,10 @@ $root.SubscriptionCancelled = (function() {
|
|
|
286892
286950
|
case 8:
|
|
286893
286951
|
message.platform = 8;
|
|
286894
286952
|
break;
|
|
286953
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
286954
|
+
case 9:
|
|
286955
|
+
message.platform = 9;
|
|
286956
|
+
break;
|
|
286895
286957
|
}
|
|
286896
286958
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
286897
286959
|
switch (object.autoRenewalStatus) {
|
|
@@ -287047,6 +287109,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
287047
287109
|
if (object.cancellationReason != null)
|
|
287048
287110
|
if (typeof object.cancellationReason !== "string" || object.cancellationReason.length)
|
|
287049
287111
|
message.cancellationReason = String(object.cancellationReason);
|
|
287112
|
+
if (object.externalId != null)
|
|
287113
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
287114
|
+
message.externalId = String(object.externalId);
|
|
287050
287115
|
return message;
|
|
287051
287116
|
};
|
|
287052
287117
|
|
|
@@ -287105,6 +287170,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
287105
287170
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
287106
287171
|
object.productSku = null;
|
|
287107
287172
|
object.cancellationReason = "";
|
|
287173
|
+
object.externalId = "";
|
|
287108
287174
|
}
|
|
287109
287175
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
287110
287176
|
object.id = message.id;
|
|
@@ -287175,6 +287241,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
287175
287241
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
287176
287242
|
if (message.cancellationReason != null && message.hasOwnProperty("cancellationReason"))
|
|
287177
287243
|
object.cancellationReason = message.cancellationReason;
|
|
287244
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
287245
|
+
object.externalId = message.externalId;
|
|
287178
287246
|
return object;
|
|
287179
287247
|
};
|
|
287180
287248
|
|
|
@@ -287550,6 +287618,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
287550
287618
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionRenewed terms
|
|
287551
287619
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionRenewed membership
|
|
287552
287620
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionRenewed productSku
|
|
287621
|
+
* @property {string|null} [externalId] SubscriptionRenewed externalId
|
|
287553
287622
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
287554
287623
|
*/
|
|
287555
287624
|
|
|
@@ -287713,6 +287782,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
287713
287782
|
*/
|
|
287714
287783
|
SubscriptionRenewed.prototype.productSku = null;
|
|
287715
287784
|
|
|
287785
|
+
/**
|
|
287786
|
+
* SubscriptionRenewed externalId.
|
|
287787
|
+
* @member {string} externalId
|
|
287788
|
+
* @memberof SubscriptionRenewed
|
|
287789
|
+
* @instance
|
|
287790
|
+
*/
|
|
287791
|
+
SubscriptionRenewed.prototype.externalId = "";
|
|
287792
|
+
|
|
287716
287793
|
/**
|
|
287717
287794
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
287718
287795
|
* @function create
|
|
@@ -287778,6 +287855,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
287778
287855
|
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
|
|
287779
287856
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
287780
287857
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
287858
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
287859
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.externalId);
|
|
287781
287860
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
287782
287861
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
287783
287862
|
writer.raw(message.$unknowns[i]);
|
|
@@ -287969,6 +288048,15 @@ $root.SubscriptionRenewed = (function() {
|
|
|
287969
288048
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
287970
288049
|
continue;
|
|
287971
288050
|
}
|
|
288051
|
+
case 19: {
|
|
288052
|
+
if (wireType !== 2)
|
|
288053
|
+
break;
|
|
288054
|
+
if ((value = reader.string()).length)
|
|
288055
|
+
message.externalId = value;
|
|
288056
|
+
else
|
|
288057
|
+
delete message.externalId;
|
|
288058
|
+
continue;
|
|
288059
|
+
}
|
|
287972
288060
|
}
|
|
287973
288061
|
reader.skipType(wireType, _depth, tag);
|
|
287974
288062
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -288044,6 +288132,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288044
288132
|
case 6:
|
|
288045
288133
|
case 7:
|
|
288046
288134
|
case 8:
|
|
288135
|
+
case 9:
|
|
288047
288136
|
break;
|
|
288048
288137
|
}
|
|
288049
288138
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -288111,6 +288200,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288111
288200
|
if (error)
|
|
288112
288201
|
return "productSku." + error;
|
|
288113
288202
|
}
|
|
288203
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
288204
|
+
if (!$util.isString(message.externalId))
|
|
288205
|
+
return "externalId: string expected";
|
|
288114
288206
|
return null;
|
|
288115
288207
|
};
|
|
288116
288208
|
|
|
@@ -288223,6 +288315,10 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288223
288315
|
case 8:
|
|
288224
288316
|
message.platform = 8;
|
|
288225
288317
|
break;
|
|
288318
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
288319
|
+
case 9:
|
|
288320
|
+
message.platform = 9;
|
|
288321
|
+
break;
|
|
288226
288322
|
}
|
|
288227
288323
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
288228
288324
|
switch (object.autoRenewalStatus) {
|
|
@@ -288354,6 +288450,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288354
288450
|
throw TypeError(".SubscriptionRenewed.productSku: object expected");
|
|
288355
288451
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
288356
288452
|
}
|
|
288453
|
+
if (object.externalId != null)
|
|
288454
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
288455
|
+
message.externalId = String(object.externalId);
|
|
288357
288456
|
return message;
|
|
288358
288457
|
};
|
|
288359
288458
|
|
|
@@ -288409,6 +288508,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288409
288508
|
object.renewalCount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
288410
288509
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
288411
288510
|
object.productSku = null;
|
|
288511
|
+
object.externalId = "";
|
|
288412
288512
|
}
|
|
288413
288513
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
288414
288514
|
object.id = message.id;
|
|
@@ -288473,6 +288573,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
288473
288573
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
288474
288574
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
288475
288575
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
288576
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
288577
|
+
object.externalId = message.externalId;
|
|
288476
288578
|
return object;
|
|
288477
288579
|
};
|
|
288478
288580
|
|
|
@@ -288520,6 +288622,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288520
288622
|
* @property {string|null} [currency] SubscriptionUpcomingRenewal currency
|
|
288521
288623
|
* @property {number|null} [renewalTermLength] SubscriptionUpcomingRenewal renewalTermLength
|
|
288522
288624
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionUpcomingRenewal platform
|
|
288625
|
+
* @property {string|null} [externalId] SubscriptionUpcomingRenewal externalId
|
|
288523
288626
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
288524
288627
|
*/
|
|
288525
288628
|
|
|
@@ -288640,6 +288743,14 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288640
288743
|
*/
|
|
288641
288744
|
SubscriptionUpcomingRenewal.prototype.platform = 0;
|
|
288642
288745
|
|
|
288746
|
+
/**
|
|
288747
|
+
* SubscriptionUpcomingRenewal externalId.
|
|
288748
|
+
* @member {string} externalId
|
|
288749
|
+
* @memberof SubscriptionUpcomingRenewal
|
|
288750
|
+
* @instance
|
|
288751
|
+
*/
|
|
288752
|
+
SubscriptionUpcomingRenewal.prototype.externalId = "";
|
|
288753
|
+
|
|
288643
288754
|
/**
|
|
288644
288755
|
* Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
|
|
288645
288756
|
* @function create
|
|
@@ -288690,6 +288801,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288690
288801
|
writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.renewalTermLength);
|
|
288691
288802
|
if (message.platform != null && Object.hasOwnProperty.call(message, "platform"))
|
|
288692
288803
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.platform);
|
|
288804
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
288805
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.externalId);
|
|
288693
288806
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
288694
288807
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
288695
288808
|
writer.raw(message.$unknowns[i]);
|
|
@@ -288833,6 +288946,15 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288833
288946
|
delete message.platform;
|
|
288834
288947
|
continue;
|
|
288835
288948
|
}
|
|
288949
|
+
case 12: {
|
|
288950
|
+
if (wireType !== 2)
|
|
288951
|
+
break;
|
|
288952
|
+
if ((value = reader.string()).length)
|
|
288953
|
+
message.externalId = value;
|
|
288954
|
+
else
|
|
288955
|
+
delete message.externalId;
|
|
288956
|
+
continue;
|
|
288957
|
+
}
|
|
288836
288958
|
}
|
|
288837
288959
|
reader.skipType(wireType, _depth, tag);
|
|
288838
288960
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -288931,8 +289053,12 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
288931
289053
|
case 6:
|
|
288932
289054
|
case 7:
|
|
288933
289055
|
case 8:
|
|
289056
|
+
case 9:
|
|
288934
289057
|
break;
|
|
288935
289058
|
}
|
|
289059
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
289060
|
+
if (!$util.isString(message.externalId))
|
|
289061
|
+
return "externalId: string expected";
|
|
288936
289062
|
return null;
|
|
288937
289063
|
};
|
|
288938
289064
|
|
|
@@ -289071,7 +289197,14 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
289071
289197
|
case 8:
|
|
289072
289198
|
message.platform = 8;
|
|
289073
289199
|
break;
|
|
289200
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
289201
|
+
case 9:
|
|
289202
|
+
message.platform = 9;
|
|
289203
|
+
break;
|
|
289074
289204
|
}
|
|
289205
|
+
if (object.externalId != null)
|
|
289206
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
289207
|
+
message.externalId = String(object.externalId);
|
|
289075
289208
|
return message;
|
|
289076
289209
|
};
|
|
289077
289210
|
|
|
@@ -289104,6 +289237,7 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
289104
289237
|
object.currency = "";
|
|
289105
289238
|
object.renewalTermLength = 0;
|
|
289106
289239
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
289240
|
+
object.externalId = "";
|
|
289107
289241
|
}
|
|
289108
289242
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
289109
289243
|
object.id = message.id;
|
|
@@ -289132,6 +289266,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
|
|
|
289132
289266
|
object.renewalTermLength = message.renewalTermLength;
|
|
289133
289267
|
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
289134
289268
|
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] === undefined ? message.platform : $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
289269
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
289270
|
+
object.externalId = message.externalId;
|
|
289135
289271
|
return object;
|
|
289136
289272
|
};
|
|
289137
289273
|
|
|
@@ -290038,6 +290174,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
290038
290174
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionGraced terms
|
|
290039
290175
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionGraced membership
|
|
290040
290176
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionGraced productSku
|
|
290177
|
+
* @property {string|null} [externalId] SubscriptionGraced externalId
|
|
290041
290178
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
290042
290179
|
*/
|
|
290043
290180
|
|
|
@@ -290201,6 +290338,14 @@ $root.SubscriptionGraced = (function() {
|
|
|
290201
290338
|
*/
|
|
290202
290339
|
SubscriptionGraced.prototype.productSku = null;
|
|
290203
290340
|
|
|
290341
|
+
/**
|
|
290342
|
+
* SubscriptionGraced externalId.
|
|
290343
|
+
* @member {string} externalId
|
|
290344
|
+
* @memberof SubscriptionGraced
|
|
290345
|
+
* @instance
|
|
290346
|
+
*/
|
|
290347
|
+
SubscriptionGraced.prototype.externalId = "";
|
|
290348
|
+
|
|
290204
290349
|
/**
|
|
290205
290350
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
290206
290351
|
* @function create
|
|
@@ -290266,6 +290411,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
290266
290411
|
writer.uint32(/* id 15, wireType 0 =*/120).int32(message.membership);
|
|
290267
290412
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
290268
290413
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
290414
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
290415
|
+
writer.uint32(/* id 17, wireType 2 =*/138).string(message.externalId);
|
|
290269
290416
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
290270
290417
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
290271
290418
|
writer.raw(message.$unknowns[i]);
|
|
@@ -290457,6 +290604,15 @@ $root.SubscriptionGraced = (function() {
|
|
|
290457
290604
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
290458
290605
|
continue;
|
|
290459
290606
|
}
|
|
290607
|
+
case 17: {
|
|
290608
|
+
if (wireType !== 2)
|
|
290609
|
+
break;
|
|
290610
|
+
if ((value = reader.string()).length)
|
|
290611
|
+
message.externalId = value;
|
|
290612
|
+
else
|
|
290613
|
+
delete message.externalId;
|
|
290614
|
+
continue;
|
|
290615
|
+
}
|
|
290460
290616
|
}
|
|
290461
290617
|
reader.skipType(wireType, _depth, tag);
|
|
290462
290618
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -290532,6 +290688,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
290532
290688
|
case 6:
|
|
290533
290689
|
case 7:
|
|
290534
290690
|
case 8:
|
|
290691
|
+
case 9:
|
|
290535
290692
|
break;
|
|
290536
290693
|
}
|
|
290537
290694
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -290599,6 +290756,9 @@ $root.SubscriptionGraced = (function() {
|
|
|
290599
290756
|
if (error)
|
|
290600
290757
|
return "productSku." + error;
|
|
290601
290758
|
}
|
|
290759
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
290760
|
+
if (!$util.isString(message.externalId))
|
|
290761
|
+
return "externalId: string expected";
|
|
290602
290762
|
return null;
|
|
290603
290763
|
};
|
|
290604
290764
|
|
|
@@ -290711,6 +290871,10 @@ $root.SubscriptionGraced = (function() {
|
|
|
290711
290871
|
case 8:
|
|
290712
290872
|
message.platform = 8;
|
|
290713
290873
|
break;
|
|
290874
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
290875
|
+
case 9:
|
|
290876
|
+
message.platform = 9;
|
|
290877
|
+
break;
|
|
290714
290878
|
}
|
|
290715
290879
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
290716
290880
|
switch (object.autoRenewalStatus) {
|
|
@@ -290842,6 +291006,9 @@ $root.SubscriptionGraced = (function() {
|
|
|
290842
291006
|
throw TypeError(".SubscriptionGraced.productSku: object expected");
|
|
290843
291007
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
290844
291008
|
}
|
|
291009
|
+
if (object.externalId != null)
|
|
291010
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
291011
|
+
message.externalId = String(object.externalId);
|
|
290845
291012
|
return message;
|
|
290846
291013
|
};
|
|
290847
291014
|
|
|
@@ -290897,6 +291064,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
290897
291064
|
object.renewalCount = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
290898
291065
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
290899
291066
|
object.productSku = null;
|
|
291067
|
+
object.externalId = "";
|
|
290900
291068
|
}
|
|
290901
291069
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
290902
291070
|
object.id = message.id;
|
|
@@ -290961,6 +291129,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
290961
291129
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
290962
291130
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
290963
291131
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
291132
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
291133
|
+
object.externalId = message.externalId;
|
|
290964
291134
|
return object;
|
|
290965
291135
|
};
|
|
290966
291136
|
|
|
@@ -291013,6 +291183,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
291013
291183
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionStarted terms
|
|
291014
291184
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionStarted membership
|
|
291015
291185
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionStarted productSku
|
|
291186
|
+
* @property {string|null} [externalId] SubscriptionStarted externalId
|
|
291016
291187
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
291017
291188
|
*/
|
|
291018
291189
|
|
|
@@ -291175,6 +291346,14 @@ $root.SubscriptionStarted = (function() {
|
|
|
291175
291346
|
*/
|
|
291176
291347
|
SubscriptionStarted.prototype.productSku = null;
|
|
291177
291348
|
|
|
291349
|
+
/**
|
|
291350
|
+
* SubscriptionStarted externalId.
|
|
291351
|
+
* @member {string} externalId
|
|
291352
|
+
* @memberof SubscriptionStarted
|
|
291353
|
+
* @instance
|
|
291354
|
+
*/
|
|
291355
|
+
SubscriptionStarted.prototype.externalId = "";
|
|
291356
|
+
|
|
291178
291357
|
/**
|
|
291179
291358
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
291180
291359
|
* @function create
|
|
@@ -291240,6 +291419,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
291240
291419
|
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
291241
291420
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
291242
291421
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
291422
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
291423
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.externalId);
|
|
291243
291424
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
291244
291425
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
291245
291426
|
writer.raw(message.$unknowns[i]);
|
|
@@ -291431,6 +291612,15 @@ $root.SubscriptionStarted = (function() {
|
|
|
291431
291612
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
291432
291613
|
continue;
|
|
291433
291614
|
}
|
|
291615
|
+
case 18: {
|
|
291616
|
+
if (wireType !== 2)
|
|
291617
|
+
break;
|
|
291618
|
+
if ((value = reader.string()).length)
|
|
291619
|
+
message.externalId = value;
|
|
291620
|
+
else
|
|
291621
|
+
delete message.externalId;
|
|
291622
|
+
continue;
|
|
291623
|
+
}
|
|
291434
291624
|
}
|
|
291435
291625
|
reader.skipType(wireType, _depth, tag);
|
|
291436
291626
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -291503,6 +291693,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
291503
291693
|
case 6:
|
|
291504
291694
|
case 7:
|
|
291505
291695
|
case 8:
|
|
291696
|
+
case 9:
|
|
291506
291697
|
break;
|
|
291507
291698
|
}
|
|
291508
291699
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -291573,6 +291764,9 @@ $root.SubscriptionStarted = (function() {
|
|
|
291573
291764
|
if (error)
|
|
291574
291765
|
return "productSku." + error;
|
|
291575
291766
|
}
|
|
291767
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
291768
|
+
if (!$util.isString(message.externalId))
|
|
291769
|
+
return "externalId: string expected";
|
|
291576
291770
|
return null;
|
|
291577
291771
|
};
|
|
291578
291772
|
|
|
@@ -291682,6 +291876,10 @@ $root.SubscriptionStarted = (function() {
|
|
|
291682
291876
|
case 8:
|
|
291683
291877
|
message.platform = 8;
|
|
291684
291878
|
break;
|
|
291879
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
291880
|
+
case 9:
|
|
291881
|
+
message.platform = 9;
|
|
291882
|
+
break;
|
|
291685
291883
|
}
|
|
291686
291884
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
291687
291885
|
switch (object.autoRenewalStatus) {
|
|
@@ -291816,6 +292014,9 @@ $root.SubscriptionStarted = (function() {
|
|
|
291816
292014
|
throw TypeError(".SubscriptionStarted.productSku: object expected");
|
|
291817
292015
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
291818
292016
|
}
|
|
292017
|
+
if (object.externalId != null)
|
|
292018
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
292019
|
+
message.externalId = String(object.externalId);
|
|
291819
292020
|
return message;
|
|
291820
292021
|
};
|
|
291821
292022
|
|
|
@@ -291871,6 +292072,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
291871
292072
|
object.id = 0;
|
|
291872
292073
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
291873
292074
|
object.productSku = null;
|
|
292075
|
+
object.externalId = "";
|
|
291874
292076
|
}
|
|
291875
292077
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
291876
292078
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -291935,6 +292137,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
291935
292137
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
291936
292138
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
291937
292139
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
292140
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
292141
|
+
object.externalId = message.externalId;
|
|
291938
292142
|
return object;
|
|
291939
292143
|
};
|
|
291940
292144
|
|
|
@@ -291988,6 +292192,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
291988
292192
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionEnded terms
|
|
291989
292193
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionEnded membership
|
|
291990
292194
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionEnded productSku
|
|
292195
|
+
* @property {string|null} [externalId] SubscriptionEnded externalId
|
|
291991
292196
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
291992
292197
|
*/
|
|
291993
292198
|
|
|
@@ -292158,6 +292363,14 @@ $root.SubscriptionEnded = (function() {
|
|
|
292158
292363
|
*/
|
|
292159
292364
|
SubscriptionEnded.prototype.productSku = null;
|
|
292160
292365
|
|
|
292366
|
+
/**
|
|
292367
|
+
* SubscriptionEnded externalId.
|
|
292368
|
+
* @member {string} externalId
|
|
292369
|
+
* @memberof SubscriptionEnded
|
|
292370
|
+
* @instance
|
|
292371
|
+
*/
|
|
292372
|
+
SubscriptionEnded.prototype.externalId = "";
|
|
292373
|
+
|
|
292161
292374
|
/**
|
|
292162
292375
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
292163
292376
|
* @function create
|
|
@@ -292225,6 +292438,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
292225
292438
|
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.membership);
|
|
292226
292439
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
292227
292440
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
292441
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
292442
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.externalId);
|
|
292228
292443
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
292229
292444
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
292230
292445
|
writer.raw(message.$unknowns[i]);
|
|
@@ -292425,6 +292640,15 @@ $root.SubscriptionEnded = (function() {
|
|
|
292425
292640
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
292426
292641
|
continue;
|
|
292427
292642
|
}
|
|
292643
|
+
case 19: {
|
|
292644
|
+
if (wireType !== 2)
|
|
292645
|
+
break;
|
|
292646
|
+
if ((value = reader.string()).length)
|
|
292647
|
+
message.externalId = value;
|
|
292648
|
+
else
|
|
292649
|
+
delete message.externalId;
|
|
292650
|
+
continue;
|
|
292651
|
+
}
|
|
292428
292652
|
}
|
|
292429
292653
|
reader.skipType(wireType, _depth, tag);
|
|
292430
292654
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -292497,6 +292721,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
292497
292721
|
case 6:
|
|
292498
292722
|
case 7:
|
|
292499
292723
|
case 8:
|
|
292724
|
+
case 9:
|
|
292500
292725
|
break;
|
|
292501
292726
|
}
|
|
292502
292727
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -292576,6 +292801,9 @@ $root.SubscriptionEnded = (function() {
|
|
|
292576
292801
|
if (error)
|
|
292577
292802
|
return "productSku." + error;
|
|
292578
292803
|
}
|
|
292804
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
292805
|
+
if (!$util.isString(message.externalId))
|
|
292806
|
+
return "externalId: string expected";
|
|
292579
292807
|
return null;
|
|
292580
292808
|
};
|
|
292581
292809
|
|
|
@@ -292685,6 +292913,10 @@ $root.SubscriptionEnded = (function() {
|
|
|
292685
292913
|
case 8:
|
|
292686
292914
|
message.platform = 8;
|
|
292687
292915
|
break;
|
|
292916
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
292917
|
+
case 9:
|
|
292918
|
+
message.platform = 9;
|
|
292919
|
+
break;
|
|
292688
292920
|
}
|
|
292689
292921
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
292690
292922
|
switch (object.autoRenewalStatus) {
|
|
@@ -292840,6 +293072,9 @@ $root.SubscriptionEnded = (function() {
|
|
|
292840
293072
|
throw TypeError(".SubscriptionEnded.productSku: object expected");
|
|
292841
293073
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
292842
293074
|
}
|
|
293075
|
+
if (object.externalId != null)
|
|
293076
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
293077
|
+
message.externalId = String(object.externalId);
|
|
292843
293078
|
return message;
|
|
292844
293079
|
};
|
|
292845
293080
|
|
|
@@ -292896,6 +293131,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
292896
293131
|
object.id = 0;
|
|
292897
293132
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
292898
293133
|
object.productSku = null;
|
|
293134
|
+
object.externalId = "";
|
|
292899
293135
|
}
|
|
292900
293136
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
292901
293137
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -292962,6 +293198,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
292962
293198
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
292963
293199
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
292964
293200
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
293201
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
293202
|
+
object.externalId = message.externalId;
|
|
292965
293203
|
return object;
|
|
292966
293204
|
};
|
|
292967
293205
|
|
|
@@ -293014,6 +293252,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293014
293252
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionRecovered terms
|
|
293015
293253
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionRecovered membership
|
|
293016
293254
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionRecovered productSku
|
|
293255
|
+
* @property {string|null} [externalId] SubscriptionRecovered externalId
|
|
293017
293256
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
293018
293257
|
*/
|
|
293019
293258
|
|
|
@@ -293175,6 +293414,14 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293175
293414
|
*/
|
|
293176
293415
|
SubscriptionRecovered.prototype.productSku = null;
|
|
293177
293416
|
|
|
293417
|
+
/**
|
|
293418
|
+
* SubscriptionRecovered externalId.
|
|
293419
|
+
* @member {string} externalId
|
|
293420
|
+
* @memberof SubscriptionRecovered
|
|
293421
|
+
* @instance
|
|
293422
|
+
*/
|
|
293423
|
+
SubscriptionRecovered.prototype.externalId = "";
|
|
293424
|
+
|
|
293178
293425
|
/**
|
|
293179
293426
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
293180
293427
|
* @function create
|
|
@@ -293240,6 +293487,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293240
293487
|
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
293241
293488
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
293242
293489
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
293490
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
293491
|
+
writer.uint32(/* id 18, wireType 2 =*/146).string(message.externalId);
|
|
293243
293492
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
293244
293493
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
293245
293494
|
writer.raw(message.$unknowns[i]);
|
|
@@ -293431,6 +293680,15 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293431
293680
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
293432
293681
|
continue;
|
|
293433
293682
|
}
|
|
293683
|
+
case 18: {
|
|
293684
|
+
if (wireType !== 2)
|
|
293685
|
+
break;
|
|
293686
|
+
if ((value = reader.string()).length)
|
|
293687
|
+
message.externalId = value;
|
|
293688
|
+
else
|
|
293689
|
+
delete message.externalId;
|
|
293690
|
+
continue;
|
|
293691
|
+
}
|
|
293434
293692
|
}
|
|
293435
293693
|
reader.skipType(wireType, _depth, tag);
|
|
293436
293694
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -293503,6 +293761,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293503
293761
|
case 6:
|
|
293504
293762
|
case 7:
|
|
293505
293763
|
case 8:
|
|
293764
|
+
case 9:
|
|
293506
293765
|
break;
|
|
293507
293766
|
}
|
|
293508
293767
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -293573,6 +293832,9 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293573
293832
|
if (error)
|
|
293574
293833
|
return "productSku." + error;
|
|
293575
293834
|
}
|
|
293835
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
293836
|
+
if (!$util.isString(message.externalId))
|
|
293837
|
+
return "externalId: string expected";
|
|
293576
293838
|
return null;
|
|
293577
293839
|
};
|
|
293578
293840
|
|
|
@@ -293682,6 +293944,10 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293682
293944
|
case 8:
|
|
293683
293945
|
message.platform = 8;
|
|
293684
293946
|
break;
|
|
293947
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
293948
|
+
case 9:
|
|
293949
|
+
message.platform = 9;
|
|
293950
|
+
break;
|
|
293685
293951
|
}
|
|
293686
293952
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
293687
293953
|
switch (object.autoRenewalStatus) {
|
|
@@ -293816,6 +294082,9 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293816
294082
|
throw TypeError(".SubscriptionRecovered.productSku: object expected");
|
|
293817
294083
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
293818
294084
|
}
|
|
294085
|
+
if (object.externalId != null)
|
|
294086
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
294087
|
+
message.externalId = String(object.externalId);
|
|
293819
294088
|
return message;
|
|
293820
294089
|
};
|
|
293821
294090
|
|
|
@@ -293871,6 +294140,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293871
294140
|
object.id = 0;
|
|
293872
294141
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
293873
294142
|
object.productSku = null;
|
|
294143
|
+
object.externalId = "";
|
|
293874
294144
|
}
|
|
293875
294145
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
293876
294146
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -293935,6 +294205,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
293935
294205
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
293936
294206
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
293937
294207
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
294208
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
294209
|
+
object.externalId = message.externalId;
|
|
293938
294210
|
return object;
|
|
293939
294211
|
};
|
|
293940
294212
|
|
|
@@ -293987,6 +294259,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
293987
294259
|
* @property {Array.<subscription.Term.$Properties>|null} [terms] SubscriptionAmended terms
|
|
293988
294260
|
* @property {subscription.SubscriptionMembership|null} [membership] SubscriptionAmended membership
|
|
293989
294261
|
* @property {subscription.SubscriptionProductSku.$Properties|null} [productSku] SubscriptionAmended productSku
|
|
294262
|
+
* @property {string|null} [externalId] SubscriptionAmended externalId
|
|
293990
294263
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
293991
294264
|
*/
|
|
293992
294265
|
|
|
@@ -294150,6 +294423,14 @@ $root.SubscriptionAmended = (function() {
|
|
|
294150
294423
|
*/
|
|
294151
294424
|
SubscriptionAmended.prototype.productSku = null;
|
|
294152
294425
|
|
|
294426
|
+
/**
|
|
294427
|
+
* SubscriptionAmended externalId.
|
|
294428
|
+
* @member {string} externalId
|
|
294429
|
+
* @memberof SubscriptionAmended
|
|
294430
|
+
* @instance
|
|
294431
|
+
*/
|
|
294432
|
+
SubscriptionAmended.prototype.externalId = "";
|
|
294433
|
+
|
|
294153
294434
|
/**
|
|
294154
294435
|
* Creates a new SubscriptionAmended instance using the specified properties.
|
|
294155
294436
|
* @function create
|
|
@@ -294215,6 +294496,8 @@ $root.SubscriptionAmended = (function() {
|
|
|
294215
294496
|
writer.uint32(/* id 16, wireType 0 =*/128).int32(message.membership);
|
|
294216
294497
|
if (message.productSku != null && Object.hasOwnProperty.call(message, "productSku"))
|
|
294217
294498
|
$root.subscription.SubscriptionProductSku.encode(message.productSku, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
294499
|
+
if (message.externalId != null && Object.hasOwnProperty.call(message, "externalId"))
|
|
294500
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.externalId);
|
|
294218
294501
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
294219
294502
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
294220
294503
|
writer.raw(message.$unknowns[i]);
|
|
@@ -294406,6 +294689,15 @@ $root.SubscriptionAmended = (function() {
|
|
|
294406
294689
|
message.productSku = $root.subscription.SubscriptionProductSku.decode(reader, reader.uint32(), undefined, _depth + 1, message.productSku);
|
|
294407
294690
|
continue;
|
|
294408
294691
|
}
|
|
294692
|
+
case 19: {
|
|
294693
|
+
if (wireType !== 2)
|
|
294694
|
+
break;
|
|
294695
|
+
if ((value = reader.string()).length)
|
|
294696
|
+
message.externalId = value;
|
|
294697
|
+
else
|
|
294698
|
+
delete message.externalId;
|
|
294699
|
+
continue;
|
|
294700
|
+
}
|
|
294409
294701
|
}
|
|
294410
294702
|
reader.skipType(wireType, _depth, tag);
|
|
294411
294703
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -294478,6 +294770,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
294478
294770
|
case 6:
|
|
294479
294771
|
case 7:
|
|
294480
294772
|
case 8:
|
|
294773
|
+
case 9:
|
|
294481
294774
|
break;
|
|
294482
294775
|
}
|
|
294483
294776
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
@@ -294548,6 +294841,9 @@ $root.SubscriptionAmended = (function() {
|
|
|
294548
294841
|
if (error)
|
|
294549
294842
|
return "productSku." + error;
|
|
294550
294843
|
}
|
|
294844
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
294845
|
+
if (!$util.isString(message.externalId))
|
|
294846
|
+
return "externalId: string expected";
|
|
294551
294847
|
return null;
|
|
294552
294848
|
};
|
|
294553
294849
|
|
|
@@ -294657,6 +294953,10 @@ $root.SubscriptionAmended = (function() {
|
|
|
294657
294953
|
case 8:
|
|
294658
294954
|
message.platform = 8;
|
|
294659
294955
|
break;
|
|
294956
|
+
case "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB":
|
|
294957
|
+
case 9:
|
|
294958
|
+
message.platform = 9;
|
|
294959
|
+
break;
|
|
294660
294960
|
}
|
|
294661
294961
|
if (object.autoRenewalStatus !== 0 && (typeof object.autoRenewalStatus !== "string" || $root.subscription.AutoRenewalStatus[object.autoRenewalStatus] !== 0))
|
|
294662
294962
|
switch (object.autoRenewalStatus) {
|
|
@@ -294791,6 +295091,9 @@ $root.SubscriptionAmended = (function() {
|
|
|
294791
295091
|
throw TypeError(".SubscriptionAmended.productSku: object expected");
|
|
294792
295092
|
message.productSku = $root.subscription.SubscriptionProductSku.fromObject(object.productSku, _depth + 1);
|
|
294793
295093
|
}
|
|
295094
|
+
if (object.externalId != null)
|
|
295095
|
+
if (typeof object.externalId !== "string" || object.externalId.length)
|
|
295096
|
+
message.externalId = String(object.externalId);
|
|
294794
295097
|
return message;
|
|
294795
295098
|
};
|
|
294796
295099
|
|
|
@@ -294846,6 +295149,7 @@ $root.SubscriptionAmended = (function() {
|
|
|
294846
295149
|
object.id = 0;
|
|
294847
295150
|
object.membership = options.enums === String ? "PRIMARY" : 0;
|
|
294848
295151
|
object.productSku = null;
|
|
295152
|
+
object.externalId = "";
|
|
294849
295153
|
}
|
|
294850
295154
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
294851
295155
|
if (typeof BigInt !== "undefined" && options.longs === BigInt)
|
|
@@ -294910,6 +295214,8 @@ $root.SubscriptionAmended = (function() {
|
|
|
294910
295214
|
object.membership = options.enums === String ? $root.subscription.SubscriptionMembership[message.membership] === undefined ? message.membership : $root.subscription.SubscriptionMembership[message.membership] : message.membership;
|
|
294911
295215
|
if (message.productSku != null && message.hasOwnProperty("productSku"))
|
|
294912
295216
|
object.productSku = $root.subscription.SubscriptionProductSku.toObject(message.productSku, options);
|
|
295217
|
+
if (message.externalId != null && message.hasOwnProperty("externalId"))
|
|
295218
|
+
object.externalId = message.externalId;
|
|
294913
295219
|
return object;
|
|
294914
295220
|
};
|
|
294915
295221
|
|
|
@@ -299774,6 +300080,7 @@ $root.subscription = (function() {
|
|
|
299774
300080
|
* @property {number} AMAZON=6 AMAZON value
|
|
299775
300081
|
* @property {number} SUBSCRIPTION_PLATFORM_SIKA=7 SUBSCRIPTION_PLATFORM_SIKA value
|
|
299776
300082
|
* @property {number} SUBSCRIPTION_PLATFORM_PAPI=8 SUBSCRIPTION_PLATFORM_PAPI value
|
|
300083
|
+
* @property {number} SUBSCRIPTION_PLATFORM_B2B_ORG_SUB=9 SUBSCRIPTION_PLATFORM_B2B_ORG_SUB value
|
|
299777
300084
|
*/
|
|
299778
300085
|
subscription.SubscriptionPlatform = (function() {
|
|
299779
300086
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -299786,6 +300093,7 @@ $root.subscription = (function() {
|
|
|
299786
300093
|
values[valuesById[6] = "AMAZON"] = 6;
|
|
299787
300094
|
values[valuesById[7] = "SUBSCRIPTION_PLATFORM_SIKA"] = 7;
|
|
299788
300095
|
values[valuesById[8] = "SUBSCRIPTION_PLATFORM_PAPI"] = 8;
|
|
300096
|
+
values[valuesById[9] = "SUBSCRIPTION_PLATFORM_B2B_ORG_SUB"] = 9;
|
|
299789
300097
|
return values;
|
|
299790
300098
|
})();
|
|
299791
300099
|
|
|
@@ -303980,6 +304288,22 @@ $root.UserLanguagePreferenceUpdated = (function() {
|
|
|
303980
304288
|
return UserLanguagePreferenceUpdated;
|
|
303981
304289
|
})();
|
|
303982
304290
|
|
|
304291
|
+
/**
|
|
304292
|
+
* UserConsentSource enum.
|
|
304293
|
+
* @name UserConsentSource
|
|
304294
|
+
* @enum {number}
|
|
304295
|
+
* @property {number} USER_CONSENT_SOURCE_UNKNOWN=0 USER_CONSENT_SOURCE_UNKNOWN value
|
|
304296
|
+
* @property {number} USER_CONSENT_SOURCE_SELF=1 USER_CONSENT_SOURCE_SELF value
|
|
304297
|
+
* @property {number} USER_CONSENT_SOURCE_SYSTEM=2 USER_CONSENT_SOURCE_SYSTEM value
|
|
304298
|
+
*/
|
|
304299
|
+
$root.UserConsentSource = (function() {
|
|
304300
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
304301
|
+
values[valuesById[0] = "USER_CONSENT_SOURCE_UNKNOWN"] = 0;
|
|
304302
|
+
values[valuesById[1] = "USER_CONSENT_SOURCE_SELF"] = 1;
|
|
304303
|
+
values[valuesById[2] = "USER_CONSENT_SOURCE_SYSTEM"] = 2;
|
|
304304
|
+
return values;
|
|
304305
|
+
})();
|
|
304306
|
+
|
|
303983
304307
|
$root.UserConsentUpdated = (function() {
|
|
303984
304308
|
|
|
303985
304309
|
/**
|
|
@@ -303989,6 +304313,7 @@ $root.UserConsentUpdated = (function() {
|
|
|
303989
304313
|
* @property {string|null} [code] UserConsentUpdated code
|
|
303990
304314
|
* @property {string|null} [status] UserConsentUpdated status
|
|
303991
304315
|
* @property {number|Long|null} [version] UserConsentUpdated version
|
|
304316
|
+
* @property {UserConsentSource|null} [source] UserConsentUpdated source
|
|
303992
304317
|
* @property {Array.<Uint8Array>} [$unknowns] Unknown fields preserved while decoding
|
|
303993
304318
|
*/
|
|
303994
304319
|
|
|
@@ -304052,6 +304377,14 @@ $root.UserConsentUpdated = (function() {
|
|
|
304052
304377
|
*/
|
|
304053
304378
|
UserConsentUpdated.prototype.version = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
304054
304379
|
|
|
304380
|
+
/**
|
|
304381
|
+
* UserConsentUpdated source.
|
|
304382
|
+
* @member {UserConsentSource} source
|
|
304383
|
+
* @memberof UserConsentUpdated
|
|
304384
|
+
* @instance
|
|
304385
|
+
*/
|
|
304386
|
+
UserConsentUpdated.prototype.source = 0;
|
|
304387
|
+
|
|
304055
304388
|
/**
|
|
304056
304389
|
* Creates a new UserConsentUpdated instance using the specified properties.
|
|
304057
304390
|
* @function create
|
|
@@ -304088,6 +304421,8 @@ $root.UserConsentUpdated = (function() {
|
|
|
304088
304421
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.status);
|
|
304089
304422
|
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
304090
304423
|
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.version);
|
|
304424
|
+
if (message.source != null && Object.hasOwnProperty.call(message, "source"))
|
|
304425
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.source);
|
|
304091
304426
|
if (message.$unknowns != null && Object.hasOwnProperty.call(message, "$unknowns"))
|
|
304092
304427
|
for (var i = 0; i < message.$unknowns.length; ++i)
|
|
304093
304428
|
writer.raw(message.$unknowns[i]);
|
|
@@ -304171,6 +304506,15 @@ $root.UserConsentUpdated = (function() {
|
|
|
304171
304506
|
delete message.version;
|
|
304172
304507
|
continue;
|
|
304173
304508
|
}
|
|
304509
|
+
case 5: {
|
|
304510
|
+
if (wireType !== 0)
|
|
304511
|
+
break;
|
|
304512
|
+
if (value = reader.int32())
|
|
304513
|
+
message.source = value;
|
|
304514
|
+
else
|
|
304515
|
+
delete message.source;
|
|
304516
|
+
continue;
|
|
304517
|
+
}
|
|
304174
304518
|
}
|
|
304175
304519
|
reader.skipType(wireType, _depth, tag);
|
|
304176
304520
|
$util.makeProp(message, "$unknowns", false);
|
|
@@ -304224,6 +304568,15 @@ $root.UserConsentUpdated = (function() {
|
|
|
304224
304568
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
304225
304569
|
if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
|
|
304226
304570
|
return "version: integer|Long expected";
|
|
304571
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
304572
|
+
switch (message.source) {
|
|
304573
|
+
default:
|
|
304574
|
+
return "source: enum value expected";
|
|
304575
|
+
case 0:
|
|
304576
|
+
case 1:
|
|
304577
|
+
case 2:
|
|
304578
|
+
break;
|
|
304579
|
+
}
|
|
304227
304580
|
return null;
|
|
304228
304581
|
};
|
|
304229
304582
|
|
|
@@ -304262,6 +304615,27 @@ $root.UserConsentUpdated = (function() {
|
|
|
304262
304615
|
message.version = object.version;
|
|
304263
304616
|
else if (typeof object.version === "object")
|
|
304264
304617
|
message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
|
|
304618
|
+
if (object.source !== 0 && (typeof object.source !== "string" || $root.UserConsentSource[object.source] !== 0))
|
|
304619
|
+
switch (object.source) {
|
|
304620
|
+
default:
|
|
304621
|
+
if (typeof object.source === "number") {
|
|
304622
|
+
message.source = object.source;
|
|
304623
|
+
break;
|
|
304624
|
+
}
|
|
304625
|
+
break;
|
|
304626
|
+
case "USER_CONSENT_SOURCE_UNKNOWN":
|
|
304627
|
+
case 0:
|
|
304628
|
+
message.source = 0;
|
|
304629
|
+
break;
|
|
304630
|
+
case "USER_CONSENT_SOURCE_SELF":
|
|
304631
|
+
case 1:
|
|
304632
|
+
message.source = 1;
|
|
304633
|
+
break;
|
|
304634
|
+
case "USER_CONSENT_SOURCE_SYSTEM":
|
|
304635
|
+
case 2:
|
|
304636
|
+
message.source = 2;
|
|
304637
|
+
break;
|
|
304638
|
+
}
|
|
304265
304639
|
return message;
|
|
304266
304640
|
};
|
|
304267
304641
|
|
|
@@ -304287,6 +304661,7 @@ $root.UserConsentUpdated = (function() {
|
|
|
304287
304661
|
object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : typeof BigInt !== "undefined" && options.longs === BigInt ? long.toBigInt() : long;
|
|
304288
304662
|
} else
|
|
304289
304663
|
object.version = options.longs === String ? "0" : typeof BigInt !== "undefined" && options.longs === BigInt ? BigInt("0") : 0;
|
|
304664
|
+
object.source = options.enums === String ? "USER_CONSENT_SOURCE_UNKNOWN" : 0;
|
|
304290
304665
|
}
|
|
304291
304666
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
304292
304667
|
object.userId = message.userId;
|
|
@@ -304301,6 +304676,8 @@ $root.UserConsentUpdated = (function() {
|
|
|
304301
304676
|
object.version = options.longs === String ? String(message.version) : message.version;
|
|
304302
304677
|
else
|
|
304303
304678
|
object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
|
|
304679
|
+
if (message.source != null && message.hasOwnProperty("source"))
|
|
304680
|
+
object.source = options.enums === String ? $root.UserConsentSource[message.source] === undefined ? message.source : $root.UserConsentSource[message.source] : message.source;
|
|
304304
304681
|
return object;
|
|
304305
304682
|
};
|
|
304306
304683
|
|
package/package.json
CHANGED