recurly 0.4.0 → 0.4.1

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 (65) hide show
  1. data/lib/patches/rails2/active_resource/connection.rb +10 -0
  2. data/lib/patches/{active_resource → rails3/active_resource}/connection.rb +0 -0
  3. data/lib/recurly.rb +7 -2
  4. data/lib/recurly/transparent.rb +4 -1
  5. data/lib/recurly/version.rb +1 -1
  6. data/spec/integration/transaction_spec.rb +5 -2
  7. data/spec/unit/transparent_spec.rb +59 -1
  8. data/spec/vcr/account/accept-language-account/1297746103.yml +8 -11
  9. data/spec/vcr/account/close/1297746103.yml +23 -30
  10. data/spec/vcr/account/create-blank/1297746103.yml +5 -7
  11. data/spec/vcr/account/create-duplicate/1297746103.yml +13 -18
  12. data/spec/vcr/account/create-min/1297746103.yml +8 -11
  13. data/spec/vcr/account/create/1297746103.yml +8 -11
  14. data/spec/vcr/account/find/1297746103.yml +22 -29
  15. data/spec/vcr/account/list/1297746103.yml +150 -196
  16. data/spec/vcr/account/update/1297746103.yml +37 -46
  17. data/spec/vcr/billing/create/1298594128.yml +24 -31
  18. data/spec/vcr/billing/destroy/1298594128.yml +35 -46
  19. data/spec/vcr/billing/find/1298594128.yml +32 -41
  20. data/spec/vcr/billing/update/1298594128.yml +32 -41
  21. data/spec/vcr/charge/create/1297746103.yml +36 -45
  22. data/spec/vcr/charge/delete-uninvoiced/1297746103.yml +46 -59
  23. data/spec/vcr/charge/list-all/1297746103.yml +51 -62
  24. data/spec/vcr/charge/list-invoiced/1297746103.yml +82 -97
  25. data/spec/vcr/charge/list-pending/1297746103.yml +51 -62
  26. data/spec/vcr/charge/lookup/1297746103.yml +28 -35
  27. data/spec/vcr/coupon/create/1299714521.yml +23 -30
  28. data/spec/vcr/coupon/destroy/1299714521.yml +26 -35
  29. data/spec/vcr/credit/create/1299714599.yml +28 -35
  30. data/spec/vcr/credit/delete/1299714599.yml +41 -52
  31. data/spec/vcr/credit/list/1299714599.yml +51 -62
  32. data/spec/vcr/credit/lookup/1299714599.yml +28 -35
  33. data/spec/vcr/invoice/create-no-charges/1297746103.yml +21 -28
  34. data/spec/vcr/invoice/create/1297746103.yml +50 -61
  35. data/spec/vcr/invoice/list/1297746103.yml +73 -88
  36. data/spec/vcr/invoice/lookup/1297746103.yml +52 -63
  37. data/spec/vcr/plan/all.yml +18 -24
  38. data/spec/vcr/plan/find.yml +18 -24
  39. data/spec/vcr/plan/update.yml +18 -24
  40. data/spec/vcr/subscription/addons/add/1297746103.yml +331 -38
  41. data/spec/vcr/subscription/addons/create/1297746103.yml +331 -38
  42. data/spec/vcr/subscription/addons/remove/1297746103.yml +331 -38
  43. data/spec/vcr/subscription/cancel-with-code/1297746103.yml +71 -86
  44. data/spec/vcr/subscription/cancel/1297746103.yml +59 -72
  45. data/spec/vcr/subscription/change1/1297746103.yml +55 -68
  46. data/spec/vcr/subscription/change2/1297746103.yml +55 -68
  47. data/spec/vcr/subscription/create/1297746103.yml +25 -32
  48. data/spec/vcr/subscription/find/1297746103.yml +35 -44
  49. data/spec/vcr/subscription/reactivate/1297746103.yml +64 -79
  50. data/spec/vcr/subscription/refund-full/1297746103.yml +52 -65
  51. data/spec/vcr/subscription/refund-none/1297746103.yml +52 -65
  52. data/spec/vcr/subscription/refund-partial/1297746103.yml +52 -65
  53. data/spec/vcr/transaction/all/1300473500.yml +387 -0
  54. data/spec/vcr/transaction/create-no-account/{1297746103.yml → 1300473500.yml} +19 -22
  55. data/spec/vcr/transaction/create-with-account/{1297746103.yml → 1300473500.yml} +55 -43
  56. data/spec/vcr/transaction/list-filled/1300473500.yml +603 -0
  57. data/spec/vcr/transaction/list-initial/{1297746103.yml → 1300473500.yml} +45 -52
  58. data/spec/vcr/transaction/lookup/1300473500.yml +561 -0
  59. data/spec/vcr/transaction/refund/{1297746103.yml → 1300473500.yml} +113 -41
  60. data/spec/vcr/transaction/void/1300473500.yml +620 -0
  61. metadata +21 -20
  62. data/spec/vcr/transaction/all/1297746103.yml +0 -389
  63. data/spec/vcr/transaction/list-filled/1297746103.yml +0 -213
  64. data/spec/vcr/transaction/lookup/1297746103.yml +0 -213
  65. data/spec/vcr/transaction/void/1297746103.yml +0 -213
