@miden-npm/angular 0.0.37 → 2.0.0
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 +12 -139
- package/fesm2022/miden-npm-angular-buzapay-checkout.mjs +44 -805
- package/fesm2022/miden-npm-angular-buzapay-checkout.mjs.map +1 -1
- package/fesm2022/miden-npm-angular-miden-checkout.mjs +328 -0
- package/fesm2022/miden-npm-angular-miden-checkout.mjs.map +1 -0
- package/fesm2022/miden-npm-angular.mjs +1119 -82
- package/fesm2022/miden-npm-angular.mjs.map +1 -1
- package/index.d.ts +242 -28
- package/miden-checkout/index.d.ts +110 -0
- package/package.json +5 -1
- package/styles.css +1 -1
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter,
|
|
3
|
-
import { IPaymentObject, ISuccessObject,
|
|
4
|
-
import { FormGroup, FormControl } from '@angular/forms';
|
|
2
|
+
import { EventEmitter, AfterViewInit, Renderer2, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
3
|
+
import { IPaymentObject, ISuccessObject, IErrorObject, ISelectOption, CheckoutService } from '@miden-npm/angular';
|
|
5
4
|
|
|
6
5
|
interface CheckoutIframeStyle {
|
|
7
6
|
[cssProp: string]: string | number;
|
|
@@ -33,6 +32,8 @@ declare class CheckoutCardComponent {
|
|
|
33
32
|
field?: string;
|
|
34
33
|
}>;
|
|
35
34
|
tokenize: EventEmitter<TokenizeResult>;
|
|
35
|
+
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
36
|
+
onError: EventEmitter<IErrorObject>;
|
|
36
37
|
successObject: ISuccessObject;
|
|
37
38
|
checkoutState: 'SUCCESS' | 'PENDING' | 'USED';
|
|
38
39
|
countryOptions: ISelectOption[];
|
|
@@ -42,140 +43,9 @@ declare class CheckoutCardComponent {
|
|
|
42
43
|
get formatAmountHandler(): string;
|
|
43
44
|
paymentTypeHandler(event: string): void;
|
|
44
45
|
setSuccess(event: ISuccessObject): void;
|
|
46
|
+
onErrorHandler(e: IErrorObject): void;
|
|
45
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutCardComponent, never>;
|
|
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>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare class PayByCardComponent implements OnInit {
|
|
50
|
-
private resources;
|
|
51
|
-
private cdr;
|
|
52
|
-
private checkout;
|
|
53
|
-
private encryptService;
|
|
54
|
-
constructor(resources: ResourceService, cdr: ChangeDetectorRef, checkout: CheckoutService, encryptService: EncryptService);
|
|
55
|
-
secretKey: string;
|
|
56
|
-
environment: 'sandbox' | 'prod';
|
|
57
|
-
paymentObject: IPaymentObject;
|
|
58
|
-
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
59
|
-
loading: boolean;
|
|
60
|
-
loadingCountries: boolean;
|
|
61
|
-
loadingStates: boolean;
|
|
62
|
-
isMakingPayment: boolean;
|
|
63
|
-
cardType: string;
|
|
64
|
-
message: string;
|
|
65
|
-
transactionReference: string;
|
|
66
|
-
rawCountries: ICountry[];
|
|
67
|
-
countries: ISelectOption[];
|
|
68
|
-
countryStates: ISelectOption[];
|
|
69
|
-
formIndex: number;
|
|
70
|
-
setFormIndex(index: number): void;
|
|
71
|
-
billingForm: FormGroup<{
|
|
72
|
-
address1: FormControl<string | null>;
|
|
73
|
-
address2: FormControl<string | null>;
|
|
74
|
-
postalCode: FormControl<string | null>;
|
|
75
|
-
state: FormControl<string | null>;
|
|
76
|
-
city: FormControl<string | null>;
|
|
77
|
-
country: FormControl<string | null>;
|
|
78
|
-
emailAddress: FormControl<string | null>;
|
|
79
|
-
phoneNumber: FormControl<string | null>;
|
|
80
|
-
}>;
|
|
81
|
-
payForm: FormGroup<{
|
|
82
|
-
customerName: FormControl<string | null>;
|
|
83
|
-
cardNo: FormControl<string | null>;
|
|
84
|
-
expireDate: FormControl<string | null>;
|
|
85
|
-
cvv: FormControl<string | null>;
|
|
86
|
-
cardPin: FormControl<string | null>;
|
|
87
|
-
}>;
|
|
88
|
-
getError(formKey: string, controlName: string, label?: string): string | null;
|
|
89
|
-
get formatAmountHandler(): string;
|
|
90
|
-
cardNumberInputHandler(event: string): void;
|
|
91
|
-
updatePinValidation(): void;
|
|
92
|
-
getAllCountries(): Promise<void>;
|
|
93
|
-
getCountryStates(countryIso2: string): Promise<void>;
|
|
94
|
-
generatePaymentLinkHandler(): Promise<void | string>;
|
|
95
|
-
proceedHandler(): Promise<void>;
|
|
96
|
-
ngOnInit(): Promise<void>;
|
|
97
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PayByCardComponent, never>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PayByCardComponent, "pay-by-card", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, { "paymentAuthorized": "paymentAuthorized"; }, never, never, true, never>;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
declare class PayByTransferComponent implements OnInit, OnDestroy {
|
|
102
|
-
private checkout;
|
|
103
|
-
private cdr;
|
|
104
|
-
constructor(checkout: CheckoutService, cdr: ChangeDetectorRef);
|
|
105
|
-
secretKey: string;
|
|
106
|
-
environment: string;
|
|
107
|
-
paymentObject: IPaymentObject;
|
|
108
|
-
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
109
|
-
message: string;
|
|
110
|
-
generatingLink: boolean;
|
|
111
|
-
isMakingPayment: boolean;
|
|
112
|
-
isFetchingPaymentDetails: boolean;
|
|
113
|
-
isConfirmCall: boolean;
|
|
114
|
-
paymentMade: boolean;
|
|
115
|
-
isPaymentConfirmed: boolean;
|
|
116
|
-
paymentAccountDetails: IPaymentAccountResponse | null;
|
|
117
|
-
paymentReferenceDetails: IPaymentReferenceDetail | null;
|
|
118
|
-
transactionReference: string;
|
|
119
|
-
paymentReferenceStatus: string;
|
|
120
|
-
countDownTime: string;
|
|
121
|
-
private remainingSeconds;
|
|
122
|
-
private intervalId;
|
|
123
|
-
private updateDisplay;
|
|
124
|
-
transferForm: FormGroup<{
|
|
125
|
-
customerName: FormControl<string | null>;
|
|
126
|
-
}>;
|
|
127
|
-
getError(controlName: string, label?: string): string | null;
|
|
128
|
-
get formatAmountHandler(): string;
|
|
129
|
-
private startTimer;
|
|
130
|
-
generatePaymentLinkHandler(): Promise<void | string>;
|
|
131
|
-
payHandler(): Promise<void>;
|
|
132
|
-
getReferenceDetails(): Promise<void>;
|
|
133
|
-
ngOnInit(): Promise<void>;
|
|
134
|
-
ngOnDestroy(): void;
|
|
135
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PayByTransferComponent, never>;
|
|
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>;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
declare class PayByStableCoinComponent implements OnInit {
|
|
140
|
-
private resource;
|
|
141
|
-
private checkout;
|
|
142
|
-
private cdr;
|
|
143
|
-
constructor(resource: ResourceService, checkout: CheckoutService, cdr: ChangeDetectorRef);
|
|
144
|
-
secretKey: string;
|
|
145
|
-
environment: string;
|
|
146
|
-
paymentObject: IPaymentObject;
|
|
147
|
-
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
148
|
-
message: string;
|
|
149
|
-
transactionReference: string;
|
|
150
|
-
paymentReferenceStatus: string;
|
|
151
|
-
generateAddressPayload: IGenerateStableCoinAddress | null;
|
|
152
|
-
addressDetails: IGenerateStableCoinAddressResponse | null;
|
|
153
|
-
paymentReferenceDetails: IPaymentReferenceDetail | null;
|
|
154
|
-
stableCoins: ISelectOption[];
|
|
155
|
-
networkList: ISelectOption[];
|
|
156
|
-
loadingStableCoins: boolean;
|
|
157
|
-
generatingAddress: boolean;
|
|
158
|
-
isConfirmingPayment: boolean;
|
|
159
|
-
loading: boolean;
|
|
160
|
-
loadingStableCoinNetworks: boolean;
|
|
161
|
-
formIndex: number;
|
|
162
|
-
setFormIndex(index: number): void;
|
|
163
|
-
stableCoinForm: FormGroup<{
|
|
164
|
-
stableCoin: FormControl<string | null>;
|
|
165
|
-
network: FormControl<string | null>;
|
|
166
|
-
}>;
|
|
167
|
-
getError(controlName: string, label?: string): string | null;
|
|
168
|
-
get formatAmountHandler(): string;
|
|
169
|
-
get amountPlusNetworkFee(): number;
|
|
170
|
-
generatePaymentLinkHandler(): Promise<void | string>;
|
|
171
|
-
generateAddress(): void;
|
|
172
|
-
payHandler(): Promise<void>;
|
|
173
|
-
getStableCoins(): Promise<void>;
|
|
174
|
-
getStableCoinNetworks(): Promise<void>;
|
|
175
|
-
confirmPaymentHandler(): Promise<void>;
|
|
176
|
-
ngOnInit(): Promise<void>;
|
|
177
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PayByStableCoinComponent, never>;
|
|
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>;
|
|
48
|
+
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"; "paymentAuthorized": "paymentAuthorized"; "onError": "onError"; }, never, never, true, never>;
|
|
179
49
|
}
|
|
180
50
|
|
|
181
51
|
interface IIframeStyle {
|
|
@@ -200,6 +70,7 @@ declare class CheckoutIframeComponent implements AfterViewInit {
|
|
|
200
70
|
environment: 'sandbox' | 'prod';
|
|
201
71
|
paymentObject: IPaymentObject;
|
|
202
72
|
container?: ElementRef<HTMLDivElement>;
|
|
73
|
+
onError: EventEmitter<IErrorObject>;
|
|
203
74
|
get blockStyle(): {
|
|
204
75
|
width?: string;
|
|
205
76
|
height?: string;
|
|
@@ -211,7 +82,7 @@ declare class CheckoutIframeComponent implements AfterViewInit {
|
|
|
211
82
|
generatePaymentLinkHandler(): Promise<void | string>;
|
|
212
83
|
ngAfterViewInit(): Promise<void>;
|
|
213
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutIframeComponent, never>;
|
|
214
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckoutIframeComponent, "bzp-checkout-iframe", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "url": { "alias": "url"; "required": false; }; "style": { "alias": "style"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, {}, never, never, true, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckoutIframeComponent, "bzp-checkout-iframe", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "url": { "alias": "url"; "required": false; }; "style": { "alias": "style"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, { "onError": "onError"; }, never, never, true, never>;
|
|
215
86
|
}
|
|
216
87
|
|
|
217
88
|
declare class CheckoutButtonComponent {
|
|
@@ -227,10 +98,12 @@ declare class CheckoutButtonComponent {
|
|
|
227
98
|
environment: 'sandbox' | 'prod';
|
|
228
99
|
mode: 'redirect' | 'iframe';
|
|
229
100
|
paymentObject: IPaymentObject;
|
|
101
|
+
onError: EventEmitter<IErrorObject>;
|
|
102
|
+
get formatAmountHandler(): string;
|
|
230
103
|
generatePaymentLinkHandler(): Promise<void | string>;
|
|
231
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutButtonComponent, never>;
|
|
232
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckoutButtonComponent, "bzp-checkout-button", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "timeout": { "alias": "timeout"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, {}, never, never, true, never>;
|
|
105
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckoutButtonComponent, "bzp-checkout-button", never, { "secretKey": { "alias": "secretKey"; "required": false; }; "timeout": { "alias": "timeout"; "required": false; }; "environment": { "alias": "environment"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "paymentObject": { "alias": "paymentObject"; "required": false; }; }, { "onError": "onError"; }, never, never, true, never>;
|
|
233
106
|
}
|
|
234
107
|
|
|
235
|
-
export { CheckoutButtonComponent, CheckoutCardComponent, CheckoutIframeComponent
|
|
108
|
+
export { CheckoutButtonComponent, CheckoutCardComponent, CheckoutIframeComponent };
|
|
236
109
|
export type { CheckoutCardOptions, CheckoutIframeStyle, TokenizeResult };
|