recurly 0.4.11 → 0.4.13

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 (70) hide show
  1. data/README.md +4 -8
  2. data/lib/recurly.rb +10 -19
  3. data/lib/recurly/config_parser.rb +5 -2
  4. data/lib/recurly/plan.rb +0 -1
  5. data/lib/recurly/rails3/recurly.rake +10 -26
  6. data/lib/recurly/transparent.rb +2 -0
  7. data/lib/recurly/verification.rb +14 -8
  8. data/lib/recurly/version.rb +1 -1
  9. data/spec/config/recurly.yml +3 -3
  10. data/spec/config/test1.yml +1 -3
  11. data/spec/config/test2.yml +2 -6
  12. data/spec/unit/config_spec.rb +9 -16
  13. data/spec/unit/transparent_spec.rb +0 -20
  14. data/spec/unit/verification_spec.rb +15 -9
  15. data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
  16. data/spec/vcr/account/close/1313708721.yml +107 -79
  17. data/spec/vcr/account/create-blank/1313708721.yml +37 -26
  18. data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
  19. data/spec/vcr/account/create-min/1313708721.yml +48 -30
  20. data/spec/vcr/account/create/1313708721.yml +52 -31
  21. data/spec/vcr/account/find/1313708721.yml +111 -81
  22. data/spec/vcr/account/list/1313708721.yml +1148 -719
  23. data/spec/vcr/account/update/1313708721.yml +182 -124
  24. data/spec/vcr/billing/create/1313708721.yml +156 -93
  25. data/spec/vcr/billing/destroy/1313708721.yml +198 -135
  26. data/spec/vcr/billing/errors/1313708721.yml +91 -56
  27. data/spec/vcr/billing/find/1313708721.yml +200 -122
  28. data/spec/vcr/billing/update/1313708721.yml +218 -126
  29. data/spec/vcr/charge/create/1313708721.yml +189 -120
  30. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
  31. data/spec/vcr/charge/list-all/1313708721.yml +235 -157
  32. data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
  33. data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
  34. data/spec/vcr/charge/lookup/1313708721.yml +127 -87
  35. data/spec/vcr/coupon/create/1296774903.yml +83 -95
  36. data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
  37. data/spec/vcr/credit/create/1313708090.yml +127 -87
  38. data/spec/vcr/credit/delete/1313708090.yml +169 -129
  39. data/spec/vcr/credit/list/1313708090.yml +235 -157
  40. data/spec/vcr/credit/lookup/1313708090.yml +127 -87
  41. data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
  42. data/spec/vcr/invoice/create/1296674173.yml +259 -162
  43. data/spec/vcr/invoice/list/1296674173.yml +342 -227
  44. data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
  45. data/spec/vcr/plan/all.yml +206 -198
  46. data/spec/vcr/plan/find.yml +109 -103
  47. data/spec/vcr/plan/update.yml +126 -93
  48. data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
  49. data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
  50. data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
  51. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
  52. data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
  53. data/spec/vcr/subscription/change1/1296674173.yml +303 -213
  54. data/spec/vcr/subscription/change2/1296674173.yml +303 -214
  55. data/spec/vcr/subscription/create/1296674173.yml +167 -111
  56. data/spec/vcr/subscription/find/1296674173.yml +210 -145
  57. data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
  58. data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
  59. data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
  60. data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
  61. data/spec/vcr/transaction/all/1311126815.yml +388 -206
  62. data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
  63. data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
  64. data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
  65. data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
  66. data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
  67. data/spec/vcr/transaction/void/1311126815.yml +280 -174
  68. metadata +109 -77
  69. data/spec/vcr/transaction/refund/1311126815.yml +0 -163
  70. data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,123 +1,184 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>transaction-list-initial-1311126815</account-code>\n
7
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
- \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
- headers:
11
- user-agent:
12
- - Recurly Ruby Client v0.4.10
13
- content-type:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>transaction-list-initial-1311126815</account-code>
10
+ <first-name>Verena</first-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ user-agent:
23
+ - Recurly Ruby Client v0.4.13
24
+ content-type:
14
25
  - application/xml
15
- response: !ruby/struct:VCR::Response
16
- status: !ruby/struct:VCR::ResponseStatus
26
+ response: !ruby/struct:VCR::Response
27
+ status: !ruby/struct:VCR::ResponseStatus
17
28
  code: 201
18
29
  message: Created
19
- headers:
20
- location:
21
- - http://app.lvh.me:3000/accounts/transaction-list-initial-1311126815
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/transaction-list-initial-1311126815
33
+ content-type:
23
34
  - application/xml; charset=utf-8
24
- cache-control:
35
+ cache-control:
25
36
  - no-cache
26
- x-ua-compatible:
37
+ x-ua-compatible:
27
38
  - IE=Edge
28
- set-cookie:
29
- - _recurly_session=023cbc49c64f2209ac7920604b721b5e; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=f7ec2a54761b6dd2fb4f549d6538fbd0; domain=.lvh.me; path=/; HttpOnly
41
+ server:
32
42
  - thin 1.2.11 codename Bat-Shit Crazy
