com.unzer.payment.Cancel 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%
*/
import com.unzer.payment.communication.json.JsonObject;
import com.unzer.payment.paymenttypes.PaymentType;
import java.math.BigDecimal;
/**
* Business object for Cancellations
*
* @author Unzer E-Com GmbH
*
*/
public class Cancel extends AbstractTransaction {
private BigDecimal amountGross;
private BigDecimal amountNet;
private BigDecimal amountVat;
public Cancel() {
super();
}
public Cancel(Unzer unzer) {
super(unzer);
}
@Override
public String getTypeUrl() {
return "payments//authorize/cancels";
}
@Override
public PaymentType map(PaymentType paymentType, JsonObject jsonObject) {
return null;
}
public BigDecimal getAmountGross() {
return amountGross;
}
public void setAmountGross(BigDecimal amountGross) {
this.amountGross = amountGross;
}
public BigDecimal getAmountNet() {
return amountNet;
}
public void setAmountNet(BigDecimal amountNet) {
this.amountNet = amountNet;
}
public BigDecimal getAmountVat() {
return amountVat;
}
public void setAmountVat(BigDecimal amountVat) {
this.amountVat = amountVat;
}
}