forked from AuthorizeNet/sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTransactionType.java
More file actions
42 lines (36 loc) · 975 Bytes
/
TransactionType.java
File metadata and controls
42 lines (36 loc) · 975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package net.authorize;
/**
* The credit card transaction types supported by the payment gateway.
*
*/
public enum TransactionType {
AUTH_CAPTURE("AUTH_CAPTURE", "profileTransAuthCapture"),
AUTH_ONLY("AUTH_ONLY", "profileTransAuthOnly"),
PRIOR_AUTH_CAPTURE("PRIOR_AUTH_CAPTURE", "profileTransPriorAuthCapture"),
CAPTURE_ONLY("CAPTURE_ONLY", "profileTransCaptureOnly"),
CREDIT("CREDIT", "profileTransRefund"),
UNLINKED_CREDIT("CREDIT", "profileTransRefund"),
VOID("VOID", "profileTransVoid");
final private String value;
final private String cimValue;
private TransactionType(String value, String cimValue) {
this.value = value;
this.cimValue = cimValue;
}
/**
* Return the value needed for SIM/AIM integrations.
*
* @return the value
*/
public String getValue() {
return value;
}
/**
* Return the value needed for CIM integrations.
*
* @return cim transaction type value.
*/
public String getCIMValue() {
return cimValue;
}
}