@headspace/protos-events 1.320.0 → 1.321.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +902 -0
  2. package/lib/index.js +2460 -0
  3. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -7840,6 +7840,728 @@ export namespace googleReceipt {
7840
7840
  }
7841
7841
  }
7842
7842
 
7843
+ /** Namespace productcatalog. */
7844
+ export namespace productcatalog {
7845
+
7846
+ /** Properties of a ProductSku. */
7847
+ interface IProductSku {
7848
+
7849
+ /** product sku id */
7850
+ id?: (string|null);
7851
+
7852
+ /** product sku slug */
7853
+ slug?: (string|null);
7854
+
7855
+ /** product sku version */
7856
+ version?: (number|null);
7857
+
7858
+ /** platform, e.g "APPLE", "GOOGLE", "ZUORA" */
7859
+ platform?: (productcatalog.ProductSkuPlatform|null);
7860
+
7861
+ /** how the user paid, e.g. "PARTNER_PAID", "DIRECT", "FREE_TRIAL" */
7862
+ billingCategory?: (productcatalog.ProductSkuBillingCategory|null);
7863
+
7864
+ /** length of the first term */
7865
+ initialTerm?: (productcatalog.ITermConfiguration|null);
7866
+
7867
+ /** length of all terms after the first */
7868
+ renewalTerm?: (productcatalog.ITermConfiguration|null);
7869
+
7870
+ /** length of time to wait before we start billing the user */
7871
+ billingDelay?: (productcatalog.ITermConfiguration|null);
7872
+
7873
+ /** billing information */
7874
+ billingPlan?: (productcatalog.IBillingPlan|null);
7875
+
7876
+ /** extra information (e.g. student, family) */
7877
+ tags?: (productcatalog.ProductSkuTag[]|null);
7878
+ }
7879
+
7880
+ /** Represents a ProductSku. */
7881
+ class ProductSku implements IProductSku {
7882
+
7883
+ /**
7884
+ * Constructs a new ProductSku.
7885
+ * @param [properties] Properties to set
7886
+ */
7887
+ constructor(properties?: productcatalog.IProductSku);
7888
+
7889
+ /** product sku id */
7890
+ public id: string;
7891
+
7892
+ /** product sku slug */
7893
+ public slug: string;
7894
+
7895
+ /** product sku version */
7896
+ public version: number;
7897
+
7898
+ /** platform, e.g "APPLE", "GOOGLE", "ZUORA" */
7899
+ public platform: productcatalog.ProductSkuPlatform;
7900
+
7901
+ /** how the user paid, e.g. "PARTNER_PAID", "DIRECT", "FREE_TRIAL" */
7902
+ public billingCategory: productcatalog.ProductSkuBillingCategory;
7903
+
7904
+ /** length of the first term */
7905
+ public initialTerm?: (productcatalog.ITermConfiguration|null);
7906
+
7907
+ /** length of all terms after the first */
7908
+ public renewalTerm?: (productcatalog.ITermConfiguration|null);
7909
+
7910
+ /** length of time to wait before we start billing the user */
7911
+ public billingDelay?: (productcatalog.ITermConfiguration|null);
7912
+
7913
+ /** billing information */
7914
+ public billingPlan?: (productcatalog.IBillingPlan|null);
7915
+
7916
+ /** extra information (e.g. student, family) */
7917
+ public tags: productcatalog.ProductSkuTag[];
7918
+
7919
+ /**
7920
+ * Creates a new ProductSku instance using the specified properties.
7921
+ * @param [properties] Properties to set
7922
+ * @returns ProductSku instance
7923
+ */
7924
+ public static create(properties?: productcatalog.IProductSku): productcatalog.ProductSku;
7925
+
7926
+ /**
7927
+ * Encodes the specified ProductSku message. Does not implicitly {@link productcatalog.ProductSku.verify|verify} messages.
7928
+ * @param message ProductSku message or plain object to encode
7929
+ * @param [writer] Writer to encode to
7930
+ * @returns Writer
7931
+ */
7932
+ public static encode(message: productcatalog.IProductSku, writer?: $protobuf.Writer): $protobuf.Writer;
7933
+
7934
+ /**
7935
+ * Encodes the specified ProductSku message, length delimited. Does not implicitly {@link productcatalog.ProductSku.verify|verify} messages.
7936
+ * @param message ProductSku message or plain object to encode
7937
+ * @param [writer] Writer to encode to
7938
+ * @returns Writer
7939
+ */
7940
+ public static encodeDelimited(message: productcatalog.IProductSku, writer?: $protobuf.Writer): $protobuf.Writer;
7941
+
7942
+ /**
7943
+ * Decodes a ProductSku message from the specified reader or buffer.
7944
+ * @param reader Reader or buffer to decode from
7945
+ * @param [length] Message length if known beforehand
7946
+ * @returns ProductSku
7947
+ * @throws {Error} If the payload is not a reader or valid buffer
7948
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7949
+ */
7950
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): productcatalog.ProductSku;
7951
+
7952
+ /**
7953
+ * Decodes a ProductSku message from the specified reader or buffer, length delimited.
7954
+ * @param reader Reader or buffer to decode from
7955
+ * @returns ProductSku
7956
+ * @throws {Error} If the payload is not a reader or valid buffer
7957
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7958
+ */
7959
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): productcatalog.ProductSku;
7960
+
7961
+ /**
7962
+ * Verifies a ProductSku message.
7963
+ * @param message Plain object to verify
7964
+ * @returns `null` if valid, otherwise the reason why it is not
7965
+ */
7966
+ public static verify(message: { [k: string]: any }): (string|null);
7967
+
7968
+ /**
7969
+ * Creates a ProductSku message from a plain object. Also converts values to their respective internal types.
7970
+ * @param object Plain object
7971
+ * @returns ProductSku
7972
+ */
7973
+ public static fromObject(object: { [k: string]: any }): productcatalog.ProductSku;
7974
+
7975
+ /**
7976
+ * Creates a plain object from a ProductSku message. Also converts values to other types if specified.
7977
+ * @param message ProductSku
7978
+ * @param [options] Conversion options
7979
+ * @returns Plain object
7980
+ */
7981
+ public static toObject(message: productcatalog.ProductSku, options?: $protobuf.IConversionOptions): { [k: string]: any };
7982
+
7983
+ /**
7984
+ * Converts this ProductSku to JSON.
7985
+ * @returns JSON object
7986
+ */
7987
+ public toJSON(): { [k: string]: any };
7988
+ }
7989
+
7990
+ /** Properties of a TermConfiguration. */
7991
+ interface ITermConfiguration {
7992
+
7993
+ /** type of calendar period, e.g. "MONTH", "DAY", "YEAR" */
7994
+ period?: (productcatalog.ProductSkuCalendarPeriod|null);
7995
+
7996
+ /** number of calendar periods */
7997
+ numPeriods?: (number|null);
7998
+ }
7999
+
8000
+ /** Represents a TermConfiguration. */
8001
+ class TermConfiguration implements ITermConfiguration {
8002
+
8003
+ /**
8004
+ * Constructs a new TermConfiguration.
8005
+ * @param [properties] Properties to set
8006
+ */
8007
+ constructor(properties?: productcatalog.ITermConfiguration);
8008
+
8009
+ /** type of calendar period, e.g. "MONTH", "DAY", "YEAR" */
8010
+ public period: productcatalog.ProductSkuCalendarPeriod;
8011
+
8012
+ /** number of calendar periods */
8013
+ public numPeriods: number;
8014
+
8015
+ /**
8016
+ * Creates a new TermConfiguration instance using the specified properties.
8017
+ * @param [properties] Properties to set
8018
+ * @returns TermConfiguration instance
8019
+ */
8020
+ public static create(properties?: productcatalog.ITermConfiguration): productcatalog.TermConfiguration;
8021
+
8022
+ /**
8023
+ * Encodes the specified TermConfiguration message. Does not implicitly {@link productcatalog.TermConfiguration.verify|verify} messages.
8024
+ * @param message TermConfiguration message or plain object to encode
8025
+ * @param [writer] Writer to encode to
8026
+ * @returns Writer
8027
+ */
8028
+ public static encode(message: productcatalog.ITermConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
8029
+
8030
+ /**
8031
+ * Encodes the specified TermConfiguration message, length delimited. Does not implicitly {@link productcatalog.TermConfiguration.verify|verify} messages.
8032
+ * @param message TermConfiguration message or plain object to encode
8033
+ * @param [writer] Writer to encode to
8034
+ * @returns Writer
8035
+ */
8036
+ public static encodeDelimited(message: productcatalog.ITermConfiguration, writer?: $protobuf.Writer): $protobuf.Writer;
8037
+
8038
+ /**
8039
+ * Decodes a TermConfiguration message from the specified reader or buffer.
8040
+ * @param reader Reader or buffer to decode from
8041
+ * @param [length] Message length if known beforehand
8042
+ * @returns TermConfiguration
8043
+ * @throws {Error} If the payload is not a reader or valid buffer
8044
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8045
+ */
8046
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): productcatalog.TermConfiguration;
8047
+
8048
+ /**
8049
+ * Decodes a TermConfiguration message from the specified reader or buffer, length delimited.
8050
+ * @param reader Reader or buffer to decode from
8051
+ * @returns TermConfiguration
8052
+ * @throws {Error} If the payload is not a reader or valid buffer
8053
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8054
+ */
8055
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): productcatalog.TermConfiguration;
8056
+
8057
+ /**
8058
+ * Verifies a TermConfiguration message.
8059
+ * @param message Plain object to verify
8060
+ * @returns `null` if valid, otherwise the reason why it is not
8061
+ */
8062
+ public static verify(message: { [k: string]: any }): (string|null);
8063
+
8064
+ /**
8065
+ * Creates a TermConfiguration message from a plain object. Also converts values to their respective internal types.
8066
+ * @param object Plain object
8067
+ * @returns TermConfiguration
8068
+ */
8069
+ public static fromObject(object: { [k: string]: any }): productcatalog.TermConfiguration;
8070
+
8071
+ /**
8072
+ * Creates a plain object from a TermConfiguration message. Also converts values to other types if specified.
8073
+ * @param message TermConfiguration
8074
+ * @param [options] Conversion options
8075
+ * @returns Plain object
8076
+ */
8077
+ public static toObject(message: productcatalog.TermConfiguration, options?: $protobuf.IConversionOptions): { [k: string]: any };
8078
+
8079
+ /**
8080
+ * Converts this TermConfiguration to JSON.
8081
+ * @returns JSON object
8082
+ */
8083
+ public toJSON(): { [k: string]: any };
8084
+ }
8085
+
8086
+ /** Properties of a BillingPlan. */
8087
+ interface IBillingPlan {
8088
+
8089
+ /** BillingPlan taxInclusive */
8090
+ taxInclusive?: (productcatalog.IRatePlan[]|null);
8091
+
8092
+ /** BillingPlan taxExclusive */
8093
+ taxExclusive?: (productcatalog.IRatePlan[]|null);
8094
+ }
8095
+
8096
+ /** Represents a BillingPlan. */
8097
+ class BillingPlan implements IBillingPlan {
8098
+
8099
+ /**
8100
+ * Constructs a new BillingPlan.
8101
+ * @param [properties] Properties to set
8102
+ */
8103
+ constructor(properties?: productcatalog.IBillingPlan);
8104
+
8105
+ /** BillingPlan taxInclusive. */
8106
+ public taxInclusive: productcatalog.IRatePlan[];
8107
+
8108
+ /** BillingPlan taxExclusive. */
8109
+ public taxExclusive: productcatalog.IRatePlan[];
8110
+
8111
+ /**
8112
+ * Creates a new BillingPlan instance using the specified properties.
8113
+ * @param [properties] Properties to set
8114
+ * @returns BillingPlan instance
8115
+ */
8116
+ public static create(properties?: productcatalog.IBillingPlan): productcatalog.BillingPlan;
8117
+
8118
+ /**
8119
+ * Encodes the specified BillingPlan message. Does not implicitly {@link productcatalog.BillingPlan.verify|verify} messages.
8120
+ * @param message BillingPlan message or plain object to encode
8121
+ * @param [writer] Writer to encode to
8122
+ * @returns Writer
8123
+ */
8124
+ public static encode(message: productcatalog.IBillingPlan, writer?: $protobuf.Writer): $protobuf.Writer;
8125
+
8126
+ /**
8127
+ * Encodes the specified BillingPlan message, length delimited. Does not implicitly {@link productcatalog.BillingPlan.verify|verify} messages.
8128
+ * @param message BillingPlan message or plain object to encode
8129
+ * @param [writer] Writer to encode to
8130
+ * @returns Writer
8131
+ */
8132
+ public static encodeDelimited(message: productcatalog.IBillingPlan, writer?: $protobuf.Writer): $protobuf.Writer;
8133
+
8134
+ /**
8135
+ * Decodes a BillingPlan message from the specified reader or buffer.
8136
+ * @param reader Reader or buffer to decode from
8137
+ * @param [length] Message length if known beforehand
8138
+ * @returns BillingPlan
8139
+ * @throws {Error} If the payload is not a reader or valid buffer
8140
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8141
+ */
8142
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): productcatalog.BillingPlan;
8143
+
8144
+ /**
8145
+ * Decodes a BillingPlan message from the specified reader or buffer, length delimited.
8146
+ * @param reader Reader or buffer to decode from
8147
+ * @returns BillingPlan
8148
+ * @throws {Error} If the payload is not a reader or valid buffer
8149
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8150
+ */
8151
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): productcatalog.BillingPlan;
8152
+
8153
+ /**
8154
+ * Verifies a BillingPlan message.
8155
+ * @param message Plain object to verify
8156
+ * @returns `null` if valid, otherwise the reason why it is not
8157
+ */
8158
+ public static verify(message: { [k: string]: any }): (string|null);
8159
+
8160
+ /**
8161
+ * Creates a BillingPlan message from a plain object. Also converts values to their respective internal types.
8162
+ * @param object Plain object
8163
+ * @returns BillingPlan
8164
+ */
8165
+ public static fromObject(object: { [k: string]: any }): productcatalog.BillingPlan;
8166
+
8167
+ /**
8168
+ * Creates a plain object from a BillingPlan message. Also converts values to other types if specified.
8169
+ * @param message BillingPlan
8170
+ * @param [options] Conversion options
8171
+ * @returns Plain object
8172
+ */
8173
+ public static toObject(message: productcatalog.BillingPlan, options?: $protobuf.IConversionOptions): { [k: string]: any };
8174
+
8175
+ /**
8176
+ * Converts this BillingPlan to JSON.
8177
+ * @returns JSON object
8178
+ */
8179
+ public toJSON(): { [k: string]: any };
8180
+ }
8181
+
8182
+ /** Properties of a RatePlan. */
8183
+ interface IRatePlan {
8184
+
8185
+ /** name of the rate plan */
8186
+ name?: (string|null);
8187
+
8188
+ /** charges in the rate plan */
8189
+ charges?: (productcatalog.IRatePlanCharge[]|null);
8190
+ }
8191
+
8192
+ /** Represents a RatePlan. */
8193
+ class RatePlan implements IRatePlan {
8194
+
8195
+ /**
8196
+ * Constructs a new RatePlan.
8197
+ * @param [properties] Properties to set
8198
+ */
8199
+ constructor(properties?: productcatalog.IRatePlan);
8200
+
8201
+ /** name of the rate plan */
8202
+ public name: string;
8203
+
8204
+ /** charges in the rate plan */
8205
+ public charges: productcatalog.IRatePlanCharge[];
8206
+
8207
+ /**
8208
+ * Creates a new RatePlan instance using the specified properties.
8209
+ * @param [properties] Properties to set
8210
+ * @returns RatePlan instance
8211
+ */
8212
+ public static create(properties?: productcatalog.IRatePlan): productcatalog.RatePlan;
8213
+
8214
+ /**
8215
+ * Encodes the specified RatePlan message. Does not implicitly {@link productcatalog.RatePlan.verify|verify} messages.
8216
+ * @param message RatePlan message or plain object to encode
8217
+ * @param [writer] Writer to encode to
8218
+ * @returns Writer
8219
+ */
8220
+ public static encode(message: productcatalog.IRatePlan, writer?: $protobuf.Writer): $protobuf.Writer;
8221
+
8222
+ /**
8223
+ * Encodes the specified RatePlan message, length delimited. Does not implicitly {@link productcatalog.RatePlan.verify|verify} messages.
8224
+ * @param message RatePlan message or plain object to encode
8225
+ * @param [writer] Writer to encode to
8226
+ * @returns Writer
8227
+ */
8228
+ public static encodeDelimited(message: productcatalog.IRatePlan, writer?: $protobuf.Writer): $protobuf.Writer;
8229
+
8230
+ /**
8231
+ * Decodes a RatePlan message from the specified reader or buffer.
8232
+ * @param reader Reader or buffer to decode from
8233
+ * @param [length] Message length if known beforehand
8234
+ * @returns RatePlan
8235
+ * @throws {Error} If the payload is not a reader or valid buffer
8236
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8237
+ */
8238
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): productcatalog.RatePlan;
8239
+
8240
+ /**
8241
+ * Decodes a RatePlan message from the specified reader or buffer, length delimited.
8242
+ * @param reader Reader or buffer to decode from
8243
+ * @returns RatePlan
8244
+ * @throws {Error} If the payload is not a reader or valid buffer
8245
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8246
+ */
8247
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): productcatalog.RatePlan;
8248
+
8249
+ /**
8250
+ * Verifies a RatePlan message.
8251
+ * @param message Plain object to verify
8252
+ * @returns `null` if valid, otherwise the reason why it is not
8253
+ */
8254
+ public static verify(message: { [k: string]: any }): (string|null);
8255
+
8256
+ /**
8257
+ * Creates a RatePlan message from a plain object. Also converts values to their respective internal types.
8258
+ * @param object Plain object
8259
+ * @returns RatePlan
8260
+ */
8261
+ public static fromObject(object: { [k: string]: any }): productcatalog.RatePlan;
8262
+
8263
+ /**
8264
+ * Creates a plain object from a RatePlan message. Also converts values to other types if specified.
8265
+ * @param message RatePlan
8266
+ * @param [options] Conversion options
8267
+ * @returns Plain object
8268
+ */
8269
+ public static toObject(message: productcatalog.RatePlan, options?: $protobuf.IConversionOptions): { [k: string]: any };
8270
+
8271
+ /**
8272
+ * Converts this RatePlan to JSON.
8273
+ * @returns JSON object
8274
+ */
8275
+ public toJSON(): { [k: string]: any };
8276
+ }
8277
+
8278
+ /** Properties of a RatePlanCharge. */
8279
+ interface IRatePlanCharge {
8280
+
8281
+ /** type of calendar period, e.g. "MONTH", "DAY", "YEAR" */
8282
+ period?: (productcatalog.ProductSkuCalendarPeriod|null);
8283
+
8284
+ /** how to interpret this charge, eg. "FLAT_FEE", "DISCOUNT_FIXED", "DISCOUNT_PCT" */
8285
+ chargeModel?: (productcatalog.ProductSkuChargeModel|null);
8286
+
8287
+ /** when to end this charge, eg. "END_OF_SUBSCRIPTION", "FIXED_PERIODS" */
8288
+ endDateCondition?: (productcatalog.ProductSkuEndDateCondition|null);
8289
+
8290
+ /** when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending */
8291
+ endDatePeriods?: (string|null);
8292
+
8293
+ /** country & currency specific configuration */
8294
+ tiers?: (productcatalog.IRatePlanChargeTier[]|null);
8295
+ }
8296
+
8297
+ /** Represents a RatePlanCharge. */
8298
+ class RatePlanCharge implements IRatePlanCharge {
8299
+
8300
+ /**
8301
+ * Constructs a new RatePlanCharge.
8302
+ * @param [properties] Properties to set
8303
+ */
8304
+ constructor(properties?: productcatalog.IRatePlanCharge);
8305
+
8306
+ /** type of calendar period, e.g. "MONTH", "DAY", "YEAR" */
8307
+ public period: productcatalog.ProductSkuCalendarPeriod;
8308
+
8309
+ /** how to interpret this charge, eg. "FLAT_FEE", "DISCOUNT_FIXED", "DISCOUNT_PCT" */
8310
+ public chargeModel: productcatalog.ProductSkuChargeModel;
8311
+
8312
+ /** when to end this charge, eg. "END_OF_SUBSCRIPTION", "FIXED_PERIODS" */
8313
+ public endDateCondition: productcatalog.ProductSkuEndDateCondition;
8314
+
8315
+ /** when 'end_date_condition' is "FIXED_PERIOD", the number of periods to charge before ending */
8316
+ public endDatePeriods: string;
8317
+
8318
+ /** country & currency specific configuration */
8319
+ public tiers: productcatalog.IRatePlanChargeTier[];
8320
+
8321
+ /**
8322
+ * Creates a new RatePlanCharge instance using the specified properties.
8323
+ * @param [properties] Properties to set
8324
+ * @returns RatePlanCharge instance
8325
+ */
8326
+ public static create(properties?: productcatalog.IRatePlanCharge): productcatalog.RatePlanCharge;
8327
+
8328
+ /**
8329
+ * Encodes the specified RatePlanCharge message. Does not implicitly {@link productcatalog.RatePlanCharge.verify|verify} messages.
8330
+ * @param message RatePlanCharge message or plain object to encode
8331
+ * @param [writer] Writer to encode to
8332
+ * @returns Writer
8333
+ */
8334
+ public static encode(message: productcatalog.IRatePlanCharge, writer?: $protobuf.Writer): $protobuf.Writer;
8335
+
8336
+ /**
8337
+ * Encodes the specified RatePlanCharge message, length delimited. Does not implicitly {@link productcatalog.RatePlanCharge.verify|verify} messages.
8338
+ * @param message RatePlanCharge message or plain object to encode
8339
+ * @param [writer] Writer to encode to
8340
+ * @returns Writer
8341
+ */
8342
+ public static encodeDelimited(message: productcatalog.IRatePlanCharge, writer?: $protobuf.Writer): $protobuf.Writer;
8343
+
8344
+ /**
8345
+ * Decodes a RatePlanCharge message from the specified reader or buffer.
8346
+ * @param reader Reader or buffer to decode from
8347
+ * @param [length] Message length if known beforehand
8348
+ * @returns RatePlanCharge
8349
+ * @throws {Error} If the payload is not a reader or valid buffer
8350
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8351
+ */
8352
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): productcatalog.RatePlanCharge;
8353
+
8354
+ /**
8355
+ * Decodes a RatePlanCharge message from the specified reader or buffer, length delimited.
8356
+ * @param reader Reader or buffer to decode from
8357
+ * @returns RatePlanCharge
8358
+ * @throws {Error} If the payload is not a reader or valid buffer
8359
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8360
+ */
8361
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): productcatalog.RatePlanCharge;
8362
+
8363
+ /**
8364
+ * Verifies a RatePlanCharge message.
8365
+ * @param message Plain object to verify
8366
+ * @returns `null` if valid, otherwise the reason why it is not
8367
+ */
8368
+ public static verify(message: { [k: string]: any }): (string|null);
8369
+
8370
+ /**
8371
+ * Creates a RatePlanCharge message from a plain object. Also converts values to their respective internal types.
8372
+ * @param object Plain object
8373
+ * @returns RatePlanCharge
8374
+ */
8375
+ public static fromObject(object: { [k: string]: any }): productcatalog.RatePlanCharge;
8376
+
8377
+ /**
8378
+ * Creates a plain object from a RatePlanCharge message. Also converts values to other types if specified.
8379
+ * @param message RatePlanCharge
8380
+ * @param [options] Conversion options
8381
+ * @returns Plain object
8382
+ */
8383
+ public static toObject(message: productcatalog.RatePlanCharge, options?: $protobuf.IConversionOptions): { [k: string]: any };
8384
+
8385
+ /**
8386
+ * Converts this RatePlanCharge to JSON.
8387
+ * @returns JSON object
8388
+ */
8389
+ public toJSON(): { [k: string]: any };
8390
+ }
8391
+
8392
+ /** Properties of a RatePlanChargeTier. */
8393
+ interface IRatePlanChargeTier {
8394
+
8395
+ /** 3-letter currency code, eg. USD, MXN, AUD, EUR, etc... */
8396
+ currency?: (string|null);
8397
+
8398
+ /** 2-letter country code, eg. US, CA, IN */
8399
+ country?: (string|null);
8400
+
8401
+ /** discount amount if the charge_model is DISCOUNT_FIXED */
8402
+ discountAmount?: (number|null);
8403
+
8404
+ /** discount percentage if the charge_model is DISCOUNT_PCT */
8405
+ discountPercent?: (number|null);
8406
+
8407
+ /** amount to be charged if charge_model is "FLAT_FEE" */
8408
+ listPrice?: (number|null);
8409
+ }
8410
+
8411
+ /** Represents a RatePlanChargeTier. */
8412
+ class RatePlanChargeTier implements IRatePlanChargeTier {
8413
+
8414
+ /**
8415
+ * Constructs a new RatePlanChargeTier.
8416
+ * @param [properties] Properties to set
8417
+ */
8418
+ constructor(properties?: productcatalog.IRatePlanChargeTier);
8419
+
8420
+ /** 3-letter currency code, eg. USD, MXN, AUD, EUR, etc... */
8421
+ public currency: string;
8422
+
8423
+ /** 2-letter country code, eg. US, CA, IN */
8424
+ public country: string;
8425
+
8426
+ /** discount amount if the charge_model is DISCOUNT_FIXED */
8427
+ public discountAmount: number;
8428
+
8429
+ /** discount percentage if the charge_model is DISCOUNT_PCT */
8430
+ public discountPercent: number;
8431
+
8432
+ /** amount to be charged if charge_model is "FLAT_FEE" */
8433
+ public listPrice: number;
8434
+
8435
+ /**
8436
+ * Creates a new RatePlanChargeTier instance using the specified properties.
8437
+ * @param [properties] Properties to set
8438
+ * @returns RatePlanChargeTier instance
8439
+ */
8440
+ public static create(properties?: productcatalog.IRatePlanChargeTier): productcatalog.RatePlanChargeTier;
8441
+
8442
+ /**
8443
+ * Encodes the specified RatePlanChargeTier message. Does not implicitly {@link productcatalog.RatePlanChargeTier.verify|verify} messages.
8444
+ * @param message RatePlanChargeTier message or plain object to encode
8445
+ * @param [writer] Writer to encode to
8446
+ * @returns Writer
8447
+ */
8448
+ public static encode(message: productcatalog.IRatePlanChargeTier, writer?: $protobuf.Writer): $protobuf.Writer;
8449
+
8450
+ /**
8451
+ * Encodes the specified RatePlanChargeTier message, length delimited. Does not implicitly {@link productcatalog.RatePlanChargeTier.verify|verify} messages.
8452
+ * @param message RatePlanChargeTier message or plain object to encode
8453
+ * @param [writer] Writer to encode to
8454
+ * @returns Writer
8455
+ */
8456
+ public static encodeDelimited(message: productcatalog.IRatePlanChargeTier, writer?: $protobuf.Writer): $protobuf.Writer;
8457
+
8458
+ /**
8459
+ * Decodes a RatePlanChargeTier message from the specified reader or buffer.
8460
+ * @param reader Reader or buffer to decode from
8461
+ * @param [length] Message length if known beforehand
8462
+ * @returns RatePlanChargeTier
8463
+ * @throws {Error} If the payload is not a reader or valid buffer
8464
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8465
+ */
8466
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): productcatalog.RatePlanChargeTier;
8467
+
8468
+ /**
8469
+ * Decodes a RatePlanChargeTier message from the specified reader or buffer, length delimited.
8470
+ * @param reader Reader or buffer to decode from
8471
+ * @returns RatePlanChargeTier
8472
+ * @throws {Error} If the payload is not a reader or valid buffer
8473
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8474
+ */
8475
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): productcatalog.RatePlanChargeTier;
8476
+
8477
+ /**
8478
+ * Verifies a RatePlanChargeTier message.
8479
+ * @param message Plain object to verify
8480
+ * @returns `null` if valid, otherwise the reason why it is not
8481
+ */
8482
+ public static verify(message: { [k: string]: any }): (string|null);
8483
+
8484
+ /**
8485
+ * Creates a RatePlanChargeTier message from a plain object. Also converts values to their respective internal types.
8486
+ * @param object Plain object
8487
+ * @returns RatePlanChargeTier
8488
+ */
8489
+ public static fromObject(object: { [k: string]: any }): productcatalog.RatePlanChargeTier;
8490
+
8491
+ /**
8492
+ * Creates a plain object from a RatePlanChargeTier message. Also converts values to other types if specified.
8493
+ * @param message RatePlanChargeTier
8494
+ * @param [options] Conversion options
8495
+ * @returns Plain object
8496
+ */
8497
+ public static toObject(message: productcatalog.RatePlanChargeTier, options?: $protobuf.IConversionOptions): { [k: string]: any };
8498
+
8499
+ /**
8500
+ * Converts this RatePlanChargeTier to JSON.
8501
+ * @returns JSON object
8502
+ */
8503
+ public toJSON(): { [k: string]: any };
8504
+ }
8505
+
8506
+ /** ProductSkuPlatform enum. */
8507
+ enum ProductSkuPlatform {
8508
+ PLATFORM_UNKNOWN = 0,
8509
+ PLATFORM_APPLE = 1,
8510
+ PLATFORM_GOOGLE = 2,
8511
+ PLATFORM_HEADSPACE = 3,
8512
+ PLATFORM_SPOTIFY = 4,
8513
+ PLATFORM_ZUORA = 5,
8514
+ PLATFORM_B2B_ORG = 6
8515
+ }
8516
+
8517
+ /** ProductSkuBillingCategory enum. */
8518
+ enum ProductSkuBillingCategory {
8519
+ BC_UNKNOWN = 0,
8520
+ BC_GIFT_CODE = 1,
8521
+ BC_GIFT_PURCHASE = 2,
8522
+ BC_FREE_CODE = 3,
8523
+ BC_FREE_TRIAL = 4,
8524
+ BC_PARTNER_PAID = 5,
8525
+ BC_DIRECT = 6
8526
+ }
8527
+
8528
+ /** ProductSkuCalendarPeriod enum. */
8529
+ enum ProductSkuCalendarPeriod {
8530
+ CP_UNKNOWN = 0,
8531
+ CP_DAY = 1,
8532
+ CP_MONTH = 2,
8533
+ CP_YEAR = 3,
8534
+ CP_LIFETIME = 4,
8535
+ CP_ONE_TIME = 5,
8536
+ CP_HALF_YEAR = 7,
8537
+ CP_TWO_YEARS = 8,
8538
+ CP_FIVE_YEARS = 9
8539
+ }
8540
+
8541
+ /** ProductSkuChargeModel enum. */
8542
+ enum ProductSkuChargeModel {
8543
+ CM_UNKNOWN = 0,
8544
+ CM_FLAT_FEE = 1,
8545
+ CM_DISCOUNT_FIXED = 2,
8546
+ CM_DISCOUNT_PERCENT = 3
8547
+ }
8548
+
8549
+ /** ProductSkuEndDateCondition enum. */
8550
+ enum ProductSkuEndDateCondition {
8551
+ EDC_UNKNOWN = 0,
8552
+ EDC_END_OF_SUBSCRIPTION = 1,
8553
+ EDC_FIXED_NUM_PERIODS = 2,
8554
+ EDC_ONE_TIME = 3
8555
+ }
8556
+
8557
+ /** ProductSkuTag enum. */
8558
+ enum ProductSkuTag {
8559
+ TAG_UNKNOWN = 0,
8560
+ TAG_STUDENT = 1,
8561
+ TAG_FAMILY = 2
8562
+ }
8563
+ }
8564
+
7843
8565
  /** Namespace b2b. */