@@ -1,213 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>transaction-list-filled-1297746103</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 type="yaml" nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
24
- content-type:
25
- - application/xml
26
- accept:
27
- - "*/*"
28
- user-agent:
29
- - Ruby
30
- connection:
31
- - close
32
- response: !ruby/struct:VCR::Response
33
- status: !ruby/struct:VCR::ResponseStatus
34
- code: 201
35
- message: "Created "
36
- headers:
37
- cache-control:
38
- - no-cache
39
- location:
40
- - http://app.recurly.local:3000/accounts/transaction-list-filled-1297746103
41
- x-runtime:
42
- - "568"
43
- content-type:
44
- - application/xml; charset=utf-8
45
- content-length:
46
- - "601"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:56:13 GMT
51
- connection:
52
- - close
53
- set-cookie:
54
- - account_credentials=37b46bc7d74406ed557c555d7cf33f3697cf45c0794dd0acf786b5b7f22307fe82eb582836952a7051c6578e251daf5694c01837c90ba41cec30392c65ad96fa%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=1dcaa918913bb20ec9e093d0b05df373; domain=.recurly.local; path=/; HttpOnly
56
- body: |
57
- <?xml version="1.0" encoding="UTF-8"?>
58
- <account>
59
- <id>transaction-list-filled-1297746103</id>
60
- <account_code>transaction-list-filled-1297746103</account_code>
61
- <username></username>
62
- <email>verena@test.com</email>
63
- <first_name>Verena</first_name>
64
- <last_name>Test</last_name>
65
- <company_name>Recurly Ruby Gem</company_name>
66
- <balance_in_cents type="integer">0</balance_in_cents>
67
- <closed type="boolean">false</closed>
68
- <hosted_login_token>d8f3b4f6ec1449e39d6e47ef328dba17</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:56:13Z</created_at>
70
- <state>active</state>
71
- </account>
72
-
73
- http_version: "1.1"
74
- - !ruby/struct:VCR::HTTPInteraction
75
- request: !ruby/struct:VCR::Request
76
- method: :put
77
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-list-filled-1297746103/billing_info.xml
78
- body: |
79
- <?xml version="1.0" encoding="UTF-8"?>
80
- <billing-info>
81
- <first-name>Verena</first-name>
82
- <last-name>Test</last-name>
83
- <address1>123 Test St</address1>
84
- <city>San Francisco</city>
85
- <state>CA</state>
86
- <zip>94115</zip>
87
- <country>US</country>
88
- <credit-card>
89
- <number>4111111111111111</number>
90
- <year type="integer">2012</year>
91
- <month type="integer">3</month>
92
- <verification-value>123</verification-value>
93
- </credit-card>
94
- <account-code>transaction-list-filled-1297746103</account-code>
95
- </billing-info>
96
-
97
- headers:
98
- authorization:
99
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
100
- content-type:
101
- - application/xml
102
- accept:
103
- - "*/*"
104
- user-agent:
105
- - Ruby
106
- connection:
107
- - close
108
- response: !ruby/struct:VCR::Response
109
- status: !ruby/struct:VCR::ResponseStatus
110
- code: 200
111
- message: "OK "
112
- headers:
113
- x-runtime:
114
- - "2186"
115
- content-type:
116
- - application/xml; charset=utf-8
117
- etag:
118
- - "\"2c11a2127cd770a89ac9451d28e9d894\""
119
- cache-control:
120
- - private, max-age=0, must-revalidate
121
- content-length:
122
- - "649"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:56:17 GMT
127
- connection:
128
- - close
129
- set-cookie:
130
- - _recurly_session=0127a391426699c8cd4a30ad35c92f96; domain=.recurly.local; path=/; HttpOnly
131
- body: |
132
- <?xml version="1.0" encoding="UTF-8"?>
133
- <billing_info>
134
- <account_code>transaction-list-filled-1297746103</account_code>
135
- <first_name>Verena</first_name>
136
- <last_name>Test</last_name>
137
- <address1>123 Test St</address1>
138
- <address2></address2>
139
- <city>San Francisco</city>
140
- <state>CA</state>
141
- <country>US</country>
142
- <zip>94115</zip>
143
- <phone></phone>
144
- <vat_number></vat_number>
145
- <ip_address></ip_address>
146
- <credit_card>
147
- <type>visa</type>
148
- <last_four>1111</last_four>
149
- <month type="integer">3</month>
150
- <year type="integer">2012</year>
151
- </credit_card>
152
- <updated_at type="datetime">2011-03-11T18:56:17Z</updated_at>
153
- </billing_info>
154
-
155
- http_version: "1.1"
156
- - !ruby/struct:VCR::HTTPInteraction
157
- request: !ruby/struct:VCR::Request
158
- method: :post
159
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
160
- body: |
161
- <?xml version="1.0" encoding="UTF-8"?>
162
- <transaction>
163
- <account>
164
- <account-code>transaction-list-filled-1297746103</account-code>
165
- <billing-info>
166
- <credit-card>
167
- </credit-card>
168
- </billing-info>
169
- </account>
170
- <amount-in-cents type="integer">100</amount-in-cents>
171
- <description>one</description>
172
- </transaction>
173
-
174
- headers:
175
- authorization:
176
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
177
- content-type:
178
- - application/xml
179
- accept:
180
- - "*/*"
181
- user-agent:
182
- - Ruby
183
- connection:
184
- - close
185
- response: !ruby/struct:VCR::Response
186
- status: !ruby/struct:VCR::ResponseStatus
187
- code: 422
188
- message: ""
189
- headers:
190
- cache-control:
191
- - no-cache
192
- x-runtime:
193
- - "807"
194
- content-type:
195
- - application/xml; charset=utf-8
196
- content-length:
197
- - "232"
198
- server:
199
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
200
- date:
201
- - Fri, 11 Mar 2011 18:56:20 GMT
202
- connection:
203
- - close
204
- set-cookie:
205
- - _recurly_session=f16ba39142ca778854fc582d1e80f596; domain=.recurly.local; path=/; HttpOnly
206
- body: |
207
- <?xml version="1.0" encoding="UTF-8"?>
208
- <errors>
209
- <error field="billing_info.first_name">Billing info.first name can't be blank</error>
210
- <error field="billing_info.last_name">Billing info.last name can't be blank</error>
211
- </errors>
212
-
213
- http_version: "1.1"
@@ -1,213 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>transaction-lookup-1297746103</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 type="yaml" nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
24
- content-type:
25
- - application/xml
26
- accept:
27
- - "*/*"
28
- user-agent:
29
- - Ruby
30
- connection:
31
- - close
32
- response: !ruby/struct:VCR::Response
33
- status: !ruby/struct:VCR::ResponseStatus
34
- code: 201
35
- message: "Created "
36
- headers:
37
- cache-control:
38
- - no-cache
39
- location:
40
- - http://app.recurly.local:3000/accounts/transaction-lookup-1297746103
41
- x-runtime:
42
- - "738"
43
- content-type:
44
- - application/xml; charset=utf-8
45
- content-length:
46
- - "591"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:56:24 GMT
51
- connection:
52
- - close
53
- set-cookie:
54
- - account_credentials=3cc012577c8e6e008041d962b6b06b5fb8096676c3f6851eb2420d284b31eae78ad4514caa9bdd7d2a222c0ca7ce09c72b3d619b7396a0c03f00e4d5190842c8%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=93067e8e027ebd527c7fea5fd1047f41; domain=.recurly.local; path=/; HttpOnly
56
- body: |
57
- <?xml version="1.0" encoding="UTF-8"?>
58
- <account>
59
- <id>transaction-lookup-1297746103</id>
60
- <account_code>transaction-lookup-1297746103</account_code>
61
- <username></username>
62
- <email>verena@test.com</email>
63
- <first_name>Verena</first_name>
64
- <last_name>Test</last_name>
65
- <company_name>Recurly Ruby Gem</company_name>
66
- <balance_in_cents type="integer">0</balance_in_cents>
67
- <closed type="boolean">false</closed>
68
- <hosted_login_token>c4c00a7f872b491d96717f1413e53056</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:56:24Z</created_at>
70
- <state>active</state>
71
- </account>
72
-
73
- http_version: "1.1"
74
- - !ruby/struct:VCR::HTTPInteraction
75
- request: !ruby/struct:VCR::Request
76
- method: :put
77
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-lookup-1297746103/billing_info.xml
78
- body: |
79
- <?xml version="1.0" encoding="UTF-8"?>
80
- <billing-info>
81
- <first-name>Verena</first-name>
82
- <last-name>Test</last-name>
83
- <address1>123 Test St</address1>
84
- <city>San Francisco</city>
85
- <state>CA</state>
86
- <zip>94115</zip>
87
- <country>US</country>
88
- <credit-card>
89
- <number>4111111111111111</number>
90
- <year type="integer">2012</year>
91
- <month type="integer">3</month>
92
- <verification-value>123</verification-value>
93
- </credit-card>
94
- <account-code>transaction-lookup-1297746103</account-code>
95
- </billing-info>
96
-
97
- headers:
98
- authorization:
99
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
100
- content-type:
101
- - application/xml
102
- accept:
103
- - "*/*"
104
- user-agent:
105
- - Ruby
106
- connection:
107
- - close
108
- response: !ruby/struct:VCR::Response
109
- status: !ruby/struct:VCR::ResponseStatus
110
- code: 200
111
- message: "OK "
112
- headers:
113
- x-runtime:
114
- - "2016"
115
- content-type:
116
- - application/xml; charset=utf-8
117
- etag:
118
- - "\"ca78ebb73f0343a14b9a57fe4f5c76f2\""
119
- cache-control:
120
- - private, max-age=0, must-revalidate
121
- content-length:
122
- - "644"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:56:28 GMT
127
- connection:
128
- - close
129
- set-cookie:
130
- - _recurly_session=75698b706e1c0ea3e9b40fdaa9fd0971; domain=.recurly.local; path=/; HttpOnly
131
- body: |
132
- <?xml version="1.0" encoding="UTF-8"?>
133
- <billing_info>
134
- <account_code>transaction-lookup-1297746103</account_code>
135
- <first_name>Verena</first_name>
136
- <last_name>Test</last_name>
137
- <address1>123 Test St</address1>
138
- <address2></address2>
139
- <city>San Francisco</city>
140
- <state>CA</state>
141
- <country>US</country>
142
- <zip>94115</zip>
143
- <phone></phone>
144
- <vat_number></vat_number>
145
- <ip_address></ip_address>
146
- <credit_card>
147
- <type>visa</type>
148
- <last_four>1111</last_four>
149
- <month type="integer">3</month>
150
- <year type="integer">2012</year>
151
- </credit_card>
152
- <updated_at type="datetime">2011-03-11T18:56:28Z</updated_at>
153
- </billing_info>
154
-
155
- http_version: "1.1"
156
- - !ruby/struct:VCR::HTTPInteraction
157
- request: !ruby/struct:VCR::Request
158
- method: :post
159
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
160
- body: |
161
- <?xml version="1.0" encoding="UTF-8"?>
162
- <transaction>
163
- <account>
164
- <account-code>transaction-lookup-1297746103</account-code>
165
- <billing-info>
166
- <credit-card>
167
- </credit-card>
168
- </billing-info>
169
- </account>
170
- <amount-in-cents type="integer">100</amount-in-cents>
171
- <description>one</description>
172
- </transaction>
173
-
174
- headers:
175
- authorization:
176
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
177
- content-type:
178
- - application/xml
179
- accept:
180
- - "*/*"
181
- user-agent:
182
- - Ruby
183
- connection:
184
- - close
185
- response: !ruby/struct:VCR::Response
186
- status: !ruby/struct:VCR::ResponseStatus
187
- code: 422
188
- message: ""
189
- headers:
190
- cache-control:
191
- - no-cache
192
- x-runtime:
193
- - "988"
194
- content-type:
195
- - application/xml; charset=utf-8
196
- content-length:
197
- - "232"
198
- server:
199
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
200
- date:
201
- - Fri, 11 Mar 2011 18:56:32 GMT
202
- connection:
203
- - close
204
- set-cookie:
205
- - _recurly_session=6a8d5685e99de22bd3b52b7c586e3c13; domain=.recurly.local; path=/; HttpOnly
206
- body: |
207
- <?xml version="1.0" encoding="UTF-8"?>
208
- <errors>
209
- <error field="billing_info.first_name">Billing info.first name can't be blank</error>
210
- <error field="billing_info.last_name">Billing info.last name can't be blank</error>
211
- </errors>
212
-
213
- http_version: "1.1"
@@ -1,213 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
5
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts.xml
6
- body: |
7
- <?xml version="1.0" encoding="UTF-8"?>
8
- <account>
9
- <account-code>transaction-void-1297746103</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 type="yaml" nil="true"></accept-language>
19
- </account>
20
-
21
- headers:
22
- authorization:
23
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
24
- content-type:
25
- - application/xml
26
- accept:
27
- - "*/*"
28
- user-agent:
29
- - Ruby
30
- connection:
31
- - close
32
- response: !ruby/struct:VCR::Response
33
- status: !ruby/struct:VCR::ResponseStatus
34
- code: 201
35
- message: "Created "
36
- headers:
37
- cache-control:
38
- - no-cache
39
- location:
40
- - http://app.recurly.local:3000/accounts/transaction-void-1297746103
41
- x-runtime:
42
- - "573"
43
- content-type:
44
- - application/xml; charset=utf-8
45
- content-length:
46
- - "587"
47
- server:
48
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
49
- date:
50
- - Fri, 11 Mar 2011 18:56:34 GMT
51
- connection:
52
- - close
53
- set-cookie:
54
- - account_credentials=571f9cc70df450a5c79090e6882272f78dada6059d99f0f8ff61836f16194d139a9df6a6286ee781d1ffdaf8338d699403f3174d601db8c433fe628c0a038e73%3A%3A; domain=.recurly.local; path=/
55
- - _recurly_session=bf1dd297cfa589bf7519e5046506ea19; domain=.recurly.local; path=/; HttpOnly
56
- body: |
57
- <?xml version="1.0" encoding="UTF-8"?>
58
- <account>
59
- <id>transaction-void-1297746103</id>
60
- <account_code>transaction-void-1297746103</account_code>
61
- <username></username>
62
- <email>verena@test.com</email>
63
- <first_name>Verena</first_name>
64
- <last_name>Test</last_name>
65
- <company_name>Recurly Ruby Gem</company_name>
66
- <balance_in_cents type="integer">0</balance_in_cents>
67
- <closed type="boolean">false</closed>
68
- <hosted_login_token>bda366d564e1464eb850b9f30f51d579</hosted_login_token>
69
- <created_at type="datetime">2011-03-11T18:56:34Z</created_at>
70
- <state>active</state>
71
- </account>
72
-
73
- http_version: "1.1"
74
- - !ruby/struct:VCR::HTTPInteraction
75
- request: !ruby/struct:VCR::Request
76
- method: :put
77
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/accounts/transaction-void-1297746103/billing_info.xml
78
- body: |
79
- <?xml version="1.0" encoding="UTF-8"?>
80
- <billing-info>
81
- <first-name>Verena</first-name>
82
- <last-name>Test</last-name>
83
- <address1>123 Test St</address1>
84
- <city>San Francisco</city>
85
- <state>CA</state>
86
- <zip>94115</zip>
87
- <country>US</country>
88
- <credit-card>
89
- <number>4111111111111111</number>
90
- <year type="integer">2012</year>
91
- <month type="integer">3</month>
92
- <verification-value>123</verification-value>
93
- </credit-card>
94
- <account-code>transaction-void-1297746103</account-code>
95
- </billing-info>
96
-
97
- headers:
98
- authorization:
99
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
100
- content-type:
101
- - application/xml
102
- accept:
103
- - "*/*"
104
- user-agent:
105
- - Ruby
106
- connection:
107
- - close
108
- response: !ruby/struct:VCR::Response
109
- status: !ruby/struct:VCR::ResponseStatus
110
- code: 200
111
- message: "OK "
112
- headers:
113
- x-runtime:
114
- - "1970"
115
- content-type:
116
- - application/xml; charset=utf-8
117
- etag:
118
- - "\"077618f5614b4eaeec1ab2c093a44334\""
119
- cache-control:
120
- - private, max-age=0, must-revalidate
121
- content-length:
122
- - "642"
123
- server:
124
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
125
- date:
126
- - Fri, 11 Mar 2011 18:56:39 GMT
127
- connection:
128
- - close
129
- set-cookie:
130
- - _recurly_session=e517492961ea9a03a25cfa76c3837540; domain=.recurly.local; path=/; HttpOnly
131
- body: |
132
- <?xml version="1.0" encoding="UTF-8"?>
133
- <billing_info>
134
- <account_code>transaction-void-1297746103</account_code>
135
- <first_name>Verena</first_name>
136
- <last_name>Test</last_name>
137
- <address1>123 Test St</address1>
138
- <address2></address2>
139
- <city>San Francisco</city>
140
- <state>CA</state>
141
- <country>US</country>
142
- <zip>94115</zip>
143
- <phone></phone>
144
- <vat_number></vat_number>
145
- <ip_address></ip_address>
146
- <credit_card>
147
- <type>visa</type>
148
- <last_four>1111</last_four>
149
- <month type="integer">3</month>
150
- <year type="integer">2012</year>
151
- </credit_card>
152
- <updated_at type="datetime">2011-03-11T18:56:39Z</updated_at>
153
- </billing_info>
154
-
155
- http_version: "1.1"
156
- - !ruby/struct:VCR::HTTPInteraction
157
- request: !ruby/struct:VCR::Request
158
- method: :post
159
- uri: http://api-test-123%40litle.com:82a98ee0c1c2495789775177babfadb7@app.recurly.local:3000/transactions.xml
160
- body: |
161
- <?xml version="1.0" encoding="UTF-8"?>
162
- <transaction>
163
- <account>
164
- <account-code>transaction-void-1297746103</account-code>
165
- <billing-info>
166
- <credit-card>
167
- </credit-card>
168
- </billing-info>
169
- </account>
170
- <amount-in-cents type="integer">100</amount-in-cents>
171
- <description>one</description>
172
- </transaction>
173
-
174
- headers:
175
- authorization:
176
- - Basic YXBpLXRlc3QtMTIzQGxpdGxlLmNvbTo4MmE5OGVlMGMxYzI0OTU3ODk3NzUxNzdiYWJmYWRiNw==
177
- content-type:
178
- - application/xml
179
- accept:
180
- - "*/*"
181
- user-agent:
182
- - Ruby
183
- connection:
184
- - close
185
- response: !ruby/struct:VCR::Response
186
- status: !ruby/struct:VCR::ResponseStatus
187
- code: 422
188
- message: ""
189
- headers:
190
- cache-control:
191
- - no-cache
192
- x-runtime:
193
- - "810"
194
- content-type:
195
- - application/xml; charset=utf-8
196
- content-length:
197
- - "232"
198
- server:
199
- - WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
200
- date:
201
- - Fri, 11 Mar 2011 18:56:42 GMT
202
- connection:
203
- - close
204
- set-cookie:
205
- - _recurly_session=e0455609c519ce273a3f01e1778bb73c; domain=.recurly.local; path=/; HttpOnly
206
- body: |
207
- <?xml version="1.0" encoding="UTF-8"?>
208
- <errors>
209
- <error field="billing_info.first_name">Billing info.first name can't be blank</error>
210
- <error field="billing_info.last_name">Billing info.last name can't be blank</error>
211
- </errors>
212
-
213
- http_version: "1.1"