POST api/Finance/UpdateFinanceConfig

后台 - 更新财务配置

Request Information

URI Parameters

None.

Body Parameters

FinPaymentConfigDto
NameDescriptionTypeAdditional information
CreditName

积分名称

string

None.

BalanceName

余额名称

string

None.

CanCashout

是否允许余额提现

boolean

None.

CashoutMinAmount

提现最低金额(分)

integer

None.

CashoutMinAmountYuan

提现最低金额(元)

decimal number

None.

CashoutChargeCommission

是否收取提现手续费

boolean

None.

CashoutCommissionThreshold

提现手续费门槛(分)

integer

None.

CashoutCommissionThresholdYuan

提现手续费门槛(元)

decimal number

None.

CashoutCommissionRatio

提现手续费比例(%)

decimal number

None.

CreditBalanceRatio

1元等于多少积分

integer

None.

BalanceUnit

货币单位名称

string

None.

BalanceSymbol

货币单位符号

string

None.

CreditFinanceItems

财务项目

Collection of FinItemDto

None.

CashOutNeedAudit

提现是否需要审批

boolean

None.

CashOutThreshold

提现审批金额阈值(分),大于该阈值需要审批

integer

None.

CashOutThresholdYuan

提现审批金额阈值(元),大于该阈值需要审批

decimal number

None.

SingleCashOutThreshold

单次提现金额阈值(分),大于该值无法提现

integer

None.

SingleCashOutThresholdYuan

单次提现金额阈值(元),大于该值无法提现

decimal number

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<FinPaymentConfigDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.Finance">
  <BalanceName>sample string 2</BalanceName>
  <BalanceSymbol>sample string 12</BalanceSymbol>
  <BalanceUnit>sample string 11</BalanceUnit>
  <CanCashout>true</CanCashout>
  <CashOutNeedAudit>true</CashOutNeedAudit>
  <CashOutThreshold>1510</CashOutThreshold>
  <CashOutThresholdYuan>15.1</CashOutThresholdYuan>
  <CashoutChargeCommission>true</CashoutChargeCommission>
  <CashoutCommissionRatio>9.1</CashoutCommissionRatio>
  <CashoutCommissionThreshold>810</CashoutCommissionThreshold>
  <CashoutCommissionThresholdYuan>8.1</CashoutCommissionThresholdYuan>
  <CashoutMinAmount>510</CashoutMinAmount>
  <CashoutMinAmountYuan>5.1</CashoutMinAmountYuan>
  <CreditBalanceRatio>10</CreditBalanceRatio>
  <CreditFinanceItems>
    <FinItemDto>
      <AllowCustomPrice>true</AllowCustomPrice>
      <CanBeRefunded>true</CanBeRefunded>
      <CreditNum>6</CreditNum>
      <ExtraParams>sample string 8</ExtraParams>
      <Id>1</Id>
      <Level>11</Level>
      <Module>None</Module>
      <Name>sample string 2</Name>
      <NumTimes>10</NumTimes>
      <PayMode>ByCredit</PayMode>
      <PeriodLength>12</PeriodLength>
      <PeriodUnit>Day</PeriodUnit>
      <PriceFen>510</PriceFen>
      <PriceYuan>5.1</PriceYuan>
      <Sellable>true</Sellable>
    </FinItemDto>
    <FinItemDto>
      <AllowCustomPrice>true</AllowCustomPrice>
      <CanBeRefunded>true</CanBeRefunded>
      <CreditNum>6</CreditNum>
      <ExtraParams>sample string 8</ExtraParams>
      <Id>1</Id>
      <Level>11</Level>
      <Module>None</Module>
      <Name>sample string 2</Name>
      <NumTimes>10</NumTimes>
      <PayMode>ByCredit</PayMode>
      <PeriodLength>12</PeriodLength>
      <PeriodUnit>Day</PeriodUnit>
      <PriceFen>510</PriceFen>
      <PriceYuan>5.1</PriceYuan>
      <Sellable>true</Sellable>
    </FinItemDto>
  </CreditFinanceItems>
  <CreditName>sample string 1</CreditName>
  <SingleCashOutThreshold>1710</SingleCashOutThreshold>
  <SingleCashOutThresholdYuan>17.1</SingleCashOutThresholdYuan>
</FinPaymentConfigDto>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'FinPaymentConfigDto'.

Response Information

Resource Description

后台 - 更新财务配置

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />