@headspace/protos-events 1.103.0 → 1.104.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 +151 -0
- package/lib/index.js +546 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1320,6 +1320,13 @@ export namespace appleReceipt {
|
|
|
1320
1320
|
IOSTAG_UNKNOWN = 0,
|
|
1321
1321
|
IOSTAG_FREE_TRIAL = 1
|
|
1322
1322
|
}
|
|
1323
|
+
|
|
1324
|
+
/** IosSubscriptionAutoRenewalStatus enum. */
|
|
1325
|
+
enum IosSubscriptionAutoRenewalStatus {
|
|
1326
|
+
UNKNOWN = 0,
|
|
1327
|
+
ACTIVE = 1,
|
|
1328
|
+
CANCELLED = 2
|
|
1329
|
+
}
|
|
1323
1330
|
}
|
|
1324
1331
|
|
|
1325
1332
|
/** Namespace elf. */
|
|
@@ -4725,6 +4732,9 @@ export interface IIosSubscriptionCreated {
|
|
|
4725
4732
|
/** IosSubscriptionCreated productId */
|
|
4726
4733
|
productId?: (string|null);
|
|
4727
4734
|
|
|
4735
|
+
/** IosSubscriptionCreated autoRenewalStatus */
|
|
4736
|
+
autoRenewalStatus?: (appleReceipt.IosSubscriptionAutoRenewalStatus|null);
|
|
4737
|
+
|
|
4728
4738
|
/** IosSubscriptionCreated tags */
|
|
4729
4739
|
tags?: (appleReceipt.IosSubscriptionTag[]|null);
|
|
4730
4740
|
|
|
@@ -4756,6 +4766,9 @@ export class IosSubscriptionCreated implements IIosSubscriptionCreated {
|
|
|
4756
4766
|
/** IosSubscriptionCreated productId. */
|
|
4757
4767
|
public productId: string;
|
|
4758
4768
|
|
|
4769
|
+
/** IosSubscriptionCreated autoRenewalStatus. */
|
|
4770
|
+
public autoRenewalStatus: appleReceipt.IosSubscriptionAutoRenewalStatus;
|
|
4771
|
+
|
|
4759
4772
|
/** IosSubscriptionCreated tags. */
|
|
4760
4773
|
public tags: appleReceipt.IosSubscriptionTag[];
|
|
4761
4774
|
|
|
@@ -4851,6 +4864,9 @@ export interface IIosSubscriptionRenewed {
|
|
|
4851
4864
|
/** IosSubscriptionRenewed productId */
|
|
4852
4865
|
productId?: (string|null);
|
|
4853
4866
|
|
|
4867
|
+
/** IosSubscriptionRenewed autoRenewalStatus */
|
|
4868
|
+
autoRenewalStatus?: (appleReceipt.IosSubscriptionAutoRenewalStatus|null);
|
|
4869
|
+
|
|
4854
4870
|
/** IosSubscriptionRenewed tags */
|
|
4855
4871
|
tags?: (appleReceipt.IosSubscriptionTag[]|null);
|
|
4856
4872
|
|
|
@@ -4882,6 +4898,9 @@ export class IosSubscriptionRenewed implements IIosSubscriptionRenewed {
|
|
|
4882
4898
|
/** IosSubscriptionRenewed productId. */
|
|
4883
4899
|
public productId: string;
|
|
4884
4900
|
|
|
4901
|
+
/** IosSubscriptionRenewed autoRenewalStatus. */
|
|
4902
|
+
public autoRenewalStatus: appleReceipt.IosSubscriptionAutoRenewalStatus;
|
|
4903
|
+
|
|
4885
4904
|
/** IosSubscriptionRenewed tags. */
|
|
4886
4905
|
public tags: appleReceipt.IosSubscriptionTag[];
|
|
4887
4906
|
|
|
@@ -4959,6 +4978,138 @@ export class IosSubscriptionRenewed implements IIosSubscriptionRenewed {
|
|
|
4959
4978
|
public toJSON(): { [k: string]: any };
|
|
4960
4979
|
}
|
|
4961
4980
|
|
|
4981
|
+
/** Properties of an IosSubscriptionAutoRenewalUpdated. */
|
|
4982
|
+
export interface IIosSubscriptionAutoRenewalUpdated {
|
|
4983
|
+
|
|
4984
|
+
/** IosSubscriptionAutoRenewalUpdated id */
|
|
4985
|
+
id?: (string|null);
|
|
4986
|
+
|
|
4987
|
+
/** IosSubscriptionAutoRenewalUpdated endsAt */
|
|
4988
|
+
endsAt?: (number|Long|null);
|
|
4989
|
+
|
|
4990
|
+
/** IosSubscriptionAutoRenewalUpdated startsAt */
|
|
4991
|
+
startsAt?: (number|Long|null);
|
|
4992
|
+
|
|
4993
|
+
/** IosSubscriptionAutoRenewalUpdated userId */
|
|
4994
|
+
userId?: (string|null);
|
|
4995
|
+
|
|
4996
|
+
/** IosSubscriptionAutoRenewalUpdated productId */
|
|
4997
|
+
productId?: (string|null);
|
|
4998
|
+
|
|
4999
|
+
/** IosSubscriptionAutoRenewalUpdated autoRenewalStatus */
|
|
5000
|
+
autoRenewalStatus?: (appleReceipt.IosSubscriptionAutoRenewalStatus|null);
|
|
5001
|
+
|
|
5002
|
+
/** IosSubscriptionAutoRenewalUpdated tags */
|
|
5003
|
+
tags?: (appleReceipt.IosSubscriptionTag[]|null);
|
|
5004
|
+
|
|
5005
|
+
/** IosSubscriptionAutoRenewalUpdated terms */
|
|
5006
|
+
terms?: (appleReceipt.IIosSubscriptionTerm[]|null);
|
|
5007
|
+
}
|
|
5008
|
+
|
|
5009
|
+
/** Represents an IosSubscriptionAutoRenewalUpdated. */
|
|
5010
|
+
export class IosSubscriptionAutoRenewalUpdated implements IIosSubscriptionAutoRenewalUpdated {
|
|
5011
|
+
|
|
5012
|
+
/**
|
|
5013
|
+
* Constructs a new IosSubscriptionAutoRenewalUpdated.
|
|
5014
|
+
* @param [properties] Properties to set
|
|
5015
|
+
*/
|
|
5016
|
+
constructor(properties?: IIosSubscriptionAutoRenewalUpdated);
|
|
5017
|
+
|
|
5018
|
+
/** IosSubscriptionAutoRenewalUpdated id. */
|
|
5019
|
+
public id: string;
|
|
5020
|
+
|
|
5021
|
+
/** IosSubscriptionAutoRenewalUpdated endsAt. */
|
|
5022
|
+
public endsAt: (number|Long);
|
|
5023
|
+
|
|
5024
|
+
/** IosSubscriptionAutoRenewalUpdated startsAt. */
|
|
5025
|
+
public startsAt: (number|Long);
|
|
5026
|
+
|
|
5027
|
+
/** IosSubscriptionAutoRenewalUpdated userId. */
|
|
5028
|
+
public userId: string;
|
|
5029
|
+
|
|
5030
|
+
/** IosSubscriptionAutoRenewalUpdated productId. */
|
|
5031
|
+
public productId: string;
|
|
5032
|
+
|
|
5033
|
+
/** IosSubscriptionAutoRenewalUpdated autoRenewalStatus. */
|
|
5034
|
+
public autoRenewalStatus: appleReceipt.IosSubscriptionAutoRenewalStatus;
|
|
5035
|
+
|
|
5036
|
+
/** IosSubscriptionAutoRenewalUpdated tags. */
|
|
5037
|
+
public tags: appleReceipt.IosSubscriptionTag[];
|
|
5038
|
+
|
|
5039
|
+
/** IosSubscriptionAutoRenewalUpdated terms. */
|
|
5040
|
+
public terms: appleReceipt.IIosSubscriptionTerm[];
|
|
5041
|
+
|
|
5042
|
+
/**
|
|
5043
|
+
* Creates a new IosSubscriptionAutoRenewalUpdated instance using the specified properties.
|
|
5044
|
+
* @param [properties] Properties to set
|
|
5045
|
+
* @returns IosSubscriptionAutoRenewalUpdated instance
|
|
5046
|
+
*/
|
|
5047
|
+
public static create(properties?: IIosSubscriptionAutoRenewalUpdated): IosSubscriptionAutoRenewalUpdated;
|
|
5048
|
+
|
|
5049
|
+
/**
|
|
5050
|
+
* Encodes the specified IosSubscriptionAutoRenewalUpdated message. Does not implicitly {@link IosSubscriptionAutoRenewalUpdated.verify|verify} messages.
|
|
5051
|
+
* @param message IosSubscriptionAutoRenewalUpdated message or plain object to encode
|
|
5052
|
+
* @param [writer] Writer to encode to
|
|
5053
|
+
* @returns Writer
|
|
5054
|
+
*/
|
|
5055
|
+
public static encode(message: IIosSubscriptionAutoRenewalUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5056
|
+
|
|
5057
|
+
/**
|
|
5058
|
+
* Encodes the specified IosSubscriptionAutoRenewalUpdated message, length delimited. Does not implicitly {@link IosSubscriptionAutoRenewalUpdated.verify|verify} messages.
|
|
5059
|
+
* @param message IosSubscriptionAutoRenewalUpdated message or plain object to encode
|
|
5060
|
+
* @param [writer] Writer to encode to
|
|
5061
|
+
* @returns Writer
|
|
5062
|
+
*/
|
|
5063
|
+
public static encodeDelimited(message: IIosSubscriptionAutoRenewalUpdated, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
5064
|
+
|
|
5065
|
+
/**
|
|
5066
|
+
* Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer.
|
|
5067
|
+
* @param reader Reader or buffer to decode from
|
|
5068
|
+
* @param [length] Message length if known beforehand
|
|
5069
|
+
* @returns IosSubscriptionAutoRenewalUpdated
|
|
5070
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5071
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5072
|
+
*/
|
|
5073
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): IosSubscriptionAutoRenewalUpdated;
|
|
5074
|
+
|
|
5075
|
+
/**
|
|
5076
|
+
* Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer, length delimited.
|
|
5077
|
+
* @param reader Reader or buffer to decode from
|
|
5078
|
+
* @returns IosSubscriptionAutoRenewalUpdated
|
|
5079
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5080
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5081
|
+
*/
|
|
5082
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): IosSubscriptionAutoRenewalUpdated;
|
|
5083
|
+
|
|
5084
|
+
/**
|
|
5085
|
+
* Verifies an IosSubscriptionAutoRenewalUpdated message.
|
|
5086
|
+
* @param message Plain object to verify
|
|
5087
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
5088
|
+
*/
|
|
5089
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
5090
|
+
|
|
5091
|
+
/**
|
|
5092
|
+
* Creates an IosSubscriptionAutoRenewalUpdated message from a plain object. Also converts values to their respective internal types.
|
|
5093
|
+
* @param object Plain object
|
|
5094
|
+
* @returns IosSubscriptionAutoRenewalUpdated
|
|
5095
|
+
*/
|
|
5096
|
+
public static fromObject(object: { [k: string]: any }): IosSubscriptionAutoRenewalUpdated;
|
|
5097
|
+
|
|
5098
|
+
/**
|
|
5099
|
+
* Creates a plain object from an IosSubscriptionAutoRenewalUpdated message. Also converts values to other types if specified.
|
|
5100
|
+
* @param message IosSubscriptionAutoRenewalUpdated
|
|
5101
|
+
* @param [options] Conversion options
|
|
5102
|
+
* @returns Plain object
|
|
5103
|
+
*/
|
|
5104
|
+
public static toObject(message: IosSubscriptionAutoRenewalUpdated, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
5105
|
+
|
|
5106
|
+
/**
|
|
5107
|
+
* Converts this IosSubscriptionAutoRenewalUpdated to JSON.
|
|
5108
|
+
* @returns JSON object
|
|
5109
|
+
*/
|
|
5110
|
+
public toJSON(): { [k: string]: any };
|
|
5111
|
+
}
|
|
5112
|
+
|
|
4962
5113
|
/** Properties of an AssetCreated. */
|
|
4963
5114
|
export interface IAssetCreated {
|
|
4964
5115
|
|
package/lib/index.js
CHANGED
|
@@ -3026,6 +3026,22 @@ $root.appleReceipt = (function() {
|
|
|
3026
3026
|
return values;
|
|
3027
3027
|
})();
|
|
3028
3028
|
|
|
3029
|
+
/**
|
|
3030
|
+
* IosSubscriptionAutoRenewalStatus enum.
|
|
3031
|
+
* @name appleReceipt.IosSubscriptionAutoRenewalStatus
|
|
3032
|
+
* @enum {string}
|
|
3033
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
3034
|
+
* @property {number} ACTIVE=1 ACTIVE value
|
|
3035
|
+
* @property {number} CANCELLED=2 CANCELLED value
|
|
3036
|
+
*/
|
|
3037
|
+
appleReceipt.IosSubscriptionAutoRenewalStatus = (function() {
|
|
3038
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
3039
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
3040
|
+
values[valuesById[1] = "ACTIVE"] = 1;
|
|
3041
|
+
values[valuesById[2] = "CANCELLED"] = 2;
|
|
3042
|
+
return values;
|
|
3043
|
+
})();
|
|
3044
|
+
|
|
3029
3045
|
return appleReceipt;
|
|
3030
3046
|
})();
|
|
3031
3047
|
|
|
@@ -11796,6 +11812,7 @@ $root.IosSubscriptionCreated = (function() {
|
|
|
11796
11812
|
* @property {number|Long|null} [startsAt] IosSubscriptionCreated startsAt
|
|
11797
11813
|
* @property {string|null} [userId] IosSubscriptionCreated userId
|
|
11798
11814
|
* @property {string|null} [productId] IosSubscriptionCreated productId
|
|
11815
|
+
* @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionCreated autoRenewalStatus
|
|
11799
11816
|
* @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionCreated tags
|
|
11800
11817
|
* @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionCreated terms
|
|
11801
11818
|
*/
|
|
@@ -11857,6 +11874,14 @@ $root.IosSubscriptionCreated = (function() {
|
|
|
11857
11874
|
*/
|
|
11858
11875
|
IosSubscriptionCreated.prototype.productId = "";
|
|
11859
11876
|
|
|
11877
|
+
/**
|
|
11878
|
+
* IosSubscriptionCreated autoRenewalStatus.
|
|
11879
|
+
* @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
|
|
11880
|
+
* @memberof IosSubscriptionCreated
|
|
11881
|
+
* @instance
|
|
11882
|
+
*/
|
|
11883
|
+
IosSubscriptionCreated.prototype.autoRenewalStatus = 0;
|
|
11884
|
+
|
|
11860
11885
|
/**
|
|
11861
11886
|
* IosSubscriptionCreated tags.
|
|
11862
11887
|
* @member {Array.<appleReceipt.IosSubscriptionTag>} tags
|
|
@@ -11916,6 +11941,8 @@ $root.IosSubscriptionCreated = (function() {
|
|
|
11916
11941
|
$root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
11917
11942
|
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
11918
11943
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
|
|
11944
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
11945
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
|
|
11919
11946
|
return writer;
|
|
11920
11947
|
};
|
|
11921
11948
|
|
|
@@ -11965,6 +11992,9 @@ $root.IosSubscriptionCreated = (function() {
|
|
|
11965
11992
|
case 7:
|
|
11966
11993
|
message.productId = reader.string();
|
|
11967
11994
|
break;
|
|
11995
|
+
case 8:
|
|
11996
|
+
message.autoRenewalStatus = reader.int32();
|
|
11997
|
+
break;
|
|
11968
11998
|
case 5:
|
|
11969
11999
|
if (!(message.tags && message.tags.length))
|
|
11970
12000
|
message.tags = [];
|
|
@@ -12030,6 +12060,15 @@ $root.IosSubscriptionCreated = (function() {
|
|
|
12030
12060
|
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
12031
12061
|
if (!$util.isString(message.productId))
|
|
12032
12062
|
return "productId: string expected";
|
|
12063
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
12064
|
+
switch (message.autoRenewalStatus) {
|
|
12065
|
+
default:
|
|
12066
|
+
return "autoRenewalStatus: enum value expected";
|
|
12067
|
+
case 0:
|
|
12068
|
+
case 1:
|
|
12069
|
+
case 2:
|
|
12070
|
+
break;
|
|
12071
|
+
}
|
|
12033
12072
|
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
12034
12073
|
if (!Array.isArray(message.tags))
|
|
12035
12074
|
return "tags: array expected";
|
|
@@ -12090,6 +12129,20 @@ $root.IosSubscriptionCreated = (function() {
|
|
|
12090
12129
|
message.userId = String(object.userId);
|
|
12091
12130
|
if (object.productId != null)
|
|
12092
12131
|
message.productId = String(object.productId);
|
|
12132
|
+
switch (object.autoRenewalStatus) {
|
|
12133
|
+
case "UNKNOWN":
|
|
12134
|
+
case 0:
|
|
12135
|
+
message.autoRenewalStatus = 0;
|
|
12136
|
+
break;
|
|
12137
|
+
case "ACTIVE":
|
|
12138
|
+
case 1:
|
|
12139
|
+
message.autoRenewalStatus = 1;
|
|
12140
|
+
break;
|
|
12141
|
+
case "CANCELLED":
|
|
12142
|
+
case 2:
|
|
12143
|
+
message.autoRenewalStatus = 2;
|
|
12144
|
+
break;
|
|
12145
|
+
}
|
|
12093
12146
|
if (object.tags) {
|
|
12094
12147
|
if (!Array.isArray(object.tags))
|
|
12095
12148
|
throw TypeError(".IosSubscriptionCreated.tags: array expected");
|
|
@@ -12151,6 +12204,7 @@ $root.IosSubscriptionCreated = (function() {
|
|
|
12151
12204
|
object.startsAt = options.longs === String ? "0" : 0;
|
|
12152
12205
|
object.userId = "";
|
|
12153
12206
|
object.productId = "";
|
|
12207
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
|
|
12154
12208
|
}
|
|
12155
12209
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
12156
12210
|
object.id = message.id;
|
|
@@ -12178,6 +12232,8 @@ $root.IosSubscriptionCreated = (function() {
|
|
|
12178
12232
|
}
|
|
12179
12233
|
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
12180
12234
|
object.productId = message.productId;
|
|
12235
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
12236
|
+
object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
12181
12237
|
return object;
|
|
12182
12238
|
};
|
|
12183
12239
|
|
|
@@ -12206,6 +12262,7 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12206
12262
|
* @property {number|Long|null} [startsAt] IosSubscriptionRenewed startsAt
|
|
12207
12263
|
* @property {string|null} [userId] IosSubscriptionRenewed userId
|
|
12208
12264
|
* @property {string|null} [productId] IosSubscriptionRenewed productId
|
|
12265
|
+
* @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionRenewed autoRenewalStatus
|
|
12209
12266
|
* @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionRenewed tags
|
|
12210
12267
|
* @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionRenewed terms
|
|
12211
12268
|
*/
|
|
@@ -12267,6 +12324,14 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12267
12324
|
*/
|
|
12268
12325
|
IosSubscriptionRenewed.prototype.productId = "";
|
|
12269
12326
|
|
|
12327
|
+
/**
|
|
12328
|
+
* IosSubscriptionRenewed autoRenewalStatus.
|
|
12329
|
+
* @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
|
|
12330
|
+
* @memberof IosSubscriptionRenewed
|
|
12331
|
+
* @instance
|
|
12332
|
+
*/
|
|
12333
|
+
IosSubscriptionRenewed.prototype.autoRenewalStatus = 0;
|
|
12334
|
+
|
|
12270
12335
|
/**
|
|
12271
12336
|
* IosSubscriptionRenewed tags.
|
|
12272
12337
|
* @member {Array.<appleReceipt.IosSubscriptionTag>} tags
|
|
@@ -12326,6 +12391,8 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12326
12391
|
$root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
12327
12392
|
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
12328
12393
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
|
|
12394
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
12395
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
|
|
12329
12396
|
return writer;
|
|
12330
12397
|
};
|
|
12331
12398
|
|
|
@@ -12375,6 +12442,9 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12375
12442
|
case 7:
|
|
12376
12443
|
message.productId = reader.string();
|
|
12377
12444
|
break;
|
|
12445
|
+
case 8:
|
|
12446
|
+
message.autoRenewalStatus = reader.int32();
|
|
12447
|
+
break;
|
|
12378
12448
|
case 5:
|
|
12379
12449
|
if (!(message.tags && message.tags.length))
|
|
12380
12450
|
message.tags = [];
|
|
@@ -12440,6 +12510,15 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12440
12510
|
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
12441
12511
|
if (!$util.isString(message.productId))
|
|
12442
12512
|
return "productId: string expected";
|
|
12513
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
12514
|
+
switch (message.autoRenewalStatus) {
|
|
12515
|
+
default:
|
|
12516
|
+
return "autoRenewalStatus: enum value expected";
|
|
12517
|
+
case 0:
|
|
12518
|
+
case 1:
|
|
12519
|
+
case 2:
|
|
12520
|
+
break;
|
|
12521
|
+
}
|
|
12443
12522
|
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
12444
12523
|
if (!Array.isArray(message.tags))
|
|
12445
12524
|
return "tags: array expected";
|
|
@@ -12500,6 +12579,20 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12500
12579
|
message.userId = String(object.userId);
|
|
12501
12580
|
if (object.productId != null)
|
|
12502
12581
|
message.productId = String(object.productId);
|
|
12582
|
+
switch (object.autoRenewalStatus) {
|
|
12583
|
+
case "UNKNOWN":
|
|
12584
|
+
case 0:
|
|
12585
|
+
message.autoRenewalStatus = 0;
|
|
12586
|
+
break;
|
|
12587
|
+
case "ACTIVE":
|
|
12588
|
+
case 1:
|
|
12589
|
+
message.autoRenewalStatus = 1;
|
|
12590
|
+
break;
|
|
12591
|
+
case "CANCELLED":
|
|
12592
|
+
case 2:
|
|
12593
|
+
message.autoRenewalStatus = 2;
|
|
12594
|
+
break;
|
|
12595
|
+
}
|
|
12503
12596
|
if (object.tags) {
|
|
12504
12597
|
if (!Array.isArray(object.tags))
|
|
12505
12598
|
throw TypeError(".IosSubscriptionRenewed.tags: array expected");
|
|
@@ -12561,6 +12654,7 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12561
12654
|
object.startsAt = options.longs === String ? "0" : 0;
|
|
12562
12655
|
object.userId = "";
|
|
12563
12656
|
object.productId = "";
|
|
12657
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
|
|
12564
12658
|
}
|
|
12565
12659
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
12566
12660
|
object.id = message.id;
|
|
@@ -12588,6 +12682,8 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12588
12682
|
}
|
|
12589
12683
|
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
12590
12684
|
object.productId = message.productId;
|
|
12685
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
12686
|
+
object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
12591
12687
|
return object;
|
|
12592
12688
|
};
|
|
12593
12689
|
|
|
@@ -12605,6 +12701,456 @@ $root.IosSubscriptionRenewed = (function() {
|
|
|
12605
12701
|
return IosSubscriptionRenewed;
|
|
12606
12702
|
})();
|
|
12607
12703
|
|
|
12704
|
+
$root.IosSubscriptionAutoRenewalUpdated = (function() {
|
|
12705
|
+
|
|
12706
|
+
/**
|
|
12707
|
+
* Properties of an IosSubscriptionAutoRenewalUpdated.
|
|
12708
|
+
* @exports IIosSubscriptionAutoRenewalUpdated
|
|
12709
|
+
* @interface IIosSubscriptionAutoRenewalUpdated
|
|
12710
|
+
* @property {string|null} [id] IosSubscriptionAutoRenewalUpdated id
|
|
12711
|
+
* @property {number|Long|null} [endsAt] IosSubscriptionAutoRenewalUpdated endsAt
|
|
12712
|
+
* @property {number|Long|null} [startsAt] IosSubscriptionAutoRenewalUpdated startsAt
|
|
12713
|
+
* @property {string|null} [userId] IosSubscriptionAutoRenewalUpdated userId
|
|
12714
|
+
* @property {string|null} [productId] IosSubscriptionAutoRenewalUpdated productId
|
|
12715
|
+
* @property {appleReceipt.IosSubscriptionAutoRenewalStatus|null} [autoRenewalStatus] IosSubscriptionAutoRenewalUpdated autoRenewalStatus
|
|
12716
|
+
* @property {Array.<appleReceipt.IosSubscriptionTag>|null} [tags] IosSubscriptionAutoRenewalUpdated tags
|
|
12717
|
+
* @property {Array.<appleReceipt.IIosSubscriptionTerm>|null} [terms] IosSubscriptionAutoRenewalUpdated terms
|
|
12718
|
+
*/
|
|
12719
|
+
|
|
12720
|
+
/**
|
|
12721
|
+
* Constructs a new IosSubscriptionAutoRenewalUpdated.
|
|
12722
|
+
* @exports IosSubscriptionAutoRenewalUpdated
|
|
12723
|
+
* @classdesc Represents an IosSubscriptionAutoRenewalUpdated.
|
|
12724
|
+
* @implements IIosSubscriptionAutoRenewalUpdated
|
|
12725
|
+
* @constructor
|
|
12726
|
+
* @param {IIosSubscriptionAutoRenewalUpdated=} [properties] Properties to set
|
|
12727
|
+
*/
|
|
12728
|
+
function IosSubscriptionAutoRenewalUpdated(properties) {
|
|
12729
|
+
this.tags = [];
|
|
12730
|
+
this.terms = [];
|
|
12731
|
+
if (properties)
|
|
12732
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12733
|
+
if (properties[keys[i]] != null)
|
|
12734
|
+
this[keys[i]] = properties[keys[i]];
|
|
12735
|
+
}
|
|
12736
|
+
|
|
12737
|
+
/**
|
|
12738
|
+
* IosSubscriptionAutoRenewalUpdated id.
|
|
12739
|
+
* @member {string} id
|
|
12740
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12741
|
+
* @instance
|
|
12742
|
+
*/
|
|
12743
|
+
IosSubscriptionAutoRenewalUpdated.prototype.id = "";
|
|
12744
|
+
|
|
12745
|
+
/**
|
|
12746
|
+
* IosSubscriptionAutoRenewalUpdated endsAt.
|
|
12747
|
+
* @member {number|Long} endsAt
|
|
12748
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12749
|
+
* @instance
|
|
12750
|
+
*/
|
|
12751
|
+
IosSubscriptionAutoRenewalUpdated.prototype.endsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12752
|
+
|
|
12753
|
+
/**
|
|
12754
|
+
* IosSubscriptionAutoRenewalUpdated startsAt.
|
|
12755
|
+
* @member {number|Long} startsAt
|
|
12756
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12757
|
+
* @instance
|
|
12758
|
+
*/
|
|
12759
|
+
IosSubscriptionAutoRenewalUpdated.prototype.startsAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
12760
|
+
|
|
12761
|
+
/**
|
|
12762
|
+
* IosSubscriptionAutoRenewalUpdated userId.
|
|
12763
|
+
* @member {string} userId
|
|
12764
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12765
|
+
* @instance
|
|
12766
|
+
*/
|
|
12767
|
+
IosSubscriptionAutoRenewalUpdated.prototype.userId = "";
|
|
12768
|
+
|
|
12769
|
+
/**
|
|
12770
|
+
* IosSubscriptionAutoRenewalUpdated productId.
|
|
12771
|
+
* @member {string} productId
|
|
12772
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12773
|
+
* @instance
|
|
12774
|
+
*/
|
|
12775
|
+
IosSubscriptionAutoRenewalUpdated.prototype.productId = "";
|
|
12776
|
+
|
|
12777
|
+
/**
|
|
12778
|
+
* IosSubscriptionAutoRenewalUpdated autoRenewalStatus.
|
|
12779
|
+
* @member {appleReceipt.IosSubscriptionAutoRenewalStatus} autoRenewalStatus
|
|
12780
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12781
|
+
* @instance
|
|
12782
|
+
*/
|
|
12783
|
+
IosSubscriptionAutoRenewalUpdated.prototype.autoRenewalStatus = 0;
|
|
12784
|
+
|
|
12785
|
+
/**
|
|
12786
|
+
* IosSubscriptionAutoRenewalUpdated tags.
|
|
12787
|
+
* @member {Array.<appleReceipt.IosSubscriptionTag>} tags
|
|
12788
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12789
|
+
* @instance
|
|
12790
|
+
*/
|
|
12791
|
+
IosSubscriptionAutoRenewalUpdated.prototype.tags = $util.emptyArray;
|
|
12792
|
+
|
|
12793
|
+
/**
|
|
12794
|
+
* IosSubscriptionAutoRenewalUpdated terms.
|
|
12795
|
+
* @member {Array.<appleReceipt.IIosSubscriptionTerm>} terms
|
|
12796
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12797
|
+
* @instance
|
|
12798
|
+
*/
|
|
12799
|
+
IosSubscriptionAutoRenewalUpdated.prototype.terms = $util.emptyArray;
|
|
12800
|
+
|
|
12801
|
+
/**
|
|
12802
|
+
* Creates a new IosSubscriptionAutoRenewalUpdated instance using the specified properties.
|
|
12803
|
+
* @function create
|
|
12804
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12805
|
+
* @static
|
|
12806
|
+
* @param {IIosSubscriptionAutoRenewalUpdated=} [properties] Properties to set
|
|
12807
|
+
* @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated instance
|
|
12808
|
+
*/
|
|
12809
|
+
IosSubscriptionAutoRenewalUpdated.create = function create(properties) {
|
|
12810
|
+
return new IosSubscriptionAutoRenewalUpdated(properties);
|
|
12811
|
+
};
|
|
12812
|
+
|
|
12813
|
+
/**
|
|
12814
|
+
* Encodes the specified IosSubscriptionAutoRenewalUpdated message. Does not implicitly {@link IosSubscriptionAutoRenewalUpdated.verify|verify} messages.
|
|
12815
|
+
* @function encode
|
|
12816
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12817
|
+
* @static
|
|
12818
|
+
* @param {IIosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated message or plain object to encode
|
|
12819
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12820
|
+
* @returns {$protobuf.Writer} Writer
|
|
12821
|
+
*/
|
|
12822
|
+
IosSubscriptionAutoRenewalUpdated.encode = function encode(message, writer) {
|
|
12823
|
+
if (!writer)
|
|
12824
|
+
writer = $Writer.create();
|
|
12825
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
12826
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
12827
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
12828
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endsAt);
|
|
12829
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
12830
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.startsAt);
|
|
12831
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
12832
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.userId);
|
|
12833
|
+
if (message.tags != null && message.tags.length) {
|
|
12834
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork();
|
|
12835
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
12836
|
+
writer.int32(message.tags[i]);
|
|
12837
|
+
writer.ldelim();
|
|
12838
|
+
}
|
|
12839
|
+
if (message.terms != null && message.terms.length)
|
|
12840
|
+
for (var i = 0; i < message.terms.length; ++i)
|
|
12841
|
+
$root.appleReceipt.IosSubscriptionTerm.encode(message.terms[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
12842
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
12843
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.productId);
|
|
12844
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
12845
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.autoRenewalStatus);
|
|
12846
|
+
return writer;
|
|
12847
|
+
};
|
|
12848
|
+
|
|
12849
|
+
/**
|
|
12850
|
+
* Encodes the specified IosSubscriptionAutoRenewalUpdated message, length delimited. Does not implicitly {@link IosSubscriptionAutoRenewalUpdated.verify|verify} messages.
|
|
12851
|
+
* @function encodeDelimited
|
|
12852
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12853
|
+
* @static
|
|
12854
|
+
* @param {IIosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated message or plain object to encode
|
|
12855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
12856
|
+
* @returns {$protobuf.Writer} Writer
|
|
12857
|
+
*/
|
|
12858
|
+
IosSubscriptionAutoRenewalUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
12859
|
+
return this.encode(message, writer).ldelim();
|
|
12860
|
+
};
|
|
12861
|
+
|
|
12862
|
+
/**
|
|
12863
|
+
* Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer.
|
|
12864
|
+
* @function decode
|
|
12865
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12866
|
+
* @static
|
|
12867
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12868
|
+
* @param {number} [length] Message length if known beforehand
|
|
12869
|
+
* @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
|
|
12870
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12871
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12872
|
+
*/
|
|
12873
|
+
IosSubscriptionAutoRenewalUpdated.decode = function decode(reader, length) {
|
|
12874
|
+
if (!(reader instanceof $Reader))
|
|
12875
|
+
reader = $Reader.create(reader);
|
|
12876
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.IosSubscriptionAutoRenewalUpdated();
|
|
12877
|
+
while (reader.pos < end) {
|
|
12878
|
+
var tag = reader.uint32();
|
|
12879
|
+
switch (tag >>> 3) {
|
|
12880
|
+
case 1:
|
|
12881
|
+
message.id = reader.string();
|
|
12882
|
+
break;
|
|
12883
|
+
case 2:
|
|
12884
|
+
message.endsAt = reader.uint64();
|
|
12885
|
+
break;
|
|
12886
|
+
case 3:
|
|
12887
|
+
message.startsAt = reader.uint64();
|
|
12888
|
+
break;
|
|
12889
|
+
case 4:
|
|
12890
|
+
message.userId = reader.string();
|
|
12891
|
+
break;
|
|
12892
|
+
case 7:
|
|
12893
|
+
message.productId = reader.string();
|
|
12894
|
+
break;
|
|
12895
|
+
case 8:
|
|
12896
|
+
message.autoRenewalStatus = reader.int32();
|
|
12897
|
+
break;
|
|
12898
|
+
case 5:
|
|
12899
|
+
if (!(message.tags && message.tags.length))
|
|
12900
|
+
message.tags = [];
|
|
12901
|
+
if ((tag & 7) === 2) {
|
|
12902
|
+
var end2 = reader.uint32() + reader.pos;
|
|
12903
|
+
while (reader.pos < end2)
|
|
12904
|
+
message.tags.push(reader.int32());
|
|
12905
|
+
} else
|
|
12906
|
+
message.tags.push(reader.int32());
|
|
12907
|
+
break;
|
|
12908
|
+
case 6:
|
|
12909
|
+
if (!(message.terms && message.terms.length))
|
|
12910
|
+
message.terms = [];
|
|
12911
|
+
message.terms.push($root.appleReceipt.IosSubscriptionTerm.decode(reader, reader.uint32()));
|
|
12912
|
+
break;
|
|
12913
|
+
default:
|
|
12914
|
+
reader.skipType(tag & 7);
|
|
12915
|
+
break;
|
|
12916
|
+
}
|
|
12917
|
+
}
|
|
12918
|
+
return message;
|
|
12919
|
+
};
|
|
12920
|
+
|
|
12921
|
+
/**
|
|
12922
|
+
* Decodes an IosSubscriptionAutoRenewalUpdated message from the specified reader or buffer, length delimited.
|
|
12923
|
+
* @function decodeDelimited
|
|
12924
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12925
|
+
* @static
|
|
12926
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
12927
|
+
* @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
|
|
12928
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
12929
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
12930
|
+
*/
|
|
12931
|
+
IosSubscriptionAutoRenewalUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
12932
|
+
if (!(reader instanceof $Reader))
|
|
12933
|
+
reader = new $Reader(reader);
|
|
12934
|
+
return this.decode(reader, reader.uint32());
|
|
12935
|
+
};
|
|
12936
|
+
|
|
12937
|
+
/**
|
|
12938
|
+
* Verifies an IosSubscriptionAutoRenewalUpdated message.
|
|
12939
|
+
* @function verify
|
|
12940
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
12941
|
+
* @static
|
|
12942
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
12943
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
12944
|
+
*/
|
|
12945
|
+
IosSubscriptionAutoRenewalUpdated.verify = function verify(message) {
|
|
12946
|
+
if (typeof message !== "object" || message === null)
|
|
12947
|
+
return "object expected";
|
|
12948
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
12949
|
+
if (!$util.isString(message.id))
|
|
12950
|
+
return "id: string expected";
|
|
12951
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
12952
|
+
if (!$util.isInteger(message.endsAt) && !(message.endsAt && $util.isInteger(message.endsAt.low) && $util.isInteger(message.endsAt.high)))
|
|
12953
|
+
return "endsAt: integer|Long expected";
|
|
12954
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
12955
|
+
if (!$util.isInteger(message.startsAt) && !(message.startsAt && $util.isInteger(message.startsAt.low) && $util.isInteger(message.startsAt.high)))
|
|
12956
|
+
return "startsAt: integer|Long expected";
|
|
12957
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
12958
|
+
if (!$util.isString(message.userId))
|
|
12959
|
+
return "userId: string expected";
|
|
12960
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
12961
|
+
if (!$util.isString(message.productId))
|
|
12962
|
+
return "productId: string expected";
|
|
12963
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
12964
|
+
switch (message.autoRenewalStatus) {
|
|
12965
|
+
default:
|
|
12966
|
+
return "autoRenewalStatus: enum value expected";
|
|
12967
|
+
case 0:
|
|
12968
|
+
case 1:
|
|
12969
|
+
case 2:
|
|
12970
|
+
break;
|
|
12971
|
+
}
|
|
12972
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
12973
|
+
if (!Array.isArray(message.tags))
|
|
12974
|
+
return "tags: array expected";
|
|
12975
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
12976
|
+
switch (message.tags[i]) {
|
|
12977
|
+
default:
|
|
12978
|
+
return "tags: enum value[] expected";
|
|
12979
|
+
case 0:
|
|
12980
|
+
case 1:
|
|
12981
|
+
break;
|
|
12982
|
+
}
|
|
12983
|
+
}
|
|
12984
|
+
if (message.terms != null && message.hasOwnProperty("terms")) {
|
|
12985
|
+
if (!Array.isArray(message.terms))
|
|
12986
|
+
return "terms: array expected";
|
|
12987
|
+
for (var i = 0; i < message.terms.length; ++i) {
|
|
12988
|
+
var error = $root.appleReceipt.IosSubscriptionTerm.verify(message.terms[i]);
|
|
12989
|
+
if (error)
|
|
12990
|
+
return "terms." + error;
|
|
12991
|
+
}
|
|
12992
|
+
}
|
|
12993
|
+
return null;
|
|
12994
|
+
};
|
|
12995
|
+
|
|
12996
|
+
/**
|
|
12997
|
+
* Creates an IosSubscriptionAutoRenewalUpdated message from a plain object. Also converts values to their respective internal types.
|
|
12998
|
+
* @function fromObject
|
|
12999
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
13000
|
+
* @static
|
|
13001
|
+
* @param {Object.<string,*>} object Plain object
|
|
13002
|
+
* @returns {IosSubscriptionAutoRenewalUpdated} IosSubscriptionAutoRenewalUpdated
|
|
13003
|
+
*/
|
|
13004
|
+
IosSubscriptionAutoRenewalUpdated.fromObject = function fromObject(object) {
|
|
13005
|
+
if (object instanceof $root.IosSubscriptionAutoRenewalUpdated)
|
|
13006
|
+
return object;
|
|
13007
|
+
var message = new $root.IosSubscriptionAutoRenewalUpdated();
|
|
13008
|
+
if (object.id != null)
|
|
13009
|
+
message.id = String(object.id);
|
|
13010
|
+
if (object.endsAt != null)
|
|
13011
|
+
if ($util.Long)
|
|
13012
|
+
(message.endsAt = $util.Long.fromValue(object.endsAt)).unsigned = true;
|
|
13013
|
+
else if (typeof object.endsAt === "string")
|
|
13014
|
+
message.endsAt = parseInt(object.endsAt, 10);
|
|
13015
|
+
else if (typeof object.endsAt === "number")
|
|
13016
|
+
message.endsAt = object.endsAt;
|
|
13017
|
+
else if (typeof object.endsAt === "object")
|
|
13018
|
+
message.endsAt = new $util.LongBits(object.endsAt.low >>> 0, object.endsAt.high >>> 0).toNumber(true);
|
|
13019
|
+
if (object.startsAt != null)
|
|
13020
|
+
if ($util.Long)
|
|
13021
|
+
(message.startsAt = $util.Long.fromValue(object.startsAt)).unsigned = true;
|
|
13022
|
+
else if (typeof object.startsAt === "string")
|
|
13023
|
+
message.startsAt = parseInt(object.startsAt, 10);
|
|
13024
|
+
else if (typeof object.startsAt === "number")
|
|
13025
|
+
message.startsAt = object.startsAt;
|
|
13026
|
+
else if (typeof object.startsAt === "object")
|
|
13027
|
+
message.startsAt = new $util.LongBits(object.startsAt.low >>> 0, object.startsAt.high >>> 0).toNumber(true);
|
|
13028
|
+
if (object.userId != null)
|
|
13029
|
+
message.userId = String(object.userId);
|
|
13030
|
+
if (object.productId != null)
|
|
13031
|
+
message.productId = String(object.productId);
|
|
13032
|
+
switch (object.autoRenewalStatus) {
|
|
13033
|
+
case "UNKNOWN":
|
|
13034
|
+
case 0:
|
|
13035
|
+
message.autoRenewalStatus = 0;
|
|
13036
|
+
break;
|
|
13037
|
+
case "ACTIVE":
|
|
13038
|
+
case 1:
|
|
13039
|
+
message.autoRenewalStatus = 1;
|
|
13040
|
+
break;
|
|
13041
|
+
case "CANCELLED":
|
|
13042
|
+
case 2:
|
|
13043
|
+
message.autoRenewalStatus = 2;
|
|
13044
|
+
break;
|
|
13045
|
+
}
|
|
13046
|
+
if (object.tags) {
|
|
13047
|
+
if (!Array.isArray(object.tags))
|
|
13048
|
+
throw TypeError(".IosSubscriptionAutoRenewalUpdated.tags: array expected");
|
|
13049
|
+
message.tags = [];
|
|
13050
|
+
for (var i = 0; i < object.tags.length; ++i)
|
|
13051
|
+
switch (object.tags[i]) {
|
|
13052
|
+
default:
|
|
13053
|
+
case "IOSTAG_UNKNOWN":
|
|
13054
|
+
case 0:
|
|
13055
|
+
message.tags[i] = 0;
|
|
13056
|
+
break;
|
|
13057
|
+
case "IOSTAG_FREE_TRIAL":
|
|
13058
|
+
case 1:
|
|
13059
|
+
message.tags[i] = 1;
|
|
13060
|
+
break;
|
|
13061
|
+
}
|
|
13062
|
+
}
|
|
13063
|
+
if (object.terms) {
|
|
13064
|
+
if (!Array.isArray(object.terms))
|
|
13065
|
+
throw TypeError(".IosSubscriptionAutoRenewalUpdated.terms: array expected");
|
|
13066
|
+
message.terms = [];
|
|
13067
|
+
for (var i = 0; i < object.terms.length; ++i) {
|
|
13068
|
+
if (typeof object.terms[i] !== "object")
|
|
13069
|
+
throw TypeError(".IosSubscriptionAutoRenewalUpdated.terms: object expected");
|
|
13070
|
+
message.terms[i] = $root.appleReceipt.IosSubscriptionTerm.fromObject(object.terms[i]);
|
|
13071
|
+
}
|
|
13072
|
+
}
|
|
13073
|
+
return message;
|
|
13074
|
+
};
|
|
13075
|
+
|
|
13076
|
+
/**
|
|
13077
|
+
* Creates a plain object from an IosSubscriptionAutoRenewalUpdated message. Also converts values to other types if specified.
|
|
13078
|
+
* @function toObject
|
|
13079
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
13080
|
+
* @static
|
|
13081
|
+
* @param {IosSubscriptionAutoRenewalUpdated} message IosSubscriptionAutoRenewalUpdated
|
|
13082
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13083
|
+
* @returns {Object.<string,*>} Plain object
|
|
13084
|
+
*/
|
|
13085
|
+
IosSubscriptionAutoRenewalUpdated.toObject = function toObject(message, options) {
|
|
13086
|
+
if (!options)
|
|
13087
|
+
options = {};
|
|
13088
|
+
var object = {};
|
|
13089
|
+
if (options.arrays || options.defaults) {
|
|
13090
|
+
object.tags = [];
|
|
13091
|
+
object.terms = [];
|
|
13092
|
+
}
|
|
13093
|
+
if (options.defaults) {
|
|
13094
|
+
object.id = "";
|
|
13095
|
+
if ($util.Long) {
|
|
13096
|
+
var long = new $util.Long(0, 0, true);
|
|
13097
|
+
object.endsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13098
|
+
} else
|
|
13099
|
+
object.endsAt = options.longs === String ? "0" : 0;
|
|
13100
|
+
if ($util.Long) {
|
|
13101
|
+
var long = new $util.Long(0, 0, true);
|
|
13102
|
+
object.startsAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13103
|
+
} else
|
|
13104
|
+
object.startsAt = options.longs === String ? "0" : 0;
|
|
13105
|
+
object.userId = "";
|
|
13106
|
+
object.productId = "";
|
|
13107
|
+
object.autoRenewalStatus = options.enums === String ? "UNKNOWN" : 0;
|
|
13108
|
+
}
|
|
13109
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
13110
|
+
object.id = message.id;
|
|
13111
|
+
if (message.endsAt != null && message.hasOwnProperty("endsAt"))
|
|
13112
|
+
if (typeof message.endsAt === "number")
|
|
13113
|
+
object.endsAt = options.longs === String ? String(message.endsAt) : message.endsAt;
|
|
13114
|
+
else
|
|
13115
|
+
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;
|
|
13116
|
+
if (message.startsAt != null && message.hasOwnProperty("startsAt"))
|
|
13117
|
+
if (typeof message.startsAt === "number")
|
|
13118
|
+
object.startsAt = options.longs === String ? String(message.startsAt) : message.startsAt;
|
|
13119
|
+
else
|
|
13120
|
+
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;
|
|
13121
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
13122
|
+
object.userId = message.userId;
|
|
13123
|
+
if (message.tags && message.tags.length) {
|
|
13124
|
+
object.tags = [];
|
|
13125
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
13126
|
+
object.tags[j] = options.enums === String ? $root.appleReceipt.IosSubscriptionTag[message.tags[j]] : message.tags[j];
|
|
13127
|
+
}
|
|
13128
|
+
if (message.terms && message.terms.length) {
|
|
13129
|
+
object.terms = [];
|
|
13130
|
+
for (var j = 0; j < message.terms.length; ++j)
|
|
13131
|
+
object.terms[j] = $root.appleReceipt.IosSubscriptionTerm.toObject(message.terms[j], options);
|
|
13132
|
+
}
|
|
13133
|
+
if (message.productId != null && message.hasOwnProperty("productId"))
|
|
13134
|
+
object.productId = message.productId;
|
|
13135
|
+
if (message.autoRenewalStatus != null && message.hasOwnProperty("autoRenewalStatus"))
|
|
13136
|
+
object.autoRenewalStatus = options.enums === String ? $root.appleReceipt.IosSubscriptionAutoRenewalStatus[message.autoRenewalStatus] : message.autoRenewalStatus;
|
|
13137
|
+
return object;
|
|
13138
|
+
};
|
|
13139
|
+
|
|
13140
|
+
/**
|
|
13141
|
+
* Converts this IosSubscriptionAutoRenewalUpdated to JSON.
|
|
13142
|
+
* @function toJSON
|
|
13143
|
+
* @memberof IosSubscriptionAutoRenewalUpdated
|
|
13144
|
+
* @instance
|
|
13145
|
+
* @returns {Object.<string,*>} JSON object
|
|
13146
|
+
*/
|
|
13147
|
+
IosSubscriptionAutoRenewalUpdated.prototype.toJSON = function toJSON() {
|
|
13148
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13149
|
+
};
|
|
13150
|
+
|
|
13151
|
+
return IosSubscriptionAutoRenewalUpdated;
|
|
13152
|
+
})();
|
|
13153
|
+
|
|
12608
13154
|
$root.AssetCreated = (function() {
|
|
12609
13155
|
|
|
12610
13156
|
/**
|
package/package.json
CHANGED