1
0
Files
PayPal-PHP-Server-SDK/doc/models/exchange-rate.md
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.2 KiB

Exchange Rate

The exchange rate that determines the amount to convert from one currency to another currency.

Structure

ExchangeRate

Fields

Name Type Tags Description Getter Setter
sourceCurrency ?string Optional The three-character ISO-4217 currency code that identifies the currency.

Constraints: Minimum Length: 3, Maximum Length: 3
getSourceCurrency(): ?string setSourceCurrency(?string sourceCurrency): void
targetCurrency ?string Optional The three-character ISO-4217 currency code that identifies the currency.

Constraints: Minimum Length: 3, Maximum Length: 3
getTargetCurrency(): ?string setTargetCurrency(?string targetCurrency): void
value ?string Optional The target currency amount. Equivalent to one unit of the source currency. Formatted as integer or decimal value with one to 15 digits to the right of the decimal point. getValue(): ?string setValue(?string value): void

Example (as JSON)

{
  "source_currency": "source_currency0",
  "target_currency": "target_currency2",
  "value": "value2"
}