Skip to content

Wallet Command Word

walletCheckPassword

php
\FresnsCmdWord::plugin('Fresns')->walletCheckPassword($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredWallet account
passwordStringoptionalWallet password, leave blank if no password

walletRecharge

php
\FresnsCmdWord::plugin('Fresns')->walletRecharge($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredRecharge party account
uidNumberoptionalRecharge party user
amountTotalNumericrequiredTotal transaction amount 10.00
decimal type, a number with two decimal places
systemFeeNumericrequiredSystem service fee 0.00
decimal type, a number with two decimal places
transactionFskeyStringrequiredTransaction processor
transactionIdNumberoptionalTransaction record voucher ID
transactionCodeStringoptionalTransaction record voucher Code
remarkStringoptionalTransaction remark (string)
moreInfoJsonoptionalTransaction remark (Json)
immediateBooleanoptionalWhether to take effect immediately, false if not passed
Effective immediately means that the transaction will be executed immediately, otherwise it will just create a pending transaction log.

walletWithdraw

php
\FresnsCmdWord::plugin('Fresns')->walletWithdraw($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredWithdrawal party account
uidNumberoptionalWithdrawal party user
passwordStringoptionalWithdrawal party user wallet password, leave blank if no password
amountTotalNumericrequiredTotal transaction amount 10.00
decimal type, a number with two decimal places
systemFeeNumericrequiredSystem service fee 0.00
decimal type, a number with two decimal places
transactionFskeyStringrequiredTransaction processor
transactionIdNumberoptionalTransaction record voucher ID
transactionCodeStringoptionalTransaction record voucher Code
remarkStringoptionalTransaction remark (string)
moreInfoJsonoptionalTransaction remark (Json)
immediateBooleanoptionalWhether to take effect immediately, false if not passed
Effective immediately means that the transaction will be executed immediately, otherwise it will just create a pending transaction log.

walletUpdateState

php
\FresnsCmdWord::plugin('Fresns')->walletUpdateState($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredTrading party account
uidNumberoptionalTrading party user
logIdNumberoptionalTransaction log ID
transactionIdNumberoptionalTransaction ID
transactionCodeStringoptionalTransaction Code
updateStateNumberrequiredChanged Status: 1.Pending / 2.Processing / 3.Success / 4.Failed
  • logId, transactionId, transactionCode, at least one of the three parameters must be passed.
  • Only supports recharge and withdrawal transactions
  • When the transaction status is 3 or 4, changing the status is not supported

walletFreeze

php
\FresnsCmdWord::plugin('Fresns')->walletFreeze($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredFrozen account
uidNumberoptionalFrozen user
amountTotalNumericrequiredFrozen amount 10.00
decimal type, a number with two decimal places
transactionFskeyStringrequiredTransaction processor
transactionIdNumberoptionalTransaction record voucher ID
transactionCodeStringoptionalTransaction record voucher Code
remarkStringoptionalTransaction remark (string)
moreInfoJsonoptionalTransaction remark (Json)

walletUnfreeze

php
\FresnsCmdWord::plugin('Fresns')->walletUnfreeze($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredUnfreeze account
uidNumberoptionalUnfreeze user
amountTotalNumericrequiredUnfreeze amount 10.00
decimal type, a number with two decimal places
transactionFskeyStringrequiredTransaction processor
transactionIdNumberoptionalTransaction record voucher ID
transactionCodeStringoptionalTransaction record voucher Code
remarkStringoptionalTransaction remark (string)
moreInfoJsonoptionalTransaction remark (Json)

walletIncrease

php
\FresnsCmdWord::plugin('Fresns')->walletIncrease($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredIncrease party account
uidNumberoptionalIncrease party user
amountTotalNumericrequiredTotal transaction amount 10.00
decimal type, a number with two decimal places
systemFeeNumericrequiredSystem service fee 0.00
decimal type, a number with two decimal places
originAidStringoptionalSource account, deducted from which account wallet
originUidNumberoptionalSource user
transactionFskeyStringrequiredTransaction processor
transactionIdNumberoptionalTransaction record voucher ID
transactionCodeStringoptionalTransaction record voucher Code
remarkStringoptionalTransaction remark (string)
moreInfoJsonoptionalTransaction remark (Json)

walletDecrease

php
\FresnsCmdWord::plugin('Fresns')->walletDecrease($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredExpenditure party account
uidNumberoptionalExpenditure party user
passwordStringoptionalExpenditure party user wallet password, leave blank if no password
amountTotalNumericrequiredTotal transaction amount 10.00
decimal type, a number with two decimal places
systemFeeNumericrequiredSystem service fee 0.00
decimal type, a number with two decimal places
originAidStringoptionalDestination account, transferred to which account wallet
originUidNumberoptionalDestination user
transactionFskeyStringrequiredTransaction processor
transactionIdNumberoptionalTransaction record voucher ID
transactionCodeStringoptionalTransaction record voucher Code
remarkStringoptionalTransaction remark (string)
moreInfoJsonoptionalTransaction remark (Json)

walletReversal

php
\FresnsCmdWord::plugin('Fresns')->walletReversal($wordBody);
Parameter NameTypeRequiredDescription
aidStringrequiredTrading party account
uidNumberoptionalTrading party user
logIdNumberoptionalTransaction log ID
transactionIdNumberoptionalTransaction ID
transactionCodeStringoptionalTransaction Code
  • logId, transactionId, transactionCode, at least one of the three parameters must be passed.

Released under the Apache-2.0 License