recurly 0.3.2 → 0.3.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 (86) hide show
  1. data/LICENSE +1 -1
  2. data/README.md +4 -4
  3. data/lib/recurly.rb +8 -1
  4. data/lib/recurly/account.rb +5 -0
  5. data/lib/recurly/coupon.rb +5 -0
  6. data/lib/recurly/rails3/recurly.rake +3 -18
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/{test.yml → test1.yml} +0 -0
  9. data/spec/config/test2.yml +9 -0
  10. data/spec/integration/account_spec.rb +3 -3
  11. data/spec/integration/billing_info_spec.rb +4 -8
  12. data/spec/integration/coupon_spec.rb +49 -0
  13. data/spec/integration/plan_spec.rb +0 -28
  14. data/spec/integration/transaction_spec.rb +3 -3
  15. data/spec/spec_helper.rb +6 -0
  16. data/spec/support/factory.rb +1 -1
  17. data/spec/unit/config_spec.rb +9 -2
  18. data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
  19. data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
  20. data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
  21. data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
  22. data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
  23. data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
  24. data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
  25. data/spec/vcr/account/list/1296674173.yml +55 -0
  26. data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
  27. data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
  28. data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
  29. data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
  30. data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
  31. data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
  32. data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
  33. data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
  34. data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
  35. data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
  36. data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
  37. data/spec/vcr/coupon/create/1296688818.yml +183 -0
  38. data/spec/vcr/coupon/create/1296774903.yml +183 -0
  39. data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
  40. data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
  41. data/spec/vcr/credit/create/1296674173.yml +121 -0
  42. data/spec/vcr/credit/delete/1296674173.yml +121 -0
  43. data/spec/vcr/credit/list/1296674173.yml +121 -0
  44. data/spec/vcr/credit/lookup/1296674173.yml +121 -0
  45. data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
  46. data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
  47. data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
  48. data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
  49. data/spec/vcr/plan/all.yml +86 -136
  50. data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
  51. data/spec/vcr/plan/find.yml +73 -91
  52. data/spec/vcr/plan/update.yml +80 -76
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
  56. data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
  57. data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
  58. data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
  59. data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
  60. data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
  61. data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
  62. data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
  63. data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
  64. data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
  65. data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
  66. data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
  67. data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
  68. data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
  69. data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
  70. data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
  71. data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
  72. data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
  73. data/spec/vcr/transaction/void/1296674173.yml +352 -0
  74. metadata +122 -122
  75. data/spec/config/recurly.yml +0 -4
  76. data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
  77. data/spec/vcr/account/accept-language/1294473117.yml +0 -167
  78. data/spec/vcr/account/list/1294473761.yml +0 -1597
  79. data/spec/vcr/credit/create/1287461400.yml +0 -174
  80. data/spec/vcr/credit/delete/1287461400.yml +0 -249
  81. data/spec/vcr/credit/list/1287461400.yml +0 -306
  82. data/spec/vcr/credit/lookup/1287461400.yml +0 -174
  83. data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
  84. data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
  85. data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
  86. data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -2,89 +2,91 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
5
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
6
6
  body: |
7
7
  <?xml version="1.0" encoding="UTF-8"?>
8
8
  <transaction>
9
9
  <account>
10
- <company-name>Recurly Ruby Gem</company-name>
11
- <account-code>transaction-create-with-accout-1289558212</account-code>
10
+ <account-code>transaction-create-with-accout-1296674173</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>
13
15
  <billing-info>
14
16
  <address1>123 Test St</address1>
15
17
  <city>San Francisco</city>
18
+ <state>CA</state>
16
19
  <zip>94115</zip>
17
20
  <country>US</country>
18
21
  <credit-card>
19
- <number>1</number>
20
- <month type="integer">1</month>
22
+ <number>4111111111111111</number>
21
23
  <year type="integer">2012</year>
24
+ <month type="integer">2</month>
22
25
  <verification-value>123</verification-value>
23
26
  </credit-card>
24
- <state>CA</state>
25
27
  </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 aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
36
+ content-type:
37
+ - application/xml
34
38
  accept:
35
39
  - "*/*"
40
+ user-agent:
41
+ - Ruby
36
42
  connection:
37
43
  - close
38
- content-type:
39
- - application/xml
40
- authorization:
41
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
42
44
  response: !ruby/struct:VCR::Response
43
45
  status: !ruby/struct:VCR::ResponseStatus
44
46
  code: 201
45
- message: Created
47
+ message: "Created "
46
48
  headers:
49
+ cache-control:
50
+ - no-cache
47
51
  location:
48
- - https://recurlytest3-test.recurly.com/transactions/dc3018e67e954178b30d101ff44afa98
49
- connection:
50
- - close
52
+ - http://litle-test.recurly.local:3000/transactions/bada094d35ec4ca8822320bb8062a8c9
53
+ x-runtime:
54
+ - "4664"
51
55
  content-type:
52
56
  - application/xml; charset=utf-8
53
- x-runtime:
54
- - "882"
55
- date:
56
- - Sat, 08 Jan 2011 08:06:23 GMT
57
- server:
58
- - nginx/0.8.53
59
57
  content-length:
60
- - "862"
58
+ - "871"
59
+ server:
60
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
61
+ date:
62
+ - Thu, 03 Feb 2011 22:24:27 GMT
63
+ connection:
64
+ - close
61
65
  set-cookie:
62
- - account_credentials=32f6d836814c39872850112d432e7fa8a8c0cc08d11cb7820fd3ba175d2cf6c0d17960e593696c981d224277dfcb50dd952d65cfb1294b9d5cdf84697fcefcb5%3A%3A; domain=.recurly.com; path=/
66
+ - account_credentials=67fa4108827dd3427adffd7527322a6a1051facaf436e346fd0efb6145b18b5db2959c2aec68c6764ed1e355b974f7f80a003856ecb860008d032716679d2391%3A%3A; domain=.recurly.local; path=/
63
67
  - ""
