/* * @Author: zcxb chen13157379235@outlook.com * @Date: 2023-01-07 14:45:57 * @LastEditors: zcxb chen13157379235@outlook.com * @LastEditTime: 2023-03-31 15:27:33 * @FilePath: /easy-front-core-sdk/packages/jos/src/api/SupplierAPI.ts * @Description: * * Copyright (c) 2023 by zcxb chen13157379235@outlook.com, All Rights Reserved. */ import { ApiMethod } from '../Enums' import { JosCore, RequestOptions } from '../JosCore' import { Dropship, Ediws, Vc } from '../entity/SupplierDTO' export class SupplierAPI { /** * 查询所有状态订单的全量信息,供应商维度数据(非店铺维度 * @param josCore * @param apiParams * @param accessToken * @param options * @link https://open.jd.com/#/doc/api?apiCateId=86&apiId=1701&apiName=jingdong.dropship.dps.searchAllOrders */ public static async jingdongDropshipDpsSearchAllOrders( josCore: JosCore, apiParams: Dropship.Dps.SearchAllOrdersDTO, accessToken: string, options?: RequestOptions ): Promise { return await josCore.request(ApiMethod.JINGDONG_DROPSHIP_DPS_SEARCHALLORDERS, apiParams, accessToken, options) } public static async jingdongDropshipDpsSearchSingleOrder( josCore: JosCore, apiParams: Dropship.Dps.SearchSingleOrderDTO, accessToken: string, options?: RequestOptions ): Promise { return await josCore.request(ApiMethod.JINGDONG_DROPSHIP_DPS_SEARCHSINGLEORDER, apiParams, accessToken, options) } /** * 查询售后退货列表 * @param josCore * @param apiParams * @param accessToken * @param options * @link https://open.jd.com/#/doc/api?apiCateId=86&apiId=8331&apiName=jingdong.ediws.ro.refundInfo.list */ public static async jingdongEdiwsRoRefundList( josCore: JosCore, apiParams: Ediws.Ro.RefundInfoListDTO, accessToken: string, options?: RequestOptions ): Promise { return await josCore.request(ApiMethod.JINGDONG_EDIWS_RO_REFUNDINFO_LIST, apiParams, accessToken, options) } /** * 根据商品编号获取商品信息 * @param josCore * @param apiParams * @param accessToken * @param options * @link https://open.jd.com/#/doc/api?apiCateId=86&apiId=1672&apiName=jingdong.vc.item.product.get */ public static async jingdongVcItemProductGet( josCore: JosCore, apiParams: Vc.Item.ProductGetDTO, accessToken: string, options?: RequestOptions ): Promise { return await josCore.request(ApiMethod.JINGDONG_VC_ITEM_PRODUCT_GET, apiParams, accessToken, options) } /** * 通过商品编号查找主图信息 * @param josCore * @param apiParams * @param accessToken * @param options * @link https://open.jd.com/#/doc/api?apiCateId=86&apiId=1176&apiName=jingdong.vc.item.primaryPic.get */ public static async jingdongVcItemPrimaryPicGet( josCore: JosCore, apiParams: Vc.Item.PrimaryPicGetDTO, accessToken: string, options?: RequestOptions ): Promise { return await josCore.request(ApiMethod.JINGDONG_VC_ITEM_PRIMARYPIC_GET, apiParams, accessToken, options) } /** * 分页查询采购订单列表 * @param josCore * @param apiParams * @param accessToken * @param options * @link https://open.jd.com/#/doc/api?apiCateId=86&apiId=1192&apiName=jingdong.vc.getpurchaseorderlist */ public static async jingdongVcGetPurchaseOrderList( josCore: JosCore, apiParams: Vc.GetPurchaseOrderListDTO, accessToken: string, options?: RequestOptions ): Promise { return await josCore.request(ApiMethod.JINGDONG_VC_GETPURCHASEORDERLIST, apiParams, accessToken, options) } public static async jingdongDropshipDpsDelivery( josCore: JosCore, apiParams: Dropship.Dps.DeliveryDTO, accessToken: string, options?: RequestOptions ): Promise { return await josCore.request(ApiMethod.JINGDONG_DROPSHIP_DPS_DELIVERY, apiParams, accessToken, options) } }