bill_forward 1.2015.186 → 1.2015.217
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
|
SHA512:
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
data.tar.gz: 6cee9b9e5c6e248aeee7a7480fd1e072354e668d43a25ed6fe29758d8b22170c55479524dfe0a786a507c99bf3c9753781b5c28b4abc623695e8471abb582436
|
|
4
|
+
metadata.gz: 5aa2778c1841499a2ed5c803e9158f221744f5ea0d27f60cce0d6d5afc4af8267644e7c000e7e1c348d8c2c88487fc054926219ea1ab4d8814ed7792563294a2
|
|
5
5
|
SHA1:
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
data.tar.gz: 89ea27c2853fdc0b7f0d95a5a1d7e3251713818a
|
|
7
|
+
metadata.gz: ca8daa6171b817f9861c67494bccd180f25ce11f
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@ gem install bill_forward
|
|
|
22
22
|
### From RubyGems mirror
|
|
23
23
|
|
|
24
24
|
Add the `bill_forward` gem to your application's Gemfile and run `bundle`:
|
|
25
|
-
```
|
|
25
|
+
```bash
|
|
26
26
|
source 'https://rubygems.org'
|
|
27
27
|
gem 'bill_forward'
|
|
28
28
|
```
|
|
@@ -283,3 +283,21 @@ Run main functional tests + offline tests + situational tests with:
|
|
|
283
283
|
```bash
|
|
284
284
|
rake spec_all
|
|
285
285
|
```
|
|
286
|
+
|
|
287
|
+
### Releasing
|
|
288
|
+
|
|
289
|
+
Bump the version in `lib/bill_forward/version.rb`, with a major version bump if there are breaking changes.
|
|
290
|
+
|
|
291
|
+
Minor revision is determined by [days since start of year](http://www.wolframalpha.com/input/?i=days+since+start+of+year) (rounded down).
|
|
292
|
+
|
|
293
|
+
Build the gemspec locally:
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
gem build bill_forward.gemspec
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Then publish the resulting gem:
|
|
300
|
+
|
|
301
|
+
```bash
|
|
302
|
+
gem publish bill_forward-1.2015.217.gem
|
|
303
|
+
```
|
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
module BillForward
|
|
2
2
|
class PaymentMethod < MutableEntity
|
|
3
3
|
@resource_path = BillForward::ResourcePath.new("payment-methods", "paymentMethod")
|
|
4
|
+
|
|
5
|
+
class << self
|
|
6
|
+
def get_by_link_id(id, query_params = {}, custom_client = nil)
|
|
7
|
+
raise ArgumentError.new("id cannot be nil") if id.nil?
|
|
8
|
+
|
|
9
|
+
endpoint = sprintf('link-id/%s',
|
|
10
|
+
ERB::Util.url_encode(id)
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
self.request_first('get', endpoint, query_params, custom_client)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def get_by_account_id(id, query_params = {}, custom_client = nil)
|
|
17
|
+
raise ArgumentError.new("id cannot be nil") if id.nil?
|
|
18
|
+
|
|
19
|
+
endpoint = sprintf('account/%s',
|
|
20
|
+
ERB::Util.url_encode(id)
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
self.request_many('get', endpoint, query_params, custom_client)
|
|
24
|
+
end
|
|
25
|
+
end
|
|
4
26
|
end
|
|
5
27
|
end
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module BillForward
|
|
2
2
|
class PaymentMethodSubscriptionLink < MutableEntity
|
|
3
|
-
@resource_path = BillForward::ResourcePath.new("payment-method-
|
|
3
|
+
@resource_path = BillForward::ResourcePath.new("payment-method-subscription-links", "PaymentMethodSubscriptionLink")
|
|
4
4
|
end
|
|
5
5
|
end
|
data/lib/bill_forward/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bill_forward
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2015.
|
|
4
|
+
version: 1.2015.217
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BillForward
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-08-06 00:00:00 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rest-client
|