Skip to content

Commit

Permalink
cleanup: tx variants boleto, onlinebanking, entercash, visa
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeiroguilherme committed Oct 4, 2023
1 parent 97fcd5c commit 9466ee3
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 50 deletions.
7 changes: 2 additions & 5 deletions packages/lib/src/components/Boleto/Boleto.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ export class BoletoElement extends UIElement<VoucherActionElement> {

public static txVariants = [
TxVariants.boletobancario,
TxVariants.primeiropay_boleto,
TxVariants.boletobancario_bancodobrasil,
TxVariants.boletobancario_bradesco,
TxVariants.boletobancario_hsbc,
TxVariants.boletobancario_itau,
TxVariants.boletobancario_santander
TxVariants.boletobancario_santander,
TxVariants.primeiropay_boleto
];

get isValid() {
Expand Down
1 change: 0 additions & 1 deletion packages/lib/src/components/Dotpay/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { TxVariants } from '../tx-variants';

class DotpayElement extends IssuerListContainer {
public static type = TxVariants.dotpay;
public static txVariants = [TxVariants.dotpay, TxVariants.onlineBanking];
}

export default DotpayElement;
8 changes: 0 additions & 8 deletions packages/lib/src/components/Entercash/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/lib/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export { default as Oxxo } from './Oxxo';
export { default as BillDeskOnline } from './BillDesk/BillDeskOnline';
export { default as BillDeskWallet } from './BillDesk/BillDeskWallet';
export { default as Dotpay } from './Dotpay'; // add other tx variants
export { default as Entercash } from './Entercash';
export { default as EPS } from './EPS';
export { default as Ideal } from './Ideal';
export { default as MolPayEBankingMY } from './MolPayEBanking/MolPayEBankingMY';
Expand Down
6 changes: 0 additions & 6 deletions packages/lib/src/components/tx-variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export enum TxVariants {
scheme = 'scheme',
storedCard = 'storedCard',
customCard = 'customcard',
visa = 'visa',
/** Card */

/** ThreeDS */
Expand Down Expand Up @@ -54,9 +53,6 @@ export enum TxVariants {

/** Voucher */
boletobancario = 'boletobancario',
boletobancario_bancodobrasil = 'boletobancario_bancodobrasil',
boletobancario_bradesco = 'boletobancario_bradesco',
boletobancario_hsbc = 'boletobancario_hsbc',
boletobancario_itau = 'boletobancario_itau',
boletobancario_santander = 'boletobancario_santander',
primeiropay_boleto = 'primeiropay_boleto',
Expand All @@ -80,13 +76,11 @@ export enum TxVariants {
billdesk_online = 'billdesk_online',
billdesk_wallet = 'billdesk_wallet',
dotpay = 'dotpay',
entercash = 'entercash',
eps = 'eps',
ideal = 'ideal',
molpay_ebanking_fpx_MY = 'molpay_ebanking_fpx_MY',
molpay_ebanking_TH = 'molpay_ebanking_TH',
molpay_ebanking_VN = 'molpay_ebanking_VN',
onlineBanking = 'onlineBanking',
onlineBanking_CZ = 'onlineBanking_CZ',
onlinebanking_IN = 'onlinebanking_IN',
onlineBanking_PL = 'onlineBanking_PL',
Expand Down
7 changes: 0 additions & 7 deletions packages/lib/src/components/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import Bancontact from './Card/Bancontact';
import Donation from './Donation';
import Giropay from './Giropay';
import GooglePay from './GooglePay';
import Entercash from './Entercash';
import Econtext from './Econtext';
import { FacilyPay3x, FacilyPay4x, FacilyPay6x, FacilyPay10x, FacilyPay12x } from './FacilyPay';
import Ideal from './Ideal';
Expand Down Expand Up @@ -91,7 +90,6 @@ const componentsMap = {
[TxVariants.scheme]: Card,
[TxVariants.storedCard]: Card,
[TxVariants.customCard]: CustomCard,
[TxVariants.visa]: Card,
/** Card */

/** Direct debit */
Expand Down Expand Up @@ -127,9 +125,6 @@ const componentsMap = {

/** Voucher */
[TxVariants.boletobancario]: Boleto,
[TxVariants.boletobancario_bancodobrasil]: Boleto,
[TxVariants.boletobancario_bradesco]: Boleto,
[TxVariants.boletobancario_hsbc]: Boleto,
[TxVariants.boletobancario_itau]: Boleto,
[TxVariants.boletobancario_santander]: Boleto,
[TxVariants.doku]: Doku,
Expand All @@ -153,13 +148,11 @@ const componentsMap = {
[TxVariants.billdesk_online]: BillDeskOnline,
[TxVariants.billdesk_wallet]: BillDeskWallet,
[TxVariants.dotpay]: Dotpay,
[TxVariants.entercash]: Entercash,
[TxVariants.eps]: Eps,
[TxVariants.ideal]: Ideal,
[TxVariants.molpay_ebanking_fpx_MY]: MolPayEBankingMY,
[TxVariants.molpay_ebanking_TH]: MolPayEBankingTH,
[TxVariants.molpay_ebanking_VN]: MolPayEBankingVN,
[TxVariants.onlineBanking]: Dotpay,
[TxVariants.onlineBanking_CZ]: OnlineBankingCZElement,
[TxVariants.onlinebanking_IN]: OnlineBankingINElement, // NOTE ]: the txVariant does have a lowercase "b"
[TxVariants.onlineBanking_PL]: OnlinebankingPL,
Expand Down
22 changes: 0 additions & 22 deletions packages/lib/storybook/stories/issuer-lists/Entercash.stories.tsx

This file was deleted.

0 comments on commit 9466ee3

Please sign in to comment.