recurly 0.4.7 → 0.4.8

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 (77) hide show
  1. data/README.md +6 -0
  2. data/lib/recurly/base.rb +15 -14
  3. data/lib/recurly/subscription.rb +2 -0
  4. data/lib/recurly/version.rb +1 -1
  5. data/spec/config/recurly.yml +4 -10
  6. data/spec/integration/transparent_spec.rb +72 -0
  7. data/spec/unit/transparent_spec.rb +6 -6
  8. data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
  9. data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
  10. data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
  11. data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
  12. data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
  13. data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
  14. data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
  15. data/spec/vcr/account/list/1296674173.yml +55 -0
  16. data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
  17. data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
  18. data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
  19. data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
  20. data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
  21. data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
  22. data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
  23. data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
  24. data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
  25. data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
  26. data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
  27. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  28. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  29. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  30. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  31. data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
  32. data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
  33. data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
  34. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  35. data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
  36. data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
  37. data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
  38. data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
  39. data/spec/vcr/plan/all.yml +117 -98
  40. data/spec/vcr/plan/delete/1296674173.yml +225 -0
  41. data/spec/vcr/plan/find.yml +66 -36
  42. data/spec/vcr/plan/update.yml +64 -144
  43. data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
  44. data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
  45. data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
  46. data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
  47. data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
  48. data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
  49. data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
  50. data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
  51. data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
  52. data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
  53. data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
  54. data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
  55. data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
  56. data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
  57. data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
  58. data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
  59. data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
  60. data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
  61. data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
  62. data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
  63. data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
  64. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  65. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  66. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  67. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  68. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
  69. metadata +97 -155
  70. data/spec/vcr/account/list/1301979678.yml +0 -1588
  71. data/spec/vcr/credit/create/1299714599.yml +0 -186
  72. data/spec/vcr/credit/delete/1299714599.yml +0 -265
  73. data/spec/vcr/credit/list/1299714599.yml +0 -330
  74. data/spec/vcr/credit/lookup/1299714599.yml +0 -186
  75. data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
  76. data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
  77. data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>transaction-list-initial-1301883347</account-code>
9
+ <account-code>transaction-list-initial-1296674173</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/transaction-list-initial-1301883347
36
+ - http://litle-test.recurly.local:3000/accounts/transaction-list-initial-1296674173
41
37
  x-runtime:
42
- - "287"
38
+ - "756"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "603"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 18:05:12 GMT
46
+ - Thu, 03 Feb 2011 22:24:46 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=a0cf5f2ee9ed20f67af9a74fdfb7ec52; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=6829a91731b0d3d1d721a023804b84d256240f1a2af3d3d12e1be6ff07ecd9f166059ab9dcb27e3b687952e944b4c0385f4d2f5ec22d0bdb95297b2d10dcb281%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=f57d7a5025dcbecf7a145f204d26f094; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>transaction-list-initial-1301883347</id>
59
- <account_code>transaction-list-initial-1301883347</account_code>
56
+ <id>transaction-list-initial-1296674173</id>
57
+ <account_code>transaction-list-initial-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>2b00609a4eca482e891c7367f7a50478</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:05:12Z</created_at>
65
+ <hosted_login_token>b48cdfeeaf0e40dfbf4393913c950338</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:24:46Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,12 +71,10 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :put
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-list-initial-1301883347/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-initial-1296674173/billing_info.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <billing-info>
80
- <first-name>Verena</first-name>
81
- <last-name>Test</last-name>
82
78
  <address1>123 Test St</address1>
83
79
  <city>San Francisco</city>
84
80
  <state>CA</state>
@@ -87,21 +83,23 @@
87
83
  <credit-card>
88
84
  <number>4111111111111111</number>
89
85
  <year type="integer">2012</year>
90
- <month type="integer">4</month>
86
+ <month type="integer">2</month>
91
87
  <verification-value>123</verification-value>
92
88
  </credit-card>
93
- <account-code>transaction-list-initial-1301883347</account-code>
89
+ <account-code>transaction-list-initial-1296674173</account-code>
90
+ <first-name>Verena</first-name>
91
+ <last-name>Test</last-name>
94
92
  </billing-info>
95
93
 
