recurly 0.2.9 → 0.3.0

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 (86) hide show
  1. data/lib/recurly.rb +13 -5
  2. data/lib/recurly/rails3/railtie.rb +1 -8
  3. data/lib/recurly/version.rb +1 -1
  4. data/spec/vcr/account/close/1288381765.yml +15 -15
  5. data/spec/vcr/account/create-blank/1288381765.yml +3 -3
  6. data/spec/vcr/account/create-duplicate/1288381765.yml +27 -12
  7. data/spec/vcr/account/create-min/1288381765.yml +6 -6
  8. data/spec/vcr/account/create/1288381765.yml +6 -6
  9. data/spec/vcr/account/find/1288381765.yml +14 -14
  10. data/spec/vcr/account/list/1288381765.yml +251 -530
  11. data/spec/vcr/account/update/1288381765.yml +26 -26
  12. data/spec/vcr/billing/create/1286682213.yml +20 -20
  13. data/spec/vcr/billing/destroy/1286682213.yml +29 -29
  14. data/spec/vcr/billing/find/1286682213.yml +25 -25
  15. data/spec/vcr/billing/update/1286682213.yml +27 -27
  16. data/spec/vcr/charge/create/1287465632.yml +31 -29
  17. data/spec/vcr/charge/delete-uninvoiced/1287465632.yml +33 -31
  18. data/spec/vcr/charge/list-all/1287465632.yml +43 -40
  19. data/spec/vcr/charge/list-invoiced/1287465632.yml +70 -66
  20. data/spec/vcr/charge/list-pending/1287465632.yml +43 -40
  21. data/spec/vcr/charge/lookup/1287465632.yml +24 -22
  22. data/spec/vcr/credit/create/1287461400.yml +24 -22
  23. data/spec/vcr/credit/delete/1287461400.yml +31 -29
  24. data/spec/vcr/credit/list/1287461400.yml +47 -41
  25. data/spec/vcr/credit/lookup/1287461400.yml +23 -21
  26. data/spec/vcr/invoice/create-no-charges/1287167121.yml +16 -16
  27. data/spec/vcr/invoice/create/1287167121.yml +42 -40
  28. data/spec/vcr/invoice/list/1287167121.yml +59 -57
  29. data/spec/vcr/invoice/lookup/1287167121.yml +42 -41
  30. data/spec/vcr/plan/all.yml +9 -9
  31. data/spec/vcr/plan/delete/1286677585.yml +16 -16
  32. data/spec/vcr/plan/find.yml +9 -9
  33. data/spec/vcr/plan/update.yml +12 -12
  34. data/spec/vcr/subscription/cancel-with-code/1287455769.yml +52 -52
  35. data/spec/vcr/subscription/cancel/1287455769.yml +43 -43
  36. data/spec/vcr/subscription/change1/1287455769.yml +39 -39
  37. data/spec/vcr/subscription/change2/1287455769.yml +39 -39
  38. data/spec/vcr/subscription/create/1287455769.yml +18 -18
  39. data/spec/vcr/subscription/find/1287455769.yml +25 -25
  40. data/spec/vcr/subscription/reactivate/1287455769.yml +45 -45
  41. data/spec/vcr/subscription/refund-full/1287455769.yml +36 -36
  42. data/spec/vcr/subscription/refund-none/1287455769.yml +35 -35
  43. data/spec/vcr/subscription/refund-partial/1287455769.yml +37 -37
  44. data/spec/vcr/transaction/all/1289558212.yml +363 -54
  45. data/spec/vcr/transaction/create-no-account/1289558212.yml +25 -27
  46. data/spec/vcr/transaction/create-with-account/1289558212.yml +63 -69
  47. data/spec/vcr/transaction/list-filled/1289558212.yml +191 -148
  48. data/spec/vcr/transaction/list-initial/1289558212.yml +86 -84
  49. data/spec/vcr/transaction/lookup/1289558212.yml +222 -214
  50. data/spec/vcr/transaction/refund/1289558212.yml +82 -90
  51. data/spec/vcr/transaction/void/1289558212.yml +377 -143
  52. metadata +4 -72
  53. data/spec/vcr/account/close/1287167046.yml +0 -159
  54. data/spec/vcr/account/close/1288381369.yml +0 -159
  55. data/spec/vcr/account/close/1288381447.yml +0 -159
  56. data/spec/vcr/account/create-blank/1287167046.yml +0 -49
  57. data/spec/vcr/account/create-blank/1288381369.yml +0 -49
  58. data/spec/vcr/account/create-blank/1288381447.yml +0 -49
  59. data/spec/vcr/account/create-duplicate/1287167046.yml +0 -110
  60. data/spec/vcr/account/create-duplicate/1288381369.yml +0 -95
  61. data/spec/vcr/account/create-duplicate/1288381447.yml +0 -95
  62. data/spec/vcr/account/create-min/1287167046.yml +0 -63
  63. data/spec/vcr/account/create-min/1288381369.yml +0 -63
  64. data/spec/vcr/account/create-min/1288381447.yml +0 -63
  65. data/spec/vcr/account/create/1287167046.yml +0 -67
  66. data/spec/vcr/account/create/1288381369.yml +0 -67
  67. data/spec/vcr/account/create/1288381447.yml +0 -67
  68. data/spec/vcr/account/find-all/1288381369.yml +0 -52
  69. data/spec/vcr/account/find-all/1288381447.yml +0 -1383
  70. data/spec/vcr/account/find/1287167046.yml +0 -160
  71. data/spec/vcr/account/find/1288381369.yml +0 -160
  72. data/spec/vcr/account/find/1288381447.yml +0 -160
  73. data/spec/vcr/account/list/1287167046.yml +0 -1538
  74. data/spec/vcr/account/list/1288381369.yml +0 -1835
  75. data/spec/vcr/account/list/1288381447.yml +0 -1835
  76. data/spec/vcr/account/update/1287167046.yml +0 -250
  77. data/spec/vcr/account/update/1288381369.yml +0 -250
  78. data/spec/vcr/account/update/1288381447.yml +0 -250
  79. data/spec/vcr/transaction/all/1287186411.yml +0 -387
  80. data/spec/vcr/transaction/create-no-account/1287186411.yml +0 -91
  81. data/spec/vcr/transaction/create-with-account/1287186411.yml +0 -220
  82. data/spec/vcr/transaction/list-empty/1287186411.yml +0 -212
  83. data/spec/vcr/transaction/list-filled/1287186411.yml +0 -476
  84. data/spec/vcr/transaction/lookup/1287186411.yml +0 -548
  85. data/spec/vcr/transaction/refund/1287186411.yml +0 -282
  86. data/spec/vcr/transaction/void/1287186411.yml +0 -600
