C# Class BeeCloud.BCPay

Mostrar archivo Open project: beecloud/beecloud-dotnet

Public Methods

Method Description
BCApproveRefund ( string channel, List ids, bool agree, string denyReason ) : BCApproveRefundResult

预退款(批量)审核

BCAuthentication ( string name, string IDNo, string cardNo, string mobile ) : bool

身份实名验证,支持二要素,三要素,四要素验证

BCBankCardTransfer ( BCTransferWithBackCard transfer ) : BCTransferWithBackCard

BC银行卡代付

BCCJBankCardTransfer ( BCCJTransferWithBackCard transfer ) : BCCJTransferWithBackCard
BCInternationalPay ( BCInternationlBill bill ) : BCInternationlBill

境外支付

BCOfflineBillStatus ( string billNo, string channel ) : bool

支付宝微信扫码/被扫订单状态查询

BCOfflinePayByChannel ( BCBill bill ) : BCBill

微信支付宝扫码/被扫支付

BCPayByChannel ( BCBill bill ) : BCBill

支付

BCPayQueryByCondition ( BCQueryBillParameter para ) : List

支付订单查询

BCPayQueryById ( string id ) : BCBill

支付订单查询(指定ID)

BCPayQueryCount ( BCQueryBillParameter para ) : int

获得订单笔数,配合BCPayQueryByCondition使用,使用查询订单时一样的参数

BCRefundByChannel ( BCRefund refund ) : BCRefund

(预)退款

BCRefundQueryByCondition ( BCQueryRefundParameter para ) : List

退款订单查询

BCRefundQueryById ( string id ) : BCRefund

退款订单查询(指定ID)

BCRefundQueryCount ( BCQueryRefundParameter para ) : int

获得退款笔数,配合BCRefundQueryByCondition使用,使用查询退款时一样的参数

BCRefundStatusQuery ( string channel, string refundNo ) : string

退款状态查询"

BCTransfer ( BCTransferParameter para ) : string

打款

BCTransfers ( BCTransfersParameter para ) : string

批量打款

createPlan ( BCPlan plan ) : BCPlan

创建订阅计划

createSubscription ( string smsID, string smsCode, BCSubscription subscription ) : BCSubscription

创建订阅记录

deletePlan ( string id ) : string

删除订阅计划

deleteSubscription ( string id, bool atPeriodEnd ) : string

删除订阅记录

getBankFullNames ( string type ) : BankList

获取BeeCloud企业打款支持的银行全称列表

getBanks ( ) : List

获取所有支持订阅的银行列表

getCommonBanks ( ) : List

获取常用的支持订阅的银行列表

handleApproveRefundResult ( string respString, string channel ) : BCApproveRefundResult
handleBCTransferWithBankCardResult ( string respString, BCTransferWithBackCard transfer ) : BCTransferWithBackCard
handleInternationalPayResult ( string respString, BCInternationlBill bill ) : BCInternationlBill
handlePayQueryByConditionResult ( string respString, bool needDetail ) : List
handlePayQueryByIdResult ( string respString ) : BCBill
handlePayResult ( string respString, BCBill bill ) : BCBill
handleQueryCountResult ( string respString ) : int
handleRefundQueryByConditionResult ( string respString, bool needDetail ) : List
handleRefundQueryByIdResult ( string respString ) : BCRefund
handleRefundResult ( string respString, BCRefund refund ) : BCRefund
handleRefundStatusQueryResult ( string respString ) : string
handleTransfersResult ( string respString, string channel ) : string
prepareApproveRefundParameters ( string channel, List ids, bool agree, string denyReason ) : string
prepareBCTransferWithBankCard ( BCTransferWithBackCard transfer ) : string
prepareInternationalPayParameters ( BCInternationlBill bill ) : string
preparePayParameters ( BCBill bill ) : string
preparePayQueryByConditionParameters ( BCQueryBillParameter para ) : string
prepareQueryByIdParameters ( string id ) : string
prepareRefundParameters ( BCRefund refund ) : string
prepareRefundQueryByConditionParameters ( BCQueryRefundParameter para ) : string
prepareRefundStatusQueryParameters ( string channel, string refundNo ) : string
prepareTransferParameters ( BCTransferParameter para ) : string
prepareTransfersParameters ( BCTransfersParameter para ) : string
queryPlanByID ( string id ) : BCPlan

根据ID查询订阅计划

queryPlansByCondition ( string nameWithSubstring, string interval, int intervalCount, int trialDays, long createdBefore, long createdAfter, int skip, int limit, bool countOnly ) : List

按条件查询订阅计划

querySubscriptionByID ( string id ) : BCSubscription

按ID查询订阅记录

querySubscriptionsByCondition ( string buyerID, string planID, string cardID, long createdBefore, long createdAfter, int skip, int limit, bool countOnly ) : List

按条件查询用户订阅

sendSMS ( string phone ) : string

给用户发送验证码

updatePlan ( string id, string name, bool valid, string>.Dictionary optional ) : string

跟新订阅计划

updateSubscription ( string id, string buyerID, string planID, string cardID, double amount, string coupon, long trialEnd, string>.Dictionary optional ) : string

跟新订阅记录

Method Details

BCApproveRefund() public static method

预退款(批量)审核
public static BCApproveRefund ( string channel, List ids, bool agree, string denyReason ) : BCApproveRefundResult
channel string 渠道类型 /// 根据不同渠道选不同的值 /// 必填 /// 可以通过enum BCPay.RefundChannel获取 /// ALI: 支付宝 /// WX: 微信 /// UN: 银联 /// JD: 京东 /// YEE: 易宝 /// KUAIQIAN: 快钱 /// BD: 百度 ///
ids List 退款记录id列表 /// 批量审核的退款记录的唯一标识符集合 /// 必填 ///
agree bool 同意或者驳回 /// 批量驳回传false,批量同意传true /// 必填 ///
denyReason string 驳回理由 /// 可空 ///
return BeeCloud.Model.BCApproveRefundResult

BCAuthentication() public static method

身份实名验证,支持二要素,三要素,四要素验证
public static BCAuthentication ( string name, string IDNo, string cardNo, string mobile ) : bool
name string 身份证姓名
IDNo string 身份证号
cardNo string 用户银行卡号(选填)
mobile string 用户银行卡预留手机号(选填)
return bool

BCBankCardTransfer() public static method

BC银行卡代付
public static BCBankCardTransfer ( BCTransferWithBackCard transfer ) : BCTransferWithBackCard
transfer BeeCloud.Model.BCTransferWithBackCard 具体参考初始化BCTransferWithBackCard
return BeeCloud.Model.BCTransferWithBackCard

BCCJBankCardTransfer() public static method

public static BCCJBankCardTransfer ( BCCJTransferWithBackCard transfer ) : BCCJTransferWithBackCard
transfer BCCJTransferWithBackCard
return BCCJTransferWithBackCard

BCInternationalPay() public static method

境外支付
public static BCInternationalPay ( BCInternationlBill bill ) : BCInternationlBill
bill BeeCloud.Model.BCInternationlBill
return BeeCloud.Model.BCInternationlBill

BCOfflineBillStatus() public static method

支付宝微信扫码/被扫订单状态查询
public static BCOfflineBillStatus ( string billNo, string channel ) : bool
billNo string
channel string
return bool

BCOfflinePayByChannel() public static method

微信支付宝扫码/被扫支付
public static BCOfflinePayByChannel ( BCBill bill ) : BCBill
bill BeeCloud.Model.BCBill
return BeeCloud.Model.BCBill

BCPayByChannel() public static method

支付
public static BCPayByChannel ( BCBill bill ) : BCBill
bill BeeCloud.Model.BCBill
return BeeCloud.Model.BCBill

BCPayQueryByCondition() public static method

支付订单查询
public static BCPayQueryByCondition ( BCQueryBillParameter para ) : List
para BeeCloud.Model.BCQueryBillParameter
return List

BCPayQueryById() public static method

支付订单查询(指定ID)
public static BCPayQueryById ( string id ) : BCBill
id string 订单id
return BeeCloud.Model.BCBill

BCPayQueryCount() public static method

获得订单笔数,配合BCPayQueryByCondition使用,使用查询订单时一样的参数
public static BCPayQueryCount ( BCQueryBillParameter para ) : int
para BeeCloud.Model.BCQueryBillParameter
return int

BCRefundByChannel() public static method

(预)退款
public static BCRefundByChannel ( BCRefund refund ) : BCRefund
refund BeeCloud.Model.BCRefund
return BeeCloud.Model.BCRefund

