@lomray/microservice-payment-stripe
Version:
Stripe payment microservice based on NodeJS & inverted json.
29 lines (28 loc) • 1.14 kB
TypeScript
import TransactionRole from "../constants/transaction-role.js";
import TransactionEntity from "../entities/transaction.js";
import { IComputedTax } from "../entities/transaction.js";
import { IParams as ITransactionParams } from "../entities/transaction.js";
interface IPaymentIntentMetadata extends Omit<IComputedTax, 'taxTransactionAmountWithTaxUnit' | 'taxTotalAmountUnit' | 'taxAutoCalculationFeeUnit' | 'taxFeeUnit'>, Pick<ITransactionParams, 'baseFee'>, Pick<TransactionEntity, 'taxTransactionId' | 'taxCalculationId'> {
senderId: string;
receiverId: string;
entityCost: string;
cardId: string;
feesPayer: TransactionRole;
platformFee: string;
receiverExtraFee: string;
receiverPersonalFee: string;
senderExtraFee: string;
senderPersonalFee: string;
receiverExtraRevenue: string;
receiverRevenue: string;
stripeFee: string;
fee: string;
entityId?: string;
title?: string;
taxTransactionAmountWithTax?: number;
taxTotalAmount?: number;
taxFee?: number;
totalTaxPercent?: number;
taxAutoCalculateFee?: number;
}
export { IPaymentIntentMetadata };