vk-payments 0.2.32 → 0.2.34
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 +322 -7
- 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/bank-transfer/bank-transfer.module.js +33 -0
- package/esm2015/lib/bank-transfer/components/bank-transfer.component.js +206 -0
- package/esm2015/lib/bank-transfer/models/bank-transfer.models.js +54 -0
- package/esm2015/lib/bank-transfer/services/bank-transfer.api.service.js +52 -0
- package/esm2015/lib/galicia/components/galicia.component.js +1 -2
- package/esm2015/lib/vk-payments.module.js +3 -1
- package/esm2015/vk-payments.js +10 -7
- package/esm5/lib/bank-transfer/bank-transfer.module.js +37 -0
- package/esm5/lib/bank-transfer/components/bank-transfer.component.js +234 -0
- package/esm5/lib/bank-transfer/models/bank-transfer.models.js +54 -0
- package/esm5/lib/bank-transfer/services/bank-transfer.api.service.js +57 -0
- package/esm5/lib/galicia/components/galicia.component.js +1 -2
- package/esm5/lib/vk-payments.module.js +3 -1
- package/esm5/vk-payments.js +10 -7
- package/fesm2015/vk-payments.js +281 -3
- package/fesm2015/vk-payments.js.map +1 -1
- package/fesm5/vk-payments.js +315 -3
- package/fesm5/vk-payments.js.map +1 -1
- package/lib/bank-transfer/bank-transfer.module.d.ts +2 -0
- package/lib/bank-transfer/components/bank-transfer.component.d.ts +30 -0
- package/lib/bank-transfer/models/bank-transfer.models.d.ts +20 -0
- package/lib/bank-transfer/services/bank-transfer.api.service.d.ts +8 -0
- package/package.json +2 -2
- package/vk-payments.d.ts +9 -6
- package/vk-payments.metadata.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { BankTransferApiService } from '../services/bank-transfer.api.service';
|
|
4
|
+
import { BankTransferPaymentResult } from '../models/bank-transfer.models';
|
|
5
|
+
export declare class BankTransferComponent implements OnInit {
|
|
6
|
+
private bankTransferApi;
|
|
7
|
+
accessToken: string;
|
|
8
|
+
vkUrlApi: string;
|
|
9
|
+
amount: number;
|
|
10
|
+
storeId: string;
|
|
11
|
+
storeName: string;
|
|
12
|
+
checkoutId: number;
|
|
13
|
+
checkoutAdditionalData: string;
|
|
14
|
+
discountRate: number;
|
|
15
|
+
discountAmountValue?: number;
|
|
16
|
+
statusPay: EventEmitter<BankTransferPaymentResult>;
|
|
17
|
+
paymentForm: FormGroup;
|
|
18
|
+
isLoading: boolean;
|
|
19
|
+
errorMessage: string;
|
|
20
|
+
submittedSuccessfully: boolean;
|
|
21
|
+
amountCopied: boolean;
|
|
22
|
+
readonly subtotalAmount: number;
|
|
23
|
+
readonly discountAmount: number;
|
|
24
|
+
constructor(bankTransferApi: BankTransferApiService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
copyToClipboard(text: string): void;
|
|
27
|
+
copyAmount(): void;
|
|
28
|
+
onSubmit(): void;
|
|
29
|
+
readonly cuitControl: import("@angular/forms").AbstractControl;
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface BankTransferPaymentRequest {
|
|
2
|
+
cuit: string;
|
|
3
|
+
checkoutId: number;
|
|
4
|
+
checkoutAdditionalData?: string;
|
|
5
|
+
storeName: string;
|
|
6
|
+
storeId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface BankTransferPaymentResponse {
|
|
9
|
+
success: boolean;
|
|
10
|
+
errorsMessages: string[];
|
|
11
|
+
data: BankTransferPaymentData;
|
|
12
|
+
}
|
|
13
|
+
export interface BankTransferPaymentData {
|
|
14
|
+
bankTransferEcommId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface BankTransferPaymentResult {
|
|
17
|
+
success: boolean;
|
|
18
|
+
paymentId: string;
|
|
19
|
+
integrator: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { BankTransferPaymentRequest, BankTransferPaymentResponse } from '../models/bank-transfer.models';
|
|
4
|
+
export declare class BankTransferApiService {
|
|
5
|
+
private http;
|
|
6
|
+
constructor(http: HttpClient);
|
|
7
|
+
createPayment(accessToken: string, request: BankTransferPaymentRequest, vkApiUrl: string): Observable<BankTransferPaymentResponse>;
|
|
8
|
+
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vk-payments",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.34",
|
|
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
9
|
"devDependencies": {
|
|
10
|
-
"@types/qrcode": "
|
|
10
|
+
"@types/qrcode": "1.5.6"
|
|
11
11
|
},
|
|
12
12
|
"main": "bundles/vk-payments.umd.js",
|
|
13
13
|
"module": "fesm5/vk-payments.js",
|
package/vk-payments.d.ts
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
5
|
+
export { BankTransferModule as ɵn } from './lib/bank-transfer/bank-transfer.module';
|
|
6
|
+
export { BankTransferComponent as ɵo } from './lib/bank-transfer/components/bank-transfer.component';
|
|
7
|
+
export { BankTransferApiService as ɵp } from './lib/bank-transfer/services/bank-transfer.api.service';
|
|
8
|
+
export { GaliciaComponent as ɵu } from './lib/galicia/components/galicia.component';
|
|
9
|
+
export { GaliciaModule as ɵt } from './lib/galicia/galicia.module';
|
|
10
|
+
export { GaliciaApiService as ɵv } from './lib/galicia/services/galicia.api.service';
|
|
8
11
|
export { GoCuotasComponent as ɵk } from './lib/go-cuotas/components/go-cuotas.component';
|
|
9
12
|
export { ModalComponent as ɵl } from './lib/go-cuotas/components/modal/modal.component';
|
|
10
13
|
export { GoCuotasModule as ɵj } from './lib/go-cuotas/go-cuotas.module';
|
|
@@ -13,9 +16,9 @@ export { MercadoPagoComponent as ɵb } from './lib/mercadopago/components/mercad
|
|
|
13
16
|
export { PromotionBankComponent as ɵd } from './lib/mercadopago/components/promotion-bank.component';
|
|
14
17
|
export { MercadopagoModule as ɵa } from './lib/mercadopago/mercadopago.module';
|
|
15
18
|
export { MercadopagoApiService as ɵc } from './lib/mercadopago/services/mercadopago.api.service';
|
|
16
|
-
export { ModoComponent as
|
|
17
|
-
export { ModoModule as
|
|
18
|
-
export { ModoApiService as
|
|
19
|
+
export { ModoComponent as ɵr } from './lib/modo/components/modo/modo.component';
|
|
20
|
+
export { ModoModule as ɵq } from './lib/modo/modo.module';
|
|
21
|
+
export { ModoApiService as ɵs } from './lib/modo/services/modo-api.service';
|
|
19
22
|
export { PayPalNewComponent as ɵi } from './lib/paypal/components/paypal-new.component';
|
|
20
23
|
export { PaypalModule as ɵh } from './lib/paypal/paypal.module';
|
|
21
24
|
export { SpsDecidirComponent as ɵf } from './lib/sps-decidir/components/sps-decidir.component';
|