@@ -5,74 +5,383 @@
5
5
  uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
6
6
  body:
7
7
  headers:
8
- authorization:
9
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
10
8
  accept:
11
9
  - application/xml
12
- accept-encoding:
13
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
- user-agent:
15
- - Ruby
16
10
  connection:
17
11
  - close
12
+ authorization:
13
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
18
14
  response: !ruby/struct:VCR::Response
19
15
  status: !ruby/struct:VCR::ResponseStatus
20
16
  code: 200
21
17
  message: OK
22
18
  headers:
23
- server:
24
- - nginx/0.7.65
25
- date:
26
- - Fri, 12 Nov 2010 10:36:50 GMT
27
- content-type:
28
- - application/xml; charset=utf-8
29
- transfer-encoding:
30
- - chunked
19
+ x-ua-compatible:
20
+ - IE=Edge
21
+ etag:
22
+ - "\"386d84eb6dfbf93bf219319e05939aca\""
31
23
  connection:
32
24
  - close
25
+ content-type:
26
+ - application/xml; charset=utf-8
33
27
  x-runtime:
34
28
  - "64"
35
- etag:
36
- - "\"1ee5d044f2a784cbb80d09e6fbb1629f\""
29
+ date:
30
+ - Tue, 16 Nov 2010 07:04:50 GMT
31
+ server:
32
+ - nginx/0.7.65
33
+ content-length:
34
+ - "15414"
35
+ set-cookie:
36
+ - _recurly_session=f4785270d295c15e98f713fa98192f95; domain=.recurly.com; path=/; secure; HttpOnly
37
37
  cache-control:
38
38
  - private, max-age=0, must-revalidate
