Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updates dependenceies, fixes linter issues #60

Merged
merged 2 commits into from
Sep 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
"plugin:import/warnings",
"plugin:import/errors"
],
Expand All @@ -27,7 +26,7 @@
"test/**/*"
],
"rules": {
"no-unused-vars": ["warn", {"args": "after-used", "varsIgnorePattern": "^_.*"}],
"no-unused-vars": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"import/named": "error",
Expand Down
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "15.0.2",
"@typescript-eslint/eslint-plugin": "4.22.1",
"@typescript-eslint/parser": "4.22.1",
"@types/node": "16.7.13",
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"ava": "3.15.0",
"axios-mock-adapter": "1.19.0",
"eslint": "7.26.0",
"eslint-config-prettier": "6.15.0",
"axios-mock-adapter": "1.20.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-import-resolver-typescript": "2.4.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-import": "2.24.2",
"eslint-plugin-prettier": "4.0.0",
"hosted-git-info": "4.0.2",
"nock": "13.0.11",
"nock": "13.1.3",
"nyc": "15.1.0",
"prettier": "2.3.0",
"prettier": "2.3.2",
"rimraf": "3.0.2",
"ts-node": "9.1.1",
"typescript": "4.2.4"
"ts-node": "10.2.1",
"typescript": "4.4.2"
},
"dependencies": {
"axios": "0.21.1",
"axios": "0.21.4",
"crypto-js": "4.0.0",
"lodash": "4.17.21"
}
Expand Down
2 changes: 1 addition & 1 deletion src/adapter/PaymentAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import RefundPaymentRequest from '../request/RefundPaymentRequest';
import RefundPaymentTransactionRequest from '../request/RefundPaymentTransactionRequest';
import SearchStoredCardsRequest from '../request/SearchStoredCardsRequest';
import StoreCardRequest from '../request/StoreCardRequest';
import UpdateCardRequest from '../request/UpdateCardRequest';

import DataResponse from '../response/DataResponse';
import DepositPaymentResponse from '../response/DepositPaymentResponse';
Expand All @@ -25,7 +26,6 @@ import PaymentTransactionRefundResponse from '../response/PaymentTransactionRefu
import StoredCardResponse from '../response/StoredCardResponse';

import BaseAdapter from './BaseAdapter';
import UpdateCardRequest from '../request/UpdateCardRequest';

export default class PaymentAdapter extends BaseAdapter {
constructor(options: ClientCreationOptions) {
Expand Down
1 change: 0 additions & 1 deletion src/model/BounceStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ enum BounceStatus {
PayoutCompleted = 'PAYOUT_COMPLETED'
}


export default BounceStatus;
2 changes: 1 addition & 1 deletion src/model/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ApprovalStatus from './ApprovalStatus';
import BounceStatus from './BounceStatus';
import CardAssociation from './CardAssociation';
import CardType from './CardType';
import Currency from './Currency';
Expand All @@ -22,7 +23,6 @@ import TransactionPayoutStatus from './TransactionPayoutStatus';
import TransactionStatus from './TransactionStatus';
import WalletTransactionRefundCardTransactionType from './WalletTransactionRefundCardTransactionType';
import WalletTransactionType from './WalletTransactionType';
import BounceStatus from './BounceStatus';

export = {
ApprovalStatus,
Expand Down
2 changes: 1 addition & 1 deletion src/request/CreatePaymentRequest.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import PaymentPhase from '../model/PaymentPhase';
import Currency from '../model/Currency';
import Installment from '../model/Installment';
import PaymentGroup from '../model/PaymentGroup';
import PaymentPhase from '../model/PaymentPhase';

import {Card} from './dto/Card';
import PaymentItem from './dto/PaymentItem';
Expand Down
3 changes: 2 additions & 1 deletion src/response/PayoutDetailResponse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import PayoutDetailTransaction from './dto/PayoutDetailTransaction';
import BounceStatus from '../model/BounceStatus';

import PayoutDetailTransaction from './dto/PayoutDetailTransaction';

type PaymentResponse = {
rowDescription: string;
payoutDate: Date;
Expand Down