Class PaymentRequest
- java.lang.Object
-
- com.checkout.payments.previous.request.PaymentRequest
-
public final class PaymentRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentRequest.PaymentRequestBuilder
-
Constructor Summary
Constructors Constructor Description PaymentRequest()PaymentRequest(AbstractRequestSource source, java.lang.Long amount, Currency currency, PaymentType paymentType, java.lang.Boolean merchantInitiated, java.lang.String reference, java.lang.String description, java.lang.Boolean capture, java.time.Instant captureOn, CustomerRequest customer, BillingDescriptor billingDescriptor, ShippingDetails shipping, ThreeDSRequest threeDS, java.lang.String previousPaymentId, RiskRequest risk, java.lang.String successUrl, java.lang.String failureUrl, java.lang.String paymentIp, PaymentRecipient recipient, ProcessingSettings processing, java.util.Map<java.lang.String,java.lang.Object> metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentRequest.PaymentRequestBuilderbuilder()booleanequals(java.lang.Object o)java.lang.LonggetAmount()BillingDescriptorgetBillingDescriptor()java.lang.BooleangetCapture()java.time.InstantgetCaptureOn()CurrencygetCurrency()CustomerRequestgetCustomer()java.lang.StringgetDescription()java.lang.StringgetFailureUrl()java.lang.BooleangetMerchantInitiated()java.util.Map<java.lang.String,java.lang.Object>getMetadata()java.lang.StringgetPaymentIp()PaymentTypegetPaymentType()java.lang.StringgetPreviousPaymentId()ProcessingSettingsgetProcessing()PaymentRecipientgetRecipient()java.lang.StringgetReference()RiskRequestgetRisk()ShippingDetailsgetShipping()AbstractRequestSourcegetSource()java.lang.StringgetSuccessUrl()ThreeDSRequestgetThreeDS()inthashCode()voidsetAmount(java.lang.Long amount)voidsetBillingDescriptor(BillingDescriptor billingDescriptor)voidsetCapture(java.lang.Boolean capture)voidsetCaptureOn(java.time.Instant captureOn)voidsetCurrency(Currency currency)voidsetCustomer(CustomerRequest customer)voidsetDescription(java.lang.String description)voidsetFailureUrl(java.lang.String failureUrl)voidsetMerchantInitiated(java.lang.Boolean merchantInitiated)voidsetMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)voidsetPaymentIp(java.lang.String paymentIp)voidsetPaymentType(PaymentType paymentType)voidsetPreviousPaymentId(java.lang.String previousPaymentId)voidsetProcessing(ProcessingSettings processing)voidsetRecipient(PaymentRecipient recipient)voidsetReference(java.lang.String reference)voidsetRisk(RiskRequest risk)voidsetShipping(ShippingDetails shipping)voidsetSource(AbstractRequestSource source)voidsetSuccessUrl(java.lang.String successUrl)voidsetThreeDS(ThreeDSRequest threeDS)java.lang.StringtoString()
-
-
-
Constructor Detail
-
PaymentRequest
public PaymentRequest()
-
PaymentRequest
public PaymentRequest(AbstractRequestSource source, java.lang.Long amount, Currency currency, PaymentType paymentType, java.lang.Boolean merchantInitiated, java.lang.String reference, java.lang.String description, java.lang.Boolean capture, java.time.Instant captureOn, CustomerRequest customer, BillingDescriptor billingDescriptor, ShippingDetails shipping, ThreeDSRequest threeDS, java.lang.String previousPaymentId, RiskRequest risk, java.lang.String successUrl, java.lang.String failureUrl, java.lang.String paymentIp, PaymentRecipient recipient, ProcessingSettings processing, java.util.Map<java.lang.String,java.lang.Object> metadata)
-
-
Method Detail
-
builder
public static PaymentRequest.PaymentRequestBuilder builder()
-
getSource
public AbstractRequestSource getSource()
-
getAmount
public java.lang.Long getAmount()
-
getCurrency
public Currency getCurrency()
-
getPaymentType
public PaymentType getPaymentType()
-
getMerchantInitiated
public java.lang.Boolean getMerchantInitiated()
-
getReference
public java.lang.String getReference()
-
getDescription
public java.lang.String getDescription()
-
getCapture
public java.lang.Boolean getCapture()
-
getCaptureOn
public java.time.Instant getCaptureOn()
-
getCustomer
public CustomerRequest getCustomer()
-
getBillingDescriptor
public BillingDescriptor getBillingDescriptor()
-
getShipping
public ShippingDetails getShipping()
-
getThreeDS
public ThreeDSRequest getThreeDS()
-
getPreviousPaymentId
public java.lang.String getPreviousPaymentId()
-
getRisk
public RiskRequest getRisk()
-
getSuccessUrl
public java.lang.String getSuccessUrl()
-
getFailureUrl
public java.lang.String getFailureUrl()
-
getPaymentIp
public java.lang.String getPaymentIp()
-
getRecipient
public PaymentRecipient getRecipient()
-
getProcessing
public ProcessingSettings getProcessing()
-
getMetadata
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
-
setSource
public void setSource(AbstractRequestSource source)
-
setAmount
public void setAmount(java.lang.Long amount)
-
setCurrency
public void setCurrency(Currency currency)
-
setPaymentType
public void setPaymentType(PaymentType paymentType)
-
setMerchantInitiated
public void setMerchantInitiated(java.lang.Boolean merchantInitiated)
-
setReference
public void setReference(java.lang.String reference)
-
setDescription
public void setDescription(java.lang.String description)
-
setCapture
public void setCapture(java.lang.Boolean capture)
-
setCaptureOn
public void setCaptureOn(java.time.Instant captureOn)
-
setCustomer
public void setCustomer(CustomerRequest customer)
-
setBillingDescriptor
public void setBillingDescriptor(BillingDescriptor billingDescriptor)
-
setShipping
public void setShipping(ShippingDetails shipping)
-
setThreeDS
public void setThreeDS(ThreeDSRequest threeDS)
-
setPreviousPaymentId
public void setPreviousPaymentId(java.lang.String previousPaymentId)
-
setRisk
public void setRisk(RiskRequest risk)
-
setSuccessUrl
public void setSuccessUrl(java.lang.String successUrl)
-
setFailureUrl
public void setFailureUrl(java.lang.String failureUrl)
-
setPaymentIp
public void setPaymentIp(java.lang.String paymentIp)
-
setRecipient
public void setRecipient(PaymentRecipient recipient)
-
setProcessing
public void setProcessing(ProcessingSettings processing)
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-