64
- - _recurly_session=5c99a6ffacfa392e0df6242914d74192; domain=.recurly.com; path=/; secure; HttpOnly
65
- cache-control:
66
- - no-cache
68
+ - _recurly_session=5d9a3b771b9c008ae95d2c7582a106ea; domain=.recurly.local; path=/; HttpOnly
67
69
  body: |
68
70
  <?xml version="1.0" encoding="UTF-8"?>
69
71
  <transaction type="Payment">
70
- <id>dc3018e67e954178b30d101ff44afa98</id>
71
- <account_code>transaction-create-with-accout-1289558212</account_code>
72
+ <id>bada094d35ec4ca8822320bb8062a8c9</id>
73
+ <account_code>transaction-create-with-accout-1296674173</account_code>
72
74
  <action>purchase</action>
73
- <date type="datetime">2011-01-08T08:06:22Z</date>
75
+ <date type="datetime">2011-02-03T22:24:24Z</date>
74
76
  <amount_in_cents type="integer">700</amount_in_cents>
75
77
  <status>success</status>
76
78
  <message>Test Gateway: Successful test transaction</message>
77
- <reference></reference>
79
+ <reference>12345</reference>
78
80
  <cvv_result code="M">Match</cvv_result>
79
81
  <avs_result code="D">Street address and postal code match.</avs_result>
80
- <avs_result_street></avs_result_street>
81
- <avs_result_postal></avs_result_postal>
82
+ <avs_result_street>Y</avs_result_street>
83
+ <avs_result_postal>Y</avs_result_postal>
82
84
  <test type="boolean">true</test>
83
85
  <voidable type="boolean">true</voidable>
84
86
  <refundable type="boolean">true</refundable>
85
87
  <credit_card>
86
- <type>bogus</type>
87
- <last_four>1</last_four>
88
+ <type>visa</type>
89
+ <last_four>1111</last_four>
88
90
  </credit_card>
89
91
  </transaction>
90
92
 
@@ -2,57 +2,59 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>transaction-create-with-account-1289558212</account-code>
9
+ <account-code>transaction-create-with-account-1296674173</account-code>
10
+ <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
12
  <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <accept-language type="yaml" nil="true"></accept-language>
15
15
  </account>
16
16
 
17
17
  headers:
18
+ authorization:
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
+ content-type:
21
+ - application/xml
18
22
  accept:
19
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
20
26
  connection:
21
27
  - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
28
  response: !ruby/struct:VCR::Response
27
29
  status: !ruby/struct:VCR::ResponseStatus
28
30
  code: 201
29
- message: Created
31
+ message: "Created "
30
32
  headers:
33
+ cache-control:
34
+ - no-cache
31
35
  location:
32
- - https://recurlytest3-test.recurly.com/accounts/transaction-create-with-account-1289558212
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/transaction-create-with-account-1296674173
37
+ x-runtime:
38
+ - "590"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "431"
39
- date:
40
- - Sat, 08 Jan 2011 08:06:24 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "617"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:24:30 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=c15ad80304d96c9c31d6c3148d87f8691f18a20d582d687337849e65481ada58cc4ee9b59d7dd5552a754d172ccdf416b7fea11013d1179bab4e681188a6226f%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=7a73db2306cd38e91b2422388121b3dea06e8797bd904bf7fe92f02e7e95c6dacf448f66087b32974b91eb59a833d701c47eeb950b1713fe176bae0283262be0%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=011221570345a6c8e2c1c177b0699d62; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=95d00a2495efc318c446e393689ebe42; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>transaction-create-with-account-1289558212</id>
55
- <account_code>transaction-create-with-account-1289558212</account_code>
56
+ <id>transaction-create-with-account-1296674173</id>
57
+ <account_code>transaction-create-with-account-1296674173</account_code>
56
58
  <username></username>
57
59
  <email>verena@test.com</email>
58
60
  <first_name>Verena</first_name>
@@ -60,8 +62,8 @@
60
62
  <company_name>Recurly Ruby Gem</company_name>
61
63
  <balance_in_cents type="integer">0</balance_in_cents>
62
64
  <closed type="boolean">false</closed>
63
- <hosted_login_token>299da7a4dc7b42ac9a92ec4bd652494a</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:06:24Z</created_at>
65
+ <hosted_login_token>89e2cbcd70894dce9a3eaac8435c91ba</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:24:30Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,64 +71,64 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :put
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-create-with-account-1289558212/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-create-with-account-1296674173/billing_info.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <billing-info>
76
78
  <address1>123 Test St</address1>
77
79
  <city>San Francisco</city>
80
+ <state>CA</state>
78
81
  <zip>94115</zip>
79
- <account-code>transaction-create-with-account-1289558212</account-code>
80
82
  <country>US</country>
81
83
  <credit-card>
82
- <number>1</number>
83
- <month type="integer">1</month>
84
+ <number>4111111111111111</number>
84
85
  <year type="integer">2012</year>
86
+ <month type="integer">2</month>
85
87
  <verification-value>123</verification-value>
86
88
  </credit-card>
87
- <last-name>Test</last-name>
89
+ <account-code>transaction-create-with-account-1296674173</account-code>
88
90
  <first-name>Verena</first-name>
89
- <state>CA</state>
91
+ <last-name>Test</last-name>
90
92
  </billing-info>
91
93
 
92
94
  headers:
95
+ authorization:
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
97
+ content-type:
98
+ - application/xml
93
99
  accept:
94
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
95
103
  connection:
96
104
  - close
