Êëàññ Authorization (Authorization.java)
Ëèñòèíã 5.4. Êëàññ Authorization (Authorization.java)
package com.XmlEcomBook.Chap05;
public class Authorization {
private boolean approved = false;
private String reason = "Unknown";
//reason for a denial
private String authorizationCode;
// auth code from patment service
public boolean isApproved() {
return approved;
}
public void setApproved( boolean newApproved ) {
approved = newApproved;
}
public String getReason() {
return reason;
}
public void setReason( String newReason ) {
reason = newReason;
}
public String getAuthorizationCode() {
return authorizationCode;
}
public void setAuthorizationCode( String newAuthCode ) {
authorizationCode = newAuthCode;
}
}
Ñîäåðæàíèå ðàçäåëà