atech-billy 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ require 'billy/invoice'
12
12
 
13
13
  module Billy
14
14
 
15
- VERSION = '1.0.8'
15
+ VERSION = '1.0.9'
16
16
 
17
17
  class << self
18
18
 
@@ -1,6 +1,10 @@
1
1
  module Billy
2
2
  class Invoice < BaseModel
3
3
 
4
+ def self.find_for_identity(ati_key)
5
+ Billy::Request.request('invoices/list_for_identity', :identity => ati_key).map { |p| self.new(p) }
6
+ end
7
+
4
8
  def add_line(params)
5
9
  attributes = Billy::Request.request('invoices/add_line', :service => @attributes['service_id'], :invoice => @attributes['number'], :line => params)
6
10
  attributes.is_a?(Hash) ? @attributes = attributes : false
@@ -60,8 +60,8 @@ module Billy
60
60
  attributes.is_a?(Hash) ? self.new(attributes) : nil
61
61
  end
62
62
 
63
- def self.identity(ati_key)
64
- Billy::Request.request('services/identity', :atech_identity_key => ati_key).map { |p| self.new(p) }
63
+ def self.find_for_identity(ati_key)
64
+ Billy::Request.request('services/list_for_identity', :atech_identity_key => ati_key).map { |p| self.new(p) }
65
65
  end
66
66
 
67
67
  def self.create(atech_identity, service)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atech-billy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-07 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: basic_ssl
16
- requirement: &70362273268520 !ruby/object:Gem::Requirement
16
+ requirement: &70226697146980 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70362273268520
24
+ version_requirements: *70226697146980
25
25
  description:
26
26
  email: adam@atechmedia.com
27
27
  executables: []