97
- content-type:
98
- - application/xml
99
- authorization:
100
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
101
105
  response: !ruby/struct:VCR::Response
102
106
  status: !ruby/struct:VCR::ResponseStatus
103
107
  code: 200
104
- message: OK
108
+ message: "OK "
105
109
  headers:
106
- x-ua-compatible:
107
- - IE=Edge
108
- etag:
109
- - "\"8463ada9acf57dd1fd2e513890a7292a\""
110
- connection:
111
- - close
110
+ x-runtime:
111
+ - "1677"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
- x-runtime:
115
- - "186"
116
- date:
117
- - Sat, 08 Jan 2011 08:06:25 GMT
118
- server:
119
- - nginx/0.8.53
120
- content-length:
121
- - "655"
122
- set-cookie:
123
- - _recurly_session=38d309af078cdd8cdd570226f691107a; domain=.recurly.com; path=/; secure; HttpOnly
114
+ etag:
115
+ - "\"cb765597f1b08920e415a74b14b16820\""
124
116
  cache-control:
125
117
  - private, max-age=0, must-revalidate
118
+ content-length:
119
+ - "657"
120
+ server:
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
+ date:
123
+ - Thu, 03 Feb 2011 22:24:34 GMT
124
+ connection:
125
+ - close
126
+ set-cookie:
127
+ - _recurly_session=966a48911485f6756c3e43402ddcc744; domain=.recurly.local; path=/; HttpOnly
126
128
  body: |
127
129
  <?xml version="1.0" encoding="UTF-8"?>
128
130
  <billing_info>
129
- <account_code>transaction-create-with-account-1289558212</account_code>
131
+ <account_code>transaction-create-with-account-1296674173</account_code>
130
132
  <first_name>Verena</first_name>
131
133
  <last_name>Test</last_name>
132
134
  <address1>123 Test St</address1>
@@ -139,82 +141,84 @@
139
141
  <vat_number></vat_number>
140
142
  <ip_address></ip_address>
141
143
  <credit_card>
142
- <type>bogus</type>
143
- <last_four>1</last_four>
144
- <month type="integer">1</month>
144
+ <type>visa</type>
145
+ <last_four>1111</last_four>
146
+ <month type="integer">2</month>
145
147
  <year type="integer">2012</year>
146
148
  </credit_card>
147
- <updated_at type="datetime">2011-01-08T08:06:25Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:24:34Z</updated_at>
148
150
  </billing_info>
149
151
 
150
152
  http_version: "1.1"
151
153
  - !ruby/struct:VCR::HTTPInteraction
152
154
  request: !ruby/struct:VCR::Request
153
155
  method: :post
154
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
155
157
  body: |
156
158
  <?xml version="1.0" encoding="UTF-8"?>
157
159
  <transaction>
158
160
  <account>
159
- <account-code>transaction-create-with-account-1289558212</account-code>
161
+ <account-code>transaction-create-with-account-1296674173</account-code>
160
162
  </account>
161
163
  <amount-in-cents type="integer">700</amount-in-cents>
162
164
  <description>test transaction for $7</description>
163
165
  </transaction>
164
166
 
165
167
  headers:
168
+ authorization:
169
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
170
+ content-type:
171
+ - application/xml
166
172
  accept:
167
173
  - "*/*"
174
+ user-agent:
175
+ - Ruby
168
176
  connection:
169
177
  - close
170
- content-type:
171
- - application/xml
172
- authorization:
173
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
174
178
  response: !ruby/struct:VCR::Response
175
179
  status: !ruby/struct:VCR::ResponseStatus
176
180
  code: 201
177
- message: Created
181
+ message: "Created "
178
182
  headers:
183
+ cache-control:
184
+ - no-cache
179
185
  location:
180
- - https://recurlytest3-test.recurly.com/transactions/90d637f283ca4a70afedb90400ed98b1
181
- connection:
182
- - close
186
+ - http://litle-test.recurly.local:3000/transactions/7a53ae4b1d7d4f768010ca03f8a91210
187
+ x-runtime:
188
+ - "4235"
183
189
  content-type:
184
190
  - application/xml; charset=utf-8
185
- x-runtime:
186
- - "442"
187
- date:
188
- - Sat, 08 Jan 2011 08:06:26 GMT
189
- server:
190
- - nginx/0.8.53
191
191
  content-length:
192
- - "863"
192
+ - "872"
193
+ server:
194
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
195
+ date:
196
+ - Thu, 03 Feb 2011 22:24:40 GMT
197
+ connection:
198
+ - close
193
199
  set-cookie:
194
- - _recurly_session=4488f3c504ecf8a2f6fb9fc2691ef9b3; domain=.recurly.com; path=/; secure; HttpOnly
195
- cache-control:
196
- - no-cache
200
+ - _recurly_session=e759b1858561e5acaf2b31c2b917fb1a; domain=.recurly.local; path=/; HttpOnly
197
201
  body: |
198
202
  <?xml version="1.0" encoding="UTF-8"?>
199
203
  <transaction type="Payment">
200
- <id>90d637f283ca4a70afedb90400ed98b1</id>
201
- <account_code>transaction-create-with-account-1289558212</account_code>
204
+ <id>7a53ae4b1d7d4f768010ca03f8a91210</id>
205
+ <account_code>transaction-create-with-account-1296674173</account_code>
202
206
  <action>purchase</action>
203
- <date type="datetime">2011-01-08T08:06:26Z</date>
207
+ <date type="datetime">2011-02-03T22:24:37Z</date>
204
208
  <amount_in_cents type="integer">700</amount_in_cents>
205
209
  <status>success</status>
206
210
  <message>Test Gateway: Successful test transaction</message>
207
- <reference></reference>
211
+ <reference>12345</reference>
208
212
  <cvv_result code="M">Match</cvv_result>