96
94
  headers:
97
95
  authorization:
98
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
- user-agent:
100
- - Recurly Ruby Client v0.4.6
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
101
97
  content-type:
102
98
  - application/xml
103
99
  accept:
104
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
105
103
  connection:
106
104
  - close
107
105
  response: !ruby/struct:VCR::Response
@@ -110,27 +108,27 @@
110
108
  message: "OK "
111
109
  headers:
112
110
  x-runtime:
113
- - "1615"
111
+ - "1551"
114
112
  content-type:
115
113
  - application/xml; charset=utf-8
116
114
  etag:
117
- - "\"7c5945c87f582323c9f06900b73ccd69\""
115
+ - "\"7cee784d5ea5ce499c2589a8ec3304f1\""
118
116
  cache-control:
119
117
  - private, max-age=0, must-revalidate
120
118
  content-length:
121
119
  - "650"
122
120
  server:
123
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
124
122
  date:
125
- - Thu, 21 Apr 2011 18:05:16 GMT
123
+ - Thu, 03 Feb 2011 22:24:50 GMT
126
124
  connection:
127
125
  - close
128
126
  set-cookie:
129
- - _recurly_session=e53a4573835e9ea349e9c8a8db62e60d; domain=.recurly.local; path=/; HttpOnly
127
+ - _recurly_session=5844d8391bc3d861be1ef128a862a98d; domain=.recurly.local; path=/; HttpOnly
130
128
  body: |
131
129
  <?xml version="1.0" encoding="UTF-8"?>
132
130
  <billing_info>
133
- <account_code>transaction-list-initial-1301883347</account_code>
131
+ <account_code>transaction-list-initial-1296674173</account_code>
134
132
  <first_name>Verena</first_name>
135
133
  <last_name>Test</last_name>
136
134
  <address1>123 Test St</address1>
@@ -145,27 +143,27 @@
145
143
  <credit_card>
146
144
  <type>visa</type>
147
145
  <last_four>1111</last_four>
148
- <month type="integer">4</month>
146
+ <month type="integer">2</month>
149
147
  <year type="integer">2012</year>
150
148
  </credit_card>
151
- <updated_at type="datetime">2011-04-21T18:05:16Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:24:50Z</updated_at>
152
150
  </billing_info>
153
151
 
154
152
  http_version: "1.1"
155
153
  - !ruby/struct:VCR::HTTPInteraction
156
154
  request: !ruby/struct:VCR::Request
157
155
  method: :get
158
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-list-initial-1301883347/transactions
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-initial-1296674173/transactions
159
157
  body:
160
158
  headers:
161
159
  authorization:
162
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
163
- user-agent:
164
- - Recurly Ruby Client v0.4.6
160
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
165
161
  accept:
166
162
  - application/xml
167
163
  accept-encoding:
168
164
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
165
+ user-agent:
166
+ - Ruby
169
167
  connection:
170
168
  - close
171
169
  response: !ruby/struct:VCR::Response
@@ -174,23 +172,23 @@
174
172
  message: "OK "
175
173
  headers:
176
174
  x-runtime:
177
- - "300"
175
+ - "340"
178
176
  content-type:
179
177
  - application/xml; charset=utf-8
180
178
  etag:
181
- - "\"f349711cbaf4c52d780a3f6adf39f7ec\""
179
+ - "\"71f525e705767e13572175b496d14317\""
182
180
  cache-control:
183
181
  - private, max-age=0, must-revalidate
184
182
  content-length:
185
183
  - "1004"
186
184
  server:
187
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
185
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
188
186
  date:
189
- - Thu, 21 Apr 2011 18:05:18 GMT
187
+ - Thu, 03 Feb 2011 22:24:52 GMT
190
188
  connection:
191
189
  - close
192
190
  set-cookie:
193
- - _recurly_session=042d0f41a5ac3c38b57641b147c36995; domain=.recurly.local; path=/; HttpOnly
191
+ - _recurly_session=c4917c8f49ccb2a53baa1c8ca0e1df4e; domain=.recurly.local; path=/; HttpOnly
194
192
  body: |
195
193
  <?xml version="1.0" encoding="UTF-8"?>
196
194
  <transactions type="collection">
