forked from AuthorizeNet/sdk-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPayment.java
More file actions
47 lines (34 loc) · 1.02 KB
/
Payment.java
File metadata and controls
47 lines (34 loc) · 1.02 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
package net.authorize.data.xml;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlRootElement;
import net.authorize.data.creditcard.CreditCard;
@XmlRootElement
public class Payment implements Serializable {
private static final long serialVersionUID = 1L;
private CreditCard credit_card;
private BankAccount bank_account;
protected Payment(){
}
public static Payment createPayment(CreditCard in_credit) {
Payment payment = new Payment();
payment.credit_card = in_credit;
return payment;
}
public static Payment createPayment(BankAccount in_account) {
Payment payment = new Payment();
payment.bank_account = in_account;
return payment;
}
public BankAccount getBankAccount() {
return bank_account;
}
public void setBankAccount(BankAccount bank_account) {
this.bank_account = bank_account;
}
public CreditCard getCreditCard() {
return credit_card;
}
public void setCreditCard(CreditCard credit_card) {
this.credit_card = credit_card;
}
}