209
213
  <avs_result code="D">Street address and postal code match.</avs_result>
210
- <avs_result_street></avs_result_street>
211
- <avs_result_postal></avs_result_postal>
214
+ <avs_result_street>Y</avs_result_street>
215
+ <avs_result_postal>Y</avs_result_postal>
212
216
  <test type="boolean">true</test>
213
217
  <voidable type="boolean">true</voidable>
214
218
  <refundable type="boolean">true</refundable>
215
219
  <credit_card>
216
- <type>bogus</type>
217
- <last_four>1</last_four>
220
+ <type>visa</type>
221
+ <last_four>1111</last_four>
218
222
  </credit_card>
219
223
  </transaction>
220
224
 
@@ -2,57 +2,59 @@
2
2
  - !ruby/struct:VCR::HTTPInteraction
3
3
  request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/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
- <company-name>Recurly Ruby Gem</company-name>
10
- <account-code>transaction-list-filled-1289558212</account-code>
9
+ <account-code>transaction-list-filled-1296674173</account-code>
10
+ <first-name>Verena</first-name>
11
11
  <last-name>Test</last-name>
12
- <accept-language type="yaml" nil="true"></accept-language>
13
12
  <email>verena@test.com</email>
14
- <first-name>Verena</first-name>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <accept-language type="yaml" nil="true"></accept-language>
15
15
  </account>
16
16
 
17
17
  headers:
18
+ authorization:
19
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
20
+ content-type:
21
+ - application/xml
18
22
  accept:
19
23
  - "*/*"
24
+ user-agent:
25
+ - Ruby
20
26
  connection:
21
27
  - close
22
- content-type:
23
- - application/xml
24
- authorization:
25
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
26
28
  response: !ruby/struct:VCR::Response
27
29
  status: !ruby/struct:VCR::ResponseStatus
28
30
  code: 201
29
- message: Created
31
+ message: "Created "
30
32
  headers:
33
+ cache-control:
34
+ - no-cache
31
35
  location:
32
- - https://recurlytest3-test.recurly.com/accounts/transaction-list-filled-1289558212
33
- connection:
34
- - close
36
+ - http://litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173
37
+ x-runtime:
38
+ - "754"
35
39
  content-type:
36
40
  - application/xml; charset=utf-8
37
- x-runtime:
38
- - "351"
39
- date:
40
- - Sat, 08 Jan 2011 08:06:31 GMT
41
- server:
42
- - nginx/0.8.53
43
41
  content-length:
44
42
  - "601"
43
+ server:
44
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
45
+ date:
46
+ - Thu, 03 Feb 2011 22:24:57 GMT
47
+ connection:
48
+ - close
45
49
  set-cookie:
46
- - account_credentials=0ba9a117a0d540c9dca1af6a72402c66404760ca57b05347aa4547241a4e63325776fcef98ff81ccca7209298690d1fb6288d7d41ba8b1dd5966dd623ed61fcb%3A%3A; domain=.recurly.com; path=/
50
+ - account_credentials=719ab2b7ad0351e16154edfc3275ba45e4b96cca8aab76b7db32869ffa661d8bc64f24809d1fab7d8938c30e303ab8904e1f994918e461bc1349c683223ce382%3A%3A; domain=.recurly.local; path=/
47
51
  - ""
48
- - _recurly_session=be1b470299957f70a3072ca3546d45d5; domain=.recurly.com; path=/; secure; HttpOnly
49
- cache-control:
50
- - no-cache
52
+ - _recurly_session=8842de98b4a4d51f25561997602205b2; domain=.recurly.local; path=/; HttpOnly
51
53
  body: |
52
54
  <?xml version="1.0" encoding="UTF-8"?>
53
55
  <account>
54
- <id>transaction-list-filled-1289558212</id>
55
- <account_code>transaction-list-filled-1289558212</account_code>
56
+ <id>transaction-list-filled-1296674173</id>
57
+ <account_code>transaction-list-filled-1296674173</account_code>
56
58
  <username></username>
57
59
  <email>verena@test.com</email>
58
60
  <first_name>Verena</first_name>
@@ -60,8 +62,8 @@
60
62
  <company_name>Recurly Ruby Gem</company_name>
61
63
  <balance_in_cents type="integer">0</balance_in_cents>
62
64
  <closed type="boolean">false</closed>
63
- <hosted_login_token>11c25c08909a4aff94bba5467c52bf4e</hosted_login_token>
64
- <created_at type="datetime">2011-01-08T08:06:31Z</created_at>
65
+ <hosted_login_token>f96839210c5d4a08a0360d0ed486ce06</hosted_login_token>
66
+ <created_at type="datetime">2011-02-03T22:24:57Z</created_at>
65
67
  <state>active</state>
66
68
  </account>
67
69
 
@@ -69,64 +71,64 @@
69
71
  - !ruby/struct:VCR::HTTPInteraction
70
72
  request: !ruby/struct:VCR::Request
71
73
  method: :put
72
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-list-filled-1289558212/billing_info.xml
74
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173/billing_info.xml
73
75
  body: |
74
76
  <?xml version="1.0" encoding="UTF-8"?>
75
77
  <billing-info>
76
78
  <address1>123 Test St</address1>
77
79
  <city>San Francisco</city>
80
+ <state>CA</state>
78
81
  <zip>94115</zip>
79
- <account-code>transaction-list-filled-1289558212</account-code>
80
82
  <country>US</country>
81
83
  <credit-card>
82
- <number>1</number>
83
- <month type="integer">1</month>
84
+ <number>4111111111111111</number>
84
85
  <year type="integer">2012</year>
86
+ <month type="integer">2</month>
85
87
  <verification-value>123</verification-value>
86
88
  </credit-card>
