recurly 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d93db27c0e5a60f14716ebcc41ed9faed1bb1818
4
- data.tar.gz: 0bfa54bc52c9f79d3a9abf3016ebb56f59428fd6
3
+ metadata.gz: 9129e582c2f343662f42f02a850f10a2c8171aa9
4
+ data.tar.gz: a038472ed54dbe931172bbb2a8cc562492e0cf1f
5
5
  SHA512:
6
- metadata.gz: a2a086f1639397b31b532d25b317e578ab1bcdd25c361f169d8a239f84c1e9d56fe22581aa7212143417b84972f4bc378b9a23eb096dd88874b2608a7ed4113c
7
- data.tar.gz: 997946b21e1068afd78c96fcbd4b43e36c940e67d93b9da0d7360ecb7b6393bb1a144465cfd1a07036b62d20f9060f48e59e9c3f99f477dcc15002b00400460e
6
+ metadata.gz: 44df4de6338077fcf0e7773fd75d41d927722f46a38415475d47217e2e0be79dfdeb27b67d401a6fb88a3a395861eb5db7d22fc25000004ac589c1352f7f85d4
7
+ data.tar.gz: e57590648287086676edf3e884ceeaca561483b65451b3da9eca251d9efddad85c0aae814724abf710ad3b8cf0a84dcad970780f3c626cc54e0589734b7b5d0b
data/README.md CHANGED
@@ -12,7 +12,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
12
12
  [Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
13
13
 
14
14
  ``` ruby
15
- gem 'recurly', '~> 2.4.4'
15
+ gem 'recurly', '~> 2.4.5'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -38,8 +38,8 @@ Recurly.api_key = ENV['RECURLY_API_KEY']
38
38
  Configure the client library with
39
39
  [your API credentials](https://app.recurly.com/go/developer/api_access).
40
40
 
41
- `RECURLY_SUBDOMAIN` should contain subdomain for your recurly account
42
- `RECURLY_API_KEY` is your "Private API Key" which can be found under "API Credentials" on the `api_access` admin page
41
+ * `RECURLY_SUBDOMAIN` should contain subdomain for your recurly account.
42
+ * `RECURLY_API_KEY` is your "Private API Key" which can be found under "API Credentials" on the `api_access` admin page.
43
43
 
44
44
  The default currency is USD. To override with a different code:
45
45
 
@@ -20,6 +20,9 @@ module Recurly
20
20
  redeem_by_date
21
21
  single_use
22
22
  applies_for_months
23
+ duration
24
+ temporal_unit
25
+ temporal_amount
23
26
  max_redemptions
24
27
  applies_to_all_plans
25
28
  created_at
@@ -78,6 +78,12 @@ module Recurly
78
78
  reload follow_link :mark_failed
79
79
  true
80
80
  end
81
+
82
+ def enter_offline_payment(attrs={})
83
+ Transaction.from_response API.post("#{uri}/transactions", attrs.empty? ? nil : Transaction.to_xml(attrs))
84
+ rescue Recurly::API::UnprocessableEntity => e
85
+ raise Invalid, e.message
86
+ end
81
87
 
82
88
  def pdf
83
89
  self.class.find to_param, :format => 'pdf'
@@ -41,9 +41,19 @@ module Recurly
41
41
  transaction_error
42
42
  source
43
43
  ip_address
44
+ collected_at
45
+ description
46
+ tax_exempt
47
+ tax_code
48
+ accounting_code
44
49
  )
45
50
  alias to_param uuid
46
51
 
52
+ def self.to_xml(attrs)
53
+ transaction = new attrs
54
+ transaction.to_xml
55
+ end
56
+
47
57
  # @return ["credit", "charge", nil] The type of transaction.
48
58
  attr_reader :type
49
59
 
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 4
5
- PATCH = 4
5
+ PATCH = 5
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-26 00:00:00.000000000 Z
11
+ date: 2015-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.4.6
121
+ rubygems_version: 2.2.2
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Recurly API Client