digipay-utility-payment 0.0.7 → 0.0.8

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.
Binary file
@@ -782,10 +782,10 @@ class UtilitiesComponent {
782
782
  this.getProviderCategories();
783
783
  }
784
784
  getProviderCategories() {
785
- this.topupAndBillpaymentService.getTopupAndBillpaymentCategories().subscribe({
785
+ this.topupAndBillpaymentService.getTopupAndBillpaymentCategories({ is_active: true }).subscribe({
786
786
  next: (res) => {
787
787
  if (res?.success) {
788
- this.providerCategories = res?.data?.provider_category_master;
788
+ this.providerCategories = res?.data?.provider_category_master?.filter((data) => data?.is_active);
789
789
  }
790
790
  else {
791
791
  this.providerCategories = [];
@@ -3668,8 +3668,12 @@ class ViewBillsComponent {
3668
3668
  }
3669
3669
  else {
3670
3670
  this.toasterService.error(this.translationService.translate(res?.error[0]));
3671
+ this.showLoader = false;
3671
3672
  }
3672
3673
  },
3674
+ error: () => {
3675
+ this.showLoader = false;
3676
+ }
3673
3677
  });
3674
3678
  }
3675
3679
  handleBillClick(data) {
@@ -5038,7 +5042,7 @@ class TopupAndBillpaymentReviewComponent extends TransactionClass {
5038
5042
  submitPINForm() {
5039
5043
  this.otpConfirm = true;
5040
5044
  this.formErrors = {};
5041
- this.showLoader = false;
5045
+ this.showLoader = true;
5042
5046
  if (this.txnPINForm.valid) {
5043
5047
  const pin = this.txnPINForm.value.pin;
5044
5048
  if (!this.isTxnPinCreated) {
@@ -5046,6 +5050,7 @@ class TopupAndBillpaymentReviewComponent extends TransactionClass {
5046
5050
  this.txnPINForm.reset();
5047
5051
  this.hideModal("TransactionPIN");
5048
5052
  this.showModal("ConfirmTransactionPIN");
5053
+ this.showLoader = true;
5049
5054
  }
5050
5055
  else {
5051
5056
  this.verifyTransactionPin(pin);
@@ -5064,6 +5069,7 @@ class TopupAndBillpaymentReviewComponent extends TransactionClass {
5064
5069
  this.hideModal("OTPVerification");
5065
5070
  this.otpReset = true;
5066
5071
  this.createIntent();
5072
+ this.showLoader = false;
5067
5073
  }
5068
5074
  else {
5069
5075
  this.otpReset = true;
@@ -5071,6 +5077,7 @@ class TopupAndBillpaymentReviewComponent extends TransactionClass {
5071
5077
  this.inValidTxnPin = true;
5072
5078
  const apiError = res?.error?.[0] || res?.error || this.translationService.translate("LABEL_SOMETHING_WENT_WRONG");
5073
5079
  this.toasterService.error(this.translationService.translate(apiError));
5080
+ this.showLoader = false;
5074
5081
  }
5075
5082
  },
5076
5083
  error: (error) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digipay-utility-payment",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.3.0",
6
6
  "@angular/core": "^20.3.0"