33
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>transaction-list-initial-1311126815</id>\n
34
- \ <account_code>transaction-list-initial-1311126815</account_code>\n <username></username>\n
35
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
- \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
- \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>8239ee2bba784b5684e179887c971bf1</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:02:51Z</created_at>\n <state>active</state>\n</account>\n"
39
- http_version: '1.1'
40
- - !ruby/struct:VCR::HTTPInteraction
41
- request: !ruby/struct:VCR::Request
43
+ body: |
44
+ <?xml version="1.0" encoding="UTF-8"?>
45
+ <account>
46
+ <id>transaction-list-initial-1311126815</id>
47
+ <account_code>transaction-list-initial-1311126815</account_code>
48
+ <username></username>
49
+ <email>verena@test.com</email>
50
+ <first_name>Verena</first_name>
51
+ <last_name>Test</last_name>
52
+ <company_name>Recurly Ruby Gem</company_name>
53
+ <balance_in_cents type="integer">0</balance_in_cents>
54
+ <closed type="boolean">false</closed>
55
+ <hosted_login_token>fe6b0512610d41568c25fa2011513116</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:02:13Z</created_at>
57
+ <state>active</state>
58
+ </account>
59
+
60
+ http_version: "1.1"
61
+ - !ruby/struct:VCR::HTTPInteraction
62
+ request: !ruby/struct:VCR::Request
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-list-initial-1311126815/billing_info.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
45
- \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
46
- Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
47
- \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
48
- \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
49
- \ </credit-card>\n <account-code>transaction-list-initial-1311126815</account-code>\n</billing-info>\n"
50
- headers:
51
- user-agent:
52
- - Recurly Ruby Client v0.4.10
53
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-initial-1311126815/billing_info.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <billing-info>
68
+ <first-name>Verena</first-name>
69
+ <last-name>Test</last-name>
70
+ <address1>123 Test St</address1>
71
+ <city>San Francisco</city>
72
+ <state>CA</state>
73
+ <zip>94115</zip>
74
+ <country>US</country>
75
+ <credit-card>
76
+ <number>4111111111111111</number>
77
+ <year type="integer">2012</year>
78
+ <month type="integer">9</month>
79
+ <verification-value>123</verification-value>
80
+ </credit-card>
81
+ <account-code>transaction-list-initial-1311126815</account-code>
82
+ </billing-info>
83
+
84
+ headers:
85
+ user-agent:
86
+ - Recurly Ruby Client v0.4.13
87
+ content-type:
54
88
  - application/xml
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
89
+ response: !ruby/struct:VCR::Response
90
+ status: !ruby/struct:VCR::ResponseStatus
57
91
  code: 200
58
92
  message: OK
59
- headers:
60
- content-type:
93
+ headers:
94
+ content-type:
61
95
  - application/xml; charset=utf-8
62
- etag:
63
- - ! '"2b6e6529ce132cc8d48cfd75f7bfaba1"'
64
- cache-control:
96
+ etag:
97
+ - "\"8b47654b43bbed6980b784d8f1903ba1\""
98
+ cache-control:
65
99
  - max-age=0, private, must-revalidate
66
- x-ua-compatible:
100
+ x-ua-compatible:
67
101
  - IE=Edge
68
- set-cookie:
69
- - _recurly_session=9148a6bbcbdc2fc3b39cd179ef456ee2; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
102
+ set-cookie:
103
+ - _recurly_session=99c551da31fd97a815b75992d6fb2d3a; domain=.lvh.me; path=/; HttpOnly
104
+ server:
72
105
  - thin 1.2.11 codename Bat-Shit Crazy
73
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-list-initial-1311126815</account_code>\n
74
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
75
- Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
76
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
77
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
78
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
79
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:02:56Z</updated_at>\n</billing_info>\n"
80
- http_version: '1.1'
81
- - !ruby/struct:VCR::HTTPInteraction
82
- request: !ruby/struct:VCR::Request
106
+ body: |
107
+ <?xml version="1.0" encoding="UTF-8"?>
108
+ <billing_info>
109
+ <account_code>transaction-list-initial-1311126815</account_code>
110
+ <first_name>Verena</first_name>
111
+ <last_name>Test</last_name>
112
+ <address1>123 Test St</address1>
113
+ <address2></address2>
114
+ <city>San Francisco</city>
115
+ <state>CA</state>
116
+ <country>US</country>
117
+ <zip>94115</zip>
118
+ <phone></phone>
119
+ <vat_number></vat_number>
120
+ <ip_address></ip_address>
121
+ <credit_card>
122
+ <type>visa</type>
123
+ <last_four>1111</last_four>
124
+ <month type="integer">9</month>
125
+ <year type="integer">2012</year>
126
+ </credit_card>
127
+ <updated_at type="datetime">2011-09-22T22:02:14Z</updated_at>
128
+ </billing_info>
129
+
130
+ http_version: "1.1"
131
+ - !ruby/struct:VCR::HTTPInteraction
132
+ request: !ruby/struct:VCR::Request
83
133
  method: :get
84
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-list-initial-1311126815/transactions
85
- body: !!null
86
- headers:
87
- user-agent:
88
- - Recurly Ruby Client v0.4.10
89
- accept:
134
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-initial-1311126815/transactions
135
+ body:
136
+ headers:
137
+ user-agent:
138
+ - Recurly Ruby Client v0.4.13
139
+ accept:
90
140
  - application/xml
