Class AbstractAdditionalPropertiesAwareDTO

java.lang.Object
com.broadleafcommerce.vendor.chasepayment.service.support.AbstractAdditionalPropertiesAwareDTO
Direct Known Subclasses:
ApplePayEncryptedPaymentBundle, ApplePayHeader, AvsBilling, EmvInfo, GatewayResponse, HPSOrderAbstractionInitResponse, HPSOrderAbstractionQueryResponse, LevelTwoPaymentInfo, Merchant, MerchantInitiatedTransaction, OrbitalCaptureRequest, OrbitalCaptureResponse, OrbitalCreatePaymentRequest, OrbitalCreatePaymentResponse, OrbitalErrorResponse, OrbitalRefundRequest, OrbitalRefundResponse, OrbitalReversalRequest, OrbitalReversalResponse, Order, PaymentInstrument, Status, UseProfilePaymentInstrument

public abstract class AbstractAdditionalPropertiesAwareDTO extends Object
Base abstract class that can be used for any DTO that needs to support serializing/deserializing arbitrary unknown JSON properties.
  • Constructor Details

    • AbstractAdditionalPropertiesAwareDTO

      public AbstractAdditionalPropertiesAwareDTO()
  • Method Details

    • addAttribute

      public void addAttribute(String name, Object value)
      Takes in any additional attributes received in the response not matching any defined properties.
      Parameters:
      name - Name of the additional attribute
      value - Value of the additional attribute
    • getAttributes

      public Map<String,Object> getAttributes()
      Inverse any-JSON-field counterpart of addAttribute(String, Object)
      Returns:
      the additional attributes
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object