recurly 0.2.2 → 0.2.3

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.

Files changed (72) hide show
  1. data/lib/recurly/subscription.rb +2 -3
  2. data/lib/recurly/version.rb +1 -1
  3. data/spec/integration/account_spec.rb +0 -2
  4. data/spec/integration/invoice_spec.rb +0 -1
  5. data/spec/integration/subscription_spec.rb +49 -10
  6. data/spec/integration/transaction_spec.rb +3 -2
  7. data/spec/support/factory.rb +2 -2
  8. data/spec/vcr/account/close/{1286666929.yml → 1287167046.yml} +23 -23
  9. data/spec/vcr/account/create/{1286666929.yml → 1287167046.yml} +10 -10
  10. data/spec/vcr/account/create-blank/{1286666929.yml → 1287167046.yml} +3 -3
  11. data/spec/vcr/account/create-duplicate/{1286666929.yml → 1287167046.yml} +27 -12
  12. data/spec/vcr/account/create-min/{1286666929.yml → 1287167046.yml} +10 -10
  13. data/spec/vcr/account/find/{1286666929.yml → 1287167046.yml} +67 -29
  14. data/spec/vcr/account/list/{1286666929.yml → 1287167046.yml} +201 -228
  15. data/spec/vcr/account/update/{1286666929.yml → 1287167046.yml} +41 -41
  16. data/spec/vcr/billing/create/1286682213.yml +15 -15
  17. data/spec/vcr/billing/destroy/1286682213.yml +24 -24
  18. data/spec/vcr/billing/find/1286682213.yml +20 -20
  19. data/spec/vcr/billing/update/1286682213.yml +21 -21
  20. data/spec/vcr/charge/create/1286681273.yml +25 -25
  21. data/spec/vcr/charge/list-all/1286681273.yml +37 -37
  22. data/spec/vcr/charge/list-invoiced/1286681273.yml +62 -62
  23. data/spec/vcr/charge/list-pending/1286681273.yml +37 -37
  24. data/spec/vcr/charge/lookup/1286681273.yml +20 -20
  25. data/spec/vcr/credit/create/1286681343.yml +20 -20
  26. data/spec/vcr/credit/list/1286681343.yml +37 -37
  27. data/spec/vcr/credit/lookup/1286681343.yml +20 -20
  28. data/spec/vcr/invoice/create/{1286679184.yml → 1287167121.yml} +49 -49
  29. data/spec/vcr/{transaction/refund/1286674805.yml → invoice/create-no-charges/1287167121.yml} +32 -57
  30. data/spec/vcr/invoice/list/{1286679184.yml → 1287167121.yml} +71 -71
  31. data/spec/vcr/invoice/lookup/{1286679184.yml → 1287167121.yml} +50 -50
  32. data/spec/vcr/plan/all.yml +8 -8
  33. data/spec/vcr/plan/delete/1286677585.yml +15 -15
  34. data/spec/vcr/plan/find.yml +8 -8
  35. data/spec/vcr/plan/update.yml +9 -9
  36. data/spec/vcr/subscription/cancel/{1287037363.yml → 1287439446.yml} +62 -62
  37. data/spec/vcr/subscription/cancel/{1287037325.yml → 1287442108.yml} +60 -60
  38. data/spec/vcr/subscription/cancel/{1287036910.yml → 1287442352.yml} +60 -60
  39. data/spec/vcr/subscription/change1/{1287037363.yml → 1287439446.yml} +58 -58
  40. data/spec/vcr/subscription/change1/{1287037152.yml → 1287442108.yml} +59 -59
  41. data/spec/vcr/subscription/change1/{1287036910.yml → 1287442352.yml} +56 -56
  42. data/spec/vcr/subscription/{change1/1287037325.yml → change2/1287439446.yml} +64 -64
  43. data/spec/vcr/subscription/change2/{1287036910.yml → 1287442108.yml} +55 -55
  44. data/spec/vcr/subscription/change2/{1287037363.yml → 1287442352.yml} +58 -58
  45. data/spec/vcr/subscription/create/{1287037363.yml → 1287439446.yml} +27 -27
  46. data/spec/vcr/subscription/create/{1287037325.yml → 1287442108.yml} +28 -28
  47. data/spec/vcr/subscription/create/{1287037152.yml → 1287442352.yml} +28 -28
  48. data/spec/vcr/subscription/find/{1287036910.yml → 1287439446.yml} +36 -36
  49. data/spec/vcr/subscription/find/{1287037152.yml → 1287442108.yml} +38 -38
  50. data/spec/vcr/subscription/find/{1287037325.yml → 1287442352.yml} +38 -38
  51. data/spec/vcr/subscription/{refund/1287037325.yml → refund-full/1287439446.yml} +56 -56
  52. data/spec/vcr/subscription/{refund/1287037363.yml → refund-full/1287442108.yml} +58 -58
  53. data/spec/vcr/subscription/{refund/1287036910.yml → refund-full/1287442352.yml} +55 -55
  54. data/spec/vcr/subscription/refund-none/1287439446.yml +382 -0
  55. data/spec/vcr/subscription/refund-none/1287442108.yml +382 -0
  56. data/spec/vcr/subscription/refund-none/1287442352.yml +382 -0
  57. data/spec/vcr/subscription/refund-partial/1287439446.yml +382 -0
  58. data/spec/vcr/subscription/refund-partial/1287442108.yml +382 -0
  59. data/spec/vcr/subscription/refund-partial/1287442352.yml +382 -0
  60. data/spec/vcr/transaction/all/{1286674805.yml → 1287186411.yml} +104 -104
  61. data/spec/vcr/transaction/create-no-account/{1286674805.yml → 1287186411.yml} +11 -11
  62. data/spec/vcr/transaction/create-with-account/{1286674805.yml → 1287186411.yml} +26 -26
  63. data/spec/vcr/transaction/list-empty/{1286674805.yml → 1287186411.yml} +26 -26
  64. data/spec/vcr/transaction/list-filled/{1286674805.yml → 1287186411.yml} +59 -59
  65. data/spec/vcr/transaction/lookup/{1286674805.yml → 1287186411.yml} +66 -66
  66. data/spec/vcr/transaction/refund/1287186411.yml +282 -0
  67. data/spec/vcr/transaction/void/{1286674805.yml → 1287186411.yml} +87 -155
  68. metadata +92 -86
  69. data/spec/vcr/subscription/change2/1287037152.yml +0 -283
  70. data/spec/vcr/subscription/change2/1287037325.yml +0 -283
  71. data/spec/vcr/subscription/create/1287036910.yml +0 -224
  72. data/spec/vcr/subscription/find/1287037363.yml +0 -283
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Isaac Hall
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-10-13 00:00:00 -07:00
19
+ date: 2010-10-18 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -120,14 +120,14 @@ files:
120
120
  - spec/spec_helper.rb
121
121
  - spec/support/factory.rb
122
122
  - spec/support/vcr.rb
123
- - spec/vcr/account/close/1286666929.yml
124
- - spec/vcr/account/create/1286666929.yml
125
- - spec/vcr/account/create-blank/1286666929.yml
126
- - spec/vcr/account/create-duplicate/1286666929.yml
127
- - spec/vcr/account/create-min/1286666929.yml
128
- - spec/vcr/account/find/1286666929.yml
129
- - spec/vcr/account/list/1286666929.yml
130
- - spec/vcr/account/update/1286666929.yml
123
+ - spec/vcr/account/close/1287167046.yml
124
+ - spec/vcr/account/create/1287167046.yml
125
+ - spec/vcr/account/create-blank/1287167046.yml
126
+ - spec/vcr/account/create-duplicate/1287167046.yml
127
+ - spec/vcr/account/create-min/1287167046.yml
128
+ - spec/vcr/account/find/1287167046.yml
129
+ - spec/vcr/account/list/1287167046.yml
130
+ - spec/vcr/account/update/1287167046.yml
131
131
  - spec/vcr/billing/create/1286682213.yml
132
132
  - spec/vcr/billing/destroy/1286682213.yml
133
133
  - spec/vcr/billing/find/1286682213.yml
@@ -140,43 +140,46 @@ files:
140
140
  - spec/vcr/credit/create/1286681343.yml
141
141
  - spec/vcr/credit/list/1286681343.yml
142
142
  - spec/vcr/credit/lookup/1286681343.yml
143
- - spec/vcr/invoice/create/1286679184.yml
144
- - spec/vcr/invoice/list/1286679184.yml
145
- - spec/vcr/invoice/lookup/1286679184.yml
143
+ - spec/vcr/invoice/create/1287167121.yml
144
+ - spec/vcr/invoice/create-no-charges/1287167121.yml
145
+ - spec/vcr/invoice/list/1287167121.yml
146
+ - spec/vcr/invoice/lookup/1287167121.yml
146
147
  - spec/vcr/plan/all.yml
