Overview
Members-Overview
|
:timapi.Amount |
|
:Number |
|
:Number |
|
:Number |
Methods-Overview
- copy(SubTransaction) → {timapi.SubTransaction}
- toString() → {String}
Constructor
new SubTransaction()
Create empty SubTransaction.
If copySubTrx is not undefined initializes values with values from copySubTrx.
Member-List
amount :timapi.Amount
Amount.
In a request defines the original amount for the transaction (given by ECR), in response
the final authorized amount (given by host) in minor units.
In a transaction request this field defines the amount in minor units that shall be
authorized for this transaction.
In a transcation response this field defines the amount in minor units that has actually
been authorized. If the full amount has been authorized as sent in the transaction request,
the value of the field in the request and the response is equal.
PartialApproval: If the transaction has been approved only partially by the aquiring host,
the terminal must return on SIXml the actual authorized amount that has been returned from
host to terminal in the authorization response.
Example for ep2: The ECR sends an 10000 field on SIXml to the
terminal in the transaction request and the terminal sends this amount as
10000 (=100 CHF) in the authorization request to the ep2 aquiring
host. The host then only can partially approve the transaction and returns the partial
approval amount 8000 (= 80 CHF) in the authorization response to
the terminal. The terminal then must return the actually approved amount back to the ECR,
8000
The amount is additionally defined by the corresponding sixml:Currency and sixml:Exponent
attributes. An amount can have a negative value, e.g. in case of returning a gas
canister.
Example: 10000 This is CHF 100.00
Example: -10000 This is CHF -100.00
Specification: banking.
Methods
(static) copy(SubTransaction) → {timapi.SubTransaction}
Creates a copy of an timapi.SubTransaction object
Parameters:
Name | Type | Description |
---|---|---|
SubTransaction |
timapi.SubTransaction | Original |
Returns:
Copy of original
Type: timapi.SubTransaction
toString() → {String}
String representation for debugging purpose.
Returns:
String representation
Type: String