@@ -198,10 +196,10 @@
198
196
  <per_page type="integer">50</per_page>
199
197
  <total_entries type="integer">1</total_entries>
200
198
  <transaction type="Payment">
201
- <id>75995243058442c2ac58f17dfa395f76</id>
202
- <account_code>transaction-list-initial-1301883347</account_code>
199
+ <id>b5e8651913364564a56d264ee4234d8c</id>
200
+ <account_code>transaction-list-initial-1296674173</account_code>
203
201
  <action>authorization</action>
204
- <date type="datetime">2011-04-21T18:05:15Z</date>
202
+ <date type="datetime">2011-02-03T22:24:49Z</date>
205
203
  <amount_in_cents type="integer">0</amount_in_cents>
206
204
  <status>success</status>
207
205
  <message>Test Gateway: Successful test transaction</message>
@@ -2,31 +2,27 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <account>
9
- <account-code>transaction-lookup-1301883347</account-code>
9
+ <account-code>transaction-lookup-1296674173</account-code>
10
10
  <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
12
  <email>verena@test.com</email>
13
13
  <company-name>Recurly Ruby Gem</company-name>
14
- <billing-info>
15
- <credit-card>
16
- </credit-card>
17
- </billing-info>
18
14
  <accept-language type="yaml" nil="true"></accept-language>
19
15
  </account>
20
16
 
21
17
  headers:
22
18
  authorization:
23
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
24
- user-agent:
25
- - Recurly Ruby Client v0.4.6
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
26
20
  content-type:
27
21
  - application/xml
28
22
  accept:
29
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
30
26
  connection:
31
27
  - close
32
28
  response: !ruby/struct:VCR::Response
@@ -37,26 +33,28 @@
37
33
  cache-control:
38
34
  - no-cache
39
35
  location:
40
- - http://app.recurly.local:3000/accounts/transaction-lookup-1301883347
36
+ - http://litle-test.recurly.local:3000/accounts/transaction-lookup-1296674173
41
37
  x-runtime:
42
- - "302"
38
+ - "795"
43
39
  content-type:
44
40
  - application/xml; charset=utf-8
45
41
  content-length:
46
42
  - "591"
47
43
  server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
45
  date:
50
- - Thu, 21 Apr 2011 18:05:42 GMT
46
+ - Thu, 03 Feb 2011 22:25:24 GMT
51
47
  connection:
52
48
  - close
53
49
  set-cookie:
54
- - _recurly_session=a1c870bd2888cd17db4b4d9b0d3e30a8; domain=.recurly.local; path=/; HttpOnly
50
+ - account_credentials=211b6d5f6d49ff3a0cf1edf92c97cc1a9f1128ea6aaab7369f79b8cb1179f40259cf377d2d201f00d67961b505e601942f120145cc37a82ba91e8f1f0ff9d374%3A%3A; domain=.recurly.local; path=/
51
+ - ""
52
+ - _recurly_session=5d1574b5c9821bacec6a2f7ee51a07b1; domain=.recurly.local; path=/; HttpOnly
55
53
  body: |
56
54
  <?xml version="1.0" encoding="UTF-8"?>
57
55
  <account>
58
- <id>transaction-lookup-1301883347</id>
59
- <account_code>transaction-lookup-1301883347</account_code>
56
+ <id>transaction-lookup-1296674173</id>
57
+ <account_code>transaction-lookup-1296674173</account_code>
60
58
  <username></username>
61
59
  <email>verena@test.com</email>
62
60
  <first_name>Verena</first_name>
@@ -64,8 +62,8 @@
64
62
  <company_name>Recurly Ruby Gem</company_name>
65
63
  <balance_in_cents type="integer">0</balance_in_cents>
66
64
  <closed type="boolean">false</closed>
67
- <hosted_login_token>bfe98e1a735245549de5556a5bd5ac86</hosted_login_token>
68
- <created_at type="datetime">2011-04-21T18:05:41Z</created_at>
65
+ <hosted_login_token>712960205f044740bce96422ce7563db</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:25:24Z</created_at>
69
67
  <state>active</state>
70
68
  </account>
71
69
 
@@ -73,12 +71,10 @@
73
71
  - !ruby/struct:VCR::HTTPInteraction