BCRefundQueryByCondition() public static method

退款订单查询
public static BCRefundQueryByCondition ( BCQueryRefundParameter para ) : List
para BeeCloud.Model.BCQueryRefundParameter
return List

BCRefundQueryById() public static method

退款订单查询(指定ID)
public static BCRefundQueryById ( string id ) : BCRefund
id string 退款记录的唯一标识,可用于查询单笔记录
return BeeCloud.Model.BCRefund

BCRefundQueryCount() public static method

获得退款笔数,配合BCRefundQueryByCondition使用,使用查询退款时一样的参数
public static BCRefundQueryCount ( BCQueryRefundParameter para ) : int
para BeeCloud.Model.BCQueryRefundParameter
return int

BCRefundStatusQuery() public static method

退款状态查询"
public static BCRefundStatusQuery ( string channel, string refundNo ) : string
channel string 渠道类型 /// 只有WX、YEE、KUAIQIAN、BD需要 ///
refundNo string 商户退款单号 ///
return string

BCTransfer() public static method

打款
public static BCTransfer ( BCTransferParameter para ) : string
para BeeCloud.Model.BCTransferParameter
return string

BCTransfers() public static method

批量打款
public static BCTransfers ( BCTransfersParameter para ) : string
para BCTransfersParameter
return string

createPlan() public static method

创建订阅计划
public static createPlan ( BCPlan plan ) : BCPlan
plan BCPlan 设置计划参数
return BCPlan

createSubscription() public static method

创建订阅记录
public static createSubscription ( string smsID, string smsCode, BCSubscription subscription ) : BCSubscription
smsID string 用户短信ID,通过sendSMS方法发送给用户手机时获得
smsCode string 用户短信验证码
subscription BCSubscription 设置订阅参数
return BCSubscription

deletePlan() public static method

删除订阅计划
public static deletePlan ( string id ) : string
id string
return string

deleteSubscription() public static method

删除订阅记录
public static deleteSubscription ( string id, bool atPeriodEnd ) : string
id string
atPeriodEnd bool
return string

getBankFullNames() public static method

获取BeeCloud企业打款支持的银行全称列表
public static getBankFullNames ( string type ) : BankList
type string 业务类型: /// P_DE:对私借记卡, /// P_CR:对私信用卡, /// C:对公账户 ///
return BankList

getBanks() public static method

获取所有支持订阅的银行列表
public static getBanks ( ) : List
return List

getCommonBanks() public static method

获取常用的支持订阅的银行列表
public static getCommonBanks ( ) : List
return List

handleApproveRefundResult() public static method

public static handleApproveRefundResult ( string respString, string channel ) : BCApproveRefundResult
respString string
channel string
return BeeCloud.Model.BCApproveRefundResult

handleBCTransferWithBankCardResult() public static method

public static handleBCTransferWithBankCardResult ( string respString, BCTransferWithBackCard transfer ) : BCTransferWithBackCard
respString string
transfer BeeCloud.Model.BCTransferWithBackCard
return BeeCloud.Model.BCTransferWithBackCard

handleInternationalPayResult() public static method

public static handleInternationalPayResult ( string respString, BCInternationlBill bill ) : BCInternationlBill
respString string
bill BeeCloud.Model.BCInternationlBill
return BeeCloud.Model.BCInternationlBill

handlePayQueryByConditionResult() public static method

public static handlePayQueryByConditionResult ( string respString, bool needDetail ) : List
respString string
needDetail bool
return List

handlePayQueryByIdResult() public static method

public static handlePayQueryByIdResult ( string respString ) : BCBill
respString string
return BeeCloud.Model.BCBill

handlePayResult() public static method

public static handlePayResult ( string respString, BCBill bill ) : BCBill
respString string
bill BeeCloud.Model.BCBill
return BeeCloud.Model.BCBill

handleQueryCountResult() public static method

public static handleQueryCountResult ( string respString ) : int
respString string
return int

handleRefundQueryByConditionResult() public static method

public static handleRefundQueryByConditionResult ( string respString, bool needDetail ) : List
respString string
needDetail bool
return List

handleRefundQueryByIdResult() public static method

public static handleRefundQueryByIdResult ( string respString ) : BCRefund
respString string
return BeeCloud.Model.BCRefund

handleRefundResult() public static method

