Class CaptureRequest


  • public final class CaptureRequest
    extends java.lang.Object
    • 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 new CaptureRequest instance.
        Parameters:
        amount -
        captureType -
        reference -
        customer -
        description -
        billingDescriptor -
        shipping -
        items -
        marketplace -
        amountAllocations -
        processing -
        metadata -
    • Method Detail

      • getAmount

        public java.lang.Long getAmount()
      • getReference

        public java.lang.String getReference()
      • getDescription

        public java.lang.String getDescription()
      • getMarketplace

        @Deprecated
        public MarketplaceData getMarketplace()
        Deprecated.
        This property will be removed in the future, and should be used amountAllocations instead
      • getAmountAllocations

        public java.util.List<AmountAllocations> getAmountAllocations()
      • 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)
      • setDescription

        public void setDescription​(java.lang.String description)
      • setBillingDescriptor

        public void setBillingDescriptor​(BillingDescriptor billingDescriptor)
      • 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 used amountAllocations instead
      • setAmountAllocations

        public void setAmountAllocations​(java.util.List<AmountAllocations> amountAllocations)
      • setMetadata

        public void setMetadata​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object