@headspace/protos-events 1.29.0 → 1.30.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
@@ -2645,6 +2645,12 @@ export interface ISubscriptionUpcomingRenewal {
2645
2645
 
2646
2646
  /** SubscriptionUpcomingRenewal paymentMethod */
2647
2647
  paymentMethod?: (subscription.IPaymentMethod|null);
2648
+
2649
+ /** SubscriptionUpcomingRenewal renewalAmount */
2650
+ renewalAmount?: (number|null);
2651
+
2652
+ /** SubscriptionUpcomingRenewal currency */
2653
+ currency?: (string|null);
2648
2654
  }
2649
2655
 
2650
2656
  /** Represents a SubscriptionUpcomingRenewal. */
@@ -2677,6 +2683,12 @@ export class SubscriptionUpcomingRenewal implements ISubscriptionUpcomingRenewal
2677
2683
  /** SubscriptionUpcomingRenewal paymentMethod. */
2678
2684
  public paymentMethod?: (subscription.IPaymentMethod|null);
2679
2685
 
2686
+ /** SubscriptionUpcomingRenewal renewalAmount. */
2687
+ public renewalAmount: number;
2688
+
2689
+ /** SubscriptionUpcomingRenewal currency. */
2690
+ public currency: string;
2691
+
2680
2692
  /**
2681
2693
  * Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
2682
2694
  * @param [properties] Properties to set
@@ -2759,6 +2771,15 @@ export interface ISubscriptionPaymentProcessed {
2759
2771
 
2760
2772
  /** SubscriptionPaymentProcessed timestamp */
2761
2773
  timestamp?: (number|Long|null);
2774
+
2775
+ /** SubscriptionPaymentProcessed paymentAmount */
2776
+ paymentAmount?: (number|null);
2777
+
2778
+ /** SubscriptionPaymentProcessed renewalAmount */
2779
+ renewalAmount?: (number|null);
2780
+
2781
+ /** SubscriptionPaymentProcessed currency */
2782
+ currency?: (string|null);
2762
2783
  }
2763
2784
 
2764
2785
  /** Represents a SubscriptionPaymentProcessed. */
@@ -2779,6 +2800,15 @@ export class SubscriptionPaymentProcessed implements ISubscriptionPaymentProcess
2779
2800
  /** SubscriptionPaymentProcessed timestamp. */
2780
2801
  public timestamp: (number|Long);
2781
2802
 
2803
+ /** SubscriptionPaymentProcessed paymentAmount. */
2804
+ public paymentAmount: number;
2805
+
2806
+ /** SubscriptionPaymentProcessed renewalAmount. */
2807
+ public renewalAmount: number;
2808
+
2809
+ /** SubscriptionPaymentProcessed currency. */
2810
+ public currency: string;
2811
+
2782
2812
  /**
2783
2813
  * Creates a new SubscriptionPaymentProcessed instance using the specified properties.
2784
2814
  * @param [properties] Properties to set
package/lib/index.js CHANGED
@@ -6237,6 +6237,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
6237
6237
  * @property {subscription.PlanAffiliation|null} [planAffiliation] SubscriptionUpcomingRenewal planAffiliation
6238
6238
  * @property {number|Long|null} [renewalDate] SubscriptionUpcomingRenewal renewalDate
6239
6239
  * @property {subscription.IPaymentMethod|null} [paymentMethod] SubscriptionUpcomingRenewal paymentMethod
6240
+ * @property {number|null} [renewalAmount] SubscriptionUpcomingRenewal renewalAmount
6241
+ * @property {string|null} [currency] SubscriptionUpcomingRenewal currency
6240
6242
  */
6241
6243
 
6242
6244
  /**
@@ -6310,6 +6312,22 @@ $root.SubscriptionUpcomingRenewal = (function() {
6310
6312
  */
6311
6313
  SubscriptionUpcomingRenewal.prototype.paymentMethod = null;
6312
6314
 
6315
+ /**
6316
+ * SubscriptionUpcomingRenewal renewalAmount.
6317
+ * @member {number} renewalAmount
6318
+ * @memberof SubscriptionUpcomingRenewal
6319
+ * @instance
6320
+ */
6321
+ SubscriptionUpcomingRenewal.prototype.renewalAmount = 0;
6322
+
6323
+ /**
6324
+ * SubscriptionUpcomingRenewal currency.
6325
+ * @member {string} currency
6326
+ * @memberof SubscriptionUpcomingRenewal
6327
+ * @instance
6328
+ */
6329
+ SubscriptionUpcomingRenewal.prototype.currency = "";
6330
+
6313
6331
  /**
6314
6332
  * Creates a new SubscriptionUpcomingRenewal instance using the specified properties.
6315
6333
  * @function create
@@ -6348,6 +6366,10 @@ $root.SubscriptionUpcomingRenewal = (function() {
6348
6366
  writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.renewalDate);
6349
6367
  if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
6350
6368
  $root.subscription.PaymentMethod.encode(message.paymentMethod, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
6369
+ if (message.renewalAmount != null && message.hasOwnProperty("renewalAmount"))
6370
+ writer.uint32(/* id 8, wireType 1 =*/65).double(message.renewalAmount);
6371
+ if (message.currency != null && message.hasOwnProperty("currency"))
6372
+ writer.uint32(/* id 9, wireType 2 =*/74).string(message.currency);
6351
6373
  return writer;
