From 709c44a05a8c377a9f266a7dfd2052ef82d0a9f5 Mon Sep 17 00:00:00 2001 From: phoenix marie Date: Tue, 8 Apr 2025 11:18:20 +0330 Subject: [PATCH] Update PaymentRefundResponse.kt Making better --- .../dto/refund/PaymentRefundResponse.kt | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/example/zarinpal/data/remote/dto/refund/PaymentRefundResponse.kt b/src/main/java/com/example/zarinpal/data/remote/dto/refund/PaymentRefundResponse.kt index 77b634b..25e4aeb 100644 --- a/src/main/java/com/example/zarinpal/data/remote/dto/refund/PaymentRefundResponse.kt +++ b/src/main/java/com/example/zarinpal/data/remote/dto/refund/PaymentRefundResponse.kt @@ -4,9 +4,9 @@ import kotlinx.serialization.SerialName import kotlinx.serialization.Serializable /** - * Represents the response data returned after initiating a payment refund. + * Top-level response returned after initiating a payment refund. * - * @property data Contains the details of the refund response. + * @property data Details of the refund operation. */ @Serializable data class PaymentRefundResponseModel( @@ -14,9 +14,9 @@ data class PaymentRefundResponseModel( ) /** - * Contains the data returned from the payment refund process. + * Container for refund resource information. * - * @property resource The detailed response of the refund transaction. + * @property resource Detailed refund transaction data. */ @Serializable data class PaymentRefundDataModel( @@ -24,12 +24,12 @@ data class PaymentRefundDataModel( ) /** - * Represents the details of the refund transaction. + * Refund transaction details. * - * @property terminalId The terminal ID used for the refund. - * @property id The unique identifier of the refund transaction. - * @property amount The total amount refunded in the smallest currency unit (e.g., IRR). - * @property timeline Contains details of the refund process, including the amount, time, and status. + * @property terminalId Terminal ID used for the refund. + * @property id Unique identifier of the refund transaction. + * @property amount Refunded amount in the smallest currency unit (e.g., IRR). + * @property timeline Timeline of the refund process. */ @Serializable data class PaymentRefundResponse( @@ -40,15 +40,15 @@ data class PaymentRefundResponse( ) /** - * Contains the timeline of the refund process, including the amount refunded, time of refund, and status. + * Timeline of the refund process. * - * @property refundAmount The amount refunded in the smallest currency unit (e.g., IRR). - * @property refundTime The time when the refund was processed. - * @property refundStatus The status of the refund (e.g., "completed", "pending"). + * @property refundAmount Refunded amount in the smallest currency unit (e.g., IRR). + * @property refundTime Timestamp of when the refund was processed. + * @property refundStatus Current status of the refund (e.g., "completed", "pending"). */ @Serializable data class PaymentRefundTimeline( @SerialName("refund_amount") val refundAmount: Int, @SerialName("refund_time") val refundTime: String, @SerialName("refund_status") val refundStatus: String -) \ No newline at end of file +)