From 7392a196d3544930a295927c5b06a55c6db61a61 Mon Sep 17 00:00:00 2001 From: Alireza Bashi <52131452+alirezabashi98@users.noreply.github.com> Date: Tue, 1 Jul 2025 09:36:26 -0500 Subject: [PATCH] Revert "Update PaymentUnVerifiedResponse.kt" --- .../unVerified/PaymentUnVerifiedResponse.kt | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/example/zarinpal/data/remote/dto/unVerified/PaymentUnVerifiedResponse.kt b/src/main/java/com/example/zarinpal/data/remote/dto/unVerified/PaymentUnVerifiedResponse.kt index 656df9e..dd6c2d0 100644 --- a/src/main/java/com/example/zarinpal/data/remote/dto/unVerified/PaymentUnVerifiedResponse.kt +++ b/src/main/java/com/example/zarinpal/data/remote/dto/unVerified/PaymentUnVerifiedResponse.kt @@ -6,10 +6,10 @@ import kotlinx.serialization.Serializable import kotlinx.serialization.json.JsonElement /** - * Response model for unverified payment queries. + * Represents the response data returned when querying unverified payment transactions. * - * @property data Contains the details of the unverified payment. - * @property errors Optional error information returned by the payment gateway. + * @property data Contains the details of the unverified payment response. + * @property errors If present, contains any errors returned by the payment gateway. */ @Keep @Serializable @@ -19,11 +19,11 @@ data class PaymentUnVerifiedResponse( ) /** - * Contains the main response data for unverified payments. + * Contains the data returned from the unverified payment query. * - * @property code Status code representing the result of the query. - * @property message Descriptive message about the outcome. - * @property authorities Optional list of authorities related to unverified transactions. + * @property code A numeric code indicating the result of the request. + * @property message A descriptive message explaining the result or error. + * @property authorities A list of [AuthorityResponse] objects representing the authorities related to the unverified payments. */ @Keep @Serializable @@ -34,21 +34,20 @@ data class PaymentUnVerifiedDataResponse( ) /** - * Represents an authority entry related to an unverified transaction. + * Represents an authority related to an unverified payment. * - * @property authority Unique identifier for the transaction. - * @property amount Transaction amount in the smallest currency unit. - * @property callbackUrl URL to redirect the user after payment. - * @property referer Referring URL from which the request originated. - * @property date Timestamp of the transaction event. + * @property authority The authority code for the payment. + * @property amount The amount of the unverified payment. + * @property callbackUrl The URL to which the user will be redirected after payment. + * @property referer The referer URL from which the request was made. + * @property date The date of the unverified payment. */ @Keep @Serializable data class AuthorityResponse( val authority: String, val amount: Int, - @SerialName("callback_url") - val callbackUrl: String, + @SerialName("callback_url") val callbackUrl: String, val referer: String, val date: String )