87
- <last-name>Test</last-name>
89
+ <account-code>transaction-list-filled-1296674173</account-code>
88
90
  <first-name>Verena</first-name>
89
- <state>CA</state>
91
+ <last-name>Test</last-name>
90
92
  </billing-info>
91
93
 
92
94
  headers:
95
+ authorization:
96
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
97
+ content-type:
98
+ - application/xml
93
99
  accept:
94
100
  - "*/*"
101
+ user-agent:
102
+ - Ruby
95
103
  connection:
96
104
  - close
97
- content-type:
98
- - application/xml
99
- authorization:
100
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
101
105
  response: !ruby/struct:VCR::Response
102
106
  status: !ruby/struct:VCR::ResponseStatus
103
107
  code: 200
104
- message: OK
108
+ message: "OK "
105
109
  headers:
106
- x-ua-compatible:
107
- - IE=Edge
108
- etag:
109
- - "\"6b43243555532badf83b7454b8f7dca0\""
110
- connection:
111
- - close
110
+ x-runtime:
111
+ - "1600"
112
112
  content-type:
113
113
  - application/xml; charset=utf-8
114
- x-runtime:
115
- - "183"
116
- date:
117
- - Sat, 08 Jan 2011 08:06:32 GMT
118
- server:
119
- - nginx/0.8.53
120
- content-length:
121
- - "647"
122
- set-cookie:
123
- - _recurly_session=6edb491f445ce1a32ef38b3e7faa2e56; domain=.recurly.com; path=/; secure; HttpOnly
114
+ etag:
115
+ - "\"ffaf82e69307e1c2d4b1f3763f4a6098\""
124
116
  cache-control:
125
117
  - private, max-age=0, must-revalidate
118
+ content-length:
119
+ - "649"
120
+ server:
121
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
122
+ date:
123
+ - Thu, 03 Feb 2011 22:25:00 GMT
124
+ connection:
125
+ - close
126
+ set-cookie:
127
+ - _recurly_session=142d6af51b0ab71c23ac320c950c6708; domain=.recurly.local; path=/; HttpOnly
126
128
  body: |
127
129
  <?xml version="1.0" encoding="UTF-8"?>
128
130
  <billing_info>
129
- <account_code>transaction-list-filled-1289558212</account_code>
131
+ <account_code>transaction-list-filled-1296674173</account_code>
130
132
  <first_name>Verena</first_name>
131
133
  <last_name>Test</last_name>
132
134
  <address1>123 Test St</address1>
@@ -139,82 +141,84 @@
139
141
  <vat_number></vat_number>
140
142
  <ip_address></ip_address>
141
143
  <credit_card>
142
- <type>bogus</type>
143
- <last_four>1</last_four>
144
- <month type="integer">1</month>
144
+ <type>visa</type>
145
+ <last_four>1111</last_four>
146
+ <month type="integer">2</month>
145
147
  <year type="integer">2012</year>
146
148
  </credit_card>
147
- <updated_at type="datetime">2011-01-08T08:06:32Z</updated_at>
149
+ <updated_at type="datetime">2011-02-03T22:25:00Z</updated_at>
148
150
  </billing_info>
149
151
 
150
152
  http_version: "1.1"
151
153
  - !ruby/struct:VCR::HTTPInteraction
152
154
  request: !ruby/struct:VCR::Request
153
155
  method: :post
154
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
156
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
155
157
  body: |
156
158
  <?xml version="1.0" encoding="UTF-8"?>
157
159
  <transaction>
158
160
  <account>
159
- <account-code>transaction-list-filled-1289558212</account-code>
161
+ <account-code>transaction-list-filled-1296674173</account-code>
160
162
  </account>
161
163
  <amount-in-cents type="integer">100</amount-in-cents>
162
164
  <description>one</description>
163
165
  </transaction>
164
166
 
165
167
  headers:
168
+ authorization:
169
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
170
+ content-type:
171
+ - application/xml
166
172
  accept:
167
173
  - "*/*"
174
+ user-agent:
175
+ - Ruby
168
176
  connection:
169
177
  - close
170
- content-type:
171
- - application/xml
172
- authorization:
173
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
174
178
  response: !ruby/struct:VCR::Response
175
179
  status: !ruby/struct:VCR::ResponseStatus
176
180
  code: 201
177
- message: Created
181
+ message: "Created "
178
182
  headers:
183
+ cache-control:
184
+ - no-cache
179
185
  location:
180
- - https://recurlytest3-test.recurly.com/transactions/51b7ffe336144df3b28e83d67a87c666
181
- connection:
182
- - close
186
+ - http://litle-test.recurly.local:3000/transactions/5f140afee0be4a7683fad66f62a66e90
187
+ x-runtime:
188
+ - "4346"
183
189
  content-type:
184
190
  - application/xml; charset=utf-8
185
- x-runtime:
186
- - "468"
187
- date:
188
- - Sat, 08 Jan 2011 08:06:33 GMT
189
- server:
190
- - nginx/0.8.53
191
191
  content-length:
192
- - "855"
192
+ - "864"
193
+ server:
194
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
195
+ date:
196
+ - Thu, 03 Feb 2011 22:25:07 GMT
197
+ connection:
198
+ - close
193
199
  set-cookie:
194
- - _recurly_session=d1c7ae447ddcab849c62b0a036e30d7d; domain=.recurly.com; path=/; secure; HttpOnly
195
- cache-control:
196
- - no-cache
200
+ - _recurly_session=c88f95bcc94387e037627fb39252f0ed; domain=.recurly.local; path=/; HttpOnly
197
201
  body: |
198
202
  <?xml version="1.0" encoding="UTF-8"?>
199
203
  <transaction type="Payment">
200
- <id>51b7ffe336144df3b28e83d67a87c666</id>
201
- <account_code>transaction-list-filled-1289558212</account_code>
204
+ <id>5f140afee0be4a7683fad66f62a66e90</id>
205
+ <account_code>transaction-list-filled-1296674173</account_code>
202
206
  <action>purchase</action>
203
- <date type="datetime">2011-01-08T08:06:33Z</date>
207
+ <date type="datetime">2011-02-03T22:25:04Z</date>
204
208
  <amount_in_cents type="integer">100</amount_in_cents>
205
209
  <status>success</status>
206
210
  <message>Test Gateway: Successful test transaction</message>
207
- <reference></reference>
211
+ <reference>12345</reference>
208
212
  <cvv_result code="M">Match</cvv_result>
209
213
  <avs_result code="D">Street address and postal code match.</avs_result>
210
- <avs_result_street></avs_result_street>
211
- <avs_result_postal></avs_result_postal>
214
+ <avs_result_street>Y</avs_result_street>
215
+ <avs_result_postal>Y</avs_result_postal>
212
216
  <test type="boolean">true</test>
213
217
  <voidable type="boolean">true</voidable>
214
218
  <refundable type="boolean">true</refundable>
215
219
  <credit_card>
216
- <type>bogus</type>
217
- <last_four>1</last_four>
220
+ <type>visa</type>
221
+ <last_four>1111</last_four>
218
222
  </credit_card>
219
223
  </transaction>
220
224
 
@@ -222,70 +226,72 @@
222
226
  - !ruby/struct:VCR::HTTPInteraction
223
227
  request: !ruby/struct:VCR::Request
224
228
  method: :post
225
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
229
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
226
230
  body: |
227
231
  <?xml version="1.0" encoding="UTF-8"?>
228
232
  <transaction>
229
233
  <account>
230
- <account-code>transaction-list-filled-1289558212</account-code>
234
+ <account-code>transaction-list-filled-1296674173</account-code>
231
235
  </account>
232
236
  <amount-in-cents type="integer">200</amount-in-cents>
233
237
  <description>two</description>
234
238
  </transaction>
235
239
 
236
240
  headers:
241
+ authorization:
242
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
243
+ content-type:
244
+ - application/xml
237
245
  accept:
238
246
  - "*/*"
247
+ user-agent:
248
+ - Ruby
239
249
  connection:
240
250
  - close
241
- content-type:
242
- - application/xml
243
- authorization:
244
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
245
251
  response: !ruby/struct:VCR::Response
246
252
  status: !ruby/struct:VCR::ResponseStatus
247
253
  code: 201
248
- message: Created
254
+ message: "Created "
249
255
  headers:
256
+ cache-control:
257
+ - no-cache
250
258
  location:
251
- - https://recurlytest3-test.recurly.com/transactions/0eb5eb3c2cbf477b8ce497d1bec6d919
252
- connection:
253
- - close
259
+ - http://litle-test.recurly.local:3000/transactions/c6bcf3df5b964c4d8064c4db2ecca646
260
+ x-runtime:
261
+ - "4123"
254
262
  content-type:
255
263
  - application/xml; charset=utf-8
256
- x-runtime:
257
- - "346"
258
- date:
259
- - Sat, 08 Jan 2011 08:06:34 GMT
260
- server:
261
- - nginx/0.8.53
262
264
  content-length:
263
- - "855"
265
+ - "864"
266
+ server:
267
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
268
+ date:
269
+ - Thu, 03 Feb 2011 22:25:13 GMT
270
+ connection:
271
+ - close
264
272
  set-cookie:
265
- - _recurly_session=2c777605c4b60a23fedf7c4f26bfe7a5; domain=.recurly.com; path=/; secure; HttpOnly
266
- cache-control:
267
- - no-cache
273
+ - _recurly_session=854dad49403654cdc5fdb6589e3236e6; domain=.recurly.local; path=/; HttpOnly
268
274
  body: |
269
275
  <?xml version="1.0" encoding="UTF-8"?>
270
276
  <transaction type="Payment">
271
- <id>0eb5eb3c2cbf477b8ce497d1bec6d919</id>
272
- <account_code>transaction-list-filled-1289558212</account_code>
277
+ <id>c6bcf3df5b964c4d8064c4db2ecca646</id>
278
+ <account_code>transaction-list-filled-1296674173</account_code>
273
279
  <action>purchase</action>
274
- <date type="datetime">2011-01-08T08:06:34Z</date>
280
+ <date type="datetime">2011-02-03T22:25:10Z</date>
275
281
  <amount_in_cents type="integer">200</amount_in_cents>
276
282
  <status>success</status>
277
283
  <message>Test Gateway: Successful test transaction</message>
278
- <reference></reference>
284
+ <reference>12345</reference>
279
285
  <cvv_result code="M">Match</cvv_result>
280
286
  <avs_result code="D">Street address and postal code match.</avs_result>
281
- <avs_result_street></avs_result_street>
282
- <avs_result_postal></avs_result_postal>
287
+ <avs_result_street>Y</avs_result_street>
288
+ <avs_result_postal>Y</avs_result_postal>
283
289
  <test type="boolean">true</test>
284
290
  <voidable type="boolean">true</voidable>
285
291
  <refundable type="boolean">true</refundable>
286
292
  <credit_card>
287
- <type>bogus</type>
288
- <last_four>1</last_four>
293
+ <type>visa</type>
294
+ <last_four>1111</last_four>
289
295
  </credit_card>
290
296
  </transaction>
291
297
 
@@ -293,70 +299,72 @@
293
299
  - !ruby/struct:VCR::HTTPInteraction
294
300
  request: !ruby/struct:VCR::Request
295
301
  method: :post
296
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/transactions.xml
302
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/transactions.xml
297
303
  body: |