7844
8566
  export namespace b2b {
7845
8567
 
@@ -36854,6 +37576,186 @@ export class ExperimentAccessGroupMapDeleted implements IExperimentAccessGroupMa
36854
37576
  public toJSON(): { [k: string]: any };
36855
37577
  }
36856
37578
 
37579
+ /** Properties of a ProductSkuCreated. */
37580
+ export interface IProductSkuCreated {
37581
+
37582
+ /** ProductSkuCreated productSku */
37583
+ productSku?: (productcatalog.IProductSku|null);
37584
+ }
37585
+
37586
+ /** Represents a ProductSkuCreated. */
37587
+ export class ProductSkuCreated implements IProductSkuCreated {
37588
+
37589
+ /**
37590
+ * Constructs a new ProductSkuCreated.
37591
+ * @param [properties] Properties to set
37592
+ */
37593
+ constructor(properties?: IProductSkuCreated);
37594
+
37595
+ /** ProductSkuCreated productSku. */
37596
+ public productSku?: (productcatalog.IProductSku|null);
37597
+
37598
+ /**
37599
+ * Creates a new ProductSkuCreated instance using the specified properties.
37600
+ * @param [properties] Properties to set
37601
+ * @returns ProductSkuCreated instance
37602
+ */
37603
+ public static create(properties?: IProductSkuCreated): ProductSkuCreated;
37604
+
37605
+ /**
37606
+ * Encodes the specified ProductSkuCreated message. Does not implicitly {@link ProductSkuCreated.verify|verify} messages.
37607
+ * @param message ProductSkuCreated message or plain object to encode
37608
+ * @param [writer] Writer to encode to
37609
+ * @returns Writer
37610
+ */
37611
+ public static encode(message: IProductSkuCreated, writer?: $protobuf.Writer): $protobuf.Writer;
37612
+
37613
+ /**
37614
+ * Encodes the specified ProductSkuCreated message, length delimited. Does not implicitly {@link ProductSkuCreated.verify|verify} messages.
37615
+ * @param message ProductSkuCreated message or plain object to encode
37616
+ * @param [writer] Writer to encode to
37617
+ * @returns Writer
37618
+ */
37619
+ public static encodeDelimited(message: IProductSkuCreated, writer?: $protobuf.Writer): $protobuf.Writer;
37620
+
37621
+ /**
37622
+ * Decodes a ProductSkuCreated message from the specified reader or buffer.
37623
+ * @param reader Reader or buffer to decode from
37624
+ * @param [length] Message length if known beforehand
37625
+ * @returns ProductSkuCreated
37626
+ * @throws {Error} If the payload is not a reader or valid buffer
37627
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37628
+ */
37629
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ProductSkuCreated;
37630
+
37631
+ /**
37632
+ * Decodes a ProductSkuCreated message from the specified reader or buffer, length delimited.
37633
+ * @param reader Reader or buffer to decode from
37634
+ * @returns ProductSkuCreated
37635
+ * @throws {Error} If the payload is not a reader or valid buffer
37636
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37637
+ */
37638
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ProductSkuCreated;
37639
+
37640
+ /**
37641
+ * Verifies a ProductSkuCreated message.
37642
+ * @param message Plain object to verify
37643
+ * @returns `null` if valid, otherwise the reason why it is not
37644
+ */
37645
+ public static verify(message: { [k: string]: any }): (string|null);
37646
+
37647
+ /**
37648
+ * Creates a ProductSkuCreated message from a plain object. Also converts values to their respective internal types.
37649
+ * @param object Plain object
37650
+ * @returns ProductSkuCreated
37651
+ */
37652
+ public static fromObject(object: { [k: string]: any }): ProductSkuCreated;
37653
+
37654
+ /**
37655
+ * Creates a plain object from a ProductSkuCreated message. Also converts values to other types if specified.
37656
+ * @param message ProductSkuCreated
37657
+ * @param [options] Conversion options
37658
+ * @returns Plain object
37659
+ */
37660
+ public static toObject(message: ProductSkuCreated, options?: $protobuf.IConversionOptions): { [k: string]: any };
37661
+
37662
+ /**
37663
+ * Converts this ProductSkuCreated to JSON.
37664
+ * @returns JSON object
37665
+ */
37666
+ public toJSON(): { [k: string]: any };
37667
+ }
37668
+
37669
+ /** Properties of a ProductSkuVersioned. */
37670
+ export interface IProductSkuVersioned {
37671
+
37672
+ /** ProductSkuVersioned productSku */
37673
+ productSku?: (productcatalog.IProductSku|null);
37674
+ }
37675
+
37676
+ /** Represents a ProductSkuVersioned. */
37677
+ export class ProductSkuVersioned implements IProductSkuVersioned {
37678
+
37679
+ /**
37680
+ * Constructs a new ProductSkuVersioned.
37681
+ * @param [properties] Properties to set
37682
+ */
37683
+ constructor(properties?: IProductSkuVersioned);
37684
+
37685
+ /** ProductSkuVersioned productSku. */
37686
+ public productSku?: (productcatalog.IProductSku|null);
37687
+
37688
+ /**
37689
+ * Creates a new ProductSkuVersioned instance using the specified properties.
37690
+ * @param [properties] Properties to set
37691
+ * @returns ProductSkuVersioned instance
37692
+ */
37693
+ public static create(properties?: IProductSkuVersioned): ProductSkuVersioned;
37694
+
37695
+ /**
37696
+ * Encodes the specified ProductSkuVersioned message. Does not implicitly {@link ProductSkuVersioned.verify|verify} messages.
37697
+ * @param message ProductSkuVersioned message or plain object to encode
37698
+ * @param [writer] Writer to encode to
37699
+ * @returns Writer
37700
+ */
37701
+ public static encode(message: IProductSkuVersioned, writer?: $protobuf.Writer): $protobuf.Writer;
37702
+
37703
+ /**
37704
+ * Encodes the specified ProductSkuVersioned message, length delimited. Does not implicitly {@link ProductSkuVersioned.verify|verify} messages.
37705
+ * @param message ProductSkuVersioned message or plain object to encode
37706
+ * @param [writer] Writer to encode to
37707
+ * @returns Writer
37708
+ */
37709
+ public static encodeDelimited(message: IProductSkuVersioned, writer?: $protobuf.Writer): $protobuf.Writer;
37710
+
37711
+ /**
37712
+ * Decodes a ProductSkuVersioned message from the specified reader or buffer.
37713
+ * @param reader Reader or buffer to decode from
37714
+ * @param [length] Message length if known beforehand
37715
+ * @returns ProductSkuVersioned
37716
+ * @throws {Error} If the payload is not a reader or valid buffer
37717
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37718
+ */
37719
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ProductSkuVersioned;
37720
+
37721
+ /**
37722
+ * Decodes a ProductSkuVersioned message from the specified reader or buffer, length delimited.
37723
+ * @param reader Reader or buffer to decode from
37724
+ * @returns ProductSkuVersioned
37725
+ * @throws {Error} If the payload is not a reader or valid buffer
37726
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
37727
+ */
37728
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ProductSkuVersioned;
37729
+
37730
+ /**
37731
+ * Verifies a ProductSkuVersioned message.
37732
+ * @param message Plain object to verify
37733
+ * @returns `null` if valid, otherwise the reason why it is not
37734
+ */
37735
+ public static verify(message: { [k: string]: any }): (string|null);
37736
+
37737
+ /**
37738
+ * Creates a ProductSkuVersioned message from a plain object. Also converts values to their respective internal types.
37739
+ * @param object Plain object
37740
+ * @returns ProductSkuVersioned
37741
+ */
37742
+ public static fromObject(object: { [k: string]: any }): ProductSkuVersioned;
37743
+
37744
+ /**
37745
+ * Creates a plain object from a ProductSkuVersioned message. Also converts values to other types if specified.
37746
+ * @param message ProductSkuVersioned
37747
+ * @param [options] Conversion options
37748
+ * @returns Plain object
37749
+ */
37750
+ public static toObject(message: ProductSkuVersioned, options?: $protobuf.IConversionOptions): { [k: string]: any };
37751
+
37752
+ /**
37753
+ * Converts this ProductSkuVersioned to JSON.
37754
+ * @returns JSON object
37755
+ */
37756
+ public toJSON(): { [k: string]: any };
37757
+ }
37758
+
36857
37759
  /** Properties of a ReferralSignedUp. */
36858
37760
  export interface IReferralSignedUp {
36859
37761