vk-payments 0.2.30 → 0.2.32
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/bundles/vk-payments.umd.js +355 -186
- package/bundles/vk-payments.umd.js.map +1 -1
- package/bundles/vk-payments.umd.min.js +1 -1
- package/bundles/vk-payments.umd.min.js.map +1 -1
- package/esm2015/lib/galicia/components/galicia.component.js +311 -0
- package/esm2015/lib/galicia/galicia.module.js +37 -0
- package/esm2015/lib/galicia/models/galicia.models.js +46 -0
- package/esm2015/lib/galicia/services/galicia.api.service.js +74 -0
- package/esm2015/lib/vk-payments.module.js +5 -4
- package/esm2015/vk-payments.js +4 -4
- package/esm5/lib/galicia/components/galicia.component.js +359 -0
- package/esm5/lib/galicia/galicia.module.js +41 -0
- package/esm5/lib/galicia/models/galicia.models.js +46 -0
- package/esm5/lib/galicia/services/galicia.api.service.js +87 -0
- package/esm5/lib/vk-payments.module.js +5 -4
- package/esm5/vk-payments.js +4 -4
- package/fesm2015/vk-payments.js +291 -149
- package/fesm2015/vk-payments.js.map +1 -1
- package/fesm5/vk-payments.js +351 -181
- package/fesm5/vk-payments.js.map +1 -1
- package/lib/galicia/components/galicia.component.d.ts +46 -0
- package/lib/galicia/galicia.module.d.ts +2 -0
- package/lib/galicia/models/galicia.models.d.ts +17 -0
- package/lib/galicia/services/galicia.api.service.d.ts +11 -0
- package/package.json +4 -1
- package/vk-payments.d.ts +3 -3
- package/vk-payments.metadata.json +1 -1
- package/esm2015/lib/bank-transfer/bank-transfer.module.js +0 -33
- package/esm2015/lib/bank-transfer/components/bank-transfer.component.js +0 -197
- package/esm2015/lib/bank-transfer/models/bank-transfer.models.js +0 -54
- package/esm2015/lib/bank-transfer/services/bank-transfer.api.service.js +0 -52
- package/esm5/lib/bank-transfer/bank-transfer.module.js +0 -37
- package/esm5/lib/bank-transfer/components/bank-transfer.component.js +0 -225
- package/esm5/lib/bank-transfer/models/bank-transfer.models.js +0 -54
- package/esm5/lib/bank-transfer/services/bank-transfer.api.service.js +0 -57
- package/lib/bank-transfer/bank-transfer.module.d.ts +0 -2
- package/lib/bank-transfer/components/bank-transfer.component.d.ts +0 -29
- package/lib/bank-transfer/models/bank-transfer.models.d.ts +0 -20
- package/lib/bank-transfer/services/bank-transfer.api.service.d.ts +0 -8
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { GaliciaApiService } from '../services/galicia.api.service';
|
|
3
|
+
import { InitPayment, PaymentResult, ResponseApi } from '../models/galicia.models';
|
|
4
|
+
export declare class GaliciaComponent implements OnInit {
|
|
5
|
+
private galiciaApiService;
|
|
6
|
+
accessToken: string;
|
|
7
|
+
gaUrlApi: string;
|
|
8
|
+
vkUrlApi: string;
|
|
9
|
+
userId: string;
|
|
10
|
+
logoGa: string;
|
|
11
|
+
storeId: string;
|
|
12
|
+
storeName: string;
|
|
13
|
+
sessionId: string;
|
|
14
|
+
checkoutId: number;
|
|
15
|
+
data: string;
|
|
16
|
+
statusPay: EventEmitter<PaymentResult>;
|
|
17
|
+
qrImage: string;
|
|
18
|
+
billNumber: string;
|
|
19
|
+
errorMessage: string;
|
|
20
|
+
OinitPayment: InitPayment;
|
|
21
|
+
isGeneratingQr: boolean;
|
|
22
|
+
paymentCompleted: boolean;
|
|
23
|
+
paymentId: string;
|
|
24
|
+
showQr: boolean;
|
|
25
|
+
expired: boolean;
|
|
26
|
+
isLoading: boolean;
|
|
27
|
+
hasError: boolean;
|
|
28
|
+
minutes: number;
|
|
29
|
+
seconds: number;
|
|
30
|
+
private interval;
|
|
31
|
+
validationInterval: any;
|
|
32
|
+
paymentResult: PaymentResult;
|
|
33
|
+
constructor(galiciaApiService: GaliciaApiService);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
generateQr(datos: string): void;
|
|
36
|
+
createInitPayment(): void;
|
|
37
|
+
initPayment(): void;
|
|
38
|
+
private initPaymentResponseHandler;
|
|
39
|
+
private initPaymentErrorHandler;
|
|
40
|
+
startTimer(): void;
|
|
41
|
+
startPaymentValidation(): void;
|
|
42
|
+
paymentStatusResponseHandler(response: ResponseApi): void;
|
|
43
|
+
private paymentStatusErrorHandler;
|
|
44
|
+
showQrAgain(): void;
|
|
45
|
+
private stopValidation;
|
|
46
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface InitPayment {
|
|
2
|
+
storeId: string;
|
|
3
|
+
userId: string;
|
|
4
|
+
sessionId?: string;
|
|
5
|
+
storeName: string;
|
|
6
|
+
checkoutId: number;
|
|
7
|
+
}
|
|
8
|
+
export interface ResponseApi {
|
|
9
|
+
success: boolean;
|
|
10
|
+
errorsMessages: string[];
|
|
11
|
+
data: any;
|
|
12
|
+
}
|
|
13
|
+
export interface PaymentResult {
|
|
14
|
+
success: boolean;
|
|
15
|
+
paymentId: string;
|
|
16
|
+
integrator: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { InitPayment, ResponseApi } from '../models/galicia.models';
|
|
4
|
+
export declare class GaliciaApiService {
|
|
5
|
+
private httpClient;
|
|
6
|
+
private authHeaders;
|
|
7
|
+
constructor(httpClient: HttpClient);
|
|
8
|
+
normalizeUrl(url: string): string;
|
|
9
|
+
initPayment(url: string, initPayment: InitPayment): Observable<ResponseApi>;
|
|
10
|
+
paymentStatus(url: string, billNumber: string): Observable<ResponseApi>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vk-payments",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.32",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "8.2.11",
|
|
6
6
|
"@angular/core": "8.2.11",
|
|
7
7
|
"sha256": "0.2.0"
|
|
8
8
|
},
|
|
9
|
+
"devDependencies": {
|
|
10
|
+
"@types/qrcode": "^1.5.6"
|
|
11
|
+
},
|
|
9
12
|
"main": "bundles/vk-payments.umd.js",
|
|
10
13
|
"module": "fesm5/vk-payments.js",
|
|
11
14
|
"es2015": "fesm2015/vk-payments.js",
|
package/vk-payments.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
5
|
+
export { GaliciaComponent as ɵr } from './lib/galicia/components/galicia.component';
|
|
6
|
+
export { GaliciaModule as ɵq } from './lib/galicia/galicia.module';
|
|
7
|
+
export { GaliciaApiService as ɵs } from './lib/galicia/services/galicia.api.service';
|
|
8
8
|
export { GoCuotasComponent as ɵk } from './lib/go-cuotas/components/go-cuotas.component';
|
|
9
9
|
export { ModalComponent as ɵl } from './lib/go-cuotas/components/modal/modal.component';
|
|
10
10
|
export { GoCuotasModule as ɵj } from './lib/go-cuotas/go-cuotas.module';
|