147
148
  - spec/vcr/plan/delete/1286677585.yml
148
149
  - spec/vcr/plan/find.yml
149
150
  - spec/vcr/plan/update.yml
150
- - spec/vcr/subscription/cancel/1287036910.yml
151
- - spec/vcr/subscription/cancel/1287037325.yml
152
- - spec/vcr/subscription/cancel/1287037363.yml
153
- - spec/vcr/subscription/change1/1287036910.yml
154
- - spec/vcr/subscription/change1/1287037152.yml
155
- - spec/vcr/subscription/change1/1287037325.yml
156
- - spec/vcr/subscription/change1/1287037363.yml
157
- - spec/vcr/subscription/change2/1287036910.yml
158
- - spec/vcr/subscription/change2/1287037152.yml
159
- - spec/vcr/subscription/change2/1287037325.yml
160
- - spec/vcr/subscription/change2/1287037363.yml
161
- - spec/vcr/subscription/create/1287036910.yml
162
- - spec/vcr/subscription/create/1287037152.yml
163
- - spec/vcr/subscription/create/1287037325.yml
164
- - spec/vcr/subscription/create/1287037363.yml
165
- - spec/vcr/subscription/find/1287036910.yml
166
- - spec/vcr/subscription/find/1287037152.yml
167
- - spec/vcr/subscription/find/1287037325.yml
168
- - spec/vcr/subscription/find/1287037363.yml
169
- - spec/vcr/subscription/refund/1287036910.yml
170
- - spec/vcr/subscription/refund/1287037325.yml
171
- - spec/vcr/subscription/refund/1287037363.yml
172
- - spec/vcr/transaction/all/1286674805.yml
173
- - spec/vcr/transaction/create-no-account/1286674805.yml
174
- - spec/vcr/transaction/create-with-account/1286674805.yml
175
- - spec/vcr/transaction/list-empty/1286674805.yml
176
- - spec/vcr/transaction/list-filled/1286674805.yml
177
- - spec/vcr/transaction/lookup/1286674805.yml
178
- - spec/vcr/transaction/refund/1286674805.yml
179
- - spec/vcr/transaction/void/1286674805.yml
151
+ - spec/vcr/subscription/cancel/1287439446.yml
152
+ - spec/vcr/subscription/cancel/1287442108.yml
153
+ - spec/vcr/subscription/cancel/1287442352.yml
154
+ - spec/vcr/subscription/change1/1287439446.yml
155
+ - spec/vcr/subscription/change1/1287442108.yml
156
+ - spec/vcr/subscription/change1/1287442352.yml
157
+ - spec/vcr/subscription/change2/1287439446.yml
158
+ - spec/vcr/subscription/change2/1287442108.yml
159
+ - spec/vcr/subscription/change2/1287442352.yml
160
+ - spec/vcr/subscription/create/1287439446.yml
161
+ - spec/vcr/subscription/create/1287442108.yml
162
+ - spec/vcr/subscription/create/1287442352.yml
163
+ - spec/vcr/subscription/find/1287439446.yml
164
+ - spec/vcr/subscription/find/1287442108.yml
165
+ - spec/vcr/subscription/find/1287442352.yml
166
+ - spec/vcr/subscription/refund-full/1287439446.yml
167
+ - spec/vcr/subscription/refund-full/1287442108.yml
168
+ - spec/vcr/subscription/refund-full/1287442352.yml
169
+ - spec/vcr/subscription/refund-none/1287439446.yml
170
+ - spec/vcr/subscription/refund-none/1287442108.yml
171
+ - spec/vcr/subscription/refund-none/1287442352.yml
172
+ - spec/vcr/subscription/refund-partial/1287439446.yml
173
+ - spec/vcr/subscription/refund-partial/1287442108.yml
174
+ - spec/vcr/subscription/refund-partial/1287442352.yml
175
+ - spec/vcr/transaction/all/1287186411.yml
176
+ - spec/vcr/transaction/create-no-account/1287186411.yml
177
+ - spec/vcr/transaction/create-with-account/1287186411.yml
178
+ - spec/vcr/transaction/list-empty/1287186411.yml
179
+ - spec/vcr/transaction/list-filled/1287186411.yml
180
+ - spec/vcr/transaction/lookup/1287186411.yml
181
+ - spec/vcr/transaction/refund/1287186411.yml
182
+ - spec/vcr/transaction/void/1287186411.yml
180
183
  has_rdoc: true
