credova 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/credova/application.rb +5 -5
- data/lib/credova/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: 7428c4495d5e03267bbb1de03e2a9dd694d53565c532615a67b25dbf7f9e4f79
|
4
|
+
data.tar.gz: 9bf35883b051da324c613a5b356d37f97792ff309f8494b04fb5aeb8181d880c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cce5588a6522318014f0e41615be085eeda2331e447eb8278a3cd4d332b6b5e773265508ac43f64a67ea70ba3b79f4a496fee5c462077c887614fa838cfcb85
|
7
|
+
data.tar.gz: c8c8335d4bdc806a46626c9cd0f87bb15a0114052ac05acb863825797a664fb641370842d425b8a480d518e0c588766722a3b3b6ec89fd06ffae127aa7b46f95
|
data/lib/credova/application.rb
CHANGED
@@ -30,7 +30,7 @@ module Credova
|
|
30
30
|
@client = client
|
31
31
|
end
|
32
32
|
|
33
|
-
def create(application_data, callback_url = nil)
|
33
|
+
def self.create(application_data, callback_url = nil)
|
34
34
|
requires!(application_data, CREATE_ATTRS[:required])
|
35
35
|
|
36
36
|
endpoint = ENDPOINTS[:create]
|
@@ -46,7 +46,7 @@ module Credova
|
|
46
46
|
post_request(endpoint, application_data, headers)
|
47
47
|
end
|
48
48
|
|
49
|
-
def check_status_by_public_id(public_id)
|
49
|
+
def self.check_status_by_public_id(public_id)
|
50
50
|
endpoint = ENDPOINTS[:check_status_by_public_id] % public_id
|
51
51
|
|
52
52
|
get_request(endpoint, auth_header(@client.access_token))
|
@@ -58,7 +58,7 @@ module Credova
|
|
58
58
|
get_request(endpoint, auth_header(@client.access_token))
|
59
59
|
end
|
60
60
|
|
61
|
-
def set_delivery_information(public_id, delivery_data)
|
61
|
+
def self.set_delivery_information(public_id, delivery_data)
|
62
62
|
requires!(delivery_data, SET_DELIVERY_INFORMATION_ATTRS[:required])
|
63
63
|
|
64
64
|
endpoint = ENDPOINTS[:set_delivery_information] % public_id
|
@@ -72,13 +72,13 @@ module Credova
|
|
72
72
|
post_request(endpoint, delivery_data, headers)
|
73
73
|
end
|
74
74
|
|
75
|
-
def request_return(public_id)
|
75
|
+
def self.request_return(public_id)
|
76
76
|
endpoint = ENDPOINTS[:request_return] % public_id
|
77
77
|
|
78
78
|
post_request(endpoint, {}, auth_header(@client.access_token))
|
79
79
|
end
|
80
80
|
|
81
|
-
def upload_invoice(public_id, invoice_url)
|
81
|
+
def self.upload_invoice(public_id, invoice_url)
|
82
82
|
endpoint = ENDPOINTS[:upload_invoice] % public_id
|
83
83
|
data = { form_data: ['file=@', invoice_url, '; type=application/', extract_file_extension(invoice_url)].join }
|
84
84
|
headers = [
|
data/lib/credova/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credova
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey Dill
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|