octobat 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/History.txt +8 -0
- data/VERSION +1 -1
- data/lib/octobat/credit_note.rb +13 -0
- data/lib/octobat/transaction.rb +12 -0
- data/lib/octobat/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 1a193d3d3821d34dbd7f2cd8b8ef333d91b4344e
         | 
| 4 | 
            +
              data.tar.gz: 2f0a07eae13a57037df0e24d8f56515ee7f81fe5
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 248468e87c8a929646ae7210425ed796bac0f4e364e8e3ab486d8f491384aee7a08b0f9c6e470e3d4c04eeab903c8c91a4b7d45cad76776ab7ea4d7949daffea
         | 
| 7 | 
            +
              data.tar.gz: 9575a6021cef7b3a44791b5ba1d8bb036865a46efb3ef49c6dc08c9b6015dcf2e1412c87887c7bbcd10fc912a702b78dd219418b5ab7e79d366a148274287ec2
         | 
    
        data/Gemfile.lock
    CHANGED
    
    
    
        data/History.txt
    CHANGED
    
    
    
        data/VERSION
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            2.0. | 
| 1 | 
            +
            2.0.9
         | 
    
        data/lib/octobat/credit_note.rb
    CHANGED
    
    | @@ -3,6 +3,19 @@ module Octobat | |
| 3 3 | 
             
                extend Octobat::APIOperations::List
         | 
| 4 4 | 
             
                include Octobat::APIOperations::Create
         | 
| 5 5 | 
             
                include Octobat::APIOperations::Update
         | 
| 6 | 
            +
                
         | 
| 7 | 
            +
                
         | 
| 8 | 
            +
                def self.pdf_export(params = {}, opts={})
         | 
| 9 | 
            +
                  api_key, headers = Util.parse_opts(opts)
         | 
| 10 | 
            +
                  api_key ||= @api_key
         | 
| 11 | 
            +
                  opts[:api_key] = api_key
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                  instance = self.new(nil, opts)
         | 
| 14 | 
            +
             | 
| 15 | 
            +
                  response, api_key = Octobat.request(:post, url + '/pdf_export', api_key, params)
         | 
| 16 | 
            +
                  return true
         | 
| 17 | 
            +
                end
         | 
| 18 | 
            +
                
         | 
| 6 19 |  | 
| 7 20 | 
             
                def send_by_email(email_data = {})
         | 
| 8 21 | 
             
                  response, api_key = Octobat.request(:post, send_url, @api_key, email_data)
         | 
    
        data/lib/octobat/transaction.rb
    CHANGED
    
    | @@ -7,5 +7,17 @@ module Octobat | |
| 7 7 | 
             
                def items(params = {})
         | 
| 8 8 | 
             
                  Item.list(params.merge({ :transaction => id }), @api_key)
         | 
| 9 9 | 
             
                end
         | 
| 10 | 
            +
                
         | 
| 11 | 
            +
                def self.csv_export(params = {}, opts={})
         | 
| 12 | 
            +
                  api_key, headers = Util.parse_opts(opts)
         | 
| 13 | 
            +
                  api_key ||= @api_key
         | 
| 14 | 
            +
                  opts[:api_key] = api_key
         | 
| 15 | 
            +
             | 
| 16 | 
            +
                  instance = self.new(nil, opts)
         | 
| 17 | 
            +
             | 
| 18 | 
            +
                  response, api_key = Octobat.request(:post, url + '/csv_export', api_key, params)
         | 
| 19 | 
            +
                  return true
         | 
| 20 | 
            +
                end
         | 
| 21 | 
            +
                
         | 
| 10 22 | 
             
              end
         | 
| 11 23 | 
             
            end
         | 
    
        data/lib/octobat/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: octobat
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 2.0. | 
| 4 | 
            +
              version: 2.0.9
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Gaultier Laperche
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2017- | 
| 11 | 
            +
            date: 2017-10-02 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: rest-client
         |