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
WxMpMerchantInvoiceService
getAuthPageUrl
在接口中 WxMpMerchantInvoiceService
params
- the paramsWxErrorException
- the wx error exceptionpublic InvoiceAuthDataResult getAuthData(InvoiceAuthDataRequest params) throws WxErrorException
WxMpMerchantInvoiceService
getAuthData
在接口中 WxMpMerchantInvoiceService
params
- the paramsWxErrorException
- the wx error exceptionpublic void rejectInvoice(InvoiceRejectRequest params) throws WxErrorException
WxMpMerchantInvoiceService
场景: 用户授权填写数据无效 结果: 用户会收到一条开票失败提示
rejectInvoice
在接口中 WxMpMerchantInvoiceService
params
- the paramsWxErrorException
- the wx error exceptionpublic void makeOutInvoice(MakeOutInvoiceRequest params) throws WxErrorException
WxMpMerchantInvoiceService
makeOutInvoice
在接口中 WxMpMerchantInvoiceService
params
- the paramsWxErrorException
- the wx error exceptionpublic void clearOutInvoice(ClearOutInvoiceRequest params) throws WxErrorException
WxMpMerchantInvoiceService
clearOutInvoice
在接口中 WxMpMerchantInvoiceService
params
- the paramsWxErrorException
- the wx error exceptionpublic InvoiceResult queryInvoiceInfo(String fpqqlsh, String nsrsbh) throws WxErrorException
WxMpMerchantInvoiceService
queryInvoiceInfo
在接口中 WxMpMerchantInvoiceService
fpqqlsh
- 发票请求流水号nsrsbh
- 纳税人识别号WxErrorException
- the wx error exceptionpublic void setMerchantContactInfo(MerchantContactInfo contact) throws WxErrorException
WxMpMerchantInvoiceService
setMerchantContactInfo
在接口中 WxMpMerchantInvoiceService
contact
- the contactWxErrorException
- the wx error exceptionpublic MerchantContactInfo getMerchantContactInfo() throws WxErrorException
WxMpMerchantInvoiceService
getMerchantContactInfo
在接口中 WxMpMerchantInvoiceService
WxErrorException
- the wx error exceptionpublic void setAuthPageSetting(InvoiceAuthPageSetting authPageSetting) throws WxErrorException
WxMpMerchantInvoiceService
setAuthPageSetting
在接口中 WxMpMerchantInvoiceService
authPageSetting
- the auth page settingWxErrorException
- the wx error exceptionpublic InvoiceAuthPageSetting getAuthPageSetting() throws WxErrorException
WxMpMerchantInvoiceService
getAuthPageSetting
在接口中 WxMpMerchantInvoiceService
WxErrorException
- the wx error exceptionpublic void setMerchantInvoicePlatform(MerchantInvoicePlatformInfo paymchInfo) throws WxErrorException
WxMpMerchantInvoiceService
setMerchantInvoicePlatform
在接口中 WxMpMerchantInvoiceService
paymchInfo
- the merchant invoice platform infoWxErrorException
- the wx error exceptionpublic MerchantInvoicePlatformInfo getMerchantInvoicePlatform(MerchantInvoicePlatformInfo merchantInvoicePlatformInfo) throws WxErrorException
WxMpMerchantInvoiceService
getMerchantInvoicePlatform
在接口中 WxMpMerchantInvoiceService
merchantInvoicePlatformInfo
- the merchant invoice platform infoWxErrorException
- the wx error exceptionCopyright © 2021. All rights reserved.