public static handleRefundResult ( string respString, BCRefund refund ) : BCRefund
respString string
refund BeeCloud.Model.BCRefund
return BeeCloud.Model.BCRefund

handleRefundStatusQueryResult() public static method

public static handleRefundStatusQueryResult ( string respString ) : string
respString string
return string

handleTransfersResult() public static method

public static handleTransfersResult ( string respString, string channel ) : string
respString string
channel string
return string

prepareApproveRefundParameters() public static method

public static prepareApproveRefundParameters ( string channel, List ids, bool agree, string denyReason ) : string
channel string
ids List
agree bool
denyReason string
return string

prepareBCTransferWithBankCard() public static method

public static prepareBCTransferWithBankCard ( BCTransferWithBackCard transfer ) : string
transfer BeeCloud.Model.BCTransferWithBackCard
return string

prepareInternationalPayParameters() public static method

public static prepareInternationalPayParameters ( BCInternationlBill bill ) : string
bill BeeCloud.Model.BCInternationlBill
return string

preparePayParameters() public static method

public static preparePayParameters ( BCBill bill ) : string
bill BeeCloud.Model.BCBill
return string

preparePayQueryByConditionParameters() public static method

public static preparePayQueryByConditionParameters ( BCQueryBillParameter para ) : string
para BeeCloud.Model.BCQueryBillParameter
return string

prepareQueryByIdParameters() public static method

public static prepareQueryByIdParameters ( string id ) : string
id string
return string

prepareRefundParameters() public static method

public static prepareRefundParameters ( BCRefund refund ) : string
refund BeeCloud.Model.BCRefund
return string

prepareRefundQueryByConditionParameters() public static method

public static prepareRefundQueryByConditionParameters ( BCQueryRefundParameter para ) : string
para BeeCloud.Model.BCQueryRefundParameter
return string

prepareRefundStatusQueryParameters() public static method

public static prepareRefundStatusQueryParameters ( string channel, string refundNo ) : string
channel string
refundNo string
return string

prepareTransferParameters() public static method

public static prepareTransferParameters ( BCTransferParameter para ) : string
para BeeCloud.Model.BCTransferParameter
return string

prepareTransfersParameters() public static method

public static prepareTransfersParameters ( BCTransfersParameter para ) : string
para BCTransfersParameter
return string

queryPlanByID() public static method

根据ID查询订阅计划
public static queryPlanByID ( string id ) : BCPlan
id string
return BCPlan

queryPlansByCondition() public static method

按条件查询订阅计划
public static queryPlansByCondition ( string nameWithSubstring, string interval, int intervalCount, int trialDays, long createdBefore, long createdAfter, int skip, int limit, bool countOnly ) : List
nameWithSubstring string 订阅计划名
interval string 订阅周期
intervalCount int 周期长度
trialDays int 订阅发生时间与实际扣款时间之间的时长
createdBefore long 创建时间前
createdAfter long 创建时间后
skip int 跳过数量
limit int 查询限量
countOnly bool 设置为true时只返回数量,设置为false时只返回plan记录
return List

querySubscriptionByID() public static method

按ID查询订阅记录
public static querySubscriptionByID ( string id ) : BCSubscription
id string
return BCSubscription

querySubscriptionsByCondition() public static method

按条件查询用户订阅
public static querySubscriptionsByCondition ( string buyerID, string planID, string cardID, long createdBefore, long createdAfter, int skip, int limit, bool countOnly ) : List
buyerID string 用户ID
planID string 订阅计划ID
cardID string 用户卡ID
createdBefore long 创建时间前
createdAfter long 创建时间后
skip int 跳过数量
limit int 查询限量
countOnly bool 设置为true时只返回数量,设置为false时只返回plan记录
return List

sendSMS() public static method

给用户发送验证码
public static sendSMS ( string phone ) : string
phone string 用户电话
return string

updatePlan() public static method

跟新订阅计划
public static updatePlan ( string id, string name, bool valid, string>.Dictionary optional ) : string
id string 计划ID
name string 计划名
valid bool
optional string>.Dictionary 自定义字段
return string

updateSubscription() public static method

跟新订阅记录
public static updateSubscription ( string id, string buyerID, string planID, string cardID, double amount, string coupon, long trialEnd, string>.Dictionary optional ) : string
id string
buyerID string
planID string
cardID string
amount double
coupon string
trialEnd long
optional string>.Dictionary
return string