| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- package com.zipcoder.payment;
-
- public class PayPal implements Payment {
- Long id;
- String payerName;
- String email;
-
- public PayPal(Long id, String payerName, String email) {
- this.id = id;
- this.payerName = payerName;
- this.email = email;
- }
-
- public Long getId() {
- return id;
- }
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public String getPayerName() {
- return payerName;
- }
-
- public void setPayerName(String payerName) {
- this.payerName = payerName;
- }
-
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public String getShortDescription(){
- return "Paypal " + getPayerName() + " " + getEmail();
- }
-
- public int compareTo(Payment p) {
- return this.getShortDescription().compareTo(p.getShortDescription());
- }
- }
|