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

com.checkout.payments.previous.request.PayoutRequest Maven / Gradle / Ivy

There is a newer version: 6.4.2
Show newest version
package com.checkout.payments.previous.request;

import com.checkout.common.Currency;
import com.checkout.common.CustomerRequest;
import com.checkout.payments.BillingDescriptor;
import com.checkout.payments.PaymentRecipient;
import com.checkout.payments.PaymentType;
import com.checkout.payments.RiskRequest;
import com.checkout.payments.ShippingDetails;
import com.checkout.payments.previous.FundTransferType;
import com.checkout.payments.previous.request.destination.PaymentRequestDestination;
import com.google.gson.annotations.SerializedName;
import lombok.Builder;
import lombok.Data;

import java.time.Instant;
import java.util.HashMap;
import java.util.Map;

@Data
@Builder
public final class PayoutRequest {

    private PaymentRequestDestination destination;

    private Long amount;

    @SerializedName("fund_transfer_type")
    private FundTransferType fundTransferType;

    private Currency currency;

    @SerializedName("payment_type")
    private PaymentType paymentType;

    private String reference;

    private String description;

    private Boolean capture;

    @SerializedName("capture_on")
    private Instant captureOn;

    private CustomerRequest customer;

    @SerializedName("billing_descriptor")
    private BillingDescriptor billingDescriptor;

    private ShippingDetails shipping;

    @SerializedName("previous_payment_id")
    private String previousPaymentId;

    private RiskRequest risk;

    @SerializedName("success_url")
    private String successUrl;

    @SerializedName("failure_url")
    private String failureUrl;

    @SerializedName("payment_ip")
    private String paymentIp;

    private PaymentRecipient recipient;

    @Builder.Default
    private Map metadata = new HashMap<>();

    @Builder.Default
    private Map processing = new HashMap<>();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy