Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Types | List of all members
keyple::calypso::transaction::PoTransaction::SvSettings Class Reference

#include <PoTransaction.h>

Public Types

enum  Operation { Operation::NONE, Operation::RELOAD, Operation::DEBIT }
 
enum  Action { Action::DO, Action::UNDO }
 
enum  LogRead { LogRead::SINGLE, LogRead::ALL }
 
enum  NegativeBalance { NegativeBalance::FORBIDDEN, NegativeBalance::AUTHORIZED }
 

Detailed Description

A set of enumerations used to manage Stored Value transactions

Member Enumeration Documentation

◆ Action

keyple::calypso::transaction::PoTransaction::SvSettings::Action specifies the type of action:

  • Reload: DO loads a positive amount, UNDO loads a negative amount
  • Debit: DO debits a positive amount, UNDO cancels, totally or partially, a previous debit.
Enumerator
DO 
UNDO 

◆ LogRead

keyple::calypso::transaction::PoTransaction::SvSettings::LogRead specifies whether only the log related to the current operation is requested or whether both logs are requested.

Enumerator
SINGLE 

Request the RELOAD or DEBIT log according to the currently specified operation

ALL 

Request both RELOAD and DEBIT logs

◆ NegativeBalance

keyple::calypso::transaction::PoTransaction::SvSettings::NegativeBalance indicates whether negative balances are allowed when debiting the SV

Enumerator
FORBIDDEN 

An SV exception will be raised if the attempted debit of the SV would result in a negative balance.

AUTHORIZED 

Negative balance is allowed

◆ Operation

keyple::calypso::transaction::PoTransaction::SvSettings::Operation specifies the type of operation intended to be carried out

Enumerator
NONE 
RELOAD 

Increase the balance of the stored value

DEBIT 

Decrease the balance of the stored value


The documentation for this class was generated from the following file: