Package com.checkout.payments
Class CaptureRequest
- java.lang.Object
-
- com.checkout.payments.CaptureRequest
-
public final class CaptureRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaptureRequest.CaptureRequestBuilder
-
Constructor Summary
Constructors Constructor Description CaptureRequest()CaptureRequest(java.lang.Long amount, CaptureType captureType, java.lang.String reference, PaymentCustomerRequest customer, java.lang.String description, BillingDescriptor billingDescriptor, ShippingDetails shipping, java.util.List<ProductRequest> items, MarketplaceData marketplace, java.util.List<AmountAllocations> amountAllocations, ProcessingSettings processing, java.util.Map<java.lang.String,java.lang.Object> metadata)Creates a newCaptureRequestinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static CaptureRequest.CaptureRequestBuilderbuilder()booleanequals(java.lang.Object o)java.lang.LonggetAmount()java.util.List<AmountAllocations>getAmountAllocations()BillingDescriptorgetBillingDescriptor()CaptureTypegetCaptureType()PaymentCustomerRequestgetCustomer()java.lang.StringgetDescription()java.util.List<ProductRequest>getItems()MarketplaceDatagetMarketplace()Deprecated.This property will be removed in the future, and should be usedamountAllocationsinsteadjava.util.Map<java.lang.String,java.lang.Object>getMetadata()ProcessingSettingsgetProcessing()java.lang.StringgetReference()ShippingDetailsgetShipping()inthashCode()voidsetAmount(java.lang.Long amount)voidsetAmountAllocations(java.util.List<AmountAllocations> amountAllocations)voidsetBillingDescriptor(BillingDescriptor billingDescriptor)voidsetCaptureType(CaptureType captureType)voidsetCustomer(PaymentCustomerRequest customer)voidsetDescription(java.lang.String description)voidsetItems(java.util.List<ProductRequest> items)voidsetMarketplace(MarketplaceData marketplace)Deprecated.This property will be removed in the future, and should be usedamountAllocationsinsteadvoidsetMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)voidsetProcessing(ProcessingSettings processing)voidsetReference(java.lang.String reference)voidsetShipping(ShippingDetails shipping)java.lang.StringtoString()
-
-
-
Constructor Detail
-
CaptureRequest
public CaptureRequest()
-
CaptureRequest
public CaptureRequest(java.lang.Long amount, CaptureType captureType, java.lang.String reference, PaymentCustomerRequest customer, java.lang.String description, BillingDescriptor billingDescriptor, ShippingDetails shipping, java.util.List<ProductRequest> items, MarketplaceData marketplace, java.util.List<AmountAllocations> amountAllocations, ProcessingSettings processing, java.util.Map<java.lang.String,java.lang.Object> metadata)Creates a newCaptureRequestinstance.- Parameters:
amount-captureType-reference-customer-description-billingDescriptor-shipping-items-marketplace-amountAllocations-processing-metadata-
-
-
Method Detail
-
builder
public static CaptureRequest.CaptureRequestBuilder builder()
-
getAmount
public java.lang.Long getAmount()
-
getCaptureType
public CaptureType getCaptureType()
-
getReference
public java.lang.String getReference()
-
getCustomer
public PaymentCustomerRequest getCustomer()
-
getDescription
public java.lang.String getDescription()
-
getBillingDescriptor
public BillingDescriptor getBillingDescriptor()
-
getShipping
public ShippingDetails getShipping()
-
getItems
public java.util.List<ProductRequest> getItems()
-
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()
-
getMetadata
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
-
setAmount
public void setAmount(java.lang.Long amount)
-
setCaptureType
public void setCaptureType(CaptureType captureType)
-
setReference
public void setReference(java.lang.String reference)
-
setCustomer
public void setCustomer(PaymentCustomerRequest customer)
-
setDescription
public void setDescription(java.lang.String description)
-
setBillingDescriptor
public void setBillingDescriptor(BillingDescriptor billingDescriptor)
-
setShipping
public void setShipping(ShippingDetails shipping)
-
setItems
public void setItems(java.util.List<ProductRequest> items)
-
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)
-
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
-
-