9 changed files with 291 additions and 91 deletions
@ -0,0 +1,61 @@ |
|||
using BBWY.Client.Models; |
|||
using BBWY.Common.Http; |
|||
using BBWY.Common.Models; |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Net.Http; |
|||
|
|||
namespace BBWY.Client.APIServices |
|||
{ |
|||
public class FinancialTerminalService : BaseApiService, IDenpendency |
|||
{ |
|||
public FinancialTerminalService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) |
|||
{ |
|||
|
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 查询账单
|
|||
/// </summary>
|
|||
/// <param name="importShopIds"></param>
|
|||
/// <param name="startDate"></param>
|
|||
/// <param name="endDate"></param>
|
|||
/// <returns></returns>
|
|||
public ApiResponse<IList<AuditPayBillResponse>> GetAuditPayBillList(string importShopIds, DateTime startDate, DateTime endDate) |
|||
{ |
|||
return SendRequest<IList<AuditPayBillResponse>>(globalContext.BBYWApiHost, "Api/FinancialTerminal/GetAuditPayBillList", new |
|||
{ |
|||
importShopIds, |
|||
startDate, |
|||
endDate |
|||
}, null, HttpMethod.Post); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 批量插入账单
|
|||
/// </summary>
|
|||
/// <param name="insertList"></param>
|
|||
/// <returns></returns>
|
|||
public ApiResponse<object> BatchInsertAuditPayBill(IList<AuditPayBill> insertList) |
|||
{ |
|||
return SendRequest<object>(globalContext.BBYWApiHost, "Api/FinancialTerminal/BatchInsertAuditPayBill", insertList, null, HttpMethod.Post); |
|||
} |
|||
|
|||
/// <summary>
|
|||
/// 检测账单是否存在
|
|||
/// </summary>
|
|||
/// <param name="importShopIds"></param>
|
|||
/// <param name="startDate"></param>
|
|||
/// <param name="endDate"></param>
|
|||
/// <returns></returns>
|
|||
public ApiResponse<bool> IsExistAuditPayBill(string importShopIds, DateTime startDate, DateTime endDate) |
|||
{ |
|||
return SendRequest<bool>(globalContext.BBYWApiHost, "Api/FinancialTerminal/IsExistAuditPayBill", new |
|||
{ |
|||
importShopIds, |
|||
startDate, |
|||
endDate |
|||
}, null, HttpMethod.Post); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,96 @@ |
|||
using System; |
|||
|
|||
namespace BBWY.Client.Models |
|||
{ |
|||
public class AuditPayBillResponse |
|||
{ |
|||
/// <summary>
|
|||
/// 账单流水号
|
|||
/// </summary>
|
|||
public long PayBillNo { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 归属店铺
|
|||
/// </summary>
|
|||
public string BelongShop { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 归属店铺Id
|
|||
/// </summary>
|
|||
|
|||
public int? BelongShopId { get; set; } |
|||
|
|||
public DateTime? CreateTime { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 支出金额
|
|||
/// </summary>
|
|||
public decimal? ExpenditureAmount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 收入金额
|
|||
/// </summary>
|
|||
public decimal? IncomeAmount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 是否支持商户订单号
|
|||
/// </summary>
|
|||
|
|||
public bool? IsSupportMerchantOrderNo { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 格式化之后的商家订单号
|
|||
/// </summary>
|
|||
|
|||
public string MerchantOrderNo { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 对方账户
|
|||
/// </summary>
|
|||
|
|||
public string OppositeAccount { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 账单类型
|
|||
/// </summary>
|
|||
public PayBillType? PayBillType { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 支付时间
|
|||
/// </summary>
|
|||
public DateTime? PayTime { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 商品名称
|
|||
/// </summary>
|
|||
|
|||
public string ProductName { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 关联采购订单号
|
|||
/// </summary>
|
|||
public string RelationPurchaseOrderId { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 关联平台订单Id
|
|||
/// </summary>
|
|||
public string RelationShopOrderId { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 备注
|
|||
/// </summary>
|
|||
|
|||
public string Remark { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 原始商家订单号
|
|||
/// </summary>
|
|||
|
|||
public string SourceMerchantOrderNo { get; set; } |
|||
|
|||
/// <summary>
|
|||
/// 导入时选择的店铺
|
|||
/// </summary>
|
|||
public string ImportShopIds { get; set; } |
|||
} |
|||
} |
Loading…
Reference in new issue