recurly 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.bumpversion.cfg +1 -1
- data/.changelog_config.yaml +11 -0
- data/CHANGELOG.md +23 -402
- data/GETTING_STARTED.md +1 -1
- data/lib/recurly/client.rb +4 -2
- data/lib/recurly/errors.rb +1 -0
- data/lib/recurly/errors/network_errors.rb +7 -0
- data/lib/recurly/requests/add_on_create.rb +2 -2
- data/lib/recurly/requests/add_on_update.rb +2 -2
- data/lib/recurly/requests/billing_info_create.rb +4 -0
- data/lib/recurly/requests/subscription_purchase.rb +1 -1
- data/lib/recurly/requests/tier.rb +5 -1
- data/lib/recurly/resources/billing_info.rb +4 -0
- data/lib/recurly/resources/tier.rb +5 -1
- data/lib/recurly/resources/transaction.rb +4 -0
- data/lib/recurly/version.rb +1 -1
- data/openapi/api.yaml +37 -16
- data/scripts/prepare-release +43 -29
- data/scripts/release +5 -20
- metadata +8 -9
- data/.github_changelog_generator +0 -8
- data/scripts/bump +0 -11
- data/scripts/changelog +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2adf7d0324ed6912629d15da3d6608a9c3fdd2ae6dcbd16a1e9eba631a6b368
|
4
|
+
data.tar.gz: d8fb183f89523500b7ae18c2b91ccf4c4c42ef19b29bd1be14e4a40413d15166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f60fa3295fc535e261809f5b0f53d61d635d0b8735a18750d0d45110cd66ec3cb7a000040b2d43ce9e125a2de26f028390d3041f1048df0a9c1f6a18fa40bd2
|
7
|
+
data.tar.gz: b17532dfb8672f2543ce664bfdfffb597918ff565813def5b8af30d4fc9a0c926a6b29ca2db89805670227beeefdeb628817067bab67f0576dff24dcc669692b
|
data/.bumpversion.cfg
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,36 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.1.0](https://github.com/recurly/recurly-client-ruby/tree/4.1.0) (2021-04-14)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.0.1...4.1.0)
|
6
|
+
|
7
|
+
|
8
|
+
**Merged Pull Requests**
|
9
|
+
|
10
|
+
- Generated Latest Changes for v2021-02-25 (Backup Payment Method) [#691](https://github.com/recurly/recurly-client-ruby/pull/691) ([recurly-integrations](https://github.com/recurly-integrations))
|
11
|
+
- Generated Latest Changes for v2021-02-25 [#687](https://github.com/recurly/recurly-client-ruby/pull/687) ([recurly-integrations](https://github.com/recurly-integrations))
|
12
|
+
- Restoring NetworkError and it's derivatives [#685](https://github.com/recurly/recurly-client-ruby/pull/685) ([douglasmiller](https://github.com/douglasmiller))
|
13
|
+
- Generated Latest Changes for v2021-02-25 (Usage Percentage on Tiers) [#683](https://github.com/recurly/recurly-client-ruby/pull/683) ([recurly-integrations](https://github.com/recurly-integrations))
|
14
|
+
- Fixes TypeError caused by attempts to Base64 encode nil @api_key values [#672](https://github.com/recurly/recurly-client-ruby/pull/672) ([alexfulsome](https://github.com/alexfulsome))
|
15
|
+
|
16
|
+
|
17
|
+
|
3
18
|
## [4.0.1](https://github.com/recurly/recurly-client-ruby/tree/4.0.1) (2021-03-19)
|
4
19
|
|
5
20
|
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/4.0.0...4.0.1)
|
6
21
|
|
7
|
-
**Merged pull requests:**
|
8
22
|
|
9
|
-
|
10
|
-
|
11
|
-
-
|
12
|
-
-
|
13
|
-
-
|
23
|
+
**Merged Pull Requests**
|
24
|
+
|
25
|
+
- Release 4.0.1 [#682](https://github.com/recurly/recurly-client-ruby/pull/682) ([douglasmiller](https://github.com/douglasmiller))
|
26
|
+
- More ruby 3.0 [#680](https://github.com/recurly/recurly-client-ruby/pull/680) ([douglasmiller](https://github.com/douglasmiller))
|
27
|
+
- Generated Latest Changes for v2021-02-25 [#678](https://github.com/recurly/recurly-client-ruby/pull/678) ([recurly-integrations](https://github.com/recurly-integrations))
|
28
|
+
- Sync updates not ported from 3.x client [#671](https://github.com/recurly/recurly-client-ruby/pull/671) ([douglasmiller](https://github.com/douglasmiller))
|
29
|
+
|
30
|
+
|
14
31
|
|
15
32
|
## [4.0.0](https://github.com/recurly/recurly-client-ruby/tree/4.0.0) (2021-03-01)
|
16
33
|
|
17
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.18.1...4.0.0)
|
18
34
|
|
19
35
|
# Major Version Release
|
20
36
|
|
@@ -82,399 +98,4 @@ All changes to the core API are documented in the [Developer Portal changelog](h
|
|
82
98
|
accounts = @client.list_accounts(options)
|
83
99
|
```
|
84
100
|
|
85
|
-
**Implemented enhancements:**
|
86
|
-
|
87
|
-
- Remove site\_id and subdomain from client initializer [\#624](https://github.com/recurly/recurly-client-ruby/pull/624) ([joannasese](https://github.com/joannasese))
|
88
|
-
|
89
|
-
**Fixed bugs:**
|
90
|
-
|
91
|
-
- Every method is returning wrong number of arguments [\#664](https://github.com/recurly/recurly-client-ruby/issues/664)
|
92
|
-
|
93
|
-
**Merged pull requests:**
|
94
|
-
|
95
|
-
- Release 4.0.0 [\#669](https://github.com/recurly/recurly-client-ruby/pull/669) ([douglasmiller](https://github.com/douglasmiller))
|
96
|
-
- Updating changelog script and changelog generator config for 4.x release [\#663](https://github.com/recurly/recurly-client-ruby/pull/663) ([douglasmiller](https://github.com/douglasmiller))
|
97
|
-
- Removing unused method 'set\_site\_id' [\#627](https://github.com/recurly/recurly-client-ruby/pull/627) ([douglasmiller](https://github.com/douglasmiller))
|
98
|
-
- Updating 4.x client to expect query string params as \['params'\] [\#619](https://github.com/recurly/recurly-client-ruby/pull/619) ([douglasmiller](https://github.com/douglasmiller))
|
99
|
-
- Updating error mapping based on status code [\#616](https://github.com/recurly/recurly-client-ruby/pull/616) ([douglasmiller](https://github.com/douglasmiller))
|
100
|
-
|
101
|
-
## [3.18.1](https://github.com/recurly/recurly-client-ruby/tree/3.18.1) (2021-02-22)
|
102
|
-
|
103
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.18.0...3.18.1)
|
104
|
-
|
105
|
-
**Fixed bugs:**
|
106
|
-
|
107
|
-
- Fixing issues with ruby 3.0 [\#665](https://github.com/recurly/recurly-client-ruby/pull/665) ([douglasmiller](https://github.com/douglasmiller))
|
108
|
-
|
109
|
-
**Merged pull requests:**
|
110
|
-
|
111
|
-
- Release 3.18.1 [\#666](https://github.com/recurly/recurly-client-ruby/pull/666) ([douglasmiller](https://github.com/douglasmiller))
|
112
|
-
|
113
|
-
## [3.18.0](https://github.com/recurly/recurly-client-ruby/tree/3.18.0) (2021-01-22)
|
114
|
-
|
115
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.17.0...3.18.0)
|
116
|
-
|
117
|
-
**Implemented enhancements:**
|
118
|
-
|
119
|
-
- Latest Changes for 2019-10-10 [\#660](https://github.com/recurly/recurly-client-ruby/pull/660) ([douglasmiller](https://github.com/douglasmiller))
|
120
|
-
|
121
|
-
**Merged pull requests:**
|
122
|
-
|
123
|
-
- Release 3.18.0 [\#661](https://github.com/recurly/recurly-client-ruby/pull/661) ([douglasmiller](https://github.com/douglasmiller))
|
124
|
-
|
125
|
-
## [3.17.0](https://github.com/recurly/recurly-client-ruby/tree/3.17.0) (2020-12-08)
|
126
|
-
|
127
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.16.0...3.17.0)
|
128
|
-
|
129
|
-
**Implemented enhancements:**
|
130
|
-
|
131
|
-
- Latest Changes for 2019-10-10 [\#657](https://github.com/recurly/recurly-client-ruby/pull/657) ([douglasmiller](https://github.com/douglasmiller))
|
132
|
-
|
133
|
-
**Merged pull requests:**
|
134
|
-
|
135
|
-
- Release 3.17.0 [\#658](https://github.com/recurly/recurly-client-ruby/pull/658) ([douglasmiller](https://github.com/douglasmiller))
|
136
|
-
|
137
|
-
## [3.16.0](https://github.com/recurly/recurly-client-ruby/tree/3.16.0) (2020-11-24)
|
138
|
-
|
139
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.15.0...3.16.0)
|
140
|
-
|
141
|
-
**Implemented enhancements:**
|
142
|
-
|
143
|
-
- Latest Changes for 2019-10-10 \(tax\_identifier / tax\_identifier\_type\) [\#654](https://github.com/recurly/recurly-client-ruby/pull/654) ([douglasmiller](https://github.com/douglasmiller))
|
144
|
-
- Latest Changes for 2019-10-10 [\#651](https://github.com/recurly/recurly-client-ruby/pull/651) ([douglasmiller](https://github.com/douglasmiller))
|
145
|
-
|
146
|
-
**Merged pull requests:**
|
147
|
-
|
148
|
-
- Release 3.16.0 [\#656](https://github.com/recurly/recurly-client-ruby/pull/656) ([douglasmiller](https://github.com/douglasmiller))
|
149
|
-
|
150
|
-
## [3.15.0](https://github.com/recurly/recurly-client-ruby/tree/3.15.0) (2020-11-06)
|
151
|
-
|
152
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.14.0...3.15.0)
|
153
|
-
|
154
|
-
**Implemented enhancements:**
|
155
|
-
|
156
|
-
- Latest Changes for 2019-10-10 \(Wallet, Item Coupons\) [\#645](https://github.com/recurly/recurly-client-ruby/pull/645) ([douglasmiller](https://github.com/douglasmiller))
|
157
|
-
|
158
|
-
**Merged pull requests:**
|
159
|
-
|
160
|
-
- Release 3.15.0 [\#647](https://github.com/recurly/recurly-client-ruby/pull/647) ([douglasmiller](https://github.com/douglasmiller))
|
161
|
-
|
162
|
-
## [3.14.0](https://github.com/recurly/recurly-client-ruby/tree/3.14.0) (2020-10-20)
|
163
|
-
|
164
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.13.0...3.14.0)
|
165
|
-
|
166
|
-
**Implemented enhancements:**
|
167
|
-
|
168
|
-
- Mon Oct 19 20:38:03 UTC 2020 Upgrade API version v2019-10-10 [\#642](https://github.com/recurly/recurly-client-ruby/pull/642) ([douglasmiller](https://github.com/douglasmiller))
|
169
|
-
|
170
|
-
**Merged pull requests:**
|
171
|
-
|
172
|
-
- Release 3.14.0 [\#643](https://github.com/recurly/recurly-client-ruby/pull/643) ([douglasmiller](https://github.com/douglasmiller))
|
173
|
-
- Fixes uninitialized constant `Recurly::Errors::ServiceNotAvailableError` [\#641](https://github.com/recurly/recurly-client-ruby/pull/641) ([ruyrocha](https://github.com/ruyrocha))
|
174
|
-
|
175
|
-
## [3.13.0](https://github.com/recurly/recurly-client-ruby/tree/3.13.0) (2020-09-22)
|
176
|
-
|
177
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.12.0...3.13.0)
|
178
|
-
|
179
|
-
**Implemented enhancements:**
|
180
|
-
|
181
|
-
- Latest Changes for 2019-10-10 \(Automated Exports, additional resource data attributes\) [\#638](https://github.com/recurly/recurly-client-ruby/pull/638) ([douglasmiller](https://github.com/douglasmiller))
|
182
|
-
|
183
|
-
**Merged pull requests:**
|
184
|
-
|
185
|
-
- Release 3.13.0 [\#639](https://github.com/recurly/recurly-client-ruby/pull/639) ([douglasmiller](https://github.com/douglasmiller))
|
186
|
-
|
187
|
-
## [3.12.0](https://github.com/recurly/recurly-client-ruby/tree/3.12.0) (2020-08-31)
|
188
|
-
|
189
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.11.0...3.12.0)
|
190
|
-
|
191
|
-
**Implemented enhancements:**
|
192
|
-
|
193
|
-
- Mon Aug 31 19:44:58 UTC 2020 Upgrade API version v2019-10-10 [\#632](https://github.com/recurly/recurly-client-ruby/pull/632) ([douglasmiller](https://github.com/douglasmiller))
|
194
|
-
|
195
|
-
**Merged pull requests:**
|
196
|
-
|
197
|
-
- Release 3.12.0 [\#633](https://github.com/recurly/recurly-client-ruby/pull/633) ([douglasmiller](https://github.com/douglasmiller))
|
198
|
-
- Code of Conduct [\#631](https://github.com/recurly/recurly-client-ruby/pull/631) ([bhelx](https://github.com/bhelx))
|
199
|
-
|
200
|
-
## [3.11.0](https://github.com/recurly/recurly-client-ruby/tree/3.11.0) (2020-08-21)
|
201
|
-
|
202
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.10.0...3.11.0)
|
203
|
-
|
204
|
-
**Implemented enhancements:**
|
205
|
-
|
206
|
-
- Fri Aug 21 16:17:28 UTC 2020 Upgrade API version v2019-10-10 [\#629](https://github.com/recurly/recurly-client-ruby/pull/629) ([douglasmiller](https://github.com/douglasmiller))
|
207
|
-
|
208
|
-
**Merged pull requests:**
|
209
|
-
|
210
|
-
- Release 3.11.0 [\#630](https://github.com/recurly/recurly-client-ruby/pull/630) ([douglasmiller](https://github.com/douglasmiller))
|
211
|
-
|
212
|
-
## [3.10.0](https://github.com/recurly/recurly-client-ruby/tree/3.10.0) (2020-07-31)
|
213
|
-
|
214
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.9.0...3.10.0)
|
215
|
-
|
216
|
-
**Implemented enhancements:**
|
217
|
-
|
218
|
-
- Latest Changes for 2019-10-10 \(usage, measured units, etc\) [\#621](https://github.com/recurly/recurly-client-ruby/pull/621) ([bhelx](https://github.com/bhelx))
|
219
|
-
- Adding hierarchical errors [\#610](https://github.com/recurly/recurly-client-ruby/pull/610) ([douglasmiller](https://github.com/douglasmiller))
|
220
|
-
|
221
|
-
**Merged pull requests:**
|
222
|
-
|
223
|
-
- Release 3.10.0 [\#623](https://github.com/recurly/recurly-client-ruby/pull/623) ([douglasmiller](https://github.com/douglasmiller))
|
224
|
-
|
225
|
-
## [3.9.0](https://github.com/recurly/recurly-client-ruby/tree/3.9.0) (2020-07-06)
|
226
|
-
|
227
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.8.0...3.9.0)
|
228
|
-
|
229
|
-
**Implemented enhancements:**
|
230
|
-
|
231
|
-
- Mon Jul 6 14:48:05 UTC 2020 Upgrade API version v2019-10-10 [\#608](https://github.com/recurly/recurly-client-ruby/pull/608) ([douglasmiller](https://github.com/douglasmiller))
|
232
|
-
|
233
|
-
**Merged pull requests:**
|
234
|
-
|
235
|
-
- Release 3.9.0 [\#609](https://github.com/recurly/recurly-client-ruby/pull/609) ([douglasmiller](https://github.com/douglasmiller))
|
236
|
-
|
237
|
-
## [3.8.0](https://github.com/recurly/recurly-client-ruby/tree/3.8.0) (2020-07-01)
|
238
|
-
|
239
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.7.0...3.8.0)
|
240
|
-
|
241
|
-
**Implemented enhancements:**
|
242
|
-
|
243
|
-
- Wed Jul 1 02:06:24 UTC 2020 Upgrade API version v2019-10-10 [\#605](https://github.com/recurly/recurly-client-ruby/pull/605) ([douglasmiller](https://github.com/douglasmiller))
|
244
|
-
|
245
|
-
**Merged pull requests:**
|
246
|
-
|
247
|
-
- Release 3.8.0 [\#606](https://github.com/recurly/recurly-client-ruby/pull/606) ([douglasmiller](https://github.com/douglasmiller))
|
248
|
-
|
249
|
-
## [3.7.0](https://github.com/recurly/recurly-client-ruby/tree/3.7.0) (2020-06-30)
|
250
|
-
|
251
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.6.0...3.7.0)
|
252
|
-
|
253
|
-
**Implemented enhancements:**
|
254
|
-
|
255
|
-
- Mon Jun 29 17:01:25 UTC 2020 Upgrade API version v2019-10-10 [\#601](https://github.com/recurly/recurly-client-ruby/pull/601) ([douglasmiller](https://github.com/douglasmiller))
|
256
|
-
|
257
|
-
**Fixed bugs:**
|
258
|
-
|
259
|
-
- Allow :headers to be included in operations [\#597](https://github.com/recurly/recurly-client-ruby/pull/597) ([douglasmiller](https://github.com/douglasmiller))
|
260
|
-
|
261
|
-
**Merged pull requests:**
|
262
|
-
|
263
|
-
- Release 3.7.0 [\#602](https://github.com/recurly/recurly-client-ruby/pull/602) ([douglasmiller](https://github.com/douglasmiller))
|
264
|
-
- Fix doc link [\#596](https://github.com/recurly/recurly-client-ruby/pull/596) ([bhelx](https://github.com/bhelx))
|
265
|
-
|
266
|
-
## [3.6.0](https://github.com/recurly/recurly-client-ruby/tree/3.6.0) (2020-06-01)
|
267
|
-
|
268
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.5.0...3.6.0)
|
269
|
-
|
270
|
-
**Implemented enhancements:**
|
271
|
-
|
272
|
-
- Latest Features [\#592](https://github.com/recurly/recurly-client-ruby/pull/592) ([bhelx](https://github.com/bhelx))
|
273
|
-
- Support the programmer passing their own logger [\#590](https://github.com/recurly/recurly-client-ruby/pull/590) ([bhelx](https://github.com/bhelx))
|
274
|
-
|
275
|
-
**Merged pull requests:**
|
276
|
-
|
277
|
-
- Release 3.6.0 [\#594](https://github.com/recurly/recurly-client-ruby/pull/594) ([bhelx](https://github.com/bhelx))
|
278
|
-
- Better format error message [\#593](https://github.com/recurly/recurly-client-ruby/pull/593) ([bhelx](https://github.com/bhelx))
|
279
|
-
- Let bump2version manage the getting started doc [\#591](https://github.com/recurly/recurly-client-ruby/pull/591) ([bhelx](https://github.com/bhelx))
|
280
|
-
- Document `Pager#first` and `Pager#count` [\#589](https://github.com/recurly/recurly-client-ruby/pull/589) ([bhelx](https://github.com/bhelx))
|
281
|
-
- Ensure that path parameters are not empty strings [\#587](https://github.com/recurly/recurly-client-ruby/pull/587) ([douglasmiller](https://github.com/douglasmiller))
|
282
|
-
|
283
|
-
## [3.5.0](https://github.com/recurly/recurly-client-ruby/tree/3.5.0) (2020-04-20)
|
284
|
-
|
285
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.4.1...3.5.0)
|
286
|
-
|
287
|
-
**Implemented enhancements:**
|
288
|
-
|
289
|
-
- Tue Apr 14 20:21:21 UTC 2020 Upgrade API version v2019-10-10 [\#585](https://github.com/recurly/recurly-client-ruby/pull/585) ([bhelx](https://github.com/bhelx))
|
290
|
-
- Set an Idempotency-Key header, retry GET requests after 5xx errors [\#579](https://github.com/recurly/recurly-client-ruby/pull/579) ([isaachall](https://github.com/isaachall))
|
291
|
-
- Adding \#first and \#count methods to Pager [\#560](https://github.com/recurly/recurly-client-ruby/pull/560) ([douglasmiller](https://github.com/douglasmiller))
|
292
|
-
|
293
|
-
**Fixed bugs:**
|
294
|
-
|
295
|
-
- Fixing the omission of query params [\#581](https://github.com/recurly/recurly-client-ruby/pull/581) ([douglasmiller](https://github.com/douglasmiller))
|
296
|
-
|
297
|
-
**Merged pull requests:**
|
298
|
-
|
299
|
-
- Release 3.5.0 [\#586](https://github.com/recurly/recurly-client-ruby/pull/586) ([douglasmiller](https://github.com/douglasmiller))
|
300
|
-
- Included the to-be released changes in the changelog [\#584](https://github.com/recurly/recurly-client-ruby/pull/584) ([douglasmiller](https://github.com/douglasmiller))
|
301
|
-
- Add 2.7 to test matrix [\#582](https://github.com/recurly/recurly-client-ruby/pull/582) ([bhelx](https://github.com/bhelx))
|
302
|
-
- Use github pages for docs [\#580](https://github.com/recurly/recurly-client-ruby/pull/580) ([bhelx](https://github.com/bhelx))
|
303
|
-
- Add project metadata to the gemspec [\#578](https://github.com/recurly/recurly-client-ruby/pull/578) ([orien](https://github.com/orien))
|
304
|
-
- Updating release script to be uniform across all clients [\#577](https://github.com/recurly/recurly-client-ruby/pull/577) ([douglasmiller](https://github.com/douglasmiller))
|
305
|
-
- Thu Mar 26 20:41:10 UTC 2020 Upgrade API version v2019-10-10 [\#573](https://github.com/recurly/recurly-client-ruby/pull/573) ([bhelx](https://github.com/bhelx))
|
306
|
-
|
307
|
-
## [3.4.1](https://github.com/recurly/recurly-client-ruby/tree/3.4.1) (2020-03-26)
|
308
|
-
|
309
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.4.0...3.4.1)
|
310
|
-
|
311
|
-
**Merged pull requests:**
|
312
|
-
|
313
|
-
- Release 3.4.1 [\#571](https://github.com/recurly/recurly-client-ruby/pull/571) ([bhelx](https://github.com/bhelx))
|
314
|
-
- Follow up bug fixes for \#568 [\#570](https://github.com/recurly/recurly-client-ruby/pull/570) ([bhelx](https://github.com/bhelx))
|
315
|
-
|
316
|
-
## [3.4.0](https://github.com/recurly/recurly-client-ruby/tree/3.4.0) (2020-03-23)
|
317
|
-
|
318
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.3.1...3.4.0)
|
319
|
-
|
320
|
-
**Implemented enhancements:**
|
321
|
-
|
322
|
-
- Replace Faraday gem with Net::HTTP, add connection pooling & keep-alive, update CA roots [\#568](https://github.com/recurly/recurly-client-ruby/pull/568) ([isaachall](https://github.com/isaachall))
|
323
|
-
|
324
|
-
**Merged pull requests:**
|
325
|
-
|
326
|
-
- Release 3.4.0 [\#569](https://github.com/recurly/recurly-client-ruby/pull/569) ([bhelx](https://github.com/bhelx))
|
327
|
-
|
328
|
-
## [3.3.1](https://github.com/recurly/recurly-client-ruby/tree/3.3.1) (2020-03-20)
|
329
|
-
|
330
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.3.0...3.3.1)
|
331
|
-
|
332
|
-
**Merged pull requests:**
|
333
|
-
|
334
|
-
- Release 3.3.1 [\#567](https://github.com/recurly/recurly-client-ruby/pull/567) ([douglasmiller](https://github.com/douglasmiller))
|
335
|
-
- Adding changelog and updated release scripts [\#566](https://github.com/recurly/recurly-client-ruby/pull/566) ([douglasmiller](https://github.com/douglasmiller))
|
336
|
-
- Thu Mar 19 21:04:19 UTC 2020 Upgrade API version v2019-10-10 [\#564](https://github.com/recurly/recurly-client-ruby/pull/564) ([douglasmiller](https://github.com/douglasmiller))
|
337
|
-
- Update rake to 12.3.3 [\#561](https://github.com/recurly/recurly-client-ruby/pull/561) ([douglasmiller](https://github.com/douglasmiller))
|
338
|
-
- Add request for stack trace in issue report [\#558](https://github.com/recurly/recurly-client-ruby/pull/558) ([bhelx](https://github.com/bhelx))
|
339
|
-
|
340
|
-
## [3.3.0](https://github.com/recurly/recurly-client-ruby/tree/3.3.0) (2020-02-20)
|
341
|
-
|
342
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.2.2...3.3.0)
|
343
|
-
|
344
|
-
**Merged pull requests:**
|
345
|
-
|
346
|
-
- Release 3.3.0 [\#556](https://github.com/recurly/recurly-client-ruby/pull/556) ([bhelx](https://github.com/bhelx))
|
347
|
-
- Latest generated changes for v2019-10-10 [\#555](https://github.com/recurly/recurly-client-ruby/pull/555) ([bhelx](https://github.com/bhelx))
|
348
|
-
- Link to new dev docs for webhooks [\#554](https://github.com/recurly/recurly-client-ruby/pull/554) ([bhelx](https://github.com/bhelx))
|
349
|
-
- Latest v2019-10-10 Changes [\#552](https://github.com/recurly/recurly-client-ruby/pull/552) ([bhelx](https://github.com/bhelx))
|
350
|
-
|
351
|
-
## [3.2.2](https://github.com/recurly/recurly-client-ruby/tree/3.2.2) (2020-02-03)
|
352
|
-
|
353
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.2.1...3.2.2)
|
354
|
-
|
355
|
-
**Merged pull requests:**
|
356
|
-
|
357
|
-
- Release 3.2.2 [\#550](https://github.com/recurly/recurly-client-ruby/pull/550) ([bhelx](https://github.com/bhelx))
|
358
|
-
- Loosen version restriction on faraday [\#549](https://github.com/recurly/recurly-client-ruby/pull/549) ([bhelx](https://github.com/bhelx))
|
359
|
-
|
360
|
-
## [3.2.1](https://github.com/recurly/recurly-client-ruby/tree/3.2.1) (2019-12-10)
|
361
|
-
|
362
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.2.0...3.2.1)
|
363
|
-
|
364
|
-
**Fixed bugs:**
|
365
|
-
|
366
|
-
- Convert Array params to CSV strings [\#545](https://github.com/recurly/recurly-client-ruby/pull/545) ([douglasmiller](https://github.com/douglasmiller))
|
367
|
-
|
368
|
-
## [3.2.0](https://github.com/recurly/recurly-client-ruby/tree/3.2.0) (2019-12-03)
|
369
|
-
|
370
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.1.3...3.2.0)
|
371
|
-
|
372
|
-
**Fixed bugs:**
|
373
|
-
|
374
|
-
- It's hard to find out what payment method was used [\#543](https://github.com/recurly/recurly-client-ruby/issues/543)
|
375
|
-
- Implement way to actually get ErrorMayHaveTransaction [\#540](https://github.com/recurly/recurly-client-ruby/issues/540)
|
376
|
-
|
377
|
-
**Merged pull requests:**
|
378
|
-
|
379
|
-
- Release 3.2.0 [\#544](https://github.com/recurly/recurly-client-ruby/pull/544) ([bhelx](https://github.com/bhelx))
|
380
|
-
- Allow object attributes through [\#542](https://github.com/recurly/recurly-client-ruby/pull/542) ([bhelx](https://github.com/bhelx))
|
381
|
-
|
382
|
-
## [3.1.3](https://github.com/recurly/recurly-client-ruby/tree/3.1.3) (2019-12-02)
|
383
|
-
|
384
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.1.2...3.1.3)
|
385
|
-
|
386
|
-
**Fixed bugs:**
|
387
|
-
|
388
|
-
- Getting ArgumentError instead of Recurly::Errors::ValidationError [\#538](https://github.com/recurly/recurly-client-ruby/issues/538)
|
389
|
-
- Issue 540 error may have transaction [\#541](https://github.com/recurly/recurly-client-ruby/pull/541) ([bhelx](https://github.com/bhelx))
|
390
|
-
|
391
|
-
## [3.1.2](https://github.com/recurly/recurly-client-ruby/tree/3.1.2) (2019-12-02)
|
392
|
-
|
393
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.1.1...3.1.2)
|
394
|
-
|
395
|
-
**Fixed bugs:**
|
396
|
-
|
397
|
-
- Skip request property type validation for nil values [\#539](https://github.com/recurly/recurly-client-ruby/pull/539) ([bhelx](https://github.com/bhelx))
|
398
|
-
|
399
|
-
## [3.1.1](https://github.com/recurly/recurly-client-ruby/tree/3.1.1) (2019-11-27)
|
400
|
-
|
401
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.1.0...3.1.1)
|
402
|
-
|
403
|
-
**Fixed bugs:**
|
404
|
-
|
405
|
-
- Undefined method cast [\#536](https://github.com/recurly/recurly-client-ruby/issues/536)
|
406
|
-
- Disable searching ancestors when looking up constants [\#537](https://github.com/recurly/recurly-client-ruby/pull/537) ([douglasmiller](https://github.com/douglasmiller))
|
407
|
-
|
408
|
-
## [3.1.0](https://github.com/recurly/recurly-client-ruby/tree/3.1.0) (2019-11-18)
|
409
|
-
|
410
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.0.0...3.1.0)
|
411
|
-
|
412
|
-
**Merged pull requests:**
|
413
|
-
|
414
|
-
- Release 3.1.0 [\#530](https://github.com/recurly/recurly-client-ruby/pull/530) ([bhelx](https://github.com/bhelx))
|
415
|
-
- Generated Updates for API version v2019-10-10 [\#529](https://github.com/recurly/recurly-client-ruby/pull/529) ([douglasmiller](https://github.com/douglasmiller))
|
416
|
-
- Generated Updates for API version v2019-10-10 [\#528](https://github.com/recurly/recurly-client-ruby/pull/528) ([bhelx](https://github.com/bhelx))
|
417
|
-
|
418
|
-
## [3.0.0](https://github.com/recurly/recurly-client-ruby/tree/3.0.0) (2019-10-09)
|
419
|
-
|
420
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.0.0.beta.5...3.0.0)
|
421
|
-
|
422
|
-
**Merged pull requests:**
|
423
|
-
|
424
|
-
- Release 3.0.0 [\#521](https://github.com/recurly/recurly-client-ruby/pull/521) ([bhelx](https://github.com/bhelx))
|
425
|
-
- Upgrade API version v2019-10-10 [\#519](https://github.com/recurly/recurly-client-ruby/pull/519) ([bhelx](https://github.com/bhelx))
|
426
|
-
- Update recurly.gemspec [\#518](https://github.com/recurly/recurly-client-ruby/pull/518) ([bhelx](https://github.com/bhelx))
|
427
|
-
- Add a script for releasing [\#517](https://github.com/recurly/recurly-client-ruby/pull/517) ([bhelx](https://github.com/bhelx))
|
428
|
-
- Change base url to v3.recurly.com [\#516](https://github.com/recurly/recurly-client-ruby/pull/516) ([bhelx](https://github.com/bhelx))
|
429
|
-
- No longer need bundler 1.7 [\#511](https://github.com/recurly/recurly-client-ruby/pull/511) ([bhelx](https://github.com/bhelx))
|
430
|
-
- Refactor internal schema representation [\#510](https://github.com/recurly/recurly-client-ruby/pull/510) ([bhelx](https://github.com/bhelx))
|
431
|
-
- Implement bump script [\#507](https://github.com/recurly/recurly-client-ruby/pull/507) ([bhelx](https://github.com/bhelx))
|
432
|
-
- Remove the site-id constraint from Client [\#504](https://github.com/recurly/recurly-client-ruby/pull/504) ([bhelx](https://github.com/bhelx))
|
433
|
-
- Only set strict mode when env explicitly true [\#501](https://github.com/recurly/recurly-client-ruby/pull/501) ([bhelx](https://github.com/bhelx))
|
434
|
-
- Document use of webhooks [\#500](https://github.com/recurly/recurly-client-ruby/pull/500) ([bhelx](https://github.com/bhelx))
|
435
|
-
- Latest v2018-08-09 Updates [\#498](https://github.com/recurly/recurly-client-ruby/pull/498) ([bhelx](https://github.com/bhelx))
|
436
|
-
- Refer user to rubydoc.info [\#497](https://github.com/recurly/recurly-client-ruby/pull/497) ([bhelx](https://github.com/bhelx))
|
437
|
-
- Expose HTTP request and response metadata [\#488](https://github.com/recurly/recurly-client-ruby/pull/488) ([bhelx](https://github.com/bhelx))
|
438
|
-
- Add CONTRIBUTING.md [\#486](https://github.com/recurly/recurly-client-ruby/pull/486) ([bhelx](https://github.com/bhelx))
|
439
|
-
- Bump 3.0.0.beta.6 [\#485](https://github.com/recurly/recurly-client-ruby/pull/485) ([bhelx](https://github.com/bhelx))
|
440
|
-
- Latest v2018-08-09 Changes [\#484](https://github.com/recurly/recurly-client-ruby/pull/484) ([bhelx](https://github.com/bhelx))
|
441
|
-
|
442
|
-
## [3.0.0.beta.5](https://github.com/recurly/recurly-client-ruby/tree/3.0.0.beta.5) (2019-06-28)
|
443
|
-
|
444
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.0.0.beta.4...3.0.0.beta.5)
|
445
|
-
|
446
|
-
**Merged pull requests:**
|
447
|
-
|
448
|
-
- 3.0.0.beta.5 [\#483](https://github.com/recurly/recurly-client-ruby/pull/483) ([bhelx](https://github.com/bhelx))
|
449
|
-
- Latest v2018-08-09 Changes [\#482](https://github.com/recurly/recurly-client-ruby/pull/482) ([bhelx](https://github.com/bhelx))
|
450
|
-
- no longer need dep scripts [\#476](https://github.com/recurly/recurly-client-ruby/pull/476) ([bhelx](https://github.com/bhelx))
|
451
|
-
- Add format script and check in specs [\#474](https://github.com/recurly/recurly-client-ruby/pull/474) ([bhelx](https://github.com/bhelx))
|
452
|
-
- Url Encode Path items [\#472](https://github.com/recurly/recurly-client-ruby/pull/472) ([bhelx](https://github.com/bhelx))
|
453
|
-
- Add strict mode for json deserializer [\#469](https://github.com/recurly/recurly-client-ruby/pull/469) ([bhelx](https://github.com/bhelx))
|
454
|
-
|
455
|
-
## [3.0.0.beta.4](https://github.com/recurly/recurly-client-ruby/tree/3.0.0.beta.4) (2019-04-04)
|
456
|
-
|
457
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.0.0.beta.3...3.0.0.beta.4)
|
458
|
-
|
459
|
-
**Merged pull requests:**
|
460
|
-
|
461
|
-
- V3 Update v2018-08-09 [\#460](https://github.com/recurly/recurly-client-ruby/pull/460) ([aaron-suarez](https://github.com/aaron-suarez))
|
462
|
-
- Small fixes for private beta [\#458](https://github.com/recurly/recurly-client-ruby/pull/458) ([bhelx](https://github.com/bhelx))
|
463
|
-
- Use Net-http-persistent for persistent connection [\#408](https://github.com/recurly/recurly-client-ruby/pull/408) ([bhelx](https://github.com/bhelx))
|
464
|
-
- Update to API 2018-06-06 [\#407](https://github.com/recurly/recurly-client-ruby/pull/407) ([bhelx](https://github.com/bhelx))
|
465
|
-
- Regenerating the client [\#406](https://github.com/recurly/recurly-client-ruby/pull/406) ([drewish](https://github.com/drewish))
|
466
|
-
- V3 Pager can error [\#401](https://github.com/recurly/recurly-client-ruby/pull/401) ([drewish](https://github.com/drewish))
|
467
|
-
- \[V3\] Test more versions of ruby [\#397](https://github.com/recurly/recurly-client-ruby/pull/397) ([drewish](https://github.com/drewish))
|
468
|
-
- Allow faraday 0.12 for compatibility with oauth2 gem [\#396](https://github.com/recurly/recurly-client-ruby/pull/396) ([drewish](https://github.com/drewish))
|
469
|
-
|
470
|
-
## [3.0.0.beta.3](https://github.com/recurly/recurly-client-ruby/tree/3.0.0.beta.3) (2018-08-27)
|
471
|
-
|
472
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.0.0.beta.2...3.0.0.beta.3)
|
473
|
-
|
474
|
-
## [3.0.0.beta.2](https://github.com/recurly/recurly-client-ruby/tree/3.0.0.beta.2) (2018-07-17)
|
475
|
-
|
476
|
-
[Full Changelog](https://github.com/recurly/recurly-client-ruby/compare/3.0.0.beta.1...3.0.0.beta.2)
|
477
|
-
|
478
|
-
|
479
101
|
|
480
|
-
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/GETTING_STARTED.md
CHANGED
@@ -5,7 +5,7 @@ This repository houses the official ruby client for Recurly's V3 API.
|
|
5
5
|
In your Gemfile, add `recurly` as a dependency.
|
6
6
|
|
7
7
|
```ruby
|
8
|
-
gem 'recurly', '~> 4.
|
8
|
+
gem 'recurly', '~> 4.1'
|
9
9
|
```
|
10
10
|
|
11
11
|
> *Note*: We try to follow [semantic versioning](https://semver.org/) and will only apply breaking changes to major versions.
|
data/lib/recurly/client.rb
CHANGED
@@ -55,6 +55,8 @@ module Recurly
|
|
55
55
|
# @param api_key [String] The private API key
|
56
56
|
# @param logger [Logger] A logger to use. Defaults to creating a new STDOUT logger with level WARN.
|
57
57
|
def initialize(api_key:, logger: nil)
|
58
|
+
raise ArgumentError, "'api_key' must be set to a non-nil value" if api_key.nil?
|
59
|
+
|
58
60
|
set_api_key(api_key)
|
59
61
|
|
60
62
|
if logger.nil?
|
@@ -205,7 +207,7 @@ module Recurly
|
|
205
207
|
end
|
206
208
|
|
207
209
|
raise Recurly::Errors::ConnectionFailedError, "Failed to connect to Recurly: #{ex.message}"
|
208
|
-
rescue
|
210
|
+
rescue Timeout::Error
|
209
211
|
raise Recurly::Errors::TimeoutError, "Request timed out"
|
210
212
|
rescue OpenSSL::SSL::SSLError => ex
|
211
213
|
raise Recurly::Errors::SSLError, ex.message
|
@@ -331,7 +333,7 @@ module Recurly
|
|
331
333
|
end
|
332
334
|
|
333
335
|
def set_api_key(api_key)
|
334
|
-
@api_key = api_key
|
336
|
+
@api_key = api_key.to_s
|
335
337
|
end
|
336
338
|
|
337
339
|
def build_url(path, options)
|
data/lib/recurly/errors.rb
CHANGED
@@ -79,11 +79,11 @@ module Recurly
|
|
79
79
|
define_attribute :tier_type, String
|
80
80
|
|
81
81
|
# @!attribute tiers
|
82
|
-
# @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies
|
82
|
+
# @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies`, or alternatively, `usage_percentage` for usage percentage type usage add ons. There must be one tier with an `ending_quantity` of 999999999 which is the default if not provided.
|
83
83
|
define_attribute :tiers, Array, { :item_type => :Tier }
|
84
84
|
|
85
85
|
# @!attribute usage_percentage
|
86
|
-
# @return [Float] The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if `add_on_type` is usage and `usage_type` is percentage. Must be omitted otherwise.
|
86
|
+
# @return [Float] The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if `add_on_type` is usage, `tier_type` is `flat` and `usage_type` is percentage. Must be omitted otherwise.
|
87
87
|
define_attribute :usage_percentage, Float
|
88
88
|
|
89
89
|
# @!attribute usage_type
|
@@ -63,11 +63,11 @@ module Recurly
|
|
63
63
|
define_attribute :tax_code, String
|
64
64
|
|
65
65
|
# @!attribute tiers
|
66
|
-
# @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies
|
66
|
+
# @return [Array[Tier]] If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object must include one to many tiers with `ending_quantity` and `unit_amount` for the desired `currencies`, or alternatively, `usage_percentage` for usage percentage type usage add ons. There must be one tier with an `ending_quantity` of 999999999 which is the default if not provided.
|
67
67
|
define_attribute :tiers, Array, { :item_type => :Tier }
|
68
68
|
|
69
69
|
# @!attribute usage_percentage
|
70
|
-
# @return [Float] The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if `add_on_type` is usage and `usage_type` is percentage. Must be omitted otherwise.
|
70
|
+
# @return [Float] The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal places. A value between 0.0 and 100.0. Required if `add_on_type` is usage, `tier_type` is `flat` and `usage_type` is percentage. Must be omitted otherwise.
|
71
71
|
define_attribute :usage_percentage, Float
|
72
72
|
end
|
73
73
|
end
|
@@ -14,6 +14,10 @@ module Recurly
|
|
14
14
|
# @return [String] Amazon billing agreement ID
|
15
15
|
define_attribute :amazon_billing_agreement_id, String
|
16
16
|
|
17
|
+
# @!attribute backup_payment_method
|
18
|
+
# @return [Boolean] The `backup_payment_method` indicator is used to designate a billing info as a backup on the account that will be tried if the billing info marked `primary_payment_method` fails. All payment methods, including the billing info marked `primary_payment_method` can be set as a backup. An account can have a maximum of 1 backup, if a user sets a different payment method as a backup, the existing backup will no longer be marked as such.
|
19
|
+
define_attribute :backup_payment_method, :Boolean
|
20
|
+
|
17
21
|
# @!attribute company
|
18
22
|
# @return [String] Company name
|
19
23
|
define_attribute :company, String
|
@@ -59,7 +59,7 @@ module Recurly
|
|
59
59
|
define_attribute :trial_ends_at, DateTime
|
60
60
|
|
61
61
|
# @!attribute unit_amount
|
62
|
-
# @return [Float] Override the unit amount of the subscription plan by setting this value
|
62
|
+
# @return [Float] Override the unit amount of the subscription plan by setting this value. If not provided, the subscription will inherit the price from the subscription plan for the provided currency.
|
63
63
|
define_attribute :unit_amount, Float
|
64
64
|
end
|
65
65
|
end
|
@@ -11,8 +11,12 @@ module Recurly
|
|
11
11
|
define_attribute :currencies, Array, { :item_type => :TierPricing }
|
12
12
|
|
13
13
|
# @!attribute ending_quantity
|
14
|
-
# @return [Integer] Ending quantity
|
14
|
+
# @return [Integer] Ending quantity for the tier. This represents a unit amount for unit-priced add ons, but for percentage type usage add ons, represents the site default currency in its minimum divisible unit.
|
15
15
|
define_attribute :ending_quantity, Integer
|
16
|
+
|
17
|
+
# @!attribute usage_percentage
|
18
|
+
# @return [String] Decimal usage percentage.
|
19
|
+
define_attribute :usage_percentage, String
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
@@ -14,6 +14,10 @@ module Recurly
|
|
14
14
|
# @return [Address]
|
15
15
|
define_attribute :address, :Address
|
16
16
|
|
17
|
+
# @!attribute backup_payment_method
|
18
|
+
# @return [Boolean] The `backup_payment_method` indicator is used to designate a billing info as a backup on the account that will be tried if the billing info marked `primary_payment_method` fails.
|
19
|
+
define_attribute :backup_payment_method, :Boolean
|
20
|
+
|
17
21
|
# @!attribute company
|
18
22
|
# @return [String]
|
19
23
|
define_attribute :company, String
|
@@ -11,8 +11,12 @@ module Recurly
|
|
11
11
|
define_attribute :currencies, Array, { :item_type => :TierPricing }
|
12
12
|
|
13
13
|
# @!attribute ending_quantity
|
14
|
-
# @return [Integer] Ending quantity
|
14
|
+
# @return [Integer] Ending quantity for the tier. This represents a unit amount for unit-priced add ons, but for percentage type usage add ons, represents the site default currency in its minimum divisible unit.
|
15
15
|
define_attribute :ending_quantity, Integer
|
16
|
+
|
17
|
+
# @!attribute usage_percentage
|
18
|
+
# @return [String] Decimal usage percentage.
|
19
|
+
define_attribute :usage_percentage, String
|
16
20
|
end
|
17
21
|
end
|
18
22
|
end
|
@@ -18,6 +18,10 @@ module Recurly
|
|
18
18
|
# @return [String] When processed, result from checking the overall AVS on the transaction.
|
19
19
|
define_attribute :avs_check, String
|
20
20
|
|
21
|
+
# @!attribute backup_payment_method_used
|
22
|
+
# @return [Boolean] Indicates if the transaction was completed using a backup payment
|
23
|
+
define_attribute :backup_payment_method_used, :Boolean
|
24
|
+
|
21
25
|
# @!attribute billing_address
|
22
26
|
# @return [AddressWithName]
|
23
27
|
define_attribute :billing_address, :AddressWithName
|
data/lib/recurly/version.rb
CHANGED
data/openapi/api.yaml
CHANGED
@@ -2033,7 +2033,7 @@ paths:
|
|
2033
2033
|
description: |
|
2034
2034
|
If you're using Recurly.js to securely submit data from webforms without sending it through your server,
|
2035
2035
|
you can associate the billing information with an account by passing in the `token_id`. The only other
|
2036
|
-
|
2036
|
+
fields permitted with `token_id` are `primary_payment_method` and/or `backup_payment_method`.
|
2037
2037
|
|
2038
2038
|
For credit card payments you'll need the following required fields:
|
2039
2039
|
|
@@ -2350,7 +2350,7 @@ paths:
|
|
2350
2350
|
description: |
|
2351
2351
|
If you're using Recurly.js to securely submit data from webforms without sending it through your server,
|
2352
2352
|
you can associate the billing information with an account by passing in the `token_id`. The only other
|
2353
|
-
|
2353
|
+
fields permitted with `token_id` are `primary_payment_method` and/or `backup_payment_method`.
|
2354
2354
|
|
2355
2355
|
For credit card payments you'll need the following required fields:
|
2356
2356
|
|
@@ -2434,7 +2434,7 @@ paths:
|
|
2434
2434
|
description: |
|
2435
2435
|
If you're using Recurly.js to securely submit data from webforms without sending it through your server,
|
2436
2436
|
you can associate the billing information with an account by passing in the `token_id`. The only other
|
2437
|
-
|
2437
|
+
fields permitted with `token_id` are `primary_payment_method` and/or `backup_payment_method`.
|
2438
2438
|
|
2439
2439
|
For credit card payments you'll need the following required fields:
|
2440
2440
|
|
@@ -15735,8 +15735,8 @@ components:
|
|
15735
15735
|
title: Usage Percentage
|
15736
15736
|
description: The percentage taken of the monetary amount of usage tracked.
|
15737
15737
|
This can be up to 4 decimal places. A value between 0.0 and 100.0. Required
|
15738
|
-
if `add_on_type` is usage and `usage_type` is percentage.
|
15739
|
-
|
15738
|
+
if `add_on_type` is usage, `tier_type` is `flat` and `usage_type` is percentage.
|
15739
|
+
Must be omitted otherwise.
|
15740
15740
|
measured_unit_id:
|
15741
15741
|
type: string
|
15742
15742
|
title: Measured Unit ID
|
@@ -15842,7 +15842,7 @@ components:
|
|
15842
15842
|
description: |
|
15843
15843
|
If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object
|
15844
15844
|
must include one to many tiers with `ending_quantity` and `unit_amount` for
|
15845
|
-
the desired `currencies
|
15845
|
+
the desired `currencies`, or alternatively, `usage_percentage` for usage percentage type usage add ons. There must be one tier with an `ending_quantity`
|
15846
15846
|
of 999999999 which is the default if not provided.
|
15847
15847
|
required:
|
15848
15848
|
- code
|
@@ -15875,8 +15875,8 @@ components:
|
|
15875
15875
|
title: Usage Percentage
|
15876
15876
|
description: The percentage taken of the monetary amount of usage tracked.
|
15877
15877
|
This can be up to 4 decimal places. A value between 0.0 and 100.0. Required
|
15878
|
-
if `add_on_type` is usage and `usage_type` is percentage.
|
15879
|
-
|
15878
|
+
if `add_on_type` is usage, `tier_type` is `flat` and `usage_type` is percentage.
|
15879
|
+
Must be omitted otherwise.
|
15880
15880
|
measured_unit_id:
|
15881
15881
|
type: string
|
15882
15882
|
title: Measured Unit ID
|
@@ -15971,7 +15971,7 @@ components:
|
|
15971
15971
|
description: |
|
15972
15972
|
If the tier_type is `flat`, then `tiers` must be absent. The `tiers` object
|
15973
15973
|
must include one to many tiers with `ending_quantity` and `unit_amount` for
|
15974
|
-
the desired `currencies
|
15974
|
+
the desired `currencies`, or alternatively, `usage_percentage` for usage percentage type usage add ons. There must be one tier with an `ending_quantity`
|
15975
15975
|
of 999999999 which is the default if not provided.
|
15976
15976
|
BillingInfo:
|
15977
15977
|
type: object
|
@@ -16037,6 +16037,11 @@ components:
|
|
16037
16037
|
the `primary_payment_method` indicator. When adding billing infos via
|
16038
16038
|
the billing_info and /accounts endpoints, this value is not permitted,
|
16039
16039
|
and will return an error if provided.
|
16040
|
+
backup_payment_method:
|
16041
|
+
type: boolean
|
16042
|
+
description: The `backup_payment_method` indicator is used to designate
|
16043
|
+
a billing info as a backup on the account that will be tried if the billing
|
16044
|
+
info marked `primary_payment_method` fails.
|
16040
16045
|
created_at:
|
16041
16046
|
type: string
|
16042
16047
|
format: date-time
|
@@ -16151,11 +16156,9 @@ components:
|
|
16151
16156
|
a consumer card in Brazil. This would be the customer's CPF, CPF is a
|
16152
16157
|
Brazilian tax identifier for all tax paying residents.
|
16153
16158
|
tax_identifier_type:
|
16154
|
-
type: string
|
16155
|
-
enum:
|
16156
|
-
"$ref": "#/components/schemas/TaxIdentifierTypeEnum"
|
16157
16159
|
description: this field and a value of 'cpf' are required if adding a billing
|
16158
16160
|
info that is an elo or hipercard type in Brazil.
|
16161
|
+
"$ref": "#/components/schemas/TaxIdentifierTypeEnum"
|
16159
16162
|
primary_payment_method:
|
16160
16163
|
type: boolean
|
16161
16164
|
title: Primary Payment Method
|
@@ -16167,6 +16170,15 @@ components:
|
|
16167
16170
|
the `primary_payment_method` indicator. When adding billing infos via
|
16168
16171
|
the billing_info and /accounts endpoints, this value is not permitted,
|
16169
16172
|
and will return an error if provided.
|
16173
|
+
backup_payment_method:
|
16174
|
+
type: boolean
|
16175
|
+
description: The `backup_payment_method` indicator is used to designate
|
16176
|
+
a billing info as a backup on the account that will be tried if the billing
|
16177
|
+
info marked `primary_payment_method` fails. All payment methods, including
|
16178
|
+
the billing info marked `primary_payment_method` can be set as a backup.
|
16179
|
+
An account can have a maximum of 1 backup, if a user sets a different
|
16180
|
+
payment method as a backup, the existing backup will no longer be marked
|
16181
|
+
as such.
|
16170
16182
|
Coupon:
|
16171
16183
|
type: object
|
16172
16184
|
properties:
|
@@ -18626,17 +18638,22 @@ components:
|
|
18626
18638
|
ending_quantity:
|
18627
18639
|
type: integer
|
18628
18640
|
title: Ending quantity
|
18641
|
+
description: Ending quantity for the tier. This represents a unit amount
|
18642
|
+
for unit-priced add ons, but for percentage type usage add ons, represents
|
18643
|
+
the site default currency in its minimum divisible unit.
|
18629
18644
|
minimum: 1
|
18630
18645
|
maximum: 999999999
|
18631
18646
|
default: 999999999
|
18647
|
+
usage_percentage:
|
18648
|
+
type: string
|
18649
|
+
title: Usage Percentage
|
18650
|
+
description: Decimal usage percentage.
|
18632
18651
|
currencies:
|
18633
18652
|
type: array
|
18634
18653
|
title: Tier pricing
|
18635
18654
|
items:
|
18636
18655
|
"$ref": "#/components/schemas/TierPricing"
|
18637
18656
|
minItems: 1
|
18638
|
-
required:
|
18639
|
-
- currencies
|
18640
18657
|
Settings:
|
18641
18658
|
type: object
|
18642
18659
|
properties:
|
@@ -19860,8 +19877,8 @@ components:
|
|
19860
19877
|
format: float
|
19861
19878
|
title: Custom subscription pricing
|
19862
19879
|
description: Override the unit amount of the subscription plan by setting
|
19863
|
-
this value
|
19864
|
-
|
19880
|
+
this value. If not provided, the subscription will inherit the price from
|
19881
|
+
the subscription plan for the provided currency.
|
19865
19882
|
minimum: 0
|
19866
19883
|
maximum: 1000000
|
19867
19884
|
quantity:
|
@@ -20185,6 +20202,10 @@ components:
|
|
20185
20202
|
type: boolean
|
20186
20203
|
title: Success?
|
20187
20204
|
description: Did this transaction complete successfully?
|
20205
|
+
backup_payment_method_used:
|
20206
|
+
type: boolean
|
20207
|
+
title: Backup Payment Method Used?
|
20208
|
+
description: Indicates if the transaction was completed using a backup payment
|
20188
20209
|
refunded:
|
20189
20210
|
type: boolean
|
20190
20211
|
title: Refunded?
|
data/scripts/prepare-release
CHANGED
@@ -1,36 +1,50 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
# major,minor,patch
|
5
|
-
PART=${1}
|
6
|
-
NEXT_VERSION=$(./scripts/bump --next-version "$PART")
|
7
|
-
UNRELEASED_LOG="/tmp/ruby-pending-changes.md"
|
8
|
-
|
9
|
-
if [ -z "$NEXT_VERSION" ]; then
|
10
|
-
echo "Failed to get next version"
|
11
|
-
else
|
12
|
-
# Generate pending changes in tmpfile
|
13
|
-
./scripts/changelog --pending $UNRELEASED_LOG
|
14
|
-
# Add a git message header of Release X.Y.Z
|
15
|
-
printf "Release %s\n\n$(cat $UNRELEASED_LOG)" "$NEXT_VERSION" > $UNRELEASED_LOG
|
16
|
-
# Delete credit line
|
17
|
-
sed -i '' -e '$ d' $UNRELEASED_LOG
|
18
|
-
|
19
|
-
git checkout -b "release-$NEXT_VERSION"
|
20
2
|
|
21
|
-
|
22
|
-
|
3
|
+
# Usage
|
4
|
+
#
|
5
|
+
# ./prepare-release major|minor|patch [--notes-out <path>] [--tag-out <path>]
|
6
|
+
#
|
23
7
|
|
24
|
-
|
25
|
-
./scripts/build
|
8
|
+
set -e
|
26
9
|
|
27
|
-
|
28
|
-
|
29
|
-
|
10
|
+
if [ -n "$(git status --porcelain)" ]; then
|
11
|
+
echo "Working directory is not clean. Aborting."
|
12
|
+
exit 1
|
13
|
+
fi
|
30
14
|
|
31
|
-
|
32
|
-
|
15
|
+
if [ -z "$GITHUB_TOKEN" ]; then
|
16
|
+
echo "GITHUB_TOKEN must be set. Aborting."
|
17
|
+
exit 1
|
18
|
+
fi
|
33
19
|
|
34
|
-
|
35
|
-
|
20
|
+
# Bump version
|
21
|
+
# major|minor|patch
|
22
|
+
part=${1}
|
23
|
+
if [ "$part" != "patch" ] && [ "$part" != "minor" ] && [ "$part" != "major" ]; then
|
24
|
+
echo "'$part' is not a valid option: major|minor|patch"
|
25
|
+
exit 1
|
36
26
|
fi
|
27
|
+
new_version=$(bump2version --list "$part" | grep new_version | cut -d "=" -f 2)
|
28
|
+
|
29
|
+
# Generate Changelog
|
30
|
+
changelogly --future-release "$new_version"
|
31
|
+
|
32
|
+
while [[ "$#" -gt 0 ]]; do
|
33
|
+
case $1 in
|
34
|
+
# Create release notes artifact
|
35
|
+
-n|--notes-out)
|
36
|
+
echo "$new_version
|
37
|
+
|
38
|
+
$(
|
39
|
+
cat CHANGELOG.md | sed -n "/^## \[$new_version\]/,/^##/p" | sed '$d;1d'
|
40
|
+
)" | awk '{$1=$1};1' > $2
|
41
|
+
shift
|
42
|
+
;;
|
43
|
+
|
44
|
+
# Create release notes artifact
|
45
|
+
-t|--tag-out)
|
46
|
+
echo "$new_version" > $2
|
47
|
+
;;
|
48
|
+
esac
|
49
|
+
shift
|
50
|
+
done
|
data/scripts/release
CHANGED
@@ -1,15 +1,11 @@
|
|
1
1
|
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
2
|
|
4
|
-
|
5
|
-
RELEASED_LOG="/tmp/ruby-pending-changes.md"
|
6
|
-
THIS_VERSION=$(./scripts/bump --this-version)
|
3
|
+
set -e
|
7
4
|
|
8
|
-
#
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
git push origin master
|
5
|
+
# Usage
|
6
|
+
#
|
7
|
+
# ./release
|
8
|
+
#
|
13
9
|
|
14
10
|
# publish
|
15
11
|
# Clean up any leftover gems
|
@@ -19,14 +15,3 @@ gem build recurly.gemspec
|
|
19
15
|
# Push what should be the only gem present
|
20
16
|
gem push ./*.gem
|
21
17
|
|
22
|
-
# create release
|
23
|
-
hub release create -c -F "$RELEASED_LOG" "$THIS_VERSION"
|
24
|
-
|
25
|
-
# Copy-pasteable messages for announcments
|
26
|
-
echo ":ruby: Ruby $THIS_VERSION Released :ruby:"
|
27
|
-
echo ":rubygems: Rubygems: https://rubygems.org/gems/recurly/versions/$THIS_VERSION"
|
28
|
-
echo "Release: https://github.com/recurly/recurly-client-ruby/releases/tag/$THIS_VERSION"
|
29
|
-
echo "Changelog:"
|
30
|
-
echo "\`\`\`"
|
31
|
-
cat "$RELEASED_LOG"
|
32
|
-
echo "\`\`\`"
|
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: 4.0
|
4
|
+
version: 4.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,10 +116,10 @@ extensions: []
|
|
116
116
|
extra_rdoc_files: []
|
117
117
|
files:
|
118
118
|
- ".bumpversion.cfg"
|
119
|
+
- ".changelog_config.yaml"
|
119
120
|
- ".github/ISSUE_TEMPLATE/bug-report.md"
|
120
121
|
- ".github/ISSUE_TEMPLATE/question-or-other.md"
|
121
122
|
- ".github/workflows/docs.yml"
|
122
|
-
- ".github_changelog_generator"
|
123
123
|
- ".gitignore"
|
124
124
|
- ".rspec"
|
125
125
|
- ".travis.yml"
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- lib/recurly/connection_pool.rb
|
141
141
|
- lib/recurly/errors.rb
|
142
142
|
- lib/recurly/errors/api_errors.rb
|
143
|
+
- lib/recurly/errors/network_errors.rb
|
143
144
|
- lib/recurly/http.rb
|
144
145
|
- lib/recurly/pager.rb
|
145
146
|
- lib/recurly/request.rb
|
@@ -279,8 +280,6 @@ files:
|
|
279
280
|
- openapi/api.yaml
|
280
281
|
- recurly.gemspec
|
281
282
|
- scripts/build
|
282
|
-
- scripts/bump
|
283
|
-
- scripts/changelog
|
284
283
|
- scripts/clean
|
285
284
|
- scripts/format
|
286
285
|
- scripts/prepare-release
|
@@ -294,8 +293,8 @@ metadata:
|
|
294
293
|
changelog_uri: https://github.com/recurly/recurly-client-ruby/blob/master/CHANGELOG.md
|
295
294
|
documentation_uri: https://recurly.github.io/recurly-client-ruby/
|
296
295
|
homepage_uri: https://github.com/recurly/recurly-client-ruby
|
297
|
-
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.0
|
298
|
-
post_install_message:
|
296
|
+
source_code_uri: https://github.com/recurly/recurly-client-ruby/tree/4.1.0
|
297
|
+
post_install_message:
|
299
298
|
rdoc_options: []
|
300
299
|
require_paths:
|
301
300
|
- lib
|
@@ -311,7 +310,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
311
310
|
version: '0'
|
312
311
|
requirements: []
|
313
312
|
rubygems_version: 3.0.3
|
314
|
-
signing_key:
|
313
|
+
signing_key:
|
315
314
|
specification_version: 4
|
316
315
|
summary: The ruby client for Recurly's V3 API
|
317
316
|
test_files: []
|
data/.github_changelog_generator
DELETED
data/scripts/bump
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
if [ "$1" == "--next-version" ]; then
|
5
|
-
shift
|
6
|
-
bump2version --dry-run --list "$@" | grep new_version | cut -d "=" -f 2
|
7
|
-
elif [ "$1" == "--this-version" ]; then
|
8
|
-
grep current_version .bumpversion.cfg | awk -F" = " '{print $2}'
|
9
|
-
else
|
10
|
-
bump2version "$@"
|
11
|
-
fi
|
data/scripts/changelog
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
if [ -z "$GITHUB_TOKEN" ]; then
|
5
|
-
echo "Environment variable GITHUB_TOKEN must be set"
|
6
|
-
else
|
7
|
-
if [ "$1" == "--pending" ]; then
|
8
|
-
github_changelog_generator -t $GITHUB_TOKEN --unreleased-only -o "$2"
|
9
|
-
elif [ "$1" == "--release-tag" ]; then
|
10
|
-
github_changelog_generator -t $GITHUB_TOKEN --unreleased true --future-release "$2"
|
11
|
-
else
|
12
|
-
github_changelog_generator -t $GITHUB_TOKEN
|
13
|
-
fi
|
14
|
-
fi
|