Feature: Transaction
- The merchant tries to generate the trx
- The merchant tries to generate a transaction through MIL
- The merchant not qualified tries to generate the trx
- The merchant not qualified tries to generate the trx through MIL
- The merchant tries to generate the transaction with wrong acquirer ID
- The merchant tries to generate the transaction with wrong acquirer ID through MIL
- The budget is completely eroded with one trx
- The budget is completely eroded with one trx through MIL
- The second time a transaction is pre-authorized by the same citizen an error is returned
- The second time a transaction, created through MIL, is pre-authorized by the same citizen an error is returned
- A transaction of 1 cent is authorized
- A transaction, created through MIL, of 1 cent is authorized
- Citizen's budget is completely eroded with 10 trx
- Citizen's budget is completely eroded with 10 trx, created through MIL
- A transaction is not authorized if the budget is eroded
- A transaction, created through MIL, is not authorized if the budget is eroded
- A transaction greater than the budget by 1 cent is authorized
- A transaction, created through MIL, greater than the budget by 1 cent is authorized
- The transaction is not authorized for a citizen which got KO during onboarding
- The transaction, created through MIL, is not authorized for onboarding citizen KO
- The transaction is not authorized for ever registered citizen
- The transaction, created through MIL, is not authorized for ever registered citizen
- The transaction can still be authorized if an ever registered citizen tried to authorize it
- The transaction, created through MIL, can still be authorized if an ever registered citizen tried to authorize it
- The transaction is not generated for an amount equal to 0 cents
- The transaction is not generated for an amount equal to 0 cents through MIL
- The transaction is not generated for an amount equal to -1 cents
- The transaction is not generated for an amount equal to -1 cents through MIL
- With two transactions generated by two merchants for the citizen to the confirmation of a transaction that erodes the budget to the second authorization receives error
- With two transactions generated by two merchants through MIL for the citizen to the confirmation of a transaction that erodes the budget to the second authorization receives error
- If a transaction is authorized by citizen A, B receives an error upon pre-authorizing the same transaction.
- If a transaction, created through MIL, is authorized by citizen A, B receives an error upon pre-authorizing the same transaction.
- 2 transactions cannot be authorized by the same citizen if at least one second has not passed between authorizations.
- 2 transactions, created through MIL, cannot be authorized by the same citizen if at least one second has not passed between authorizations.
- 2 transactions can be authorized by different citizens even if one second has not passed between authorizations.
- 2 transactions, created through MIL, can be authorized by different citizens even if one second has not passed between authorizations.
- One second after a rate limit failure the transaction can be authorized.
- One second after a rate limit failure the transaction, created through MIL, can be authorized.
- 2 transactions are authorized correctly by the same citizen if authorizations are 1 second apart one from the other.
- 2 transactions, created through MIL, are authorized correctly by the same citizen if authorizations are 1 second apart one from the other.
- Citizen A (with eroded budget) fails to authorize a transaction, citizen B fail authorizing the same transaction because it is already assigned
- Citizen A (with eroded budget) fails to authorize a transaction, created through MIL, citizen B fail authorizing the same transaction because it is already assigned
- A citizen can pre-authorize two transactions of maximum amount at the same time
- If citizen A pre-authorizes the transactions X and Y, and the transaction X is authorized eroding A's budget, A receives an error upon authorizing the transaction Y
- If citizen A pre-authorizes the transactions X and Y through MIL, and the transaction X is authorized eroding A's budget, A receives an error upon authorizing the transaction Y
- If citizen A pre-authorizes the transactions X and Y, and the transaction X is authorized eroding A's budget, Y remains identified
- If citizen A pre-authorizes the transactions X and Y through MIL, and the transaction X is authorized eroding A's budget, Y remains identified
- Citizen pre-authorize 2 times a transaction and it is still identified
- Citizen pre-authorize 2 times a transaction through MIL and it is still identified
- Citizen tries to pre-authorize a transaction already pre-authorized by another citizen
- Citizen tries to pre-authorize a transaction, created through MIL, already pre-authorized by another citizen
- Citizen pre-authorizes successfully a transaction already pre-authorized by himself
- Citizen authorizes successfully a transaction already pre-authorized by himself
- Citizen pre-authorizes successfully a transaction, created through MIL, already pre-authorized by himself
- Citizen fails pre-authorizing a non-existing transaction code (chosen at random)
- Citizen authorizes a transaction before pre-authorization
- Budget not completely eroded with one transaction X of amount 300 cents