diff --git a/service/src/example/java/com/wechat/pay/java/service/retailstore/RetailStoreServiceExample.java b/service/src/example/java/com/wechat/pay/java/service/retailstore/RetailStoreServiceExample.java index 9b2860f7..268f4c3a 100644 --- a/service/src/example/java/com/wechat/pay/java/service/retailstore/RetailStoreServiceExample.java +++ b/service/src/example/java/com/wechat/pay/java/service/retailstore/RetailStoreServiceExample.java @@ -2,19 +2,27 @@ import com.wechat.pay.java.core.RSAConfig; import com.wechat.pay.java.service.retailstore.model.AddRepresentativeRequest; +import com.wechat.pay.java.service.retailstore.model.AddRepresentativesResponse; +import com.wechat.pay.java.service.retailstore.model.AddStoresRequest; +import com.wechat.pay.java.service.retailstore.model.AddStoresResponse; import com.wechat.pay.java.service.retailstore.model.ApplyActivityRequest; import com.wechat.pay.java.service.retailstore.model.ApplyActivityResponse; import com.wechat.pay.java.service.retailstore.model.CreateMaterialsRequest; import com.wechat.pay.java.service.retailstore.model.DeleteRepresentativeRequest; import com.wechat.pay.java.service.retailstore.model.DeleteRepresentativeResponse; +import com.wechat.pay.java.service.retailstore.model.DeleteStoresRequest; +import com.wechat.pay.java.service.retailstore.model.DeleteStoresResponse; +import com.wechat.pay.java.service.retailstore.model.GetStoreRequest; import com.wechat.pay.java.service.retailstore.model.ListActsByAreaRequest; import com.wechat.pay.java.service.retailstore.model.ListActsByAreaResponse; import com.wechat.pay.java.service.retailstore.model.ListRepresentativeRequest; import com.wechat.pay.java.service.retailstore.model.ListRepresentativeResponse; +import com.wechat.pay.java.service.retailstore.model.ListStoreRequest; +import com.wechat.pay.java.service.retailstore.model.ListStoreResponse; import com.wechat.pay.java.service.retailstore.model.LockQualificationRequest; import com.wechat.pay.java.service.retailstore.model.LockQualificationResponse; import com.wechat.pay.java.service.retailstore.model.Materials; -import com.wechat.pay.java.service.retailstore.model.Representatives; +import com.wechat.pay.java.service.retailstore.model.RetailStoreInfo; import com.wechat.pay.java.service.retailstore.model.UnlockQualificationRequest; import com.wechat.pay.java.service.retailstore.model.UnlockQualificationResponse; @@ -65,11 +73,17 @@ public static UnlockQualificationResponse unlockQualification() { return service.unlockQualification(request); } /** 添加零售小店活动业务代理 */ - public static Representatives addRepresentative() { + public static AddRepresentativesResponse addRepresentative() { AddRepresentativeRequest request = new AddRepresentativeRequest(); return service.addRepresentative(request); } + /** 添加小店活动门店 */ + public static AddStoresResponse addStores() { + + AddStoresRequest request = new AddStoresRequest(); + return service.addStores(request); + } /** 生成小店活动物料码 */ public static Materials createMaterials() { @@ -82,10 +96,28 @@ public static DeleteRepresentativeResponse deleteRepresentative() { DeleteRepresentativeRequest request = new DeleteRepresentativeRequest(); return service.deleteRepresentative(request); } + /** 删除小店活动门店 */ + public static DeleteStoresResponse deleteStores() { + + DeleteStoresRequest request = new DeleteStoresRequest(); + return service.deleteStores(request); + } + /** 查询小店活动门店详情 */ + public static RetailStoreInfo getStore() { + + GetStoreRequest request = new GetStoreRequest(); + return service.getStore(request); + } /** 查询零售小店活动业务代理 */ public static ListRepresentativeResponse listRepresentative() { ListRepresentativeRequest request = new ListRepresentativeRequest(); return service.listRepresentative(request); } + /** 查询小店活动门店列表 */ + public static ListStoreResponse listStore() { + + ListStoreRequest request = new ListStoreRequest(); + return service.listStore(request); + } } diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/RetailStoreService.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/RetailStoreService.java index 10cef1b3..e18c50d8 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/RetailStoreService.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/RetailStoreService.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. @@ -33,19 +33,27 @@ import com.wechat.pay.java.core.http.QueryParameter; import com.wechat.pay.java.core.http.RequestBody; import com.wechat.pay.java.service.retailstore.model.AddRepresentativeRequest; +import com.wechat.pay.java.service.retailstore.model.AddRepresentativesResponse; +import com.wechat.pay.java.service.retailstore.model.AddStoresRequest; +import com.wechat.pay.java.service.retailstore.model.AddStoresResponse; import com.wechat.pay.java.service.retailstore.model.ApplyActivityRequest; import com.wechat.pay.java.service.retailstore.model.ApplyActivityResponse; import com.wechat.pay.java.service.retailstore.model.CreateMaterialsRequest; import com.wechat.pay.java.service.retailstore.model.DeleteRepresentativeRequest; import com.wechat.pay.java.service.retailstore.model.DeleteRepresentativeResponse; +import com.wechat.pay.java.service.retailstore.model.DeleteStoresRequest; +import com.wechat.pay.java.service.retailstore.model.DeleteStoresResponse; +import com.wechat.pay.java.service.retailstore.model.GetStoreRequest; import com.wechat.pay.java.service.retailstore.model.ListActsByAreaRequest; import com.wechat.pay.java.service.retailstore.model.ListActsByAreaResponse; import com.wechat.pay.java.service.retailstore.model.ListRepresentativeRequest; import com.wechat.pay.java.service.retailstore.model.ListRepresentativeResponse; +import com.wechat.pay.java.service.retailstore.model.ListStoreRequest; +import com.wechat.pay.java.service.retailstore.model.ListStoreResponse; import com.wechat.pay.java.service.retailstore.model.LockQualificationRequest; import com.wechat.pay.java.service.retailstore.model.LockQualificationResponse; import com.wechat.pay.java.service.retailstore.model.Materials; -import com.wechat.pay.java.service.retailstore.model.Representatives; +import com.wechat.pay.java.service.retailstore.model.RetailStoreInfo; import com.wechat.pay.java.service.retailstore.model.UnlockQualificationRequest; import com.wechat.pay.java.service.retailstore.model.UnlockQualificationResponse; @@ -231,13 +239,13 @@ public UnlockQualificationResponse unlockQualification(UnlockQualificationReques * 添加零售小店活动业务代理 * * @param request 请求参数 - * @return Representatives + * @return AddRepresentativesResponse * @throws HttpException 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。 * @throws ValidationException 发送HTTP请求成功,验证微信支付返回签名失败。 * @throws ServiceException 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。 * @throws MalformedMessageException 服务返回成功,content-type不为application/json、解析返回体失败。 */ - public Representatives addRepresentative(AddRepresentativeRequest request) { + public AddRepresentativesResponse addRepresentative(AddRepresentativeRequest request) { String requestPath = "https://api.mch.weixin.qq.com/v3/marketing/goods-subsidy-activity/retail-store-act/{activity_id}/representative"; @@ -259,8 +267,43 @@ public Representatives addRepresentative(AddRepresentativeRequest request) { .headers(headers) .body(createRequestBody(realRequest)) .build(); - HttpResponse httpResponse = - httpClient.execute(httpRequest, Representatives.class); + HttpResponse httpResponse = + httpClient.execute(httpRequest, AddRepresentativesResponse.class); + return httpResponse.getServiceResponse(); + } + /** + * 添加小店活动门店 + * + * @param request 请求参数 + * @return AddStoresResponse + * @throws HttpException 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。 + * @throws ValidationException 发送HTTP请求成功,验证微信支付返回签名失败。 + * @throws ServiceException 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。 + * @throws MalformedMessageException 服务返回成功,content-type不为application/json、解析返回体失败。 + */ + public AddStoresResponse addStores(AddStoresRequest request) { + String requestPath = + "https://api.mch.weixin.qq.com/v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores"; + + AddStoresRequest realRequest = request; + // 添加 path param + requestPath = requestPath.replace("{" + "brand_id" + "}", urlEncode(realRequest.getBrandId())); + + if (this.hostName != null) { + requestPath = requestPath.replaceFirst(HostName.API.getValue(), hostName.getValue()); + } + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(Constant.ACCEPT, MediaType.APPLICATION_JSON.getValue()); + headers.addHeader(Constant.CONTENT_TYPE, MediaType.APPLICATION_JSON.getValue()); + HttpRequest httpRequest = + new HttpRequest.Builder() + .httpMethod(HttpMethod.POST) + .url(requestPath) + .headers(headers) + .body(createRequestBody(realRequest)) + .build(); + HttpResponse httpResponse = + httpClient.execute(httpRequest, AddStoresResponse.class); return httpResponse.getServiceResponse(); } /** @@ -333,6 +376,78 @@ public DeleteRepresentativeResponse deleteRepresentative(DeleteRepresentativeReq httpClient.execute(httpRequest, DeleteRepresentativeResponse.class); return httpResponse.getServiceResponse(); } + /** + * 删除小店活动门店 + * + * @param request 请求参数 + * @return DeleteStoresResponse + * @throws HttpException 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。 + * @throws ValidationException 发送HTTP请求成功,验证微信支付返回签名失败。 + * @throws ServiceException 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。 + * @throws MalformedMessageException 服务返回成功,content-type不为application/json、解析返回体失败。 + */ + public DeleteStoresResponse deleteStores(DeleteStoresRequest request) { + String requestPath = + "https://api.mch.weixin.qq.com/v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores"; + + DeleteStoresRequest realRequest = request; + // 添加 path param + requestPath = requestPath.replace("{" + "brand_id" + "}", urlEncode(realRequest.getBrandId())); + + if (this.hostName != null) { + requestPath = requestPath.replaceFirst(HostName.API.getValue(), hostName.getValue()); + } + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(Constant.ACCEPT, MediaType.APPLICATION_JSON.getValue()); + headers.addHeader(Constant.CONTENT_TYPE, MediaType.APPLICATION_JSON.getValue()); + HttpRequest httpRequest = + new HttpRequest.Builder() + .httpMethod(HttpMethod.DELETE) + .url(requestPath) + .headers(headers) + .body(createRequestBody(realRequest)) + .build(); + HttpResponse httpResponse = + httpClient.execute(httpRequest, DeleteStoresResponse.class); + return httpResponse.getServiceResponse(); + } + /** + * 查询小店活动门店详情 + * + * @param request 请求参数 + * @return RetailStoreInfo + * @throws HttpException 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。 + * @throws ValidationException 发送HTTP请求成功,验证微信支付返回签名失败。 + * @throws ServiceException 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。 + * @throws MalformedMessageException 服务返回成功,content-type不为application/json、解析返回体失败。 + */ + public RetailStoreInfo getStore(GetStoreRequest request) { + String requestPath = + "https://api.mch.weixin.qq.com/v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores/{store_code}"; + + GetStoreRequest realRequest = request; + // 添加 path param + requestPath = requestPath.replace("{" + "brand_id" + "}", urlEncode(realRequest.getBrandId())); + + requestPath = + requestPath.replace("{" + "store_code" + "}", urlEncode(realRequest.getStoreCode())); + + if (this.hostName != null) { + requestPath = requestPath.replaceFirst(HostName.API.getValue(), hostName.getValue()); + } + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(Constant.ACCEPT, MediaType.APPLICATION_JSON.getValue()); + headers.addHeader(Constant.CONTENT_TYPE, MediaType.APPLICATION_JSON.getValue()); + HttpRequest httpRequest = + new HttpRequest.Builder() + .httpMethod(HttpMethod.GET) + .url(requestPath) + .headers(headers) + .build(); + HttpResponse httpResponse = + httpClient.execute(httpRequest, RetailStoreInfo.class); + return httpResponse.getServiceResponse(); + } /** * 查询零售小店活动业务代理 * @@ -377,6 +492,49 @@ public ListRepresentativeResponse listRepresentative(ListRepresentativeRequest r httpClient.execute(httpRequest, ListRepresentativeResponse.class); return httpResponse.getServiceResponse(); } + /** + * 查询小店活动门店列表 + * + * @param request 请求参数 + * @return ListStoreResponse + * @throws HttpException 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。 + * @throws ValidationException 发送HTTP请求成功,验证微信支付返回签名失败。 + * @throws ServiceException 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。 + * @throws MalformedMessageException 服务返回成功,content-type不为application/json、解析返回体失败。 + */ + public ListStoreResponse listStore(ListStoreRequest request) { + String requestPath = + "https://api.mch.weixin.qq.com/v3/marketing/goods-subsidy-activity/retail-store-act/{brand_id}/stores"; + + ListStoreRequest realRequest = request; + // 添加 path param + requestPath = requestPath.replace("{" + "brand_id" + "}", urlEncode(realRequest.getBrandId())); + + // 添加 query param + QueryParameter queryParameter = new QueryParameter(); + if (realRequest.getOffset() != null) { + queryParameter.add("offset", urlEncode(realRequest.getOffset().toString())); + } + if (realRequest.getLimit() != null) { + queryParameter.add("limit", urlEncode(realRequest.getLimit().toString())); + } + requestPath += queryParameter.getQueryStr(); + if (this.hostName != null) { + requestPath = requestPath.replaceFirst(HostName.API.getValue(), hostName.getValue()); + } + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(Constant.ACCEPT, MediaType.APPLICATION_JSON.getValue()); + headers.addHeader(Constant.CONTENT_TYPE, MediaType.APPLICATION_JSON.getValue()); + HttpRequest httpRequest = + new HttpRequest.Builder() + .httpMethod(HttpMethod.GET) + .url(requestPath) + .headers(headers) + .build(); + HttpResponse httpResponse = + httpClient.execute(httpRequest, ListStoreResponse.class); + return httpResponse.getServiceResponse(); + } private RequestBody createRequestBody(Object request) { return new JsonRequestBody.Builder().body(toJson(request)).build(); diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActApplyInfo.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActApplyInfo.java index 88a91a0f..78caba6c 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActApplyInfo.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActApplyInfo.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActArea.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActArea.java index d9a9390b..b5ce20ea 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActArea.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActArea.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActInfo.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActInfo.java index 10a21d57..b7ed8821 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActInfo.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActInfo.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActRule.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActRule.java index 22923920..8506a759 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActRule.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ActRule.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativeRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativeRequest.java index 24f36e40..f382e8dc 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativeRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativeRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativesRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativesRequest.java index 04b9682d..048e75dc 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativesRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativesRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/Representatives.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativesResponse.java similarity index 93% rename from service/src/main/java/com/wechat/pay/java/service/retailstore/model/Representatives.java rename to service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativesResponse.java index 6a9d521b..a177e0b3 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/Representatives.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddRepresentativesResponse.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. @@ -16,8 +16,8 @@ import com.google.gson.annotations.SerializedName; import java.util.List; -/** Representatives */ -public class Representatives { +/** AddRepresentativesResponse */ +public class AddRepresentativesResponse { /** 零售小店活动ID 说明:零售小店活动ID */ @SerializedName("activity_id") private String activityId; @@ -56,7 +56,7 @@ public void setAddTime(String addTime) { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Representatives {\n"); + sb.append("class AddRepresentativesResponse {\n"); sb.append(" activityId: ").append(toIndentedString(activityId)).append("\n"); sb.append(" failedRepresentativeInfoList: ") .append(toIndentedString(failedRepresentativeInfoList)) diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresBody.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresBody.java new file mode 100644 index 00000000..69308409 --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresBody.java @@ -0,0 +1,70 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.SerializedName; +import java.util.ArrayList; +import java.util.List; + +/** AddStoresBody */ +public class AddStoresBody { + /** 请求业务单据 说明:商户新增小店活动门店凭据号,商户侧需保持唯一性。可包含英文字母,数字,\\\\|,\\\\_,\\\\*,\\\\-等内容,不允许出现其他不合法符号。 */ + @SerializedName("out_request_no") + private String outRequestNo; + /** + * 添加时间 + * 说明:添加时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 + * 13点29分35秒。 + */ + @SerializedName("add_time") + private String addTime; + /** 待新增的小店活动门店列表 说明:待新增的小店活动门店列表 */ + @SerializedName("stores") + private List stores = new ArrayList(); + + public String getOutRequestNo() { + return outRequestNo; + } + + public void setOutRequestNo(String outRequestNo) { + this.outRequestNo = outRequestNo; + } + + public String getAddTime() { + return addTime; + } + + public void setAddTime(String addTime) { + this.addTime = addTime; + } + + public List getStores() { + return stores; + } + + public void setStores(List stores) { + this.stores = stores; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddStoresBody {\n"); + sb.append(" outRequestNo: ").append(toIndentedString(outRequestNo)).append("\n"); + sb.append(" addTime: ").append(toIndentedString(addTime)).append("\n"); + sb.append(" stores: ").append(toIndentedString(stores)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresRequest.java new file mode 100644 index 00000000..7b9f4609 --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresRequest.java @@ -0,0 +1,84 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import java.util.ArrayList; +import java.util.List; + +/** AddStoresRequest */ +public class AddStoresRequest { + /** 品牌ID 说明:品牌ID */ + @SerializedName("brand_id") + @Expose(serialize = false) + private String brandId; + /** 请求业务单据 说明:商户新增小店活动门店凭据号,商户侧需保持唯一性。可包含英文字母,数字,\\\\|,\\\\_,\\\\*,\\\\-等内容,不允许出现其他不合法符号。 */ + @SerializedName("out_request_no") + private String outRequestNo; + /** + * 添加时间 + * 说明:添加时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 + * 13点29分35秒。 + */ + @SerializedName("add_time") + private String addTime; + /** 待新增的小店活动门店列表 说明:待新增的小店活动门店列表 */ + @SerializedName("stores") + private List stores = new ArrayList(); + + public String getBrandId() { + return brandId; + } + + public void setBrandId(String brandId) { + this.brandId = brandId; + } + + public String getOutRequestNo() { + return outRequestNo; + } + + public void setOutRequestNo(String outRequestNo) { + this.outRequestNo = outRequestNo; + } + + public String getAddTime() { + return addTime; + } + + public void setAddTime(String addTime) { + this.addTime = addTime; + } + + public List getStores() { + return stores; + } + + public void setStores(List stores) { + this.stores = stores; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddStoresRequest {\n"); + sb.append(" brandId: ").append(toIndentedString(brandId)).append("\n"); + sb.append(" outRequestNo: ").append(toIndentedString(outRequestNo)).append("\n"); + sb.append(" addTime: ").append(toIndentedString(addTime)).append("\n"); + sb.append(" stores: ").append(toIndentedString(stores)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresResponse.java new file mode 100644 index 00000000..8fcc0e2a --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/AddStoresResponse.java @@ -0,0 +1,57 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.SerializedName; +import java.util.List; + +/** AddStoresResponse */ +public class AddStoresResponse { + /** + * 添加时间 + * 说明:添加时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 + * 13点29分35秒。 + */ + @SerializedName("add_time") + private String addTime; + /** 添加失败的小店活动门店列表 说明:添加失败的小店活动门店列表 */ + @SerializedName("failed_stores") + private List failedStores; + + public String getAddTime() { + return addTime; + } + + public void setAddTime(String addTime) { + this.addTime = addTime; + } + + public List getFailedStores() { + return failedStores; + } + + public void setFailedStores(List failedStores) { + this.failedStores = failedStores; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddStoresResponse {\n"); + sb.append(" addTime: ").append(toIndentedString(addTime)).append("\n"); + sb.append(" failedStores: ").append(toIndentedString(failedStores)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityBody.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityBody.java index 98b59a14..2c0b4ea8 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityBody.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityBody.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityRequest.java index 74db6a3a..b22e98fb 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityResponse.java index 9515f614..e3975597 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityResponse.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ApplyActivityResponse.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/CreateMaterialsBody.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/CreateMaterialsBody.java index 0b1ed4b4..8a742431 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/CreateMaterialsBody.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/CreateMaterialsBody.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/CreateMaterialsRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/CreateMaterialsRequest.java index 5e7cc811..e17b1d25 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/CreateMaterialsRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/CreateMaterialsRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeBody.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeBody.java index 84ebe19f..a3cb57a9 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeBody.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeBody.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeRequest.java index 2d2f050d..a95174f6 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeResponse.java index 639db4a5..f9a82122 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeResponse.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteRepresentativeResponse.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresBody.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresBody.java new file mode 100644 index 00000000..b1a1d11a --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresBody.java @@ -0,0 +1,70 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.SerializedName; +import java.util.ArrayList; +import java.util.List; + +/** DeleteStoresBody */ +public class DeleteStoresBody { + /** 请求业务单据 说明:商户删除小店活动门店凭据号,商户侧需保持唯一性。可包含英文字母,数字,\\\\|,\\\\_,\\\\*,\\\\-等内容,不允许出现其他不合法符号。 */ + @SerializedName("out_request_no") + private String outRequestNo; + /** + * 删除时间 + * 说明:删除时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 + * 13点29分35秒。 + */ + @SerializedName("delete_time") + private String deleteTime; + /** 待删除的小店活动门店列表 说明:待删除的小店活动门店列表 */ + @SerializedName("stores") + private List stores = new ArrayList(); + + public String getOutRequestNo() { + return outRequestNo; + } + + public void setOutRequestNo(String outRequestNo) { + this.outRequestNo = outRequestNo; + } + + public String getDeleteTime() { + return deleteTime; + } + + public void setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + } + + public List getStores() { + return stores; + } + + public void setStores(List stores) { + this.stores = stores; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStoresBody {\n"); + sb.append(" outRequestNo: ").append(toIndentedString(outRequestNo)).append("\n"); + sb.append(" deleteTime: ").append(toIndentedString(deleteTime)).append("\n"); + sb.append(" stores: ").append(toIndentedString(stores)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresRequest.java new file mode 100644 index 00000000..ae00ef00 --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresRequest.java @@ -0,0 +1,84 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import java.util.ArrayList; +import java.util.List; + +/** DeleteStoresRequest */ +public class DeleteStoresRequest { + /** 品牌ID 说明:品牌ID */ + @SerializedName("brand_id") + @Expose(serialize = false) + private String brandId; + /** 请求业务单据 说明:商户删除小店活动门店凭据号,商户侧需保持唯一性。可包含英文字母,数字,\\\\|,\\\\_,\\\\*,\\\\-等内容,不允许出现其他不合法符号。 */ + @SerializedName("out_request_no") + private String outRequestNo; + /** + * 删除时间 + * 说明:删除时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 + * 13点29分35秒。 + */ + @SerializedName("delete_time") + private String deleteTime; + /** 待删除的小店活动门店列表 说明:待删除的小店活动门店列表 */ + @SerializedName("stores") + private List stores = new ArrayList(); + + public String getBrandId() { + return brandId; + } + + public void setBrandId(String brandId) { + this.brandId = brandId; + } + + public String getOutRequestNo() { + return outRequestNo; + } + + public void setOutRequestNo(String outRequestNo) { + this.outRequestNo = outRequestNo; + } + + public String getDeleteTime() { + return deleteTime; + } + + public void setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + } + + public List getStores() { + return stores; + } + + public void setStores(List stores) { + this.stores = stores; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStoresRequest {\n"); + sb.append(" brandId: ").append(toIndentedString(brandId)).append("\n"); + sb.append(" outRequestNo: ").append(toIndentedString(outRequestNo)).append("\n"); + sb.append(" deleteTime: ").append(toIndentedString(deleteTime)).append("\n"); + sb.append(" stores: ").append(toIndentedString(stores)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresResponse.java new file mode 100644 index 00000000..95ee6c3b --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/DeleteStoresResponse.java @@ -0,0 +1,57 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.SerializedName; +import java.util.List; + +/** DeleteStoresResponse */ +public class DeleteStoresResponse { + /** + * 删除时间 + * 说明:删除时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 + * 13点29分35秒。 + */ + @SerializedName("delete_time") + private String deleteTime; + /** 删除失败的小店活动门店列表 说明:删除失败的小店活动门店列表 */ + @SerializedName("failed_stores") + private List failedStores; + + public String getDeleteTime() { + return deleteTime; + } + + public void setDeleteTime(String deleteTime) { + this.deleteTime = deleteTime; + } + + public List getFailedStores() { + return failedStores; + } + + public void setFailedStores(List failedStores) { + this.failedStores = failedStores; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteStoresResponse {\n"); + sb.append(" deleteTime: ").append(toIndentedString(deleteTime)).append("\n"); + sb.append(" failedStores: ").append(toIndentedString(failedStores)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/FmcgAct.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/FmcgAct.java index 56d2a7e1..84340473 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/FmcgAct.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/FmcgAct.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/GetStoreRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/GetStoreRequest.java new file mode 100644 index 00000000..1ce6081f --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/GetStoreRequest.java @@ -0,0 +1,55 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; + +/** GetStoreRequest */ +public class GetStoreRequest { + /** 品牌ID 说明:品牌ID */ + @SerializedName("brand_id") + @Expose(serialize = false) + private String brandId; + /** 门店编码 说明:门店编码,可包含英文字母,数字,\\\\|,\\\\_,\\\\*,\\\\-等内容,不允许出现其他不合法符号。 */ + @SerializedName("store_code") + @Expose(serialize = false) + private String storeCode; + + public String getBrandId() { + return brandId; + } + + public void setBrandId(String brandId) { + this.brandId = brandId; + } + + public String getStoreCode() { + return storeCode; + } + + public void setStoreCode(String storeCode) { + this.storeCode = storeCode; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetStoreRequest {\n"); + sb.append(" brandId: ").append(toIndentedString(brandId)).append("\n"); + sb.append(" storeCode: ").append(toIndentedString(storeCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/GoodsInfo.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/GoodsInfo.java index eb545b62..23d25915 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/GoodsInfo.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/GoodsInfo.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListActsByAreaRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListActsByAreaRequest.java index 208916db..68c05864 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListActsByAreaRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListActsByAreaRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListActsByAreaResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListActsByAreaResponse.java index 664070c7..63879398 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListActsByAreaResponse.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListActsByAreaResponse.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListRepresentativeRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListRepresentativeRequest.java index 4b987bfa..897b0c17 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListRepresentativeRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListRepresentativeRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListRepresentativeResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListRepresentativeResponse.java index 3346663c..35f5be56 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListRepresentativeResponse.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListRepresentativeResponse.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListStoreRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListStoreRequest.java new file mode 100644 index 00000000..33ce8822 --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListStoreRequest.java @@ -0,0 +1,68 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; + +/** ListStoreRequest */ +public class ListStoreRequest { + /** 品牌ID 说明:品牌ID */ + @SerializedName("brand_id") + @Expose(serialize = false) + private String brandId; + /** 分页页码 说明:页码从0开始,默认第0页 */ + @SerializedName("offset") + @Expose(serialize = false) + private Long offset; + /** 分页大小 说明:分页大小,默认查询10家门店 */ + @SerializedName("limit") + @Expose(serialize = false) + private Long limit; + + public String getBrandId() { + return brandId; + } + + public void setBrandId(String brandId) { + this.brandId = brandId; + } + + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getLimit() { + return limit; + } + + public void setLimit(Long limit) { + this.limit = limit; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStoreRequest {\n"); + sb.append(" brandId: ").append(toIndentedString(brandId)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListStoreResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListStoreResponse.java new file mode 100644 index 00000000..a3bb459a --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/ListStoreResponse.java @@ -0,0 +1,77 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.SerializedName; +import java.util.List; + +/** ListStoreResponse */ +public class ListStoreResponse { + /** 小店活动门店总数 说明:小店活动门店总数 */ + @SerializedName("total_count") + private Long totalCount; + /** 小店活动门店集合 说明:小店活动门店集合 */ + @SerializedName("data") + private List data; + /** 分页页码 说明:页码从0开始,默认第0页 */ + @SerializedName("offset") + private Long offset; + /** 分页大小 说明:分页大小 */ + @SerializedName("limit") + private Long limit; + + public Long getTotalCount() { + return totalCount; + } + + public void setTotalCount(Long totalCount) { + this.totalCount = totalCount; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public Long getLimit() { + return limit; + } + + public void setLimit(Long limit) { + this.limit = limit; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListStoreResponse {\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/LockQualificationRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/LockQualificationRequest.java index 2dc44c64..01c47305 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/LockQualificationRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/LockQualificationRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/LockQualificationResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/LockQualificationResponse.java index c22a7c68..53fcd420 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/LockQualificationResponse.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/LockQualificationResponse.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/MaterialInfo.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/MaterialInfo.java index 2b11a966..63939b49 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/MaterialInfo.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/MaterialInfo.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/Materials.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/Materials.java index 2308a675..3f6ecc42 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/Materials.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/Materials.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/OrderInfo.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/OrderInfo.java index 73dba27b..d5d7153a 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/OrderInfo.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/OrderInfo.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/RepresentativeInfo.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/RepresentativeInfo.java index 490cc4ab..5f954108 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/RepresentativeInfo.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/RepresentativeInfo.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/RetailStoreInfo.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/RetailStoreInfo.java new file mode 100644 index 00000000..c9085a1b --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/RetailStoreInfo.java @@ -0,0 +1,52 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// 营销加价购对外API +// +// 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 +// +// API version: 1.4.0 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.retailstore.model; + +import static com.wechat.pay.java.core.util.StringUtil.toIndentedString; + +import com.google.gson.annotations.SerializedName; + +/** RetailStoreInfo */ +public class RetailStoreInfo { + /** 门店编码 说明:门店编码,可包含英文字母,数字,\\\\|,\\\\_,\\\\*,\\\\-等内容,不允许出现其他不合法符号。 */ + @SerializedName("store_code") + private String storeCode; + /** 门店名称 说明:门店名称 */ + @SerializedName("store_name") + private String storeName; + + public String getStoreCode() { + return storeCode; + } + + public void setStoreCode(String storeCode) { + this.storeCode = storeCode; + } + + public String getStoreName() { + return storeName; + } + + public void setStoreName(String storeName) { + this.storeName = storeName; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetailStoreInfo {\n"); + sb.append(" storeCode: ").append(toIndentedString(storeCode)).append("\n"); + sb.append(" storeName: ").append(toIndentedString(storeName)).append("\n"); + sb.append("}"); + return sb.toString(); + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/StoreInfo.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/StoreInfo.java index 8fd740eb..1427d501 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/StoreInfo.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/StoreInfo.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/UnlockQualificationRequest.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/UnlockQualificationRequest.java index 00b10b47..d67a5d24 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/UnlockQualificationRequest.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/UnlockQualificationRequest.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT. diff --git a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/UnlockQualificationResponse.java b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/UnlockQualificationResponse.java index 4a25cc17..ecfe7413 100644 --- a/service/src/main/java/com/wechat/pay/java/service/retailstore/model/UnlockQualificationResponse.java +++ b/service/src/main/java/com/wechat/pay/java/service/retailstore/model/UnlockQualificationResponse.java @@ -4,7 +4,7 @@ // // 指定服务商可通过该接口报名加价购活动、查询某个区域内的加价购活动列表、锁定加价活动购资格以及解锁加价购活动资格。 // -// API version: 1.3.0 +// API version: 1.4.0 // Code generated by WechatPay APIv3 Generator based on [OpenAPI // Generator](https://openapi-generator.tech); DO NOT EDIT.