74
72
  request: !ruby/struct:VCR::Request
75
73
  method: :put
76
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/accounts/transaction-lookup-1301883347/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-lookup-1296674173/billing_info.xml
77
75
  body: |
78
76
  <?xml version="1.0" encoding="UTF-8"?>
79
77
  <billing-info>
80
- <first-name>Verena</first-name>
81
- <last-name>Test</last-name>
82
78
  <address1>123 Test St</address1>
83
79
  <city>San Francisco</city>
84
80
  <state>CA</state>
@@ -87,21 +83,23 @@
87
83
  <credit-card>
88
84
  <number>4111111111111111</number>
89
85
  <year type="integer">2012</year>
90
- <month type="integer">4</month>
86
+ <month type="integer">2</month>
91
87
  <verification-value>123</verification-value>
92
88
  </credit-card>
93
- <account-code>transaction-lookup-1301883347</account-code>
89
+ <account-code>transaction-lookup-1296674173</account-code>
90
+ <first-name>Verena</first-name>
91
+ <last-name>Test</last-name>
94
92
  </billing-info>
95
93
 
96
94
  headers:
97
95
  authorization:
98
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
99
- user-agent:
100
- - Recurly Ruby Client v0.4.6
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
101
97
  content-type:
102
98
  - application/xml
103
99
  accept:
104
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
105
103
  connection:
106
104
  - close
107
105
  response: !ruby/struct:VCR::Response
@@ -110,27 +108,27 @@
110
108
  message: "OK "
111
109
  headers:
112
110
  x-runtime:
113
- - "1380"
111
+ - "1582"
114
112
  content-type:
115
113
  - application/xml; charset=utf-8
116
114
  etag:
117
- - "\"938950aa1fd2c7bb7cb101d985388096\""
115
+ - "\"c80e30a13ec7214b2ab68a6579ace5a5\""
118
116
  cache-control:
119
117
  - private, max-age=0, must-revalidate
120
118
  content-length:
121
119
  - "644"
122
120
  server:
123
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
124
122
  date:
125
- - Thu, 21 Apr 2011 18:05:45 GMT
123
+ - Thu, 03 Feb 2011 22:25:28 GMT
126
124
  connection:
127
125
  - close
128
126
  set-cookie:
129
- - _recurly_session=383d2d237cfb30baec434ba6e46bc4ec; domain=.recurly.local; path=/; HttpOnly
127
+ - _recurly_session=77b936afb9db668fb71c113d19abf155; domain=.recurly.local; path=/; HttpOnly
130
128
  body: |
131
129
  <?xml version="1.0" encoding="UTF-8"?>
132
130
  <billing_info>
133
- <account_code>transaction-lookup-1301883347</account_code>
131
+ <account_code>transaction-lookup-1296674173</account_code>
134
132
  <first_name>Verena</first_name>
135
133
  <last_name>Test</last_name>
136
134
  <address1>123 Test St</address1>
@@ -145,26 +143,22 @@
145
143
  <credit_card>
146
144
  <type>visa</type>
147
145
  <last_four>1111</last_four>
148
- <month type="integer">4</month>
146
+ <month type="integer">2</month>
149
147
  <year type="integer">2012</year>
150
148
  </credit_card>
151
- <updated_at type="datetime">2011-04-21T18:05:45Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:25:28Z</updated_at>
152
150
  </billing_info>
153
151
 
154
152
  http_version: "1.1"
155
153
  - !ruby/struct:VCR::HTTPInteraction
156
154
  request: !ruby/struct:VCR::Request
157
155
  method: :post
158
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
159
157
  body: |
160
158
  <?xml version="1.0" encoding="UTF-8"?>
161
159
  <transaction>
162
160
  <account>
163
- <account-code>transaction-lookup-1301883347</account-code>
164
- <billing-info>
165
- <credit-card>
166
- </credit-card>
167
- </billing-info>
161
+ <account-code>transaction-lookup-1296674173</account-code>
168
162
  </account>
169
163
  <amount-in-cents type="integer">100</amount-in-cents>
170
164
  <description>one</description>
@@ -172,13 +166,13 @@
172
166
 
173
167
  headers:
174
168
  authorization:
