Class InvoicePaymentRefundParams

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

@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
           date="2022-10-25")
public class InvoicePaymentRefundParams
extends Object
implements org.apache.thrift.TBase<InvoicePaymentRefundParams,​InvoicePaymentRefundParams._Fields>, Serializable, Cloneable, Comparable<InvoicePaymentRefundParams>
See Also:
Serialized Form
  • Field Details

    • reason

      public String reason
      Причина, на основании которой производится возврат.
    • cash

      public Cash cash
      Сумма возврата. Если сумма не указана, то считаем, что это возврат на полную сумму платежа.
    • transaction_info

      public TransactionInfo transaction_info
      Данные проведённой вручную транзакции
    • cart

      public InvoiceCart cart
      Итоговая корзина товаров. Используется для частичного возврата, содержит позиции, которые остались после возврата.
    • id

      public String id
      Идентификатор рефанда
    • external_id

      public String external_id
      Внешний идентификатор объекта
    • allocation

      public AllocationPrototype allocation
      Распределение денежных средств возврата. Используется при частичном возврате, содержит транзакции, которые нужно вернуть.
    • metaDataMap

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

    • InvoicePaymentRefundParams

      public InvoicePaymentRefundParams()
    • InvoicePaymentRefundParams

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

    • deepCopy

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

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

      public String getReason()
      Причина, на основании которой производится возврат.
    • setReason

      public InvoicePaymentRefundParams setReason​(String reason)
      Причина, на основании которой производится возврат.
    • unsetReason

      public void unsetReason()
    • isSetReason

      public boolean isSetReason()
      Returns true if field reason is set (has been assigned a value) and false otherwise
    • setReasonIsSet

      public void setReasonIsSet​(boolean value)
    • getCash

      public Cash getCash()
      Сумма возврата. Если сумма не указана, то считаем, что это возврат на полную сумму платежа.
    • setCash

      public InvoicePaymentRefundParams setCash​(Cash cash)
      Сумма возврата. Если сумма не указана, то считаем, что это возврат на полную сумму платежа.
    • unsetCash

      public void unsetCash()
    • isSetCash

      public boolean isSetCash()
      Returns true if field cash is set (has been assigned a value) and false otherwise
    • setCashIsSet

      public void setCashIsSet​(boolean value)
    • getTransactionInfo

      public TransactionInfo getTransactionInfo()
      Данные проведённой вручную транзакции
    • setTransactionInfo

      public InvoicePaymentRefundParams setTransactionInfo​(TransactionInfo transaction_info)
      Данные проведённой вручную транзакции
    • unsetTransactionInfo

      public void unsetTransactionInfo()
    • isSetTransactionInfo

      public boolean isSetTransactionInfo()
      Returns true if field transaction_info is set (has been assigned a value) and false otherwise
    • setTransactionInfoIsSet

      public void setTransactionInfoIsSet​(boolean value)
    • getCart

      public InvoiceCart getCart()
      Итоговая корзина товаров. Используется для частичного возврата, содержит позиции, которые остались после возврата.
    • setCart

      public InvoicePaymentRefundParams setCart​(InvoiceCart cart)
      Итоговая корзина товаров. Используется для частичного возврата, содержит позиции, которые остались после возврата.
    • unsetCart

      public void unsetCart()
    • isSetCart

      public boolean isSetCart()
      Returns true if field cart is set (has been assigned a value) and false otherwise
    • setCartIsSet

      public void setCartIsSet​(boolean value)
    • getId

      public String getId()
      Идентификатор рефанда
    • setId

      public InvoicePaymentRefundParams setId​(String id)
      Идентификатор рефанда
    • unsetId

      public void unsetId()
    • isSetId

      public boolean isSetId()
      Returns true if field id is set (has been assigned a value) and false otherwise
    • setIdIsSet

      public void setIdIsSet​(boolean value)
    • getExternalId

      public String getExternalId()
      Внешний идентификатор объекта
    • setExternalId

      public InvoicePaymentRefundParams setExternalId​(String external_id)
      Внешний идентификатор объекта
    • unsetExternalId

      public void unsetExternalId()
    • isSetExternalId

      public boolean isSetExternalId()
      Returns true if field external_id is set (has been assigned a value) and false otherwise
    • setExternalIdIsSet

      public void setExternalIdIsSet​(boolean value)
    • getAllocation

      public AllocationPrototype getAllocation()
      Распределение денежных средств возврата. Используется при частичном возврате, содержит транзакции, которые нужно вернуть.
    • setAllocation

      public InvoicePaymentRefundParams setAllocation​(AllocationPrototype allocation)
      Распределение денежных средств возврата. Используется при частичном возврате, содержит транзакции, которые нужно вернуть.
    • unsetAllocation

      public void unsetAllocation()
    • isSetAllocation

      public boolean isSetAllocation()
      Returns true if field allocation is set (has been assigned a value) and false otherwise
    • setAllocationIsSet

      public void setAllocationIsSet​(boolean value)
    • setFieldValue

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

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

      public boolean isSet​(InvoicePaymentRefundParams._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<InvoicePaymentRefundParams,​InvoicePaymentRefundParams._Fields>
    • equals

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

      public boolean equals​(InvoicePaymentRefundParams that)
    • hashCode

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

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

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

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

      public Map<InvoicePaymentRefundParams._Fields,​org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()
      Specified by:
      getFieldMetaData in interface org.apache.thrift.TBase<InvoicePaymentRefundParams,​InvoicePaymentRefundParams._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