All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adyen.service.resource.modification.Refund Maven / Gradle / Ivy

There is a newer version: 28.4.0
Show newest version
/**
 *                       ######
 *                       ######
 * ############    ####( ######  #####. ######  ############   ############
 * #############  #####( ######  #####. ######  #############  #############
 *        ######  #####( ######  #####. ######  #####  ######  #####  ######
 * ###### ######  #####( ######  #####. ######  #####  #####   #####  ######
 * ###### ######  #####( ######  #####. ######  #####          #####  ######
 * #############  #############  #############  #############  #####  ######
 *  ############   ############  #############   ############  #####  ######
 *                                      ######
 *                               #############
 *                               ############
 *
 * Adyen Java API Library
 *
 * Copyright (c) 2017 Adyen B.V.
 * This file is open source and available under the MIT license.
 * See the LICENSE file for more info.
 */
package com.adyen.service.resource.modification;

import java.util.Arrays;
import com.adyen.Service;
import com.adyen.service.Resource;

public class Refund extends Resource {

    public Refund(Service service) {
        super(service,
                service.getClient().getConfig().getEndpoint() + "/pal/servlet/Payment/" + service.getClient().getApiVersion() + "/refund",
                Arrays.asList(
                        "merchantAccount",
                        "modificationAmount",
                        "modificationAmount.value",
                        "modificationAmount.currency",
                        "originalReference"
                )
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy