vk-payments 0.2.32 → 0.2.33

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.
Files changed (29) hide show
  1. package/bundles/vk-payments.umd.js +322 -7
  2. package/bundles/vk-payments.umd.js.map +1 -1
  3. package/bundles/vk-payments.umd.min.js +1 -1
  4. package/bundles/vk-payments.umd.min.js.map +1 -1
  5. package/esm2015/lib/bank-transfer/bank-transfer.module.js +33 -0
  6. package/esm2015/lib/bank-transfer/components/bank-transfer.component.js +206 -0
  7. package/esm2015/lib/bank-transfer/models/bank-transfer.models.js +54 -0
  8. package/esm2015/lib/bank-transfer/services/bank-transfer.api.service.js +52 -0
  9. package/esm2015/lib/galicia/components/galicia.component.js +1 -2
  10. package/esm2015/lib/vk-payments.module.js +3 -1
  11. package/esm2015/vk-payments.js +10 -7
  12. package/esm5/lib/bank-transfer/bank-transfer.module.js +37 -0
  13. package/esm5/lib/bank-transfer/components/bank-transfer.component.js +234 -0
  14. package/esm5/lib/bank-transfer/models/bank-transfer.models.js +54 -0
  15. package/esm5/lib/bank-transfer/services/bank-transfer.api.service.js +57 -0
  16. package/esm5/lib/galicia/components/galicia.component.js +1 -2
  17. package/esm5/lib/vk-payments.module.js +3 -1
  18. package/esm5/vk-payments.js +10 -7
  19. package/fesm2015/vk-payments.js +281 -3
  20. package/fesm2015/vk-payments.js.map +1 -1
  21. package/fesm5/vk-payments.js +315 -3
  22. package/fesm5/vk-payments.js.map +1 -1
  23. package/lib/bank-transfer/bank-transfer.module.d.ts +2 -0
  24. package/lib/bank-transfer/components/bank-transfer.component.d.ts +30 -0
  25. package/lib/bank-transfer/models/bank-transfer.models.d.ts +20 -0
  26. package/lib/bank-transfer/services/bank-transfer.api.service.d.ts +8 -0
  27. package/package.json +2 -2
  28. package/vk-payments.d.ts +9 -6
  29. package/vk-payments.metadata.json +1 -1
@@ -0,0 +1,2 @@
1
+ export declare class BankTransferModule {
2
+ }
@@ -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.32",
3
+ "version": "0.2.33",
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": "^1.5.6"
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 { 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';
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 ɵo } from './lib/modo/components/modo/modo.component';
17
- export { ModoModule as ɵn } from './lib/modo/modo.module';
18
- export { ModoApiService as ɵp } from './lib/modo/services/modo-api.service';
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';