39
- set-cookie:
40
- - _recurly_session=85dc3091e063c5fa8cbf6c9c7dd8d70e; domain=.recurly.com; path=/; secure; HttpOnly
41
- x-ua-compatible:
42
- - IE=Edge
43
- content-encoding:
44
- - gzip
45
- body: !binary |
46
- H4sIAAAAAAAAA+1bTXPbNhC951dodFeE7w+NrFw67SkznWl66cWzABY2p7Lk
47
- ISmn6a/vUpRsqbZqKVFsT4qbBCyWIPh2+fAWnH7462Y+uMO6qZaLiyF/z4YD
48
- XMRlqhZXF8PfP/08csMPs3fTtoZFA7Elq2bQfrnFi2Fczue4bhnO3g0G07iq
49
- a1y0l7dwhRuTatHiFdbDGZ+Od7vX9rdYP2kr2HS87VsbtssW5pfkuq5we/F7
50
- z4K76XjPoh/zMN/NXH6FLzfkYz1XclqlGbdc6ZDAc5OU8c5x6zGDRyY0/bbT
51
- MRn11hDjckX3RguDs521GMUaocXR56q9Hm2MRlw4r7UTXEzHewO3vro1m92u
52
- 6ngNDXY264a+N5G7zYy7n211g8OZYJyNOCfPnzibSDPR4o/puOvfzu9mPb1q
53
- cRnpHh8tkmW0prBvsxnZtNCumlmzihGbZjre/O8nc0NN9DRnn7BpB7/Q5T7D
54
- l8ngt942r+aDtuvYWY/peDukd1BjRgJFxNl0/PC774t3d5c1Nqt5O+iW9WL4
55
- cTj7CG28Jqzcd23v767Zt/1pOPutrRHbAaREXpoBLNLgdknTn6/dDW46V+/p
56
- tu+HPvJ12axd0NwejLZtm2d1P/iy971vu2nrbfu1WIdGWC7nCBQXbb2iB9z1
57
- bC5+t6wShPn2Ef/LcNu7MaYVWy3+w/yhvxtA13kA/bph5//BIEBAK40NaCwo
58
- yNGZqFiOaFn00on4fYMAVu31sq7+hi4CvioSlD8pEvizkdA9gxIGrxQGGeZd
59
- Rjw6Djb25wiEmCjpiyisZEwhpMCzis4yJ2WOIeSvCoT2JV4Gyp4UAuVl0L1z
60
- ystg+JgRRWmSA2e1QaWY44EJZNJK6x3XDojFPc2IesbDjCQudnbGw/yEsQlz
61
- J4Gc8nyhPAXlxMUeo9xAymBCMIZ4v+Lep2CFNs4jYV7qg5SnWYUm1tVtx1VG
62
- xN0XV9hR8o7sF+h3e6rC9t8628/KZe5yyMEJhZq5LIMEH7jwVspEKfPpBF8t
63
- iJJFHM2Xyz9Xt28R9Lrk+8Jqur3343wfQ1LoE2fOSpWjJb0HLWqnTWZO24P5
64
- /h70VbPl8W8pz9M+pYg6hcc/hfiAynOVuI85KyGyM8CkpN0tZMMhmGfT/NtE
65
- /PPiTZExNzLpK+k3vd55tHzTm59DvVFSahcD01EZpbMLkIz0kWkvrSGq8xzi
66
- Nzr+S7D509QaUYhNkWvWRYXHxMYFqlrlzBXjQSWVCP6atEvhFFciG3UI9LsF
67
- rD74NoyeS04az/kVHDdRYqLOruAUqb4LjVdK9a8o1QPpkh4ss450SqrWhmRR
68
- hqxUBg1cHCXVn4T7bylTsR786lT58hluX7D//8Q+9xLosEJyjhmq1waHSUgS
69
- My0kbrg86tBCh52XyPiy1GZ/oCMKr5jwjTB0GsFIHUij56C8D4wKU4F7bkH4
70
- g/vZXaJzAui/Pd3Lku4L8s+xr01OSBuytoBJgdBgo/N0RE0bjgY4HEPx90T7
71
- 70rxxWl726Jglq3tga1tQinBaBG0QCUJ6o74DWhvqVKbAI/a2r4g7uVJ7F4U
72
- 5b7Uqp6WdDjLJL946wW3KmkZMFgXXKCClefChDeW70/DfdHvS74/kO+10Tpm
73
- BCMp3yungZGSw+hsTozaG6bPjvtv5/i87G4Lxz8Hx2dMRAwOAn2CoWw2ns4l
74
- ZI9BqIB0SOGo3e28q9jmir7IeRFlh5+W+AvRL4n/QOKXySoRYiByrxXSF1hO
75
- CS4d44mBcfbgkeNdaedtg7+w/QL+A+C3jGenQFoMTJG8E7SPOtpkhVKk6B9V
76
- yHph8LNzs55yZOdHO7Kz9yFiM3v3D5rO25ZkPAAA
39
+ body: |
40
+ <?xml version="1.0" encoding="UTF-8"?>
41
+ <transactions type="collection">
42
+ <current_page type="integer">1</current_page>
43
+ <per_page type="integer">20</per_page>
44
+ <total_entries type="integer">29</total_entries>
45
+ <transaction type="Payment">
46
+ <id>ef67914d8bee460e9b112199748ae571</id>
47
+ <account_code>transaction-create-with-account-1289558212</account_code>
48
+ <action>purchase</action>
49
+ <date type="datetime">2010-11-16T07:04:47Z</date>
50
+ <amount_in_cents type="integer">700</amount_in_cents>
51
+ <status>success</status>
52
+ <message>Test Gateway: Successful test transaction</message>
53
+ <reference></reference>
54
+ <cvv_result code="M">Match</cvv_result>
55
+ <avs_result code="D">Street address and postal code match.</avs_result>
56
+ <avs_result_street></avs_result_street>
57
+ <avs_result_postal></avs_result_postal>
58
+ <test type="boolean">true</test>
59
+ <voidable type="boolean">true</voidable>
60
+ <refundable type="boolean">true</refundable>
61
+ </transaction>
62
+ <transaction type="Payment">
63
+ <id>ef8b4eb351434b288bd0964399272b93</id>
64
+ <account_code>transaction-create-with-account-1289558212</account_code>
65
+ <action>authorization</action>
66
+ <date type="datetime">2010-11-16T07:04:49Z</date>
67
+ <amount_in_cents type="integer">100</amount_in_cents>
68
+ <status>void</status>
69
+ <message>Test Gateway: Successful test transaction</message>
70
+ <reference></reference>
71
+ <cvv_result code="M">Match</cvv_result>
72
+ <avs_result code="D">Street address and postal code match.</avs_result>
73
+ <avs_result_street></avs_result_street>
74
+ <avs_result_postal></avs_result_postal>
75
+ <test type="boolean">true</test>
76
+ <voidable type="boolean">false</voidable>
77
+ <refundable type="boolean">false</refundable>
78
+ </transaction>
79
+ <transaction type="Payment">
80
+ <id>e5e51cca153040ba9138442e41741d75</id>
81
+ <account_code>transaction-create-with-accout-1289558212</account_code>
82
+ <action>purchase</action>
83
+ <date type="datetime">2010-11-16T07:04:47Z</date>
84
+ <amount_in_cents type="integer">700</amount_in_cents>
85
+ <status>success</status>
86
+ <message>Test Gateway: Successful test transaction</message>
87
+ <reference></reference>
88
+ <cvv_result code="M">Match</cvv_result>
89
+ <avs_result code="D">Street address and postal code match.</avs_result>
90
+ <avs_result_street></avs_result_street>
91
+ <avs_result_postal></avs_result_postal>
92
+ <test type="boolean">true</test>
93
+ <voidable type="boolean">true</voidable>
94
+ <refundable type="boolean">true</refundable>
95
+ </transaction>
96
+ <transaction type="Payment">
97
+ <id>95f5ca3c3f634ebebd53c5e1ce5a95ee</id>
98
+ <account_code>subscription-refund-none-1287455769</account_code>
99
+ <action>purchase</action>
100
+ <date type="datetime">2010-11-16T07:04:43Z</date>
101
+ <amount_in_cents type="integer">1000</amount_in_cents>
102
+ <status>success</status>
103
+ <message>Test Gateway: Successful test transaction</message>
104
+ <reference></reference>
105
+ <cvv_result code="M">Match</cvv_result>
106
+ <avs_result code="D">Street address and postal code match.</avs_result>
107
+ <avs_result_street></avs_result_street>
108
+ <avs_result_postal></avs_result_postal>
109
+ <test type="boolean">true</test>
110
+ <voidable type="boolean">true</voidable>
111
+ <refundable type="boolean">true</refundable>
112
+ </transaction>
113
+ <transaction type="Refund">
114
+ <id>dcb42c714b104f6aaa4951f886ca473b</id>
115
+ <account_code>subscription-refund-partial-1287455769</account_code>
116
+ <action>credit</action>
117
+ <date type="datetime">2010-11-16T07:04:41Z</date>
118
+ <amount_in_cents type="integer">1000</amount_in_cents>
119
+ <status>success</status>
120
+ <message>Bogus Gateway: Forced success</message>
121
+ <reference></reference>
122
+ <cvv_result code=""></cvv_result>
123
+ <avs_result code=""></avs_result>
124
+ <avs_result_street></avs_result_street>
125
+ <avs_result_postal></avs_result_postal>
126
+ <test type="boolean">true</test>
127
+ <voidable type="boolean">true</voidable>
128
+ <refundable type="boolean">false</refundable>
129
+ </transaction>
130
+ <transaction type="Payment">
131
+ <id>9e176680904b4146a4488b815a36c332</id>
132
+ <account_code>subscription-refund-partial-1287455769</account_code>
133
+ <action>purchase</action>
134
+ <date type="datetime">2010-11-16T07:04:40Z</date>
135
+ <amount_in_cents type="integer">1000</amount_in_cents>
136
+ <status>success</status>
137
+ <message>Test Gateway: Successful test transaction</message>
138
+ <reference></reference>
139
+ <cvv_result code="M">Match</cvv_result>
140
+ <avs_result code="D">Street address and postal code match.</avs_result>
141
+ <avs_result_street></avs_result_street>
142
+ <avs_result_postal></avs_result_postal>
143
+ <test type="boolean">true</test>
144
+ <voidable type="boolean">false</voidable>
145
+ <refundable type="boolean">false</refundable>
146
+ </transaction>
147
+ <transaction type="Refund">
148
+ <id>e4b14217595d4caea2874e90d21422dc</id>
149
+ <account_code>subscription-refund-full-1287455769</account_code>
150
+ <action>credit</action>
151
+ <date type="datetime">2010-11-16T07:04:37Z</date>
152
+ <amount_in_cents type="integer">1000</amount_in_cents>
153
+ <status>success</status>
154
+ <message>Bogus Gateway: Forced success</message>
155
+ <reference></reference>
156
+ <cvv_result code=""></cvv_result>
157
+ <avs_result code=""></avs_result>
158
+ <avs_result_street></avs_result_street>
159
+ <avs_result_postal></avs_result_postal>
160
+ <test type="boolean">true</test>
161
+ <voidable type="boolean">true</voidable>
162
+ <refundable type="boolean">false</refundable>
163
+ </transaction>
164
+ <transaction type="Payment">
165
+ <id>44cd38f855de4e30ad1f736ec1d4396a</id>
166
+ <account_code>subscription-refund-full-1287455769</account_code>
167
+ <action>purchase</action>
168
+ <date type="datetime">2010-11-16T07:04:36Z</date>
169
+ <amount_in_cents type="integer">1000</amount_in_cents>
170
+ <status>success</status>
171
+ <message>Test Gateway: Successful test transaction</message>
172
+ <reference></reference>
173
+ <cvv_result code="M">Match</cvv_result>
174
+ <avs_result code="D">Street address and postal code match.</avs_result>
175
+ <avs_result_street></avs_result_street>
176
+ <avs_result_postal></avs_result_postal>
177
+ <test type="boolean">true</test>
178
+ <voidable type="boolean">false</voidable>
179
+ <refundable type="boolean">false</refundable>
180
+ </transaction>
181
+ <transaction type="Payment">
182
+ <id>3f7905983aad43e5945ff73895001c3d</id>
183
+ <account_code>subscription-cancel-with-code-1287455769</account_code>
184
+ <action>purchase</action>
185
+ <date type="datetime">2010-11-16T07:04:30Z</date>
186
+ <amount_in_cents type="integer">1000</amount_in_cents>
187
+ <status>success</status>
188
+ <message>Test Gateway: Successful test transaction</message>
189
+ <reference></reference>
190
+ <cvv_result code="M">Match</cvv_result>
191
+ <avs_result code="D">Street address and postal code match.</avs_result>
192
+ <avs_result_street></avs_result_street>
193
+ <avs_result_postal></avs_result_postal>
194
+ <test type="boolean">true</test>
195
+ <voidable type="boolean">true</voidable>
196
+ <refundable type="boolean">true</refundable>
197
+ </transaction>
198
+ <transaction type="Payment">
199
+ <id>be537b15cfbd445ca8de1b28098c0135</id>
200
+ <account_code>subscription-cancel-1287455769</account_code>
201
+ <action>purchase</action>
202
+ <date type="datetime">2010-11-16T07:04:26Z</date>
203
+ <amount_in_cents type="integer">1000</amount_in_cents>
204
+ <status>success</status>
205
+ <message>Test Gateway: Successful test transaction</message>
206
+ <reference></reference>
207
+ <cvv_result code="M">Match</cvv_result>
208
+ <avs_result code="D">Street address and postal code match.</avs_result>
209
+ <avs_result_street></avs_result_street>
210
+ <avs_result_postal></avs_result_postal>
211
+ <test type="boolean">true</test>
212
+ <voidable type="boolean">true</voidable>
213
+ <refundable type="boolean">true</refundable>
214
+ </transaction>
215
+ <transaction type="Payment">
216
+ <id>380c5bed07d740e29303d6256406d7b5</id>
217
+ <account_code>subscription-reactivate-1287455769</account_code>
218
+ <action>purchase</action>
219
+ <date type="datetime">2010-11-16T07:04:24Z</date>
220
+ <amount_in_cents type="integer">1000</amount_in_cents>
221
+ <status>success</status>
222
+ <message>Test Gateway: Successful test transaction</message>
223
+ <reference></reference>
224
+ <cvv_result code="M">Match</cvv_result>
225
+ <avs_result code="D">Street address and postal code match.</avs_result>
226
+ <avs_result_street></avs_result_street>
227
+ <avs_result_postal></avs_result_postal>
228
+ <test type="boolean">true</test>
229
+ <voidable type="boolean">true</voidable>
230
+ <refundable type="boolean">true</refundable>
231
+ </transaction>
232
+ <transaction type="Payment">
233
+ <id>7c34ff0fc438482eabdf485edb5002e1</id>
234
+ <account_code>1287455769</account_code>
235
+ <action>purchase</action>
236
+ <date type="datetime">2010-11-16T07:04:20Z</date>
237
+ <amount_in_cents type="integer">1000</amount_in_cents>
238
+ <status>success</status>
239
+ <message>Test Gateway: Successful test transaction</message>
240
+ <reference></reference>
241
+ <cvv_result code="M">Match</cvv_result>
242
+ <avs_result code="D">Street address and postal code match.</avs_result>
243
+ <avs_result_street></avs_result_street>
244
+ <avs_result_postal></avs_result_postal>
245
+ <test type="boolean">true</test>
246
+ <voidable type="boolean">true</voidable>
247
+ <refundable type="boolean">true</refundable>
248
+ </transaction>
249
+ <transaction type="Payment">
250
+ <id>a912e6282e7c487688f1cc41e974f85b</id>
251
+ <account_code>subscription-change1-1287455769</account_code>
252
+ <action>purchase</action>
253
+ <date type="datetime">2010-11-16T07:04:16Z</date>
254
+ <amount_in_cents type="integer">1000</amount_in_cents>
255
+ <status>success</status>
256
+ <message>Test Gateway: Successful test transaction</message>
257
+ <reference></reference>
258
+ <cvv_result code="M">Match</cvv_result>
259
+ <avs_result code="D">Street address and postal code match.</avs_result>
260
+ <avs_result_street></avs_result_street>
261
+ <avs_result_postal></avs_result_postal>
262
+ <test type="boolean">true</test>
263
+ <voidable type="boolean">true</voidable>
264
+ <refundable type="boolean">true</refundable>
265
+ </transaction>
266
+ <transaction type="Payment">
267
+ <id>0cb936edf3e54d2d82719b96fe18aa7e</id>
268
+ <account_code>subscription-create-1287455769</account_code>
269
+ <action>purchase</action>
270
+ <date type="datetime">2010-11-16T07:04:11Z</date>
271
+ <amount_in_cents type="integer">1000</amount_in_cents>
272
+ <status>success</status>
273
+ <message>Test Gateway: Successful test transaction</message>
274
+ <reference></reference>
275
+ <cvv_result code="M">Match</cvv_result>
276
+ <avs_result code="D">Street address and postal code match.</avs_result>
277
+ <avs_result_street></avs_result_street>
278
+ <avs_result_postal></avs_result_postal>
279
+ <test type="boolean">true</test>
280
+ <voidable type="boolean">true</voidable>
281
+ <refundable type="boolean">true</refundable>
282
+ </transaction>
283
+ <transaction type="Payment">
284
+ <id>786e0f0750f34e53b35f602c7c541223</id>
285
+ <account_code>subscription-find-1287455769</account_code>
286
+ <action>purchase</action>
287
+ <date type="datetime">2010-11-16T07:04:09Z</date>
288
+ <amount_in_cents type="integer">1000</amount_in_cents>
289
+ <status>success</status>
290
+ <message>Test Gateway: Successful test transaction</message>
291
+ <reference></reference>
292
+ <cvv_result code="M">Match</cvv_result>
293
+ <avs_result code="D">Street address and postal code match.</avs_result>
294
+ <avs_result_street></avs_result_street>
295
+ <avs_result_postal></avs_result_postal>
296
+ <test type="boolean">true</test>
297
+ <voidable type="boolean">true</voidable>
298
+ <refundable type="boolean">true</refundable>
299
+ </transaction>
300
+ <transaction type="Payment">
301
+ <id>9205c4b5486549999679c9340ffa310b</id>
302
+ <account_code>invoice-lookup-1287167121</account_code>
303
+ <action>authorization</action>
304
+ <date type="datetime">2010-11-16T07:04:00Z</date>
305
+ <amount_in_cents type="integer">100</amount_in_cents>
306
+ <status>void</status>
307
+ <message>Test Gateway: Successful test transaction</message>
308
+ <reference></reference>
309
+ <cvv_result code="M">Match</cvv_result>
310
+ <avs_result code="D">Street address and postal code match.</avs_result>
311
+ <avs_result_street></avs_result_street>
312
+ <avs_result_postal></avs_result_postal>
313
+ <test type="boolean">true</test>
314
+ <voidable type="boolean">false</voidable>
315
+ <refundable type="boolean">false</refundable>
316
+ </transaction>
317
+ <transaction type="Payment">
318
+ <id>8be4ba57a0fb441eb4ff5f1f44150a32</id>
319
+ <account_code>invoice-list-1287167121</account_code>
320
+ <action>authorization</action>
321
+ <date type="datetime">2010-11-16T07:03:54Z</date>
322
+ <amount_in_cents type="integer">100</amount_in_cents>
323
+ <status>void</status>
324
+ <message>Test Gateway: Successful test transaction</message>
325
+ <reference></reference>
326
+ <cvv_result code="M">Match</cvv_result>
327
+ <avs_result code="D">Street address and postal code match.</avs_result>
328
+ <avs_result_street></avs_result_street>
329
+ <avs_result_postal></avs_result_postal>
330
+ <test type="boolean">true</test>
331
+ <voidable type="boolean">false</voidable>
332
+ <refundable type="boolean">false</refundable>
333
+ </transaction>
334
+ <transaction type="Payment">
335
+ <id>48705d8826ba4ea5b31854c01c3e1834</id>
336
+ <account_code>invoice-create-no-charges-1287167121</account_code>
337
+ <action>authorization</action>
338
+ <date type="datetime">2010-11-16T07:03:54Z</date>
339
+ <amount_in_cents type="integer">100</amount_in_cents>
340
+ <status>void</status>
341
+ <message>Test Gateway: Successful test transaction</message>
342
+ <reference></reference>
343
+ <cvv_result code="M">Match</cvv_result>
344
+ <avs_result code="D">Street address and postal code match.</avs_result>
345
+ <avs_result_street></avs_result_street>
346
+ <avs_result_postal></avs_result_postal>
347
+ <test type="boolean">true</test>
348
+ <voidable type="boolean">false</voidable>
349
+ <refundable type="boolean">false</refundable>
350
+ </transaction>
351
+ <transaction type="Payment">
352
+ <id>2cd49ba668914127a3605bfff1c70b13</id>
353
+ <account_code>invoice-create-1287167121</account_code>
354
+ <action>authorization</action>
355
+ <date type="datetime">2010-11-16T07:03:49Z</date>
356
+ <amount_in_cents type="integer">100</amount_in_cents>
357
+ <status>void</status>
358
+ <message>Test Gateway: Successful test transaction</message>
359
+ <reference></reference>
360
+ <cvv_result code="M">Match</cvv_result>
361
+ <avs_result code="D">Street address and postal code match.</avs_result>
362
+ <avs_result_street></avs_result_street>
363
+ <avs_result_postal></avs_result_postal>
364
+ <test type="boolean">true</test>
365
+ <voidable type="boolean">false</voidable>
366
+ <refundable type="boolean">false</refundable>
367
+ </transaction>
368
+ <transaction type="Payment">
369
+ <id>22ad6e4a8cea4b3584b9a130647ff3ee</id>
370
+ <account_code>charge-create-1287465632</account_code>
371
+ <action>authorization</action>
372
+ <date type="datetime">2010-11-16T07:03:32Z</date>
373
+ <amount_in_cents type="integer">100</amount_in_cents>
374
+ <status>void</status>
375
+ <message>Test Gateway: Successful test transaction</message>
376
+ <reference></reference>
377
+ <cvv_result code="M">Match</cvv_result>
378
+ <avs_result code="D">Street address and postal code match.</avs_result>
379
+ <avs_result_street></avs_result_street>
380
+ <avs_result_postal></avs_result_postal>
381
+ <test type="boolean">true</test>
382
+ <voidable type="boolean">false</voidable>
383
+ <refundable type="boolean">false</refundable>
384
+ </transaction>
385
+ </transactions>
77
386
 
