@infrab4a/connect 4.20.0-beta.5 → 4.20.0-beta.6
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/index.cjs.js +397 -397
- package/index.esm.js +394 -394
- package/package.json +1 -1
- package/src/domain/shopping/services/index.d.ts +0 -4
- package/src/{domain/shopping/services/adyen-card-payment.service.d.ts → infra/adyen/adapters/adyen-card-payment-axios.adapter.d.ts} +5 -5
- package/src/infra/adyen/adapters/index.d.ts +1 -0
- package/src/infra/adyen/index.d.ts +1 -0
- package/src/infra/index.d.ts +2 -0
- package/src/infra/pagarme/adapters/index.d.ts +3 -0
- package/src/infra/pagarme/adapters/pagarme-bank-slip-payment-axios.adapter.d.ts +12 -0
- package/src/{domain/shopping/services/pagarme-card-payment.service.d.ts → infra/pagarme/adapters/pagarme-card-payment-axios.adapter.d.ts} +6 -6
- package/src/infra/pagarme/adapters/pagarme-pix-payment-axios.adapter.d.ts +11 -0
- package/src/infra/pagarme/index.d.ts +1 -0
- package/src/domain/shopping/services/pagarme-bank-slip-payment.service.d.ts +0 -12
- package/src/domain/shopping/services/pagarme-pix-payment.service.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
export * from './adyen-card-payment.service';
|
|
2
1
|
export * from './antifraud-bankslip.service';
|
|
3
2
|
export * from './antifraud-card.service';
|
|
4
3
|
export * from './antifraud-glampoints.service';
|
|
5
4
|
export * from './antifraud-pix.service';
|
|
6
5
|
export * from './glampoints-payment.service';
|
|
7
|
-
export * from './pagarme-bank-slip-payment.service';
|
|
8
|
-
export * from './pagarme-card-payment.service';
|
|
9
|
-
export * from './pagarme-pix-payment.service';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PaymentProviderCard } from '
|
|
2
|
-
import { Checkout, Payment, PaymentTransaction } from '
|
|
3
|
-
import { OrderBlockedRepository, PaymentRepository } from '
|
|
4
|
-
import { AdyenCard, AdyenCredentials, PaymentCardInfo } from '
|
|
5
|
-
export declare class
|
|
1
|
+
import { PaymentProviderCard } from '../../../domain/shopping/interfaces';
|
|
2
|
+
import { Checkout, Payment, PaymentTransaction } from '../../../domain/shopping/models';
|
|
3
|
+
import { OrderBlockedRepository, PaymentRepository } from '../../../domain/shopping/repositories';
|
|
4
|
+
import { AdyenCard, AdyenCredentials, PaymentCardInfo } from '../../../domain/shopping/types';
|
|
5
|
+
export declare class AdyenCardAxiosAdapter implements PaymentProviderCard<AdyenCard> {
|
|
6
6
|
private credentials;
|
|
7
7
|
private paymentRepository;
|
|
8
8
|
private orderBlockedRepository;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adyen-card-payment-axios.adapter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapters';
|
package/src/infra/index.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PaymentProviderBankSlip } from '../../../domain/shopping/interfaces';
|
|
2
|
+
import { Checkout, Payment, PaymentTransaction } from '../../../domain/shopping/models';
|
|
3
|
+
import { PaymentRepository } from '../../../domain/shopping/repositories';
|
|
4
|
+
import { PagarmeCredentials } from '../../../domain/shopping/types';
|
|
5
|
+
export declare class PagarmeBankSlipAxiosAdapter implements PaymentProviderBankSlip {
|
|
6
|
+
private credentials;
|
|
7
|
+
private paymentRepository;
|
|
8
|
+
constructor(credentials: PagarmeCredentials, paymentRepository: PaymentRepository);
|
|
9
|
+
pay(checkout: Checkout): Promise<Payment>;
|
|
10
|
+
getBoletoTransaction(paymentId: number): Promise<PaymentTransaction>;
|
|
11
|
+
private createBoletoPayment;
|
|
12
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { BusinessUnitEnum } from '
|
|
2
|
-
import { PaymentProviderCard } from '
|
|
3
|
-
import { Checkout, Payment, PaymentTransaction } from '
|
|
4
|
-
import { OrderBlockedRepository, PaymentRepository } from '
|
|
5
|
-
import { CardInfo, PagarMeCard, PagarmeCredentials, PaymentCardInfo } from '
|
|
6
|
-
export declare class
|
|
1
|
+
import { BusinessUnitEnum } from '../../../domain/shopping/enums';
|
|
2
|
+
import { PaymentProviderCard } from '../../../domain/shopping/interfaces';
|
|
3
|
+
import { Checkout, Payment, PaymentTransaction } from '../../../domain/shopping/models';
|
|
4
|
+
import { OrderBlockedRepository, PaymentRepository } from '../../../domain/shopping/repositories';
|
|
5
|
+
import { CardInfo, PagarMeCard, PagarmeCredentials, PaymentCardInfo } from '../../../domain/shopping/types';
|
|
6
|
+
export declare class PagarmeCardAxiosAdapter implements PaymentProviderCard<PagarMeCard> {
|
|
7
7
|
private credentials;
|
|
8
8
|
private paymentRepository;
|
|
9
9
|
private orderBlockedRepository;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PaymentProviderPix } from '../../../domain/shopping/interfaces';
|
|
2
|
+
import { Checkout, Payment } from '../../../domain/shopping/models';
|
|
3
|
+
import { PaymentRepository } from '../../../domain/shopping/repositories';
|
|
4
|
+
import { PagarmeCredentials } from '../../../domain/shopping/types';
|
|
5
|
+
export declare class PagarmePixAxiosAdapter implements PaymentProviderPix {
|
|
6
|
+
private credentials;
|
|
7
|
+
private paymentRepository;
|
|
8
|
+
constructor(credentials: PagarmeCredentials, paymentRepository: PaymentRepository);
|
|
9
|
+
pay(checkout: Checkout): Promise<Payment>;
|
|
10
|
+
private createPixPayment;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './adapters';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { PaymentProviderBankSlip } from '../interfaces';
|
|
2
|
-
import { Checkout, Payment, PaymentTransaction } from '../models';
|
|
3
|
-
import { PaymentRepository } from '../repositories';
|
|
4
|
-
import { PagarmeCredentials } from '../types';
|
|
5
|
-
export declare class PagarmeBankSlipService implements PaymentProviderBankSlip {
|
|
6
|
-
private credentials;
|
|
7
|
-
private paymentRepository;
|
|
8
|
-
constructor(credentials: PagarmeCredentials, paymentRepository: PaymentRepository);
|
|
9
|
-
pay(checkout: Checkout): Promise<Payment>;
|
|
10
|
-
getBoletoTransaction(paymentId: number): Promise<PaymentTransaction>;
|
|
11
|
-
private createBoletoPayment;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PaymentProviderPix } from '../interfaces';
|
|
2
|
-
import { Checkout, Payment } from '../models';
|
|
3
|
-
import { PaymentRepository } from '../repositories';
|
|
4
|
-
import { PagarmeCredentials } from '../types';
|
|
5
|
-
export declare class PagarmePixService implements PaymentProviderPix {
|
|
6
|
-
private credentials;
|
|
7
|
-
private paymentRepository;
|
|
8
|
-
constructor(credentials: PagarmeCredentials, paymentRepository: PaymentRepository);
|
|
9
|
-
pay(checkout: Checkout): Promise<Payment>;
|
|
10
|
-
private createPixPayment;
|
|
11
|
-
}
|