@miden-npm/angular 0.0.18 → 0.0.20
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.
- package/buzapay-checkout/index.d.ts +16 -13
- package/fesm2022/miden-npm-angular-buzapay-checkout.mjs +138 -56
- package/fesm2022/miden-npm-angular-buzapay-checkout.mjs.map +1 -1
- package/fesm2022/miden-npm-angular.mjs +46 -14
- package/fesm2022/miden-npm-angular.mjs.map +1 -1
- package/index.d.ts +136 -115
- package/package.json +1 -1
- package/styles.css +1 -1
|
@@ -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\"
|
|
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\"
|
|
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();
|
|
@@ -1119,6 +1149,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImpor
|
|
|
1119
1149
|
type: Input
|
|
1120
1150
|
}] } });
|
|
1121
1151
|
|
|
1152
|
+
;
|
|
1153
|
+
|
|
1122
1154
|
class CheckoutService {
|
|
1123
1155
|
http;
|
|
1124
1156
|
constructor(http) {
|
|
@@ -1138,7 +1170,7 @@ class CheckoutService {
|
|
|
1138
1170
|
}
|
|
1139
1171
|
generatePaymentAccount(environment, { merchantId, ...rest }) {
|
|
1140
1172
|
const baseUrl = getBaseUrl(environment);
|
|
1141
|
-
return this.http.post(`${baseUrl}/checkout/generate-payment-account`, rest, {
|
|
1173
|
+
return this.http.post(`${baseUrl}/api/v1/checkout/generate-payment-account`, rest, {
|
|
1142
1174
|
headers: {
|
|
1143
1175
|
merchantId,
|
|
1144
1176
|
},
|
|
@@ -1146,7 +1178,7 @@ class CheckoutService {
|
|
|
1146
1178
|
}
|
|
1147
1179
|
authorizeCardPayment(environment, { merchantId, ...rest }) {
|
|
1148
1180
|
const baseUrl = getBaseUrl(environment);
|
|
1149
|
-
return this.http.post(`${baseUrl}/checkout/authorize-card-3ds-payment`, rest, {
|
|
1181
|
+
return this.http.post(`${baseUrl}/api/v1/checkout/authorize-card-3ds-payment`, rest, {
|
|
1150
1182
|
headers: {
|
|
1151
1183
|
merchantId,
|
|
1152
1184
|
},
|
|
@@ -1154,11 +1186,11 @@ class CheckoutService {
|
|
|
1154
1186
|
}
|
|
1155
1187
|
getPaymentReferenceDetails(environment, paymentReference) {
|
|
1156
1188
|
const baseUrl = getBaseUrl(environment);
|
|
1157
|
-
return this.http.get(`${baseUrl}/checkout/details/${paymentReference}`);
|
|
1189
|
+
return this.http.get(`${baseUrl}/api/v1/checkout/details/${paymentReference}`);
|
|
1158
1190
|
}
|
|
1159
1191
|
generateStableCoinAddress(environment, { merchantId, ...rest }) {
|
|
1160
1192
|
const baseUrl = getBaseUrl(environment);
|
|
1161
|
-
return this.http.post(`${baseUrl}/checkout/generate-payment-walletaddress`, rest, {
|
|
1193
|
+
return this.http.post(`${baseUrl}/api/v1/checkout/generate-payment-walletaddress`, rest, {
|
|
1162
1194
|
headers: {
|
|
1163
1195
|
merchantId,
|
|
1164
1196
|
},
|
|
@@ -1197,11 +1229,11 @@ class ResourceService {
|
|
|
1197
1229
|
}
|
|
1198
1230
|
getStableCoins(environment) {
|
|
1199
1231
|
const baseUrl = getBaseUrl(environment);
|
|
1200
|
-
return this.http.get(`${baseUrl}/checkout/stable-coin`);
|
|
1232
|
+
return this.http.get(`${baseUrl}/api/v1/checkout/stable-coin`);
|
|
1201
1233
|
}
|
|
1202
1234
|
getStableCoinNetworks(environment, stableCoin) {
|
|
1203
1235
|
const baseUrl = getBaseUrl(environment);
|
|
1204
|
-
return this.http.get(`${baseUrl}/checkout/networks/${stableCoin}`);
|
|
1236
|
+
return this.http.get(`${baseUrl}/api/v1/checkout/networks/${stableCoin}`);
|
|
1205
1237
|
}
|
|
1206
1238
|
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
1239
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.1", ngImport: i0, type: ResourceService, providedIn: 'root' });
|
|
@@ -1264,5 +1296,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.1", ngImpor
|
|
|
1264
1296
|
* Generated bundle index. Do not edit.
|
|
1265
1297
|
*/
|
|
1266
1298
|
|
|
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 };
|
|
1299
|
+
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
1300
|
//# sourceMappingURL=miden-npm-angular.mjs.map
|