298
304
  <?xml version="1.0" encoding="UTF-8"?>
299
305
  <transaction>
300
306
  <account>
301
- <account-code>transaction-list-filled-1289558212</account-code>
307
+ <account-code>transaction-list-filled-1296674173</account-code>
302
308
  </account>
303
309
  <amount-in-cents type="integer">300</amount-in-cents>
304
310
  <description>three</description>
305
311
  </transaction>
306
312
 
307
313
  headers:
314
+ authorization:
315
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
316
+ content-type:
317
+ - application/xml
308
318
  accept:
309
319
  - "*/*"
320
+ user-agent:
321
+ - Ruby
310
322
  connection:
311
323
  - close
312
- content-type:
313
- - application/xml
314
- authorization:
315
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
316
324
  response: !ruby/struct:VCR::Response
317
325
  status: !ruby/struct:VCR::ResponseStatus
318
326
  code: 201
319
- message: Created
327
+ message: "Created "
320
328
  headers:
329
+ cache-control:
330
+ - no-cache
321
331
  location:
322
- - https://recurlytest3-test.recurly.com/transactions/33dc1eaaeb28498483573195fad3387d
323
- connection:
324
- - close
332
+ - http://litle-test.recurly.local:3000/transactions/604b118b846043959624554b4170c230
333
+ x-runtime:
334
+ - "4250"
325
335
  content-type:
326
336
  - application/xml; charset=utf-8
327
- x-runtime:
328
- - "467"
329
- date:
330
- - Sat, 08 Jan 2011 08:06:36 GMT
331
- server:
332
- - nginx/0.8.53
333
337
  content-length:
334
- - "855"
338
+ - "864"
339
+ server:
340
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
341
+ date:
342
+ - Thu, 03 Feb 2011 22:25:19 GMT
343
+ connection:
344
+ - close
335
345
  set-cookie:
336
- - _recurly_session=2553b04e6c8069ac66b580a4cf12dfd7; domain=.recurly.com; path=/; secure; HttpOnly
337
- cache-control:
338
- - no-cache
346
+ - _recurly_session=689682746bfa0091922f707502427533; domain=.recurly.local; path=/; HttpOnly
339
347
  body: |
340
348
  <?xml version="1.0" encoding="UTF-8"?>
341
349
  <transaction type="Payment">
342
- <id>33dc1eaaeb28498483573195fad3387d</id>
343
- <account_code>transaction-list-filled-1289558212</account_code>
350
+ <id>604b118b846043959624554b4170c230</id>
351
+ <account_code>transaction-list-filled-1296674173</account_code>
344
352
  <action>purchase</action>
345
- <date type="datetime">2011-01-08T08:06:36Z</date>
353
+ <date type="datetime">2011-02-03T22:25:16Z</date>
346
354
  <amount_in_cents type="integer">300</amount_in_cents>
347
355
  <status>success</status>
348
356
  <message>Test Gateway: Successful test transaction</message>
349
- <reference></reference>
357
+ <reference>12345</reference>
350
358
  <cvv_result code="M">Match</cvv_result>
351
359
  <avs_result code="D">Street address and postal code match.</avs_result>
352
- <avs_result_street></avs_result_street>
353
- <avs_result_postal></avs_result_postal>
360
+ <avs_result_street>Y</avs_result_street>
361
+ <avs_result_postal>Y</avs_result_postal>
354
362
  <test type="boolean">true</test>
355
363
  <voidable type="boolean">true</voidable>
356
364
  <refundable type="boolean">true</refundable>
357
365
  <credit_card>
358
- <type>bogus</type>
359
- <last_four>1</last_four>
366
+ <type>visa</type>
367
+ <last_four>1111</last_four>
360
368
  </credit_card>
361
369
  </transaction>
362
370
 
@@ -364,40 +372,42 @@
364
372
  - !ruby/struct:VCR::HTTPInteraction
365
373
  request: !ruby/struct:VCR::Request
366
374
  method: :get
367
- uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/transaction-list-filled-1289558212/transactions
375
+ uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/transaction-list-filled-1296674173/transactions
368
376
  body:
369
377
  headers:
378
+ authorization:
379
+ - Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
370
380
  accept:
371
381
  - application/xml
382
+ accept-encoding:
383
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
384
+ user-agent:
385
+ - Ruby
372
386
  connection:
373
387
  - close
374
- authorization:
375
- - Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
376
388
  response: !ruby/struct:VCR::Response
377
389
  status: !ruby/struct:VCR::ResponseStatus
378
390
  code: 200
379
- message: OK
391
+ message: "OK "
380
392
  headers:
381
- x-ua-compatible:
382
- - IE=Edge
383
- etag:
384
- - "\"a7aa77277d0578e197096b2b55334dbc\""
385
- connection:
386
- - close
393
+ x-runtime:
394
+ - "477"
387
395
  content-type:
388
396
  - application/xml; charset=utf-8
389
- x-runtime:
390
- - "35"
391
- date:
392
- - Sat, 08 Jan 2011 08:06:37 GMT
393
- server:
394
- - nginx/0.8.53
395
- content-length:
396
- - "3311"
397
- set-cookie:
398
- - _recurly_session=2cbddb1194df08be161ae5c347542742; domain=.recurly.com; path=/; secure; HttpOnly
397
+ etag:
398
+ - "\"2f07f739e648db2897a93e2045ac85e5\""
399
399
  cache-control:
400
400
  - private, max-age=0, must-revalidate
401
+ content-length:
402
+ - "3319"
403
+ server:
404
+ - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
405
+ date:
406
+ - Thu, 03 Feb 2011 22:25:21 GMT
407
+ connection:
408
+ - close
409
+ set-cookie:
410
+ - _recurly_session=d0e55857aadf149be7300f6f9481958b; domain=.recurly.local; path=/; HttpOnly
401
411
  body: |
