com.truelayer.java.payments.entities.CreatePaymentRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelayer-java Show documentation
Show all versions of truelayer-java Show documentation
TrueLayer Java SDK for https://truelayer.com
package com.truelayer.java.payments.entities;
import com.truelayer.java.entities.CurrencyCode;
import com.truelayer.java.entities.RelatedProducts;
import com.truelayer.java.entities.User;
import com.truelayer.java.payments.entities.paymentmethod.PaymentMethod;
import java.util.Map;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
@Builder
@Getter
@ToString
@EqualsAndHashCode
public class CreatePaymentRequest {
private int amountInMinor;
private CurrencyCode currency;
private PaymentMethod paymentMethod;
private User user;
private Map metadata;
/**
* Optional field. Not available when creating recurring payments.
*/
private RelatedProducts relatedProducts;
/**
* Optional field for configuring risk assessment and the payment_creditable webhook
*/
private RiskAssessment riskAssessment;
}