181
184
  homepage: http://github.com/recurly/recurly-client-ruby
182
185
  licenses: []
@@ -224,14 +227,14 @@ test_files:
224
227
  - spec/spec_helper.rb
225
228
  - spec/support/factory.rb
226
229
  - spec/support/vcr.rb
227
- - spec/vcr/account/close/1286666929.yml
228
- - spec/vcr/account/create/1286666929.yml
229
- - spec/vcr/account/create-blank/1286666929.yml
230
- - spec/vcr/account/create-duplicate/1286666929.yml
231
- - spec/vcr/account/create-min/1286666929.yml
232
- - spec/vcr/account/find/1286666929.yml
233
- - spec/vcr/account/list/1286666929.yml
234
- - spec/vcr/account/update/1286666929.yml
230
+ - spec/vcr/account/close/1287167046.yml
231
+ - spec/vcr/account/create/1287167046.yml
232
+ - spec/vcr/account/create-blank/1287167046.yml
233
+ - spec/vcr/account/create-duplicate/1287167046.yml
234
+ - spec/vcr/account/create-min/1287167046.yml
235
+ - spec/vcr/account/find/1287167046.yml
236
+ - spec/vcr/account/list/1287167046.yml
237
+ - spec/vcr/account/update/1287167046.yml
235
238
  - spec/vcr/billing/create/1286682213.yml
236
239
  - spec/vcr/billing/destroy/1286682213.yml
237
240
  - spec/vcr/billing/find/1286682213.yml
@@ -244,40 +247,43 @@ test_files:
244
247
  - spec/vcr/credit/create/1286681343.yml
245
248
  - spec/vcr/credit/list/1286681343.yml
246
249
  - spec/vcr/credit/lookup/1286681343.yml
247
- - spec/vcr/invoice/create/1286679184.yml
248
- - spec/vcr/invoice/list/1286679184.yml
249
- - spec/vcr/invoice/lookup/1286679184.yml
250
+ - spec/vcr/invoice/create/1287167121.yml
251
+ - spec/vcr/invoice/create-no-charges/1287167121.yml
252
+ - spec/vcr/invoice/list/1287167121.yml
253
+ - spec/vcr/invoice/lookup/1287167121.yml
250
254
  - spec/vcr/plan/all.yml
251
255
  - spec/vcr/plan/delete/1286677585.yml
252
256
  - spec/vcr/plan/find.yml
253
257
  - spec/vcr/plan/update.yml
