@miden-npm/angular 0.0.18 → 0.0.19

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.
@@ -3,7 +3,7 @@ import { Component, InjectionToken, inject, makeEnvironmentProviders, Input, Cha
3
3
  import * as i1$1 from '@angular/common/http';
4
4
  import { provideHttpClient, withInterceptors } from '@angular/common/http';
5
5
  import * as i1 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
6
+ import { CommonModule, DatePipe } from '@angular/common';
7
7
  import * as i3 from '@angular/forms';
8
8
  import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
9
9
  import * as i2 from 'angular-imask';
@@ -393,6 +393,14 @@ const checkObjectTruthy = (obj) => {
393
393
  return false;
394
394
  return Object.values(obj).every(Boolean);
395
395
  };
396
+ const getQueryParams = (url) => {
397
+ const params = {};
398
+ const searchParams = new URL(url).searchParams;
399
+ searchParams.forEach((value, key) => {
400
+ params[key] = value;
401
+ });
402
+ return params;
403
+ };
396
404
 
397
405
  const currencySign = (currency) => {
398
406
  if (currency === 'USD')
@@ -1013,18 +1021,18 @@ class LabelInfoComponent {
1013
1021
  valueImageCustomClass = '';
1014
1022
  valueImagePosition = 'prefix';
1015
1023
  hasValueCopy = false;
1016
- value = '';
1024
+ value = null;
1017
1025
  valueCustomClass = 'text-body-2xs font-medium text-sub-copy';
1018
1026
  alignRight = false;
1019
1027
  truncateStringHandler(str, num) {
1020
1028
  return truncateString(str, num);
1021
1029
  }
1022
1030
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: LabelInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1023
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: LabelInfoComponent, isStandalone: true, selector: "base-label-info", inputs: { type: "type", label: "label", labelCustomClass: "labelCustomClass", valueImageSrc: "valueImageSrc", valueImageCustomClass: "valueImageCustomClass", valueImagePosition: "valueImagePosition", hasValueCopy: "hasValueCopy", value: "value", valueCustomClass: "valueCustomClass", alignRight: "alignRight" }, ngImport: i0, template: "@if (type === 'vertical') {\n <div class=\"flex flex-col gap-1\" [ngClass]=\"{ 'text-right items-end': alignRight }\">\n <p [ngClass]=\"labelCustomClass\">{{ label.toUpperCase() }}</p>\n <div class=\"flex items-center gap-1\">\n @if (valueImageSrc && valueImagePosition === 'prefix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n\n @if (!hasValueCopy) {\n <p [ngClass]=\"valueCustomClass\">\n {{ value }}\n </p>\n } @else {\n <p [ngClass]=\"valueCustomClass\" class=\"truncate\">\n {{ truncateStringHandler(value, 40) }}\n </p>\n }\n\n @if (hasValueCopy) {\n <base-copy [copyText]=\"value\" color=\"#9DBFDE\"></base-copy>\n }\n\n @if (valueImageSrc && valueImagePosition === 'suffix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n </div>\n </div>\n} @else {\n <div class=\"flex items-center justify-between\">\n <p [ngClass]=\"labelCustomClass\">{{ label.toUpperCase() }}</p>\n <div class=\"flex items-center gap-1\">\n @if (valueImageSrc && valueImagePosition === 'prefix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n <p [ngClass]=\"valueCustomClass\">\n {{ value }}\n </p>\n\n @if (hasValueCopy) {\n <base-copy [copyText]=\"value\" color=\"#9DBFDE\"></base-copy>\n }\n\n @if (valueImageSrc && valueImagePosition === 'suffix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n </div>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CopyComponent, selector: "base-copy", inputs: ["copyText", "color"] }, { kind: "component", type: ImageComponent, selector: "base-image", inputs: ["src", "alt", "isFullWidth", "width", "height", "customClass"], outputs: ["onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1031
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.2.1", type: LabelInfoComponent, isStandalone: true, selector: "base-label-info", inputs: { type: "type", label: "label", labelCustomClass: "labelCustomClass", valueImageSrc: "valueImageSrc", valueImageCustomClass: "valueImageCustomClass", valueImagePosition: "valueImagePosition", hasValueCopy: "hasValueCopy", value: "value", valueCustomClass: "valueCustomClass", alignRight: "alignRight" }, ngImport: i0, template: "@if (type === 'vertical') {\n <div class=\"flex flex-col gap-1\" [ngClass]=\"{ 'text-right items-end': alignRight }\">\n <p [ngClass]=\"labelCustomClass\">{{ label.toUpperCase() }}</p>\n <div class=\"flex items-center gap-1\">\n @if (valueImageSrc && valueImagePosition === 'prefix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value ?? '-'\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n\n @if (!hasValueCopy) {\n <p [ngClass]=\"valueCustomClass\">\n {{ value }}\n </p>\n } @else {\n <p [ngClass]=\"valueCustomClass\" class=\"truncate\">\n {{ truncateStringHandler(value ?? '-', 40) }}\n </p>\n }\n\n @if (hasValueCopy) {\n <base-copy [copyText]=\"value ?? '-'\" color=\"#9DBFDE\"></base-copy>\n }\n\n @if (valueImageSrc && valueImagePosition === 'suffix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value ?? '-'\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n </div>\n </div>\n} @else {\n <div class=\"flex items-center justify-between\">\n <p [ngClass]=\"labelCustomClass\">{{ label.toUpperCase() }}</p>\n <div class=\"flex items-center gap-1\">\n @if (valueImageSrc && valueImagePosition === 'prefix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value ?? '-'\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n <p [ngClass]=\"valueCustomClass\">\n {{ value }}\n </p>\n\n @if (hasValueCopy) {\n <base-copy [copyText]=\"value ?? '-'\" color=\"#9DBFDE\"></base-copy>\n }\n\n @if (valueImageSrc && valueImagePosition === 'suffix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value ?? '-'\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n </div>\n </div>\n}\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: CopyComponent, selector: "base-copy", inputs: ["copyText", "color"] }, { kind: "component", type: ImageComponent, selector: "base-image", inputs: ["src", "alt", "isFullWidth", "width", "height", "customClass"], outputs: ["onClick"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1024
1032
  }
1025
1033
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: LabelInfoComponent, decorators: [{
1026
1034
  type: Component,
1027
- args: [{ selector: 'base-label-info', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, CopyComponent, ImageComponent], template: "@if (type === 'vertical') {\n <div class=\"flex flex-col gap-1\" [ngClass]=\"{ 'text-right items-end': alignRight }\">\n <p [ngClass]=\"labelCustomClass\">{{ label.toUpperCase() }}</p>\n <div class=\"flex items-center gap-1\">\n @if (valueImageSrc && valueImagePosition === 'prefix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n\n @if (!hasValueCopy) {\n <p [ngClass]=\"valueCustomClass\">\n {{ value }}\n </p>\n } @else {\n <p [ngClass]=\"valueCustomClass\" class=\"truncate\">\n {{ truncateStringHandler(value, 40) }}\n </p>\n }\n\n @if (hasValueCopy) {\n <base-copy [copyText]=\"value\" color=\"#9DBFDE\"></base-copy>\n }\n\n @if (valueImageSrc && valueImagePosition === 'suffix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n </div>\n </div>\n} @else {\n <div class=\"flex items-center justify-between\">\n <p [ngClass]=\"labelCustomClass\">{{ label.toUpperCase() }}</p>\n <div class=\"flex items-center gap-1\">\n @if (valueImageSrc && valueImagePosition === 'prefix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n <p [ngClass]=\"valueCustomClass\">\n {{ value }}\n </p>\n\n @if (hasValueCopy) {\n <base-copy [copyText]=\"value\" color=\"#9DBFDE\"></base-copy>\n }\n\n @if (valueImageSrc && valueImagePosition === 'suffix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n </div>\n </div>\n}\n" }]
1035
+ args: [{ selector: 'base-label-info', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [CommonModule, CopyComponent, ImageComponent], template: "@if (type === 'vertical') {\n <div class=\"flex flex-col gap-1\" [ngClass]=\"{ 'text-right items-end': alignRight }\">\n <p [ngClass]=\"labelCustomClass\">{{ label.toUpperCase() }}</p>\n <div class=\"flex items-center gap-1\">\n @if (valueImageSrc && valueImagePosition === 'prefix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value ?? '-'\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n\n @if (!hasValueCopy) {\n <p [ngClass]=\"valueCustomClass\">\n {{ value }}\n </p>\n } @else {\n <p [ngClass]=\"valueCustomClass\" class=\"truncate\">\n {{ truncateStringHandler(value ?? '-', 40) }}\n </p>\n }\n\n @if (hasValueCopy) {\n <base-copy [copyText]=\"value ?? '-'\" color=\"#9DBFDE\"></base-copy>\n }\n\n @if (valueImageSrc && valueImagePosition === 'suffix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value ?? '-'\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n </div>\n </div>\n} @else {\n <div class=\"flex items-center justify-between\">\n <p [ngClass]=\"labelCustomClass\">{{ label.toUpperCase() }}</p>\n <div class=\"flex items-center gap-1\">\n @if (valueImageSrc && valueImagePosition === 'prefix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value ?? '-'\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n <p [ngClass]=\"valueCustomClass\">\n {{ value }}\n </p>\n\n @if (hasValueCopy) {\n <base-copy [copyText]=\"value ?? '-'\" color=\"#9DBFDE\"></base-copy>\n }\n\n @if (valueImageSrc && valueImagePosition === 'suffix') {\n <base-image\n [src]=\"valueImageSrc\"\n [alt]=\"value ?? '-'\"\n [width]=\"22\"\n [customClass]=\"valueImageCustomClass\"\n ></base-image>\n }\n </div>\n </div>\n}\n" }]
1028
1036
  }], propDecorators: { type: [{
1029
1037
  type: Input
1030
1038
  }], label: [{
@@ -1048,13 +1056,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImpor
1048
1056
  }] } });
1049
1057
 
1050
1058
  class SuccessComponent {
1059
+ successObject = {
1060
+ paymentDate: '',
1061
+ paymentId: '',
1062
+ paymentStatus: '',
1063
+ };
1064
+ amount = 0;
1065
+ currency = '';
1066
+ redirectUrl = '';
1067
+ get formatAmountHandler() {
1068
+ return formatAmount(this.amount, this.currency);
1069
+ }
1070
+ goToRedirectUrl() {
1071
+ window.open(this.redirectUrl, '_self', 'noopener,noreferrer');
1072
+ }
1051
1073
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SuccessComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1052
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: SuccessComponent, isStandalone: true, selector: "base-success", ngImport: i0, template: "<div class=\"flex flex-col gap-8 p-16\">\n <div class=\"flex flex-col gap-8\">\n <div class=\"flex flex-col gap-8\">\n <icon-check-circle color=\"#F47A1F\" class=\"mx-auto\"></icon-check-circle>\n <div class=\"flex flex-col text-center\" style=\"gap: 2px\">\n <p class=\"text-heading-text font-medium text-header-2xl\">\u20A62,500.00</p>\n <p class=\"text-sub-copy font-regular text-body-3xs\">Has been paid successfully</p>\n </div>\n </div>\n\n <div class=\"flex flex-col\">\n <div class=\"py-4 border-b border-grey-100\">\n <base-label-info\n type=\"horizontal\"\n label=\"Order ID\"\n value=\"9900009000-8890-8829hd7\"\n ></base-label-info>\n </div>\n <div class=\"py-4\">\n <base-label-info\n type=\"horizontal\"\n label=\"Payment date\"\n value=\"July 24, 2025\"\n ></base-label-info>\n </div>\n </div>\n </div>\n\n <div class=\"mx-auto\" style=\"width: 80%;\">\n <base-button\n label=\"Return to Merchant Website\"\n type=\"secondary\"\n customClass=\"w-full\"\n ></base-button>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: LabelInfoComponent, selector: "base-label-info", inputs: ["type", "label", "labelCustomClass", "valueImageSrc", "valueImageCustomClass", "valueImagePosition", "hasValueCopy", "value", "valueCustomClass", "alignRight"] }, { kind: "component", type: ButtonComponent, selector: "base-button", inputs: ["label", "type", "size", "paddingClassX", "disabled", "loading", "customClass"], outputs: ["onClick"] }, { kind: "component", type: IconCheckCircleComponent, selector: "icon-check-circle", inputs: ["color", "width", "height"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1074
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.2.1", type: SuccessComponent, isStandalone: true, selector: "base-success", inputs: { successObject: "successObject", amount: "amount", currency: "currency", redirectUrl: "redirectUrl" }, ngImport: i0, template: "<div class=\"flex flex-col gap-8 p-16\">\n <div class=\"flex flex-col gap-8\">\n <div class=\"flex flex-col gap-8\">\n <icon-check-circle color=\"#F47A1F\" class=\"mx-auto\"></icon-check-circle>\n <div class=\"flex flex-col text-center\" style=\"gap: 2px\">\n <p class=\"text-heading-text font-medium text-header-2xl\">{{ formatAmountHandler }}</p>\n <p class=\"text-sub-copy font-regular text-body-3xs\">Has been paid successfully</p>\n </div>\n </div>\n\n <div class=\"flex flex-col\">\n <div class=\"py-4 border-b border-grey-100\">\n <base-label-info\n type=\"horizontal\"\n label=\"Order ID\"\n [value]=\"successObject.paymentId\"\n ></base-label-info>\n </div>\n <div class=\"py-4\">\n <base-label-info\n type=\"horizontal\"\n label=\"Payment date\"\n [value]=\"successObject.paymentDate | date\"\n ></base-label-info>\n </div>\n </div>\n </div>\n\n <div class=\"mx-auto\" style=\"width: 80%\">\n <base-button\n label=\"Return to Merchant Website\"\n type=\"secondary\"\n customClass=\"w-full\"\n (onClick)=\"goToRedirectUrl()\"\n ></base-button>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: LabelInfoComponent, selector: "base-label-info", inputs: ["type", "label", "labelCustomClass", "valueImageSrc", "valueImageCustomClass", "valueImagePosition", "hasValueCopy", "value", "valueCustomClass", "alignRight"] }, { kind: "component", type: ButtonComponent, selector: "base-button", inputs: ["label", "type", "size", "paddingClassX", "disabled", "loading", "customClass"], outputs: ["onClick"] }, { kind: "component", type: IconCheckCircleComponent, selector: "icon-check-circle", inputs: ["color", "width", "height"] }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1053
1075
  }
