/** * PayPal Server SDKLib * * This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). */ import { object, Schema, string } from '../schema.js'; /** The currency and amount for a financial transaction, such as a balance or payment due. */ export interface Money { /** The [three-character ISO-4217 currency code](/api/rest/reference/currency-codes/) that identifies the currency. */ currencyCode: string; /** The value, which might be: An integer for currencies like `JPY` that are not typically fractional. A decimal fraction for currencies like `TND` that are subdivided into thousandths. For the required number of decimal places for a currency code, see [Currency Codes](/api/rest/reference/currency-codes/). */ value: string; } export const moneySchema: Schema = object({ currencyCode: ['currency_code', string()], value: ['value', string()], });