@vendasta/billing 12.26.0 → 12.28.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.
@@ -2150,6 +2150,9 @@ class AppliedDiscount {
2150
2150
  if (typeof this.description !== 'undefined') {
2151
2151
  toReturn['description'] = this.description;
2152
2152
  }
2153
+ if (typeof this.referenceId !== 'undefined') {
2154
+ toReturn['referenceId'] = this.referenceId;
2155
+ }
2153
2156
  return toReturn;
2154
2157
  }
2155
2158
  }
@@ -5496,6 +5499,9 @@ class AddLineItemRequest {
5496
5499
  if (proto.amount) {
5497
5500
  m.amount = parseInt(proto.amount, 10);
5498
5501
  }
5502
+ if (proto.discounts) {
5503
+ m.discounts = proto.discounts.map(AppliedDiscount.fromProto);
5504
+ }
5499
5505
  return m;
5500
5506
  }
5501
5507
  constructor(kwargs) {
@@ -5527,6 +5533,9 @@ class AddLineItemRequest {
5527
5533
  if (typeof this.taxRates !== 'undefined') {
5528
5534
  toReturn['taxRates'] = this.taxRates;
5529
5535
  }
5536
+ if (typeof this.discounts !== 'undefined' && this.discounts !== null) {
5537
+ toReturn['discounts'] = 'toApiJson' in this.discounts ? this.discounts.toApiJson() : this.discounts;
5538
+ }
5530
5539
  return toReturn;
5531
5540
  }
5532
5541
  }
@@ -6637,6 +6646,9 @@ class UpdateLineItemRequest {
6637
6646
  if (proto.amount) {
6638
6647
  m.amount = parseInt(proto.amount, 10);
6639
6648
  }
6649
+ if (proto.discounts) {
6650
+ m.discounts = proto.discounts.map(AppliedDiscount.fromProto);
6651
+ }
6640
6652
  return m;
6641
6653
  }
6642
6654
  constructor(kwargs) {
@@ -6671,6 +6683,9 @@ class UpdateLineItemRequest {
6671
6683
  if (typeof this.taxRates !== 'undefined') {
6672
6684
  toReturn['taxRates'] = this.taxRates;
6673
6685
  }
6686
+ if (typeof this.discounts !== 'undefined' && this.discounts !== null) {
6687
+ toReturn['discounts'] = 'toApiJson' in this.discounts ? this.discounts.toApiJson() : this.discounts;
6688
+ }
6674
6689
  return toReturn;
6675
6690
  }
6676
6691
  }
@@ -9809,6 +9824,9 @@ class RetailStatusResponse {
9809
9824
  if (proto.requirements) {
9810
9825
  m.requirements = RetailStatusResponseVerificationRequirements.fromProto(proto.requirements);
9811
9826
  }
9827
+ if (proto.futureRequirements) {
9828
+ m.futureRequirements = RetailStatusResponseVerificationRequirements.fromProto(proto.futureRequirements);
9829
+ }
9812
9830
  return m;
9813
9831
  }
9814
9832
  constructor(kwargs) {
@@ -9831,6 +9849,9 @@ class RetailStatusResponse {
9831
9849
  if (typeof this.disabledReason !== 'undefined') {
9832
9850
  toReturn['disabledReason'] = this.disabledReason;
9833
9851
  }
9852
+ if (typeof this.futureRequirements !== 'undefined' && this.futureRequirements !== null) {
9853
+ toReturn['futureRequirements'] = 'toApiJson' in this.futureRequirements ? this.futureRequirements.toApiJson() : this.futureRequirements;
9854
+ }
9834
9855
  return toReturn;
9835
9856
  }
9836
9857
  }
@@ -9966,6 +9987,9 @@ class RetailStatusResponseVerificationRequirements {
9966
9987
  if (proto.error) {
9967
9988
  m.error = proto.error.map(RetailStatusResponseVerificationError.fromProto);
9968
9989
  }
9990
+ if (proto.currentDeadline) {
9991
+ m.currentDeadline = new Date(proto.currentDeadline);
9992
+ }
9969
9993
  return m;
9970
9994
  }
9971
9995
  constructor(kwargs) {
@@ -9982,6 +10006,12 @@ class RetailStatusResponseVerificationRequirements {
9982
10006
  if (typeof this.error !== 'undefined' && this.error !== null) {
9983
10007
  toReturn['error'] = 'toApiJson' in this.error ? this.error.toApiJson() : this.error;
9984
10008
  }
10009
+ if (typeof this.currentDeadline !== 'undefined' && this.currentDeadline !== null) {
10010
+ toReturn['currentDeadline'] = 'toApiJson' in this.currentDeadline ? this.currentDeadline.toApiJson() : this.currentDeadline;
10011
+ }
10012
+ if (typeof this.eventuallyDue !== 'undefined') {
10013
+ toReturn['eventuallyDue'] = this.eventuallyDue;
10014
+ }
9985
10015
  return toReturn;
9986
10016
  }
9987
10017
  }