6352
6374
  };
6353
6375
 
@@ -6403,6 +6425,12 @@ $root.SubscriptionUpcomingRenewal = (function() {
6403
6425
  case 7:
6404
6426
  message.paymentMethod = $root.subscription.PaymentMethod.decode(reader, reader.uint32());
6405
6427
  break;
6428
+ case 8:
6429
+ message.renewalAmount = reader.double();
6430
+ break;
6431
+ case 9:
6432
+ message.currency = reader.string();
6433
+ break;
6406
6434
  default:
6407
6435
  reader.skipType(tag & 7);
6408
6436
  break;
@@ -6472,6 +6500,12 @@ $root.SubscriptionUpcomingRenewal = (function() {
6472
6500
  if (error)
6473
6501
  return "paymentMethod." + error;
6474
6502
  }
6503
+ if (message.renewalAmount != null && message.hasOwnProperty("renewalAmount"))
6504
+ if (typeof message.renewalAmount !== "number")
6505
+ return "renewalAmount: number expected";
6506
+ if (message.currency != null && message.hasOwnProperty("currency"))
6507
+ if (!$util.isString(message.currency))
6508
+ return "currency: string expected";
6475
6509
  return null;
6476
6510
  };
6477
6511
 
@@ -6531,6 +6565,10 @@ $root.SubscriptionUpcomingRenewal = (function() {
6531
6565
  throw TypeError(".SubscriptionUpcomingRenewal.paymentMethod: object expected");
6532
6566
  message.paymentMethod = $root.subscription.PaymentMethod.fromObject(object.paymentMethod);
6533
6567
  }
6568
+ if (object.renewalAmount != null)
6569
+ message.renewalAmount = Number(object.renewalAmount);
6570
+ if (object.currency != null)
6571
+ message.currency = String(object.currency);
6534
6572
  return message;
6535
6573
  };
6536
6574
 
@@ -6559,6 +6597,8 @@ $root.SubscriptionUpcomingRenewal = (function() {
6559
6597
  } else
6560
6598
  object.renewalDate = options.longs === String ? "0" : 0;
6561
6599
  object.paymentMethod = null;
6600
+ object.renewalAmount = 0;
6601
+ object.currency = "";
6562
6602
  }
6563
6603
  if (message.id != null && message.hasOwnProperty("id"))
6564
6604
  object.id = message.id;
@@ -6577,6 +6617,10 @@ $root.SubscriptionUpcomingRenewal = (function() {
6577
6617
  object.renewalDate = options.longs === String ? $util.Long.prototype.toString.call(message.renewalDate) : options.longs === Number ? new $util.LongBits(message.renewalDate.low >>> 0, message.renewalDate.high >>> 0).toNumber(true) : message.renewalDate;
6578
6618
  if (message.paymentMethod != null && message.hasOwnProperty("paymentMethod"))
6579
6619
  object.paymentMethod = $root.subscription.PaymentMethod.toObject(message.paymentMethod, options);
6620
+ if (message.renewalAmount != null && message.hasOwnProperty("renewalAmount"))
6621
+ object.renewalAmount = options.json && !isFinite(message.renewalAmount) ? String(message.renewalAmount) : message.renewalAmount;
6622
+ if (message.currency != null && message.hasOwnProperty("currency"))
6623
+ object.currency = message.currency;
6580
6624
  return object;
6581
6625
  };
6582
6626
 
@@ -6603,6 +6647,9 @@ $root.SubscriptionPaymentProcessed = (function() {
6603
6647
  * @property {string|null} [userId] SubscriptionPaymentProcessed userId
6604
6648
  * @property {number|Long|null} [paymentDate] SubscriptionPaymentProcessed paymentDate
6605
6649
  * @property {number|Long|null} [timestamp] SubscriptionPaymentProcessed timestamp
6650
+ * @property {number|null} [paymentAmount] SubscriptionPaymentProcessed paymentAmount
6651
+ * @property {number|null} [renewalAmount] SubscriptionPaymentProcessed renewalAmount
6652
+ * @property {string|null} [currency] SubscriptionPaymentProcessed currency
6606
6653
  */
6607
6654
 
6608
6655
  /**
@@ -6644,6 +6691,30 @@ $root.SubscriptionPaymentProcessed = (function() {
6644
6691
  */
6645
6692
  SubscriptionPaymentProcessed.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
6646
6693
 
6694
+ /**
6695
+ * SubscriptionPaymentProcessed paymentAmount.
6696
+ * @member {number} paymentAmount
6697
+ * @memberof SubscriptionPaymentProcessed
6698
+ * @instance
6699
+ */
6700
+ SubscriptionPaymentProcessed.prototype.paymentAmount = 0;
6701
+
6702
+ /**
6703
+ * SubscriptionPaymentProcessed renewalAmount.
6704
+ * @member {number} renewalAmount
6705
+ * @memberof SubscriptionPaymentProcessed
6706
+ * @instance
6707
+ */
6708
+ SubscriptionPaymentProcessed.prototype.renewalAmount = 0;
6709
+
6710
+ /**
6711
+ * SubscriptionPaymentProcessed currency.
6712
+ * @member {string} currency
6713
+ * @memberof SubscriptionPaymentProcessed
6714
+ * @instance
6715
+ */
6716
+ SubscriptionPaymentProcessed.prototype.currency = "";
6717
+
6647
6718
  /**
6648
6719
  * Creates a new SubscriptionPaymentProcessed instance using the specified properties.
6649
6720
  * @function create
@@ -6674,6 +6745,12 @@ $root.SubscriptionPaymentProcessed = (function() {
6674
6745
  writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.paymentDate);
6675
6746
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6676
6747
  writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
6748
+ if (message.paymentAmount != null && message.hasOwnProperty("paymentAmount"))
6749
+ writer.uint32(/* id 4, wireType 1 =*/33).double(message.paymentAmount);
6750
+ if (message.renewalAmount != null && message.hasOwnProperty("renewalAmount"))
6751
+ writer.uint32(/* id 5, wireType 1 =*/41).double(message.renewalAmount);
6752
+ if (message.currency != null && message.hasOwnProperty("currency"))
6753
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.currency);
6677
6754
  return writer;
6678
6755
  };
6679
6756
 
@@ -6717,6 +6794,15 @@ $root.SubscriptionPaymentProcessed = (function() {
6717
6794
  case 3:
6718
6795
  message.timestamp = reader.uint64();
6719
6796
  break;
6797
+ case 4:
6798
+ message.paymentAmount = reader.double();
6799
+ break;
6800
+ case 5:
6801
+ message.renewalAmount = reader.double();
6802
+ break;
6803
+ case 6:
6804
+ message.currency = reader.string();
6805
+ break;
6720
6806
  default:
6721
6807
  reader.skipType(tag & 7);
6722
6808
  break;
@@ -6761,6 +6847,15 @@ $root.SubscriptionPaymentProcessed = (function() {
6761
6847
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
6762
6848
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
6763
6849
  return "timestamp: integer|Long expected";
6850
+ if (message.paymentAmount != null && message.hasOwnProperty("paymentAmount"))
6851
+ if (typeof message.paymentAmount !== "number")
6852
+ return "paymentAmount: number expected";
6853
+ if (message.renewalAmount != null && message.hasOwnProperty("renewalAmount"))
6854
+ if (typeof message.renewalAmount !== "number")
6855
+ return "renewalAmount: number expected";
6856
+ if (message.currency != null && message.hasOwnProperty("currency"))
6857
+ if (!$util.isString(message.currency))
6858
+ return "currency: string expected";
6764
6859
  return null;
6765
6860
  };
6766
6861
 
@@ -6796,6 +6891,12 @@ $root.SubscriptionPaymentProcessed = (function() {
6796
6891
  message.timestamp = object.timestamp;
6797
6892
  else if (typeof object.timestamp === "object")
6798
6893
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
6894
+ if (object.paymentAmount != null)
6895
+ message.paymentAmount = Number(object.paymentAmount);
6896
+ if (object.renewalAmount != null)
6897
+ message.renewalAmount = Number(object.renewalAmount);
6898
+ if (object.currency != null)
6899
+ message.currency = String(object.currency);
6799
6900
  return message;
6800
6901
  };
6801
6902
 
@@ -6824,6 +6925,9 @@ $root.SubscriptionPaymentProcessed = (function() {
6824
6925
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
6825
6926
  } else
6826
6927
  object.timestamp = options.longs === String ? "0" : 0;
6928
+ object.paymentAmount = 0;
6929
+ object.renewalAmount = 0;
6930
+ object.currency = "";
6827
6931
  }
6828
6932
  if (message.userId != null && message.hasOwnProperty("userId"))
6829
6933
  object.userId = message.userId;
@@ -6837,6 +6941,12 @@ $root.SubscriptionPaymentProcessed = (function() {
6837
6941
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
6838
6942
  else
6839
6943
  object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
6944
+ if (message.paymentAmount != null && message.hasOwnProperty("paymentAmount"))
6945
+ object.paymentAmount = options.json && !isFinite(message.paymentAmount) ? String(message.paymentAmount) : message.paymentAmount;
6946
+ if (message.renewalAmount != null && message.hasOwnProperty("renewalAmount"))
6947
+ object.renewalAmount = options.json && !isFinite(message.renewalAmount) ? String(message.renewalAmount) : message.renewalAmount;
6948
+ if (message.currency != null && message.hasOwnProperty("currency"))
6949
+ object.currency = message.currency;
6840
6950
  return object;
6841
6951
  };
6842
6952
 
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.29.0"
19
+ "version": "1.30.0"
20
20
  }