78
387
  http_version: "1.1"
@@ -7,72 +7,70 @@
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <transaction>
9
9
  <account>
10
+ <company-name>Recurly Ruby Gem</company-name>
10
11
  <account-code>transaction-create-with-accout-1289558212</account-code>
11
- <first-name>Verena</first-name>
12
12
  <last-name>Test</last-name>
13
- <email>verena@test.com</email>
14
- <company-name>Recurly Ruby Gem</company-name>
15
13
  <billing-info>
16
- <address1>123 Test St</address1>
17
14
  <city>San Francisco</city>
18
- <state>CA</state>
15
+ <address1>123 Test St</address1>
19
16
  <zip>94115</zip>
20
17
  <country>US</country>
21
18
  <credit-card>
22
19
  <number>1</number>
23
- <year type="integer">2011</year>
24
20
  <month type="integer">11</month>
21
+ <year type="integer">2011</year>
25
22
  <verification-value>123</verification-value>
26
23
  </credit-card>
24
+ <state>CA</state>
27
25
  </billing-info>
26
+ <email>verena@test.com</email>
27
+ <first-name>Verena</first-name>
28
28
  </account>
29
29
  <amount-in-cents type="integer">700</amount-in-cents>
30
30
  <description>setup fee of 7 dollarz</description>
