Untitled
unknown
plain_text
10 months ago
7.7 kB
5
Indexable
import com.google.gson.annotations.SerializedName
import java.math.BigDecimal
data class DepositAccountDetailDMO(
@SerializedName("accountNo")
val accountNo: String? = null,
@SerializedName("accountName")
val accountName: String? = null,
@SerializedName("maturityDate")
val maturityDate: String? = null,
@SerializedName("timeDepositTerm")
val timeDepositTerm: String? = null,
@SerializedName("timeDepositTermCode")
val timeDepositTermCode: String? = null,
@SerializedName("ledgerBalance")
val ledgerBalance: BigDecimal? = null,
@SerializedName("interestRate")
val interestRate: BigDecimal? = null,
@SerializedName("dateEntered")
val dateEntered: String? = null,
@SerializedName("maturityDisposition")
val maturityDisposition: String? = null,
@SerializedName("maturityTrfAccountNo")
val maturityTrfAccountNo: String? = null,
@SerializedName("accountRelation")
val accountRelation: String? = null,
@SerializedName("interestTerm")
val interestTerm: String? = null,
@SerializedName("interestTermCode")
val interestTermCode: String? = null,
@SerializedName("originalAmount")
val originalAmount: BigDecimal? = null,
@SerializedName("holdAmount")
val holdAmount: BigDecimal? = null,
@SerializedName("withdrawableInterest")
val withdrawableInterest: BigDecimal? = null
)
Box(
modifier = Modifier
.padding(horizontal = IBSpacing.spacingM)
.background(
brush = IBGradient.color_grd_card_primary,
shape = RoundedCornerShape(
topStart = CornerSize(IBCornerRadius.cornerRadiusL),
topEnd = CornerSize(IBCornerRadius.cornerRadiusL),
bottomStart = CornerSize(0),
bottomEnd = CornerSize(0),
)
)
) {
Image(
imageVector = ImageVector.vectorResource(id = RDesignSystem.drawable.bidv_flower_background_inquiry_deposit),
contentDescription = null,
modifier = Modifier
.align(Alignment.TopEnd)
.matchParentSize()
)
Column(
verticalArrangement = Arrangement.Center,
modifier = Modifier.padding(vertical = IBSpacing.spacingM)
) {
Row(
modifier = Modifier
.fillMaxWidth()
.height(IBSpacing.spacing2xl),
verticalAlignment = Alignment.CenterVertically
) {
Spacer(modifier = Modifier.width(IBSpacing.spacingM))
Text(
text = depositAccountDetailDMO.accountNo.orEmpty(),
color = LocalColorScheme.current.contentOn_specialPrimary,
style = LocalTypography.current.titleTitle_m,
)
Spacer(modifier = Modifier.width(IBSpacing.spacingXs))
Icon(
imageVector = ImageVector.vectorResource(id = RDesignSystem.drawable.copy_outline),
contentDescription = null,
tint = LocalColorScheme.current.contentOn_specialPrimary,
modifier = Modifier
.size(IBSpacing.spacingM)
.padding(IBSpacing.spacing3xs)
.clickable {
clipboardManager.setText(
androidx.compose.ui.text.AnnotatedString(
depositAccountDetailDMO.accountNo.orEmpty()
)
)
Toast
.makeText(
context,
RLocalization.string.da_sao_chep_vao_bo_nho_tam,
Toast.LENGTH_SHORT
)
.show()
}
)
}
Spacer(modifier = Modifier.height(IBSpacing.spacing3xs))
Text(
text = depositAccountDetailDMO.accountName.orEmpty(),
color = LocalColorScheme.current.contentOn_specialPrimary,
style = LocalTypography.current.bodyBody_m,
modifier = Modifier.padding(start = IBSpacing.spacingM)
)
Spacer(Modifier.height(IBSpacing.spacingS))
DashedLine(color = Color(0x33D3D9DA))
Row(
modifier = Modifier
.fillMaxWidth()
.padding(start = IBSpacing.spacingM, top = IBSpacing.spacingM)
) {
Column(modifier = Modifier.weight(1f)) {
Text(
text = stringResource(RLocalization.string.ngay_den_han),
color = LocalColorScheme.current.contentOn_specialSecondary,
style = LocalTypography.current.bodyBody_s,
)
Spacer(Modifier.height(IBSpacing.spacing3xs))
Text(
text = depositAccountDetailDMO.maturityDate
?.toDate(SdkBaseConstants.DateTimeConstants.FORMAT_YYYY_MM_DD)
?.dateToString(SdkBaseConstants.DateTimeConstants.FORMAT_DD_MM_YYYY)
.orEmpty(),
color = LocalColorScheme.current.contentOn_specialPrimary,
style = LocalTypography.current.labelLabel_m,
)
}
Column(modifier = Modifier.weight(1f)) {
Text(
text = stringResource(RLocalization.string.lai_suat),
color = LocalColorScheme.current.contentOn_specialSecondary,
style = LocalTypography.current.bodyBody_s,
)
Spacer(Modifier.height(IBSpacing.spacing3xs))
Text(
text = "${depositAccountDetailDMO.interestRate.toPercentageString()}%/${depositAccountDetailDMO.timeDepositTermCode}",
color = LocalColorScheme.current.contentOn_specialPrimary,
style = LocalTypography.current.labelLabel_m,
)
}
Column(modifier = Modifier.weight(1f)) {
Text(
text = stringResource(RLocalization.string.ky_han),
color = LocalColorScheme.current.contentOn_specialSecondary,
style = LocalTypography.current.bodyBody_s,
)
Spacer(Modifier.height(IBSpacing.spacing3xs))
Text(
text = "${depositAccountDetailDMO.timeDepositTerm} ${depositAccountDetailDMO.timeDepositTermCode}",
color = LocalColorScheme.current.contentOn_specialPrimary,
style = LocalTypography.current.labelLabel_m,
)
}
}
}
}Editor is loading...
Leave a Comment