lib/craftgate/response/reporting_payment_refund_response.ex

defmodule Craftgate.Response.ReportingPaymentRefundResponse do
  @moduledoc """
  Elixir equivalent of the Java data class [io.craftgate.response.ReportingPaymentRefundResponse](https://github.com/craftgate/craftgate-java-client/blob/master/src/main/java/io/craftgate/response/ReportingPaymentRefundResponse.java)
  """

  use Craftgate.Serializable, [
    payment_type: Craftgate.Model.PaymentType,
    error: Craftgate.Response.Dto.PaymentError,
    id: :integer,
    created_date: :naive_datetime,
    status: Craftgate.Model.RefundStatus,
    refund_destination_type: Craftgate.Model.RefundDestinationType,
    refund_price: :decimal,
    refund_bank_price: :decimal,
    refund_wallet_price: :decimal,
    conversation_id: :string,
    auth_code: :string,
    host_reference: :string,
    trans_id: :string,
    payment_id: :integer
  ]
end