moloni_api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e69b155c0a94bb39b79a4e142a5deaf641345aab30e7f0e19ad92a5e064f15bb
4
- data.tar.gz: d3f7a249753d6f3d8ef80ca7b6360728727e40a3699310db333c4488781e123f
3
+ metadata.gz: 2cc0888f69d92fa88c0a05fa447f841f29289b2e8ab44ed9a22e446d2a1155b2
4
+ data.tar.gz: 0f40cc723684575b0659735e85a4793d4abe218dd5d246006fc7f09f9d3c0acb
5
5
  SHA512:
6
- metadata.gz: c54055bb484de6fd2bd56143a742a7419b7050b49a8cf4ffb21b3b3b88450551c975f5d49d1f49728d234b636bd9dc4344a9ee326b5a45aef65545256d36b5e3
7
- data.tar.gz: ef1d0def451c722d60385cf6ac38333505a353f352ac156bb7fa72b72249ab74facd0d50cb22703e3813d9f69a66552bff19dcd053e0a50a54828f3b46e7e7b1
6
+ metadata.gz: ad88efc407714ef37b5a1e7659d0b868565df5d83f58aea2c456c5cbbb1b85c231fba5962acfa77d13915c14195ddad054a4a92a1483f90a32c11943ba0ac25b
7
+ data.tar.gz: '0739379b6fe2beb1c62c30316d7827f3bc6b6091da77919223f2717fcc6decd64ab83477cfa1c082b6fc438a279996742992a762a0bc6b059f98c71612096d63'
@@ -131,6 +131,19 @@ module MoloniApi
131
131
  process_response(response)
132
132
  end
133
133
 
134
+ # customers/getByNumber/
135
+ def customers_getByNumber(company_id, customer_number)
136
+ response = request(
137
+ http_method: :post,
138
+ endpoint: 'customers/getByNumber/',
139
+ params: {
140
+ company_id: company_id,
141
+ number: customer_number,
142
+ }
143
+ )
144
+ process_response(response)
145
+ end
146
+
134
147
  # customers/getAll/
135
148
  def customers_getAll(company_id)
136
149
  response = request(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MoloniApi
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moloni_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dinis
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-10 00:00:00.000000000 Z
11
+ date: 2022-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday