Package com.checkout.payments.request
Class PaymentRequest
- java.lang.Object
-
- com.checkout.payments.request.PaymentRequest
-
public final class PaymentRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentRequest.PaymentRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static PaymentRequest.PaymentRequestBuilderbuilder()booleanequals(java.lang.Object o)java.lang.LonggetAmount()java.util.List<AmountAllocations>getAmountAllocations()AuthenticationgetAuthentication()AuthorizationTypegetAuthorizationType()BillingDescriptorgetBillingDescriptor()java.lang.BooleangetCapture()java.time.InstantgetCaptureOn()CurrencygetCurrency()CustomerRequestgetCustomer()java.lang.StringgetDescription()java.lang.StringgetFailureUrl()PaymentInstructiongetInstruction()java.util.List<ProductRequest>getItems()MarketplaceDatagetMarketplace()Deprecated.This property will be removed in the future, and should be usedamountAllocationsinsteadjava.lang.BooleangetMerchantInitiated()java.util.Map<java.lang.String,java.lang.Object>getMetadata()PartialAuthorizationgetPartialAuthorization()java.lang.StringgetPaymentContextId()java.lang.StringgetPaymentIp()PaymentPlangetPaymentPlan()PaymentTypegetPaymentType()java.lang.StringgetPreviousPaymentId()ProcessingSettingsgetProcessing()java.lang.StringgetProcessingChannelId()PaymentRecipientgetRecipient()java.lang.StringgetReference()PaymentRetryRequestgetRetry()RiskRequestgetRisk()PaymentSegmentgetSegment()PaymentSendergetSender()ShippingDetailsgetShipping()AbstractRequestSourcegetSource()java.lang.StringgetSuccessUrl()ThreeDSRequestgetThreeDS()inthashCode()voidsetAmount(java.lang.Long amount)voidsetAmountAllocations(java.util.List<AmountAllocations> amountAllocations)voidsetAuthentication(Authentication authentication)voidsetAuthorizationType(AuthorizationType authorizationType)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)voidsetInstruction(PaymentInstruction instruction)voidsetItems(java.util.List<ProductRequest> items)voidsetMarketplace(MarketplaceData marketplace)Deprecated.This property will be removed in the future, and should be usedamountAllocationsinsteadvoidsetMerchantInitiated(java.lang.Boolean merchantInitiated)voidsetMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)voidsetPartialAuthorization(PartialAuthorization partialAuthorization)voidsetPaymentContextId(java.lang.String paymentContextId)voidsetPaymentIp(java.lang.String paymentIp)voidsetPaymentPlan(PaymentPlan paymentPlan)voidsetPaymentType(PaymentType paymentType)voidsetPreviousPaymentId(java.lang.String previousPaymentId)voidsetProcessing(ProcessingSettings processing)voidsetProcessingChannelId(java.lang.String processingChannelId)voidsetRecipient(PaymentRecipient recipient)voidsetReference(java.lang.String reference)voidsetRetry(PaymentRetryRequest retry)voidsetRisk(RiskRequest risk)voidsetSegment(PaymentSegment segment)voidsetSender(PaymentSender sender)voidsetShipping(ShippingDetails shipping)voidsetSource(AbstractRequestSource source)voidsetSuccessUrl(java.lang.String successUrl)voidsetThreeDS(ThreeDSRequest threeDS)java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static PaymentRequest.PaymentRequestBuilder builder()
-
getPaymentContextId
public java.lang.String getPaymentContextId()
-
getSource
public AbstractRequestSource getSource()
-
getAmount
public java.lang.Long getAmount()
-
getCurrency
public Currency getCurrency()
-
getPaymentType
public PaymentType getPaymentType()
-
getPaymentPlan
public PaymentPlan getPaymentPlan()
-
getMerchantInitiated
public java.lang.Boolean getMerchantInitiated()
-
getReference
public java.lang.String getReference()
-
getDescription
public java.lang.String getDescription()
-
getAuthentication
public Authentication getAuthentication()
-
getAuthorizationType
public AuthorizationType getAuthorizationType()
-
getPartialAuthorization
public PartialAuthorization getPartialAuthorization()
-
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()
-
getProcessingChannelId
public java.lang.String getProcessingChannelId()
-
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()
-
getSender
public PaymentSender getSender()
-
getRecipient
public PaymentRecipient getRecipient()
-
getMarketplace
@Deprecated public MarketplaceData getMarketplace()
Deprecated.This property will be removed in the future, and should be usedamountAllocationsinstead
-
getAmountAllocations
public java.util.List<AmountAllocations> getAmountAllocations()
-
getProcessing
public ProcessingSettings getProcessing()
-
getItems
public java.util.List<ProductRequest> getItems()
-
getRetry
public PaymentRetryRequest getRetry()
-
getMetadata
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
-
getSegment
public PaymentSegment getSegment()
-
getInstruction
public PaymentInstruction getInstruction()
-
setPaymentContextId
public void setPaymentContextId(java.lang.String paymentContextId)
-
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)
-
setPaymentPlan
public void setPaymentPlan(PaymentPlan paymentPlan)
-
setMerchantInitiated
public void setMerchantInitiated(java.lang.Boolean merchantInitiated)
-
setReference
public void setReference(java.lang.String reference)
-
setDescription
public void setDescription(java.lang.String description)
-
setAuthentication
public void setAuthentication(Authentication authentication)
-
setAuthorizationType
public void setAuthorizationType(AuthorizationType authorizationType)
-
setPartialAuthorization
public void setPartialAuthorization(PartialAuthorization partialAuthorization)
-
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)
-
setProcessingChannelId
public void setProcessingChannelId(java.lang.String processingChannelId)
-
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)
-
setSender
public void setSender(PaymentSender sender)
-
setRecipient
public void setRecipient(PaymentRecipient recipient)
-
setMarketplace
@Deprecated public void setMarketplace(MarketplaceData marketplace)
Deprecated.This property will be removed in the future, and should be usedamountAllocationsinstead
-
setAmountAllocations
public void setAmountAllocations(java.util.List<AmountAllocations> amountAllocations)
-
setProcessing
public void setProcessing(ProcessingSettings processing)
-
setItems
public void setItems(java.util.List<ProductRequest> items)
-
setRetry
public void setRetry(PaymentRetryRequest retry)
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
-
setSegment
public void setSegment(PaymentSegment segment)
-
setInstruction
public void setInstruction(PaymentInstruction instruction)
-
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
-
-