31
31
  </transaction>
32
32
 
33
33
  headers:
34
- authorization:
35
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
36
- content-type:
37
- - application/xml
38
34
  accept:
39
35
  - "*/*"
40
- user-agent:
41
- - Ruby
42
36
  connection:
43
37
  - close
38
+ content-type:
39
+ - application/xml
40
+ authorization:
41
+ - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
44
42
  response: !ruby/struct:VCR::Response
45
43
  status: !ruby/struct:VCR::ResponseStatus
46
44
  code: 201
47
45
  message: Created
48
46
  headers:
49
- server:
50
- - nginx/0.7.65
51
- date:
52
- - Fri, 12 Nov 2010 10:36:48 GMT
53
- content-type:
54
- - application/xml; charset=utf-8
47
+ location:
48
+ - https://recurlytest3-test.recurly.com/transactions/e5e51cca153040ba9138442e41741d75
55
49
  connection:
56
50
  - close
57
- cache-control:
58
- - no-cache
59
- location:
60
- - https://recurlytest3-test.recurly.com/transactions/cd5812c273004eadb1f4c870833fcbbf
51
+ content-type:
52
+ - application/xml; charset=utf-8
61
53
  x-runtime:
62
- - "421"
54
+ - "533"
55
+ date:
56
+ - Tue, 16 Nov 2010 07:04:47 GMT
57
+ server:
58
+ - nginx/0.7.65
63
59
  content-length:
