Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend MTI enum #153

Merged
merged 5 commits into from
Dec 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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