| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- package com.zipcoder.payment;
-
- public class PayPal implements Payment {
-
-
- private Long id = 0L;
- private String name = "";
- private String description = "";
- private String email = "";
-
- public void setId(Long id) {
- this.id = id;
- }
-
- public Long getId() {
- return id;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getPayerName() {
- return this.name;
- }
-
- @Override
- public String getShortDescription() {
- return "Paypal [" + name + "][" + email + "]";
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
-
- public String getEmail() {
- return this.email;
- }
-
- @Override
- public int compareTo(Payment o) {
- return this.getShortDescription().compareTo(o.getShortDescription());
- }
- }
|