@headspace/protos-events 1.47.0 → 1.49.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 +157 -0
- package/lib/index.js +554 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1167,6 +1167,13 @@ export namespace subscription {
|
|
|
1167
1167
|
ENABLED = 1,
|
|
1168
1168
|
DISABLED = 2
|
|
1169
1169
|
}
|
|
1170
|
+
|
|
1171
|
+
/** CancellationType enum. */
|
|
1172
|
+
enum CancellationType {
|
|
1173
|
+
CT_UNKNOWN = 0,
|
|
1174
|
+
CT_ACTIVE = 1,
|
|
1175
|
+
CT_PASSIVE = 2
|
|
1176
|
+
}
|
|
1170
1177
|
}
|
|
1171
1178
|
|
|
1172
1179
|
/** Namespace userdomain. */
|
|
@@ -3581,6 +3588,9 @@ export interface ISubscriptionCancelled {
|
|
|
3581
3588
|
|
|
3582
3589
|
/** SubscriptionCancelled plan */
|
|
3583
3590
|
plan?: (subscription.IPlan|null);
|
|
3591
|
+
|
|
3592
|
+
/** SubscriptionCancelled cancellationType */
|
|
3593
|
+
cancellationType?: (subscription.CancellationType|null);
|
|
3584
3594
|
}
|
|
3585
3595
|
|
|
3586
3596
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -3625,6 +3635,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
3625
3635
|
/** SubscriptionCancelled plan. */
|
|
3626
3636
|
public plan?: (subscription.IPlan|null);
|
|
3627
3637
|
|
|
3638
|
+
/** SubscriptionCancelled cancellationType. */
|
|
3639
|
+
public cancellationType: subscription.CancellationType;
|
|
3640
|
+
|
|
3628
3641
|
/**
|
|
3629
3642
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
3630
3643
|
* @param [properties] Properties to set
|
|
@@ -4206,6 +4219,150 @@ export class SubscriptionPaymentDeclined implements ISubscriptionPaymentDeclined
|
|
|
4206
4219
|
public toJSON(): { [k: string]: any };
|
|
4207
4220
|
}
|
|
4208
4221
|
|
|
4222
|
+
/** Properties of a SubscriptionGraced. */
|
|
4223
|
+
export interface ISubscriptionGraced {
|
|
4224
|
+
|
|
4225
|
+
/** SubscriptionGraced id */
|
|
4226
|
+
id?: (number|null);
|
|
4227
|
+
|
|
4228
|
+
/** SubscriptionGraced updatedOn */
|
|
4229
|
+
updatedOn?: (number|Long|null);
|
|
4230
|
+
|
|
4231
|
+
/** SubscriptionGraced userId */
|
|
4232
|
+
userId?: (string|null);
|
|
4233
|
+
|
|
4234
|
+
/** SubscriptionGraced createdAt */
|
|
4235
|
+
createdAt?: (number|Long|null);
|
|
4236
|
+
|
|
4237
|
+
/** SubscriptionGraced startsAt */
|
|
4238
|
+
startsAt?: (number|Long|null);
|
|
4239
|
+
|
|
4240
|
+
/** SubscriptionGraced endsAt */
|
|
4241
|
+
endsAt?: (number|Long|null);
|
|
4242
|
+
|
|
4243
|
+
/** SubscriptionGraced voucherCode */
|
|
4244
|
+
voucherCode?: (string|null);
|
|
4245
|
+
|
|
4246
|
+
/** SubscriptionGraced platform */
|
|
4247
|
+
platform?: (subscription.SubscriptionPlatform|null);
|
|
4248
|
+
|
|
4249
|
+
/** SubscriptionGraced autoRenewalStatus */
|
|
4250
|
+
autoRenewalStatus?: (subscription.AutoRenewalStatus|null);
|
|
4251
|
+
|
|
4252
|
+
/** SubscriptionGraced plan */
|
|
4253
|
+
plan?: (subscription.IPlan|null);
|
|
4254
|
+
}
|
|
4255
|
+
|
|
4256
|
+
/** Represents a SubscriptionGraced. */
|
|
4257
|
+
export class SubscriptionGraced implements ISubscriptionGraced {
|
|
4258
|
+
|
|
4259
|
+
/**
|
|
4260
|
+
* Constructs a new SubscriptionGraced.
|
|
4261
|
+
* @param [properties] Properties to set
|
|
4262
|
+
*/
|
|
4263
|
+
constructor(properties?: ISubscriptionGraced);
|
|
4264
|
+
|
|
4265
|
+
/** SubscriptionGraced id. */
|
|
4266
|
+
public id: number;
|
|
4267
|
+
|
|
4268
|
+
/** SubscriptionGraced updatedOn. */
|
|
4269
|
+
public updatedOn: (number|Long);
|
|
4270
|
+
|
|
4271
|
+
/** SubscriptionGraced userId. */
|
|
4272
|
+
public userId: string;
|
|
4273
|
+
|
|
4274
|
+
/** SubscriptionGraced createdAt. */
|
|
4275
|
+
public createdAt: (number|Long);
|
|
4276
|
+
|
|
4277
|
+
/** SubscriptionGraced startsAt. */
|
|
4278
|
+
public startsAt: (number|Long);
|
|
4279
|
+
|
|
4280
|
+
/** SubscriptionGraced endsAt. */
|
|
4281
|
+
public endsAt: (number|Long);
|
|
4282
|
+
|
|
4283
|
+
/** SubscriptionGraced voucherCode. */
|
|
4284
|
+
public voucherCode: string;
|
|
4285
|
+
|
|
4286
|
+
/** SubscriptionGraced platform. */
|
|
4287
|
+
public platform: subscription.SubscriptionPlatform;
|
|
4288
|
+
|
|
4289
|
+
/** SubscriptionGraced autoRenewalStatus. */
|
|
4290
|
+
public autoRenewalStatus: subscription.AutoRenewalStatus;
|
|
4291
|
+
|
|
4292
|
+
/** SubscriptionGraced plan. */
|
|
4293
|
+
public plan?: (subscription.IPlan|null);
|
|
4294
|
+
|
|
4295
|
+
/**
|
|
4296
|
+
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
4297
|
+
* @param [properties] Properties to set
|
|
4298
|
+
* @returns SubscriptionGraced instance
|
|
4299
|
+
*/
|
|
4300
|
+
public static create(properties?: ISubscriptionGraced): SubscriptionGraced;
|
|
4301
|
+
|
|
4302
|
+
/**
|
|
4303
|
+
* Encodes the specified SubscriptionGraced message. Does not implicitly {@link SubscriptionGraced.verify|verify} messages.
|
|
4304
|
+
* @param message SubscriptionGraced message or plain object to encode
|
|
4305
|
+
* @param [writer] Writer to encode to
|
|
4306
|
+
* @returns Writer
|
|
4307
|
+
*/
|
|
4308
|
+
public static encode(message: ISubscriptionGraced, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4309
|
+
|
|
4310
|
+
/**
|
|
4311
|
+
* Encodes the specified SubscriptionGraced message, length delimited. Does not implicitly {@link SubscriptionGraced.verify|verify} messages.
|
|
4312
|
+
* @param message SubscriptionGraced message or plain object to encode
|
|
4313
|
+
* @param [writer] Writer to encode to
|
|
4314
|
+
* @returns Writer
|
|
4315
|
+
*/
|
|
4316
|
+
public static encodeDelimited(message: ISubscriptionGraced, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
4317
|
+
|
|
4318
|
+
/**
|
|
4319
|
+
* Decodes a SubscriptionGraced message from the specified reader or buffer.
|
|
4320
|
+
* @param reader Reader or buffer to decode from
|
|
4321
|
+
* @param [length] Message length if known beforehand
|
|
4322
|
+
* @returns SubscriptionGraced
|
|
4323
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4324
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4325
|
+
*/
|
|
4326
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SubscriptionGraced;
|
|
4327
|
+
|
|
4328
|
+
/**
|
|
4329
|
+
* Decodes a SubscriptionGraced message from the specified reader or buffer, length delimited.
|
|
4330
|
+
* @param reader Reader or buffer to decode from
|
|
4331
|
+
* @returns SubscriptionGraced
|
|
4332
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
4333
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
4334
|
+
*/
|
|
4335
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SubscriptionGraced;
|
|
4336
|
+
|
|
4337
|
+
/**
|
|
4338
|
+
* Verifies a SubscriptionGraced message.
|
|
4339
|
+
* @param message Plain object to verify
|
|
4340
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
4341
|
+
*/
|
|
4342
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
4343
|
+
|
|
4344
|
+
/**
|
|
4345
|
+
* Creates a SubscriptionGraced message from a plain object. Also converts values to their respective internal types.
|
|
4346
|
+
* @param object Plain object
|
|
4347
|
+
* @returns SubscriptionGraced
|
|
4348
|
+
*/
|
|
4349
|
+
public static fromObject(object: { [k: string]: any }): SubscriptionGraced;
|
|
4350
|
+
|
|
4351
|
+
/**
|
|
4352
|
+
* Creates a plain object from a SubscriptionGraced message. Also converts values to other types if specified.
|
|
4353
|
+
* @param message SubscriptionGraced
|
|
4354
|
+
* @param [options] Conversion options
|
|
4355
|
+
* @returns Plain object
|
|
4356
|
+
*/
|
|
4357
|
+
public static toObject(message: SubscriptionGraced, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
4358
|
+
|
|
4359
|
+
/**
|
|
4360
|
+
* Converts this SubscriptionGraced to JSON.
|
|
4361
|
+
* @returns JSON object
|
|
4362
|
+
*/
|
|
4363
|
+
public toJSON(): { [k: string]: any };
|
|
4364
|
+
}
|
|
4365
|
+
|
|
4209
4366
|
/** Properties of a UserDoubleOptInEmailRequested. */
|
|
4210
4367
|
export interface IUserDoubleOptInEmailRequested {
|
|
4211
4368
|
|
package/lib/index.js
CHANGED
|
@@ -2648,6 +2648,22 @@ $root.subscription = (function() {
|
|
|
2648
2648
|
return values;
|
|
2649
2649
|
})();
|
|
2650
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
|
+
|
|
2651
2667
|
return subscription;
|
|
2652
2668
|
})();
|
|
2653
2669
|
|
|
@@ -8715,6 +8731,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8715
8731
|
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionCancelled platform
|
|
8716
8732
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCancelled autoRenewalStatus
|
|
8717
8733
|
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
8734
|
+
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
8718
8735
|
*/
|
|
8719
8736
|
|
|
8720
8737
|
/**
|
|
@@ -8820,6 +8837,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8820
8837
|
*/
|
|
8821
8838
|
SubscriptionCancelled.prototype.plan = null;
|
|
8822
8839
|
|
|
8840
|
+
/**
|
|
8841
|
+
* SubscriptionCancelled cancellationType.
|
|
8842
|
+
* @member {subscription.CancellationType} cancellationType
|
|
8843
|
+
* @memberof SubscriptionCancelled
|
|
8844
|
+
* @instance
|
|
8845
|
+
*/
|
|
8846
|
+
SubscriptionCancelled.prototype.cancellationType = 0;
|
|
8847
|
+
|
|
8823
8848
|
/**
|
|
8824
8849
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
8825
8850
|
* @function create
|
|
@@ -8866,6 +8891,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8866
8891
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.autoRenewalStatus);
|
|
8867
8892
|
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
8868
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);
|
|
8869
8896
|
return writer;
|
|
8870
8897
|
};
|
|
8871
8898
|
|
|
@@ -8933,6 +8960,9 @@ $root.SubscriptionCancelled = (function() {
|
|
|
8933
8960
|
case 11:
|
|
8934
8961
|
message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
|
|
8935
8962
|
break;
|
|
8963
|
+
case 12:
|
|
8964
|
+
message.cancellationType = reader.int32();
|
|
8965
|
+
break;
|
|
8936
8966
|
default:
|
|
8937
8967
|
reader.skipType(tag & 7);
|
|
8938
8968
|
break;
|
|
@@ -9020,6 +9050,15 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9020
9050
|
if (error)
|
|
9021
9051
|
return "plan." + error;
|
|
9022
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
|
+
}
|
|
9023
9062
|
return null;
|
|
9024
9063
|
};
|
|
9025
9064
|
|
|
@@ -9127,6 +9166,20 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9127
9166
|
throw TypeError(".SubscriptionCancelled.plan: object expected");
|
|
9128
9167
|
message.plan = $root.subscription.Plan.fromObject(object.plan);
|
|
9129
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
|
+
}
|
|
9130
9183
|
return message;
|
|
9131
9184
|
};
|
|
9132
9185
|
|
|
@@ -9171,6 +9224,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9171
9224
|
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
9172
9225
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
9173
9226
|
object.plan = null;
|
|
9227
|
+
object.cancellationType = options.enums === String ? "CT_UNKNOWN" : 0;
|
|
9174
9228
|
}
|
|
9175
9229
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
9176
9230
|
object.id = message.id;
|
|
@@ -9206,6 +9260,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
9206
9260
|
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
9207
9261
|
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
9208
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;
|
|
9209
9265
|
return object;
|
|
9210
9266
|
};
|
|
9211
9267
|
|
|
@@ -10743,6 +10799,504 @@ $root.SubscriptionPaymentDeclined = (function() {
|
|
|
10743
10799
|
return SubscriptionPaymentDeclined;
|
|
10744
10800
|
})();
|
|
10745
10801
|
|
|
10802
|
+
$root.SubscriptionGraced = (function() {
|
|
10803
|
+
|
|
10804
|
+
/**
|
|
10805
|
+
* Properties of a SubscriptionGraced.
|
|
10806
|
+
* @exports ISubscriptionGraced
|
|
10807
|
+
* @interface ISubscriptionGraced
|
|
10808
|
+
* @property {number|null} [id] SubscriptionGraced id
|
|
10809
|
+
* @property {number|Long|null} [updatedOn] SubscriptionGraced updatedOn
|
|
10810
|
+
* @property {string|null} [userId] SubscriptionGraced userId
|
|
10811
|
+
* @property {number|Long|null} [createdAt] SubscriptionGraced createdAt
|
|
10812
|
+
* @property {number|Long|null} [startsAt] SubscriptionGraced startsAt
|
|
10813
|
+
* @property {number|Long|null} [endsAt] SubscriptionGraced endsAt
|
|
10814
|
+
* @property {string|null} [voucherCode] SubscriptionGraced voucherCode
|
|
10815
|
+
* @property {subscription.SubscriptionPlatform|null} [platform] SubscriptionGraced platform
|
|
10816
|
+
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionGraced autoRenewalStatus
|
|
10817
|
+
* @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
|
|
10818
|
+
*/
|
|
10819
|
+
|
|
10820
|
+
/**
|
|
10821
|
+
* Constructs a new SubscriptionGraced.
|
|
10822
|
+
* @exports SubscriptionGraced
|
|
10823
|
+
* @classdesc Represents a SubscriptionGraced.
|
|
10824
|
+
* @implements ISubscriptionGraced
|
|
10825
|
+
* @constructor
|
|
10826
|
+
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
10827
|
+
*/
|
|
10828
|
+
function SubscriptionGraced(properties) {
|
|
10829
|
+
if (properties)
|
|
10830
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10831
|
+
if (properties[keys[i]] != null)
|
|
10832
|
+
this[keys[i]] = properties[keys[i]];
|
|
10833
|
+
}
|
|
10834
|
+
|
|
10835
|
+
/**
|
|
10836
|
+
* SubscriptionGraced id.
|
|
10837
|
+
* @member {number} id
|
|
10838
|
+
* @memberof SubscriptionGraced
|
|
10839
|
+
* @instance
|
|
10840
|
+
*/
|
|
10841
|
+
SubscriptionGraced.prototype.id = 0;
|
|
10842
|
+
|
|
10843
|
+
/**
|
|
10844
|
+
* SubscriptionGraced updatedOn.
|
|
10845
|
+
* @member {number|Long} updatedOn
|
|
10846
|
+
* @memberof SubscriptionGraced
|
|
10847
|
+
* @instance
|
|
10848
|
+
*/
|
|
10849
|
+
SubscriptionGraced.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10850
|
+
|
|
10851
|
+
/**
|
|
10852
|
+
* SubscriptionGraced userId.
|
|
10853
|
+
* @member {string} userId
|
|
10854
|
+
* @memberof SubscriptionGraced
|
|
10855
|
+
* @instance
|
|
10856
|
+
*/
|
|
10857
|
+
SubscriptionGraced.prototype.userId = "";
|
|
10858
|
+
|
|
10859
|
+
/**
|
|
10860
|
+
* SubscriptionGraced createdAt.
|
|
10861
|
+
* @member {number|Long} createdAt
|
|
10862
|
+
* @memberof SubscriptionGraced
|
|
10863
|
+
* @instance
|
|
10864
|
+
*/
|
|
10865
|
+
SubscriptionGraced.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10866
|
+
|
|
10867
|
+
/**
|
|
10868
|
+
* SubscriptionGraced startsAt.
|
|
10869
|
+
* @member {number|Long} startsAt
|
|
10870
|
+
* @memberof SubscriptionGraced
|
|
10871
|
+
* @instance
|
|
10872
|
+
*/
|
|
10873
|
+
SubscriptionGraced.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10874
|
+
|
|
10875
|
+
/**
|
|
10876
|
+
* SubscriptionGraced endsAt.
|
|
10877
|
+
* @member {number|Long} endsAt
|
|
10878
|
+
* @memberof SubscriptionGraced
|
|
10879
|
+
* @instance
|
|
10880
|
+
*/
|
|
10881
|
+
SubscriptionGraced.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10882
|
+
|
|
10883
|
+
/**
|
|
10884
|
+
* SubscriptionGraced voucherCode.
|
|
10885
|
+
* @member {string} voucherCode
|
|
10886
|
+
* @memberof SubscriptionGraced
|
|
10887
|
+
* @instance
|
|
10888
|
+
*/
|
|
10889
|
+
SubscriptionGraced.prototype.voucherCode = "";
|
|
10890
|
+
|
|
10891
|
+
/**
|
|
10892
|
+
* SubscriptionGraced platform.
|
|
10893
|
+
* @member {subscription.SubscriptionPlatform} platform
|
|
10894
|
+
* @memberof SubscriptionGraced
|
|
10895
|
+
* @instance
|
|
10896
|
+
*/
|
|
10897
|
+
SubscriptionGraced.prototype.platform = 0;
|
|
10898
|
+
|
|
10899
|
+
/**
|
|
10900
|
+
* SubscriptionGraced autoRenewalStatus.
|
|
10901
|
+
* @member {subscription.AutoRenewalStatus} autoRenewalStatus
|
|
10902
|
+
* @memberof SubscriptionGraced
|
|
10903
|
+
* @instance
|
|
10904
|
+
*/
|
|
10905
|
+
SubscriptionGraced.prototype.autoRenewalStatus = 0;
|
|
10906
|
+
|
|
10907
|
+
/**
|
|
10908
|
+
* SubscriptionGraced plan.
|
|
10909
|
+
* @member {subscription.IPlan|null|undefined} plan
|
|
10910
|
+
* @memberof SubscriptionGraced
|
|
10911
|
+
* @instance
|
|
10912
|
+
*/
|
|
10913
|
+
SubscriptionGraced.prototype.plan = null;
|
|
10914
|
+
|
|
10915
|
+
/**
|
|
10916
|
+
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
10917
|
+
* @function create
|
|
10918
|
+
* @memberof SubscriptionGraced
|
|
10919
|
+
* @static
|
|
10920
|
+
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
10921
|
+
* @returns {SubscriptionGraced} SubscriptionGraced instance
|
|
10922
|
+
*/
|
|
10923
|
+
SubscriptionGraced.create = function create(properties) {
|
|
10924
|
+
return new SubscriptionGraced(properties);
|
|
10925
|
+
};
|
|
10926
|
+
|
|
10927
|
+
/**
|
|
10928
|
+
* Encodes the specified SubscriptionGraced message. Does not implicitly {@link SubscriptionGraced.verify|verify} messages.
|
|
10929
|
+
* @function encode
|
|
10930
|
+
* @memberof SubscriptionGraced
|
|
10931
|
+
* @static
|
|
10932
|
+
* @param {ISubscriptionGraced} message SubscriptionGraced message or plain object to encode
|
|
10933
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10934
|
+
* @returns {$protobuf.Writer} Writer
|
|
10935
|
+
*/
|
|
10936
|
+
SubscriptionGraced.encode = function encode(message, writer) {
|
|
10937
|
+
if (!writer)
|
|
10938
|
+
writer = $Writer.create();
|
|
10939
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
10940
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
10941
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
10942
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
10943
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
10944
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
10945
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
10946
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
10947
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
10948
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.startsAt);
|
|
10949
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
10950
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.endsAt);
|
|
10951
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
10952
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.voucherCode);
|
|
10953
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
10954
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.platform);
|
|
10955
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
10956
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.autoRenewalStatus);
|
|
10957
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
10958
|
+
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
10959
|
+
return writer;
|
|
10960
|
+
};
|
|
10961
|
+
|
|
10962
|
+
/**
|
|
10963
|
+
* Encodes the specified SubscriptionGraced message, length delimited. Does not implicitly {@link SubscriptionGraced.verify|verify} messages.
|
|
10964
|
+
* @function encodeDelimited
|
|
10965
|
+
* @memberof SubscriptionGraced
|
|
10966
|
+
* @static
|
|
10967
|
+
* @param {ISubscriptionGraced} message SubscriptionGraced message or plain object to encode
|
|
10968
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10969
|
+
* @returns {$protobuf.Writer} Writer
|
|
10970
|
+
*/
|
|
10971
|
+
SubscriptionGraced.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10972
|
+
return this.encode(message, writer).ldelim();
|
|
10973
|
+
};
|
|
10974
|
+
|
|
10975
|
+
/**
|
|
10976
|
+
* Decodes a SubscriptionGraced message from the specified reader or buffer.
|
|
10977
|
+
* @function decode
|
|
10978
|
+
* @memberof SubscriptionGraced
|
|
10979
|
+
* @static
|
|
10980
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10981
|
+
* @param {number} [length] Message length if known beforehand
|
|
10982
|
+
* @returns {SubscriptionGraced} SubscriptionGraced
|
|
10983
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10984
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10985
|
+
*/
|
|
10986
|
+
SubscriptionGraced.decode = function decode(reader, length) {
|
|
10987
|
+
if (!(reader instanceof $Reader))
|
|
10988
|
+
reader = $Reader.create(reader);
|
|
10989
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionGraced();
|
|
10990
|
+
while (reader.pos < end) {
|
|
10991
|
+
var tag = reader.uint32();
|
|
10992
|
+
switch (tag >>> 3) {
|
|
10993
|
+
case 1:
|
|
10994
|
+
message.id = reader.uint32();
|
|
10995
|
+
break;
|
|
10996
|
+
case 2:
|
|
10997
|
+
message.updatedOn = reader.uint64();
|
|
10998
|
+
break;
|
|
10999
|
+
case 3:
|
|
11000
|
+
message.userId = reader.string();
|
|
11001
|
+
break;
|
|
11002
|
+
case 4:
|
|
11003
|
+
message.createdAt = reader.uint64();
|
|
11004
|
+
break;
|
|
11005
|
+
case 5:
|
|
11006
|
+
message.startsAt = reader.uint64();
|
|
11007
|
+
break;
|
|
11008
|
+
case 6:
|
|
11009
|
+
message.endsAt = reader.uint64();
|
|
11010
|
+
break;
|
|
11011
|
+
case 7:
|
|
11012
|
+
message.voucherCode = reader.string();
|
|
11013
|
+
break;
|
|
11014
|
+
case 8:
|
|
11015
|
+
message.platform = reader.int32();
|
|
11016
|
+
break;
|
|
11017
|
+
case 9:
|
|
11018
|
+
message.autoRenewalStatus = reader.int32();
|
|
11019
|
+
break;
|
|
11020
|
+
case 10:
|
|
11021
|
+
message.plan = $root.subscription.Plan.decode(reader, reader.uint32());
|
|
11022
|
+
break;
|
|
11023
|
+
default:
|
|
11024
|
+
reader.skipType(tag & 7);
|
|
11025
|
+
break;
|
|
11026
|
+
}
|
|
11027
|
+
}
|
|
11028
|
+
return message;
|
|
11029
|
+
};
|
|
11030
|
+
|
|
11031
|
+
/**
|
|
11032
|
+
* Decodes a SubscriptionGraced message from the specified reader or buffer, length delimited.
|
|
11033
|
+
* @function decodeDelimited
|
|
11034
|
+
* @memberof SubscriptionGraced
|
|
11035
|
+
* @static
|
|
11036
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11037
|
+
* @returns {SubscriptionGraced} SubscriptionGraced
|
|
11038
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11039
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11040
|
+
*/
|
|
11041
|
+
SubscriptionGraced.decodeDelimited = function decodeDelimited(reader) {
|
|
11042
|
+
if (!(reader instanceof $Reader))
|
|
11043
|
+
reader = new $Reader(reader);
|
|
11044
|
+
return this.decode(reader, reader.uint32());
|
|
11045
|
+
};
|
|
11046
|
+
|
|
11047
|
+
/**
|
|
11048
|
+
* Verifies a SubscriptionGraced message.
|
|
11049
|
+
* @function verify
|
|
11050
|
+
* @memberof SubscriptionGraced
|
|
11051
|
+
* @static
|
|
11052
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11053
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11054
|
+
*/
|
|
11055
|
+
SubscriptionGraced.verify = function verify(message) {
|
|
11056
|
+
if (typeof message !== "object" || message === null)
|
|
11057
|
+
return "object expected";
|
|
11058
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11059
|
+
if (!$util.isInteger(message.id))
|
|
11060
|
+
return "id: integer expected";
|
|
11061
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
11062
|
+
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
11063
|
+
return "updatedOn: integer|Long expected";
|
|
11064
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
11065
|
+
if (!$util.isString(message.userId))
|
|
11066
|
+
return "userId: string expected";
|
|
11067
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11068
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
11069
|
+
return "createdAt: integer|Long expected";
|
|
11070
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
11071
|
+
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
11072
|
+
return "startsAt: integer|Long expected";
|
|
11073
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
11074
|
+
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
11075
|
+
return "endsAt: integer|Long expected";
|
|
11076
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
11077
|
+
if (!$util.isString(message.voucherCode))
|
|
11078
|
+
return "voucherCode: string expected";
|
|
11079
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
11080
|
+
switch (message.platform) {
|
|
11081
|
+
default:
|
|
11082
|
+
return "platform: enum value expected";
|
|
11083
|
+
case 0:
|
|
11084
|
+
case 1:
|
|
11085
|
+
case 2:
|
|
11086
|
+
case 3:
|
|
11087
|
+
case 4:
|
|
11088
|
+
case 5:
|
|
11089
|
+
break;
|
|
11090
|
+
}
|
|
11091
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
11092
|
+
switch (message.autoRenewalStatus) {
|
|
11093
|
+
default:
|
|
11094
|
+
return "autoRenewalStatus: enum value expected";
|
|
11095
|
+
case 0:
|
|
11096
|
+
case 1:
|
|
11097
|
+
case 2:
|
|
11098
|
+
break;
|
|
11099
|
+
}
|
|
11100
|
+
if (message.plan != null && message.hasOwnProperty("plan")) {
|
|
11101
|
+
var error = $root.subscription.Plan.verify(message.plan);
|
|
11102
|
+
if (error)
|
|
11103
|
+
return "plan." + error;
|
|
11104
|
+
}
|
|
11105
|
+
return null;
|
|
11106
|
+
};
|
|
11107
|
+
|
|
11108
|
+
/**
|
|
11109
|
+
* Creates a SubscriptionGraced message from a plain object. Also converts values to their respective internal types.
|
|
11110
|
+
* @function fromObject
|
|
11111
|
+
* @memberof SubscriptionGraced
|
|
11112
|
+
* @static
|
|
11113
|
+
* @param {Object.<string,*>} object Plain object
|
|
11114
|
+
* @returns {SubscriptionGraced} SubscriptionGraced
|
|
11115
|
+
*/
|
|
11116
|
+
SubscriptionGraced.fromObject = function fromObject(object) {
|
|
11117
|
+
if (object instanceof $root.SubscriptionGraced)
|
|
11118
|
+
return object;
|
|
11119
|
+
var message = new $root.SubscriptionGraced();
|
|
11120
|
+
if (object.id != null)
|
|
11121
|
+
message.id = object.id >>> 0;
|
|
11122
|
+
if (object.updatedOn != null)
|
|
11123
|
+
if ($util.Long)
|
|
11124
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
11125
|
+
else if (typeof object.updatedOn === "string")
|
|
11126
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
11127
|
+
else if (typeof object.updatedOn === "number")
|
|
11128
|
+
message.updatedOn = object.updatedOn;
|
|
11129
|
+
else if (typeof object.updatedOn === "object")
|
|
11130
|
+
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
11131
|
+
if (object.userId != null)
|
|
11132
|
+
message.userId = String(object.userId);
|
|
11133
|
+
if (object.createdAt != null)
|
|
11134
|
+
if ($util.Long)
|
|
11135
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
11136
|
+
else if (typeof object.createdAt === "string")
|
|
11137
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
11138
|
+
else if (typeof object.createdAt === "number")
|
|
11139
|
+
message.createdAt = object.createdAt;
|
|
11140
|
+
else if (typeof object.createdAt === "object")
|
|
11141
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
11142
|
+
if (object.startsAt != null)
|
|
11143
|
+
if ($util.Long)
|
|
11144
|
+
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
11145
|
+
else if (typeof object.startsAt === "string")
|
|
11146
|
+
message.startsAt = parseInt(object.startsAt, 10);
|
|
11147
|
+
else if (typeof object.startsAt === "number")
|
|
11148
|
+
message.startsAt = object.startsAt;
|
|
11149
|
+
else if (typeof object.startsAt === "object")
|
|
11150
|
+
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
11151
|
+
if (object.endsAt != null)
|
|
11152
|
+
if ($util.Long)
|
|
11153
|
+
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
11154
|
+
else if (typeof object.endsAt === "string")
|
|
11155
|
+
message.endsAt = parseInt(object.endsAt, 10);
|
|
11156
|
+
else if (typeof object.endsAt === "number")
|
|
11157
|
+
message.endsAt = object.endsAt;
|
|
11158
|
+
else if (typeof object.endsAt === "object")
|
|
11159
|
+
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
11160
|
+
if (object.voucherCode != null)
|
|
11161
|
+
message.voucherCode = String(object.voucherCode);
|
|
11162
|
+
switch (object.platform) {
|
|
11163
|
+
case "PLATFORM_UNKNOWN":
|
|
11164
|
+
case 0:
|
|
11165
|
+
message.platform = 0;
|
|
11166
|
+
break;
|
|
11167
|
+
case "ITUNES":
|
|
11168
|
+
case 1:
|
|
11169
|
+
message.platform = 1;
|
|
11170
|
+
break;
|
|
11171
|
+
case "PLAY_STORE":
|
|
11172
|
+
case 2:
|
|
11173
|
+
message.platform = 2;
|
|
11174
|
+
break;
|
|
11175
|
+
case "ZUORA":
|
|
11176
|
+
case 3:
|
|
11177
|
+
message.platform = 3;
|
|
11178
|
+
break;
|
|
11179
|
+
case "HEADSPACE":
|
|
11180
|
+
case 4:
|
|
11181
|
+
message.platform = 4;
|
|
11182
|
+
break;
|
|
11183
|
+
case "SPOTIFY":
|
|
11184
|
+
case 5:
|
|
11185
|
+
message.platform = 5;
|
|
11186
|
+
break;
|
|
11187
|
+
}
|
|
11188
|
+
switch (object.autoRenewalStatus) {
|
|
11189
|
+
case "UNKNOWN_STATUS":
|
|
11190
|
+
case 0:
|
|
11191
|
+
message.autoRenewalStatus = 0;
|
|
11192
|
+
break;
|
|
11193
|
+
case "ENABLED":
|
|
11194
|
+
case 1:
|
|
11195
|
+
message.autoRenewalStatus = 1;
|
|
11196
|
+
break;
|
|
11197
|
+
case "DISABLED":
|
|
11198
|
+
case 2:
|
|
11199
|
+
message.autoRenewalStatus = 2;
|
|
11200
|
+
break;
|
|
11201
|
+
}
|
|
11202
|
+
if (object.plan != null) {
|
|
11203
|
+
if (typeof object.plan !== "object")
|
|
11204
|
+
throw TypeError(".SubscriptionGraced.plan: object expected");
|
|
11205
|
+
message.plan = $root.subscription.Plan.fromObject(object.plan);
|
|
11206
|
+
}
|
|
11207
|
+
return message;
|
|
11208
|
+
};
|
|
11209
|
+
|
|
11210
|
+
/**
|
|
11211
|
+
* Creates a plain object from a SubscriptionGraced message. Also converts values to other types if specified.
|
|
11212
|
+
* @function toObject
|
|
11213
|
+
* @memberof SubscriptionGraced
|
|
11214
|
+
* @static
|
|
11215
|
+
* @param {SubscriptionGraced} message SubscriptionGraced
|
|
11216
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11217
|
+
* @returns {Object.<string,*>} Plain object
|
|
11218
|
+
*/
|
|
11219
|
+
SubscriptionGraced.toObject = function toObject(message, options) {
|
|
11220
|
+
if (!options)
|
|
11221
|
+
options = {};
|
|
11222
|
+
var object = {};
|
|
11223
|
+
if (options.defaults) {
|
|
11224
|
+
object.id = 0;
|
|
11225
|
+
if ($util.Long) {
|
|
11226
|
+
var long = new $util.Long(0, 0, true);
|
|
11227
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11228
|
+
} else
|
|
11229
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
11230
|
+
object.userId = "";
|
|
11231
|
+
if ($util.Long) {
|
|
11232
|
+
var long = new $util.Long(0, 0, true);
|
|
11233
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11234
|
+
} else
|
|
11235
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
11236
|
+
if ($util.Long) {
|
|
11237
|
+
var long = new $util.Long(0, 0, true);
|
|
11238
|
+
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11239
|
+
} else
|
|
11240
|
+
object.startsAt = options.longs === String ? "0" : 0;
|
|
11241
|
+
if ($util.Long) {
|
|
11242
|
+
var long = new $util.Long(0, 0, true);
|
|
11243
|
+
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11244
|
+
} else
|
|
11245
|
+
object.endsAt = options.longs === String ? "0" : 0;
|
|
11246
|
+
object.voucherCode = "";
|
|
11247
|
+
object.platform = options.enums === String ? "PLATFORM_UNKNOWN" : 0;
|
|
11248
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
11249
|
+
object.plan = null;
|
|
11250
|
+
}
|
|
11251
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11252
|
+
object.id = message.id;
|
|
11253
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
11254
|
+
if (typeof message.updatedOn === "number")
|
|
11255
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
11256
|
+
else
|
|
11257
|
+
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
11258
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
11259
|
+
object.userId = message.userId;
|
|
11260
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11261
|
+
if (typeof message.createdAt === "number")
|
|
11262
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
11263
|
+
else
|
|
11264
|
+
object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
|
|
11265
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
11266
|
+
if (typeof message.startsAt === "number")
|
|
11267
|
+
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
11268
|
+
else
|
|
11269
|
+
object.startsAt = options.longs === String ? $util.Long.prototype.toString.call(message.startsAt) : options.longs === Number ? new $util.LongBits(message.startsAt.low >>> 0, message.startsAt.high >>> 0).toNumber(true) : message.startsAt;
|
|
11270
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
11271
|
+
if (typeof message.endsAt === "number")
|
|
11272
|
+
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
11273
|
+
else
|
|
11274
|
+
object.endsAt = options.longs === String ? $util.Long.prototype.toString.call(message.endsAt) : options.longs === Number ? new $util.LongBits(message.endsAt.low >>> 0, message.endsAt.high >>> 0).toNumber(true) : message.endsAt;
|
|
11275
|
+
if (message.voucherCode != null && message.hasOwnProperty("voucherCode"))
|
|
11276
|
+
object.voucherCode = message.voucherCode;
|
|
11277
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
11278
|
+
object.platform = options.enums === String ? $root.subscription.SubscriptionPlatform[message.platform] : message.platform;
|
|
11279
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
11280
|
+
object.autoRenewalStatus = options.enums === String ? $root.subscription.AutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
11281
|
+
if (message.plan != null && message.hasOwnProperty("plan"))
|
|
11282
|
+
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
11283
|
+
return object;
|
|
11284
|
+
};
|
|
11285
|
+
|
|
11286
|
+
/**
|
|
11287
|
+
* Converts this SubscriptionGraced to JSON.
|
|
11288
|
+
* @function toJSON
|
|
11289
|
+
* @memberof SubscriptionGraced
|
|
11290
|
+
* @instance
|
|
11291
|
+
* @returns {Object.<string,*>} JSON object
|
|
11292
|
+
*/
|
|
11293
|
+
SubscriptionGraced.prototype.toJSON = function toJSON() {
|
|
11294
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11295
|
+
};
|
|
11296
|
+
|
|
11297
|
+
return SubscriptionGraced;
|
|
11298
|
+
})();
|
|
11299
|
+
|
|
10746
11300
|
$root.UserDoubleOptInEmailRequested = (function() {
|
|
10747
11301
|
|
|
10748
11302
|
/**
|
package/package.json
CHANGED