@headspace/protos-events 1.556.0 → 1.558.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 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
 
@@ -39377,6 +39385,9 @@ export interface IGingerDependentUpgraded {
39377
39385
  /** GingerDependentUpgraded lastName */
39378
39386
  lastName?: (string|null);
39379
39387
 
39388
+ /** GingerDependentUpgraded email */
39389
+ email?: (string|null);
39390
+
39380
39391
  /** GingerDependentUpgraded priorEnrollmentFlow */
39381
39392
  priorEnrollmentFlow?: (b2b.EnrollmentFlow|null);
39382
39393
 
@@ -39418,6 +39429,9 @@ export class GingerDependentUpgraded implements IGingerDependentUpgraded {
39418
39429
  /** GingerDependentUpgraded lastName. */
39419
39430
  public lastName: string;
39420
39431
 
39432
+ /** GingerDependentUpgraded email. */
39433
+ public email: string;
39434
+
39421
39435
  /** GingerDependentUpgraded priorEnrollmentFlow. */
39422
39436
  public priorEnrollmentFlow: b2b.EnrollmentFlow;
39423
39437
 
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)
@@ -111262,6 +111319,7 @@ $root.GingerDependentUpgraded = (function() {
111262
111319
  * @property {string|null} [hsUserId] The dependent's HSUSER_* ID
111263
111320
  * @property {string|null} [firstName] GingerDependentUpgraded firstName
111264
111321
  * @property {string|null} [lastName] GingerDependentUpgraded lastName
111322
+ * @property {string|null} [email] GingerDependentUpgraded email
111265
111323
  * @property {b2b.EnrollmentFlow|null} [priorEnrollmentFlow] GingerDependentUpgraded priorEnrollmentFlow
111266
111324
  * @property {b2b.EnrollmentFlow|null} [enrollmentFlow] GingerDependentUpgraded enrollmentFlow
111267
111325
  */
@@ -111339,6 +111397,14 @@ $root.GingerDependentUpgraded = (function() {
111339
111397
  */
111340
111398
  GingerDependentUpgraded.prototype.lastName = "";
111341
111399
 
111400
+ /**
111401
+ * GingerDependentUpgraded email.
111402
+ * @member {string} email
111403
+ * @memberof GingerDependentUpgraded
111404
+ * @instance
111405
+ */
111406
+ GingerDependentUpgraded.prototype.email = "";
111407
+
111342
111408
  /**
111343
111409
  * GingerDependentUpgraded priorEnrollmentFlow.
111344
111410
  * @member {b2b.EnrollmentFlow} priorEnrollmentFlow
@@ -111393,6 +111459,8 @@ $root.GingerDependentUpgraded = (function() {
111393
111459
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.firstName);
111394
111460
  if (message.lastName != null && message.hasOwnProperty("lastName"))
111395
111461
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastName);
111462
+ if (message.email != null && message.hasOwnProperty("email"))
111463
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.email);
111396
111464
  if (message.priorEnrollmentFlow != null && message.hasOwnProperty("priorEnrollmentFlow"))
111397
111465
  writer.uint32(/* id 9, wireType 0 =*/72).int32(message.priorEnrollmentFlow);
111398
111466
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
@@ -111452,6 +111520,9 @@ $root.GingerDependentUpgraded = (function() {
111452
111520
  case 7:
111453
111521
  message.lastName = reader.string();
111454
111522
  break;
111523
+ case 8:
111524
+ message.email = reader.string();
111525
+ break;
111455
111526
  case 9:
111456
111527
  message.priorEnrollmentFlow = reader.int32();
111457
111528
  break;
@@ -111514,6 +111585,9 @@ $root.GingerDependentUpgraded = (function() {
111514
111585
  if (message.lastName != null && message.hasOwnProperty("lastName"))
111515
111586
  if (!$util.isString(message.lastName))
111516
111587
  return "lastName: string expected";
111588
+ if (message.email != null && message.hasOwnProperty("email"))
111589
+ if (!$util.isString(message.email))
111590
+ return "email: string expected";
111517
111591
  if (message.priorEnrollmentFlow != null && message.hasOwnProperty("priorEnrollmentFlow"))
111518
111592
  switch (message.priorEnrollmentFlow) {
111519
111593
  default:
@@ -111567,6 +111641,8 @@ $root.GingerDependentUpgraded = (function() {
111567
111641
  message.firstName = String(object.firstName);
111568
111642
  if (object.lastName != null)
111569
111643
  message.lastName = String(object.lastName);
111644
+ if (object.email != null)
111645
+ message.email = String(object.email);
111570
111646
  switch (object.priorEnrollmentFlow) {
111571
111647
  case "ENROLLMENT_FLOW_UNKNOWN":
111572
111648
  case 0:
@@ -111643,6 +111719,7 @@ $root.GingerDependentUpgraded = (function() {
111643
111719
  object.hsUserId = "";
111644
111720
  object.firstName = "";
111645
111721
  object.lastName = "";
111722
+ object.email = "";
111646
111723
  object.priorEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
111647
111724
  object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
111648
111725
  }
@@ -111660,6 +111737,8 @@ $root.GingerDependentUpgraded = (function() {
111660
111737
  object.firstName = message.firstName;
111661
111738
  if (message.lastName != null && message.hasOwnProperty("lastName"))
111662
111739
  object.lastName = message.lastName;
111740
+ if (message.email != null && message.hasOwnProperty("email"))
111741
+ object.email = message.email;
111663
111742
  if (message.priorEnrollmentFlow != null && message.hasOwnProperty("priorEnrollmentFlow"))
111664
111743
  object.priorEnrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.priorEnrollmentFlow] : message.priorEnrollmentFlow;
111665
111744
  if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
package/package.json CHANGED
@@ -16,5 +16,5 @@
16
16
  "main": "lib/index.js",
17
17
  "name": "@headspace/protos-events",
18
18
  "typings": "lib/index.d.ts",
19
- "version": "1.556.0"
19
+ "version": "1.558.0"
20
20
  }