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 +4 -4
- data/lib/moloni_api/client.rb +13 -0
- data/lib/moloni_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cc0888f69d92fa88c0a05fa447f841f29289b2e8ab44ed9a22e446d2a1155b2
|
4
|
+
data.tar.gz: 0f40cc723684575b0659735e85a4793d4abe218dd5d246006fc7f09f9d3c0acb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad88efc407714ef37b5a1e7659d0b868565df5d83f58aea2c456c5cbbb1b85c231fba5962acfa77d13915c14195ddad054a4a92a1483f90a32c11943ba0ac25b
|
7
|
+
data.tar.gz: '0739379b6fe2beb1c62c30316d7827f3bc6b6091da77919223f2717fcc6decd64ab83477cfa1c082b6fc438a279996742992a762a0bc6b059f98c71612096d63'
|
data/lib/moloni_api/client.rb
CHANGED
@@ -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(
|
data/lib/moloni_api/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|