电子发票接入工具

e-invoice-spring-boot-starter

介绍

封装票通/大票房平台接口,以便使用便捷!

码云下载地址:https://gitee.com/gtxg/e-invoice-spring-boot-starter

软件架构

封装starter模块,方便使用和修改!

安装教程

  1. 克隆项目
git clone https://gitee.com/gtxg/e-invoice-spring-boot-starter.git
  1. 编译本地安装
mvn clean install
  1. 项目中引用
  2. 添加引用
        
            com.vcyber
            e-invoice-spring-boot-starter
            0.0.1-SNAPSHOT
        
        
        
            com.google.code.gson
            gson
            2.8.5
        

        
            org.apache.httpcomponents
            httpclient
            4.5.1
        

        
            org.apache.httpcomponents
            fluent-hc
            4.5.2
        

        
        
            joda-time
            joda-time
            2.10
        

2.添加配置文件

# 这里数据来自票通平台
com:
  vcyber:
    wty:
      privateKey: MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAIVLAoolDaE7m5oMB1ZrILHkMXMF6qmC8I/FCejz4hwBcj59H3rbtcycBEmExOJTGwexFkNgRakhqM+3uP3VybWu1GBYNmqVzggWKKzThul9VPE3+OTMlxeG4H63RsCO1//J0MoUavXMMkL3txkZBO5EtTqek182eePOV8fC3ZxpAgMBAAECgYBp4Gg3BTGrZaa2mWFmspd41lK1E/kPBrRA7vltMfPj3P47RrYvp7/js/Xv0+d0AyFQXcjaYelTbCokPMJT1nJumb2A/Cqy3yGKX3Z6QibvByBlCKK29lZkw8WVRGFIzCIXhGKdqukXf8RyqfhInqHpZ9AoY2W60bbSP6EXj/rhNQJBAL76SmpQOrnCI8Xu75di0eXBN/bE9tKsf7AgMkpFRhaU8VLbvd27U9vRWqtu67RY3sOeRMh38JZBwAIS8tp5hgcCQQCyrOS6vfXIUxKoWyvGyMyhqoLsiAdnxBKHh8tMINo0ioCbU+jc2dgPDipL0ym5nhvg5fCXZC2rvkKUltLEqq4PAkAqBf9b932EpKCkjFgyUq9nRCYhaeP6JbUPN3Z5e1bZ3zpfBjV4ViE0zJOMB6NcEvYpy2jNR/8rwRoUGsFPq8//AkAklw18RJyJuqFugsUzPznQvad0IuNJV7jnsmJqo6ur6NUvef6NA7ugUalNv9+imINjChO8HRLRQfRGk6B0D/P3AkBt54UBMtFefOLXgUdilwLdCUSw4KpbuBPw+cyWlMjcXCkj4rHoeksekyBH1GrBJkLqDMRqtVQUubuFwSzBAtlc
      ptPublicKey: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCJkx3HelhEm/U7jOCor29oHsIjCMSTyKbX5rpoAY8KDIs9mmr5Y9r+jvNJH8pK3u5gNnvleT6rQgJQW1mk0zHuPO00vy62tSA53fkSjtM+n0oC1Fkm4DRFd5qJgoP7uFQHR5OEffMjy2qIuxChY4Au0kq+6RruEgIttb7wUxy8TwIDAQAB
      password: lsBnINDxtct8HZB7KCMyhWSJ
      platform_alias: DEMO
      platform_code: 11111111
      getTitleInfoUrl: http://fpkj.testnw.vpiaotong.cn/tp/openapi/getInvoiceTitleInfo.pt
      registerEnterpriseUrl: http://fpkj.testnw.vpiaotong.cn/tp/openapi/register.pt

3.项目注入service

    @Autowired  
    private InvoiceServiceImpl invoiceService;

使用说明

完全来源于票通接口返回数据,做封装,使得使用更规范和便捷

完成程度

  1. 票通发票抬头查询接口
  2. 注册企业
  3. 开具蓝票
  4. 开具红票
  5. 推送发票

后续完成

  1. 注册推送
  2. 查询发票
  3. 查询库存信息等

你可能感兴趣的:(工具)