@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { EventEmitter, OnInit, ChangeDetectorRef, OnDestroy, AfterViewInit, Renderer2, ElementRef } from '@angular/core';
|
|
3
|
-
import { IPaymentObject, ISelectOption, ResourceService, CheckoutService, EncryptService, IPaymentAccountResponse, IPaymentReferenceDetail, IGenerateStableCoinAddress, IGenerateStableCoinAddressResponse } from '@miden-npm/angular';
|
|
3
|
+
import { IPaymentObject, ISuccessObject, ISelectOption, ResourceService, CheckoutService, EncryptService, ICountry, IPaymentAccountResponse, IPaymentReferenceDetail, IGenerateStableCoinAddress, IGenerateStableCoinAddressResponse } from '@miden-npm/angular';
|
|
4
4
|
import { FormGroup, FormControl } from '@angular/forms';
|
|
5
5
|
|
|
6
6
|
interface CheckoutIframeStyle {
|
|
@@ -33,14 +33,15 @@ declare class CheckoutCardComponent {
|
|
|
33
33
|
field?: string;
|
|
34
34
|
}>;
|
|
35
35
|
tokenize: EventEmitter<TokenizeResult>;
|
|
36
|
-
|
|
36
|
+
successObject: ISuccessObject;
|
|
37
|
+
checkoutState: 'SUCCESS' | 'PENDING' | 'USED';
|
|
37
38
|
countryOptions: ISelectOption[];
|
|
38
39
|
paymentTypeOptions: ISelectOption[];
|
|
39
40
|
paymentType: string;
|
|
40
41
|
get filteredPaymentTypeOptions(): ISelectOption[];
|
|
41
42
|
get formatAmountHandler(): string;
|
|
42
43
|
paymentTypeHandler(event: string): void;
|
|
43
|
-
|
|
44
|
+
setSuccess(event: ISuccessObject): void;
|
|
44
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutCardComponent, never>;
|
|
45
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<CheckoutCardComponent, "bzp-checkout-card", never, { "options": { "alias": "options"; "required": false; }; "secretKey": { "alias": "secretKey"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, { "ready": "ready"; "validityChange": "validityChange"; "tokenize": "tokenize"; }, never, never, true, never>;
|
|
46
47
|
}
|
|
@@ -54,7 +55,7 @@ declare class PayByCardComponent implements OnInit {
|
|
|
54
55
|
secretKey: string;
|
|
55
56
|
environment: string;
|
|
56
57
|
paymentObject: IPaymentObject;
|
|
57
|
-
paymentAuthorized: EventEmitter<
|
|
58
|
+
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
58
59
|
loading: boolean;
|
|
59
60
|
loadingCountries: boolean;
|
|
60
61
|
loadingStates: boolean;
|
|
@@ -62,6 +63,7 @@ declare class PayByCardComponent implements OnInit {
|
|
|
62
63
|
cardType: string;
|
|
63
64
|
message: string;
|
|
64
65
|
transactionReference: string;
|
|
66
|
+
rawCountries: ICountry[];
|
|
65
67
|
countries: ISelectOption[];
|
|
66
68
|
countryStates: ISelectOption[];
|
|
67
69
|
formIndex: number;
|
|
@@ -84,10 +86,11 @@ declare class PayByCardComponent implements OnInit {
|
|
|
84
86
|
cardPin: FormControl<string | null>;
|
|
85
87
|
}>;
|
|
86
88
|
getError(formKey: string, controlName: string, label?: string): string | null;
|
|
89
|
+
get formatAmountHandler(): string;
|
|
87
90
|
cardNumberInputHandler(event: string): void;
|
|
88
91
|
updatePinValidation(): void;
|
|
89
92
|
getAllCountries(): Promise<void>;
|
|
90
|
-
getCountryStates(
|
|
93
|
+
getCountryStates(countryIso2: string): Promise<void>;
|
|
91
94
|
generatePaymentLinkHandler(): Promise<void | string>;
|
|
92
95
|
proceedHandler(): Promise<void>;
|
|
93
96
|
ngOnInit(): Promise<void>;
|
|
@@ -102,8 +105,7 @@ declare class PayByTransferComponent implements OnInit, OnDestroy {
|
|
|
102
105
|
secretKey: string;
|
|
103
106
|
environment: string;
|
|
104
107
|
paymentObject: IPaymentObject;
|
|
105
|
-
paymentAuthorized: EventEmitter<
|
|
106
|
-
paymentUsed: EventEmitter<string>;
|
|
108
|
+
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
107
109
|
message: string;
|
|
108
110
|
generatingLink: boolean;
|
|
109
111
|
isMakingPayment: boolean;
|
|
@@ -128,10 +130,10 @@ declare class PayByTransferComponent implements OnInit, OnDestroy {
|
|
|
128
130
|
generatePaymentLinkHandler(): Promise<void | string>;
|
|
129
131
|
payHandler(): Promise<void>;
|
|
130
132
|
getReferenceDetails(): Promise<void>;
|
|
131
|
-
ngOnInit(): void
|
|
133
|
+
ngOnInit(): Promise<void>;
|
|
132
134
|
ngOnDestroy(): void;
|
|
133
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<PayByTransferComponent, never>;
|
|
134
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PayByTransferComponent, "pay-by-transfer", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, { "paymentAuthorized": "paymentAuthorized";
|
|
136
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PayByTransferComponent, "pay-by-transfer", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, { "paymentAuthorized": "paymentAuthorized"; }, never, never, true, never>;
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
declare class PayByStableCoinComponent implements OnInit {
|
|
@@ -142,8 +144,7 @@ declare class PayByStableCoinComponent implements OnInit {
|
|
|
142
144
|
secretKey: string;
|
|
143
145
|
environment: string;
|
|
144
146
|
paymentObject: IPaymentObject;
|
|
145
|
-
paymentAuthorized: EventEmitter<
|
|
146
|
-
paymentUsed: EventEmitter<string>;
|
|
147
|
+
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
147
148
|
message: string;
|
|
148
149
|
transactionReference: string;
|
|
149
150
|
paymentReferenceStatus: string;
|
|
@@ -164,15 +165,17 @@ declare class PayByStableCoinComponent implements OnInit {
|
|
|
164
165
|
network: FormControl<string | null>;
|
|
165
166
|
}>;
|
|
166
167
|
getError(controlName: string, label?: string): string | null;
|
|
168
|
+
get formatAmountHandler(): string;
|
|
169
|
+
get amountPlusNetworkFee(): number;
|
|
167
170
|
generatePaymentLinkHandler(): Promise<void | string>;
|
|
168
|
-
generateAddress():
|
|
171
|
+
generateAddress(): void;
|
|
169
172
|
payHandler(): Promise<void>;
|
|
170
173
|
getStableCoins(): Promise<void>;
|
|
171
174
|
getStableCoinNetworks(): Promise<void>;
|
|
172
175
|
confirmPaymentHandler(): Promise<void>;
|
|
173
176
|
ngOnInit(): Promise<void>;
|
|
174
177
|
static ɵfac: i0.ɵɵFactoryDeclaration<PayByStableCoinComponent, never>;
|
|
175
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PayByStableCoinComponent, "pay-by-stable-coin", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, { "paymentAuthorized": "paymentAuthorized";
|
|
178
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PayByStableCoinComponent, "pay-by-stable-coin", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, { "paymentAuthorized": "paymentAuthorized"; }, never, never, true, never>;
|
|
176
179
|
}
|
|
177
180
|
|
|
178
181
|
interface IIframeStyle {
|