@miden-npm/angular 1.0.0 → 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 +4 -139
- package/fesm2022/miden-npm-angular-buzapay-checkout.mjs +16 -829
- 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 +1120 -81
- package/fesm2022/miden-npm-angular.mjs.map +1 -1
- package/index.d.ts +237 -27
- 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, IErrorObject, ISelectOption,
|
|
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;
|
|
@@ -49,141 +48,6 @@ declare class CheckoutCardComponent {
|
|
|
49
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>;
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
declare class PayByCardComponent implements OnInit {
|
|
53
|
-
private resources;
|
|
54
|
-
private cdr;
|
|
55
|
-
private checkout;
|
|
56
|
-
private encryptService;
|
|
57
|
-
constructor(resources: ResourceService, cdr: ChangeDetectorRef, checkout: CheckoutService, encryptService: EncryptService);
|
|
58
|
-
secretKey: string;
|
|
59
|
-
environment: 'sandbox' | 'prod';
|
|
60
|
-
paymentObject: IPaymentObject;
|
|
61
|
-
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
62
|
-
onError: EventEmitter<IErrorObject>;
|
|
63
|
-
loading: boolean;
|
|
64
|
-
loadingCountries: boolean;
|
|
65
|
-
loadingStates: boolean;
|
|
66
|
-
isMakingPayment: boolean;
|
|
67
|
-
cardType: string;
|
|
68
|
-
message: string;
|
|
69
|
-
transactionReference: string;
|
|
70
|
-
rawCountries: ICountry[];
|
|
71
|
-
countries: ISelectOption[];
|
|
72
|
-
countryStates: ISelectOption[];
|
|
73
|
-
formIndex: number;
|
|
74
|
-
setFormIndex(index: number): void;
|
|
75
|
-
billingForm: FormGroup<{
|
|
76
|
-
address1: FormControl<string | null>;
|
|
77
|
-
address2: FormControl<string | null>;
|
|
78
|
-
postalCode: FormControl<string | null>;
|
|
79
|
-
state: FormControl<string | null>;
|
|
80
|
-
city: FormControl<string | null>;
|
|
81
|
-
country: FormControl<string | null>;
|
|
82
|
-
emailAddress: FormControl<string | null>;
|
|
83
|
-
phoneNumber: FormControl<string | null>;
|
|
84
|
-
}>;
|
|
85
|
-
payForm: FormGroup<{
|
|
86
|
-
customerName: FormControl<string | null>;
|
|
87
|
-
cardNo: FormControl<string | null>;
|
|
88
|
-
expireDate: FormControl<string | null>;
|
|
89
|
-
cvv: FormControl<string | null>;
|
|
90
|
-
cardPin: FormControl<string | null>;
|
|
91
|
-
}>;
|
|
92
|
-
getError(formKey: string, controlName: string, label?: string): string | null;
|
|
93
|
-
get formatAmountHandler(): string;
|
|
94
|
-
cardNumberInputHandler(event: string): void;
|
|
95
|
-
updatePinValidation(): void;
|
|
96
|
-
getAllCountries(): Promise<void>;
|
|
97
|
-
getCountryStates(countryIso2: string): Promise<void>;
|
|
98
|
-
generatePaymentLinkHandler(): Promise<void | string>;
|
|
99
|
-
proceedHandler(): Promise<void>;
|
|
100
|
-
ngOnInit(): Promise<void>;
|
|
101
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PayByCardComponent, never>;
|
|
102
|
-
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"; "onError": "onError"; }, never, never, true, never>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
declare class PayByTransferComponent implements OnInit, OnDestroy {
|
|
106
|
-
private checkout;
|
|
107
|
-
private cdr;
|
|
108
|
-
constructor(checkout: CheckoutService, cdr: ChangeDetectorRef);
|
|
109
|
-
secretKey: string;
|
|
110
|
-
environment: string;
|
|
111
|
-
paymentObject: IPaymentObject;
|
|
112
|
-
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
113
|
-
onError: EventEmitter<IErrorObject>;
|
|
114
|
-
message: string;
|
|
115
|
-
generatingLink: boolean;
|
|
116
|
-
isMakingPayment: boolean;
|
|
117
|
-
isFetchingPaymentDetails: boolean;
|
|
118
|
-
isConfirmCall: boolean;
|
|
119
|
-
paymentMade: boolean;
|
|
120
|
-
isPaymentConfirmed: boolean;
|
|
121
|
-
paymentAccountDetails: IPaymentAccountResponse | null;
|
|
122
|
-
paymentReferenceDetails: IPaymentReferenceDetail | null;
|
|
123
|
-
transactionReference: string;
|
|
124
|
-
paymentReferenceStatus: string;
|
|
125
|
-
countDownTime: string;
|
|
126
|
-
private remainingSeconds;
|
|
127
|
-
private intervalId;
|
|
128
|
-
private updateDisplay;
|
|
129
|
-
transferForm: FormGroup<{
|
|
130
|
-
customerName: FormControl<string | null>;
|
|
131
|
-
}>;
|
|
132
|
-
getError(controlName: string, label?: string): string | null;
|
|
133
|
-
get formatAmountHandler(): string;
|
|
134
|
-
private startTimer;
|
|
135
|
-
generatePaymentLinkHandler(): Promise<void | string>;
|
|
136
|
-
payHandler(): Promise<void>;
|
|
137
|
-
getReferenceDetails(): Promise<void>;
|
|
138
|
-
ngOnInit(): Promise<void>;
|
|
139
|
-
ngOnDestroy(): void;
|
|
140
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PayByTransferComponent, never>;
|
|
141
|
-
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"; "onError": "onError"; }, never, never, true, never>;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
declare class PayByStableCoinComponent implements OnInit {
|
|
145
|
-
private resource;
|
|
146
|
-
private checkout;
|
|
147
|
-
private cdr;
|
|
148
|
-
constructor(resource: ResourceService, checkout: CheckoutService, cdr: ChangeDetectorRef);
|
|
149
|
-
secretKey: string;
|
|
150
|
-
environment: string;
|
|
151
|
-
paymentObject: IPaymentObject;
|
|
152
|
-
paymentAuthorized: EventEmitter<ISuccessObject>;
|
|
153
|
-
onError: EventEmitter<IErrorObject>;
|
|
154
|
-
message: string;
|
|
155
|
-
transactionReference: string;
|
|
156
|
-
paymentReferenceStatus: string;
|
|
157
|
-
generateAddressPayload: IGenerateStableCoinAddress | null;
|
|
158
|
-
addressDetails: IGenerateStableCoinAddressResponse | null;
|
|
159
|
-
paymentReferenceDetails: IPaymentReferenceDetail | null;
|
|
160
|
-
stableCoins: ISelectOption[];
|
|
161
|
-
networkList: ISelectOption[];
|
|
162
|
-
loadingStableCoins: boolean;
|
|
163
|
-
generatingAddress: boolean;
|
|
164
|
-
isConfirmingPayment: boolean;
|
|
165
|
-
loading: boolean;
|
|
166
|
-
loadingStableCoinNetworks: boolean;
|
|
167
|
-
formIndex: number;
|
|
168
|
-
setFormIndex(index: number): void;
|
|
169
|
-
stableCoinForm: FormGroup<{
|
|
170
|
-
stableCoin: FormControl<string | null>;
|
|
171
|
-
network: FormControl<string | null>;
|
|
172
|
-
}>;
|
|
173
|
-
getError(controlName: string, label?: string): string | null;
|
|
174
|
-
get formatAmountHandler(): string;
|
|
175
|
-
get amountPlusNetworkFee(): number;
|
|
176
|
-
generatePaymentLinkHandler(): Promise<void | string>;
|
|
177
|
-
generateAddress(): void;
|
|
178
|
-
payHandler(): Promise<void>;
|
|
179
|
-
getStableCoins(): Promise<void>;
|
|
180
|
-
getStableCoinNetworks(): Promise<void>;
|
|
181
|
-
confirmPaymentHandler(): Promise<void>;
|
|
182
|
-
ngOnInit(): Promise<void>;
|
|
183
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PayByStableCoinComponent, never>;
|
|
184
|
-
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"; "onError": "onError"; }, never, never, true, never>;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
51
|
interface IIframeStyle {
|
|
188
52
|
width?: string;
|
|
189
53
|
height?: string;
|
|
@@ -235,10 +99,11 @@ declare class CheckoutButtonComponent {
|
|
|
235
99
|
mode: 'redirect' | 'iframe';
|
|
236
100
|
paymentObject: IPaymentObject;
|
|
237
101
|
onError: EventEmitter<IErrorObject>;
|
|
102
|
+
get formatAmountHandler(): string;
|
|
238
103
|
generatePaymentLinkHandler(): Promise<void | string>;
|
|
239
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutButtonComponent, never>;
|
|
240
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>;
|
|
241
106
|
}
|
|
242
107
|
|
|
243
|
-
export { CheckoutButtonComponent, CheckoutCardComponent, CheckoutIframeComponent
|
|
108
|
+
export { CheckoutButtonComponent, CheckoutCardComponent, CheckoutIframeComponent };
|
|
244
109
|
export type { CheckoutCardOptions, CheckoutIframeStyle, TokenizeResult };
|