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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b87943ab0d04df1ae2f9dd96e8e6d26d7ce4ff0dbb1bd965baf304fe03260233
4
- data.tar.gz: 0b397cf4c35d31af310ddb381350b9b1d9adec903d928bf0bb1b3b6fb853fa5a
3
+ metadata.gz: 7428c4495d5e03267bbb1de03e2a9dd694d53565c532615a67b25dbf7f9e4f79
4
+ data.tar.gz: 9bf35883b051da324c613a5b356d37f97792ff309f8494b04fb5aeb8181d880c
5
5
  SHA512:
6
- metadata.gz: 6d452968fe53b111c0d4b3e5a6d0e73f78e3835579cb1f0b31c620cc9baa45d8b36ae8c241e36fe2b7945af494eca1455528f05da70a4151c116c30c5941ac97
7
- data.tar.gz: 68303ce7f410ce21d61e6cdc457a3308f572744f729d0c55f0bbe8cc4cac0b6a0dd6b5642ad222e35f5713bcfbd4ab390432d43e0f3b358754eae67dc116e468
6
+ metadata.gz: 2cce5588a6522318014f0e41615be085eeda2331e447eb8278a3cd4d332b6b5e773265508ac43f64a67ea70ba3b79f4a496fee5c462077c887614fa838cfcb85
7
+ data.tar.gz: c8c8335d4bdc806a46626c9cd0f87bb15a0114052ac05acb863825797a664fb641370842d425b8a480d518e0c588766722a3b3b6ec89fd06ffae127aa7b46f95
@@ -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 = [
@@ -1,3 +1,3 @@
1
1
  module Credova
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
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
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-08 00:00:00.000000000 Z
11
+ date: 2019-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler