com.unzer.payment.PaymentError Maven / Gradle / Ivy
package com.unzer.payment;
/*-
* #%L
* Unzer Java SDK
* %%
* Copyright (C) 2020 Unzer E-Com GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
public class PaymentError {
public PaymentError() {
super();
}
public PaymentError(String merchantMessage, String customerMessage, String code) {
super();
this.merchantMessage = merchantMessage;
this.customerMessage = customerMessage;
this.code = code;
}
private String merchantMessage;
private String customerMessage;
private String code;
public String getMerchantMessage() {
return merchantMessage;
}
public void setMerchantMessage(String merchantMessage) {
this.merchantMessage = merchantMessage;
}
public String getCustomerMessage() {
return customerMessage;
}
public void setCustomerMessage(String customerMessage) {
this.customerMessage = customerMessage;
}
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
@Override
public String toString() {
return "{merchantMessage:" + merchantMessage + ", customerMessage:" + customerMessage + ", code:" + code + "}";
}
}