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
- metadata.gz: bcb3c0a8b2ab8282898254511825062da03f3d7111419c87d210b3f2650a4a0a9edcf197482bea4942c4115262aa064cf919fd3aa7f576021d4f5931b9aa9f89
4
- data.tar.gz: d364d04d13a95188a0c3ffddea745cfb84a49f4f0f6afb3b636ece6b52a4609c21ee5c2359cbfd22193b6fd425cebbe18a910012b69ab9339f80aaa5e3064ca2
3
+ data.tar.gz: 6cee9b9e5c6e248aeee7a7480fd1e072354e668d43a25ed6fe29758d8b22170c55479524dfe0a786a507c99bf3c9753781b5c28b4abc623695e8471abb582436
4
+ metadata.gz: 5aa2778c1841499a2ed5c803e9158f221744f5ea0d27f60cce0d6d5afc4af8267644e7c000e7e1c348d8c2c88487fc054926219ea1ab4d8814ed7792563294a2
5
5
  SHA1:
6
- metadata.gz: 57c81fad0beeda2549ebc4d6fd6f21c3aefb4a26
7
- data.tar.gz: 7f47a2f6d9e233013b76ff2c0130b440fddd5bc8
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
- ```ruby
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
+ ```
@@ -16,7 +16,7 @@ module BillForward
16
16
  ERB::Util.url_encode(type)
17
17
  )
18
18
 
19
- self.request_many('get', endpoint, query_params, custom_client)
19
+ self.request_first('get', endpoint, query_params, custom_client)
20
20
  end
21
21
  end
22
22
  end
@@ -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-subcription-links", "PaymentMethodSubscriptionLink")
3
+ @resource_path = BillForward::ResourcePath.new("payment-method-subscription-links", "PaymentMethodSubscriptionLink")
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
1
  module BillForward
2
2
  # in an rspec run, the gemspec and bill_forward.rb loader will both visit this
3
- VERSION = "1.2015.186" unless const_defined?(:VERSION)
3
+ VERSION = "1.2015.217" unless const_defined?(:VERSION)
4
4
  end
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.186
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-07-06 00:00:00 Z
12
+ date: 2015-08-06 00:00:00 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client