recurly 2.17.1 → 2.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -8
- data/lib/recurly/account.rb +3 -0
- data/lib/recurly/api.rb +1 -1
- data/lib/recurly/api/errors.rb +2 -0
- data/lib/recurly/credit_payment.rb +4 -0
- data/lib/recurly/gift_card.rb +3 -0
- data/lib/recurly/invoice.rb +4 -0
- data/lib/recurly/resource/pager.rb +0 -1
- data/lib/recurly/shipping_address.rb +4 -0
- data/lib/recurly/subscription.rb +2 -0
- data/lib/recurly/transaction.rb +13 -0
- data/lib/recurly/usage.rb +4 -0
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly/xml.rb +2 -0
- data/lib/recurly/xml/nokogiri.rb +3 -1
- data/lib/recurly/xml/rexml.rb +2 -0
- metadata +42 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4752c14e472ced10529d8bd2b493f2e5c03a8a9a9e33db8ca91d3a57fcdfa52c
|
4
|
+
data.tar.gz: 6bdbd5104e69776143a28399bdb39b4eb937ddaf346569dce5fac8f6b968f828
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c7290821641b06e6abef950254bef9a0cc923d5946283b30490e04e15d262d3ba3a70cf7262edaf8a56ee663541f3cf651bb902d89d7a5a19099c132760b1cd
|
7
|
+
data.tar.gz: 733eb8f8276930da52a17bd7db9257ba4254da05e34246273bf7b353cb99aa748de24fde6515d66f59d3d53734568b49cb476754987299333edb928f9ad4d391
|
data/README.md
CHANGED
@@ -22,20 +22,15 @@ speed boost) if it's available and loaded in your app's environment.
|
|
22
22
|
|
23
23
|
## Configuration
|
24
24
|
|
25
|
-
|
26
|
-
command:
|
27
|
-
|
28
|
-
``` bash
|
29
|
-
$ rails g recurly:config
|
30
|
-
```
|
31
|
-
|
32
|
-
If you're not using Rails, use the following template:
|
25
|
+
Use the following template to configure Recurly:
|
33
26
|
|
34
27
|
``` ruby
|
35
28
|
Recurly.subdomain = ENV['RECURLY_SUBDOMAIN']
|
36
29
|
Recurly.api_key = ENV['RECURLY_API_KEY']
|
37
30
|
```
|
38
31
|
|
32
|
+
> Note: In Rails, these would be added in an initializer `config/initializers/recurly.rb`.
|
33
|
+
|
39
34
|
Configure the client library with
|
40
35
|
[your API credentials](https://app.recurly.com/go/developer/api_access).
|
41
36
|
|
data/lib/recurly/account.rb
CHANGED
@@ -64,6 +64,8 @@ module Recurly
|
|
64
64
|
first_name
|
65
65
|
last_name
|
66
66
|
company_name
|
67
|
+
company
|
68
|
+
phone
|
67
69
|
accept_language
|
68
70
|
hosted_login_token
|
69
71
|
vat_number
|
@@ -83,6 +85,7 @@ module Recurly
|
|
83
85
|
preferred_locale
|
84
86
|
)
|
85
87
|
alias to_param account_code
|
88
|
+
alias company_name company
|
86
89
|
|
87
90
|
# Creates an invoice from the pending charges on the account.
|
88
91
|
# Raises an error if it fails.
|
data/lib/recurly/api.rb
CHANGED
data/lib/recurly/api/errors.rb
CHANGED
@@ -12,10 +12,14 @@ module Recurly
|
|
12
12
|
define_attribute_methods %w(
|
13
13
|
action
|
14
14
|
amount_in_cents
|
15
|
+
applied_to_invoice_number
|
15
16
|
currency
|
16
17
|
created_at
|
17
18
|
original_credit_payment
|
19
|
+
original_credit_payment_uuid
|
20
|
+
original_invoice_number
|
18
21
|
refund_transaction
|
22
|
+
refund_transaction_uuid
|
19
23
|
updated_at
|
20
24
|
uuid
|
21
25
|
voided_at
|
data/lib/recurly/gift_card.rb
CHANGED
data/lib/recurly/invoice.rb
CHANGED
@@ -88,7 +88,6 @@ module Recurly
|
|
88
88
|
# @raise [API::NotModified] If the <tt>:etag</tt> option is set and
|
89
89
|
# matches the server's.
|
90
90
|
def initialize resource_class, options = {}
|
91
|
-
options[:cursor] &&= options[:cursor].to_i
|
92
91
|
@parent = options.delete :parent
|
93
92
|
@uri = options.delete :uri
|
94
93
|
@etag = options.delete :etag
|
data/lib/recurly/subscription.rb
CHANGED
data/lib/recurly/transaction.rb
CHANGED
@@ -40,6 +40,7 @@ module Recurly
|
|
40
40
|
cvv_result
|
41
41
|
avs_result
|
42
42
|
avs_result_street
|
43
|
+
avs_result_postal
|
43
44
|
created_at
|
44
45
|
updated_at
|
45
46
|
details
|
@@ -57,6 +58,18 @@ module Recurly
|
|
57
58
|
origin
|
58
59
|
message
|
59
60
|
approval_code
|
61
|
+
date
|
62
|
+
gateway
|
63
|
+
gateway_error_codes
|
64
|
+
invoice_id
|
65
|
+
invoice_number
|
66
|
+
invoice_number_prefix
|
67
|
+
failure_type
|
68
|
+
billing_phone
|
69
|
+
billing_postal
|
70
|
+
billing_country
|
71
|
+
subscription_id
|
72
|
+
manually_entered
|
60
73
|
)
|
61
74
|
alias to_param uuid
|
62
75
|
alias fraud_info fraud
|
data/lib/recurly/usage.rb
CHANGED
data/lib/recurly/version.rb
CHANGED
data/lib/recurly/xml.rb
CHANGED
data/lib/recurly/xml/nokogiri.rb
CHANGED
data/lib/recurly/xml/rexml.rb
CHANGED
metadata
CHANGED
@@ -1,20 +1,23 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.17.
|
4
|
+
version: 2.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.8'
|
20
|
+
- - ">="
|
18
21
|
- !ruby/object:Gem::Version
|
19
22
|
version: 1.8.2
|
20
23
|
type: :development
|
@@ -22,6 +25,9 @@ dependencies:
|
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.8'
|
30
|
+
- - ">="
|
25
31
|
- !ruby/object:Gem::Version
|
26
32
|
version: 1.8.2
|
27
33
|
- !ruby/object:Gem::Dependency
|
@@ -43,6 +49,9 @@ dependencies:
|
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '5.8'
|
54
|
+
- - ">="
|
46
55
|
- !ruby/object:Gem::Version
|
47
56
|
version: 5.8.0
|
48
57
|
type: :development
|
@@ -50,6 +59,9 @@ dependencies:
|
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
51
60
|
requirements:
|
52
61
|
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '5.8'
|
64
|
+
- - ">="
|
53
65
|
- !ruby/object:Gem::Version
|
54
66
|
version: 5.8.0
|
55
67
|
- !ruby/object:Gem::Dependency
|
@@ -57,6 +69,9 @@ dependencies:
|
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
58
70
|
requirements:
|
59
71
|
- - "~>"
|
72
|
+
- !ruby/object:Gem::Version
|
73
|
+
version: '2.4'
|
74
|
+
- - ">="
|
60
75
|
- !ruby/object:Gem::Version
|
61
76
|
version: 2.4.0
|
62
77
|
type: :development
|
@@ -64,6 +79,9 @@ dependencies:
|
|
64
79
|
version_requirements: !ruby/object:Gem::Requirement
|
65
80
|
requirements:
|
66
81
|
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: '2.4'
|
84
|
+
- - ">="
|
67
85
|
- !ruby/object:Gem::Version
|
68
86
|
version: 2.4.0
|
69
87
|
- !ruby/object:Gem::Dependency
|
@@ -71,6 +89,9 @@ dependencies:
|
|
71
89
|
requirement: !ruby/object:Gem::Requirement
|
72
90
|
requirements:
|
73
91
|
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '2.3'
|
94
|
+
- - ">="
|
74
95
|
- !ruby/object:Gem::Version
|
75
96
|
version: 2.3.2
|
76
97
|
type: :development
|
@@ -78,20 +99,23 @@ dependencies:
|
|
78
99
|
version_requirements: !ruby/object:Gem::Requirement
|
79
100
|
requirements:
|
80
101
|
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.3'
|
104
|
+
- - ">="
|
81
105
|
- !ruby/object:Gem::Version
|
82
106
|
version: 2.3.2
|
83
107
|
- !ruby/object:Gem::Dependency
|
84
108
|
name: simplecov
|
85
109
|
requirement: !ruby/object:Gem::Requirement
|
86
110
|
requirements:
|
87
|
-
- - "
|
111
|
+
- - "~>"
|
88
112
|
- !ruby/object:Gem::Version
|
89
113
|
version: '0'
|
90
114
|
type: :development
|
91
115
|
prerelease: false
|
92
116
|
version_requirements: !ruby/object:Gem::Requirement
|
93
117
|
requirements:
|
94
|
-
- - "
|
118
|
+
- - "~>"
|
95
119
|
- !ruby/object:Gem::Version
|
96
120
|
version: '0'
|
97
121
|
- !ruby/object:Gem::Dependency
|
@@ -112,42 +136,48 @@ dependencies:
|
|
112
136
|
name: redcarpet
|
113
137
|
requirement: !ruby/object:Gem::Requirement
|
114
138
|
requirements:
|
139
|
+
- - "~>"
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '3.4'
|
115
142
|
- - ">="
|
116
143
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
144
|
+
version: 3.4.0
|
118
145
|
type: :development
|
119
146
|
prerelease: false
|
120
147
|
version_requirements: !ruby/object:Gem::Requirement
|
121
148
|
requirements:
|
149
|
+
- - "~>"
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: '3.4'
|
122
152
|
- - ">="
|
123
153
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
154
|
+
version: 3.4.0
|
125
155
|
- !ruby/object:Gem::Dependency
|
126
156
|
name: racc
|
127
157
|
requirement: !ruby/object:Gem::Requirement
|
128
158
|
requirements:
|
129
|
-
- - "
|
159
|
+
- - "~>"
|
130
160
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
161
|
+
version: '1'
|
132
162
|
type: :development
|
133
163
|
prerelease: false
|
134
164
|
version_requirements: !ruby/object:Gem::Requirement
|
135
165
|
requirements:
|
136
|
-
- - "
|
166
|
+
- - "~>"
|
137
167
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
168
|
+
version: '1'
|
139
169
|
- !ruby/object:Gem::Dependency
|
140
170
|
name: pry
|
141
171
|
requirement: !ruby/object:Gem::Requirement
|
142
172
|
requirements:
|
143
|
-
- - "
|
173
|
+
- - "~>"
|
144
174
|
- !ruby/object:Gem::Version
|
145
175
|
version: '0'
|
146
176
|
type: :development
|
147
177
|
prerelease: false
|
148
178
|
version_requirements: !ruby/object:Gem::Requirement
|
149
179
|
requirements:
|
150
|
-
- - "
|
180
|
+
- - "~>"
|
151
181
|
- !ruby/object:Gem::Version
|
152
182
|
version: '0'
|
153
183
|
description: 'An API client library for Recurly: https://recurly.com'
|