-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCreditRequest.java
More file actions
executable file
·56 lines (42 loc) · 1.25 KB
/
CreditRequest.java
File metadata and controls
executable file
·56 lines (42 loc) · 1.25 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// 9/17/2015 1:32:19 PM
//
package SecureNetRestApiSDK.Api.Requests;
import SNET.Core.HttpMethodEnum;
import SecureNetRestApiSDK.Api.Models.Card;
import SecureNetRestApiSDK.Api.Models.ExtendedInformation;
public class CreditRequest extends SecureNetRequest
{
private double amount;
public double getAmount() {
return amount;
}
public void setAmount(double value) {
amount = value;
}
private Card card;
public Card getCard() {
return card;
}
public void setCard(Card value) {
card = value;
}
/**
* Additional data to assist in reporting, ecommerce or moto transactions,
* and level 2 or level 3 processing. Includes user-defined fields and
* invoice-related information.
*/
private ExtendedInformation extendedInformation;
public ExtendedInformation getExtendedInformation(){
return extendedInformation;
}
public void setExtendedInformation(ExtendedInformation value) {
extendedInformation = value;
}
public String getUri() throws Exception {
return "api/Payments/Credit";
}
public HttpMethodEnum getMethod() throws Exception {
return HttpMethodEnum.POST;
}
}