@headspace/protos-events 1.556.0 → 1.557.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 +10 -2
- package/lib/index.js +57 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -7832,7 +7832,8 @@ export namespace subscription {
|
|
|
7832
7832
|
enum SubscriptionTaxMode {
|
|
7833
7833
|
SUBTAXMODE_UNKNOWN = 0,
|
|
7834
7834
|
SUBTAXMODE_EXCLUSIVE = 1,
|
|
7835
|
-
SUBTAXMODE_INCLUSIVE = 2
|
|
7835
|
+
SUBTAXMODE_INCLUSIVE = 2,
|
|
7836
|
+
SUBTAXMODE_EXEMPT = 3
|
|
7836
7837
|
}
|
|
7837
7838
|
}
|
|
7838
7839
|
|
|
@@ -8336,6 +8337,9 @@ export namespace productcatalog {
|
|
|
8336
8337
|
|
|
8337
8338
|
/** BillingPlan taxExclusive */
|
|
8338
8339
|
taxExclusive?: (productcatalog.IRatePlan[]|null);
|
|
8340
|
+
|
|
8341
|
+
/** BillingPlan taxExempt */
|
|
8342
|
+
taxExempt?: (productcatalog.IRatePlan[]|null);
|
|
8339
8343
|
}
|
|
8340
8344
|
|
|
8341
8345
|
/** Represents a BillingPlan. */
|
|
@@ -8353,6 +8357,9 @@ export namespace productcatalog {
|
|
|
8353
8357
|
/** BillingPlan taxExclusive. */
|
|
8354
8358
|
public taxExclusive: productcatalog.IRatePlan[];
|
|
8355
8359
|
|
|
8360
|
+
/** BillingPlan taxExempt. */
|
|
8361
|
+
public taxExempt: productcatalog.IRatePlan[];
|
|
8362
|
+
|
|
8356
8363
|
/**
|
|
8357
8364
|
* Creates a new BillingPlan instance using the specified properties.
|
|
8358
8365
|
* @param [properties] Properties to set
|
|
@@ -8815,7 +8822,8 @@ export namespace gift {
|
|
|
8815
8822
|
enum GiftProductSkuTaxMode {
|
|
8816
8823
|
GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN = 0,
|
|
8817
8824
|
GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE = 1,
|
|
8818
|
-
GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE = 2
|
|
8825
|
+
GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE = 2,
|
|
8826
|
+
GIFT_PRODUCT_SKU_TAX_MODE_EXEMPT = 3
|
|
8819
8827
|
}
|
|
8820
8828
|
}
|
|
8821
8829
|
|
package/lib/index.js
CHANGED
|
@@ -18511,6 +18511,7 @@ $root.subscription = (function() {
|
|
|
18511
18511
|
case 0:
|
|
18512
18512
|
case 1:
|
|
18513
18513
|
case 2:
|
|
18514
|
+
case 3:
|
|
18514
18515
|
break;
|
|
18515
18516
|
}
|
|
18516
18517
|
return null;
|
|
@@ -18545,6 +18546,10 @@ $root.subscription = (function() {
|
|
|
18545
18546
|
case 2:
|
|
18546
18547
|
message.taxMode = 2;
|
|
18547
18548
|
break;
|
|
18549
|
+
case "SUBTAXMODE_EXEMPT":
|
|
18550
|
+
case 3:
|
|
18551
|
+
message.taxMode = 3;
|
|
18552
|
+
break;
|
|
18548
18553
|
}
|
|
18549
18554
|
return message;
|
|
18550
18555
|
};
|
|
@@ -18597,12 +18602,14 @@ $root.subscription = (function() {
|
|
|
18597
18602
|
* @property {number} SUBTAXMODE_UNKNOWN=0 SUBTAXMODE_UNKNOWN value
|
|
18598
18603
|
* @property {number} SUBTAXMODE_EXCLUSIVE=1 SUBTAXMODE_EXCLUSIVE value
|
|
18599
18604
|
* @property {number} SUBTAXMODE_INCLUSIVE=2 SUBTAXMODE_INCLUSIVE value
|
|
18605
|
+
* @property {number} SUBTAXMODE_EXEMPT=3 SUBTAXMODE_EXEMPT value
|
|
18600
18606
|
*/
|
|
18601
18607
|
subscription.SubscriptionTaxMode = (function() {
|
|
18602
18608
|
var valuesById = {}, values = Object.create(valuesById);
|
|
18603
18609
|
values[valuesById[0] = "SUBTAXMODE_UNKNOWN"] = 0;
|
|
18604
18610
|
values[valuesById[1] = "SUBTAXMODE_EXCLUSIVE"] = 1;
|
|
18605
18611
|
values[valuesById[2] = "SUBTAXMODE_INCLUSIVE"] = 2;
|
|
18612
|
+
values[valuesById[3] = "SUBTAXMODE_EXEMPT"] = 3;
|
|
18606
18613
|
return values;
|
|
18607
18614
|
})();
|
|
18608
18615
|
|
|
@@ -20047,6 +20054,7 @@ $root.productcatalog = (function() {
|
|
|
20047
20054
|
* @interface IBillingPlan
|
|
20048
20055
|
* @property {Array.<productcatalog.IRatePlan>|null} [taxInclusive] BillingPlan taxInclusive
|
|
20049
20056
|
* @property {Array.<productcatalog.IRatePlan>|null} [taxExclusive] BillingPlan taxExclusive
|
|
20057
|
+
* @property {Array.<productcatalog.IRatePlan>|null} [taxExempt] BillingPlan taxExempt
|
|
20050
20058
|
*/
|
|
20051
20059
|
|
|
20052
20060
|
/**
|
|
@@ -20060,6 +20068,7 @@ $root.productcatalog = (function() {
|
|
|
20060
20068
|
function BillingPlan(properties) {
|
|
20061
20069
|
this.taxInclusive = [];
|
|
20062
20070
|
this.taxExclusive = [];
|
|
20071
|
+
this.taxExempt = [];
|
|
20063
20072
|
if (properties)
|
|
20064
20073
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20065
20074
|
if (properties[keys[i]] != null)
|
|
@@ -20082,6 +20091,14 @@ $root.productcatalog = (function() {
|
|
|
20082
20091
|
*/
|
|
20083
20092
|
BillingPlan.prototype.taxExclusive = $util.emptyArray;
|
|
20084
20093
|
|
|
20094
|
+
/**
|
|
20095
|
+
* BillingPlan taxExempt.
|
|
20096
|
+
* @member {Array.<productcatalog.IRatePlan>} taxExempt
|
|
20097
|
+
* @memberof productcatalog.BillingPlan
|
|
20098
|
+
* @instance
|
|
20099
|
+
*/
|
|
20100
|
+
BillingPlan.prototype.taxExempt = $util.emptyArray;
|
|
20101
|
+
|
|
20085
20102
|
/**
|
|
20086
20103
|
* Creates a new BillingPlan instance using the specified properties.
|
|
20087
20104
|
* @function create
|
|
@@ -20112,6 +20129,9 @@ $root.productcatalog = (function() {
|
|
|
20112
20129
|
if (message.taxExclusive != null && message.taxExclusive.length)
|
|
20113
20130
|
for (var i = 0; i < message.taxExclusive.length; ++i)
|
|
20114
20131
|
$root.productcatalog.RatePlan.encode(message.taxExclusive[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
20132
|
+
if (message.taxExempt != null && message.taxExempt.length)
|
|
20133
|
+
for (var i = 0; i < message.taxExempt.length; ++i)
|
|
20134
|
+
$root.productcatalog.RatePlan.encode(message.taxExempt[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
20115
20135
|
return writer;
|
|
20116
20136
|
};
|
|
20117
20137
|
|
|
@@ -20156,6 +20176,11 @@ $root.productcatalog = (function() {
|
|
|
20156
20176
|
message.taxExclusive = [];
|
|
20157
20177
|
message.taxExclusive.push($root.productcatalog.RatePlan.decode(reader, reader.uint32()));
|
|
20158
20178
|
break;
|
|
20179
|
+
case 3:
|
|
20180
|
+
if (!(message.taxExempt && message.taxExempt.length))
|
|
20181
|
+
message.taxExempt = [];
|
|
20182
|
+
message.taxExempt.push($root.productcatalog.RatePlan.decode(reader, reader.uint32()));
|
|
20183
|
+
break;
|
|
20159
20184
|
default:
|
|
20160
20185
|
reader.skipType(tag & 7);
|
|
20161
20186
|
break;
|
|
@@ -20209,6 +20234,15 @@ $root.productcatalog = (function() {
|
|
|
20209
20234
|
return "taxExclusive." + error;
|
|
20210
20235
|
}
|
|
20211
20236
|
}
|
|
20237
|
+
if (message.taxExempt != null && message.hasOwnProperty("taxExempt")) {
|
|
20238
|
+
if (!Array.isArray(message.taxExempt))
|
|
20239
|
+
return "taxExempt: array expected";
|
|
20240
|
+
for (var i = 0; i < message.taxExempt.length; ++i) {
|
|
20241
|
+
var error = $root.productcatalog.RatePlan.verify(message.taxExempt[i]);
|
|
20242
|
+
if (error)
|
|
20243
|
+
return "taxExempt." + error;
|
|
20244
|
+
}
|
|
20245
|
+
}
|
|
20212
20246
|
return null;
|
|
20213
20247
|
};
|
|
20214
20248
|
|
|
@@ -20244,6 +20278,16 @@ $root.productcatalog = (function() {
|
|
|
20244
20278
|
message.taxExclusive[i] = $root.productcatalog.RatePlan.fromObject(object.taxExclusive[i]);
|
|
20245
20279
|
}
|
|
20246
20280
|
}
|
|
20281
|
+
if (object.taxExempt) {
|
|
20282
|
+
if (!Array.isArray(object.taxExempt))
|
|
20283
|
+
throw TypeError(".productcatalog.BillingPlan.taxExempt: array expected");
|
|
20284
|
+
message.taxExempt = [];
|
|
20285
|
+
for (var i = 0; i < object.taxExempt.length; ++i) {
|
|
20286
|
+
if (typeof object.taxExempt[i] !== "object")
|
|
20287
|
+
throw TypeError(".productcatalog.BillingPlan.taxExempt: object expected");
|
|
20288
|
+
message.taxExempt[i] = $root.productcatalog.RatePlan.fromObject(object.taxExempt[i]);
|
|
20289
|
+
}
|
|
20290
|
+
}
|
|
20247
20291
|
return message;
|
|
20248
20292
|
};
|
|
20249
20293
|
|
|
@@ -20263,6 +20307,7 @@ $root.productcatalog = (function() {
|
|
|
20263
20307
|
if (options.arrays || options.defaults) {
|
|
20264
20308
|
object.taxInclusive = [];
|
|
20265
20309
|
object.taxExclusive = [];
|
|
20310
|
+
object.taxExempt = [];
|
|
20266
20311
|
}
|
|
20267
20312
|
if (message.taxInclusive && message.taxInclusive.length) {
|
|
20268
20313
|
object.taxInclusive = [];
|
|
@@ -20274,6 +20319,11 @@ $root.productcatalog = (function() {
|
|
|
20274
20319
|
for (var j = 0; j < message.taxExclusive.length; ++j)
|
|
20275
20320
|
object.taxExclusive[j] = $root.productcatalog.RatePlan.toObject(message.taxExclusive[j], options);
|
|
20276
20321
|
}
|
|
20322
|
+
if (message.taxExempt && message.taxExempt.length) {
|
|
20323
|
+
object.taxExempt = [];
|
|
20324
|
+
for (var j = 0; j < message.taxExempt.length; ++j)
|
|
20325
|
+
object.taxExempt[j] = $root.productcatalog.RatePlan.toObject(message.taxExempt[j], options);
|
|
20326
|
+
}
|
|
20277
20327
|
return object;
|
|
20278
20328
|
};
|
|
20279
20329
|
|
|
@@ -21339,12 +21389,14 @@ $root.gift = (function() {
|
|
|
21339
21389
|
* @property {number} GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN=0 GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN value
|
|
21340
21390
|
* @property {number} GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE=1 GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE value
|
|
21341
21391
|
* @property {number} GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE=2 GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE value
|
|
21392
|
+
* @property {number} GIFT_PRODUCT_SKU_TAX_MODE_EXEMPT=3 GIFT_PRODUCT_SKU_TAX_MODE_EXEMPT value
|
|
21342
21393
|
*/
|
|
21343
21394
|
gift.GiftProductSkuTaxMode = (function() {
|
|
21344
21395
|
var valuesById = {}, values = Object.create(valuesById);
|
|
21345
21396
|
values[valuesById[0] = "GIFT_PRODUCT_SKU_TAX_MODE_UNKNOWN"] = 0;
|
|
21346
21397
|
values[valuesById[1] = "GIFT_PRODUCT_SKU_TAX_MODE_EXCLUSIVE"] = 1;
|
|
21347
21398
|
values[valuesById[2] = "GIFT_PRODUCT_SKU_TAX_MODE_INCLUSIVE"] = 2;
|
|
21399
|
+
values[valuesById[3] = "GIFT_PRODUCT_SKU_TAX_MODE_EXEMPT"] = 3;
|
|
21348
21400
|
return values;
|
|
21349
21401
|
})();
|
|
21350
21402
|
|
|
@@ -110377,6 +110429,7 @@ $root.GiftPurchased = (function() {
|
|
|
110377
110429
|
case 0:
|
|
110378
110430
|
case 1:
|
|
110379
110431
|
case 2:
|
|
110432
|
+
case 3:
|
|
110380
110433
|
break;
|
|
110381
110434
|
}
|
|
110382
110435
|
if (message.giftRecipientEmailSendOn != null && message.hasOwnProperty("giftRecipientEmailSendOn"))
|
|
@@ -110435,6 +110488,10 @@ $root.GiftPurchased = (function() {
|
|
|
110435
110488
|
case 2:
|
|
110436
110489
|
message.productSkuTaxMode = 2;
|
|
110437
110490
|
break;
|
|
110491
|
+
case "GIFT_PRODUCT_SKU_TAX_MODE_EXEMPT":
|
|
110492
|
+
case 3:
|
|
110493
|
+
message.productSkuTaxMode = 3;
|
|
110494
|
+
break;
|
|
110438
110495
|
}
|
|
110439
110496
|
if (object.giftRecipientEmailSendOn != null)
|
|
110440
110497
|
if ($util.Long)
|
package/package.json
CHANGED