| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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 void setId(Long id) {
- this.id = id;
- }
-
- 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 "+ payerName+" "+email;
- }
-
- public Long getId() {
- return id;
- }
-
- public String getPayerName() {
- return payerName;
- }
-
- public int compareTo(Payment o) {
- return this.getShortDescription().compareTo(o.getShortDescription());
- }
- }
|