1054
1076
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: SuccessComponent, decorators: [{
1055
1077
  type: Component,
1056
- args: [{ selector: 'base-success', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [LabelInfoComponent, ButtonComponent, IconCheckCircleComponent], template: "<div class=\"flex flex-col gap-8 p-16\">\n <div class=\"flex flex-col gap-8\">\n <div class=\"flex flex-col gap-8\">\n <icon-check-circle color=\"#F47A1F\" class=\"mx-auto\"></icon-check-circle>\n <div class=\"flex flex-col text-center\" style=\"gap: 2px\">\n <p class=\"text-heading-text font-medium text-header-2xl\">\u20A62,500.00</p>\n <p class=\"text-sub-copy font-regular text-body-3xs\">Has been paid successfully</p>\n </div>\n </div>\n\n <div class=\"flex flex-col\">\n <div class=\"py-4 border-b border-grey-100\">\n <base-label-info\n type=\"horizontal\"\n label=\"Order ID\"\n value=\"9900009000-8890-8829hd7\"\n ></base-label-info>\n </div>\n <div class=\"py-4\">\n <base-label-info\n type=\"horizontal\"\n label=\"Payment date\"\n value=\"July 24, 2025\"\n ></base-label-info>\n </div>\n </div>\n </div>\n\n <div class=\"mx-auto\" style=\"width: 80%;\">\n <base-button\n label=\"Return to Merchant Website\"\n type=\"secondary\"\n customClass=\"w-full\"\n ></base-button>\n </div>\n</div>\n" }]
1057
- }] });
1078
+ args: [{ selector: 'base-success', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [LabelInfoComponent, ButtonComponent, IconCheckCircleComponent, DatePipe], template: "<div class=\"flex flex-col gap-8 p-16\">\n <div class=\"flex flex-col gap-8\">\n <div class=\"flex flex-col gap-8\">\n <icon-check-circle color=\"#F47A1F\" class=\"mx-auto\"></icon-check-circle>\n <div class=\"flex flex-col text-center\" style=\"gap: 2px\">\n <p class=\"text-heading-text font-medium text-header-2xl\">{{ formatAmountHandler }}</p>\n <p class=\"text-sub-copy font-regular text-body-3xs\">Has been paid successfully</p>\n </div>\n </div>\n\n <div class=\"flex flex-col\">\n <div class=\"py-4 border-b border-grey-100\">\n <base-label-info\n type=\"horizontal\"\n label=\"Order ID\"\n [value]=\"successObject.paymentId\"\n ></base-label-info>\n </div>\n <div class=\"py-4\">\n <base-label-info\n type=\"horizontal\"\n label=\"Payment date\"\n [value]=\"successObject.paymentDate | date\"\n ></base-label-info>\n </div>\n </div>\n </div>\n\n <div class=\"mx-auto\" style=\"width: 80%\">\n <base-button\n label=\"Return to Merchant Website\"\n type=\"secondary\"\n customClass=\"w-full\"\n (onClick)=\"goToRedirectUrl()\"\n ></base-button>\n </div>\n</div>\n" }]
1079
+ }], propDecorators: { successObject: [{
1080
+ type: Input
1081
+ }], amount: [{
1082
+ type: Input
1083
+ }], currency: [{
1084
+ type: Input
1085
+ }], redirectUrl: [{
1086
+ type: Input
1087
+ }] } });
1058
1088
 
