1
0
Files
PayPal-PHP-Server-SDK/doc/models/money.md
Patrick Powers 504c367386 Release 0.7.0
Beta Release 0.7.0 including:

- Bug fixes
- Updated model/function names
- Updated models to reflect changes in APIs
2025-03-20 13:18:55 -05:00

1.1 KiB

Money

The currency and amount for a financial transaction, such as a balance or payment due.

Structure

Money

Fields

Name Type Tags Description Getter Setter
currencyCode string Required The three-character ISO-4217 currency code that identifies the currency.
Constraints: Minimum Length: 3, Maximum Length: 3
getCurrencyCode(): string setCurrencyCode(string currencyCode): void
value string Required 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.
Constraints: Maximum Length: 32, Pattern: ^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$
getValue(): string setValue(string value): void

Example (as JSON)

{
  "currency_code": "currency_code6",
  "value": "value2"
}