91
- accept-encoding:
141
+ accept-encoding:
92
142
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
93
- response: !ruby/struct:VCR::Response
94
- status: !ruby/struct:VCR::ResponseStatus
143
+ response: !ruby/struct:VCR::Response
144
+ status: !ruby/struct:VCR::ResponseStatus
95
145
  code: 200
96
146
  message: OK
97
- headers:
98
- content-type:
147
+ headers:
148
+ content-type:
99
149
  - application/xml; charset=utf-8
100
- etag:
101
- - ! '"487672e67a639a21b87d29fe053f7c26"'
102
- cache-control:
150
+ etag:
151
+ - "\"6e407a58485a2444cee94700813768ee\""
152
+ cache-control:
103
153
  - max-age=0, private, must-revalidate
104
- x-ua-compatible:
154
+ x-ua-compatible:
105
155
  - IE=Edge
106
- set-cookie:
107
- - _recurly_session=b685c5816b85a03abaf99a09bc1e4adb; domain=.lvh.me; path=/;
108
- HttpOnly
109
- server:
156
+ server:
110
157
  - thin 1.2.11 codename Bat-Shit Crazy
111
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
112
- \ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">50</per_page>\n
113
- \ <total_entries type=\"integer\">1</total_entries>\n <transaction type=\"Payment\">\n
114
- \ <id>abaebdec622e4b249fe039c9bfee9c45</id>\n <account_code>transaction-list-initial-1311126815</account_code>\n
115
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:02:54Z</date>\n
116
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
117
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
118
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
119
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
120
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
121
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
122
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n</transactions>\n"
123
- http_version: '1.1'
158
+ body: |
159
+ <?xml version="1.0" encoding="UTF-8"?>
160
+ <transactions type="collection">
161
+ <current_page type="integer">1</current_page>
162
+ <per_page type="integer">50</per_page>
163
+ <total_entries type="integer">1</total_entries>
164
+ <transaction type="Payment">
165
+ <id>f119d34e4e6347fd9814a323e7d9dbd7</id>
166
+ <account_code>transaction-list-initial-1311126815</account_code>
167
+ <action>authorization</action>
168
+ <date type="datetime">2011-09-22T22:02:14Z</date>
169
+ <amount_in_cents type="integer">0</amount_in_cents>
170
+ <currency>USD</currency>
171
+ <status>success</status>
172
+ <message>Test Gateway: Successful test transaction</message>
173
+ <reference>12345</reference>
174
+ <cvv_result code="M">Match</cvv_result>
175
+ <avs_result code="D">Street address and postal code match.</avs_result>
176
+ <avs_result_street>Y</avs_result_street>
177
+ <avs_result_postal>Y</avs_result_postal>
178
+ <test type="boolean">true</test>
179
+ <voidable type="boolean">false</voidable>
180
+ <refundable type="boolean">false</refundable>
181
+ </transaction>
182
+ </transactions>
183
+
184
+ http_version: "1.1"
@@ -1,335 +1,487 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
4
4
  method: :post
5
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
6
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>transaction-lookup-1311126815</account-code>\n
7
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
- \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
- headers:
11
- user-agent:
12
- - Recurly Ruby Client v0.4.10
13
- content-type:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>transaction-lookup-1311126815</account-code>
10
+ <first-name>Verena</first-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ user-agent:
23
+ - Recurly Ruby Client v0.4.13
24
+ content-type:
14
25
  - application/xml
15
- response: !ruby/struct:VCR::Response
16
- status: !ruby/struct:VCR::ResponseStatus
26
+ response: !ruby/struct:VCR::Response
27
+ status: !ruby/struct:VCR::ResponseStatus
17
28
  code: 201
18
29
  message: Created
19
- headers:
20
- location:
21
- - http://app.lvh.me:3000/accounts/transaction-lookup-1311126815
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/transaction-lookup-1311126815
33
+ content-type:
23
34
  - application/xml; charset=utf-8
24
- cache-control:
35
+ cache-control:
25
36
  - no-cache
26
- x-ua-compatible:
37
+ x-ua-compatible:
27
38
  - IE=Edge
28
- set-cookie:
29
- - _recurly_session=3c7eca876e4b920bdcff04dd172fde2a; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=1461127dccc40f9d070ce2042663ef48; domain=.lvh.me; path=/; HttpOnly
41
+ server:
32
42
  - thin 1.2.11 codename Bat-Shit Crazy
