@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.20.0-beta.5",
3
+ "version": "4.20.0-beta.6",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -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 '../interfaces';
2
- import { Checkout, Payment, PaymentTransaction } from '../models';
3
- import { OrderBlockedRepository, PaymentRepository } from '../repositories';
4
- import { AdyenCard, AdyenCredentials, PaymentCardInfo } from '../types';
5
- export declare class AdyenCardService implements PaymentProviderCard<AdyenCard> {
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';
@@ -1,4 +1,6 @@
1
+ export * from './adyen';
1
2
  export * from './elasticsearch';
2
3
  export * from './firebase';
3
4
  export * from './hasura-graphql';
5
+ export * from './pagarme';
4
6
  export * from './vertex-ai';
@@ -0,0 +1,3 @@
1
+ export * from './pagarme-bank-slip-payment-axios.adapter';
2
+ export * from './pagarme-card-payment-axios.adapter';
3
+ export * from './pagarme-pix-payment-axios.adapter';
@@ -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 '../enums';
2
- import { PaymentProviderCard } from '../interfaces';
3
- import { Checkout, Payment, PaymentTransaction } from '../models';
4
- import { OrderBlockedRepository, PaymentRepository } from '../repositories';
5
- import { CardInfo, PagarMeCard, PagarmeCredentials, PaymentCardInfo } from '../types';
6
- export declare class PagarmeCardService implements PaymentProviderCard<PagarMeCard> {
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
- }