175
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
176
- user-agent:
177
- - Recurly Ruby Client v0.4.6
169
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
178
170
  content-type:
179
171
  - application/xml
180
172
  accept:
181
173
  - "*/*"
174
+ user-agent:
175
+ - Ruby
182
176
  connection:
183
177
  - close
184
178
  response: !ruby/struct:VCR::Response
@@ -189,28 +183,28 @@
189
183
  cache-control:
190
184
  - no-cache
191
185
  location:
192
- - http://app.recurly.local:3000/transactions/1797ad4d05ed46969fc479dbb851225b
186
+ - http://litle-test.recurly.local:3000/transactions/1379303df5f4493f9462cb6463232bf0
193
187
  x-runtime:
194
- - "1967"
188
+ - "7554"
195
189
  content-type:
196
190
  - application/xml; charset=utf-8
197
191
  content-length:
198
192
  - "859"
199
193
  server:
200
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
194
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
201
195
  date:
202
- - Thu, 21 Apr 2011 18:05:48 GMT
196
+ - Thu, 03 Feb 2011 22:25:37 GMT
203
197
  connection:
204
198
  - close
205
199
  set-cookie:
206
- - _recurly_session=11c0fb48834dfa08fc255087ee48a2b9; domain=.recurly.local; path=/; HttpOnly
200
+ - _recurly_session=d071f72cfad159c92a5db9d2ef0b2c8e; domain=.recurly.local; path=/; HttpOnly
207
201
  body: |
208
202
  <?xml version="1.0" encoding="UTF-8"?>
209
203
  <transaction type="Payment">
210
- <id>1797ad4d05ed46969fc479dbb851225b</id>
211
- <account_code>transaction-lookup-1301883347</account_code>
204
+ <id>1379303df5f4493f9462cb6463232bf0</id>
205
+ <account_code>transaction-lookup-1296674173</account_code>
212
206
  <action>purchase</action>
213
- <date type="datetime">2011-04-21T18:05:48Z</date>
207
+ <date type="datetime">2011-02-03T22:25:31Z</date>
214
208
  <amount_in_cents type="integer">100</amount_in_cents>
215
209
  <status>success</status>
216
210
  <message>Test Gateway: Successful test transaction</message>
@@ -232,16 +226,12 @@
232
226
  - !ruby/struct:VCR::HTTPInteraction
233
227
  request: !ruby/struct:VCR::Request
234
228
  method: :post
235
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
229
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
236
230
  body: |
237
231
  <?xml version="1.0" encoding="UTF-8"?>
238
232
  <transaction>
239
233
  <account>
240
- <account-code>transaction-lookup-1301883347</account-code>
241
- <billing-info>
242
- <credit-card>
243
- </credit-card>
244
- </billing-info>
234
+ <account-code>transaction-lookup-1296674173</account-code>
245
235
  </account>
246
236
  <amount-in-cents type="integer">200</amount-in-cents>
247
237
  <description>two</description>
@@ -249,13 +239,13 @@
249
239
 
250
240
  headers:
251
241
  authorization:
252
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
253
- user-agent:
254
- - Recurly Ruby Client v0.4.6
242
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
255
243
  content-type:
256
244
  - application/xml
257
245
  accept:
258
246
  - "*/*"
247
+ user-agent:
248
+ - Ruby
259
249
  connection:
260
250
  - close
261
251
  response: !ruby/struct:VCR::Response
@@ -266,28 +256,28 @@
266
256
  cache-control:
267
257
  - no-cache
268
258
  location:
269
- - http://app.recurly.local:3000/transactions/e31319e7f3244cca95ecb7ce6c8a2a37
259
+ - http://litle-test.recurly.local:3000/transactions/459748731c4847228f50512b0d75369a
270
260
  x-runtime:
271
- - "1999"
261
+ - "4053"
272
262
  content-type:
273
263
  - application/xml; charset=utf-8
274
264
  content-length:
275
265
  - "859"
276
266
  server:
277
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
267
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
278
268
  date:
279
- - Thu, 21 Apr 2011 18:05:52 GMT
269
+ - Thu, 03 Feb 2011 22:25:43 GMT
280
270
  connection:
281
271
  - close
