1
0
Files
Patrick Powers 6da8b9b5b8 1.1.0 Release (#44)
* Automated commit message

* add changelog

---------

Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
Co-authored-by: Patrick Powers <patickpowers@hey.com>
2025-05-27 13:31:17 -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"
}