public class WxMpMerchantInvoiceServiceImpl extends Object implements WxMpMerchantInvoiceService
| 构造器和说明 |
|---|
WxMpMerchantInvoiceServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clearOutInvoice(ClearOutInvoiceRequest params)
发票冲红
|
InvoiceAuthDataResult |
getAuthData(InvoiceAuthDataRequest params)
获得用户授权数据
|
InvoiceAuthPageSetting |
getAuthPageSetting()
获取授权页面配置
|
InvoiceAuthPageResult |
getAuthPageUrl(InvoiceAuthPageRequest params)
获取开票授权页链接
|
MerchantContactInfo |
getMerchantContactInfo()
获取商户联系方式
|
MerchantInvoicePlatformInfo |
getMerchantInvoicePlatform(MerchantInvoicePlatformInfo merchantInvoicePlatformInfo)
获取商户开票平台信息
|
void |
makeOutInvoice(MakeOutInvoiceRequest params)
开具电子发票
|
InvoiceResult |
queryInvoiceInfo(String fpqqlsh,
String nsrsbh)
查询发票信息
|
void |
rejectInvoice(InvoiceRejectRequest params)
拒绝开票
场景: 用户授权填写数据无效
结果: 用户会收到一条开票失败提示
|
void |
setAuthPageSetting(InvoiceAuthPageSetting authPageSetting)
配置授权页面字段
|
void |
setMerchantContactInfo(MerchantContactInfo contact)
设置商户联系方式, 获取授权链接前需要设置商户联系信息
|
void |
setMerchantInvoicePlatform(MerchantInvoicePlatformInfo paymchInfo)
设置商户开票平台信息
|
public InvoiceAuthPageResult getAuthPageUrl(InvoiceAuthPageRequest params) throws WxErrorException
WxMpMerchantInvoiceServicegetAuthPageUrl 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic InvoiceAuthDataResult getAuthData(InvoiceAuthDataRequest params) throws WxErrorException
WxMpMerchantInvoiceServicegetAuthData 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic void rejectInvoice(InvoiceRejectRequest params) throws WxErrorException
WxMpMerchantInvoiceService场景: 用户授权填写数据无效 结果: 用户会收到一条开票失败提示
rejectInvoice 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic void makeOutInvoice(MakeOutInvoiceRequest params) throws WxErrorException
WxMpMerchantInvoiceServicemakeOutInvoice 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic void clearOutInvoice(ClearOutInvoiceRequest params) throws WxErrorException
WxMpMerchantInvoiceServiceclearOutInvoice 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic InvoiceResult queryInvoiceInfo(String fpqqlsh, String nsrsbh) throws WxErrorException
WxMpMerchantInvoiceServicequeryInvoiceInfo 在接口中 WxMpMerchantInvoiceServicefpqqlsh - 发票请求流水号nsrsbh - 纳税人识别号WxErrorExceptionpublic void setMerchantContactInfo(MerchantContactInfo contact) throws WxErrorException
WxMpMerchantInvoiceServicesetMerchantContactInfo 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic MerchantContactInfo getMerchantContactInfo() throws WxErrorException
WxMpMerchantInvoiceServicegetMerchantContactInfo 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic void setAuthPageSetting(InvoiceAuthPageSetting authPageSetting) throws WxErrorException
WxMpMerchantInvoiceServicesetAuthPageSetting 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic InvoiceAuthPageSetting getAuthPageSetting() throws WxErrorException
WxMpMerchantInvoiceServicegetAuthPageSetting 在接口中 WxMpMerchantInvoiceServiceWxErrorExceptionpublic void setMerchantInvoicePlatform(MerchantInvoicePlatformInfo paymchInfo) throws WxErrorException
WxMpMerchantInvoiceServicepublic MerchantInvoicePlatformInfo getMerchantInvoicePlatform(MerchantInvoicePlatformInfo merchantInvoicePlatformInfo) throws WxErrorException
WxMpMerchantInvoiceServiceCopyright © 2020. All rights reserved.