1059
1089
  class BackComponent {
1060
1090
  back = new EventEmitter();
@@ -1138,7 +1168,7 @@ class CheckoutService {
1138
1168
  }
1139
1169
  generatePaymentAccount(environment, { merchantId, ...rest }) {
1140
1170
  const baseUrl = getBaseUrl(environment);
1141
- return this.http.post(`${baseUrl}/checkout/generate-payment-account`, rest, {
1171
+ return this.http.post(`${baseUrl}/api/v1/checkout/generate-payment-account`, rest, {
1142
1172
  headers: {
1143
1173
  merchantId,
1144
1174
  },
@@ -1146,7 +1176,7 @@ class CheckoutService {
1146
1176
  }
1147
1177
  authorizeCardPayment(environment, { merchantId, ...rest }) {
1148
1178
  const baseUrl = getBaseUrl(environment);
1149
- return this.http.post(`${baseUrl}/checkout/authorize-card-3ds-payment`, rest, {
1179
+ return this.http.post(`${baseUrl}/api/v1/checkout/authorize-card-3ds-payment`, rest, {
1150
1180
  headers: {
1151
1181
  merchantId,
1152
1182
  },
@@ -1154,11 +1184,11 @@ class CheckoutService {
1154
1184
  }
1155
1185
  getPaymentReferenceDetails(environment, paymentReference) {
1156
1186
  const baseUrl = getBaseUrl(environment);
1157
- return this.http.get(`${baseUrl}/checkout/details/${paymentReference}`);
1187
+ return this.http.get(`${baseUrl}/api/v1/checkout/details/${paymentReference}`);
1158
1188
  }
1159
1189
  generateStableCoinAddress(environment, { merchantId, ...rest }) {
1160
1190
  const baseUrl = getBaseUrl(environment);
1161
- return this.http.post(`${baseUrl}/checkout/generate-payment-walletaddress`, rest, {
1191
+ return this.http.post(`${baseUrl}/api/v1/checkout/generate-payment-walletaddress`, rest, {
1162
1192
  headers: {
1163
1193
  merchantId,
1164
1194
  },
@@ -1197,11 +1227,11 @@ class ResourceService {
1197
1227
  }
1198
1228
  getStableCoins(environment) {
1199
1229
  const baseUrl = getBaseUrl(environment);
1200
- return this.http.get(`${baseUrl}/checkout/stable-coin`);
1230
+ return this.http.get(`${baseUrl}/api/v1/checkout/stable-coin`);
1201
1231
  }
1202
1232
  getStableCoinNetworks(environment, stableCoin) {
1203
1233
  const baseUrl = getBaseUrl(environment);
1204
- return this.http.get(`${baseUrl}/checkout/networks/${stableCoin}`);
1234
+ return this.http.get(`${baseUrl}/api/v1/checkout/networks/${stableCoin}`);
1205
1235
  }
1206
1236
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ResourceService, deps: [{ token: i1$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
1207
1237
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ResourceService, providedIn: 'root' });
@@ -1264,5 +1294,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImpor
1264
1294
  * Generated bundle index. Do not edit.
1265
1295
  */
1266
1296
 
1267
- export { BZP_CONFIG, BZP_CORRELATION_ID, BackComponent, ButtonComponent, CardComponent, CardSchemes, CheckoutService, CopyComponent, CurrencyAmountComponent, EncryptService, HintComponent, IconArrowSwapComponent, IconBuzapayIconComponent, IconCheckCircleComponent, IconChevronDownComponent, IconChevronLeftComponent, IconChevronUpComponent, IconCopySuccessComponent, IconLoaderComponent, IconUsdcComponent, IconUsdtComponent, ImageComponent, InputComponent, InputErrorComponent, LabelInfoComponent, MidenPGAngular, RadioGroupComponent, ResourceService, SelectComponent, SuccessComponent, apiBaseUrl, cardType, checkObjectTruthy, currencySign, detect, formatAmount, getBaseUrl, getValidationErrorMessage, provideMidenPG, restrictToNumericKeys, truncateString, urlValidator };
1297
+ export { BZP_CONFIG, BZP_CORRELATION_ID, BackComponent, ButtonComponent, CardComponent, CardSchemes, CheckoutService, CopyComponent, CurrencyAmountComponent, EncryptService, HintComponent, IconArrowSwapComponent, IconBuzapayIconComponent, IconCheckCircleComponent, IconChevronDownComponent, IconChevronLeftComponent, IconChevronUpComponent, IconCopySuccessComponent, IconLoaderComponent, IconUsdcComponent, IconUsdtComponent, ImageComponent, InputComponent, InputErrorComponent, LabelInfoComponent, MidenPGAngular, RadioGroupComponent, ResourceService, SelectComponent, SuccessComponent, apiBaseUrl, cardType, checkObjectTruthy, currencySign, detect, formatAmount, getBaseUrl, getQueryParams, getValidationErrorMessage, provideMidenPG, restrictToNumericKeys, truncateString, urlValidator };
1268
1298
  //# sourceMappingURL=miden-npm-angular.mjs.map