33
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>transaction-lookup-1311126815</id>\n
34
- \ <account_code>transaction-lookup-1311126815</account_code>\n <username></username>\n
35
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
- \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
- \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>2dda3156121d496088e0ecd049d68621</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:03:05Z</created_at>\n <state>active</state>\n</account>\n"
39
- http_version: '1.1'
40
- - !ruby/struct:VCR::HTTPInteraction
41
- request: !ruby/struct:VCR::Request
43
+ body: |
44
+ <?xml version="1.0" encoding="UTF-8"?>
45
+ <account>
46
+ <id>transaction-lookup-1311126815</id>
47
+ <account_code>transaction-lookup-1311126815</account_code>
48
+ <username></username>
49
+ <email>verena@test.com</email>
50
+ <first_name>Verena</first_name>
51
+ <last_name>Test</last_name>
52
+ <company_name>Recurly Ruby Gem</company_name>
53
+ <balance_in_cents type="integer">0</balance_in_cents>
54
+ <closed type="boolean">false</closed>
55
+ <hosted_login_token>f992a0b6b2e94448b585f9e05ca1bea5</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:02:17Z</created_at>
57
+ <state>active</state>
58
+ </account>
59
+
60
+ http_version: "1.1"
61
+ - !ruby/struct:VCR::HTTPInteraction
62
+ request: !ruby/struct:VCR::Request
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-lookup-1311126815/billing_info.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
45
- \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
46
- Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
47
- \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
48
- \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
49
- \ </credit-card>\n <account-code>transaction-lookup-1311126815</account-code>\n</billing-info>\n"
50
- headers:
51
- user-agent:
52
- - Recurly Ruby Client v0.4.10
53
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-lookup-1311126815/billing_info.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <billing-info>
68
+ <first-name>Verena</first-name>
69
+ <last-name>Test</last-name>
70
+ <address1>123 Test St</address1>
71
+ <city>San Francisco</city>
72
+ <state>CA</state>
73
+ <zip>94115</zip>
74
+ <country>US</country>
75
+ <credit-card>
76
+ <number>4111111111111111</number>
77
+ <year type="integer">2012</year>
78
+ <month type="integer">9</month>
79
+ <verification-value>123</verification-value>
80
+ </credit-card>
81
+ <account-code>transaction-lookup-1311126815</account-code>
82
+ </billing-info>
83
+
84
+ headers:
85
+ user-agent:
86
+ - Recurly Ruby Client v0.4.13
87
+ content-type:
54
88
  - application/xml
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
89
+ response: !ruby/struct:VCR::Response
90
+ status: !ruby/struct:VCR::ResponseStatus
57
91
  code: 200
58
92
  message: OK
59
- headers:
60
- content-type:
93
+ headers:
94
+ content-type:
61
95
  - application/xml; charset=utf-8
62
- etag:
63
- - ! '"0eeb193d8cc4352f5959980091279cf3"'
64
- cache-control:
96
+ etag:
97
+ - "\"ee9e1fdd278defcbe4aab907505f1882\""
98
+ cache-control:
65
99
  - max-age=0, private, must-revalidate
66
- x-ua-compatible:
100
+ x-ua-compatible:
67
101
  - IE=Edge
68
- set-cookie:
69
- - _recurly_session=9b97147fd5124c731e63781c79509239; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
102
+ set-cookie:
103
+ - _recurly_session=81a6f51de00ff91952ffcf8990f76517; domain=.lvh.me; path=/; HttpOnly
104
+ server:
72
105
  - thin 1.2.11 codename Bat-Shit Crazy
73
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-lookup-1311126815</account_code>\n
74
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
75
- Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
76
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
77
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
78
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
79
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:03:09Z</updated_at>\n</billing_info>\n"
80
- http_version: '1.1'
81
- - !ruby/struct:VCR::HTTPInteraction
82
- request: !ruby/struct:VCR::Request
106
+ body: |
107
+ <?xml version="1.0" encoding="UTF-8"?>
108
+ <billing_info>
109
+ <account_code>transaction-lookup-1311126815</account_code>
110
+ <first_name>Verena</first_name>
111
+ <last_name>Test</last_name>
112
+ <address1>123 Test St</address1>
113
+ <address2></address2>
114
+ <city>San Francisco</city>
115
+ <state>CA</state>
116
+ <country>US</country>
117
+ <zip>94115</zip>
118
+ <phone></phone>
119
+ <vat_number></vat_number>
120
+ <ip_address></ip_address>
121
+ <credit_card>
122
+ <type>visa</type>
123
+ <last_four>1111</last_four>
124
+ <month type="integer">9</month>
125
+ <year type="integer">2012</year>
126
+ </credit_card>
127
+ <updated_at type="datetime">2011-09-22T22:02:18Z</updated_at>
128
+ </billing_info>
129
+
130
+ http_version: "1.1"
131
+ - !ruby/struct:VCR::HTTPInteraction
132
+ request: !ruby/struct:VCR::Request
83
133
  method: :post
84
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
85
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
86
- \ <account-code>transaction-lookup-1311126815</account-code>\n <billing-info>\n
87
- \ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
88
- \ <amount-in-cents type=\"integer\">100</amount-in-cents>\n <description>one</description>\n</transaction>\n"
89
- headers:
90
- user-agent:
91
- - Recurly Ruby Client v0.4.10
92
- content-type:
134
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
135
+ body: |
136
+ <?xml version="1.0" encoding="UTF-8"?>
137
+ <transaction>
138
+ <account>
139
+ <account-code>transaction-lookup-1311126815</account-code>
140
+ <billing-info>
141
+ <credit-card>
142
+ </credit-card>
143
+ </billing-info>
144
+ </account>
145
+ <amount-in-cents type="integer">100</amount-in-cents>
146
+ <description>one</description>
147
+ </transaction>
148
+
149
+ headers:
150
+ user-agent:
151
+ - Recurly Ruby Client v0.4.13
152
+ content-type:
93
153
  - application/xml
94
- response: !ruby/struct:VCR::Response
95
- status: !ruby/struct:VCR::ResponseStatus
154
+ response: !ruby/struct:VCR::Response
155
+ status: !ruby/struct:VCR::ResponseStatus
96
156
  code: 201
97
157
  message: Created
