From f8ee59f12db2d0d5916ee78419a21dc64c7994a1 Mon Sep 17 00:00:00 2001 From: ldj <1223042416@qq.com> Date: Fri, 1 Mar 2024 11:48:58 +0800 Subject: [PATCH] =?UTF-8?q?1.=E9=80=9F=E5=8D=96=E9=80=9Asdk=20api=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AliexpressLogisticsController.java | 637 ++++++++++++++++++ .../AliexpressMemberController.java | 14 +- .../CategoryGetPropValueFeatureDTO.java | 3 + .../logistics/LogisticsAnnouncementDTO.java | 22 + .../logistics/LogisticsBuyerCPFInfoDTO.java | 18 + .../dto/logistics/LogisticsCloudPrintDTO.java | 20 + .../logistics/LogisticsCreateOrderDTO.java | 48 ++ .../LogisticsCreateWarehouseOrderDTO.java | 44 ++ .../LogisticsDeclareShipmentDTO.java | 19 + .../LogisticsEstimateInsuranceDTO.java | 24 + .../logistics/LogisticsGetAllProvinceDTO.java | 16 + .../LogisticsGetDeliveryLabelDTO.java | 18 + .../LogisticsGetFieldInfoForPrintDTO.java | 20 + .../LogisticsGetListLogisticsServiceDTO.java | 17 + .../LogisticsGetOnlineLogisticsInfoDTO.java | 38 ++ ...nlineLogisticsServiceListByOrderIdDTO.java | 28 + .../logistics/LogisticsGetPrintInfosDTO.java | 20 + ...LogisticsLocalCreateWarehouseOrderDTO.java | 36 + ...LogisticsLocalListLogisticsServiceDTO.java | 18 + .../logistics/LogisticsModifyShipmentDTO.java | 24 + .../LogisticsNextLevelAddressDataDTO.java | 18 + .../LogisticsOrderDeliveryInfoDTO.java | 18 + .../dto/logistics/LogisticsQueryEnumDTO.java | 17 + ...LogisticsQueryLogisticsOrderDetailDTO.java | 35 + .../LogisticsQueryLogisticsServiceDTO.java | 18 + .../logistics/LogisticsQueryRuleInfoDTO.java | 18 + .../LogisticsQuerySellerShipmentInfoDTO.java | 24 + .../logistics/LogisticsQueryTrackingDTO.java | 26 + ...csQueryWlbDomesticLogisticsCompanyDTO.java | 16 + .../logistics/LogisticsSellerAddressDTO.java | 18 + .../LogisticsSellerAddressesDTO.java | 18 + .../LogisticsSellerModifiedShipmentDTO.java | 24 + ...isticsSellerModifiedShipmentForTopDTO.java | 38 ++ .../logistics/LogisticsSellerShipmentDTO.java | 20 + .../LogisticsSellerShipmentForTopDTO.java | 36 + .../dto/logistics/LogisticsServiceDTO.java | 18 + .../LogisticsWarehouseQueryDetailDTO.java | 36 + .../dto/member/MemberDsOrderDataSaveDTO.java | 2 +- .../dto/member/MemberOauthAuthorizeDTO.java | 8 +- .../member/MemberQueryAccountLevelDTO.java | 2 +- .../dto/member/MemberUicQueryTbNickDTO.java | 2 +- .../web/enumerate/AliexpressLogisticsEnu.java | 108 +++ 42 files changed, 1590 insertions(+), 14 deletions(-) create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsAnnouncementDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsBuyerCPFInfoDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCloudPrintDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCreateOrderDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCreateWarehouseOrderDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsDeclareShipmentDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsEstimateInsuranceDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetAllProvinceDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetDeliveryLabelDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetFieldInfoForPrintDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetListLogisticsServiceDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetOnlineLogisticsInfoDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetOnlineLogisticsServiceListByOrderIdDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetPrintInfosDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsLocalCreateWarehouseOrderDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsLocalListLogisticsServiceDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsModifyShipmentDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsNextLevelAddressDataDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsOrderDeliveryInfoDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryEnumDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryLogisticsOrderDetailDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryLogisticsServiceDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryRuleInfoDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQuerySellerShipmentInfoDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryTrackingDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryWlbDomesticLogisticsCompanyDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerAddressDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerAddressesDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerModifiedShipmentDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerModifiedShipmentForTopDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerShipmentDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerShipmentForTopDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsServiceDTO.java create mode 100644 ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsWarehouseQueryDetailDTO.java diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressLogisticsController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressLogisticsController.java index 30b8265..25e817b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressLogisticsController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressLogisticsController.java @@ -1,7 +1,20 @@ package com.ruoyi.web.controller.aliexpress; +import com.global.iop.api.IopClient; +import com.global.iop.api.IopClientImpl; +import com.global.iop.api.IopRequest; +import com.global.iop.api.IopResponse; +import com.global.iop.domain.Protocol; +import com.global.iop.util.ApiException; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.web.controller.aliexpress.dto.logistics.*; import com.ruoyi.web.core.config.AliexpressAuthClientConfig; +import com.ruoyi.web.enumerate.AliexpressLogisticsEnu; import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -33,6 +46,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 商家地址信息查询 + */ + @Log(title = "商家地址信息查询", businessType = BusinessType.SELECT) + @ApiOperation("商家地址信息查询") + @PostMapping("/getLogisticsSellerAddresses") + public String getLogisticsSellerAddresses(@RequestBody LogisticsSellerAddressesDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.LOCAL_GET_LOGISTICS_SELLER_ADDRESSES.getApiName()); + request.addApiParameter("seller_address_query", reqDto.getSeller_address_query()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //描述:本对本列出所有的商家可见解决方案 //描述:本对本列出所有的商家可见解决方案 /* @@ -45,6 +74,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 列出所有的商家可见解决方案 + */ + @Log(title = "列出所有的商家可见解决方案", businessType = BusinessType.SELECT) + @ApiOperation("列出所有的商家可见解决方案") + @PostMapping("/localListLogisticsService") + public String localListLogisticsService(@RequestBody LogisticsLocalListLogisticsServiceDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.LOCAL_LIST_LOGISTICS_SERVICE.getApiName()); + request.addApiParameter("locale", reqDto.getLocale()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //描述:读取下一级别的地址信息 //描述:读取下一级别的地址信息 /* @@ -57,6 +102,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 读取下一级别的地址信息 + */ + @Log(title = "读取下一级别的地址信息", businessType = BusinessType.SELECT) + @ApiOperation("读取下一级别的地址信息") + @PostMapping("/getNextLevelAddressData") + public String getNextLevelAddressData(@RequestBody LogisticsNextLevelAddressDataDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_NEXT_LEVEL_ADDRESS_DATA.getApiName()); + request.addApiParameter("area_id", reqDto.getArea_id()); + IopResponse response = client.execute(request, Protocol.TOP); + return response.getGopResponseBody(); + } + //描述:面向海外物流ISV/合作伙伴获取速卖通订单发货信息的API //描述:面向海外物流ISV/合作伙伴获取速卖通订单发货信息的API /* @@ -69,6 +129,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 面向海外物流ISV/合作伙伴获取速卖通订单发货信息的API + */ + @Log(title = "获取速卖通订单发货信息", businessType = BusinessType.SELECT) + @ApiOperation("获取速卖通订单发货信息") + @PostMapping("/getOrderDeliveryInfo") + public String getOrderDeliveryInfo(@RequestBody LogisticsOrderDeliveryInfoDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.ORDER_DELIVERY_INFO_GET.getApiName()); + request.addApiParameter("single_order_query", reqDto.getSingle_order_query()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //修改声明发货 //描述:修改声明发货 /* @@ -91,6 +167,31 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 修改声明发货 + */ + @Log(title = "修改声明发货", businessType = BusinessType.SELECT) + @ApiOperation("修改声明发货") + @PostMapping("/sellerModifiedShipmentForTop") + public String sellerModifiedShipmentForTop(@RequestBody LogisticsSellerModifiedShipmentForTopDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.SELLER_MODIFIED_SHIPMENT_FOR_TOP.getApiName()); + request.addApiParameter("tracking_website", reqDto.getTracking_website()); + request.addApiParameter("old_service_name", reqDto.getOld_service_name()); + request.addApiParameter("new_service_name", reqDto.getNew_service_name()); + request.addApiParameter("old_logistics_no", reqDto.getOld_logistics_no()); + request.addApiParameter("description", reqDto.getDescription()); + request.addApiParameter("new_logistics_no", reqDto.getNew_logistics_no()); + request.addApiParameter("send_type", reqDto.getSend_type()); + request.addApiParameter("out_ref", reqDto.getOut_ref()); + request.addApiParameter("package_type", reqDto.getPackage_type()); + request.addApiParameter("actual_carrier", reqDto.getActual_carrier()); + request.addApiParameter("locale", reqDto.getLocale()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //列出平台所支持的物流服务列表 //描述:此接口返回的物流服务于线上发货物流服务不同。此接口返回的物流服务用语卖家设置运费模板和声明发货,不能用于线上发货。请注意! /* @@ -102,6 +203,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 列出平台所支持的物流服务列表 + */ + @Log(title = "获取平台所支持的物流服务列表", businessType = BusinessType.SELECT) + @ApiOperation("获取平台所支持的物流服务列表") + @PostMapping("/getListLogisticsService") + public String getListLogisticsService(@RequestBody LogisticsGetListLogisticsServiceDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.LIST_LOGISTICS_SERVICE.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //创建子交易单线上物流订单 //描述:创建线上发货物流订单 /* @@ -129,6 +245,36 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 创建子交易单线上物流订单 + */ + @Log(title = "创建子交易单线上物流订单", businessType = BusinessType.SELECT) + @ApiOperation("创建子交易单线上物流订单") + @PostMapping("/createOrder") + public String createOrder(@RequestBody LogisticsCreateOrderDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.CREATE_ORDER.getApiName()); + request.addApiParameter("is_agree_upgrade_reverse_parcel_insure", reqDto.getIs_agree_upgrade_reverse_parcel_insure()); + request.addApiParameter("oaid", reqDto.getOaid()); + request.addApiParameter("pickup_type", reqDto.getPickup_type()); + request.addApiParameter("address_d_t_os", reqDto.getAddress_d_t_os()); + request.addApiParameter("declare_product_d_t_os", reqDto.getDeclare_product_d_t_os()); + request.addApiParameter("domestic_logistics_company", reqDto.getDomestic_logistics_company()); + request.addApiParameter("domestic_logistics_company_id", reqDto.getDomestic_logistics_company_id()); + request.addApiParameter("domestic_tracking_no", reqDto.getDomestic_tracking_no()); + request.addApiParameter("package_num", reqDto.getPackage_num()); + request.addApiParameter("trade_order_from", reqDto.getTrade_order_from()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("undeliverable_decision", reqDto.getUndeliverable_decision()); + request.addApiParameter("warehouse_carrier_service", reqDto.getWarehouse_carrier_service()); + request.addApiParameter("invoice_number", reqDto.getInvoice_number()); + request.addApiParameter("top_user_key", reqDto.getTop_user_key()); + request.addApiParameter("insurance_coverage", reqDto.getInsurance_coverage()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //创建线上物流订单 //描述:创建线上发货物流订单 @@ -155,6 +301,34 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 创建线上物流订单 + */ + @Log(title = "创建线上物流订单", businessType = BusinessType.SELECT) + @ApiOperation("创建线上物流订单") + @PostMapping("/createWarehouseOrder") + public String createWarehouseOrder(@RequestBody LogisticsCreateWarehouseOrderDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.CREATE_WAREHOUSE_ORDER.getApiName()); + request.addApiParameter("declare_product_d_t_os", reqDto.getDeclare_product_d_t_os()); + request.addApiParameter("domestic_logistics_company", reqDto.getDomestic_logistics_company()); + request.addApiParameter("domestic_logistics_company_id", reqDto.getDomestic_logistics_company_id()); + request.addApiParameter("domestic_tracking_no", reqDto.getDomestic_tracking_no()); + request.addApiParameter("package_num", reqDto.getPackage_num()); + request.addApiParameter("trade_order_from", reqDto.getTrade_order_from()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("undeliverable_decision", reqDto.getUndeliverable_decision()); + request.addApiParameter("warehouse_carrier_service", reqDto.getWarehouse_carrier_service()); + request.addApiParameter("address_d_t_os", reqDto.getAddress_d_t_os()); + request.addApiParameter("invoice_number", reqDto.getInvoice_number()); + request.addApiParameter("top_user_key", reqDto.getTop_user_key()); + request.addApiParameter("insurance_coverage", reqDto.getInsurance_coverage()); + request.addApiParameter("is_agree_upgrade_reverse_parcel_insure", reqDto.getIs_agree_upgrade_reverse_parcel_insure()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //声明发货接口 //描述:填写发货通知 /* @@ -176,6 +350,31 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 声明发货接口 + */ + @Log(title = "声明发货接口", businessType = BusinessType.SELECT) + @ApiOperation("声明发货接口") + @PostMapping("/sellerShipmentForTop") + public String sellerShipmentForTop(@RequestBody LogisticsSellerShipmentForTopDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.SELLER_SHIPMENT_FOR_TOP.getApiName()); + request.addApiParameter("logistics_no", reqDto.getLogistics_no()); + request.addApiParameter("description", reqDto.getDescription()); + request.addApiParameter("send_type", reqDto.getSend_type()); + request.addApiParameter("out_ref", reqDto.getOut_ref()); + request.addApiParameter("tracking_website", reqDto.getTracking_website()); + request.addApiParameter("service_name", reqDto.getService_name()); + request.addApiParameter("package_type", reqDto.getPackage_type()); + request.addApiParameter("actual_carrier", reqDto.getActual_carrier()); + request.addApiParameter("ioss", reqDto.getIoss()); + request.addApiParameter("locale", reqDto.getLocale()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //子单修改声明发货 //描述:支持对子订单进行修改声明发货的接口 /* @@ -191,6 +390,25 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 子单修改声明发货 + */ + @Log(title = "子单修改声明发货", businessType = BusinessType.UPDATE) + @ApiOperation("子单修改声明发货") + @PostMapping("/modifyShipment") + public String modifyShipment(@RequestBody LogisticsModifyShipmentDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.MODIFY_SHIPMENT.getApiName()); + request.addApiParameter("sub_trade_order_list", reqDto.getSub_trade_order_list()); + request.addApiParameter("old_logistics_no", reqDto.getOld_logistics_no()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("old_service_name", reqDto.getOld_service_name()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //子单声明发货 //描述:子单申明发货 /* @@ -203,6 +421,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 子单声明发货 + */ + @Log(title = "子单声明发货", businessType = BusinessType.UPDATE) + @ApiOperation("子单声明发货") + @PostMapping("/declareShipment") + public String declareShipment(@RequestBody LogisticsDeclareShipmentDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.DECLARE_SHIPMENT.getApiName()); + request.addApiParameter("param_aeop_seller_shipment_sub_trade_order_request", reqDto.getParam_aeop_seller_shipment_sub_trade_order_request()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //批量获取线上发货标签 //描述:批量获取线上发货标签(线上物流发货专用接口) /* @@ -216,6 +450,23 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 批量获取线上发货标签 + */ + @Log(title = "批量获取线上发货标签", businessType = BusinessType.UPDATE) + @ApiOperation("批量获取线上发货标签") + @PostMapping("/getPrintInfos") + public String getPrintInfos(@RequestBody LogisticsGetPrintInfosDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_PRINT_INFOS.getApiName()); + request.addApiParameter("print_detail", reqDto.getPrint_detail()); + request.addApiParameter("warehouse_order_query_d_t_os", reqDto.getWarehouse_order_query_d_t_os()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //支持子订单声明发货接口 //描述:支持子订单声明发货接口 /* @@ -229,6 +480,23 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 支持子订单声明发货接口 + */ + @Log(title = "支持子订单声明发货接口", businessType = BusinessType.UPDATE) + @ApiOperation("支持子订单声明发货接口") + @PostMapping("/sellerShipmentSupportSubTradeOrder") + public String sellerShipmentSupportSubTradeOrder(@RequestBody LogisticsSellerShipmentDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.SELLER_SHIPMENT_SUPPORT_SUB_TRADE_ORDER.getApiName()); + request.addApiParameter("sub_trade_order_list", reqDto.getSub_trade_order_list()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //支持对子订单进行修改声明发货的接口 //描述:支持对子订单进行修改声明发货的接口 /* @@ -244,6 +512,25 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 支持对子订单进行修改声明发货的接口 + */ + @Log(title = "支持对子订单进行修改声明发货的接口", businessType = BusinessType.UPDATE) + @ApiOperation("支持对子订单进行修改声明发货的接口") + @PostMapping("/sellerModifiedShipmentSupportSubTradeOrder") + public String sellerModifiedShipmentSupportSubTradeOrder(@RequestBody LogisticsSellerModifiedShipmentDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.SELLER_MODIFIED_SHIPMENT_SUPPORT_SUB_TRADE_ORDER.getApiName()); + request.addApiParameter("sub_trade_order_list", reqDto.getSub_trade_order_list()); + request.addApiParameter("old_logistics_no", reqDto.getOld_logistics_no()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("old_service_name", reqDto.getOld_service_name()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //本对本创建线上物流订单 //描述:本对本创建线上发货物流订单,目前只支持巴西本对本业务 /* @@ -265,6 +552,29 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 本对本创建线上物流订单 + */ + @Log(title = "本对本创建线上物流订单", businessType = BusinessType.UPDATE) + @ApiOperation("本对本创建线上物流订单") + @PostMapping("/localCreateWarehouseOrder") + public String localCreateWarehouseOrder(@RequestBody LogisticsLocalCreateWarehouseOrderDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.LOCAL_CREATE_WAREHOUSE_ORDER.getApiName()); + request.addApiParameter("address_d_t_os", reqDto.getAddress_d_t_os()); + request.addApiParameter("declare_product_d_t_os", reqDto.getDeclare_product_d_t_os()); + request.addApiParameter("package_num", reqDto.getPackage_num()); + request.addApiParameter("trade_order_from", reqDto.getTrade_order_from()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("invoice_number", reqDto.getInvoice_number()); + request.addApiParameter("top_user_key", reqDto.getTop_user_key()); + request.addApiParameter("insurance_coverage", reqDto.getInsurance_coverage()); + request.addApiParameter("is_agree_upgrade_reverse_parcel_insure", reqDto.getIs_agree_upgrade_reverse_parcel_insure()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //查询仓发物流订单信息 //描述:查询仓发物流订单信息 /* @@ -286,6 +596,29 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询仓发物流订单信息 + */ + @Log(title = "查询仓发物流订单信息", businessType = BusinessType.UPDATE) + @ApiOperation("查询仓发物流订单信息") + @PostMapping("/warehouseQueryDetail") + public String warehouseQueryDetail(@RequestBody LogisticsWarehouseQueryDetailDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.WAREHOUSE_QUERY_DETAIL.getApiName()); + request.addApiParameter("consign_type", reqDto.getConsign_type()); + request.addApiParameter("current_page", reqDto.getCurrent_page()); + request.addApiParameter("domestic_logistics_num", reqDto.getDomestic_logistics_num()); + request.addApiParameter("gmt_create_end_str", reqDto.getGmt_create_end_str()); + request.addApiParameter("gmt_create_start_str", reqDto.getGmt_create_start_str()); + request.addApiParameter("international_logistics_num", reqDto.getInternational_logistics_num()); + request.addApiParameter("logistics_status", reqDto.getLogistics_status()); + request.addApiParameter("page_size", reqDto.getPage_size()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("warehouse_carrier_service", reqDto.getWarehouse_carrier_service()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } //查询声明发货信息 //描述:查询声明发货信息 /* @@ -301,6 +634,24 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询声明发货信息 + */ + @Log(title = "查询声明发货信息", businessType = BusinessType.UPDATE) + @ApiOperation("查询声明发货信息") + @PostMapping("/querySellerShipmentInfo") + public String querySellerShipmentInfo(@RequestBody LogisticsQuerySellerShipmentInfoDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.QUERY_SELLER_SHIPMENT_INFO.getApiName()); + request.addApiParameter("logistics_no", reqDto.getLogistics_no()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("service_name", reqDto.getService_name()); + request.addApiParameter("sub_trade_order_index", reqDto.getSub_trade_order_index()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //查询头程信息需要的枚举信息(国家,仓代码等) //描述:提供查询头程信息需要的枚举信息(国家,仓码等) /* @@ -312,6 +663,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询头程信息需要的枚举信息(国家,仓代码等) + */ + @Log(title = "查询头程信息需要的枚举信息(国家,仓代码等)", businessType = BusinessType.OTHER) + @ApiOperation("查询头程信息需要的枚举信息(国家,仓代码等)") + @PostMapping("/queryEnum") + public String queryEnum(@RequestBody LogisticsQueryEnumDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.QUERY_ENUM.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询物流订单信息(推荐) //描述:该接口可以根据查询条件查询对应的物流订单的基本信息。 /* @@ -332,6 +698,29 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询物流订单信息(推荐) + */ + @Log(title = "查询物流订单信息(推荐)", businessType = BusinessType.OTHER) + @ApiOperation("查询物流订单信息(推荐)") + @PostMapping("/queryLogisticsOrderDetail") + public String queryLogisticsOrderDetail(@RequestBody LogisticsQueryLogisticsOrderDetailDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.QUERY_LOGISTICS_ORDER_DETAIL.getApiName()); + request.addApiParameter("current_page", reqDto.getCurrent_page()); + request.addApiParameter("domestic_logistics_num", reqDto.getDomestic_logistics_num()); + request.addApiParameter("gmt_create_end_str", reqDto.getGmt_create_end_str()); + request.addApiParameter("gmt_create_start_str", reqDto.getGmt_create_start_str()); + request.addApiParameter("international_logistics_num", reqDto.getInternational_logistics_num()); + request.addApiParameter("logistics_status", reqDto.getLogistics_status()); + request.addApiParameter("page_size", reqDto.getPage_size()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("warehouse_carrier_service", reqDto.getWarehouse_carrier_service()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //查询物流追踪信息 //描述:查询物流追踪信息 /* @@ -348,6 +737,26 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询物流追踪信息 + */ + @Log(title = "查询物流追踪信息", businessType = BusinessType.OTHER) + @ApiOperation("查询物流追踪信息") + @PostMapping("/queryTrackingResult") + public String queryTrackingResult(@RequestBody LogisticsQueryTrackingDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.QUERY_TRACKING_RESULT.getApiName()); + request.addApiParameter("logistics_no", reqDto.getLogistics_no()); + request.addApiParameter("origin", reqDto.getOrigin()); + request.addApiParameter("out_ref", reqDto.getOut_ref()); + request.addApiParameter("service_name", reqDto.getService_name()); + request.addApiParameter("to_area", reqDto.getTo_area()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询网规等物流信息 //描述:查询网规等物流信息 /* @@ -360,6 +769,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询网规等物流信息 + */ + @Log(title = "查询网规等物流信息", businessType = BusinessType.OTHER) + @ApiOperation("查询网规等物流信息") + @PostMapping("/queryRuleInfo") + public String queryRuleInfo(@RequestBody LogisticsQueryRuleInfoDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.QUERY_RULE_INFO.getApiName()); + request.addApiParameter("param1", reqDto.getParam1()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //根据交易单查询可用物流方案 //描述:根据交易单查询可用物流方案 /* @@ -372,6 +796,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 根据交易单查询可用物流方案 + */ + @Log(title = "根据交易单查询可用物流方案", businessType = BusinessType.OTHER) + @ApiOperation("根据交易单查询可用物流方案") + @PostMapping("/queryLogisticsService") + public String queryLogisticsService(@RequestBody LogisticsQueryLogisticsServiceDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.QUERY_LOGISTICS_SERVICE.getApiName()); + request.addApiParameter("interface_request", reqDto.getInterface_request()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //根据交易订单获取线上发货物流服务列表 //描述:"根据交易订单获取线上发货物流服务列表,线上发货物流服务仅能用于线上发货,请了解! 以下包裹信息是不支持线上发货的,获取方案可能为空: 1、长\宽\高 加起来 不能大于90; 2、长宽高最大的一条边不能大于60cm; 3、包裹重量不能超过2KG; 4、已操作线下物流发货的订单。" /* @@ -389,6 +829,26 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 根据交易订单获取线上发货物流服务列表 + */ + @Log(title = "根据交易订单获取线上发货物流服务列表", businessType = BusinessType.OTHER) + @ApiOperation("根据交易订单获取线上发货物流服务列表") + @PostMapping("/getOnlineLogisticsServiceListByOrderId") + public String getOnlineLogisticsServiceListByOrderId(@RequestBody LogisticsGetOnlineLogisticsServiceListByOrderIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_ONLINE_LOGISTICS_SERVICE_LIST_BY_ORDER_ID.getApiName()); + request.addApiParameter("goods_width", reqDto.getGoods_width()); + request.addApiParameter("goods_height", reqDto.getGoods_height()); + request.addApiParameter("goods_weight", reqDto.getGoods_weight()); + request.addApiParameter("goods_length", reqDto.getGoods_length()); + request.addApiParameter("order_id", reqDto.getOrder_id()); + request.addApiParameter("locale", reqDto.getLocale()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //物流包裹货值保费估算接口 //描述:商家对包裹货值进行投保,预估算包裹保费费率 /* @@ -404,6 +864,27 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 物流包裹货值保费估算接口 + */ + @Log(title = "物流包裹货值保费估算接口", businessType = BusinessType.OTHER) + @ApiOperation("物流包裹货值保费估算接口") + @PostMapping("/estimateInsurance") + public String estimateInsurance(@RequestBody LogisticsEstimateInsuranceDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.VALUE_ADDED_INSURANCE_ESTIMATE.getApiName()); + + request.addApiParameter("agree_upgrade_reverse_parcel_insure", reqDto.getAgree_upgrade_reverse_parcel_insure()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + request.addApiParameter("insurance_coverage", reqDto.getInsurance_coverage()); + request.addApiParameter("solution_code", reqDto.getSolution_code()); + + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //获取中国省份信息列表 //描述:获取中国省份信息列表 /* @@ -415,6 +896,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取中国省份信息列表 + */ + @Log(title = "获取中国省份信息列表", businessType = BusinessType.OTHER) + @ApiOperation("获取中国省份信息列表") + @PostMapping("/getAllProvince") + public String getAllProvince(@RequestBody LogisticsGetAllProvinceDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_ALL_PROVINCE.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //获取买家收货CPF信息 //描述:获取买家收货CPF信息 /* @@ -427,6 +923,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取买家收货CPF信息 + */ + @Log(title = "获取买家收货CPF信息", businessType = BusinessType.OTHER) + @ApiOperation("获取买家收货CPF信息") + @PostMapping("/getBuyerCPFInfo") + public String getBuyerCPFInfo(@RequestBody LogisticsBuyerCPFInfoDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_WL_MAILING_ADDRESS_SNAPSHOT_DTO.getApiName()); + request.addApiParameter("trade_order_id", reqDto.getTrade_order_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //获取卖家地址 //获取卖家地址 /* @@ -439,6 +951,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取卖家地址 + */ + @Log(title = "获取卖家地址", businessType = BusinessType.OTHER) + @ApiOperation("获取卖家地址") + @PostMapping("/getSellerAddresses") + public String getSellerAddresses(@RequestBody LogisticsSellerAddressDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_LOGISTICS_SELLER_ADDRESSES.getApiName()); + request.addApiParameter("seller_address_query", reqDto.getSeller_address_query()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //获取开展国内物流业务的物流公司 //获取开展国内物流业务的物流公司 /* @@ -450,6 +977,20 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取开展国内物流业务的物流公司 + */ + @Log(title = "获取开展国内物流业务的物流公司", businessType = BusinessType.OTHER) + @ApiOperation("获取开展国内物流业务的物流公司") + @PostMapping("/queryWlbDomesticLogisticsCompany") + public String queryWlbDomesticLogisticsCompany(@RequestBody LogisticsQueryWlbDomesticLogisticsCompanyDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.QUERY_WLB_DOMESTIC_LOGISTICS_COMPANY.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //获取打印面单的字段 //获取打印面单的字段 /* @@ -463,6 +1004,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取打印面单的字段 + */ + @Log(title = "获取打印面单的字段", businessType = BusinessType.OTHER) + @ApiOperation("获取打印面单的字段") + @PostMapping("/getFieldInfoForPrint") + public String getFieldInfoForPrint(@RequestBody LogisticsGetFieldInfoForPrintDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_FIELD_INFO_FOR_PRINT.getApiName()); + request.addApiParameter("international_logistics_id", reqDto.getInternational_logistics_id()); + request.addApiParameter("id", reqDto.getId()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //获取物流公告信息 //获取物流公告信息 /* @@ -477,6 +1034,26 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取物流公告信息 + */ + @Log(title = "获取物流公告信息", businessType = BusinessType.OTHER) + @ApiOperation("获取物流公告信息") + @PostMapping("/getAnnouncement") + public String getAnnouncement(@RequestBody LogisticsAnnouncementDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_ANNOUNCEMENT.getApiName()); + + request.addApiParameter("seller_id", reqDto.getSeller_id()); + request.addApiParameter("start_time", reqDto.getStart_time()); + request.addApiParameter("end_time", reqDto.getEnd_time()); + + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //获取线上发货标签 //获取线上发货标签 /* @@ -489,6 +1066,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取线上发货标签 + */ + @Log(title = "获取线上发货标签", businessType = BusinessType.OTHER) + @ApiOperation("获取线上发货标签") + @PostMapping("/getOnlineDeliveryLabel") + public String getOnlineDeliveryLabel(@RequestBody LogisticsGetDeliveryLabelDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_PRINT_INFO.getApiName()); + request.addApiParameter("international_logistics_id", reqDto.getInternational_logistics_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //获取线上发货物流订单信息 //描述:线上物流发货专用接口 /* @@ -511,6 +1104,31 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取线上发货物流订单信息 + */ + @Log(title = "获取线上发货物流订单信息", businessType = BusinessType.OTHER) + @ApiOperation("获取线上发货物流订单信息") + @PostMapping("/getOnlineLogisticsInfo") + public String getOnlineLogisticsInfo(@RequestBody LogisticsGetOnlineLogisticsInfoDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_ONLINE_LOGISTICS_INFO.getApiName()); + request.addApiParameter("logistics_order_code", reqDto.getLogistics_order_code()); + request.addApiParameter("china_logistics_id", reqDto.getChina_logistics_id()); + request.addApiParameter("international_logistics_id", reqDto.getInternational_logistics_id()); + request.addApiParameter("logistics_status", reqDto.getLogistics_status()); + request.addApiParameter("gmt_create_end_str", reqDto.getGmt_create_end_str()); + request.addApiParameter("page_size", reqDto.getPage_size()); + request.addApiParameter("query_express_order", reqDto.getQuery_express_order()); + request.addApiParameter("current_page", reqDto.getCurrent_page()); + request.addApiParameter("order_id", reqDto.getOrder_id()); + request.addApiParameter("gmt_create_start_str", reqDto.getGmt_create_start_str()); + request.addApiParameter("logistics_order_id", reqDto.getLogistics_order_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //面单云打印 //描述:使用云打印功能打印面单 /* @@ -523,4 +1141,23 @@ IopResponse response = client.execute(request, accessToken, Protocol.TOP); System.out.println(response.getBody()); Thread.sleep(10); */ + + /** + * 使用云打印功能打印面单 + */ + @Log(title = "使用云打印功能打印面单", businessType = BusinessType.OTHER) + @ApiOperation("使用云打印功能打印面单") + @PostMapping("/getPdfByCloudPrint") + public String getPdfByCloudPrint(@RequestBody LogisticsCloudPrintDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressLogisticsEnu.GET_PDFS_BY_CLOUD_PRINT.getApiName()); + + request.addApiParameter("print_detail", reqDto.getPrint_detail()); + request.addApiParameter("warehouse_order_query_d_t_os", reqDto.getWarehouse_order_query_d_t_os()); + + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressMemberController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressMemberController.java index 1e336ad..ca12ec7 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressMemberController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressMemberController.java @@ -59,7 +59,7 @@ Thread.sleep(10); IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); IopRequest request = new IopRequest(); request.setApiName(AliexpressMemberEnu.UIC_QUERY_TB_NICK.getApiName()); - request.addApiParameter("login_id", reqDto.getLoginId()); + request.addApiParameter("login_id", reqDto.getLogin_id()); IopResponse response = client.execute(request, Protocol.TOP); return response.getGopResponseBody(); } @@ -86,7 +86,7 @@ Thread.sleep(10); IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); IopRequest request = new IopRequest(); request.setApiName(AliexpressMemberEnu.DS_ORDER_DATA_SAVE.getApiName()); - request.addApiParameter("dser_collect_data", reqDto.getDserCollectData()); + request.addApiParameter("dser_collect_data", reqDto.getDser_collect_data()); IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); return response.getGopResponseBody(); } @@ -116,10 +116,10 @@ Thread.sleep(10); IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); IopRequest request = new IopRequest(); request.setApiName(AliexpressMemberEnu.OAUTH_AUTHORIZE.getApiName()); - request.addApiParameter("response_type", reqDto.getResponseType()); - request.addApiParameter("sns_authorization_code", reqDto.getSnsAuthorizationCode()); - request.addApiParameter("sns_type", reqDto.getSnsType()); - request.addApiParameter("auto_register", reqDto.getAutoRegister()); + request.addApiParameter("response_type", reqDto.getResponse_type()); + request.addApiParameter("sns_authorization_code", reqDto.getSns_authorization_code()); + request.addApiParameter("sns_type", reqDto.getSns_type()); + request.addApiParameter("auto_register", reqDto.getAuto_register()); IopResponse response = client.execute(request, Protocol.TOP); return response.getGopResponseBody(); } @@ -145,7 +145,7 @@ Thread.sleep(10); IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); IopRequest request = new IopRequest(); request.setApiName(AliexpressMemberEnu.QUERY_ACCOUNT_LEVEL.getApiName()); - request.addApiParameter("login_id", reqDto.getLoginId()); + request.addApiParameter("login_id", reqDto.getLogin_id()); IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); return response.getGopResponseBody(); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPropValueFeatureDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPropValueFeatureDTO.java index 1f310a0..00cec1d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPropValueFeatureDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPropValueFeatureDTO.java @@ -12,6 +12,9 @@ import lombok.Setter; @Getter @Setter public class CategoryGetPropValueFeatureDTO { + // request.addApiParameter("propertyId", "1111"); + // request.addApiParameter("valueId", "2222"); + // request.addApiParameter("featureKey", "CountryCode"); private String propertyId; private String valueId; private String featureKey; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsAnnouncementDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsAnnouncementDTO.java new file mode 100644 index 0000000..cbae16d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsAnnouncementDTO.java @@ -0,0 +1,22 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:39 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsAnnouncementDTO extends AliexpressAuth { + //request.addApiParameter("seller_id", "200042360"); + //request.addApiParameter("start_time", "1622517071000"); + //request.addApiParameter("end_time", "1627787471000"); + private String seller_id; + private String start_time; + private String end_time; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsBuyerCPFInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsBuyerCPFInfoDTO.java new file mode 100644 index 0000000..adaa043 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsBuyerCPFInfoDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:30 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsBuyerCPFInfoDTO extends AliexpressAuth { + //request.addApiParameter("trade_order_id", "888899943434"); + private String trade_order_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCloudPrintDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCloudPrintDTO.java new file mode 100644 index 0000000..0929657 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCloudPrintDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:45 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsCloudPrintDTO extends AliexpressAuth { + //request.addApiParameter("print_detail", "true"); + //request.addApiParameter("warehouse_order_query_d_t_os", "[{\"extend_data\":\"[{\\\"imageUrl\\\":\\\"http://xxxxxx\\\",\\\"productDescription\\\":\\\"ALIBAB\\\\r\\\\nALIBABA\\\\r\\\\nALIBABA\\\"}]\",\"international_logistics_id\":\"LM2342342CN\",\"id\":\"3546234234\"}]"); + private String print_detail; + private String warehouse_order_query_d_t_os; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCreateOrderDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCreateOrderDTO.java new file mode 100644 index 0000000..5a097b2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCreateOrderDTO.java @@ -0,0 +1,48 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:17 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsCreateOrderDTO extends AliexpressAuth { + // request.addApiParameter("is_agree_upgrade_reverse_parcel_insure", "false"); + private String is_agree_upgrade_reverse_parcel_insure; + // request.addApiParameter("oaid", "JciHsGTZP3uab180s4tRPw"); + private String oaid; + // request.addApiParameter("pickup_type", "DOOR_PICKUP"); + private String pickup_type; + // request.addApiParameter("address_d_t_os", "{\"receiver\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"},\"sender\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"},\"pickup\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"},\"refund\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"}}"); + private String address_d_t_os; + // request.addApiParameter("declare_product_d_t_os", "[{\"category_cn_desc\":\"\u8FDE\u8863\u88D9\",\"product_weight\":\"1.5\",\"aneroid_markup\":\"false\",\"product_num\":\"2\",\"only_battery\":\"false\",\"contains_special_goods\":\"false\",\"hs_code\":\"77234\",\"child_order_id\":\"1000172130022100\",\"product_declare_amount\":\"1.3\",\"sc_item_code\":\"scItem code\",\"sku_value\":\"sku value\",\"sc_item_name\":\"scItem name\",\"category_en_desc\":\"dress\",\"product_id\":\"1000\",\"breakable\":\"false\",\"sku_code\":\"sku code\",\"contains_battery\":\"false\",\"sc_item_id\":\"1000\"}]"); + private String declare_product_d_t_os; + // request.addApiParameter("domestic_logistics_company", "SF"); + private String domestic_logistics_company; + // request.addApiParameter("domestic_logistics_company_id", "505"); + private String domestic_logistics_company_id; + // request.addApiParameter("domestic_tracking_no", "L12345899"); + private String domestic_tracking_no; + // request.addApiParameter("package_num", "1"); + private String package_num; + // request.addApiParameter("trade_order_from", "ESCROW"); + private String trade_order_from; + // request.addApiParameter("trade_order_id", "66715700375804"); + private String trade_order_id; + // request.addApiParameter("undeliverable_decision", "0"); + private String undeliverable_decision; + // request.addApiParameter("warehouse_carrier_service", "CPAM_WLB_FPXSZ;CPAM_WLB_CPHSH;CPAM_WLB_ZTOBJ;HRB_WLB_ZTOGZ;HRB_WLB_ZTOSH"); + private String warehouse_carrier_service; + // request.addApiParameter("invoice_number", "38577123"); + private String invoice_number; + // request.addApiParameter("top_user_key", "xxxxxxx"); + private String top_user_key; + // request.addApiParameter("insurance_coverage", "{\"cent\":\"99\",\"currency_code\":\"USD\"}"); + private String insurance_coverage; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCreateWarehouseOrderDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCreateWarehouseOrderDTO.java new file mode 100644 index 0000000..4e9d755 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsCreateWarehouseOrderDTO.java @@ -0,0 +1,44 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:22 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsCreateWarehouseOrderDTO extends AliexpressAuth { + // request.addApiParameter("declare_product_d_t_os", "[{\"category_cn_desc\":\"\u8FDE\u8863\u88D9\",\"product_weight\":\"1.5\",\"aneroid_markup\":\"false\",\"product_num\":\"2\",\"only_battery\":\"false\",\"contains_special_goods\":\"false\",\"hs_code\":\"77234\",\"child_order_id\":\"1000172130022100\",\"product_declare_amount\":\"1.3\",\"sc_item_code\":\"scItem code\",\"sku_value\":\"sku value\",\"sc_item_name\":\"scItem name\",\"category_en_desc\":\"dress\",\"product_id\":\"1000\",\"breakable\":\"false\",\"sku_code\":\"sku code\",\"contains_battery\":\"false\",\"sc_item_id\":\"1000\"}]"); + private String declare_product_d_t_os; + // request.addApiParameter("domestic_logistics_company", "tiantiankuaidi"); + private String domestic_logistics_company; + // request.addApiParameter("domestic_logistics_company_id", "505"); + private String domestic_logistics_company_id; + // request.addApiParameter("domestic_tracking_no", "L12345899"); + private String domestic_tracking_no; + // request.addApiParameter("package_num", "1"); + private String package_num; + // request.addApiParameter("trade_order_from", "ESCROW"); + private String trade_order_from; + // request.addApiParameter("trade_order_id", "66715700375804"); + private String trade_order_id; + // request.addApiParameter("undeliverable_decision", "0"); + private String undeliverable_decision; + // request.addApiParameter("warehouse_carrier_service", "CPAM_WLB_FPXSZ;CPAM_WLB_CPHSH;CPAM_WLB_ZTOBJ;HRB_WLB_ZTOGZ;HRB_WLB_ZTOSH"); + private String warehouse_carrier_service; + // request.addApiParameter("address_d_t_os", "{\"receiver\":{\"member_type\":\"\u7C7B\u578B\",\"street_address\":\"street address\",\"country\":\"RU\",\"city\":\"Moscow\",\"mobile\":\"18766234324\",\"county\":\"county\",\"address_id\":\"1000\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"},\"sender\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"},\"pickup\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"from_warehouse_code\":\"AML001\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"},\"refund\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"}}"); + private String address_d_t_os; + // request.addApiParameter("invoice_number", "38577123"); + private String invoice_number; + // request.addApiParameter("top_user_key", "xxxxxxx"); + private String top_user_key; + // request.addApiParameter("insurance_coverage", "{\"cent\":\"99\",\"currency_code\":\"USD\"}"); + private String insurance_coverage; + // request.addApiParameter("is_agree_upgrade_reverse_parcel_insure", "true"); + private String is_agree_upgrade_reverse_parcel_insure; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsDeclareShipmentDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsDeclareShipmentDTO.java new file mode 100644 index 0000000..901f653 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsDeclareShipmentDTO.java @@ -0,0 +1,19 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:48 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsDeclareShipmentDTO extends AliexpressAuth { + //request.addApiParameter("param_aeop_seller_shipment_sub_trade_order_request", "{\"sub_trade_order_list\":[{\"send_type\":\"part\",\"ioss\":\"ioss\",\"shipment_list\":[{\"actual_carrier\":\"EMS\",\"tracking_web_site\":\"https://www.sf-express.com/cn/sc/dynamic_function/waybill/#search/bill-number/SF7551234567890\",\"logistics_no\":\"SF7551234567890\",\"service_name\":\"CAINIAO_STANDARD\",\"package_type\":\"\u5305\u88F9\u7C7B\u578B\"},{\"actual_carrier\":\"EMS\",\"tracking_web_site\":\"https://www.sf-express.com/cn/sc/dynamic_function/waybill/#search/bill-number/SF7551234567890\",\"logistics_no\":\"SF7551234567890\",\"service_name\":\"CAINIAO_STANDARD\",\"package_type\":\"\u5305\u88F9\u7C7B\u578B\"}],\"sub_trade_order_index\":\"12345601\"},{\"send_type\":\"part\",\"ioss\":\"ioss\",\"shipment_list\":[{\"actual_carrier\":\"EMS\",\"tracking_web_site\":\"https://www.sf-express.com/cn/sc/dynamic_function/waybill/#search/bill-number/SF7551234567890\",\"logistics_no\":\"SF7551234567890\",\"service_name\":\"CAINIAO_STANDARD\",\"package_type\":\"\u5305\u88F9\u7C7B\u578B\"},{\"actual_carrier\":\"EMS\",\"tracking_web_site\":\"https://www.sf-express.com/cn/sc/dynamic_function/waybill/#search/bill-number/SF7551234567890\",\"logistics_no\":\"SF7551234567890\",\"service_name\":\"CAINIAO_STANDARD\",\"package_type\":\"\u5305\u88F9\u7C7B\u578B\"}],\"sub_trade_order_index\":\"12345601\"}],\"trade_order_id\":\"123456\"}"); + private String param_aeop_seller_shipment_sub_trade_order_request; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsEstimateInsuranceDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsEstimateInsuranceDTO.java new file mode 100644 index 0000000..2f94331 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsEstimateInsuranceDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:26 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsEstimateInsuranceDTO extends AliexpressAuth { + //request.addApiParameter("agree_upgrade_reverse_parcel_insure", "true"); + //request.addApiParameter("trade_order_id", "400345345345"); + //request.addApiParameter("insurance_coverage", "4500"); + //request.addApiParameter("solution_code", "CAINIAO_STANDARD"); + private String agree_upgrade_reverse_parcel_insure; + private String trade_order_id; + private String insurance_coverage; + private String solution_code; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetAllProvinceDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetAllProvinceDTO.java new file mode 100644 index 0000000..c9849fd --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetAllProvinceDTO.java @@ -0,0 +1,16 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:28 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsGetAllProvinceDTO extends AliexpressAuth { +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetDeliveryLabelDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetDeliveryLabelDTO.java new file mode 100644 index 0000000..435ee6d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetDeliveryLabelDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:41 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsGetDeliveryLabelDTO extends AliexpressAuth { + //request.addApiParameter("international_logistics_id", "RE700150389CN"); + private String international_logistics_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetFieldInfoForPrintDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetFieldInfoForPrintDTO.java new file mode 100644 index 0000000..6d22662 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetFieldInfoForPrintDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:37 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsGetFieldInfoForPrintDTO extends AliexpressAuth { + //request.addApiParameter("international_logistics_id", "UR837927903YP"); + //request.addApiParameter("id", "3000001"); + private String international_logistics_id; + private String id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetListLogisticsServiceDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetListLogisticsServiceDTO.java new file mode 100644 index 0000000..c3c52b3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetListLogisticsServiceDTO.java @@ -0,0 +1,17 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:13 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsGetListLogisticsServiceDTO extends AliexpressAuth { + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetOnlineLogisticsInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetOnlineLogisticsInfoDTO.java new file mode 100644 index 0000000..26b9b4f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetOnlineLogisticsInfoDTO.java @@ -0,0 +1,38 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:43 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsGetOnlineLogisticsInfoDTO extends AliexpressAuth { + //request.addApiParameter("logistics_order_code", "LP00038357949881"); + //request.addApiParameter("china_logistics_id", "SF0000000000"); + //request.addApiParameter("international_logistics_id", "LC051733827CN"); + //request.addApiParameter("logistics_status", "CLOSED"); + //request.addApiParameter("gmt_create_end_str", "2016-06-27 18:15:00"); + //request.addApiParameter("page_size", "10"); + //request.addApiParameter("query_express_order", "false"); + //request.addApiParameter("current_page", "1"); + //request.addApiParameter("order_id", "60015640573917"); + //request.addApiParameter("gmt_create_start_str", "2016-06-27 18:20:00"); + //request.addApiParameter("logistics_order_id", "12424222"); + private String logistics_order_code; + private String china_logistics_id; + private String international_logistics_id; + private String logistics_status; + private String gmt_create_end_str; + private String page_size; + private String query_express_order; + private String current_page; + private String order_id; + private String gmt_create_start_str; + private String logistics_order_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetOnlineLogisticsServiceListByOrderIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetOnlineLogisticsServiceListByOrderIdDTO.java new file mode 100644 index 0000000..01797aa --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetOnlineLogisticsServiceListByOrderIdDTO.java @@ -0,0 +1,28 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:24 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsGetOnlineLogisticsServiceListByOrderIdDTO extends AliexpressAuth { + // request.addApiParameter("goods_width", "1"); + // request.addApiParameter("goods_height", "1"); + // request.addApiParameter("goods_weight", "1.5"); + // request.addApiParameter("goods_length", "1"); + // request.addApiParameter("order_id", "897234324234234"); + // request.addApiParameter("locale", "ru_RU"); + private String goods_width; + private String goods_height; + private String goods_weight; + private String goods_length; + private String order_id; + private String locale; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetPrintInfosDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetPrintInfosDTO.java new file mode 100644 index 0000000..666547b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsGetPrintInfosDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:50 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsGetPrintInfosDTO extends AliexpressAuth { + // request.addApiParameter("print_detail", "false"); + private String print_detail; + // request.addApiParameter("warehouse_order_query_d_t_os", "[{\"international_logistics_id\":\"RE700150389CN\",\"id\":\"123432423\"}]"); + private String warehouse_order_query_d_t_os; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsLocalCreateWarehouseOrderDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsLocalCreateWarehouseOrderDTO.java new file mode 100644 index 0000000..25dbffb --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsLocalCreateWarehouseOrderDTO.java @@ -0,0 +1,36 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:58 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsLocalCreateWarehouseOrderDTO extends AliexpressAuth { + // request.addApiParameter("address_d_t_os", "{\"receiver\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"},\"sender\":{\"member_type\":\"\u7C7B\u578B\",\"country\":\"RU\",\"street_address\":\"street address\",\"city\":\"Moscow\",\"county\":\"county\",\"address_id\":\"1000\",\"mobile\":\"18766234324\",\"trademanage_id\":\"cn234234234\",\"province\":\"Moscow\",\"phone\":\"098-234234\",\"street\":\"street\",\"post_code\":\"056202\",\"name\":\"Linda\",\"fax\":\"234234234\",\"email\":\"alibaba@alibaba.com\"}}"); + // request.addApiParameter("declare_product_d_t_os", "[{\"category_cn_desc\":\"\u8FDE\u8863\u88D9\",\"product_weight\":\"1.5\",\"aneroid_markup\":\"false\",\"product_num\":\"2\",\"only_battery\":\"false\",\"contains_special_goods\":\"false\",\"hs_code\":\"77234\",\"child_order_id\":\"1000172130022100\",\"product_declare_amount\":\"1.3\",\"sc_item_code\":\"scItem code\",\"sku_value\":\"sku value\",\"sc_item_name\":\"scItem name\",\"category_en_desc\":\"dress\",\"product_id\":\"1000\",\"breakable\":\"false\",\"sku_code\":\"sku code\",\"contains_battery\":\"false\",\"sc_item_id\":\"1000\"}]"); + // request.addApiParameter("package_num", "1"); + // request.addApiParameter("trade_order_from", "ESCROW"); + // request.addApiParameter("trade_order_id", "66715700375804"); + // request.addApiParameter("undeliverable_decision", "0"); + // request.addApiParameter("invoice_number", "38577123"); + // request.addApiParameter("top_user_key", "xxxxxxx"); + // request.addApiParameter("insurance_coverage", "{\"cent\":\"99\",\"currency_code\":\"USD\"}"); + // request.addApiParameter("is_agree_upgrade_reverse_parcel_insure", "true"); + private String address_d_t_os; + private String declare_product_d_t_os; + private String package_num; + private String trade_order_from; + private String trade_order_id; + private String undeliverable_decision; + private String invoice_number; + private String top_user_key; + private String insurance_coverage; + private String is_agree_upgrade_reverse_parcel_insure; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsLocalListLogisticsServiceDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsLocalListLogisticsServiceDTO.java new file mode 100644 index 0000000..ac6808e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsLocalListLogisticsServiceDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:14 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsLocalListLogisticsServiceDTO extends AliexpressAuth { + //request.addApiParameter("locale", "es_ES"); + private String locale; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsModifyShipmentDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsModifyShipmentDTO.java new file mode 100644 index 0000000..93c868f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsModifyShipmentDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:45 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsModifyShipmentDTO extends AliexpressAuth { + // request.addApiParameter("sub_trade_order_list", "[{\"send_type\":\"part\",\"shipment_list\":[{\"actual_carrier\":\"EMS\",\"tracking_web_site\":\"http://ems.com\",\"logistics_no\":\"LV87654321CN\",\"service_name\":\"EMS\",\"package_type\":\"\u5305\u88F9\u7C7B\u578B\"},{\"actual_carrier\":\"EMS\",\"tracking_web_site\":\"http://ems.com\",\"logistics_no\":\"LV87654321CN\",\"service_name\":\"EMS\",\"package_type\":\"\u5305\u88F9\u7C7B\u578B\"}],\"sub_trade_order_index\":\"1\"}]"); + // request.addApiParameter("old_logistics_no", "LV87654321CN"); + // request.addApiParameter("trade_order_id", "888887777766"); + // request.addApiParameter("old_service_name", "EMS"); + private String sub_trade_order_list; + private String old_logistics_no; + private String trade_order_id; + private String old_service_name; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsNextLevelAddressDataDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsNextLevelAddressDataDTO.java new file mode 100644 index 0000000..6988c75 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsNextLevelAddressDataDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:05 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsNextLevelAddressDataDTO extends AliexpressAuth { + //request.addApiParameter("area_id", "1"); + private String area_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsOrderDeliveryInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsOrderDeliveryInfoDTO.java new file mode 100644 index 0000000..5327f0b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsOrderDeliveryInfoDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:07 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsOrderDeliveryInfoDTO extends AliexpressAuth { + //request.addApiParameter("single_order_query", "{\"order_id\":\"3006413871042162\"}"); + private String single_order_query; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryEnumDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryEnumDTO.java new file mode 100644 index 0000000..8fd2944 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryEnumDTO.java @@ -0,0 +1,17 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:08 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsQueryEnumDTO extends AliexpressAuth { + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryLogisticsOrderDetailDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryLogisticsOrderDetailDTO.java new file mode 100644 index 0000000..5e38034 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryLogisticsOrderDetailDTO.java @@ -0,0 +1,35 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:09 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsQueryLogisticsOrderDetailDTO extends AliexpressAuth { + //request.addApiParameter("current_page", "1"); + //request.addApiParameter("domestic_logistics_num", "CN123456789RU"); + //request.addApiParameter("gmt_create_end_str", "2016-09-09 00:00:00"); + //request.addApiParameter("gmt_create_start_str", "2016-09-10 00:00:00"); + //request.addApiParameter("international_logistics_num", "CN98989898US"); + //request.addApiParameter("logistics_status", "pickup_success"); + //request.addApiParameter("page_size", "20"); + //request.addApiParameter("trade_order_id", "8972343764328"); + //request.addApiParameter("warehouse_carrier_service", "E_PACKET"); + private String current_page; + private String domestic_logistics_num; + private String gmt_create_end_str; + private String gmt_create_start_str; + private String international_logistics_num; + private String logistics_status; + private String page_size; + private String trade_order_id; + private String warehouse_carrier_service; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryLogisticsServiceDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryLogisticsServiceDTO.java new file mode 100644 index 0000000..c4d57fa --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryLogisticsServiceDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:22 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsQueryLogisticsServiceDTO extends AliexpressAuth { + //request.addApiParameter("interface_request", "{\"goods_length\":\"1\",\"goods_height\":\"1\",\"goods_width\":\"1\",\"sub_order_list\":[{\"goods_length\":\"1\",\"goods_height\":\"1\",\"goods_width\":\"1\",\"locale\":\"zh_CN\",\"order_id\":\"8001498863155804\",\"goods_weight\":\"0.1\"},{\"goods_length\":\"1\",\"goods_height\":\"1\",\"goods_width\":\"1\",\"locale\":\"zh_CN\",\"order_id\":\"8001498863155804\",\"goods_weight\":\"0.1\"}],\"locale\":\"zh_CN\",\"order_id\":\"8001498863145804\",\"goods_weight\":\"0.1\"}"); + private String interface_request; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryRuleInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryRuleInfoDTO.java new file mode 100644 index 0000000..f49f792 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryRuleInfoDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:19 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsQueryRuleInfoDTO extends AliexpressAuth { + //request.addApiParameter("param1", "{\"type\":\"serviceNetRule\"}"); + private String param1; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQuerySellerShipmentInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQuerySellerShipmentInfoDTO.java new file mode 100644 index 0000000..0a20b0e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQuerySellerShipmentInfoDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:05 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsQuerySellerShipmentInfoDTO extends AliexpressAuth { + // request.addApiParameter("logistics_no", "LT123456789CN"); + // request.addApiParameter("trade_order_id", "8899213123123"); + // request.addApiParameter("service_name", "CAINIAO_STANDARD"); + // request.addApiParameter("sub_trade_order_index", "1"); + private String logistics_no; + private String trade_order_id; + private String service_name; + private String sub_trade_order_index; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryTrackingDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryTrackingDTO.java new file mode 100644 index 0000000..9532e54 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryTrackingDTO.java @@ -0,0 +1,26 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:16 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsQueryTrackingDTO extends AliexpressAuth { + //request.addApiParameter("logistics_no", "20100810142400000-0700"); + //request.addApiParameter("origin", "ESCROW"); + //request.addApiParameter("out_ref", "1160045240183009"); + //request.addApiParameter("service_name", "UPS"); + //request.addApiParameter("to_area", "DE"); + private String logistics_no; + private String origin; + private String out_ref; + private String service_name; + private String to_area; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryWlbDomesticLogisticsCompanyDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryWlbDomesticLogisticsCompanyDTO.java new file mode 100644 index 0000000..28e9302 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsQueryWlbDomesticLogisticsCompanyDTO.java @@ -0,0 +1,16 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:36 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsQueryWlbDomesticLogisticsCompanyDTO extends AliexpressAuth { +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerAddressDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerAddressDTO.java new file mode 100644 index 0000000..eef2650 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerAddressDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:32 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsSellerAddressDTO extends AliexpressAuth { + //request.addApiParameter("seller_address_query", "sender,pickup,refund"); + private String seller_address_query; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerAddressesDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerAddressesDTO.java new file mode 100644 index 0000000..2b6f7c2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerAddressesDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:02 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsSellerAddressesDTO extends AliexpressAuth { + //request.addApiParameter("seller_address_query", "pickup"); + private String seller_address_query; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerModifiedShipmentDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerModifiedShipmentDTO.java new file mode 100644 index 0000000..42bb866 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerModifiedShipmentDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:54 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsSellerModifiedShipmentDTO extends AliexpressAuth { + //request.addApiParameter("sub_trade_order_list", "[{\"send_type\":\"part\",\"shipment_list\":[{\"tracking_web_site\":\"http://ems.com\",\"logistics_no\":\"LV87654321CN\",\"service_name\":\"EMS\"},{\"tracking_web_site\":\"http://ems.com\",\"logistics_no\":\"LV87654321CN\",\"service_name\":\"EMS\"}],\"sub_trade_order_index\":\"1\"}]"); + //request.addApiParameter("old_logistics_no", "LV87654321CN"); + //request.addApiParameter("trade_order_id", "888887777766"); + //request.addApiParameter("old_service_name", "EMS"); + private String sub_trade_order_list; + private String old_logistics_no; + private String trade_order_id; + private String old_service_name; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerModifiedShipmentForTopDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerModifiedShipmentForTopDTO.java new file mode 100644 index 0000000..4327411 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerModifiedShipmentForTopDTO.java @@ -0,0 +1,38 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:10 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsSellerModifiedShipmentForTopDTO extends AliexpressAuth { + // request.addApiParameter("tracking_website", "www.17track.com"); + // request.addApiParameter("old_service_name", "EMS"); + // request.addApiParameter("new_service_name", "EMS"); + // request.addApiParameter("old_logistics_no", "LA111166611CN"); + // request.addApiParameter("description", "memo"); + // request.addApiParameter("new_logistics_no", "LA11111111CN"); + // request.addApiParameter("send_type", "part"); + // request.addApiParameter("out_ref", "60769040695804"); + // request.addApiParameter("package_type", "consolidation"); + // request.addApiParameter("actual_carrier", "tnt"); + // request.addApiParameter("locale", "ae_ES"); + private String tracking_website; + private String old_service_name; + private String new_service_name; + private String old_logistics_no; + private String description; + private String new_logistics_no; + private String send_type; + private String out_ref; + private String package_type; + private String actual_carrier; + private String locale; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerShipmentDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerShipmentDTO.java new file mode 100644 index 0000000..d3fd72a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerShipmentDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:52 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsSellerShipmentDTO extends AliexpressAuth { + // request.addApiParameter("sub_trade_order_list", "[{\"send_type\":\"part\",\"ioss\":\"XX1234567890\",\"sub_trade_order_index\":\"1\",\"shipment_list\":[{\"tracking_web_site\":\"www.baidu.com\",\"logistics_no\":\"LT123456789CN\",\"service_name\":\"CAINIAO_STANDARD\"},{\"tracking_web_site\":\"www.baidu.com\",\"logistics_no\":\"LT123456789CN\",\"service_name\":\"CAINIAO_STANDARD\"}]}]"); + // request.addApiParameter("trade_order_id", "778824234234"); + private String sub_trade_order_list; + private String trade_order_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerShipmentForTopDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerShipmentForTopDTO.java new file mode 100644 index 0000000..eeef489 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsSellerShipmentForTopDTO.java @@ -0,0 +1,36 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:42 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsSellerShipmentForTopDTO extends AliexpressAuth { + //request.addApiParameter("logistics_no", "LA88887777CN"); + private String logistics_no; + //request.addApiParameter("description", "memo"); + private String description; + //request.addApiParameter("send_type", "part"); + private String send_type; + //request.addApiParameter("out_ref", "888877779999"); + private String out_ref; + //request.addApiParameter("tracking_website", "www.17track.com"); + private String tracking_website; + //request.addApiParameter("service_name", "EMS"); + private String service_name; + //request.addApiParameter("package_type", "consolidation"); + private String package_type; + //request.addApiParameter("actual_carrier", "tnt"); + private String actual_carrier; + //request.addApiParameter("ioss", "XX1234567890"); + private String ioss; + //request.addApiParameter("locale", "es_ES"); + private String locale; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsServiceDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsServiceDTO.java new file mode 100644 index 0000000..cce4f26 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsServiceDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 10:03 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsServiceDTO extends AliexpressAuth { + //request.addApiParameter("locale", "es_ES"); + private String locale; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsWarehouseQueryDetailDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsWarehouseQueryDetailDTO.java new file mode 100644 index 0000000..39fa56c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/logistics/LogisticsWarehouseQueryDetailDTO.java @@ -0,0 +1,36 @@ +package com.ruoyi.web.controller.aliexpress.dto.logistics; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/3/1 11:02 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class LogisticsWarehouseQueryDetailDTO extends AliexpressAuth { + // request.addApiParameter("consign_type", "DOMESTIC"); + // request.addApiParameter("current_page", "1"); + // request.addApiParameter("domestic_logistics_num", "CN123456789RU"); + // request.addApiParameter("gmt_create_end_str", "2016-09-09 00:00:00"); + // request.addApiParameter("gmt_create_start_str", "2016-09-09 00:00:00"); + // request.addApiParameter("international_logistics_num", "CN98989898US"); + // request.addApiParameter("logistics_status", "pickup_success"); + // request.addApiParameter("page_size", "20"); + // request.addApiParameter("trade_order_id", "8972343764328"); + // request.addApiParameter("warehouse_carrier_service", "E_PACKET"); + private String consign_type; + private String current_page; + private String domestic_logistics_num; + private String gmt_create_end_str; + private String gmt_create_start_str; + private String international_logistics_num; + private String logistics_status; + private String page_size; + private String trade_order_id; + private String warehouse_carrier_service; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberDsOrderDataSaveDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberDsOrderDataSaveDTO.java index 195729d..58acfb8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberDsOrderDataSaveDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberDsOrderDataSaveDTO.java @@ -14,5 +14,5 @@ import lombok.Setter; @Setter public class MemberDsOrderDataSaveDTO extends AliexpressAuth { //request.addApiParameter("dser_collect_data", "{\"ae_product_id\":\"1334345\",\"ae_sku_info\":\"200000182:193;200007763:201336100\",\"product_url\":\"https://www.yousite.com/item/32862631421.html\",\"order_amount\":\"35.33\",\"paytime\":\"20191122:150606\",\"ae_orderid\":\"1334345\",\"product_amount\":\"35.33\"}"); - private String dserCollectData; + private String dser_collect_data; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberOauthAuthorizeDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberOauthAuthorizeDTO.java index 49a3bac..1b57e54 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberOauthAuthorizeDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberOauthAuthorizeDTO.java @@ -14,11 +14,11 @@ import lombok.Setter; @Setter public class MemberOauthAuthorizeDTO extends AliexpressAuth { //request.addApiParameter("response_type", "code"); - private String responseType; + private String response_type; //request.addApiParameter("sns_authorization_code", "afjaodfjaojdfoajdfioa"); - private String snsAuthorizationCode; + private String sns_authorization_code; //request.addApiParameter("sns_type", "ok"); - private String snsType; + private String sns_type; //request.addApiParameter("auto_register", "true"); - private String autoRegister; + private String auto_register; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberQueryAccountLevelDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberQueryAccountLevelDTO.java index b063b60..d8534ad 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberQueryAccountLevelDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberQueryAccountLevelDTO.java @@ -14,5 +14,5 @@ import lombok.Setter; @Setter public class MemberQueryAccountLevelDTO extends AliexpressAuth { //request.addApiParameter("login_id", "jordenmail"); - private String loginId; + private String login_id; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberUicQueryTbNickDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberUicQueryTbNickDTO.java index 0209189..9b4cfca 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberUicQueryTbNickDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberUicQueryTbNickDTO.java @@ -14,5 +14,5 @@ import lombok.Setter; @Setter public class MemberUicQueryTbNickDTO extends AliexpressAuth { //request.addApiParameter("login_id", "cn1519431219gong"); - private String loginId; + private String login_id; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressLogisticsEnu.java b/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressLogisticsEnu.java index 59b0937..0d7bf11 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressLogisticsEnu.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressLogisticsEnu.java @@ -7,5 +7,113 @@ package com.ruoyi.web.enumerate; * @Version 1.0 */ public enum AliexpressLogisticsEnu { + //request.setApiName("aliexpress.logistics.local.getlogisticsselleraddresses"); + //商家地址信息查询 + LOCAL_GET_LOGISTICS_SELLER_ADDRESSES("aliexpress.logistics.local.getlogisticsselleraddresses"), + //request.setApiName("aliexpress.logistics.local.listlogisticsservice"); + //列出所有的商家可见解决方案 + LOCAL_LIST_LOGISTICS_SERVICE("aliexpress.logistics.local.listlogisticsservice"), + //request.setApiName("aliexpress.logistics.redefining.getnextleveladdressdata"); + //读取下一级别的地址信息 + GET_NEXT_LEVEL_ADDRESS_DATA("aliexpress.logistics.redefining.getnextleveladdressdata"), + //request.setApiName("aliexpress.solution.order.delivery.info.get"); + //获取速卖通订单发货信息 + ORDER_DELIVERY_INFO_GET("aliexpress.solution.order.delivery.info.get"), + //request.setApiName("aliexpress.logistics.sellermodifiedshipmentfortop"); + //修改声明发货 + SELLER_MODIFIED_SHIPMENT_FOR_TOP("aliexpress.logistics.sellermodifiedshipmentfortop"), + //request.setApiName("aliexpress.logistics.redefining.listlogisticsservice"); + //列出平台所支持的物流服务列表 + LIST_LOGISTICS_SERVICE("aliexpress.logistics.redefining.listlogisticsservice"), + //request.setApiName("aliexpress.logistics.order.createorder"); + //创建子交易单线上物流订单 + CREATE_ORDER("aliexpress.logistics.order.createorder"), + //request.setApiName("aliexpress.logistics.createwarehouseorder"); + //创建线上物流订单 + CREATE_WAREHOUSE_ORDER("aliexpress.logistics.createwarehouseorder"), + //request.setApiName("aliexpress.logistics.sellershipmentfortop"); + //声明发货接口 + SELLER_SHIPMENT_FOR_TOP("aliexpress.logistics.sellershipmentfortop"), + //request.setApiName("aliexpress.logistics.order.modifyshipment"); + //子单修改声明发货 + MODIFY_SHIPMENT("aliexpress.logistics.order.modifyshipment"), + //request.setApiName("aliexpress.logistics.order.shipment"); + //子单声明发货 + DECLARE_SHIPMENT("aliexpress.logistics.order.shipment"), + //request.setApiName("aliexpress.logistics.redefining.getprintinfos"); + //批量获取线上发货标签 + GET_PRINT_INFOS("aliexpress.logistics.redefining.getprintinfos"), + //request.setApiName("aliexpress.logistics.sellershipmentsupportsubtradeorder"); + //支持子订单声明发货接口 + SELLER_SHIPMENT_SUPPORT_SUB_TRADE_ORDER("aliexpress.logistics.sellershipmentsupportsubtradeorder"), + //request.setApiName("aliexpress.logistics.redefining.sellermodifiedshipmentsupportsubtradeorder"); + //支持对子订单进行修改声明发货的接口 + SELLER_MODIFIED_SHIPMENT_SUPPORT_SUB_TRADE_ORDER("aliexpress.logistics.redefining.sellermodifiedshipmentsupportsubtradeorder"), + //request.setApiName("aliexpress.logistics.local.createwarehouseorder"); + //本对本创建线上物流订单 + LOCAL_CREATE_WAREHOUSE_ORDER("aliexpress.logistics.local.createwarehouseorder"), + //request.setApiName("aliexpress.logistics.warehouse.querydetail"); + //查询仓发物流订单信息 + WAREHOUSE_QUERY_DETAIL("aliexpress.logistics.warehouse.querydetail"), + //request.setApiName("aliexpress.logistics.querysellershipmentinfo"); + //查询声明发货信息 + QUERY_SELLER_SHIPMENT_INFO("aliexpress.logistics.querysellershipmentinfo"), + //request.setApiName("aliexpress.logistics.query.enum"); + //查询头程信息需要的枚举信息(国家,仓代码等) + QUERY_ENUM("aliexpress.logistics.query.enum"), + //request.setApiName("aliexpress.logistics.querylogisticsorderdetail"); + //查询物流订单信息(推荐) + QUERY_LOGISTICS_ORDER_DETAIL("aliexpress.logistics.querylogisticsorderdetail"), + //request.setApiName("aliexpress.logistics.redefining.querytrackingresult"); + //查询物流追踪信息 + QUERY_TRACKING_RESULT("aliexpress.logistics.redefining.querytrackingresult"), + //request.setApiName("/aliexpress/logistics/query/rule/info"); + //查询网规等物流信息 + QUERY_RULE_INFO("aliexpress.logistics.query.rule.info"), + //request.setApiName("aliexpress.logistics.service.query"); + //根据交易单查询可用物流方案 + QUERY_LOGISTICS_SERVICE("aliexpress.logistics.service.query"), + //request.setApiName("aliexpress.logistics.redefining.getonlinelogisticsservicelistbyorderid"); + //根据交易订单获取线上发货物流服务列表 + GET_ONLINE_LOGISTICS_SERVICE_LIST_BY_ORDER_ID("aliexpress.logistics.redefining.getonlinelogisticsservicelistbyorderid"), + //request.setApiName("aliexpress.logistics.valueadded.insurance.estimate"); + //物流包裹货值保费估算接口 + VALUE_ADDED_INSURANCE_ESTIMATE("aliexpress.logistics.valueadded.insurance.estimate"), + //request.setApiName("aliexpress.logistics.redefining.getallprovince"); + //获取中国省份信息列表 + GET_ALL_PROVINCE("aliexpress.logistics.redefining.getallprovince"), + //request.setApiName("aliexpress.logistics.getwlmailingaddresssnapshotdto"); + //获取买家收货CPF信息 + GET_WL_MAILING_ADDRESS_SNAPSHOT_DTO("aliexpress.logistics.getwlmailingaddresssnapshotdto"), + //request.setApiName("aliexpress.logistics.redefining.getlogisticsselleraddresses"); + //获取卖家地址 + GET_LOGISTICS_SELLER_ADDRESSES("aliexpress.logistics.redefining.getlogisticsselleraddresses"), + //request.setApiName("aliexpress.logistics.redefining.qureywlbdomesticlogisticscompany"); + //获取开展国内物流业务的物流公司 + QUERY_WLB_DOMESTIC_LOGISTICS_COMPANY("aliexpress.logistics.redefining.qureywlbdomesticlogisticscompany"), + //request.setApiName("aliexpress.logistics.redefining.getfieldinfoforprint"); + //获取打印面单的字段 + GET_FIELD_INFO_FOR_PRINT("aliexpress.logistics.redefining.getfieldinfoforprint"), + //request.setApiName("aliexpress.logistics.getannouncement"); + //获取物流公告信息 + GET_ANNOUNCEMENT("aliexpress.logistics.getannouncement"), + //request.setApiName("aliexpress.logistics.redefining.getprintinfo"); + //获取线上发货标签 + GET_PRINT_INFO("aliexpress.logistics.redefining.getprintinfo"), + //request.setApiName("aliexpress.logistics.redefining.getonlinelogisticsinfo"); + //获取线上发货物流订单信息 + GET_ONLINE_LOGISTICS_INFO("aliexpress.logistics.redefining.getonlinelogisticsinfo"), + //request.setApiName("aliexpress.logistics.getpdfsbycloudprint"); + //使用云打印功能打印面单 + GET_PDFS_BY_CLOUD_PRINT("aliexpress.logistics.getpdfsbycloudprint"); + private final String apiName; + + AliexpressLogisticsEnu(String apiName) { + this.apiName = apiName; + } + + public String getApiName() { + return this.apiName; + } }