com.checkout.payments.response.PaymentResponse 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.response;
import com.checkout.common.Currency;
import com.checkout.common.CustomerResponse;
import com.checkout.common.Resource;
import com.checkout.payments.PaymentProcessing;
import com.checkout.payments.PaymentRecipient;
import com.checkout.payments.PaymentStatus;
import com.checkout.payments.RiskAssessment;
import com.checkout.payments.ShippingDetails;
import com.checkout.payments.ThreeDSEnrollment;
import com.checkout.payments.response.source.ResponseSource;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import java.io.Serializable;
import java.time.Instant;
import java.util.HashMap;
import java.util.Map;
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public final class PaymentResponse extends Resource implements Serializable {
private ResponseSource source;
private String id;
@SerializedName("action_id")
private String actionId;
private Long amount;
private Currency currency;
private boolean approved;
private PaymentStatus status;
@SerializedName("auth_code")
private String authCode;
@SerializedName("response_code")
private String responseCode;
@SerializedName("response_summary")
private String responseSummary;
@SerializedName("expires_on")
private Instant expiresOn;
@SerializedName("3ds")
private ThreeDSEnrollment threeDSEnrollment;
private RiskAssessment risk;
private CustomerResponse customer;
private PaymentResponseBalances balances;
@SerializedName("processed_on")
private Instant processedOn;
private String reference;
private PaymentProcessing processing;
private String eci;
@SerializedName("scheme_id")
private String schemeId;
@SerializedName("payment_ip")
private String paymentIp;
private PaymentRecipient recipient;
private ShippingDetails shipping;
private String description;
private Map metadata = new HashMap<>();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy