diff --git a/service/src/example/java/com/wechat/pay/java/service/partnerpayments/applyments/ApplymentsExample.java b/service/src/example/java/com/wechat/pay/java/service/partnerpayments/applyments/ApplymentsExample.java new file mode 100644 index 00000000..77dc9a74 --- /dev/null +++ b/service/src/example/java/com/wechat/pay/java/service/partnerpayments/applyments/ApplymentsExample.java @@ -0,0 +1,91 @@ +package com.wechat.pay.java.service.partnerpayments.applyments; + +import com.wechat.pay.java.core.Config; +import com.wechat.pay.java.core.RSAAutoCertificateConfig; +import com.wechat.pay.java.core.RSAPublicKeyConfig; +import com.wechat.pay.java.core.exception.HttpException; +import com.wechat.pay.java.core.exception.MalformedMessageException; +import com.wechat.pay.java.core.exception.ServiceException; +import com.wechat.pay.java.core.exception.ValidationException; +import com.wechat.pay.java.service.partnerpayments.app.AppService; +import com.wechat.pay.java.service.partnerpayments.app.model.*; +import com.wechat.pay.java.service.partnerpayments.applyments.model.ApplymentsRequest; +import com.wechat.pay.java.service.partnerpayments.applyments.model.ApplymentsResponse; + +/** AppService使用示例 */ +public class ApplymentsExample { + + /** 商户号 */ + public static String merchantId = "190000****"; + + /** 商户API私钥路径 */ + public static String privateKeyPath = "/Users/yourname/your/path/apiclient_key.pem"; + public static String publicKeyFormPath = "/pub_key.pem"; + /** 商户API证书序列号 */ + public static String publicKeyId = "PUB_KEY_ID_01XXX"; + + /** 商户证书序列号 */ + public static String merchantSerialNumber = "XXX"; + + /** 商户APIV3密钥 */ + public static String apiV3Key = ""; + + + public static ApplymentsService service; + + public static void main(String[] args) { + try { + // 初始化商户配置 + System.out.println("开始初始化商户配置..."); + Config config = + new RSAPublicKeyConfig.Builder() + .merchantId(merchantId) + .publicKeyFromPath(publicKeyFormPath) + .publicKeyId(publicKeyId) + // 使用 com.wechat.pay.java.core.util 中的函数从本地文件中加载商户私钥,商户私钥会用来生成请求的签名 + .privateKeyFromPath(privateKeyPath) + .merchantSerialNumber(merchantSerialNumber) + .apiV3Key(apiV3Key) + .build(); + + // 初始化服务 + System.out.println("开始初始化服务..."); + service = new ApplymentsService.Builder().config(config).build(); + + // 调用接口 + System.out.println("开始调用接口..."); + ApplymentsResponse response = applyments(); + System.out.println("接口调用成功,返回结果:" + response); + + } catch (HttpException e) { + System.err.println("发送HTTP请求失败:" + e.getMessage()); + System.err.println("请求信息:" + e.getHttpRequest()); + e.printStackTrace(); + } catch (ServiceException e) { + System.err.println("服务返回异常:" + e.getMessage()); + System.err.println("返回体:" + e.getResponseBody()); + e.printStackTrace(); + } catch (MalformedMessageException e) { + System.err.println("解析返回体失败:" + e.getMessage()); + e.printStackTrace(); + } catch (ValidationException e) { + System.err.println("验证签名失败:" + e.getMessage()); + e.printStackTrace(); + } catch (Exception e) { + System.err.println("发生未知错误:" + e.getMessage()); + e.printStackTrace(); + } + } + + + /** APP支付下单 */ + public static ApplymentsResponse applyments() { + ApplymentsRequest request = new ApplymentsRequest(); + + + // 调用接口 + return service.applyments(request, publicKeyId); + } + + +} diff --git a/service/src/main/java/com/wechat/pay/java/service/partnerpayments/applyments/ApplymentsService.java b/service/src/main/java/com/wechat/pay/java/service/partnerpayments/applyments/ApplymentsService.java new file mode 100644 index 00000000..5a318e0a --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/partnerpayments/applyments/ApplymentsService.java @@ -0,0 +1,130 @@ +// Copyright 2021 Tencent Inc. All rights reserved. +// +// APP支付 +// +// APP支付API +// +// API version: 1.2.3 + +// Code generated by WechatPay APIv3 Generator based on [OpenAPI +// Generator](https://openapi-generator.tech); DO NOT EDIT. + +package com.wechat.pay.java.service.partnerpayments.applyments; + +import com.wechat.pay.java.core.Config; +import com.wechat.pay.java.core.exception.HttpException; +import com.wechat.pay.java.core.exception.MalformedMessageException; +import com.wechat.pay.java.core.exception.ServiceException; +import com.wechat.pay.java.core.exception.ValidationException; +import com.wechat.pay.java.core.http.*; +import com.wechat.pay.java.service.partnerpayments.app.model.*; +import com.wechat.pay.java.service.partnerpayments.applyments.model.ApplymentsRequest; +import com.wechat.pay.java.service.partnerpayments.applyments.model.ApplymentsResponse; + +import static com.wechat.pay.java.core.http.UrlEncoder.urlEncode; +import static com.wechat.pay.java.core.util.GsonUtil.toJson; +import static java.util.Objects.requireNonNull; + +/** AppService服务 */ +public class ApplymentsService { + + private final HttpClient httpClient; + private final HostName hostName; + + private ApplymentsService(HttpClient httpClient, HostName hostName) { + this.httpClient = requireNonNull(httpClient); + this.hostName = hostName; + } + + /** AppService构造器 */ + public static class Builder { + + private HttpClient httpClient; + private HostName hostName; + + /** + * 设置请求配置,以该配置构造默认的httpClient,若未调用httpClient()方法,则必须调用该方法 + * + * @param config 请求配置 + * @return Builder + */ + public Builder config(Config config) { + this.httpClient = new DefaultHttpClientBuilder().config(config).build(); + + return this; + } + + /** + * 设置微信支付域名,可选,默认为api.mch.weixin.qq.com + * + * @param hostName 微信支付域名 + * @return Builder + */ + public Builder hostName(HostName hostName) { + this.hostName = hostName; + return this; + } + + /** + * 设置自定义httpClient,若未调用config(),则必须调用该方法 + * + * @param httpClient httpClient + * @return Builder + */ + public Builder httpClient(HttpClient httpClient) { + this.httpClient = httpClient; + return this; + } + + /** + * 构造服务 + * + * @return AppService + */ + public ApplymentsService build() { + return new ApplymentsService(httpClient, hostName); + } + } + + /** + * 平台收付通(商户进件) + * 注意部分参数需要加密 + * + * @param request 请求参数 + * @param wechatpaySerial 【微信支付公钥ID】或【微信支付平台证书序列号】请求参数中的敏感字段,需要使用微信支付公钥加密(推荐),请参考获取微信支付公钥ID说明以及微信支付公钥加密敏感信息指引,也可以使用微信支付平台证书公钥加密,参考获取平台证书序列号、平台证书加密敏感信息指引 + * @throws HttpException 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。 + * @throws ValidationException 发送HTTP请求成功,验证微信支付返回签名失败。 + * @throws ServiceException 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。 + * @throws MalformedMessageException 服务返回成功,content-type不为application/json、解析返回体失败。 + */ + public ApplymentsResponse applyments(ApplymentsRequest request,String wechatpaySerial) { + String requestPath = + "https://api.mch.weixin.qq.com/v3/ecommerce/applyments/"; + + ApplymentsRequest realRequest = request; + 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()); + headers.addHeader(Constant.WECHAT_PAY_SERIAL, wechatpaySerial); + HttpRequest httpRequest = + new HttpRequest.Builder() + .httpMethod(HttpMethod.POST) + .url(requestPath) + .headers(headers) + .body(createRequestBody(realRequest)) + .build(); + httpClient.execute(httpRequest, ApplymentsResponse.class); + HttpResponse httpResponse = + httpClient.execute(httpRequest, ApplymentsResponse.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/partnerpayments/applyments/model/ApplymentsRequest.java b/service/src/main/java/com/wechat/pay/java/service/partnerpayments/applyments/model/ApplymentsRequest.java new file mode 100644 index 00000000..92e20606 --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/partnerpayments/applyments/model/ApplymentsRequest.java @@ -0,0 +1,820 @@ +package com.wechat.pay.java.service.partnerpayments.applyments.model; + +import com.google.gson.annotations.SerializedName; + +public class ApplymentsRequest { + /** 业务申请编号 */ + @SerializedName("out_request_no") + private String outRequestNo; + + /** 主体类型 */ + @SerializedName("organization_type") + private String organizationType; + + /** 是否金融机构 */ + @SerializedName("finance_institution") + private Boolean financeInstitution; + + /** 营业执照信息 */ + @SerializedName("business_license_info") + private BusinessLicenseInfo businessLicenseInfo; + + /** 金融机构许可证信息 */ + @SerializedName("finance_institution_info") + private FinanceInstitutionInfo financeInstitutionInfo; + + /** 证件持有人类型 */ + @SerializedName("id_holder_type") + private String idHolderType; + + /** 经营者/法人证件类型 */ + @SerializedName("id_doc_type") + private String idDocType; + + /** 法定代表人说明函 */ + @SerializedName("authorize_letter_copy") + private String authorizeLetterCopy; + + /** 经营者/法人身份证信息 */ + @SerializedName("id_card_info") + private IdCardInfo idCardInfo; + + /** 经营者/法人其他类型证件信息 */ + @SerializedName("id_doc_info") + private IdDocInfo idDocInfo; + + /** 经营者/法人是否为受益人 */ + @SerializedName("owner") + private Boolean owner; + + /** 最终受益人信息列表 */ + @SerializedName("ubo_info_list") + private UboInfo[] uboInfoList; + + /** 结算账户信息 */ + @SerializedName("account_info") + private AccountInfo accountInfo; + + /** 超级管理员信息 */ + @SerializedName("contact_info") + private ContactInfo contactInfo; + + /** 经营场景信息 */ + @SerializedName("sales_scene_info") + private SalesSceneInfo salesSceneInfo; + + /** 结算规则 */ + @SerializedName("settlement_info") + private SettlementInfo settlementInfo; + + /** 商户简称 */ + @SerializedName("merchant_shortname") + private String merchantShortname; + + /** 特殊资质 */ + @SerializedName("qualifications") + private String qualifications; + + /** 补充材料 */ + @SerializedName("business_addition_pics") + private String businessAdditionPics; + + /** 补充说明 */ + @SerializedName("business_addition_desc") + private String businessAdditionDesc; + + public static class BusinessLicenseInfo { + /** 证书类型 */ + @SerializedName("cert_type") + private String certType; + + /** 营业执照扫描件 */ + @SerializedName("business_license_copy") + private String businessLicenseCopy; + + /** 营业执照注册号 */ + @SerializedName("business_license_number") + private String businessLicenseNumber; + + /** 商户名称 */ + @SerializedName("merchant_name") + private String merchantName; + + /** 经营者/法定代表人姓名 */ + @SerializedName("legal_person") + private String legalPerson; + + /** 注册地址 */ + @SerializedName("company_address") + private String companyAddress; + + /** 营业期限 */ + @SerializedName("business_time") + private String[] businessTime; + + public String getCertType() { + return certType; + } + + public void setCertType(String certType) { + this.certType = certType; + } + + public String getBusinessLicenseCopy() { + return businessLicenseCopy; + } + + public void setBusinessLicenseCopy(String businessLicenseCopy) { + this.businessLicenseCopy = businessLicenseCopy; + } + + public String getBusinessLicenseNumber() { + return businessLicenseNumber; + } + + public void setBusinessLicenseNumber(String businessLicenseNumber) { + this.businessLicenseNumber = businessLicenseNumber; + } + + public String getMerchantName() { + return merchantName; + } + + public void setMerchantName(String merchantName) { + this.merchantName = merchantName; + } + + public String getLegalPerson() { + return legalPerson; + } + + public void setLegalPerson(String legalPerson) { + this.legalPerson = legalPerson; + } + + public String getCompanyAddress() { + return companyAddress; + } + + public void setCompanyAddress(String companyAddress) { + this.companyAddress = companyAddress; + } + + public String[] getBusinessTime() { + return businessTime; + } + + public void setBusinessTime(String[] businessTime) { + this.businessTime = businessTime; + } + } + + public static class FinanceInstitutionInfo { + /** 金融机构类型 */ + @SerializedName("finance_type") + private String financeType; + + /** 金融机构许可证图片 */ + @SerializedName("finance_license_pics") + private String[] financeLicensePics; + } + + public static class IdCardInfo { + /** 身份证人像面照片 */ + @SerializedName("id_card_copy") + private String idCardCopy; + + /** 身份证国徽面照片 */ + @SerializedName("id_card_national") + private String idCardNational; + + /** 身份证姓名 */ + @SerializedName("id_card_name") + private String idCardName; + + /** 身份证号码 */ + @SerializedName("id_card_number") + private String idCardNumber; + + /** 身份证开始时间 */ + @SerializedName("id_card_valid_time_begin") + private String idCardValidTimeBegin; + + /** 身份证结束时间 */ + @SerializedName("id_card_valid_time") + private String idCardValidTime; + + public String getIdCardCopy() { + return idCardCopy; + } + + public void setIdCardCopy(String idCardCopy) { + this.idCardCopy = idCardCopy; + } + + public String getIdCardNational() { + return idCardNational; + } + + public void setIdCardNational(String idCardNational) { + this.idCardNational = idCardNational; + } + + public String getIdCardName() { + return idCardName; + } + + public void setIdCardName(String idCardName) { + this.idCardName = idCardName; + } + + public String getIdCardNumber() { + return idCardNumber; + } + + public void setIdCardNumber(String idCardNumber) { + this.idCardNumber = idCardNumber; + } + + public String getIdCardValidTimeBegin() { + return idCardValidTimeBegin; + } + + public void setIdCardValidTimeBegin(String idCardValidTimeBegin) { + this.idCardValidTimeBegin = idCardValidTimeBegin; + } + + public String getIdCardValidTime() { + return idCardValidTime; + } + + public void setIdCardValidTime(String idCardValidTime) { + this.idCardValidTime = idCardValidTime; + } + } + + public static class IdDocInfo { + /** 证件姓名 */ + @SerializedName("id_doc_name") + private String idDocName; + + /** 证件号码 */ + @SerializedName("id_doc_number") + private String idDocNumber; + + /** 证件正面照片 */ + @SerializedName("id_doc_copy") + private String idDocCopy; + + /** 证件反面照片 */ + @SerializedName("id_doc_copy_back") + private String idDocCopyBack; + + /** 证件开始日期 */ + @SerializedName("doc_period_begin") + private String docPeriodBegin; + + /** 证件结束日期 */ + @SerializedName("doc_period_end") + private String docPeriodEnd; + } + + public static class UboInfo { + /** 证件类型 */ + @SerializedName("ubo_id_doc_type") + private String uboIdDocType; + + /** 证件人像面照片 */ + @SerializedName("ubo_id_doc_copy") + private String uboIdDocCopy; + + /** 证件国徽面照片 */ + @SerializedName("ubo_id_doc_copy_back") + private String uboIdDocCopyBack; + + /** 证件姓名 */ + @SerializedName("ubo_id_doc_name") + private String uboIdDocName; + + /** 证件号码 */ + @SerializedName("ubo_id_doc_number") + private String uboIdDocNumber; + + /** 证件地址 */ + @SerializedName("ubo_id_doc_address") + private String uboIdDocAddress; + + /** 证件开始日期 */ + @SerializedName("ubo_id_doc_period_begin") + private String uboIdDocPeriodBegin; + + /** 证件结束日期 */ + @SerializedName("ubo_id_doc_period_end") + private String uboIdDocPeriodEnd; + + public String getUboIdDocType() { + return uboIdDocType; + } + + public void setUboIdDocType(String uboIdDocType) { + this.uboIdDocType = uboIdDocType; + } + + public String getUboIdDocCopy() { + return uboIdDocCopy; + } + + public void setUboIdDocCopy(String uboIdDocCopy) { + this.uboIdDocCopy = uboIdDocCopy; + } + + public String getUboIdDocCopyBack() { + return uboIdDocCopyBack; + } + + public void setUboIdDocCopyBack(String uboIdDocCopyBack) { + this.uboIdDocCopyBack = uboIdDocCopyBack; + } + + public String getUboIdDocName() { + return uboIdDocName; + } + + public void setUboIdDocName(String uboIdDocName) { + this.uboIdDocName = uboIdDocName; + } + + public String getUboIdDocNumber() { + return uboIdDocNumber; + } + + public void setUboIdDocNumber(String uboIdDocNumber) { + this.uboIdDocNumber = uboIdDocNumber; + } + + public String getUboIdDocAddress() { + return uboIdDocAddress; + } + + public void setUboIdDocAddress(String uboIdDocAddress) { + this.uboIdDocAddress = uboIdDocAddress; + } + + public String getUboIdDocPeriodBegin() { + return uboIdDocPeriodBegin; + } + + public void setUboIdDocPeriodBegin(String uboIdDocPeriodBegin) { + this.uboIdDocPeriodBegin = uboIdDocPeriodBegin; + } + + public String getUboIdDocPeriodEnd() { + return uboIdDocPeriodEnd; + } + + public void setUboIdDocPeriodEnd(String uboIdDocPeriodEnd) { + this.uboIdDocPeriodEnd = uboIdDocPeriodEnd; + } + } + + public static class AccountInfo { + /** 账户类型 */ + @SerializedName("bank_account_type") + private String bankAccountType; + + /** 开户银行 */ + @SerializedName("account_bank") + private String accountBank; + + /** 开户名称 */ + @SerializedName("account_name") + private String accountName; + + /** 开户银行省市编码 */ + @SerializedName("bank_address_code") + private String bankAddressCode; + + /** 开户银行联行号 */ + @SerializedName("bank_branch_id") + private String bankBranchId; + + /** 开户银行全称(含支行) */ + @SerializedName("bank_name") + private String bankName; + + /** 银行账号 */ + @SerializedName("account_number") + private String accountNumber; + + public String getBankAccountType() { + return bankAccountType; + } + + public void setBankAccountType(String bankAccountType) { + this.bankAccountType = bankAccountType; + } + + public String getAccountBank() { + return accountBank; + } + + public void setAccountBank(String accountBank) { + this.accountBank = accountBank; + } + + public String getAccountName() { + return accountName; + } + + public void setAccountName(String accountName) { + this.accountName = accountName; + } + + public String getBankAddressCode() { + return bankAddressCode; + } + + public void setBankAddressCode(String bankAddressCode) { + this.bankAddressCode = bankAddressCode; + } + + public String getBankBranchId() { + return bankBranchId; + } + + public void setBankBranchId(String bankBranchId) { + this.bankBranchId = bankBranchId; + } + + public String getBankName() { + return bankName; + } + + public void setBankName(String bankName) { + this.bankName = bankName; + } + + public String getAccountNumber() { + return accountNumber; + } + + public void setAccountNumber(String accountNumber) { + this.accountNumber = accountNumber; + } + } + + public static class ContactInfo { + /** 超级管理员类型 */ + @SerializedName("contact_type") + private String contactType; + + /** 超级管理员姓名 */ + @SerializedName("contact_name") + private String contactName; + + /** 超级管理员证件类型 */ + @SerializedName("contact_id_doc_type") + private String contactIdDocType; + + /** 超级管理员证件号码 */ + @SerializedName("contact_id_card_number") + private String contactIdCardNumber; + + /** 超级管理员证件正面照片 */ + @SerializedName("contact_id_doc_copy") + private String contactIdDocCopy; + + /** 超级管理员证件反面照片 */ + @SerializedName("contact_id_doc_copy_back") + private String contactIdDocCopyBack; + + /** 超级管理员证件有效期开始时间 */ + @SerializedName("contact_id_doc_period_begin") + private String contactIdDocPeriodBegin; + + /** 超级管理员证件有效期结束时间 */ + @SerializedName("contact_id_doc_period_end") + private String contactIdDocPeriodEnd; + + /** 业务办理授权函 */ + @SerializedName("business_authorization_letter") + private String businessAuthorizationLetter; + + /** 超级管理员手机 */ + @SerializedName("mobile_phone") + private String mobilePhone; + + /** 超级管理员邮箱 */ + @SerializedName("contact_email") + private String contactEmail; + + public String getContactType() { + return contactType; + } + + public void setContactType(String contactType) { + this.contactType = contactType; + } + + public String getContactName() { + return contactName; + } + + public void setContactName(String contactName) { + this.contactName = contactName; + } + + public String getContactIdDocType() { + return contactIdDocType; + } + + public void setContactIdDocType(String contactIdDocType) { + this.contactIdDocType = contactIdDocType; + } + + public String getContactIdCardNumber() { + return contactIdCardNumber; + } + + public void setContactIdCardNumber(String contactIdCardNumber) { + this.contactIdCardNumber = contactIdCardNumber; + } + + public String getContactIdDocCopy() { + return contactIdDocCopy; + } + + public void setContactIdDocCopy(String contactIdDocCopy) { + this.contactIdDocCopy = contactIdDocCopy; + } + + public String getContactIdDocCopyBack() { + return contactIdDocCopyBack; + } + + public void setContactIdDocCopyBack(String contactIdDocCopyBack) { + this.contactIdDocCopyBack = contactIdDocCopyBack; + } + + public String getContactIdDocPeriodBegin() { + return contactIdDocPeriodBegin; + } + + public void setContactIdDocPeriodBegin(String contactIdDocPeriodBegin) { + this.contactIdDocPeriodBegin = contactIdDocPeriodBegin; + } + + public String getContactIdDocPeriodEnd() { + return contactIdDocPeriodEnd; + } + + public void setContactIdDocPeriodEnd(String contactIdDocPeriodEnd) { + this.contactIdDocPeriodEnd = contactIdDocPeriodEnd; + } + + public String getBusinessAuthorizationLetter() { + return businessAuthorizationLetter; + } + + public void setBusinessAuthorizationLetter(String businessAuthorizationLetter) { + this.businessAuthorizationLetter = businessAuthorizationLetter; + } + + public String getMobilePhone() { + return mobilePhone; + } + + public void setMobilePhone(String mobilePhone) { + this.mobilePhone = mobilePhone; + } + + public String getContactEmail() { + return contactEmail; + } + + public void setContactEmail(String contactEmail) { + this.contactEmail = contactEmail; + } + } + + public static class SalesSceneInfo { + /** 店铺名称 */ + @SerializedName("store_name") + private String storeName; + + /** 店铺链接 */ + @SerializedName("store_url") + private String storeUrl; + + /** 店铺二维码 */ + @SerializedName("store_qr_code") + private String storeQrCode; + + /** 商家小程序APPID */ + @SerializedName("mini_program_sub_appid") + private String miniProgramSubAppid; + + public String getStoreName() { + return storeName; + } + + public void setStoreName(String storeName) { + this.storeName = storeName; + } + + public String getStoreUrl() { + return storeUrl; + } + + public void setStoreUrl(String storeUrl) { + this.storeUrl = storeUrl; + } + + public String getStoreQrCode() { + return storeQrCode; + } + + public void setStoreQrCode(String storeQrCode) { + this.storeQrCode = storeQrCode; + } + + public String getMiniProgramSubAppid() { + return miniProgramSubAppid; + } + + public void setMiniProgramSubAppid(String miniProgramSubAppid) { + this.miniProgramSubAppid = miniProgramSubAppid; + } + } + + public static class SettlementInfo { + /** 结算规则ID */ + @SerializedName("settlement_id") + private Integer settlementId; + + /** 所属行业 */ + @SerializedName("qualification_type") + private String qualificationType; + } + + // Getters and Setters + public String getOutRequestNo() { + return outRequestNo; + } + + public void setOutRequestNo(String outRequestNo) { + this.outRequestNo = outRequestNo; + } + + public String getOrganizationType() { + return organizationType; + } + + public void setOrganizationType(String organizationType) { + this.organizationType = organizationType; + } + + public Boolean getFinanceInstitution() { + return financeInstitution; + } + + public void setFinanceInstitution(Boolean financeInstitution) { + this.financeInstitution = financeInstitution; + } + + public BusinessLicenseInfo getBusinessLicenseInfo() { + return businessLicenseInfo; + } + + public void setBusinessLicenseInfo(BusinessLicenseInfo businessLicenseInfo) { + this.businessLicenseInfo = businessLicenseInfo; + } + + public FinanceInstitutionInfo getFinanceInstitutionInfo() { + return financeInstitutionInfo; + } + + public void setFinanceInstitutionInfo(FinanceInstitutionInfo financeInstitutionInfo) { + this.financeInstitutionInfo = financeInstitutionInfo; + } + + public String getIdHolderType() { + return idHolderType; + } + + public void setIdHolderType(String idHolderType) { + this.idHolderType = idHolderType; + } + + public String getIdDocType() { + return idDocType; + } + + public void setIdDocType(String idDocType) { + this.idDocType = idDocType; + } + + public String getAuthorizeLetterCopy() { + return authorizeLetterCopy; + } + + public void setAuthorizeLetterCopy(String authorizeLetterCopy) { + this.authorizeLetterCopy = authorizeLetterCopy; + } + + public IdCardInfo getIdCardInfo() { + return idCardInfo; + } + + public void setIdCardInfo(IdCardInfo idCardInfo) { + this.idCardInfo = idCardInfo; + } + + public IdDocInfo getIdDocInfo() { + return idDocInfo; + } + + public void setIdDocInfo(IdDocInfo idDocInfo) { + this.idDocInfo = idDocInfo; + } + + public Boolean getOwner() { + return owner; + } + + public void setOwner(Boolean owner) { + this.owner = owner; + } + + public UboInfo[] getUboInfoList() { + return uboInfoList; + } + + public void setUboInfoList(UboInfo[] uboInfoList) { + this.uboInfoList = uboInfoList; + } + + public AccountInfo getAccountInfo() { + return accountInfo; + } + + public void setAccountInfo(AccountInfo accountInfo) { + this.accountInfo = accountInfo; + } + + public ContactInfo getContactInfo() { + return contactInfo; + } + + public void setContactInfo(ContactInfo contactInfo) { + this.contactInfo = contactInfo; + } + + public SalesSceneInfo getSalesSceneInfo() { + return salesSceneInfo; + } + + public void setSalesSceneInfo(SalesSceneInfo salesSceneInfo) { + this.salesSceneInfo = salesSceneInfo; + } + + public SettlementInfo getSettlementInfo() { + return settlementInfo; + } + + public void setSettlementInfo(SettlementInfo settlementInfo) { + this.settlementInfo = settlementInfo; + } + + public String getMerchantShortname() { + return merchantShortname; + } + + public void setMerchantShortname(String merchantShortname) { + this.merchantShortname = merchantShortname; + } + + public String getQualifications() { + return qualifications; + } + + public void setQualifications(String qualifications) { + this.qualifications = qualifications; + } + + public String getBusinessAdditionPics() { + return businessAdditionPics; + } + + public void setBusinessAdditionPics(String businessAdditionPics) { + this.businessAdditionPics = businessAdditionPics; + } + + public String getBusinessAdditionDesc() { + return businessAdditionDesc; + } + + public void setBusinessAdditionDesc(String businessAdditionDesc) { + this.businessAdditionDesc = businessAdditionDesc; + } +} diff --git a/service/src/main/java/com/wechat/pay/java/service/partnerpayments/applyments/model/ApplymentsResponse.java b/service/src/main/java/com/wechat/pay/java/service/partnerpayments/applyments/model/ApplymentsResponse.java new file mode 100644 index 00000000..fea725c5 --- /dev/null +++ b/service/src/main/java/com/wechat/pay/java/service/partnerpayments/applyments/model/ApplymentsResponse.java @@ -0,0 +1,29 @@ +package com.wechat.pay.java.service.partnerpayments.applyments.model; + +import com.google.gson.annotations.SerializedName; + +public class ApplymentsResponse { + /** 微信支付申请单号 */ + @SerializedName("applyment_id") + private Integer applymentId; + + /** 业务申请编号 */ + @SerializedName("out_request_no") + private String outRequestNo; + + public Integer getApplymentId() { + return applymentId; + } + + public void setApplymentId(Integer applymentId) { + this.applymentId = applymentId; + } + + public String getOutRequestNo() { + return outRequestNo; + } + + public void setOutRequestNo(String outRequestNo) { + this.outRequestNo = outRequestNo; + } +}