taxtank-core 0.31.3 → 0.31.4

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.
@@ -13735,6 +13735,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
13735
13735
 
13736
13736
  var SubscriptionMessagesEnum;
13737
13737
  (function (SubscriptionMessagesEnum) {
13738
+ SubscriptionMessagesEnum["PROMOCODE_ERROR"] = "This promo code can\u2019t be applied to your subscription. Please contact support.";
13738
13739
  SubscriptionMessagesEnum["SUCCEEDED"] = "Success! Payment received.";
13739
13740
  SubscriptionMessagesEnum["SUCCEEDED_FREE"] = "Success! We'll update you soon.";
13740
13741
  SubscriptionMessagesEnum["PROCESSING"] = "Payment processing. We'll update you when payment is received.";
@@ -13771,7 +13772,7 @@ class SubscriptionService extends RestService$1 {
13771
13772
  postStripeSubscription(subscription) {
13772
13773
  return this.http.post(this.apiUrl, classToPlain(subscription))
13773
13774
  .pipe(map((response) => response), catchError((error) => {
13774
- this.toastService.error(SubscriptionMessagesEnum.SUCCEEDED_FREE);
13775
+ this.toastService.error(SubscriptionMessagesEnum.PROMOCODE_ERROR);
13775
13776
  return throwError(error);
13776
13777
  }));
13777
13778
  }