98
- headers:
99
- location:
100
- - http://app.lvh.me:3000/transactions/a16eacf349f84d7fa15f99c00f78328c
101
- content-type:
158
+ headers:
159
+ location:
160
+ - http://api.lvh.me:3000/transactions/40af6e11e6ce42fe9bb1176582eef12b
161
+ content-type:
102
162
  - application/xml; charset=utf-8
103
- cache-control:
163
+ cache-control:
104
164
  - no-cache
105
- x-ua-compatible:
165
+ x-ua-compatible:
106
166
  - IE=Edge
107
- set-cookie:
108
- - _recurly_session=54cbe2bb4c1e988835e5541f940371d5; domain=.lvh.me; path=/;
109
- HttpOnly
110
- server:
167
+ set-cookie:
168
+ - _recurly_session=70615e159ad42d1b223b46375eb3b7e2; domain=.lvh.me; path=/; HttpOnly
169
+ server:
111
170
  - thin 1.2.11 codename Bat-Shit Crazy
112
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
113
- \ <id>a16eacf349f84d7fa15f99c00f78328c</id>\n <account_code>transaction-lookup-1311126815</account_code>\n
114
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:10Z</date>\n
115
- \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
116
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
117
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
118
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
119
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
120
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
121
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
122
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
123
- http_version: '1.1'
124
- - !ruby/struct:VCR::HTTPInteraction
125
- request: !ruby/struct:VCR::Request
171
+ body: |
172
+ <?xml version="1.0" encoding="UTF-8"?>
173
+ <transaction type="Payment">
174
+ <id>40af6e11e6ce42fe9bb1176582eef12b</id>
175
+ <account_code>transaction-lookup-1311126815</account_code>
176
+ <action>purchase</action>
177
+ <date type="datetime">2011-09-22T22:02:18Z</date>
178
+ <amount_in_cents type="integer">100</amount_in_cents>
179
+ <currency>USD</currency>
180
+ <status>success</status>
181
+ <message>Test Gateway: Successful test transaction</message>
182
+ <reference>12345</reference>
183
+ <cvv_result code="M">Match</cvv_result>
184
+ <avs_result code="D">Street address and postal code match.</avs_result>
185
+ <avs_result_street>Y</avs_result_street>
186
+ <avs_result_postal>Y</avs_result_postal>
187
+ <test type="boolean">true</test>
188
+ <voidable type="boolean">true</voidable>
189
+ <refundable type="boolean">true</refundable>
190
+ <credit_card>
191
+ <type>visa</type>
192
+ <last_four>1111</last_four>
193
+ </credit_card>
194
+ </transaction>
195
+
196
+ http_version: "1.1"
197
+ - !ruby/struct:VCR::HTTPInteraction
198
+ request: !ruby/struct:VCR::Request
126
199
  method: :post
127
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
128
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
129
- \ <account-code>transaction-lookup-1311126815</account-code>\n <billing-info>\n
130
- \ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
131
- \ <amount-in-cents type=\"integer\">200</amount-in-cents>\n <description>two</description>\n</transaction>\n"
132
- headers:
133
- user-agent:
134
- - Recurly Ruby Client v0.4.10
135
- content-type:
200
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
201
+ body: |
202
+ <?xml version="1.0" encoding="UTF-8"?>
203
+ <transaction>
204
+ <account>
205
+ <account-code>transaction-lookup-1311126815</account-code>
206
+ <billing-info>
207
+ <credit-card>
208
+ </credit-card>
209
+ </billing-info>
210
+ </account>
211
+ <amount-in-cents type="integer">200</amount-in-cents>
212
+ <description>two</description>
213
+ </transaction>
214
+
215
+ headers:
216
+ user-agent:
217
+ - Recurly Ruby Client v0.4.13
218
+ content-type:
136
219
  - application/xml
137
- response: !ruby/struct:VCR::Response
138
- status: !ruby/struct:VCR::ResponseStatus
220
+ response: !ruby/struct:VCR::Response
221
+ status: !ruby/struct:VCR::ResponseStatus
139
222
  code: 201
140
223
  message: Created
141
- headers:
142
- location:
143
- - http://app.lvh.me:3000/transactions/a8069a0dec084019960a19a4e25b5b1d
144
- content-type:
224
+ headers:
225
+ location:
226
+ - http://api.lvh.me:3000/transactions/d30f3a8a85564106b2621a87a0cff4a5
227
+ content-type:
145
228
  - application/xml; charset=utf-8
146
- cache-control:
229
+ cache-control:
147
230
  - no-cache
148
- x-ua-compatible:
231
+ x-ua-compatible:
149
232
  - IE=Edge
150
- set-cookie:
151
- - _recurly_session=fab17cca7b9ce234e0c7b6dba3f135d4; domain=.lvh.me; path=/;
152
- HttpOnly
153
- server:
233
+ set-cookie:
234
+ - _recurly_session=cbc85a92fafba8545b5a1a6dff429e79; domain=.lvh.me; path=/; HttpOnly
235
+ server:
154
236
  - thin 1.2.11 codename Bat-Shit Crazy
