com.checkout.payments.CaptureRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkout-sdk-java Show documentation
Show all versions of checkout-sdk-java Show documentation
Checkout SDK for Java https://checkout.com
package com.checkout.payments;
import com.checkout.common.AmountAllocations;
import com.checkout.common.MarketplaceData;
import com.checkout.payments.request.PaymentCustomerRequest;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public final class CaptureRequest {
private Long amount;
@SerializedName("capture_type")
private CaptureType captureType;
private String reference;
private PaymentCustomerRequest customer;
private String description;
@SerializedName("billing_descriptor")
private BillingDescriptor billingDescriptor;
private ShippingDetails shipping;
private List items;
/**
* @deprecated This property will be removed in the future, and should be used
* {@link CaptureRequest#amountAllocations} instead
*/
@Deprecated
private MarketplaceData marketplace;
@SerializedName("amount_allocations")
private List amountAllocations;
private ProcessingSettings processing;
@Builder.Default
private Map metadata = new HashMap<>();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy