@vendasta/billing 7.0.0 → 8.0.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.
@@ -10635,6 +10635,12 @@
10635
10635
  if (proto.frequency) {
10636
10636
  m.frequency = enumStringToValue$w(exports.GeneratedFrequency, proto.frequency);
10637
10637
  }
10638
+ if (proto.retailAmount) {
10639
+ m.retailAmount = parseInt(proto.retailAmount, 10);
10640
+ }
10641
+ if (proto.retailFrequency) {
10642
+ m.retailFrequency = enumStringToValue$w(exports.GeneratedFrequency, proto.retailFrequency);
10643
+ }
10638
10644
  return m;
10639
10645
  };
10640
10646
  CreateSubscriptionRequest.prototype.toApiJson = function () {
@@ -10675,6 +10681,12 @@
10675
10681
  if (typeof this.frequency !== 'undefined') {
10676
10682
  toReturn['frequency'] = this.frequency;
10677
10683
  }
10684
+ if (typeof this.retailAmount !== 'undefined') {
10685
+ toReturn['retailAmount'] = this.retailAmount;
10686
+ }
10687
+ if (typeof this.retailFrequency !== 'undefined') {
10688
+ toReturn['retailFrequency'] = this.retailFrequency;
10689
+ }
10678
10690
  return toReturn;
10679
10691
  };
10680
10692
  return CreateSubscriptionRequest;
@@ -10848,6 +10860,12 @@
10848
10860
  if (proto.frequency) {
10849
10861
  m.frequency = enumStringToValue$w(exports.GeneratedFrequency, proto.frequency);
10850
10862
  }
10863
+ if (proto.retailAmount) {
10864
+ m.retailAmount = parseInt(proto.retailAmount, 10);
10865
+ }
10866
+ if (proto.retailFrequency) {
10867
+ m.retailFrequency = enumStringToValue$w(exports.GeneratedFrequency, proto.retailFrequency);
10868
+ }
10851
10869
  return m;
10852
10870
  };
10853
10871
  Subscription.prototype.toApiJson = function () {
@@ -10888,6 +10906,12 @@
10888
10906
  if (typeof this.frequency !== 'undefined') {
10889
10907
  toReturn['frequency'] = this.frequency;
10890
10908
  }
10909
+ if (typeof this.retailAmount !== 'undefined') {
10910
+ toReturn['retailAmount'] = this.retailAmount;
10911
+ }
10912
+ if (typeof this.retailFrequency !== 'undefined') {
10913
+ toReturn['retailFrequency'] = this.retailFrequency;
10914
+ }
10891
10915
  return toReturn;
10892
10916
  };
10893
10917
  return Subscription;
@@ -17115,7 +17139,7 @@
17115
17139
  function InvoiceTemplateService(invoiceTemplateApiService) {
17116
17140
  this.invoiceTemplateApiService = invoiceTemplateApiService;
17117
17141
  }
17118
- InvoiceTemplateService.prototype.upsert = function (merchantId, customerId, items, defaultTaxRates, currencyCode) {
17142
+ InvoiceTemplateService.prototype.upsert = function (merchantId, customerId, items, defaultTaxRates) {
17119
17143
  var itemsRequest = (items || []).map(function (item) {
17120
17144
  var appliedDiscounts = (item.appliedDiscounts || []).map(function (ad) { return appliedDiscountToApi(ad); });
17121
17145
  return new UpsertInvoiceTemplateRequestInvoiceTemplateItemRequest({
@@ -17133,7 +17157,6 @@
17133
17157
  customerId: customerId,
17134
17158
  items: itemsRequest || [],
17135
17159
  defaultTaxRates: defaultTaxRates,
17136
- currencyCode: currencyCode
17137
17160
  });
17138
17161
  return this.invoiceTemplateApiService.upsert(req).pipe(operators.map(function (resp) { return convertApiInvoiceTemplate(resp === null || resp === void 0 ? void 0 : resp.invoiceTemplate); }));
17139
17162
  };