Skip to content

Commit

Permalink
Extend MTI enum (#153)
Browse files Browse the repository at this point in the history
* Add Reversal Request Response to MTI enum

* Add 0180 and 0190

* Add administrative messages

* specify that 0180 is positive

* fix whitespace

Co-authored-by: louis <louis@thoughtmachine.net>
  • Loading branch information
louisheath and louis authored Dec 8, 2021
1 parent 4a2a193 commit 605da49
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,18 @@ const (
// AuthorizationAdvice is when the point-of-sale device breaks down and you have to sign a voucher
AuthorizationAdvice MesssageTypeIndicator = "0120"

// AuthorizationAdviceRepeat used top repeat If the advice times out
// AuthorizationAdviceRepeat used to repeat if the advice times out
AuthorizationAdviceRepeat MesssageTypeIndicator = "0121"

// IssuerResponseToAuthorizationAdvice is a confirmation of receipt of authorization advice
IssuerResponseToAuthorizationAdvice MesssageTypeIndicator = "0130"

// AuthorizationPositiveAcknowledgement indicates that an Authorization Response was received
AuthorizationPositiveAcknowledgement MesssageTypeIndicator = "0180"

// AuthorizationNegativeAcknowledgement indicates that an Authorization Response or Reversal Response was late or invalid
AuthorizationNegativeAcknowledgement MesssageTypeIndicator = "0190"

// AcquirerFinancialRequest is a request for funds, typically from an ATM or pinned point-of-sale device
AcquirerFinancialRequest MesssageTypeIndicator = "0200"

Expand All @@ -31,18 +37,21 @@ const (
// AcquirerFinancialAdviceRepeat is used if the advice times out
AcquirerFinancialAdviceRepeat MesssageTypeIndicator = "0221"

// IssuerResponseToFinancialAdvice is a confirmation of receipt of financial advice
// IssuerResponseToFinancialAdvice is a confirmation of receipt of financial advice
IssuerResponseToFinancialAdvice MesssageTypeIndicator = "0230"

// BatchUpload is a file update/transfer advice
BatchUpload MesssageTypeIndicator = "0320"

// BatchUploadResponse is a file update/transfer advice response
// BatchUploadResponse is a file update/transfer advice response
BatchUploadResponse MesssageTypeIndicator = "0330"

// AcquirerReversalRequest is used to reverses a transaction
// AcquirerReversalRequest is used to reverse a transaction
AcquirerReversalRequest MesssageTypeIndicator = "0400"

// AcquirerReversalResponse is a response to a reversal request
AcquirerReversalResponse MesssageTypeIndicator = "0410"

// AcquirerReversalAdvice
AcquirerReversalAdvice MesssageTypeIndicator = "0420"

Expand All @@ -52,6 +61,18 @@ const (
// BatchSettlementResponse is a card acceptor reconciliation request response
BatchSettlementResponse MesssageTypeIndicator = "0510"

// AdministrativeRequest is a message delivering administrative data, often free-form and potentially indicating a failure message
AdministrativeRequest MesssageTypeIndicator = "0600"

// AdministrativeResponse is a response to an administrative request
AdministrativeResponse MesssageTypeIndicator = "0610"

// AdministrativeAdvice is an administrative request with stronger delivery guarantees
AdministrativeAdvice MesssageTypeIndicator = "0620"

// AdministrativeAdviceResponse is a response to an administrative advice
AdministrativeAdviceResponse MesssageTypeIndicator = "0630"

// NetworkManagementRequest is used in hypercom terminals initialize request. Echo test, logon, logoff etc
NetworkManagementRequest MesssageTypeIndicator = "0800"

Expand Down

0 comments on commit 605da49

Please sign in to comment.