254
- - spec/vcr/subscription/cancel/1287036910.yml
255
- - spec/vcr/subscription/cancel/1287037325.yml
256
- - spec/vcr/subscription/cancel/1287037363.yml
257
- - spec/vcr/subscription/change1/1287036910.yml
258
- - spec/vcr/subscription/change1/1287037152.yml
259
- - spec/vcr/subscription/change1/1287037325.yml
260
- - spec/vcr/subscription/change1/1287037363.yml
261
- - spec/vcr/subscription/change2/1287036910.yml
262
- - spec/vcr/subscription/change2/1287037152.yml
263
- - spec/vcr/subscription/change2/1287037325.yml
264
- - spec/vcr/subscription/change2/1287037363.yml
265
- - spec/vcr/subscription/create/1287036910.yml
266
- - spec/vcr/subscription/create/1287037152.yml
267
- - spec/vcr/subscription/create/1287037325.yml
268
- - spec/vcr/subscription/create/1287037363.yml
269
- - spec/vcr/subscription/find/1287036910.yml
270
- - spec/vcr/subscription/find/1287037152.yml
271
- - spec/vcr/subscription/find/1287037325.yml
272
- - spec/vcr/subscription/find/1287037363.yml
273
- - spec/vcr/subscription/refund/1287036910.yml
274
- - spec/vcr/subscription/refund/1287037325.yml
275
- - spec/vcr/subscription/refund/1287037363.yml
276
- - spec/vcr/transaction/all/1286674805.yml
277
- - spec/vcr/transaction/create-no-account/1286674805.yml
278
- - spec/vcr/transaction/create-with-account/1286674805.yml
279
- - spec/vcr/transaction/list-empty/1286674805.yml
280
- - spec/vcr/transaction/list-filled/1286674805.yml
281
- - spec/vcr/transaction/lookup/1286674805.yml
282
- - spec/vcr/transaction/refund/1286674805.yml
283
- - spec/vcr/transaction/void/1286674805.yml
258
+ - spec/vcr/subscription/cancel/1287439446.yml
259
+ - spec/vcr/subscription/cancel/1287442108.yml
260
+ - spec/vcr/subscription/cancel/1287442352.yml
261
+ - spec/vcr/subscription/change1/1287439446.yml
262
+ - spec/vcr/subscription/change1/1287442108.yml
263
+ - spec/vcr/subscription/change1/1287442352.yml
264
+ - spec/vcr/subscription/change2/1287439446.yml
265
+ - spec/vcr/subscription/change2/1287442108.yml
266
+ - spec/vcr/subscription/change2/1287442352.yml
267
+ - spec/vcr/subscription/create/1287439446.yml
268
+ - spec/vcr/subscription/create/1287442108.yml
269
+ - spec/vcr/subscription/create/1287442352.yml
270
+ - spec/vcr/subscription/find/1287439446.yml
271
+ - spec/vcr/subscription/find/1287442108.yml
272
+ - spec/vcr/subscription/find/1287442352.yml
273
+ - spec/vcr/subscription/refund-full/1287439446.yml
274
+ - spec/vcr/subscription/refund-full/1287442108.yml
275
+ - spec/vcr/subscription/refund-full/1287442352.yml
276
+ - spec/vcr/subscription/refund-none/1287439446.yml
277
+ - spec/vcr/subscription/refund-none/1287442108.yml
278
+ - spec/vcr/subscription/refund-none/1287442352.yml
279
+ - spec/vcr/subscription/refund-partial/1287439446.yml
280
+ - spec/vcr/subscription/refund-partial/1287442108.yml
281
+ - spec/vcr/subscription/refund-partial/1287442352.yml
282
+ - spec/vcr/transaction/all/1287186411.yml
283
+ - spec/vcr/transaction/create-no-account/1287186411.yml
284
+ - spec/vcr/transaction/create-with-account/1287186411.yml
285
+ - spec/vcr/transaction/list-empty/1287186411.yml
286
+ - spec/vcr/transaction/list-filled/1287186411.yml
287
+ - spec/vcr/transaction/lookup/1287186411.yml
288
+ - spec/vcr/transaction/refund/1287186411.yml
289
+ - spec/vcr/transaction/void/1287186411.yml
@@ -1,283 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code type="integer">1287037152</account-code>
10
- <company-name>Recurly Ruby Gem</company-name>
11
- <last-name>Test</last-name>
12
- <first-name>Verena</first-name>
13
- <email>verena@test.com</email>
14
- </account>
15
-
16
- headers:
17
- accept:
18
- - "*/*"
19
- connection:
20
- - close
21
- content-type:
22
- - application/xml
23
- authorization:
24
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
25
- response: !ruby/struct:VCR::Response
26
- status: !ruby/struct:VCR::ResponseStatus
27
- code: 201
28
- message: Created
29
- headers:
30
- location:
31
- - https://recurlytest3-test.recurly.com/accounts/1287037152
32
- connection:
33
- - close
34
- content-type:
35
- - application/xml; charset=utf-8
36
- x-runtime:
37
- - "715"
38
- date:
39
- - Thu, 14 Oct 2010 06:19:36 GMT
40
- server:
41
- - nginx/0.7.65
42
- content-length:
43
- - "553"
44
- set-cookie:
45
- - account_credentials=b6c9410e8c8db488a446adc6699a057692a0b19b0656883a5e7c46be3f2e291594a882bb75e3e211cbf7a21e7572bfcd7d2a5be5e421ad81e4352a9ee3fa8cdb%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
46
- - ""
47
- - _recurly_session=7ffb69121972632b06afcc10f8f67415; domain=.recurly.com; path=/; Secure; HttpOnly
48
- cache-control:
49
- - no-cache
50
- body: |
51
- <?xml version="1.0" encoding="UTF-8"?>
52
- <account>
53
- <id>1287037152</id>
54
- <account_code>1287037152</account_code>
55
- <username></username>
56
- <email>verena@test.com</email>
57
- <first_name>Verena</first_name>
58
- <last_name>Test</last_name>
59
- <company_name>Recurly Ruby Gem</company_name>
60
- <balance_in_cents type="integer">0</balance_in_cents>
61
- <closed type="boolean">false</closed>
62
- <hosted_login_token>a0d431f5024a40ddb98d7b89834b5c8c</hosted_login_token>
63
- <created_at type="datetime">2010-10-14T06:19:35Z</created_at>
64
- <state>active</state>
65
- </account>
66
-
67
- http_version: "1.1"
68
- - !ruby/struct:VCR::HTTPInteraction
69
- request: !ruby/struct:VCR::Request
70
- method: :get
71
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/company/plans/paid.xml
72
- body:
73
- headers:
74
- accept:
75
- - application/xml
76
- connection:
77
- - close
78
- authorization:
79
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
80
- response: !ruby/struct:VCR::Response
81
- status: !ruby/struct:VCR::ResponseStatus
82
- code: 200
83
- message: OK
84
- headers:
85
- x-ua-compatible:
86
- - IE=Edge
87
- etag:
88
- - "\"31910d9b30fecc5e62f25a1ce00278e0\""
89
- connection:
90
- - close
91
- content-type:
92
- - application/xml; charset=utf-8
93
- x-runtime:
94
- - "15"
95
- date:
96
- - Thu, 14 Oct 2010 06:19:36 GMT
97
- server:
98
- - nginx/0.7.65
99
- content-length:
100
- - "1150"
101
- set-cookie:
102
- - _recurly_session=eedb11b15b416fd86ae2a9628a3c68d5; domain=.recurly.com; path=/; Secure; HttpOnly
103
- cache-control:
104
- - private, max-age=0, must-revalidate
105
- body: |
106
- <?xml version="1.0" encoding="UTF-8"?>
107
- <plan>
108
- <plan_code>paid</plan_code>
109
- <name>Paid</name>
110
- <description></description>
111
- <success_url></success_url>
112
- <cancel_url></cancel_url>
113
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
114
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
115
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
116
- <plan_interval_length type="integer">1</plan_interval_length>
117
- <plan_interval_unit>months</plan_interval_unit>
118
- <trial_interval_length type="integer">0</trial_interval_length>
119
- <trial_interval_unit>months</trial_interval_unit>
120
- <latest_version depreciated="true">
121
- <version type="integer">1</version>
122
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
123
- <setup_fee_in_cents type="integer">0</setup_fee_in_cents>
124
- <plan_interval_length type="integer">1</plan_interval_length>
125
- <plan_interval_unit>months</plan_interval_unit>
126
- <trial_interval_length type="integer">0</trial_interval_length>
127
- <trial_interval_unit>months</trial_interval_unit>
128
- <created_at type="datetime">2010-09-19T00:56:05Z</created_at>
129
- </latest_version>
130
- </plan>
131
-
132
- http_version: "1.1"
133
- - !ruby/struct:VCR::HTTPInteraction
134
- request: !ruby/struct:VCR::Request
135
- method: :post
136
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287037152/subscription.xml
137
- body: |
138
- <?xml version="1.0" encoding="UTF-8"?>
139
- <subscription>
140
- <quantity type="integer">1</quantity>
141
- <plan-code>paid</plan-code>
142
- <account>
143
- <created-at type="datetime">2010-10-14T06:19:35Z</created-at>
144
- <hosted-login-token>a0d431f5024a40ddb98d7b89834b5c8c</hosted-login-token>
145
- <account-code>1287037152</account-code>
146
- <company-name>Recurly Ruby Gem</company-name>
147
- <closed type="boolean">false</closed>
148
- <username type="yaml" nil="true"></username>
149
- <id>1287037152</id>
150
- <last-name>Test</last-name>
151
- <billing-info>
152
- <city>San Francisco</city>
153
- <address1>123 Test St</address1>
154
- <zip>94115</zip>
155
- <country>US</country>
156
- <credit-card>
157
- <number>1</number>
158
- <month type="integer">10</month>
159
- <year type="integer">2011</year>
160
- <verification-value>123</verification-value>
161
- </credit-card>
162
- <last-name>Test</last-name>
163
- <first-name>Verena</first-name>
164
- <state>CA</state>
165
- </billing-info>
166
- <balance-in-cents type="integer">0</balance-in-cents>
167
- <state>active</state>
168
- <first-name>Verena</first-name>
169
- <email>verena@test.com</email>
170
- </account>
171
- </subscription>
172
-
173
- headers:
174
- accept:
175
- - "*/*"
176
- connection:
177
- - close
178
- content-type:
179
- - application/xml
180
- authorization:
181
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
182
- response: !ruby/struct:VCR::Response
183
- status: !ruby/struct:VCR::ResponseStatus
184
- code: 201
185
- message: Created
186
- headers:
187
- connection:
188
- - close
189
- content-type:
190
- - application/xml; charset=utf-8
191
- x-runtime:
192
- - "611"
193
- date:
194
- - Thu, 14 Oct 2010 06:19:38 GMT
195
- server:
196
- - nginx/0.7.65
197
- content-length:
198
- - "830"
199
- set-cookie:
200
- - _recurly_session=52d389a9d03cf5284dc32b4edc77faeb; domain=.recurly.com; path=/; Secure; HttpOnly
201
- cache-control:
202
- - no-cache
203
- body: |
204
- <?xml version="1.0" encoding="UTF-8"?>
205
- <subscription>
206
- <id>1287037152</id>
207
- <account_code>1287037152</account_code>
208
- <plan>
209
- <plan_code>paid</plan_code>
210
- <name>Paid</name>
211
- </plan>
212
- <state>active</state>
213
- <quantity type="integer">1</quantity>
214
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
215
- <activated_at type="datetime">2010-10-14T06:19:37Z</activated_at>
216
- <canceled_at nil="true" type="datetime"></canceled_at>
217
- <expires_at nil="true" type="datetime"></expires_at>
218
- <current_period_started_at type="datetime">2010-10-14T06:19:37Z</current_period_started_at>
219
- <current_period_ends_at type="datetime">2010-11-14T06:19:37Z</current_period_ends_at>
220
- <trial_started_at nil="true" type="datetime"></trial_started_at>
221
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
222
- </subscription>
223
-
224
- http_version: "1.1"
225
- - !ruby/struct:VCR::HTTPInteraction
226
- request: !ruby/struct:VCR::Request
227
- method: :get
228
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/1287037152/subscription.xml
229
- body:
230
- headers:
231
- accept:
232
- - application/xml
233
- connection:
234
- - close
235
- authorization:
236
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
237
- response: !ruby/struct:VCR::Response
238
- status: !ruby/struct:VCR::ResponseStatus
239
- code: 200
240
- message: OK
241
- headers:
242
- x-ua-compatible:
243
- - IE=Edge
244
- etag:
245
- - "\"931d26eb2b0842dddd3e04692c3f9391\""
246
- connection:
247
- - close
248
- content-type:
249
- - application/xml; charset=utf-8
250
- x-runtime:
251
- - "17"
252
- date:
253
- - Thu, 14 Oct 2010 06:19:38 GMT
254
- server:
255
- - nginx/0.7.65
256
- content-length:
257
- - "830"
258
- set-cookie:
259
- - _recurly_session=6d6ff928785bd83a445ca9e8a85a02d0; domain=.recurly.com; path=/; Secure; HttpOnly
260
- cache-control:
261
- - private, max-age=0, must-revalidate
262
- body: |
263
- <?xml version="1.0" encoding="UTF-8"?>
264
- <subscription>
265
- <id>1287037152</id>
266
- <account_code>1287037152</account_code>
267
- <plan>
268
- <plan_code>paid</plan_code>
269
- <name>Paid</name>
270
- </plan>
271
- <state>active</state>
272
- <quantity type="integer">1</quantity>
273
- <total_amount_in_cents type="integer">1000</total_amount_in_cents>
274
- <activated_at type="datetime">2010-10-14T06:19:37Z</activated_at>
275
- <canceled_at nil="true" type="datetime"></canceled_at>
276
- <expires_at nil="true" type="datetime"></expires_at>
277
- <current_period_started_at type="datetime">2010-10-14T06:19:37Z</current_period_started_at>
278
- <current_period_ends_at type="datetime">2010-11-14T06:19:37Z</current_period_ends_at>
279
- <trial_started_at nil="true" type="datetime"></trial_started_at>
280
- <trial_ends_at nil="true" type="datetime"></trial_ends_at>
281
- </subscription>
282
-
283
- http_version: "1.1"