Skip to content

Commit

Permalink
fixes lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterSlave committed Nov 21, 2023
1 parent 60228ff commit d65b395
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 17 deletions.
6 changes: 3 additions & 3 deletions samples/payment/BnplPaymentOffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ const craftgate = new Craftgate.Client({
const request = {
price: 10000,
currency: Craftgate.Model.Currency.TRY,
apmType : Craftgate.Model.ApmType.Maslak,
apmType: Craftgate.Model.ApmType.Maslak,
items: [
{
id: "200",
name: "Test Elektronik 2",
brandName:"iphone",
brandName: "iphone",
type: Craftgate.Model.BnplCartItemType.Other,
unitPrice: 3000,
quantity: 2,
},
{
id: "100",
name: "Test Elektronik 1",
brandName:"Samsung",
brandName: "Samsung",
type: Craftgate.Model.BnplCartItemType.MobilePhoneOver5000Try,
unitPrice: 4000,
quantity: 1,
Expand Down
4 changes: 2 additions & 2 deletions src/adapter/PaymentAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {calculateHash} from '../lib/utils';

import ApplePayMerchantSessionCreateRequest from '../request/ApplePayMerchantSessionCreateRequest';
import ApprovePaymentTransactionsRequest from '../request/ApprovePaymentTransactionsRequest';
import InitBnplPaymentRequest from '../request/InitBnplPaymentRequest';
import BnplPaymentOfferRequest from '../request/BnplPaymentOfferRequest';
import CompleteApmPaymentRequest from '../request/CompleteApmPaymentRequest';
import CompletePosApmPaymentRequest from '../request/CompletePosApmPaymentRequest';
Expand All @@ -16,6 +15,7 @@ import DeleteStoredCardRequest from '../request/DeleteStoredCardRequest';
import DisapprovePaymentTransactionsRequest from '../request/DisapprovePaymentTransactionsRequest';
import InitApmDepositPaymentRequest from '../request/InitApmDepositPaymentRequest';
import InitApmPaymentRequest from '../request/InitApmPaymentRequest';
import InitBnplPaymentRequest from '../request/InitBnplPaymentRequest';
import InitCheckoutPaymentRequest from '../request/InitCheckoutPaymentRequest';
import InitGarantiPayPaymentRequest from '../request/InitGarantiPayPaymentRequest';
import InitPosApmPaymentRequest from '../request/InitPosApmPaymentRequest';
Expand All @@ -30,14 +30,14 @@ import UpdateCardRequest from '../request/UpdateCardRequest';
import UpdatePaymentTransactionRequest from '../request/UpdatePaymentTransactionRequest';

import ApmDepositPaymentResponse from '../response/ApmDepositPaymentResponse';
import InitBnplPaymentResponse from '../response/InitBnplPaymentResponse';
import BnplPaymentOfferResponse from '../response/BnplPaymentOfferResponse';
import CompleteApmPaymentResponse from '../response/CompleteApmPaymentResponse';
import CompletePosApmPaymentResponse from '../response/CompletePosApmPaymentResponse';
import DataResponse from '../response/DataResponse';
import DepositPaymentResponse from '../response/DepositPaymentResponse';
import FundTransferDepositPaymentResponse from '../response/FundTransferDepositPaymentResponse';
import InitApmPaymentResponse from '../response/InitApmPaymentResponse';
import InitBnplPaymentResponse from '../response/InitBnplPaymentResponse';
import InitCheckoutPaymentResponse from '../response/InitCheckoutPaymentResponse';
import InitGarantiPayPaymentResponse from '../response/InitGarantiPayPaymentResponse';
import InitPosApmPaymentResponse from '../response/InitPosApmPaymentResponse';
Expand Down
22 changes: 11 additions & 11 deletions src/model/WebhookEventType.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
enum WebhookEventType {
ApiAuth = 'API_AUTH',
ApiVerifyAndAuth = 'API_VERIFY_AND_AUTH',
CheckoutFormAuth = 'CHECKOUTFORM_AUTH',
ThreeDSVerify = 'THREEDS_VERIFY',
Refund = 'REFUND',
RefundTx = 'REFUND_TX',
PayoutCompleted = 'PAYOUT_COMPLETED',
Autopilot = 'AUTOPILOT',
WalletCreated = 'WALLET_CREATED',
WalletTxCreated = 'WALLET_TX_CREATED',
BnplNotification = 'BNPL_NOTIFICATION'
ApiAuth = 'API_AUTH',
ApiVerifyAndAuth = 'API_VERIFY_AND_AUTH',
CheckoutFormAuth = 'CHECKOUTFORM_AUTH',
ThreeDSVerify = 'THREEDS_VERIFY',
Refund = 'REFUND',
RefundTx = 'REFUND_TX',
PayoutCompleted = 'PAYOUT_COMPLETED',
Autopilot = 'AUTOPILOT',
WalletCreated = 'WALLET_CREATED',
WalletTxCreated = 'WALLET_TX_CREATED',
BnplNotification = 'BNPL_NOTIFICATION'
}

export default WebhookEventType;
2 changes: 1 addition & 1 deletion src/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import AccountOwner from './AccountOwner';
import ApmType from './ApmType';
import ApprovalStatus from './ApprovalStatus';
import BankAccountTrackingSource from './BankAccountTrackingSource';
import BnplCartItemType from './BnplCartItemType';
import BounceStatus from './BounceStatus';
import CardAssociation from './CardAssociation';
import CardExpiryStatus from './CardExpiryStatus';
import CardType from './CardType';
import BnplCartItemType from './BnplCartItemType';
import Currency from './Currency';
import FileStatus from './FileStatus';
import FraudAction from './FraudAction';
Expand Down
2 changes: 2 additions & 0 deletions src/response/dto/BnplBankOffer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import BnplBankOfferTerm from './BnplBankOfferTerm';

type BnplBankOffer = {
bankCode: string;
bankName: string;
Expand Down
2 changes: 2 additions & 0 deletions src/response/dto/BnplBankOfferTerm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ type BnplBankOfferTerm = {
interestRate: number;
annualInterestRate: number;
};

export default BnplBankOfferTerm;

0 comments on commit d65b395

Please sign in to comment.