Search in sources :

Example 1 with ApprovePayoutRequest

use of com.ingenico.connect.gateway.sdk.java.domain.payout.ApprovePayoutRequest in project connect-sdk-java by Ingenico-ePayments.

the class ApprovePayoutExample method example.

@SuppressWarnings("unused")
public void example() throws URISyntaxException, IOException {
    Client client = getClient();
    try {
        ApprovePayoutRequest body = new ApprovePayoutRequest();
        body.setDatePayout("20150102");
        PayoutResponse response = client.merchant("merchantId").payouts().approve("payoutId", body);
    } finally {
        client.close();
    }
}
Also used : ApprovePayoutRequest(com.ingenico.connect.gateway.sdk.java.domain.payout.ApprovePayoutRequest) Client(com.ingenico.connect.gateway.sdk.java.Client) PayoutResponse(com.ingenico.connect.gateway.sdk.java.domain.payout.PayoutResponse)

Aggregations

Client (com.ingenico.connect.gateway.sdk.java.Client)1 ApprovePayoutRequest (com.ingenico.connect.gateway.sdk.java.domain.payout.ApprovePayoutRequest)1 PayoutResponse (com.ingenico.connect.gateway.sdk.java.domain.payout.PayoutResponse)1