using Org.BouncyCastle.Asn1.Mozilla;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LifePayment.Domain.Shared;
public class UserWalletBalanceInfoOutput
{
///
/// 是否开通该类型的钱包账户
///
public bool IsWalletAccountOpen { get; set; }
///
/// 钱包id
///
public Guid? WalletMainId { get; set; }
///
/// 账号
///
public string AcctNo { get; set; }
///
/// 户名
///
public string AcctName { get; set; }
///
/// 开户银行支行
///
public string OpentBankNodeAddress { get; set; }
///
/// 可用余额
///
public decimal CanUseMoneyTotal { get; set; }
///
/// 定向资金
///
public decimal DirectMoneyTotal { get; set; }
///
/// 发薪钱包
///
public decimal SalaryMoneyTotal { get; set; }
///
/// 不可用余额
///
public decimal CanNotUseMoneyTotal { get; set; }
///
/// 冻结余额
///
public decimal FreezeMoneyTotal { get; set; }
///
/// 资金总额
///
public decimal AllMoneyTotal { get; set; }
///
/// 银行名称
///
public string BankName { get; set; }
///
/// 根据钱包支付类型获取对应的总金额
///
///
///
public decimal GetMoneyTotalByPayType(WalletPayTypeEnum walletPayType)
{
return walletPayType switch
{
WalletPayTypeEnum.CanUseMoney => this.CanUseMoneyTotal,
WalletPayTypeEnum.DirectMoney => this.DirectMoneyTotal,
WalletPayTypeEnum.SalaryMoney => this.SalaryMoneyTotal,
_ => 0m
};
}
}
///
/// 钱包账户类型开户信息
///
public class WalletAccountTypeOpenInfoOutput
{
public Guid? WalletAccountOpenId { get; set; }
///
/// 钱包账户类型
///
public WalletAccountTypeEnum? WalletAccountType { get; set; }
///
/// 账号
///
public string AcctNo { get; set; }
///
/// 账号名称
///
public string AcctName { get; set; }
///
/// 企业名称
///
public string EnterpriseName { get; set; }
///
/// 开户银行
///
public string OpentBankNode { get; set; }
///
/// 统一社会信用代码
///
public string SocietyCreditCode { get; set; }
///
/// 是否开户
///
public bool IsWalletAccountOpen { get; set; }
///
/// 开户银行地址
///
public string OpentBankNodeAddress { get; set; }
///
/// 银行名称
///
public string BankName { get; set; }
}
public class WalletBalanceDetailOutput
{
///
/// 账号
///
public string AcctNo { get; set; }
///
/// 开户行
///
public string BankName { get; set; }
///
/// 银行卡资金总额
///
public decimal? AllMoneyTotal { get; set; }
///
/// 银行卡资金总额
///
public decimal? BankMoneyTotal { get; set; }
///
/// 银行卡昨日总余额
///
public decimal? YesterdayBankMoneyTotal { get; set; }
///
/// 支付宝账号
///
public string AlipayAccount { get; set; }
///
/// 支付宝余额
///
public decimal? AlipayMoneyTotal { get; set; }
///
/// 支付宝昨日总余额
///
public decimal AlipayYesterdayMoneyTotal { get; set; }
///
/// 银行冻结余额
///
public decimal? BankFreezeMoneyTotal { get; set; }
///
/// 支付宝冻结余额
///
public decimal? AlipayFreezeMoneyTotal { get; set; }
///
/// 钱包状态
///
public WalletMainStatusEnum? Status { get; set; }
}
public class AllBankListOutput
{
public int Id { get; set; }
///
/// 首字母标记
///
public string Mark { get; set; }
///
/// 银行名称
///
public string Name { get; set; }
///
/// 是否是热门
///
public int? IsHot { get; set; }
}
public class CheckUserWalletBalanceInfoOutput
{
///
/// 账号
///
public string AcctNo { get; set; }
///
/// 户名
///
public string AcctName { get; set; }
///
/// 可用余额
///
public decimal CanUseMoneyTotal { get; set; }
///
/// 定向资金
///
public decimal DirectMoneyTotal { get; set; }
///
/// 发薪钱包
///
public decimal SalaryMoneyTotal { get; set; }
///
/// 不可用余额
///
public decimal CanNotUseMoneyTotal { get; set; }
///
/// 冻结余额
///
public decimal FreezeMoneyTotal { get; set; }
///
/// 资金总额
///
public decimal AllMoneyTotal { get; set; }
///
/// 根据钱包支付类型获取对应的总金额
///
///
///
public decimal GetMoneyTotalByPayType(WalletPayTypeEnum walletPayType)
{
return walletPayType switch
{
WalletPayTypeEnum.CanUseMoney => this.CanUseMoneyTotal,
WalletPayTypeEnum.DirectMoney => this.DirectMoneyTotal,
WalletPayTypeEnum.SalaryMoney => this.SalaryMoneyTotal,
_ => 0m
};
}
}
public class WalletPayChannelFeeSettingOutput
{
public Guid WalletPayChannelId { get; set; }
public decimal? BeginAmount { get; set; }
public decimal? EndAmount { get; set; }
public WalletPayChannelFeeCalculationTypeEnum FeeCalculationType { get; set; }
public decimal FeeCalculationValue { get; set; }
public Guid Id { get; set; }
}