stbaldricks 6.4.0.alpha.5 → 6.4.0.alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1170429533956659689f5409e7d4da3d52d85737b32449c36c221657a101b2c6
4
- data.tar.gz: 4e59fbe8b9c67686f26fb54a14f1fcd4137e1c08dcb4ed956f9d9d36864803ed
3
+ metadata.gz: a854bd37c43c30a4084d798cc490d83cedd9701e104e0be0fceee2617b67bb4a
4
+ data.tar.gz: 45ad5f0445d5660aa36868bc58c8f49508c77e8b52b202a37266c1e4e41b6623
5
5
  SHA512:
6
- metadata.gz: 398b9d73133c3c2ff0089ecf0ebe2ee19a548fb53575bc8cfe71a5979d25cd4f47180a8d28623f4747f7687966d9ac97cb4046f0dc9338f7799140fba20a4fd0
7
- data.tar.gz: 4eb3ecf0e2b94421581187e95f00a246b514497f2bd2d4612aaeca9b05a4054fe8e9ade52212395a81b5d016d3f746ead86655e6e33e271e85354aa696a46fbf
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
@@ -11,6 +11,7 @@ module SBF
11
11
  MONEY_ORDER = 'money_order'
12
12
  WIRE_TRANSFER = 'wire_transfer'
13
13
  PAYPAL = 'paypal'
14
+ STORED = 'stored'
14
15
  end
15
16
  end
16
17
  end
@@ -23,6 +23,8 @@ module SBF
23
23
  blacklist_action :aggregate
24
24
  blacklist_action :delete
25
25
  action :sync
26
+ action :change_billing_day
27
+ action :change_amount
26
28
 
27
29
  attr_accessor :id
28
30
 
@@ -1,5 +1,5 @@
1
1
  module SBF
2
2
  module Client
3
- VERSION = '6.4.0.alpha.5'
3
+ VERSION = '6.4.0.alpha.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stbaldricks
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.0.alpha.5
4
+ version: 6.4.0.alpha.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Firespring