282
272
  set-cookie:
283
- - _recurly_session=3555cae503ca5b705953ec3676b65937; domain=.recurly.local; path=/; HttpOnly
273
+ - _recurly_session=428fda657a2c21d010532d9db6b73a34; domain=.recurly.local; path=/; HttpOnly
284
274
  body: |
285
275
  <?xml version="1.0" encoding="UTF-8"?>
286
276
  <transaction type="Payment">
287
- <id>e31319e7f3244cca95ecb7ce6c8a2a37</id>
288
- <account_code>transaction-lookup-1301883347</account_code>
277
+ <id>459748731c4847228f50512b0d75369a</id>
278
+ <account_code>transaction-lookup-1296674173</account_code>
289
279
  <action>purchase</action>
290
- <date type="datetime">2011-04-21T18:05:51Z</date>
280
+ <date type="datetime">2011-02-03T22:25:41Z</date>
291
281
  <amount_in_cents type="integer">200</amount_in_cents>
292
282
  <status>success</status>
293
283
  <message>Test Gateway: Successful test transaction</message>
@@ -309,16 +299,12 @@
309
299
  - !ruby/struct:VCR::HTTPInteraction
310
300
  request: !ruby/struct:VCR::Request
311
301
  method: :post
312
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions.xml
302
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
313
303
  body: |
314
304
  <?xml version="1.0" encoding="UTF-8"?>
315
305
  <transaction>
316
306
  <account>
317
- <account-code>transaction-lookup-1301883347</account-code>
318
- <billing-info>
319
- <credit-card>
320
- </credit-card>
321
- </billing-info>
307
+ <account-code>transaction-lookup-1296674173</account-code>
322
308
  </account>
323
309
  <amount-in-cents type="integer">300</amount-in-cents>
324
310
  <description>three</description>
@@ -326,13 +312,13 @@
326
312
 
327
313
  headers:
328
314
  authorization:
329
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
330
- user-agent:
331
- - Recurly Ruby Client v0.4.6
315
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
332
316
  content-type:
333
317
  - application/xml
334
318
  accept:
335
319
  - "*/*"
320
+ user-agent:
321
+ - Ruby
336
322
  connection:
337
323
  - close
338
324
  response: !ruby/struct:VCR::Response
@@ -343,28 +329,28 @@
343
329
  cache-control:
344
330
  - no-cache
345
331
  location:
346
- - http://app.recurly.local:3000/transactions/a087dcbffabc40c287075578398d14fc
332
+ - http://litle-test.recurly.local:3000/transactions/a2ddbf705ce74742a902e3a52f9f5891
347
333
  x-runtime:
348
- - "2053"
334
+ - "4164"
349
335
  content-type:
350
336
  - application/xml; charset=utf-8
351
337
  content-length:
352
338
  - "859"
353
339
  server:
354
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
340
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
355
341
  date:
356
- - Thu, 21 Apr 2011 18:05:56 GMT
342
+ - Thu, 03 Feb 2011 22:25:49 GMT
357
343
  connection:
358
344
  - close
359
345
  set-cookie:
360
- - _recurly_session=b75ea58d252adfce813d51ab93e2e360; domain=.recurly.local; path=/; HttpOnly
346
+ - _recurly_session=04775f01b3cbad4b59e309d9d17cca7b; domain=.recurly.local; path=/; HttpOnly
361
347
  body: |
362
348
  <?xml version="1.0" encoding="UTF-8"?>
363
349
  <transaction type="Payment">
364
- <id>a087dcbffabc40c287075578398d14fc</id>
365
- <account_code>transaction-lookup-1301883347</account_code>
350
+ <id>a2ddbf705ce74742a902e3a52f9f5891</id>
351
+ <account_code>transaction-lookup-1296674173</account_code>
366
352
  <action>purchase</action>
367
- <date type="datetime">2011-04-21T18:05:55Z</date>
353
+ <date type="datetime">2011-02-03T22:25:47Z</date>
368
354
  <amount_in_cents type="integer">300</amount_in_cents>
369
355
  <status>success</status>
370
356
  <message>Test Gateway: Successful test transaction</message>
@@ -386,17 +372,17 @@
386
372
  - !ruby/struct:VCR::HTTPInteraction
