@headspace/protos-events 1.46.0 → 1.48.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 +49 -0
- package/lib/index.js +203 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1020,6 +1020,15 @@ export namespace subscription {
|
|
|
1020
1020
|
|
|
1021
1021
|
/** Plan affiliation */
|
|
1022
1022
|
affiliation?: (string|null);
|
|
1023
|
+
|
|
1024
|
+
/** Plan category */
|
|
1025
|
+
category?: (string|null);
|
|
1026
|
+
|
|
1027
|
+
/** Plan renewalTermLength */
|
|
1028
|
+
renewalTermLength?: (number|null);
|
|
1029
|
+
|
|
1030
|
+
/** Plan serviceActivationDelay */
|
|
1031
|
+
serviceActivationDelay?: (number|null);
|
|
1023
1032
|
}
|
|
1024
1033
|
|
|
1025
1034
|
/** Represents a Plan. */
|
|
@@ -1049,6 +1058,15 @@ export namespace subscription {
|
|
|
1049
1058
|
/** Plan affiliation. */
|
|
1050
1059
|
public affiliation: string;
|
|
1051
1060
|
|
|
1061
|
+
/** Plan category. */
|
|
1062
|
+
public category: string;
|
|
1063
|
+
|
|
1064
|
+
/** Plan renewalTermLength. */
|
|
1065
|
+
public renewalTermLength: number;
|
|
1066
|
+
|
|
1067
|
+
/** Plan serviceActivationDelay. */
|
|
1068
|
+
public serviceActivationDelay: number;
|
|
1069
|
+
|
|
1052
1070
|
/**
|
|
1053
1071
|
* Creates a new Plan instance using the specified properties.
|
|
1054
1072
|
* @param [properties] Properties to set
|
|
@@ -1149,6 +1167,13 @@ export namespace subscription {
|
|
|
1149
1167
|
ENABLED = 1,
|
|
1150
1168
|
DISABLED = 2
|
|
1151
1169
|
}
|
|
1170
|
+
|
|
1171
|
+
/** CancellationType enum. */
|
|
1172
|
+
enum CancellationType {
|
|
1173
|
+
CT_UNKNOWN = 0,
|
|
1174
|
+
CT_ACTIVE = 1,
|
|
1175
|
+
CT_PASSIVE = 2
|
|
1176
|
+
}
|
|
1152
1177
|
}
|
|
1153
1178
|
|
|
1154
1179
|
/** Namespace userdomain. */
|
|
@@ -3413,6 +3438,9 @@ export interface ISubscriptionCreated {
|
|
|
3413
3438
|
|
|
3414
3439
|
/** SubscriptionCreated autoRenewalStatus */
|
|
3415
3440
|
autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
|
|
3441
|
+
|
|
3442
|
+
/** SubscriptionCreated plan */
|
|
3443
|
+
plan?: (subscription.IPlan|null);
|
|
3416
3444
|
}
|
|
3417
3445
|
|
|
3418
3446
|
/** Represents a SubscriptionCreated. */
|
|
@@ -3451,6 +3479,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
3451
3479
|
/** SubscriptionCreated autoRenewalStatus. */
|
|
3452
3480
|
public autoRenewalStatus: subscription.AutoRenewalStatus;
|
|
3453
3481
|
|
|
3482
|
+
/** SubscriptionCreated plan. */
|
|
3483
|
+
public plan?: (subscription.IPlan|null);
|
|
3484
|
+
|
|
3454
3485
|
/**
|
|
3455
3486
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
3456
3487
|
* @param [properties] Properties to set
|
|
@@ -3554,6 +3585,12 @@ export interface ISubscriptionCancelled {
|
|
|
3554
3585
|
|
|
3555
3586
|
/** SubscriptionCancelled autoRenewalStatus */
|
|
3556
3587
|
autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
|
|
3588
|
+
|
|
3589
|
+
/** SubscriptionCancelled plan */
|
|
3590
|
+
plan?: (subscription.IPlan|null);
|
|
3591
|
+
|
|
3592
|
+
/** SubscriptionCancelled cancellationType */
|
|
3593
|
+
cancellationType?: (subscription.CancellationType|null);
|
|
3557
3594
|
}
|
|
3558
3595
|
|
|
3559
3596
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -3595,6 +3632,12 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
3595
3632
|
/** SubscriptionCancelled autoRenewalStatus. */
|
|
3596
3633
|
public autoRenewalStatus: subscription.AutoRenewalStatus;
|
|
3597
3634
|
|
|
3635
|
+
/** SubscriptionCancelled plan. */
|
|
3636
|
+
public plan?: (subscription.IPlan|null);
|
|
3637
|
+
|
|
3638
|
+
/** SubscriptionCancelled cancellationType. */
|
|
3639
|
+
public cancellationType: subscription.CancellationType;
|
|
3640
|
+
|
|
3598
3641
|
/**
|
|
3599
3642
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
3600
3643
|
* @param [properties] Properties to set
|
|
@@ -3695,6 +3738,9 @@ export interface ISubscriptionRenewed {
|
|
|
3695
3738
|
|
|
3696
3739
|
/** SubscriptionRenewed autoRenewalStatus */
|
|
3697
3740
|
autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
|
|
3741
|
+
|
|
3742
|
+
/** SubscriptionRenewed plan */
|
|
3743
|
+
plan?: (subscription.IPlan|null);
|
|
3698
3744
|
}
|
|
3699
3745
|
|
|
3700
3746
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -3733,6 +3779,9 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
3733
3779
|
/** SubscriptionRenewed autoRenewalStatus. */
|
|
3734
3780
|
public autoRenewalStatus: subscription.AutoRenewalStatus;
|
|
3735
3781
|
|
|
3782
|
+
/** SubscriptionRenewed plan. */
|
|
3783
|
+
public plan?: (subscription.IPlan|null);
|
|
3784
|
+
|
|
3736
3785
|
/**
|
|
3737
3786
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
3738
3787
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -2228,6 +2228,9 @@ $root.subscription = (function() {
|
|
|
2228
2228
|
* @property {string|null} [name] Plan name
|
|
2229
2229
|
* @property {string|null} [subscriptionType] Plan subscriptionType
|
|
2230
2230
|
* @property {string|null} [affiliation] Plan affiliation
|
|
2231
|
+
* @property {string|null} [category] Plan category
|
|
2232
|
+
* @property {number|null} [renewalTermLength] Plan renewalTermLength
|
|
2233
|
+
* @property {number|null} [serviceActivationDelay] Plan serviceActivationDelay
|
|
2231
2234
|
*/
|
|
2232
2235
|
|
|
2233
2236
|
/**
|
|
@@ -2293,6 +2296,30 @@ $root.subscription = (function() {
|
|
|
2293
2296
|
*/
|
|
2294
2297
|
Plan.prototype.affiliation = "";
|
|
2295
2298
|
|
|
2299
|
+
/**
|
|
2300
|
+
* Plan category.
|
|
2301
|
+
* @member {string} category
|
|
2302
|
+
* @memberof subscription.Plan
|
|
2303
|
+
* @instance
|
|
2304
|
+
*/
|
|
2305
|
+
Plan.prototype.category = "";
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Plan renewalTermLength.
|
|
2309
|
+
* @member {number} renewalTermLength
|
|
2310
|
+
* @memberof subscription.Plan
|
|
2311
|
+
* @instance
|
|
2312
|
+
*/
|
|
2313
|
+
Plan.prototype.renewalTermLength = 0;
|
|
2314
|
+
|
|
2315
|
+
/**
|
|
2316
|
+
* Plan serviceActivationDelay.
|
|
2317
|
+
* @member {number} serviceActivationDelay
|
|
2318
|
+
* @memberof subscription.Plan
|
|
2319
|
+
* @instance
|
|
2320
|
+
*/
|
|
2321
|
+
Plan.prototype.serviceActivationDelay = 0;
|
|
2322
|
+
|
|
2296
2323
|
/**
|
|
2297
2324
|
* Creates a new Plan instance using the specified properties.
|
|
2298
2325
|
* @function create
|
|
@@ -2329,6 +2356,12 @@ $root.subscription = (function() {
|
|
|
2329
2356
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.subscriptionType);
|
|
2330
2357
|
if (message.affiliation != null && message.hasOwnProperty("affiliation"))
|
|
2331
2358
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.affiliation);
|
|
2359
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
2360
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.category);
|
|
2361
|
+
if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
|
|
2362
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.renewalTermLength);
|
|
2363
|
+
if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
|
|
2364
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.serviceActivationDelay);
|
|
2332
2365
|
return writer;
|
|
2333
2366
|
};
|
|
2334
2367
|
|
|
@@ -2381,6 +2414,15 @@ $root.subscription = (function() {
|
|
|
2381
2414
|
case 6:
|
|
2382
2415
|
message.affiliation = reader.string();
|
|
2383
2416
|
break;
|
|
2417
|
+
case 7:
|
|
2418
|
+
message.category = reader.string();
|
|
2419
|
+
break;
|
|
2420
|
+
case 8:
|
|
2421
|
+
message.renewalTermLength = reader.int32();
|
|
2422
|
+
break;
|
|
2423
|
+
case 9:
|
|
2424
|
+
message.serviceActivationDelay = reader.int32();
|
|
2425
|
+
break;
|
|
2384
2426
|
default:
|
|
2385
2427
|
reader.skipType(tag & 7);
|
|
2386
2428
|
break;
|
|
@@ -2434,6 +2476,15 @@ $root.subscription = (function() {
|
|
|
2434
2476
|
if (message.affiliation != null && message.hasOwnProperty("affiliation"))
|
|
2435
2477
|
if (!$util.isString(message.affiliation))
|
|
2436
2478
|
return "affiliation: string expected";
|
|
2479
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
2480
|
+
if (!$util.isString(message.category))
|
|
2481
|
+
return "category: string expected";
|
|
2482
|
+
if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
|
|
2483
|
+
if (!$util.isInteger(message.renewalTermLength))
|
|
2484
|
+
return "renewalTermLength: integer expected";
|
|
2485
|
+
if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
|
|
2486
|
+
if (!$util.isInteger(message.serviceActivationDelay))
|
|
2487
|
+
return "serviceActivationDelay: integer expected";
|
|
2437
2488
|
return null;
|
|
2438
2489
|
};
|
|
2439
2490
|
|
|
@@ -2461,6 +2512,12 @@ $root.subscription = (function() {
|
|
|
2461
2512
|
message.subscriptionType = String(object.subscriptionType);
|
|
2462
2513
|
if (object.affiliation != null)
|
|
2463
2514
|
message.affiliation = String(object.affiliation);
|
|
2515
|
+
if (object.category != null)
|
|
2516
|
+
message.category = String(object.category);
|
|
2517
|
+
if (object.renewalTermLength != null)
|
|
2518
|
+
message.renewalTermLength = object.renewalTermLength | 0;
|
|
2519
|
+
if (object.serviceActivationDelay != null)
|
|
2520
|
+
message.serviceActivationDelay = object.serviceActivationDelay | 0;
|
|
2464
2521
|
return message;
|
|
2465
2522
|
};
|
|
2466
2523
|
|
|
@@ -2484,6 +2541,9 @@ $root.subscription = (function() {
|
|
|
2484
2541
|
object.name = "";
|
|
2485
2542
|
object.subscriptionType = "";
|
|
2486
2543
|
object.affiliation = "";
|
|
2544
|
+
object.category = "";
|
|
2545
|
+
object.renewalTermLength = 0;
|
|
2546
|
+
object.serviceActivationDelay = 0;
|
|
2487
2547
|
}
|
|
2488
2548
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
2489
2549
|
object.id = message.id;
|
|
@@ -2497,6 +2557,12 @@ $root.subscription = (function() {
|
|
|
2497
2557
|
object.subscriptionType = message.subscriptionType;
|
|
2498
2558
|
if (message.affiliation != null && message.hasOwnProperty("affiliation"))
|
|
2499
2559
|
object.affiliation = message.affiliation;
|
|
2560
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
2561
|
+
object.category = message.category;
|
|
2562
|
+
if (message.renewalTermLength != null && message.hasOwnProperty("renewalTermLength"))
|
|
2563
|
+
object.renewalTermLength = message.renewalTermLength;
|
|
2564
|
+
if (message.serviceActivationDelay != null && message.hasOwnProperty("serviceActivationDelay"))
|
|
2565
|
+
object.serviceActivationDelay = message.serviceActivationDelay;
|
|
2500
2566
|
return object;
|
|
2501
2567
|
};
|
|
2502
2568
|
|
|
@@ -2582,6 +2648,22 @@ $root.subscription = (function() {
|
|
|
2582
2648
|
return values;
|
|
2583
2649
|
})();
|
|
2584
2650
|
|
|
2651
|
+
/**
|
|
2652
|
+
* CancellationType enum.
|
|
2653
|
+
* @name subscription.CancellationType
|
|
2654
|
+
* @enum {string}
|
|
2655
|
+
* @property {number} CT_UNKNOWN=0 CT_UNKNOWN value
|
|
2656
|
+
* @property {number} CT_ACTIVE=1 CT_ACTIVE value
|
|
2657
|
+
* @property {number} CT_PASSIVE=2 CT_PASSIVE value
|
|
2658
|
+
*/
|
|
2659
|
+
subscription.CancellationType = (function() {
|
|
2660
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
2661
|
+
values[valuesById[0] = "CT_UNKNOWN"] = 0;
|
|
2662
|
+
values[valuesById[1] = "CT_ACTIVE"] = 1;
|
|
2663
|
+
values[valuesById[2] = "CT_PASSIVE"] = 2;
|
|
2664
|
+
return values;
|
|
2665
|
+
})();
|
|
2666
|
+
|
|
2585
2667
|
return subscription;
|
|
2586
2668
|
})();
|
|
2587
2669
|
|
|
@@ -8149,6 +8231,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
8149
8231
|
* @property {string|null} [voucherCode] SubscriptionCreated voucherCode
|
|
8150
8232
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCreated platform
|
|
8151
8233
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
|
|
8234
|
+
* @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
|
|
8152
8235
|
*/
|
|
8153
8236
|
|
|
8154
8237
|
/**
|
|
@@ -8238,6 +8321,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
8238
8321
|
*/
|
|
8239
8322
|
SubscriptionCreated.prototype.autoRenewalStatus = 0;
|
|
8240
8323
|
|
|
8324
|
+
/**
|
|
8325
|
+
* SubscriptionCreated plan.
|
|
8326
|
+
* @member {subscription.IPlan|null|undefined} plan
|
|
8327
|
+
* @memberof SubscriptionCreated
|
|
8328
|
+
* @instance
|
|
8329
|
+
*/
|
|
8330
|
+
SubscriptionCreated.prototype.plan = null;
|
|
8331
|
+
|
|
8241
8332
|
/**
|
|
8242
8333
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
8243
8334
|
* @function create
|
|
@@ -8280,6 +8371,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
8280
8371
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
8281
8372
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
8282
8373
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
|
|
8374
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
8375
|
+
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
8283
8376
|
return writer;
|
|
8284
8377
|
};
|
|
8285
8378
|
|
|
@@ -8341,6 +8434,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
8341
8434
|
case 9:
|
|
8342
8435
|
message.autoRenewalStatus = reader.int32();
|
|
8343
8436
|
break;
|
|
8437
|
+
case 10:
|
|
8438
|
+
message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
|
|
8439
|
+
break;
|
|
8344
8440
|
default:
|
|
8345
8441
|
reader.skipType(tag & 7);
|
|
8346
8442
|
break;
|
|
@@ -8418,6 +8514,11 @@ $root.SubscriptionCreated = (function() {
|
|
|
8418
8514
|
case 2:
|
|
8419
8515
|
break;
|
|
8420
8516
|
}
|
|
8517
|
+
if (message.plan != null && message.hasOwnProperty("plan")) {
|
|
8518
|
+
var error = $root.subscription.Plan.verify(message.plan);
|
|
8519
|
+
if (error)
|
|
8520
|
+
return "plan." + error;
|
|
8521
|
+
}
|
|
8421
8522
|
return null;
|
|
8422
8523
|
};
|
|
8423
8524
|
|
|
@@ -8515,6 +8616,11 @@ $root.SubscriptionCreated = (function() {
|
|
|
8515
8616
|
message.autoRenewalStatus = 2;
|
|
8516
8617
|
break;
|
|
8517
8618
|
}
|
|
8619
|
+
if (object.plan != null) {
|
|
8620
|
+
if (typeof object.plan !== "object")
|
|
8621
|
+
throw TypeError(".SubscriptionCreated.plan: object expected");
|
|
8622
|
+
message.plan = $root.subscription.Plan.fromObject(object.plan);
|
|
8623
|
+
}
|
|
8518
8624
|
return message;
|
|
8519
8625
|
};
|
|
8520
8626
|
|
|
@@ -8557,6 +8663,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
8557
8663
|
object.voucherCode = "";
|
|
8558
8664
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
8559
8665
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
8666
|
+
object.plan = null;
|
|
8560
8667
|
}
|
|
8561
8668
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8562
8669
|
object.id = message.id;
|
|
@@ -8588,6 +8695,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
8588
8695
|
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
8589
8696
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
8590
8697
|
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
8698
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
8699
|
+
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
8591
8700
|
return object;
|
|
8592
8701
|
};
|
|
8593
8702
|
|
|
@@ -8621,6 +8730,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8621
8730
|
* @property {string|null} [voucherCode] SubscriptionCancelled voucherCode
|
|
8622
8731
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
|
|
8623
8732
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCancelled autoRenewalStatus
|
|
8733
|
+
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
8734
|
+
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
8624
8735
|
*/
|
|
8625
8736
|
|
|
8626
8737
|
/**
|
|
@@ -8718,6 +8829,22 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8718
8829
|
*/
|
|
8719
8830
|
SubscriptionCancelled.prototype.autoRenewalStatus = 0;
|
|
8720
8831
|
|
|
8832
|
+
/**
|
|
8833
|
+
* SubscriptionCancelled plan.
|
|
8834
|
+
* @member {subscription.IPlan|null|undefined} plan
|
|
8835
|
+
* @memberof SubscriptionCancelled
|
|
8836
|
+
* @instance
|
|
8837
|
+
*/
|
|
8838
|
+
SubscriptionCancelled.prototype.plan = null;
|
|
8839
|
+
|
|
8840
|
+
/**
|
|
8841
|
+
* SubscriptionCancelled cancellationType.
|
|
8842
|
+
* @member {subscription.CancellationType} cancellationType
|
|
8843
|
+
* @memberof SubscriptionCancelled
|
|
8844
|
+
* @instance
|
|
8845
|
+
*/
|
|
8846
|
+
SubscriptionCancelled.prototype.cancellationType = 0;
|
|
8847
|
+
|
|
8721
8848
|
/**
|
|
8722
8849
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
8723
8850
|
* @function create
|
|
@@ -8762,6 +8889,10 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8762
8889
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.platform);
|
|
8763
8890
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
8764
8891
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.autoRenewalStatus);
|
|
8892
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
8893
|
+
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
8894
|
+
if (message.cancellationType != null && message.hasOwnProperty("cancellationType"))
|
|
8895
|
+
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cancellationType);
|
|
8765
8896
|
return writer;
|
|
8766
8897
|
};
|
|
8767
8898
|
|
|
@@ -8826,6 +8957,12 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8826
8957
|
case 10:
|
|
8827
8958
|
message.autoRenewalStatus = reader.int32();
|
|
8828
8959
|
break;
|
|
8960
|
+
case 11:
|
|
8961
|
+
message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
|
|
8962
|
+
break;
|
|
8963
|
+
case 12:
|
|
8964
|
+
message.cancellationType = reader.int32();
|
|
8965
|
+
break;
|
|
8829
8966
|
default:
|
|
8830
8967
|
reader.skipType(tag & 7);
|
|
8831
8968
|
break;
|
|
@@ -8908,6 +9045,20 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8908
9045
|
case 2:
|
|
8909
9046
|
break;
|
|
8910
9047
|
}
|
|
9048
|
+
if (message.plan != null && message.hasOwnProperty("plan")) {
|
|
9049
|
+
var error = $root.subscription.Plan.verify(message.plan);
|
|
9050
|
+
if (error)
|
|
9051
|
+
return "plan." + error;
|
|
9052
|
+
}
|
|
9053
|
+
if (message.cancellationType != null && message.hasOwnProperty("cancellationType"))
|
|
9054
|
+
switch (message.cancellationType) {
|
|
9055
|
+
default:
|
|
9056
|
+
return "cancellationType: enum value expected";
|
|
9057
|
+
case 0:
|
|
9058
|
+
case 1:
|
|
9059
|
+
case 2:
|
|
9060
|
+
break;
|
|
9061
|
+
}
|
|
8911
9062
|
return null;
|
|
8912
9063
|
};
|
|
8913
9064
|
|
|
@@ -9010,6 +9161,25 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9010
9161
|
message.autoRenewalStatus = 2;
|
|
9011
9162
|
break;
|
|
9012
9163
|
}
|
|
9164
|
+
if (object.plan != null) {
|
|
9165
|
+
if (typeof object.plan !== "object")
|
|
9166
|
+
throw TypeError(".SubscriptionCancelled.plan: object expected");
|
|
9167
|
+
message.plan = $root.subscription.Plan.fromObject(object.plan);
|
|
9168
|
+
}
|
|
9169
|
+
switch (object.cancellationType) {
|
|
9170
|
+
case "CT_UNKNOWN":
|
|
9171
|
+
case 0:
|
|
9172
|
+
message.cancellationType = 0;
|
|
9173
|
+
break;
|
|
9174
|
+
case "CT_ACTIVE":
|
|
9175
|
+
case 1:
|
|
9176
|
+
message.cancellationType = 1;
|
|
9177
|
+
break;
|
|
9178
|
+
case "CT_PASSIVE":
|
|
9179
|
+
case 2:
|
|
9180
|
+
message.cancellationType = 2;
|
|
9181
|
+
break;
|
|
9182
|
+
}
|
|
9013
9183
|
return message;
|
|
9014
9184
|
};
|
|
9015
9185
|
|
|
@@ -9053,6 +9223,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9053
9223
|
object.voucherCode = "";
|
|
9054
9224
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
9055
9225
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
9226
|
+
object.plan = null;
|
|
9227
|
+
object.cancellationType = options.enums === String ? "CT_UNKNOWN" : 0;
|
|
9056
9228
|
}
|
|
9057
9229
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
9058
9230
|
object.id = message.id;
|
|
@@ -9086,6 +9258,10 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9086
9258
|
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
9087
9259
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
9088
9260
|
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
9261
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
9262
|
+
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
9263
|
+
if (message.cancellationType != null && message.hasOwnProperty("cancellationType"))
|
|
9264
|
+
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
9089
9265
|
return object;
|
|
9090
9266
|
};
|
|
9091
9267
|
|
|
@@ -9118,6 +9294,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9118
9294
|
* @property {string|null} [voucherCode] SubscriptionRenewed voucherCode
|
|
9119
9295
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionRenewed platform
|
|
9120
9296
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
|
|
9297
|
+
* @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
|
|
9121
9298
|
*/
|
|
9122
9299
|
|
|
9123
9300
|
/**
|
|
@@ -9207,6 +9384,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9207
9384
|
*/
|
|
9208
9385
|
SubscriptionRenewed.prototype.autoRenewalStatus = 0;
|
|
9209
9386
|
|
|
9387
|
+
/**
|
|
9388
|
+
* SubscriptionRenewed plan.
|
|
9389
|
+
* @member {subscription.IPlan|null|undefined} plan
|
|
9390
|
+
* @memberof SubscriptionRenewed
|
|
9391
|
+
* @instance
|
|
9392
|
+
*/
|
|
9393
|
+
SubscriptionRenewed.prototype.plan = null;
|
|
9394
|
+
|
|
9210
9395
|
/**
|
|
9211
9396
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
9212
9397
|
* @function create
|
|
@@ -9249,6 +9434,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9249
9434
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
9250
9435
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
9251
9436
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
|
|
9437
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
9438
|
+
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
9252
9439
|
return writer;
|
|
9253
9440
|
};
|
|
9254
9441
|
|
|
@@ -9310,6 +9497,9 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9310
9497
|
case 9:
|
|
9311
9498
|
message.autoRenewalStatus = reader.int32();
|
|
9312
9499
|
break;
|
|
9500
|
+
case 10:
|
|
9501
|
+
message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
|
|
9502
|
+
break;
|
|
9313
9503
|
default:
|
|
9314
9504
|
reader.skipType(tag & 7);
|
|
9315
9505
|
break;
|
|
@@ -9387,6 +9577,11 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9387
9577
|
case 2:
|
|
9388
9578
|
break;
|
|
9389
9579
|
}
|
|
9580
|
+
if (message.plan != null && message.hasOwnProperty("plan")) {
|
|
9581
|
+
var error = $root.subscription.Plan.verify(message.plan);
|
|
9582
|
+
if (error)
|
|
9583
|
+
return "plan." + error;
|
|
9584
|
+
}
|
|
9390
9585
|
return null;
|
|
9391
9586
|
};
|
|
9392
9587
|
|
|
@@ -9484,6 +9679,11 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9484
9679
|
message.autoRenewalStatus = 2;
|
|
9485
9680
|
break;
|
|
9486
9681
|
}
|
|
9682
|
+
if (object.plan != null) {
|
|
9683
|
+
if (typeof object.plan !== "object")
|
|
9684
|
+
throw TypeError(".SubscriptionRenewed.plan: object expected");
|
|
9685
|
+
message.plan = $root.subscription.Plan.fromObject(object.plan);
|
|
9686
|
+
}
|
|
9487
9687
|
return message;
|
|
9488
9688
|
};
|
|
9489
9689
|
|
|
@@ -9526,6 +9726,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9526
9726
|
object.voucherCode = "";
|
|
9527
9727
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
9528
9728
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
9729
|
+
object.plan = null;
|
|
9529
9730
|
}
|
|
9530
9731
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
9531
9732
|
object.id = message.id;
|
|
@@ -9557,6 +9758,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
9557
9758
|
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
9558
9759
|
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
9559
9760
|
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
9761
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
9762
|
+
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
9560
9763
|
return object;
|
|
9561
9764
|
};
|
|
9562
9765
|
|
package/package.json
CHANGED