GiftCardPurchase: Difference between revisions

From Barion Documentation
Jump to navigation Jump to search
Line 16: Line 16:
* Must be greater than zero
* Must be greater than zero
* Decimal precision depends on payment currency
* Decimal precision depends on payment currency
|| The total amount of the transaction. This is the amount that is charged towards the payer when completing the payment. The final amount of the transaction. This will overwrite the original amount.
|| The total amount of gift cards.
The allowed number of decimal digits depends on the currency of the payment containing this transaction:
* CZK: two digits
* CZK: two digits
* EUR: two digits
* EUR: two digits
Line 31: Line 30:
** "HUF" (Hungarian forint)
** "HUF" (Hungarian forint)
** "USD" (U.S. dollar)
** "USD" (U.S. dollar)
|| The currency of the payment. Must be supplied in ISO 4217 format. This affects all transactions included in the payment; it is not possible to define multiple transactions in different currencies.
|| The currency of the gift cards. Must be supplied in ISO 4217 format.
|-
|-
| Count || int ||
* Required
|| The number of gift cards purchased.
|}
|}

Revision as of 08:36, 18 July 2019

GiftCardPurchase structure

This structure describes the gift cards purchased in a payment process.

Included in

Re-order indicator are used in the following structures:

Properties

Property name Property type Limitations and constraints Description
Amount decimal
  • Required
  • Must be greater than zero
  • Decimal precision depends on payment currency
The total amount of gift cards.
  • CZK: two digits
  • EUR: two digits
  • HUF: zero digits
  • USD: two digits
Currency string
  • Required
  • Required length: 3 characters
  • Accepted values:
    • "CZK" (Czech crown)
    • "EUR" (Euro)
    • "HUF" (Hungarian forint)
    • "USD" (U.S. dollar)
The currency of the gift cards. Must be supplied in ISO 4217 format.
Count int
  • Required
The number of gift cards purchased.