387
373
  request: !ruby/struct:VCR::Request
388
374
  method: :get
389
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/1797ad4d05ed46969fc479dbb851225b.xml?account_code=transaction-lookup-1301883347
375
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions/1379303df5f4493f9462cb6463232bf0.xml?account_code=transaction-lookup-1296674173
390
376
  body:
391
377
  headers:
392
378
  authorization:
393
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
394
- user-agent:
395
- - Recurly Ruby Client v0.4.6
379
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
396
380
  accept:
397
381
  - application/xml
398
382
  accept-encoding:
399
383
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
384
+ user-agent:
385
+ - Ruby
400
386
  connection:
401
387
  - close
402
388
  response: !ruby/struct:VCR::Response
@@ -405,30 +391,30 @@
405
391
  message: "OK "
406
392
  headers:
407
393
  x-runtime:
408
- - "405"
394
+ - "476"
409
395
  content-type:
410
396
  - application/xml; charset=utf-8
411
397
  etag:
412
- - "\"d8057466d2be64af572a66af5c286df6\""
398
+ - "\"329b40190410eb00fd3ded7ba64cf182\""
413
399
  cache-control:
414
400
  - private, max-age=0, must-revalidate
415
401
  content-length:
416
402
  - "859"
417
403
  server:
418
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
404
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
419
405
  date:
420
- - Thu, 21 Apr 2011 18:05:58 GMT
406
+ - Thu, 03 Feb 2011 22:25:52 GMT
421
407
  connection:
422
408
  - close
423
409
  set-cookie:
424
- - _recurly_session=ffa6a2119626f9feb860a2c31fce2671; domain=.recurly.local; path=/; HttpOnly
410
+ - _recurly_session=dce4525391518fdad1cddca2d69445c6; domain=.recurly.local; path=/; HttpOnly
425
411
  body: |
426
412
  <?xml version="1.0" encoding="UTF-8"?>
427
413
  <transaction type="Payment">
428
- <id>1797ad4d05ed46969fc479dbb851225b</id>
429
- <account_code>transaction-lookup-1301883347</account_code>
414
+ <id>1379303df5f4493f9462cb6463232bf0</id>
415
+ <account_code>transaction-lookup-1296674173</account_code>
430
416
  <action>purchase</action>
431
- <date type="datetime">2011-04-21T18:05:48Z</date>
417
+ <date type="datetime">2011-02-03T22:25:31Z</date>
432
418
  <amount_in_cents type="integer">100</amount_in_cents>
433
419
  <status>success</status>
434
420
  <message>Test Gateway: Successful test transaction</message>
@@ -450,17 +436,17 @@
450
436
  - !ruby/struct:VCR::HTTPInteraction
451
437
  request: !ruby/struct:VCR::Request
452
438
  method: :get
453
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/e31319e7f3244cca95ecb7ce6c8a2a37.xml?account_code=transaction-lookup-1301883347
439
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions/459748731c4847228f50512b0d75369a.xml?account_code=transaction-lookup-1296674173
454
440
  body:
455
441
  headers:
456
442
  authorization:
457
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
458
- user-agent:
459
- - Recurly Ruby Client v0.4.6
443
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
460
444
  accept:
461
445
  - application/xml
462
446
  accept-encoding:
463
447
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
448
+ user-agent:
449
+ - Ruby
464
450
  connection:
465
451
  - close
466
452
  response: !ruby/struct:VCR::Response
@@ -469,30 +455,30 @@
469
455
  message: "OK "
470
456
  headers:
471
457
  x-runtime:
472
- - "401"
458
+ - "413"
473
459
  content-type:
474
460
  - application/xml; charset=utf-8
475
461
  etag:
476
- - "\"efa036c20cbead52ea2d6737350e25be\""
462
+ - "\"10b2ac53c78837e544bba13cad9ef4b4\""
477
463
  cache-control:
478
464
  - private, max-age=0, must-revalidate
479
465
  content-length:
480
466
  - "859"
481
467
  server:
482
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
468
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
483
469
  date:
484
- - Thu, 21 Apr 2011 18:06:00 GMT
470
+ - Thu, 03 Feb 2011 22:25:54 GMT
485
471
  connection:
486
472
  - close
487
473
  set-cookie:
488
- - _recurly_session=8fb6444c641698c745da16d705385bc4; domain=.recurly.local; path=/; HttpOnly
474
+ - _recurly_session=56c02853cc6f90788920345419d48174; domain=.recurly.local; path=/; HttpOnly
489
475
  body: |
490
476
  <?xml version="1.0" encoding="UTF-8"?>
491
477
  <transaction type="Payment">
492
- <id>e31319e7f3244cca95ecb7ce6c8a2a37</id>
493
- <account_code>transaction-lookup-1301883347</account_code>
478
+ <id>459748731c4847228f50512b0d75369a</id>
479
+ <account_code>transaction-lookup-1296674173</account_code>
494
480
  <action>purchase</action>
495
- <date type="datetime">2011-04-21T18:05:51Z</date>
481
+ <date type="datetime">2011-02-03T22:25:41Z</date>
496
482
  <amount_in_cents type="integer">200</amount_in_cents>
497
483
  <status>success</status>
498
484
  <message>Test Gateway: Successful test transaction</message>
@@ -514,17 +500,17 @@
514
500
  - !ruby/struct:VCR::HTTPInteraction
515
501
  request: !ruby/struct:VCR::Request
516
502
  method: :get
517
- uri: http://api-test%40facebook.com:c012090130704e748dae49f56f05f68f@app.recurly.local:3000/transactions/a087dcbffabc40c287075578398d14fc.xml?account_code=transaction-lookup-1301883347
503
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions/a2ddbf705ce74742a902e3a52f9f5891.xml?account_code=transaction-lookup-1296674173
518
504
  body:
519
505
  headers:
520
506
  authorization:
521
- - Basic YXBpLXRlc3RAZmFjZWJvb2suY29tOmMwMTIwOTAxMzA3MDRlNzQ4ZGFlNDlmNTZmMDVmNjhm
522
- user-agent:
523
- - Recurly Ruby Client v0.4.6
507
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
524
508
  accept:
525
509
  - application/xml
526
510
  accept-encoding:
527
511
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
512
+ user-agent:
513
+ - Ruby
528
514
  connection:
529
515
  - close
530
516
  response: !ruby/struct:VCR::Response
@@ -533,30 +519,30 @@
533
519
  message: "OK "
534
520
  headers:
535
521
  x-runtime:
536
- - "747"
522
+ - "403"
537
523
  content-type:
538
524
  - application/xml; charset=utf-8
539
525
  etag:
540
- - "\"dc4378207eb9a0aa15fa92a89ec92362\""
526
+ - "\"fd4c7668a9c6d64480e35da8a05fb5dc\""
541
527
  cache-control:
542
528
  - private, max-age=0, must-revalidate
543
529
  content-length:
544
530
  - "859"
545
531
  server:
546
- - WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18)
532
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
547
533
  date:
548
- - Thu, 21 Apr 2011 18:06:03 GMT
534
+ - Thu, 03 Feb 2011 22:25:57 GMT
549
535
  connection:
550
536
  - close
551
537
  set-cookie:
552
- - _recurly_session=1f4ece88ce302d2034a0c8eda725d9f7; domain=.recurly.local; path=/; HttpOnly
538
+ - _recurly_session=60e20356d14d850d3e3f8bc5a9ea61d2; domain=.recurly.local; path=/; HttpOnly
553
539
  body: |
554
540
  <?xml version="1.0" encoding="UTF-8"?>
555
541
  <transaction type="Payment">
556
- <id>a087dcbffabc40c287075578398d14fc</id>
557
- <account_code>transaction-lookup-1301883347</account_code>
542
+ <id>a2ddbf705ce74742a902e3a52f9f5891</id>
543
+ <account_code>transaction-lookup-1296674173</account_code>
558
544
  <action>purchase</action>
559
- <date type="datetime">2011-04-21T18:05:55Z</date>
545
+ <date type="datetime">2011-02-03T22:25:47Z</date>
560
546
  <amount_in_cents type="integer">300</amount_in_cents>
561
547
  <status>success</status>
562
548
  <message>Test Gateway: Successful test transaction</message>