402
412
  <?xml version="1.0" encoding="UTF-8"?>
403
413
  <transactions type="collection">
@@ -405,72 +415,72 @@
405
415
  <per_page type="integer">50</per_page>
406
416
  <total_entries type="integer">4</total_entries>
407
417
  <transaction type="Payment">
408
- <id>33dc1eaaeb28498483573195fad3387d</id>
409
- <account_code>transaction-list-filled-1289558212</account_code>
418
+ <id>604b118b846043959624554b4170c230</id>
419
+ <account_code>transaction-list-filled-1296674173</account_code>
410
420
  <action>purchase</action>
411
- <date type="datetime">2011-01-08T00:06:36-08:00</date>
421
+ <date type="datetime">2011-02-03T22:25:16Z</date>
412
422
  <amount_in_cents type="integer">300</amount_in_cents>
413
423
  <status>success</status>
414
424
  <message>Test Gateway: Successful test transaction</message>
415
- <reference></reference>
425
+ <reference>12345</reference>
416
426
  <cvv_result code="M">Match</cvv_result>
417
427
  <avs_result code="D">Street address and postal code match.</avs_result>
418
- <avs_result_street></avs_result_street>
419
- <avs_result_postal></avs_result_postal>
428
+ <avs_result_street>Y</avs_result_street>
429
+ <avs_result_postal>Y</avs_result_postal>
420
430
  <test type="boolean">true</test>
421
431
  <voidable type="boolean">true</voidable>
422
432
  <refundable type="boolean">true</refundable>
423
433
  </transaction>
424
434
  <transaction type="Payment">
425
- <id>0eb5eb3c2cbf477b8ce497d1bec6d919</id>
426
- <account_code>transaction-list-filled-1289558212</account_code>
435
+ <id>c6bcf3df5b964c4d8064c4db2ecca646</id>
436
+ <account_code>transaction-list-filled-1296674173</account_code>
427
437
  <action>purchase</action>
428
- <date type="datetime">2011-01-08T00:06:34-08:00</date>
438
+ <date type="datetime">2011-02-03T22:25:10Z</date>
429
439
  <amount_in_cents type="integer">200</amount_in_cents>
430
440
  <status>success</status>
431
441
  <message>Test Gateway: Successful test transaction</message>
432
- <reference></reference>
442
+ <reference>12345</reference>
433
443
  <cvv_result code="M">Match</cvv_result>
434
444
  <avs_result code="D">Street address and postal code match.</avs_result>
435
- <avs_result_street></avs_result_street>
436
- <avs_result_postal></avs_result_postal>
445
+ <avs_result_street>Y</avs_result_street>
446
+ <avs_result_postal>Y</avs_result_postal>
437
447
  <test type="boolean">true</test>
438
448
  <voidable type="boolean">true</voidable>
439
449
  <refundable type="boolean">true</refundable>
440
450
  </transaction>
441
451
  <transaction type="Payment">
442
- <id>51b7ffe336144df3b28e83d67a87c666</id>
443
- <account_code>transaction-list-filled-1289558212</account_code>
452
+ <id>5f140afee0be4a7683fad66f62a66e90</id>
453
+ <account_code>transaction-list-filled-1296674173</account_code>
444
454
  <action>purchase</action>
445
- <date type="datetime">2011-01-08T00:06:33-08:00</date>
455
+ <date type="datetime">2011-02-03T22:25:04Z</date>
446
456
  <amount_in_cents type="integer">100</amount_in_cents>
447
457
  <status>success</status>
448
458
  <message>Test Gateway: Successful test transaction</message>
449
- <reference></reference>
459
+ <reference>12345</reference>
450
460
  <cvv_result code="M">Match</cvv_result>
451
461
  <avs_result code="D">Street address and postal code match.</avs_result>
452
- <avs_result_street></avs_result_street>
453
- <avs_result_postal></avs_result_postal>
462
+ <avs_result_street>Y</avs_result_street>
463
+ <avs_result_postal>Y</avs_result_postal>
454
464
  <test type="boolean">true</test>
455
465
  <voidable type="boolean">true</voidable>
456
466
  <refundable type="boolean">true</refundable>
457
467
  </transaction>
458
468
  <transaction type="Payment">
459
- <id>8bf331222c3d43eb9a48aedbb7cbe77a</id>
460
- <account_code>transaction-list-filled-1289558212</account_code>
469
+ <id>79bc4459b136460197dd1c1381f017af</id>
470
+ <account_code>transaction-list-filled-1296674173</account_code>
461
471
  <action>authorization</action>
462
- <date type="datetime">2011-01-08T00:06:32-08:00</date>
463
- <amount_in_cents type="integer">100</amount_in_cents>
464
- <status>void</status>
472
+ <date type="datetime">2011-02-03T22:25:00Z</date>
473
+ <amount_in_cents type="integer">0</amount_in_cents>
474
+ <status>success</status>
465
475
  <message>Test Gateway: Successful test transaction</message>
466
- <reference></reference>
476
+ <reference>12345</reference>
467
477
  <cvv_result code="M">Match</cvv_result>
468
478
  <avs_result code="D">Street address and postal code match.</avs_result>
469
- <avs_result_street></avs_result_street>
470
- <avs_result_postal></avs_result_postal>
479
+ <avs_result_street>Y</avs_result_street>
480
+ <avs_result_postal>Y</avs_result_postal>
471
481
  <test type="boolean">true</test>
472
482
  <voidable type="boolean">false</voidable>
473
- <refundable type="boolean">false</refundable>
483
+ <refundable type="boolean">true</refundable>
474
484
  </transaction>
475
485
  </transactions>
476
486