Class GenericPaymentTool

java.lang.Object
dev.vality.damsel.domain.GenericPaymentTool
All Implemented Interfaces:
Serializable, Cloneable, Comparable<GenericPaymentTool>, org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>, org.apache.thrift.TSerializable

@Generated(value="Autogenerated by Thrift Compiler (0.19.0)", date="2024-08-02") public class GenericPaymentTool extends Object implements org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>, Serializable, Cloneable, Comparable<GenericPaymentTool>
See Also:
  • Field Details

    • payment_service

      public PaymentServiceRef payment_service
      Сервис, обслуживающий данный платёжный инструмент. Должен соответствовать значению, указанному в `GenericPaymentMethod`.
    • data

      public Content data
      Данные платёжного инструмента, определённые в соответствии со схемой в `PaymentMethodDefinition`. Например: ``` Content { type = 'application/schema-instance+json; schema=https://api.vality.dev/schemas/payment-methods/v2/BankAccountRUS' data = '{"accountNumber":"40817810500000000035", "bankBIC":"044525716"}' } ```
    • metaDataMap

      public static final Map<GenericPaymentTool._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
  • Constructor Details

    • GenericPaymentTool

      public GenericPaymentTool()
    • GenericPaymentTool

      public GenericPaymentTool(PaymentServiceRef payment_service)
    • GenericPaymentTool

      public GenericPaymentTool(GenericPaymentTool other)
      Performs a deep copy on other.
  • Method Details

    • deepCopy

      public GenericPaymentTool deepCopy()
      Specified by:
      deepCopy in interface org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>
    • clear

      public void clear()
      Specified by:
      clear in interface org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>
    • getPaymentService

      public PaymentServiceRef getPaymentService()
      Сервис, обслуживающий данный платёжный инструмент. Должен соответствовать значению, указанному в `GenericPaymentMethod`.
    • setPaymentService

      public GenericPaymentTool setPaymentService(PaymentServiceRef payment_service)
      Сервис, обслуживающий данный платёжный инструмент. Должен соответствовать значению, указанному в `GenericPaymentMethod`.
    • unsetPaymentService

      public void unsetPaymentService()
    • isSetPaymentService

      public boolean isSetPaymentService()
      Returns true if field payment_service is set (has been assigned a value) and false otherwise
    • setPaymentServiceIsSet

      public void setPaymentServiceIsSet(boolean value)
    • getData

      public Content getData()
      Данные платёжного инструмента, определённые в соответствии со схемой в `PaymentMethodDefinition`. Например: ``` Content { type = 'application/schema-instance+json; schema=https://api.vality.dev/schemas/payment-methods/v2/BankAccountRUS' data = '{"accountNumber":"40817810500000000035", "bankBIC":"044525716"}' } ```
    • setData

      public GenericPaymentTool setData(Content data)
      Данные платёжного инструмента, определённые в соответствии со схемой в `PaymentMethodDefinition`. Например: ``` Content { type = 'application/schema-instance+json; schema=https://api.vality.dev/schemas/payment-methods/v2/BankAccountRUS' data = '{"accountNumber":"40817810500000000035", "bankBIC":"044525716"}' } ```
    • unsetData

      public void unsetData()
    • isSetData

      public boolean isSetData()
      Returns true if field data is set (has been assigned a value) and false otherwise
    • setDataIsSet

      public void setDataIsSet(boolean value)
    • setFieldValue

      public void setFieldValue(GenericPaymentTool._Fields field, Object value)
      Specified by:
      setFieldValue in interface org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>
    • getFieldValue

      public Object getFieldValue(GenericPaymentTool._Fields field)
      Specified by:
      getFieldValue in interface org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>
    • isSet

      public boolean isSet(GenericPaymentTool._Fields field)
      Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
      Specified by:
      isSet in interface org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>
    • equals

      public boolean equals(Object that)
      Overrides:
      equals in class Object
    • equals

      public boolean equals(GenericPaymentTool that)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • compareTo

      public int compareTo(GenericPaymentTool other)
      Specified by:
      compareTo in interface Comparable<GenericPaymentTool>
    • fieldForId

      public GenericPaymentTool._Fields fieldForId(int fieldId)
      Specified by:
      fieldForId in interface org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>
    • getFields

      public GenericPaymentTool._Fields[] getFields()
      Specified by:
      getFields in interface org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>
    • getFieldMetaData

      public Map<GenericPaymentTool._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<GenericPaymentTool,GenericPaymentTool._Fields>
    • read

      public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
      Specified by:
      read in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • write

      public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
      Specified by:
      write in interface org.apache.thrift.TSerializable
      Throws:
      org.apache.thrift.TException
    • toString

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

      public void validate() throws org.apache.thrift.TException
      Throws:
      org.apache.thrift.TException