155
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
156
- \ <id>a8069a0dec084019960a19a4e25b5b1d</id>\n <account_code>transaction-lookup-1311126815</account_code>\n
157
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:12Z</date>\n
158
- \ <amount_in_cents type=\"integer\">200</amount_in_cents>\n <currency>USD</currency>\n
159
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
160
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
161
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
162
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
163
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
164
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
165
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
166
- http_version: '1.1'
167
- - !ruby/struct:VCR::HTTPInteraction
168
- request: !ruby/struct:VCR::Request
237
+ body: |
238
+ <?xml version="1.0" encoding="UTF-8"?>
239
+ <transaction type="Payment">
240
+ <id>d30f3a8a85564106b2621a87a0cff4a5</id>
241
+ <account_code>transaction-lookup-1311126815</account_code>
242
+ <action>purchase</action>
243
+ <date type="datetime">2011-09-22T22:02:19Z</date>
244
+ <amount_in_cents type="integer">200</amount_in_cents>
245
+ <currency>USD</currency>
246
+ <status>success</status>
247
+ <message>Test Gateway: Successful test transaction</message>
248
+ <reference>12345</reference>
249
+ <cvv_result code="M">Match</cvv_result>
250
+ <avs_result code="D">Street address and postal code match.</avs_result>
251
+ <avs_result_street>Y</avs_result_street>
252
+ <avs_result_postal>Y</avs_result_postal>
253
+ <test type="boolean">true</test>
254
+ <voidable type="boolean">true</voidable>
255
+ <refundable type="boolean">true</refundable>
256
+ <credit_card>
257
+ <type>visa</type>
258
+ <last_four>1111</last_four>
259
+ </credit_card>
260
+ </transaction>
261
+
262
+ http_version: "1.1"
263
+ - !ruby/struct:VCR::HTTPInteraction
264
+ request: !ruby/struct:VCR::Request
169
265
  method: :post
170
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
171
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
172
- \ <account-code>transaction-lookup-1311126815</account-code>\n <billing-info>\n
173
- \ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
174
- \ <amount-in-cents type=\"integer\">300</amount-in-cents>\n <description>three</description>\n</transaction>\n"
175
- headers:
176
- user-agent:
177
- - Recurly Ruby Client v0.4.10
178
- content-type:
266
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
267
+ body: |
268
+ <?xml version="1.0" encoding="UTF-8"?>
269
+ <transaction>
270
+ <account>
271
+ <account-code>transaction-lookup-1311126815</account-code>
272
+ <billing-info>
273
+ <credit-card>
274
+ </credit-card>
275
+ </billing-info>
276
+ </account>
277
+ <amount-in-cents type="integer">300</amount-in-cents>
278
+ <description>three</description>
279
+ </transaction>
280
+
281
+ headers:
282
+ user-agent:
283
+ - Recurly Ruby Client v0.4.13
284
+ content-type:
179
285
  - application/xml
180
- response: !ruby/struct:VCR::Response
181
- status: !ruby/struct:VCR::ResponseStatus
286
+ response: !ruby/struct:VCR::Response
287
+ status: !ruby/struct:VCR::ResponseStatus
182
288
  code: 201
183
289
  message: Created
184
- headers:
185
- location:
186
- - http://app.lvh.me:3000/transactions/ad487efd93b24ca9b9db55b68f8bb1a6
187
- content-type:
290
+ headers:
291
+ location:
292
+ - http://api.lvh.me:3000/transactions/b4ed42a1812f44dc98b3e8310e59f249
293
+ content-type:
188
294
  - application/xml; charset=utf-8
189
- cache-control:
295
+ cache-control:
190
296
  - no-cache
191
- x-ua-compatible:
297
+ x-ua-compatible:
192
298
  - IE=Edge
193
- set-cookie:
194
- - _recurly_session=becc0654869472d345d53a6ece133be0; domain=.lvh.me; path=/;
195
- HttpOnly
196
- server:
299
+ set-cookie:
300
+ - _recurly_session=4d39ec478c2d3057b3fff83f5f5267c4; domain=.lvh.me; path=/; HttpOnly
301
+ server:
197
302
  - thin 1.2.11 codename Bat-Shit Crazy
198
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
199
- \ <id>ad487efd93b24ca9b9db55b68f8bb1a6</id>\n <account_code>transaction-lookup-1311126815</account_code>\n
200
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:13Z</date>\n
201
- \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
202
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
203
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
204
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
205
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
206
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
207
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
208
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
209
- http_version: '1.1'
210
- - !ruby/struct:VCR::HTTPInteraction
211
- request: !ruby/struct:VCR::Request
303
+ body: |
304
+ <?xml version="1.0" encoding="UTF-8"?>
305
+ <transaction type="Payment">
306
+ <id>b4ed42a1812f44dc98b3e8310e59f249</id>
307
+ <account_code>transaction-lookup-1311126815</account_code>
308
+ <action>purchase</action>
309
+ <date type="datetime">2011-09-22T22:02:19Z</date>
310
+ <amount_in_cents type="integer">300</amount_in_cents>
311
+ <currency>USD</currency>
312
+ <status>success</status>
313
+ <message>Test Gateway: Successful test transaction</message>
314
+ <reference>12345</reference>
315
+ <cvv_result code="M">Match</cvv_result>
316
+ <avs_result code="D">Street address and postal code match.</avs_result>
317
+ <avs_result_street>Y</avs_result_street>
318
+ <avs_result_postal>Y</avs_result_postal>
319
+ <test type="boolean">true</test>
320
+ <voidable type="boolean">true</voidable>
321
+ <refundable type="boolean">true</refundable>
322
+ <credit_card>
323
+ <type>visa</type>
324
+ <last_four>1111</last_four>
325
+ </credit_card>
326
+ </transaction>
327
+
328
+ http_version: "1.1"
329
+ - !ruby/struct:VCR::HTTPInteraction
330
+ request: !ruby/struct:VCR::Request
212
331
  method: :get
