Difference between revisions of "GiftCardPurchase"

From Barion Documentation
Jump to navigation Jump to search
(Properties)
(Properties)
Line 13: Line 13:
 
|-
 
|-
 
| Amount || decimal ||  
 
| Amount || decimal ||  
* Required
+
* Optional
 
* Must be greater than zero
 
* Must be greater than zero
 
* Decimal precision depends on payment currency
 
* Decimal precision depends on payment currency
Line 23: Line 23:
 
|-
 
|-
 
| Currency || string ||  
 
| Currency || string ||  
* Required
+
* Optional
 
* Required length: 3 characters
 
* Required length: 3 characters
 
* Accepted values:  
 
* Accepted values:  
Line 33: Line 33:
 
|-
 
|-
 
| Count || int ||
 
| Count || int ||
* Required
+
* Optional
 +
* Must be between 1 and 99
 
|| The number of gift cards purchased.
 
|| The number of gift cards purchased.
 
|}
 
|}

Revision as of 09:08, 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
  • Optional
  • 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
  • Optional
  • 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
  • Optional
  • Must be between 1 and 99
The number of gift cards purchased.