64
60
  - "862"
65
61
  set-cookie:
66
- - account_credentials=0e7b74a69e59ed0fe075084713224141c70db6890ad97af76b622dd5d1ec4f355fcfd4960d3ade183019daa263a1dfed8d4b58e73ea4def1a654c9172869b073%3A%3A; domain=.recurly.com; path=/
62
+ - account_credentials=ae9d43e2f427d0536df23895a7ad40703e2fbca10f5c52803ce55156deeb37878d3c9f45d74fd9ae0da65db6fec428844433d9cc34775059358737710becec3c%3A%3A; domain=.recurly.com; path=/
67
63
  - ""
68
- - _recurly_session=c7cbea1f580e3c62ac1f34f203218075; domain=.recurly.com; path=/; secure; HttpOnly
64
+ - _recurly_session=032f52253a6e17c2bc02511cba3436af; domain=.recurly.com; path=/; secure; HttpOnly
65
+ cache-control:
66
+ - no-cache
69
67
  body: |
70
68
  <?xml version="1.0" encoding="UTF-8"?>
71
69
  <transaction type="Payment">
72
- <id>cd5812c273004eadb1f4c870833fcbbf</id>
70
+ <id>e5e51cca153040ba9138442e41741d75</id>
73
71
  <account_code>transaction-create-with-accout-1289558212</account_code>
74
72
  <action>purchase</action>
75
- <date type="datetime">2010-11-12T10:36:47Z</date>
73
+ <date type="datetime">2010-11-16T07:04:47Z</date>
76
74
  <amount_in_cents type="integer">700</amount_in_cents>
77
75
  <status>success</status>
78
76
  <message>Test Gateway: Successful test transaction</message>