/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { array, lazy, object, optional, Schema } from '../schema.js'; import { ExchangeRate, exchangeRateSchema } from './exchangeRate.js'; import { Money, moneySchema } from './money.js'; import { PlatformFee, platformFeeSchema } from './platformFee.js'; /** The detailed breakdown of the capture activity. This is not available for transactions that are in pending state. */ export interface SellerReceivableBreakdown { /** The currency and amount for a financial transaction, such as a balance or payment due. */ grossAmount: Money; /** The currency and amount for a financial transaction, such as a balance or payment due. */ paypalFee?: Money; /** The currency and amount for a financial transaction, such as a balance or payment due. */ paypalFeeInReceivableCurrency?: Money; /** The currency and amount for a financial transaction, such as a balance or payment due. */ netAmount?: Money; /** The currency and amount for a financial transaction, such as a balance or payment due. */ receivableAmount?: Money; /** The exchange rate that determines the amount to convert from one currency to another currency. */ exchangeRate?: ExchangeRate; /** An array of platform or partner fees, commissions, or brokerage fees that associated with the captured payment. */ platformFees?: PlatformFee[]; } export const sellerReceivableBreakdownSchema: Schema = lazy( () => object({ grossAmount: ['gross_amount', moneySchema], paypalFee: ['paypal_fee', optional(moneySchema)], paypalFeeInReceivableCurrency: [ 'paypal_fee_in_receivable_currency', optional(moneySchema), ], netAmount: ['net_amount', optional(moneySchema)], receivableAmount: ['receivable_amount', optional(moneySchema)], exchangeRate: ['exchange_rate', optional(exchangeRateSchema)], platformFees: ['platform_fees', optional(array(platformFeeSchema))], }) );