limdesk_api 0.0.4 → 0.0.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9070681b26a4df5685d923bf53e792962e027af4
4
- data.tar.gz: 8bab996874bdc59d44deeceda9f0207dd9948ef6
3
+ metadata.gz: 9b58d9f9d9ce153802a41c857a2c905a74b7c194
4
+ data.tar.gz: 643182b25201d65cc108380e9ad2c6994307f413
5
5
  SHA512:
6
- metadata.gz: 2f0c4314a9a658f6469eb298f15f900aa8130e5a4ed82c6219c7903b6e16f1f591f36d84a9b12596c7cf00590e78209c5cbdd2d6e0cd30110d5c4b6f9b5b4d83
7
- data.tar.gz: f50d8288c3525ba5f39c6b30bd39bae2f8408ea334118c328ccb65d6128985ee328031a2a2f10ca1eb463bdf2eed6b6474e21008562298deaea423944731811c
6
+ metadata.gz: 4ddfa2e3a613b86c1357d92831a5bb70d5342caa6095d12c095bd021ef5e9c8211748dcf46f4e01357dbc00353d60be7b68ce9a817321d0b995e1419573aedd5
7
+ data.tar.gz: 971754ad69cc5362a448bbe31d3b2d17374b2ae8a89e85a3743407b2d5e6baaa97358fb79acdb1476afc91da1d0b8db19a7793c27a9c31c64f7539e7994f07bd
data/README.md CHANGED
@@ -113,6 +113,8 @@ true
113
113
 
114
114
  client3 = LimdeskApi::Client.get_by_email('adam@example.com')
115
115
  client4 = LimdeskApi::Client.get_by_phone('+48897228989')
116
+ client4 = LimdeskApi::Client.get_by_outside_client_id('1234')
117
+ client5 = LimdeskApi::Client.get_by_nippesel('7393792360')
116
118
  ```
117
119
 
118
120
  #### Sales
@@ -46,6 +46,16 @@ module LimdeskApi
46
46
  get_by('get_by_phone', phone)
47
47
  end
48
48
 
49
+ # Gets a Client by nippesel
50
+ # (it's taxid, document_id or other government issued unique id number)
51
+ #
52
+ # @param [String] phone find by phone
53
+ #
54
+ # @return [LimdeskApi::Client]
55
+ def self.get_by_nippesel(nippesel)
56
+ get_by('get_by_nippesel', nippesel)
57
+ end
58
+
49
59
  # Gets a Client by outside_client_id
50
60
  #
51
61
  # @param [String] outside_client_id find by outside_client_id
@@ -1,3 +1,3 @@
1
1
  module LimdeskApi
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: limdesk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grzegorz Siehień
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-07 00:00:00.000000000 Z
11
+ date: 2015-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler