recurly 2.4.4 → 2.4.5
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 +4 -4
- data/README.md +3 -3
- data/lib/recurly/coupon.rb +3 -0
- data/lib/recurly/invoice.rb +6 -0
- data/lib/recurly/transaction.rb +10 -0
- data/lib/recurly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9129e582c2f343662f42f02a850f10a2c8171aa9
|
|
4
|
+
data.tar.gz: a038472ed54dbe931172bbb2a8cc562492e0cf1f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
|
data/lib/recurly/coupon.rb
CHANGED
data/lib/recurly/invoice.rb
CHANGED
|
@@ -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'
|
data/lib/recurly/transaction.rb
CHANGED
|
@@ -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
|
|
data/lib/recurly/version.rb
CHANGED
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
|
+
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-
|
|
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.
|
|
121
|
+
rubygems_version: 2.2.2
|
|
122
122
|
signing_key:
|
|
123
123
|
specification_version: 4
|
|
124
124
|
summary: Recurly API Client
|