213
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions/a16eacf349f84d7fa15f99c00f78328c.xml?account_code=transaction-lookup-1311126815
214
- body: !!null
215
- headers:
216
- user-agent:
217
- - Recurly Ruby Client v0.4.10
218
- accept:
332
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions/40af6e11e6ce42fe9bb1176582eef12b.xml?account_code=transaction-lookup-1311126815
333
+ body:
334
+ headers:
335
+ user-agent:
336
+ - Recurly Ruby Client v0.4.13
337
+ accept:
219
338
  - application/xml
220
- accept-encoding:
339
+ accept-encoding:
221
340
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
222
- response: !ruby/struct:VCR::Response
223
- status: !ruby/struct:VCR::ResponseStatus
341
+ response: !ruby/struct:VCR::Response
342
+ status: !ruby/struct:VCR::ResponseStatus
224
343
  code: 200
225
344
  message: OK
226
- headers:
227
- content-type:
345
+ headers:
346
+ content-type:
228
347
  - application/xml; charset=utf-8
229
- etag:
230
- - ! '"9ca5248b36d4e293ed7166262129a759"'
231
- cache-control:
348
+ etag:
349
+ - "\"d1cb35ca76a9c91d8098148477b1b010\""
350
+ cache-control:
232
351
  - max-age=0, private, must-revalidate
233
- x-ua-compatible:
352
+ x-ua-compatible:
234
353
  - IE=Edge
235
- set-cookie:
236
- - _recurly_session=ed5a99d68b3d821931eac702461552d4; domain=.lvh.me; path=/;
237
- HttpOnly
238
- server:
354
+ server:
239
355
  - thin 1.2.11 codename Bat-Shit Crazy
240
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
241
- \ <id>a16eacf349f84d7fa15f99c00f78328c</id>\n <account_code>transaction-lookup-1311126815</account_code>\n
242
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:10Z</date>\n
243
- \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
244
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
245
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
246
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
247
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
248
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
249
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
250
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
251
- http_version: '1.1'
252
- - !ruby/struct:VCR::HTTPInteraction
253
- request: !ruby/struct:VCR::Request
356
+ body: |
357
+ <?xml version="1.0" encoding="UTF-8"?>
358
+ <transaction type="Payment">
359
+ <id>40af6e11e6ce42fe9bb1176582eef12b</id>
360
+ <account_code>transaction-lookup-1311126815</account_code>
361
+ <action>purchase</action>
362
+ <date type="datetime">2011-09-22T22:02:18Z</date>
363
+ <amount_in_cents type="integer">100</amount_in_cents>
364
+ <currency>USD</currency>
365
+ <status>success</status>
366
+ <message>Test Gateway: Successful test transaction</message>
367
+ <reference>12345</reference>
368
+ <cvv_result code="M">Match</cvv_result>
369
+ <avs_result code="D">Street address and postal code match.</avs_result>
370
+ <avs_result_street>Y</avs_result_street>
371
+ <avs_result_postal>Y</avs_result_postal>
372
+ <test type="boolean">true</test>
373
+ <voidable type="boolean">true</voidable>
374
+ <refundable type="boolean">true</refundable>
375
+ <credit_card>
376
+ <type>visa</type>
377
+ <last_four>1111</last_four>
378
+ </credit_card>
379
+ </transaction>
380
+
381
+ http_version: "1.1"
382
+ - !ruby/struct:VCR::HTTPInteraction
383
+ request: !ruby/struct:VCR::Request
254
384
  method: :get
255
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions/a8069a0dec084019960a19a4e25b5b1d.xml?account_code=transaction-lookup-1311126815
256
- body: !!null
257
- headers:
258
- user-agent:
259
- - Recurly Ruby Client v0.4.10
260
- accept:
385
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions/d30f3a8a85564106b2621a87a0cff4a5.xml?account_code=transaction-lookup-1311126815
386
+ body:
387
+ headers:
388
+ user-agent:
389
+ - Recurly Ruby Client v0.4.13
390
+ accept:
261
391
  - application/xml
262
- accept-encoding:
392
+ accept-encoding:
263
393
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
264
- response: !ruby/struct:VCR::Response
265
- status: !ruby/struct:VCR::ResponseStatus
394
+ response: !ruby/struct:VCR::Response
395
+ status: !ruby/struct:VCR::ResponseStatus
266
396
  code: 200
267
397
  message: OK
268
- headers:
269
- content-type:
398
+ headers:
399
+ content-type:
270
400
  - application/xml; charset=utf-8
271
- etag:
272
- - ! '"d20753acc490191a8ba228ca2afa2ab9"'
273
- cache-control:
401
+ etag:
402
+ - "\"06a4139d887c5c506d56dba7710725da\""
403
+ cache-control:
274
404
  - max-age=0, private, must-revalidate
275
- x-ua-compatible:
405
+ x-ua-compatible:
276
406
  - IE=Edge
