Class Payment
- java.lang.Object
-
- com.mercadopago.net.MPResource
-
- com.mercadopago.resources.payment.Payment
-
public class Payment extends MPResource
Payment class.
-
-
Constructor Summary
Constructors Constructor Description Payment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)PaymentAdditionalInfogetAdditionalInfo()Data that could improve fraud analysis and conversion rates.StringgetAuthorizationCode()Authorization code.StringgetCallbackUrl()URL where mercadopago does the final redirect (only for bank transfers).StringgetCallForAuthorizeId()Gives more detailed information on the current state or rejection cause.PaymentCardgetCard()Card used to pay.LonggetCollectorId()Collector ID.StringgetCorporationId()Corporation identification.StringgetCounterCurrency()Counter currency.BigDecimalgetCouponAmount()Amount of the coupon.StringgetCouponCode()Discount campaign coupon code.StringgetCurrencyId()Currency information.OffsetDateTimegetDateApproved()Approval date.OffsetDateTimegetDateCreated()Creation date.OffsetDateTimegetDateLastUpdated()Last modified date.OffsetDateTimegetDateOfExpiration()Date of expiration.StringgetDeductionSchema()Deduction Schema.StringgetDescription()Payment reason or item title.StringgetDifferentialPricingId()Id of the scheme for the absorption of financing fee.StringgetExternalReference()ID given by the merchant in their system.List<PaymentFeeDetail>getFeeDetails()Fee details.LonggetId()Payment ID.intgetInstallments()Selected quantity of installments.StringgetIntegratorId()Integrator identification.StringgetIssuerId()Payment method issuer.StringgetMerchantAccountId()Merchant Id for complex payment cases.StringgetMerchantNumber()Discount campaign ID.Map<String,Object>getMetadata()Data that can be attached to the payment to record additional attributes of the merchant.OffsetDateTimegetMoneyReleaseDate()Release date.StringgetMoneyReleaseSchema()Release schema.BigDecimalgetNetAmount()Payment net amount.StringgetNotificationUrl()URL where mercadopago will send notifications associated to changes in this payment.StringgetOperationType()Operation type.PaymentOrdergetOrder()Order identifier.PaymentPayergetPayer()Payer information.StringgetPaymentMethodId()Payment method chosen to do the payment.StringgetPaymentMethodOptionId()Payment method option id.StringgetPaymentTypeId()Payment type.StringgetPlatformId()Platform identification.PaymentPointOfInteractiongetPointOfInteraction()Point of interaction.StringgetPosId()Pos id.StringgetProcessingMode()Processing mode to define if an specific merchant id should be used.List<PaymentRefund>getRefunds()Refunds.BigDecimalgetShippingAmount()Shipping amount.LonggetSponsorId()Sponsor Identification.StringgetStatementDescriptor()How will look the payment in the card bill.StringgetStatus()Status.StringgetStatusDetail()Status detail.StringgetStoreId()Store id.List<PaymentTax>getTaxes()Taxes for payments.BigDecimalgetTaxesAmount()Taxes amount.BigDecimalgetTransactionAmount()Amount paid.BigDecimalgetTransactionAmountRefunded()Total refunded amount.PaymentTransactionDetailsgetTransactionDetails()Transaction details.inthashCode()booleanisBinaryMode()When set to true, the payment can only be approved or rejected.booleanisCaptured()If the payment is captured (true) or just reserved (false).booleanisLiveMode()Live mode.-
Methods inherited from class com.mercadopago.net.MPResource
getResponse, setResponse, toString
-
-
-
-
Method Detail
-
getId
public Long getId()
Payment ID.
-
getDateCreated
public OffsetDateTime getDateCreated()
Creation date.
-
getDateApproved
public OffsetDateTime getDateApproved()
Approval date.
-
getDateLastUpdated
public OffsetDateTime getDateLastUpdated()
Last modified date.
-
getDateOfExpiration
public OffsetDateTime getDateOfExpiration()
Date of expiration.
-
getMoneyReleaseDate
public OffsetDateTime getMoneyReleaseDate()
Release date.
-
getMoneyReleaseSchema
public String getMoneyReleaseSchema()
Release schema.
-
getOperationType
public String getOperationType()
Operation type.
-
getIssuerId
public String getIssuerId()
Payment method issuer.
-
getPaymentMethodId
public String getPaymentMethodId()
Payment method chosen to do the payment.
-
getPaymentTypeId
public String getPaymentTypeId()
Payment type.
-
getStatus
public String getStatus()
Status.
-
getStatusDetail
public String getStatusDetail()
Status detail.
-
getCurrencyId
public String getCurrencyId()
Currency information.
-
getDescription
public String getDescription()
Payment reason or item title.
-
isLiveMode
public boolean isLiveMode()
Live mode.
-
getSponsorId
public Long getSponsorId()
Sponsor Identification.
-
getAuthorizationCode
public String getAuthorizationCode()
Authorization code.
-
getIntegratorId
public String getIntegratorId()
Integrator identification.
-
getPlatformId
public String getPlatformId()
Platform identification.
-
getCorporationId
public String getCorporationId()
Corporation identification.
-
getCollectorId
public Long getCollectorId()
Collector ID.
-
getPayer
public PaymentPayer getPayer()
Payer information.
-
getMetadata
public Map<String,Object> getMetadata()
Data that can be attached to the payment to record additional attributes of the merchant.
-
getAdditionalInfo
public PaymentAdditionalInfo getAdditionalInfo()
Data that could improve fraud analysis and conversion rates. Try to send as much information as possible.
-
getOrder
public PaymentOrder getOrder()
Order identifier.
-
getExternalReference
public String getExternalReference()
ID given by the merchant in their system.
-
getTransactionAmount
public BigDecimal getTransactionAmount()
Amount paid.
-
getTransactionAmountRefunded
public BigDecimal getTransactionAmountRefunded()
Total refunded amount.
-
getCouponAmount
public BigDecimal getCouponAmount()
Amount of the coupon.
-
getDifferentialPricingId
public String getDifferentialPricingId()
Id of the scheme for the absorption of financing fee.
-
getInstallments
public int getInstallments()
Selected quantity of installments.
-
getTransactionDetails
public PaymentTransactionDetails getTransactionDetails()
Transaction details.
-
getFeeDetails
public List<PaymentFeeDetail> getFeeDetails()
Fee details.
-
isCaptured
public boolean isCaptured()
If the payment is captured (true) or just reserved (false).
-
isBinaryMode
public boolean isBinaryMode()
When set to true, the payment can only be approved or rejected. Otherwise in_process status is added.
-
getCallForAuthorizeId
public String getCallForAuthorizeId()
Gives more detailed information on the current state or rejection cause.
-
getStatementDescriptor
public String getStatementDescriptor()
How will look the payment in the card bill.
-
getCard
public PaymentCard getCard()
Card used to pay.
-
getNotificationUrl
public String getNotificationUrl()
URL where mercadopago will send notifications associated to changes in this payment.
-
getCallbackUrl
public String getCallbackUrl()
URL where mercadopago does the final redirect (only for bank transfers).
-
getProcessingMode
public String getProcessingMode()
Processing mode to define if an specific merchant id should be used.
-
getMerchantAccountId
public String getMerchantAccountId()
Merchant Id for complex payment cases.
-
getMerchantNumber
public String getMerchantNumber()
Discount campaign ID.
-
getCouponCode
public String getCouponCode()
Discount campaign coupon code.
-
getNetAmount
public BigDecimal getNetAmount()
Payment net amount.
-
getPaymentMethodOptionId
public String getPaymentMethodOptionId()
Payment method option id.
-
getTaxes
public List<PaymentTax> getTaxes()
Taxes for payments.
-
getTaxesAmount
public BigDecimal getTaxesAmount()
Taxes amount.
-
getCounterCurrency
public String getCounterCurrency()
Counter currency.
-
getShippingAmount
public BigDecimal getShippingAmount()
Shipping amount.
-
getPosId
public String getPosId()
Pos id.
-
getStoreId
public String getStoreId()
Store id.
-
getDeductionSchema
public String getDeductionSchema()
Deduction Schema.
-
getRefunds
public List<PaymentRefund> getRefunds()
Refunds.
-
getPointOfInteraction
public PaymentPointOfInteraction getPointOfInteraction()
Point of interaction.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classMPResource
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classMPResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMPResource
-
-