|
|
@ -57,20 +57,13 @@ namespace BBWY.Client.APIServices |
|
|
|
/// <param name="consignee"></param>
|
|
|
|
/// <param name="purchaseSchemeProductSkuList"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
public ApiResponse<PreviewOrderResponse> PreviewPurchaseOrder(Consignee consignee, IList<PurchaseSchemeProductSku> purchaseSchemeProductSkuList, Platform purchasePlatform, PurchaseAccount purchaseAccount, PurchaseOrderMode purchaseOrderMode) |
|
|
|
public ApiResponse<PreviewOrderResponse> PreviewPurchaseOrder(Consignee consignee, List<CargoParam> cargoParamList, Platform purchasePlatform, PurchaseAccount purchaseAccount, PurchaseOrderMode purchaseOrderMode) |
|
|
|
{ |
|
|
|
return SendRequest<PreviewOrderResponse>(globalContext.BBYWApiHost, "api/purchaseOrder/PreviewPurchaseOrder", new |
|
|
|
{ |
|
|
|
purchaseOrderMode, |
|
|
|
consignee, |
|
|
|
CargoParamList = purchaseSchemeProductSkuList.Select(sku => new |
|
|
|
{ |
|
|
|
ProductId = sku.PurchaseProductId, |
|
|
|
SkuId = sku.PurchaseSkuId, |
|
|
|
SpecId = sku.PurchaseSkuSpecId, |
|
|
|
Quantity = sku.ItemTotal, |
|
|
|
BelongSkuId = sku.SkuId |
|
|
|
}), |
|
|
|
CargoParamList = cargoParamList, |
|
|
|
Platform = purchasePlatform, |
|
|
|
AppKey = purchaseAccount.AppKey, |
|
|
|
AppSecret = purchaseAccount.AppSecret, |
|
|
@ -99,7 +92,7 @@ namespace BBWY.Client.APIServices |
|
|
|
/// <param name="extensions"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
public ApiResponse<object> FastCreateOrder(Consignee consignee, |
|
|
|
IList<PurchaseSchemeProductSku> purchaseSchemeProductSkuList, |
|
|
|
List<CargoParam> cargoParamList, |
|
|
|
Platform purchasePlatform, |
|
|
|
PurchaseAccount purchaseAccount, |
|
|
|
PurchaseOrderMode purchaseOrderMode, |
|
|
@ -118,15 +111,7 @@ namespace BBWY.Client.APIServices |
|
|
|
{ |
|
|
|
purchaseOrderMode, |
|
|
|
consignee, |
|
|
|
CargoParamList = purchaseSchemeProductSkuList.Select(sku => new |
|
|
|
{ |
|
|
|
ProductId = sku.PurchaseProductId, |
|
|
|
SkuId = sku.PurchaseSkuId, |
|
|
|
SpecId = sku.PurchaseSkuSpecId, |
|
|
|
Quantity = sku.ItemTotal, |
|
|
|
BelongSkuId = sku.SkuId, |
|
|
|
SchemeId = sku.SkuPurchaseSchemeId |
|
|
|
}), |
|
|
|
CargoParamList = cargoParamList, |
|
|
|
Platform = purchasePlatform, |
|
|
|
purchaseAccount.AppKey, |
|
|
|
purchaseAccount.AppSecret, |
|
|
|