stbaldricks 6.4.0.alpha.5 → 6.4.0.alpha.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a854bd37c43c30a4084d798cc490d83cedd9701e104e0be0fceee2617b67bb4a
|
4
|
+
data.tar.gz: 45ad5f0445d5660aa36868bc58c8f49508c77e8b52b202a37266c1e4e41b6623
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b5f3a7b827ab23d89e63f21edf6638240bd36a74b95df8171299ab14605d54e7df9ad6843fa55802247b370e853da5858a188bdaee7b991a3950d5c40007c65
|
7
|
+
data.tar.gz: 9e14f1f308fe41877e36fde88006c4c0f6c09f8646505ee583c3654b8872d7ff691623587d8dceea9dde06027fb300fc0b4f1214c7b45a4e6a9681d889493c17
|
@@ -13,6 +13,28 @@ module SBF
|
|
13
13
|
|
14
14
|
SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
|
15
15
|
end
|
16
|
+
|
17
|
+
def change_billing_day(data)
|
18
|
+
response = SBF::Client::Api::Request.post_request("#{base_uri}/change_billing_day", data)
|
19
|
+
|
20
|
+
unless ok?(response)
|
21
|
+
parsed_response_body = JSON.parse(response.body).symbolize!
|
22
|
+
error = SBF::Client::ErrorEntity.new(parsed_response_body)
|
23
|
+
end
|
24
|
+
|
25
|
+
SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
|
26
|
+
end
|
27
|
+
|
28
|
+
def change_amount(data)
|
29
|
+
response = SBF::Client::Api::Request.post_request("#{base_uri}/change_amount", data)
|
30
|
+
|
31
|
+
unless ok?(response)
|
32
|
+
parsed_response_body = JSON.parse(response.body).symbolize!
|
33
|
+
error = SBF::Client::ErrorEntity.new(parsed_response_body)
|
34
|
+
end
|
35
|
+
|
36
|
+
SBF::Client::Api::Response.new(http_code: response.code, data: response, error: error)
|
37
|
+
end
|
16
38
|
end
|
17
39
|
end
|
18
40
|
end
|
data/lib/stbaldricks/version.rb
CHANGED