277
- set-cookie:
278
- - _recurly_session=91780e00b69e7d468637795b31f340c5; domain=.lvh.me; path=/;
279
- HttpOnly
280
- server:
407
+ server:
281
408
  - thin 1.2.11 codename Bat-Shit Crazy
282
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
283
- \ <id>a8069a0dec084019960a19a4e25b5b1d</id>\n <account_code>transaction-lookup-1311126815</account_code>\n
284
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:12Z</date>\n
285
- \ <amount_in_cents type=\"integer\">200</amount_in_cents>\n <currency>USD</currency>\n
286
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
287
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
288
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
289
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
290
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
291
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
292
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
293
- http_version: '1.1'
294
- - !ruby/struct:VCR::HTTPInteraction
295
- request: !ruby/struct:VCR::Request
409
+ body: |
410
+ <?xml version="1.0" encoding="UTF-8"?>
411
+ <transaction type="Payment">
412
+ <id>d30f3a8a85564106b2621a87a0cff4a5</id>
413
+ <account_code>transaction-lookup-1311126815</account_code>
414
+ <action>purchase</action>
415
+ <date type="datetime">2011-09-22T22:02:19Z</date>
416
+ <amount_in_cents type="integer">200</amount_in_cents>
417
+ <currency>USD</currency>
418
+ <status>success</status>
419
+ <message>Test Gateway: Successful test transaction</message>
420
+ <reference>12345</reference>
421
+ <cvv_result code="M">Match</cvv_result>
422
+ <avs_result code="D">Street address and postal code match.</avs_result>
423
+ <avs_result_street>Y</avs_result_street>
424
+ <avs_result_postal>Y</avs_result_postal>
425
+ <test type="boolean">true</test>
426
+ <voidable type="boolean">true</voidable>
427
+ <refundable type="boolean">true</refundable>
428
+ <credit_card>
429
+ <type>visa</type>
430
+ <last_four>1111</last_four>
431
+ </credit_card>
432
+ </transaction>
433
+
434
+ http_version: "1.1"
435
+ - !ruby/struct:VCR::HTTPInteraction
436
+ request: !ruby/struct:VCR::Request
296
437
  method: :get
297
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions/ad487efd93b24ca9b9db55b68f8bb1a6.xml?account_code=transaction-lookup-1311126815
298
- body: !!null
299
- headers:
300
- user-agent:
301
- - Recurly Ruby Client v0.4.10
302
- accept:
438
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions/b4ed42a1812f44dc98b3e8310e59f249.xml?account_code=transaction-lookup-1311126815
439
+ body:
440
+ headers:
441
+ user-agent:
442
+ - Recurly Ruby Client v0.4.13
443
+ accept:
303
444
  - application/xml
304
- accept-encoding:
445
+ accept-encoding:
305
446
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
306
- response: !ruby/struct:VCR::Response
307
- status: !ruby/struct:VCR::ResponseStatus
447
+ response: !ruby/struct:VCR::Response
448
+ status: !ruby/struct:VCR::ResponseStatus
308
449
  code: 200
309
450
  message: OK
310
- headers:
311
- content-type:
451
+ headers:
452
+ content-type:
312
453
  - application/xml; charset=utf-8
313
- etag:
314
- - ! '"43c9f1bec33ca6d4898252a53ce68904"'
315
- cache-control:
454
+ etag:
455
+ - "\"f1efb67f94ea75f41ce402256b17c19a\""
456
+ cache-control:
316
457
  - max-age=0, private, must-revalidate
317
- x-ua-compatible:
458
+ x-ua-compatible:
318
459
  - IE=Edge
319
- set-cookie:
320
- - _recurly_session=a8dee3109964a20af75996e2d89e2855; domain=.lvh.me; path=/;
321
- HttpOnly
322
- server:
460
+ server:
323
461
  - thin 1.2.11 codename Bat-Shit Crazy
324
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
325
- \ <id>ad487efd93b24ca9b9db55b68f8bb1a6</id>\n <account_code>transaction-lookup-1311126815</account_code>\n
326
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:13Z</date>\n
327
- \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
328
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
329
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
330
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
331
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
332
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
333
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
334
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
335
- http_version: '1.1'
462
+ body: |
463
+ <?xml version="1.0" encoding="UTF-8"?>
464
+ <transaction type="Payment">
465
+ <id>b4ed42a1812f44dc98b3e8310e59f249</id>
466
+ <account_code>transaction-lookup-1311126815</account_code>
467
+ <action>purchase</action>
468
+ <date type="datetime">2011-09-22T22:02:19Z</date>
469
+ <amount_in_cents type="integer">300</amount_in_cents>
470
+ <currency>USD</currency>
471
+ <status>success</status>
472
+ <message>Test Gateway: Successful test transaction</message>
473
+ <reference>12345</reference>
474
+ <cvv_result code="M">Match</cvv_result>
475
+ <avs_result code="D">Street address and postal code match.</avs_result>
476
+ <avs_result_street>Y</avs_result_street>
477
+ <avs_result_postal>Y</avs_result_postal>
478
+ <test type="boolean">true</test>
479
+ <voidable type="boolean">true</voidable>
480
+ <refundable type="boolean">true</refundable>
481
+ <credit_card>
482
+ <type>visa</type>
483
+ <last_four>1111</last_four>
484
+ </credit_card>
485
+ </transaction>
486
+
487
+ http_version: "1.1"