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,198 +1,276 @@
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>charge-list-all-1313708721</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>charge-list-all-1313708721</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/charge-list-all-1313708721
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/charge-list-all-1313708721
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=2204fa761752691803b5137abd9ac71f; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=63359853264d591f7901b0524ba3f6b9; 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>charge-list-all-1313708721</id>\n
34
- \ <account_code>charge-list-all-1313708721</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>6567ef4636a24daf94de173014fc1d85</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:36Z</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>charge-list-all-1313708721</id>
47
+ <account_code>charge-list-all-1313708721</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>5395131a6cd84eb189ce64e63329a4fd</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:01:43Z</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: :post
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-all-1313708721/charges.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
45
- \ <description>charge description</description>\n</charge>\n"
46
- headers:
47
- user-agent:
48
- - Recurly Ruby Client v0.4.10
49
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-all-1313708721/charges.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <charge>
68
+ <amount type="float">10.0</amount>
69
+ <description>charge description</description>
70
+ </charge>
71
+
72
+ headers:
73
+ user-agent:
74
+ - Recurly Ruby Client v0.4.13
75
+ content-type:
50
76
  - application/xml
51
- response: !ruby/struct:VCR::Response
52
- status: !ruby/struct:VCR::ResponseStatus
77
+ response: !ruby/struct:VCR::Response
78
+ status: !ruby/struct:VCR::ResponseStatus
53
79
  code: 201
54
80
  message: Created
55
- headers:
56
- content-type:
81
+ headers:
82
+ content-type:
57
83
  - application/xml; charset=utf-8
58
- cache-control:
84
+ cache-control:
59
85
  - no-cache
60
- x-ua-compatible:
86
+ x-ua-compatible:
61
87
  - IE=Edge
62
- set-cookie:
63
- - _recurly_session=815874a2c22d6b9090fde86923d33033; domain=.lvh.me; path=/;
64
- HttpOnly
65
- server:
88
+ set-cookie:
89
+ - _recurly_session=31d6a869db7add3f9c1ac5d6b79ccccb; domain=.lvh.me; path=/; HttpOnly
90
+ server:
66
91
  - thin 1.2.11 codename Bat-Shit Crazy
67
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
68
- \ <id>06546be5323249509326d8ac7fdba676</id>\n <account_code>charge-list-all-1313708721</account_code>\n
69
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
70
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
71
- \ <start_date type=\"datetime\">2011-08-19T20:01:36Z</start_date>\n <end_date
72
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
73
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:36Z</created_at>\n</charge>\n"
74
- http_version: '1.1'
75
- - !ruby/struct:VCR::HTTPInteraction
76
- request: !ruby/struct:VCR::Request
92
+ body: |
93
+ <?xml version="1.0" encoding="UTF-8"?>
94
+ <charge type="charge">
95
+ <id>0aa15690460d48378d72f40ede359c1f</id>
96
+ <account_code>charge-list-all-1313708721</account_code>
97
+ <quantity type="integer">1</quantity>
98
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
99
+ <amount_in_cents type="integer">1000</amount_in_cents>
100
+ <currency>USD</currency>
101
+ <start_date type="datetime">2011-09-22T22:01:43Z</start_date>
102
+ <end_date nil="true" type="datetime"></end_date>
103
+ <invoice_number nil="true" type="integer"></invoice_number>
104
+ <description>charge description</description>
105
+ <created_at type="datetime">2011-09-22T22:01:43Z</created_at>
106
+ </charge>
107
+
108
+ http_version: "1.1"
109
+ - !ruby/struct:VCR::HTTPInteraction
110
+ request: !ruby/struct:VCR::Request
77
111
  method: :post
78
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-all-1313708721/charges.xml
79
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
80
- \ <description>charge description</description>\n</charge>\n"
81
- headers:
82
- user-agent:
83
- - Recurly Ruby Client v0.4.10
84
- content-type:
112
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-all-1313708721/charges.xml
113
+ body: |
114
+ <?xml version="1.0" encoding="UTF-8"?>
115
+ <charge>
116
+ <amount type="float">10.0</amount>
117
+ <description>charge description</description>
118
+ </charge>
119
+
120
+ headers:
121
+ user-agent:
122
+ - Recurly Ruby Client v0.4.13
123
+ content-type:
85
124
  - application/xml
86
- response: !ruby/struct:VCR::Response
87
- status: !ruby/struct:VCR::ResponseStatus
125
+ response: !ruby/struct:VCR::Response
126
+ status: !ruby/struct:VCR::ResponseStatus
88
127
  code: 201
89
128
  message: Created
90
- headers:
91
- content-type:
129
+ headers:
130
+ content-type:
92
131
  - application/xml; charset=utf-8
93
- cache-control:
132
+ cache-control:
94
133
  - no-cache
95
- x-ua-compatible:
134
+ x-ua-compatible:
96
135
  - IE=Edge
97
- set-cookie:
98
- - _recurly_session=66ed10fa8f7dd3892add75815d8f9eb9; domain=.lvh.me; path=/;
99
- HttpOnly
100
- server:
136
+ set-cookie:
137
+ - _recurly_session=4f3440daa6a29ef62b192b49ed13252f; domain=.lvh.me; path=/; HttpOnly
138
+ server:
101
139
  - thin 1.2.11 codename Bat-Shit Crazy
102
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
103
- \ <id>a412f90911884ca49d8c4134bfb0f950</id>\n <account_code>charge-list-all-1313708721</account_code>\n
104
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
105
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
106
- \ <start_date type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date
107
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
108
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n</charge>\n"
109
- http_version: '1.1'
110
- - !ruby/struct:VCR::HTTPInteraction
111
- request: !ruby/struct:VCR::Request
140
+ body: |
141
+ <?xml version="1.0" encoding="UTF-8"?>
142
+ <charge type="charge">
143
+ <id>fbc7448d6df24f9db7d861ce1d7e4352</id>
144
+ <account_code>charge-list-all-1313708721</account_code>
145
+ <quantity type="integer">1</quantity>
146
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
147
+ <amount_in_cents type="integer">1000</amount_in_cents>
148
+ <currency>USD</currency>
149
+ <start_date type="datetime">2011-09-22T22:01:43Z</start_date>
150
+ <end_date nil="true" type="datetime"></end_date>
151
+ <invoice_number nil="true" type="integer"></invoice_number>
152
+ <description>charge description</description>
153
+ <created_at type="datetime">2011-09-22T22:01:43Z</created_at>
154
+ </charge>
155
+
156
+ http_version: "1.1"
157
+ - !ruby/struct:VCR::HTTPInteraction
158
+ request: !ruby/struct:VCR::Request
112
159
  method: :post
113
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-all-1313708721/charges.xml
114
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
115
- \ <description>charge description</description>\n</charge>\n"
116
- headers:
117
- user-agent:
118
- - Recurly Ruby Client v0.4.10
119
- content-type:
160
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-all-1313708721/charges.xml
161
+ body: |
162
+ <?xml version="1.0" encoding="UTF-8"?>
163
+ <charge>
164
+ <amount type="float">10.0</amount>
165
+ <description>charge description</description>
166
+ </charge>
167
+
168
+ headers:
169
+ user-agent:
170
+ - Recurly Ruby Client v0.4.13
171
+ content-type:
120
172
  - application/xml
121
- response: !ruby/struct:VCR::Response
122
- status: !ruby/struct:VCR::ResponseStatus
173
+ response: !ruby/struct:VCR::Response
174
+ status: !ruby/struct:VCR::ResponseStatus
123
175
  code: 201
124
176
  message: Created
125
- headers:
126
- content-type:
177
+ headers:
178
+ content-type:
127
179
  - application/xml; charset=utf-8
128
- cache-control:
180
+ cache-control:
129
181
  - no-cache
130
- x-ua-compatible:
182
+ x-ua-compatible:
131
183
  - IE=Edge
132
- set-cookie:
133
- - _recurly_session=4c45f0c47ca3fb4e09ee7652a9aa76eb; domain=.lvh.me; path=/;
134
- HttpOnly
135
- server:
184
+ set-cookie:
185
+ - _recurly_session=603aa9b063dccc49b1b5c47d6f294720; domain=.lvh.me; path=/; HttpOnly
186
+ server:
136
187
  - thin 1.2.11 codename Bat-Shit Crazy
137
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
138
- \ <id>1baf15c77a6d40a1ab4ec19a83b184fe</id>\n <account_code>charge-list-all-1313708721</account_code>\n
139
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
140
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
141
- \ <start_date type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date
142
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
143
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n</charge>\n"
144
- http_version: '1.1'
145
- - !ruby/struct:VCR::HTTPInteraction
146
- request: !ruby/struct:VCR::Request
188
+ body: |
189
+ <?xml version="1.0" encoding="UTF-8"?>
190
+ <charge type="charge">
191
+ <id>f7cc99b1e5774ed6acdfe95bb1c9d143</id>
192
+ <account_code>charge-list-all-1313708721</account_code>
193
+ <quantity type="integer">1</quantity>
194
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
195
+ <amount_in_cents type="integer">1000</amount_in_cents>
196
+ <currency>USD</currency>
197
+ <start_date type="datetime">2011-09-22T22:01:43Z</start_date>
198
+ <end_date nil="true" type="datetime"></end_date>
199
+ <invoice_number nil="true" type="integer"></invoice_number>
200
+ <description>charge description</description>
201
+ <created_at type="datetime">2011-09-22T22:01:43Z</created_at>
202
+ </charge>
203
+
204
+ http_version: "1.1"
205
+ - !ruby/struct:VCR::HTTPInteraction
206
+ request: !ruby/struct:VCR::Request
147
207
  method: :get
148
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-all-1313708721/charges.xml
149
- body: !!null
150
- headers:
151
- user-agent:
152
- - Recurly Ruby Client v0.4.10
153
- accept:
208
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-all-1313708721/charges.xml
209
+ body:
210
+ headers:
211
+ user-agent:
212
+ - Recurly Ruby Client v0.4.13
213
+ accept:
154
214
  - application/xml
155
- accept-encoding:
215
+ accept-encoding:
156
216
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
157
- response: !ruby/struct:VCR::Response
158
- status: !ruby/struct:VCR::ResponseStatus
217
+ response: !ruby/struct:VCR::Response
218
+ status: !ruby/struct:VCR::ResponseStatus
159
219
  code: 200
160
220
  message: OK
161
- headers:
162
- content-type:
221
+ headers:
222
+ content-type:
163
223
  - application/xml; charset=utf-8
164
- etag:
165
- - ! '"22d50339c6522006a1e56f7b8cd22bbb"'
166
- cache-control:
224
+ etag:
225
+ - "\"8a061efd15236973eabddc53d9c8d9e4\""
226
+ cache-control:
167
227
  - max-age=0, private, must-revalidate
168
- x-ua-compatible:
228
+ x-ua-compatible:
169
229
  - IE=Edge
170
- set-cookie:
171
- - _recurly_session=3daa690675fcff306ca327f5ccfafae1; domain=.lvh.me; path=/;
172
- HttpOnly
173
- server:
230
+ server:
174
231
  - thin 1.2.11 codename Bat-Shit Crazy
175
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charges type=\"array\">\n
176
- \ <charge type=\"charge\">\n <id>1baf15c77a6d40a1ab4ec19a83b184fe</id>\n
177
- \ <account_code>charge-list-all-1313708721</account_code>\n <quantity type=\"integer\">1</quantity>\n
178
- \ <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n <amount_in_cents
179
- type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n <start_date
180
- type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date nil=\"true\"
181
- type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
182
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n
183
- \ </charge>\n <charge type=\"charge\">\n <id>a412f90911884ca49d8c4134bfb0f950</id>\n
184
- \ <account_code>charge-list-all-1313708721</account_code>\n <quantity type=\"integer\">1</quantity>\n
185
- \ <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n <amount_in_cents
186
- type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n <start_date
187
- type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date nil=\"true\"
188
- type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
189
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n
190
- \ </charge>\n <charge type=\"charge\">\n <id>06546be5323249509326d8ac7fdba676</id>\n
191
- \ <account_code>charge-list-all-1313708721</account_code>\n <quantity type=\"integer\">1</quantity>\n
192
- \ <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n <amount_in_cents
193
- type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n <start_date
194
- type=\"datetime\">2011-08-19T20:01:36Z</start_date>\n <end_date nil=\"true\"
195
- type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
196
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:36Z</created_at>\n
197
- \ </charge>\n</charges>\n"
198
- http_version: '1.1'
232
+ body: |
233
+ <?xml version="1.0" encoding="UTF-8"?>
234
+ <charges type="array">
235
+ <charge type="charge">
236
+ <id>f7cc99b1e5774ed6acdfe95bb1c9d143</id>
237
+ <account_code>charge-list-all-1313708721</account_code>
238
+ <quantity type="integer">1</quantity>
239
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
240
+ <amount_in_cents type="integer">1000</amount_in_cents>
241
+ <currency>USD</currency>
242
+ <start_date type="datetime">2011-09-22T22:01:43Z</start_date>
243
+ <end_date nil="true" type="datetime"></end_date>
244
+ <invoice_number nil="true" type="integer"></invoice_number>
245
+ <description>charge description</description>
246
+ <created_at type="datetime">2011-09-22T22:01:43Z</created_at>
247
+ </charge>
248
+ <charge type="charge">
249
+ <id>fbc7448d6df24f9db7d861ce1d7e4352</id>
250
+ <account_code>charge-list-all-1313708721</account_code>
251
+ <quantity type="integer">1</quantity>
252
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
253
+ <amount_in_cents type="integer">1000</amount_in_cents>
254
+ <currency>USD</currency>
255
+ <start_date type="datetime">2011-09-22T22:01:43Z</start_date>
256
+ <end_date nil="true" type="datetime"></end_date>
257
+ <invoice_number nil="true" type="integer"></invoice_number>
258
+ <description>charge description</description>
259
+ <created_at type="datetime">2011-09-22T22:01:43Z</created_at>
260
+ </charge>
261
+ <charge type="charge">
262
+ <id>0aa15690460d48378d72f40ede359c1f</id>
263
+ <account_code>charge-list-all-1313708721</account_code>
264
+ <quantity type="integer">1</quantity>
265
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
266
+ <amount_in_cents type="integer">1000</amount_in_cents>
267
+ <currency>USD</currency>
268
+ <start_date type="datetime">2011-09-22T22:01:43Z</start_date>
269
+ <end_date nil="true" type="datetime"></end_date>
270
+ <invoice_number nil="true" type="integer"></invoice_number>
271
+ <description>charge description</description>
272
+ <created_at type="datetime">2011-09-22T22:01:43Z</created_at>
273
+ </charge>
274
+ </charges>
275
+
276
+ http_version: "1.1"
@@ -1,294 +1,411 @@
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>charge-list-invoiced-1313708721</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>charge-list-invoiced-1313708721</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/charge-list-invoiced-1313708721
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/charge-list-invoiced-1313708721
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=e5848572fcabe7e79ef2e8bce7281c97; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=51bf23c0ec7e7bc246f89595140344a2; 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>charge-list-invoiced-1313708721</id>\n
34
- \ <account_code>charge-list-invoiced-1313708721</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>7d517e4048a44a218207cb611aa29f9f</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:38Z</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>charge-list-invoiced-1313708721</id>
47
+ <account_code>charge-list-invoiced-1313708721</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>320e5943f071499296f8b5b5a7ce498f</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:01:44Z</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: :post
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
45
- \ <description>charge description</description>\n</charge>\n"
46
- headers:
47
- user-agent:
48
- - Recurly Ruby Client v0.4.10
49
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <charge>
68
+ <amount type="float">10.0</amount>
69
+ <description>charge description</description>
70
+ </charge>
71
+
72
+ headers:
73
+ user-agent:
74
+ - Recurly Ruby Client v0.4.13
75
+ content-type:
50
76
  - application/xml
51
- response: !ruby/struct:VCR::Response
52
- status: !ruby/struct:VCR::ResponseStatus
77
+ response: !ruby/struct:VCR::Response
78
+ status: !ruby/struct:VCR::ResponseStatus
53
79
  code: 201
54
80
  message: Created
55
- headers:
56
- content-type:
81
+ headers:
82
+ content-type:
57
83
  - application/xml; charset=utf-8
58
- cache-control:
84
+ cache-control:
59
85
  - no-cache
60
- x-ua-compatible:
86
+ x-ua-compatible:
61
87
  - IE=Edge
62
- set-cookie:
63
- - _recurly_session=b6f77e0020c1631521c189589f5f93eb; domain=.lvh.me; path=/;
64
- HttpOnly
65
- server:
88
+ set-cookie:
89
+ - _recurly_session=7e9f3cc2d68e37ab50daab2765bba3c0; domain=.lvh.me; path=/; HttpOnly
90
+ server:
66
91
  - thin 1.2.11 codename Bat-Shit Crazy
67
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
68
- \ <id>72813d595dbd44c68c619e5b714fc5bc</id>\n <account_code>charge-list-invoiced-1313708721</account_code>\n
69
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
70
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
71
- \ <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n <end_date
72
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
73
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n</charge>\n"
74
- http_version: '1.1'
75
- - !ruby/struct:VCR::HTTPInteraction
76
- request: !ruby/struct:VCR::Request
92
+ body: |
93
+ <?xml version="1.0" encoding="UTF-8"?>
94
+ <charge type="charge">
95
+ <id>03d25262a0194cf38c04ef145ae10c81</id>
96
+ <account_code>charge-list-invoiced-1313708721</account_code>
97
+ <quantity type="integer">1</quantity>
98
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
99
+ <amount_in_cents type="integer">1000</amount_in_cents>
100
+ <currency>USD</currency>
101
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
102
+ <end_date nil="true" type="datetime"></end_date>
103
+ <invoice_number nil="true" type="integer"></invoice_number>
104
+ <description>charge description</description>
105
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
106
+ </charge>
107
+
108
+ http_version: "1.1"
109
+ - !ruby/struct:VCR::HTTPInteraction
110
+ request: !ruby/struct:VCR::Request
77
111
  method: :post
78
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml
79
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
80
- \ <description>charge description</description>\n</charge>\n"
81
- headers:
82
- user-agent:
83
- - Recurly Ruby Client v0.4.10
84
- content-type:
112
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml
113
+ body: |
114
+ <?xml version="1.0" encoding="UTF-8"?>
115
+ <charge>
116
+ <amount type="float">10.0</amount>
117
+ <description>charge description</description>
118
+ </charge>
119
+
120
+ headers:
121
+ user-agent:
122
+ - Recurly Ruby Client v0.4.13
123
+ content-type:
85
124
  - application/xml
86
- response: !ruby/struct:VCR::Response
87
- status: !ruby/struct:VCR::ResponseStatus
125
+ response: !ruby/struct:VCR::Response
126
+ status: !ruby/struct:VCR::ResponseStatus
88
127
  code: 201
89
128
  message: Created
90
- headers:
91
- content-type:
129
+ headers:
130
+ content-type:
92
131
  - application/xml; charset=utf-8
93
- cache-control:
132
+ cache-control:
94
133
  - no-cache
95
- x-ua-compatible:
134
+ x-ua-compatible:
96
135
  - IE=Edge
97
- set-cookie:
98
- - _recurly_session=ced5a78d0709d20dde516eabf78d8189; domain=.lvh.me; path=/;
99
- HttpOnly
100
- server:
136
+ set-cookie:
137
+ - _recurly_session=b3eb21778eb2a1df41b692b441800aa0; domain=.lvh.me; path=/; HttpOnly
138
+ server:
101
139
  - thin 1.2.11 codename Bat-Shit Crazy
102
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
103
- \ <id>462b960ebbed46a4be6102206b327559</id>\n <account_code>charge-list-invoiced-1313708721</account_code>\n
104
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
105
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
106
- \ <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n <end_date
107
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
108
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n</charge>\n"
109
- http_version: '1.1'
110
- - !ruby/struct:VCR::HTTPInteraction
111
- request: !ruby/struct:VCR::Request
140
+ body: |
141
+ <?xml version="1.0" encoding="UTF-8"?>
142
+ <charge type="charge">
143
+ <id>650614ce574c4f8a98e100d4df7a0562</id>
144
+ <account_code>charge-list-invoiced-1313708721</account_code>
145
+ <quantity type="integer">1</quantity>
146
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
147
+ <amount_in_cents type="integer">1000</amount_in_cents>
148
+ <currency>USD</currency>
149
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
150
+ <end_date nil="true" type="datetime"></end_date>
151
+ <invoice_number nil="true" type="integer"></invoice_number>
152
+ <description>charge description</description>
153
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
154
+ </charge>
155
+
156
+ http_version: "1.1"
157
+ - !ruby/struct:VCR::HTTPInteraction
158
+ request: !ruby/struct:VCR::Request
112
159
  method: :post
113
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml
114
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
115
- \ <description>charge description</description>\n</charge>\n"
116
- headers:
117
- user-agent:
118
- - Recurly Ruby Client v0.4.10
119
- content-type:
160
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml
161
+ body: |
162
+ <?xml version="1.0" encoding="UTF-8"?>
163
+ <charge>
164
+ <amount type="float">10.0</amount>
165
+ <description>charge description</description>
166
+ </charge>
167
+
168
+ headers:
169
+ user-agent:
170
+ - Recurly Ruby Client v0.4.13
171
+ content-type:
120
172
  - application/xml
121
- response: !ruby/struct:VCR::Response
122
- status: !ruby/struct:VCR::ResponseStatus
173
+ response: !ruby/struct:VCR::Response
174
+ status: !ruby/struct:VCR::ResponseStatus
123
175
  code: 201
124
176
  message: Created
125
- headers:
126
- content-type:
177
+ headers:
178
+ content-type:
127
179
  - application/xml; charset=utf-8
128
- cache-control:
180
+ cache-control:
129
181
  - no-cache
130
- x-ua-compatible:
182
+ x-ua-compatible:
131
183
  - IE=Edge
132
- set-cookie:
133
- - _recurly_session=f86a6ca85aed9ef15b7a9f8ca8cfdc84; domain=.lvh.me; path=/;
134
- HttpOnly
135
- server:
184
+ set-cookie:
185
+ - _recurly_session=829a0bd26774dd5f3ed6acfa79875371; domain=.lvh.me; path=/; HttpOnly
186
+ server:
136
187
  - thin 1.2.11 codename Bat-Shit Crazy
137
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
138
- \ <id>5bed639d0e9644f6b547db893e8d5ff2</id>\n <account_code>charge-list-invoiced-1313708721</account_code>\n
139
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
140
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
141
- \ <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n <end_date
142
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
143
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n</charge>\n"
144
- http_version: '1.1'
145
- - !ruby/struct:VCR::HTTPInteraction
146
- request: !ruby/struct:VCR::Request
147
- method: :post
148
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-invoiced-1313708721/invoices.xml
149
- body: ! '<?xml version="1.0" encoding="UTF-8"?>
188
+ body: |
189
+ <?xml version="1.0" encoding="UTF-8"?>
190
+ <charge type="charge">
191
+ <id>fb71f80f82f345e0b23cc6ca00804245</id>
192
+ <account_code>charge-list-invoiced-1313708721</account_code>
193
+ <quantity type="integer">1</quantity>
194
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
195
+ <amount_in_cents type="integer">1000</amount_in_cents>
196
+ <currency>USD</currency>
197
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
198
+ <end_date nil="true" type="datetime"></end_date>
199
+ <invoice_number nil="true" type="integer"></invoice_number>
200
+ <description>charge description</description>
201
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
202
+ </charge>
150
203
 
204
+ http_version: "1.1"
205
+ - !ruby/struct:VCR::HTTPInteraction
206
+ request: !ruby/struct:VCR::Request
207
+ method: :post
208
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-invoiced-1313708721/invoices.xml
209
+ body: |
210
+ <?xml version="1.0" encoding="UTF-8"?>
151
211
  <invoice>
152
-
153
212
  </invoice>
154
213
 
155
- '
156
- headers:
157
- user-agent:
158
- - Recurly Ruby Client v0.4.10
159
- content-type:
214
+ headers:
215
+ user-agent:
216
+ - Recurly Ruby Client v0.4.13
217
+ content-type:
160
218
  - application/xml
161
- response: !ruby/struct:VCR::Response
162
- status: !ruby/struct:VCR::ResponseStatus
219
+ response: !ruby/struct:VCR::Response
220
+ status: !ruby/struct:VCR::ResponseStatus
163
221
  code: 201
164
222
  message: Created
165
- headers:
166
- location:
167
- - http://app.lvh.me:3000/invoices/7ff51cdd3c144784979614ccf9bff376
168
- content-type:
223
+ headers:
224
+ location:
225
+ - http://api.lvh.me:3000/invoices/228d33b859674f8ca6b36f002b9a92e3
226
+ content-type:
169
227
  - application/xml; charset=utf-8
170
- cache-control:
228
+ cache-control:
171
229
  - no-cache
172
- x-ua-compatible:
230
+ x-ua-compatible:
173
231
  - IE=Edge
174
- set-cookie:
175
- - _recurly_session=d16504353994c65a72a18549e2e5e036; domain=.lvh.me; path=/;
176
- HttpOnly
177
- server:
232
+ set-cookie:
233
+ - _recurly_session=6d449afeef3748020f22b7b2476fca5d; domain=.lvh.me; path=/; HttpOnly
234
+ server:
178
235
  - thin 1.2.11 codename Bat-Shit Crazy
179
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<invoice>\n <id>7ff51cdd3c144784979614ccf9bff376</id>\n
180
- \ <account_code>charge-list-invoiced-1313708721</account_code>\n <date type=\"datetime\">2011-08-19T20:01:38Z</date>\n
181
- \ <invoice_number type=\"integer\">1504</invoice_number>\n <vat_number></vat_number>\n
182
- \ <status>open</status>\n <subtotal_in_cents type=\"integer\">3000</subtotal_in_cents>\n
183
- \ <total_in_cents type=\"integer\">3000</total_in_cents>\n <vat_amount_in_cents
184
- type=\"integer\">0</vat_amount_in_cents>\n <paid_in_cents type=\"integer\">0</paid_in_cents>\n
185
- \ <total_due_in_cents type=\"integer\">3000</total_due_in_cents>\n <discount_in_cents
186
- type=\"integer\">0</discount_in_cents>\n <currency>USD</currency>\n <line_items
187
- type=\"array\">\n <line_item>\n <id>72813d595dbd44c68c619e5b714fc5bc</id>\n
188
- \ <type>charge</type>\n <amount_in_cents type=\"integer\">1000</amount_in_cents>\n
189
- \ <currency>USD</currency>\n <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n
190
- \ <end_date nil=\"true\" type=\"datetime\"></end_date>\n <description>charge
191
- description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n
192
- \ <applied_coupon_code></applied_coupon_code>\n </line_item>\n <line_item>\n
193
- \ <id>462b960ebbed46a4be6102206b327559</id>\n <type>charge</type>\n
194
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
195
- \ <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n <end_date
196
- nil=\"true\" type=\"datetime\"></end_date>\n <description>charge description</description>\n
197
- \ <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n <applied_coupon_code></applied_coupon_code>\n
198
- \ </line_item>\n <line_item>\n <id>5bed639d0e9644f6b547db893e8d5ff2</id>\n
199
- \ <type>charge</type>\n <amount_in_cents type=\"integer\">1000</amount_in_cents>\n
200
- \ <currency>USD</currency>\n <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n
201
- \ <end_date nil=\"true\" type=\"datetime\"></end_date>\n <description>charge
202
- description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n
203
- \ <applied_coupon_code></applied_coupon_code>\n </line_item>\n </line_items>\n
204
- \ <payments type=\"array\">\n </payments>\n</invoice>\n"
205
- http_version: '1.1'
206
- - !ruby/struct:VCR::HTTPInteraction
207
- request: !ruby/struct:VCR::Request
236
+ body: |
237
+ <?xml version="1.0" encoding="UTF-8"?>
238
+ <invoice>
239
+ <id>228d33b859674f8ca6b36f002b9a92e3</id>
240
+ <account_code>charge-list-invoiced-1313708721</account_code>
241
+ <date type="datetime">2011-09-22T22:01:44Z</date>
242
+ <invoice_number type="integer">1068</invoice_number>
243
+ <vat_number></vat_number>
244
+ <status>open</status>
245
+ <subtotal_in_cents type="integer">3000</subtotal_in_cents>
246
+ <total_in_cents type="integer">3000</total_in_cents>
247
+ <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
248
+ <paid_in_cents type="integer">0</paid_in_cents>
249
+ <total_due_in_cents type="integer">3000</total_due_in_cents>
250
+ <discount_in_cents type="integer">0</discount_in_cents>
251
+ <currency>USD</currency>
252
+ <line_items type="array">
253
+ <line_item>
254
+ <id>03d25262a0194cf38c04ef145ae10c81</id>
255
+ <type>charge</type>
256
+ <amount_in_cents type="integer">1000</amount_in_cents>
257
+ <currency>USD</currency>
258
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
259
+ <end_date nil="true" type="datetime"></end_date>
260
+ <description>charge description</description>
261
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
262
+ <applied_coupon_code></applied_coupon_code>
263
+ </line_item>
264
+ <line_item>
265
+ <id>650614ce574c4f8a98e100d4df7a0562</id>
266
+ <type>charge</type>
267
+ <amount_in_cents type="integer">1000</amount_in_cents>
268
+ <currency>USD</currency>
269
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
270
+ <end_date nil="true" type="datetime"></end_date>
271
+ <description>charge description</description>
272
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
273
+ <applied_coupon_code></applied_coupon_code>
274
+ </line_item>
275
+ <line_item>
276
+ <id>fb71f80f82f345e0b23cc6ca00804245</id>
277
+ <type>charge</type>
278
+ <amount_in_cents type="integer">1000</amount_in_cents>
279
+ <currency>USD</currency>
280
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
281
+ <end_date nil="true" type="datetime"></end_date>
282
+ <description>charge description</description>
283
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
284
+ <applied_coupon_code></applied_coupon_code>
285
+ </line_item>
286
+ </line_items>
287
+ <payments type="array">
288
+ </payments>
289
+ </invoice>
290
+
291
+ http_version: "1.1"
292
+ - !ruby/struct:VCR::HTTPInteraction
293
+ request: !ruby/struct:VCR::Request
208
294
  method: :post
209
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml
210
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
211
- \ <description>charge description</description>\n</charge>\n"
212
- headers:
213
- user-agent:
214
- - Recurly Ruby Client v0.4.10
215
- content-type:
295
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml
296
+ body: |
297
+ <?xml version="1.0" encoding="UTF-8"?>
298
+ <charge>
299
+ <amount type="float">10.0</amount>
300
+ <description>charge description</description>
301
+ </charge>
302
+
303
+ headers:
304
+ user-agent:
305
+ - Recurly Ruby Client v0.4.13
306
+ content-type:
216
307
  - application/xml
217
- response: !ruby/struct:VCR::Response
218
- status: !ruby/struct:VCR::ResponseStatus
308
+ response: !ruby/struct:VCR::Response
309
+ status: !ruby/struct:VCR::ResponseStatus
219
310
  code: 201
220
311
  message: Created
221
- headers:
222
- content-type:
312
+ headers:
313
+ content-type:
223
314
  - application/xml; charset=utf-8
224
- cache-control:
315
+ cache-control:
225
316
  - no-cache
226
- x-ua-compatible:
317
+ x-ua-compatible:
227
318
  - IE=Edge
228
- set-cookie:
229
- - _recurly_session=f27859736123134fc048e5d20c56ab5c; domain=.lvh.me; path=/;
230
- HttpOnly
231
- server:
319
+ set-cookie:
320
+ - _recurly_session=ed6d91f1dac8a8de7f74107f4c5d1b4a; domain=.lvh.me; path=/; HttpOnly
321
+ server:
232
322
  - thin 1.2.11 codename Bat-Shit Crazy
233
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
234
- \ <id>2a46edf298e247c296eb2b316e9aad61</id>\n <account_code>charge-list-invoiced-1313708721</account_code>\n
235
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
236
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
237
- \ <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n <end_date
238
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
239
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n</charge>\n"
240
- http_version: '1.1'
241
- - !ruby/struct:VCR::HTTPInteraction
242
- request: !ruby/struct:VCR::Request
323
+ body: |
324
+ <?xml version="1.0" encoding="UTF-8"?>
325
+ <charge type="charge">
326
+ <id>f289c63f93e1415b8de92c0610a5fdda</id>
327
+ <account_code>charge-list-invoiced-1313708721</account_code>
328
+ <quantity type="integer">1</quantity>
329
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
330
+ <amount_in_cents type="integer">1000</amount_in_cents>
331
+ <currency>USD</currency>
332
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
333
+ <end_date nil="true" type="datetime"></end_date>
334
+ <invoice_number nil="true" type="integer"></invoice_number>
335
+ <description>charge description</description>
336
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
337
+ </charge>
338
+
339
+ http_version: "1.1"
340
+ - !ruby/struct:VCR::HTTPInteraction
341
+ request: !ruby/struct:VCR::Request
243
342
  method: :get
244
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml?show=invoiced
245
- body: !!null
246
- headers:
247
- user-agent:
248
- - Recurly Ruby Client v0.4.10
249
- accept:
343
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-invoiced-1313708721/charges.xml?show=invoiced
344
+ body:
345
+ headers:
346
+ user-agent:
347
+ - Recurly Ruby Client v0.4.13
348
+ accept:
250
349
  - application/xml
251
- accept-encoding:
350
+ accept-encoding:
252
351
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
253
- response: !ruby/struct:VCR::Response
254
- status: !ruby/struct:VCR::ResponseStatus
352
+ response: !ruby/struct:VCR::Response
353
+ status: !ruby/struct:VCR::ResponseStatus
255
354
  code: 200
256
355
  message: OK
257
- headers:
258
- content-type:
356
+ headers:
357
+ content-type:
259
358
  - application/xml; charset=utf-8
260
- etag:
261
- - ! '"367fa4efd245c490b0b6751ad3228fea"'
262
- cache-control:
359
+ etag:
360
+ - "\"773b0941b2cfbd0ad9e84038a5832124\""
361
+ cache-control:
263
362
  - max-age=0, private, must-revalidate
264
- x-ua-compatible:
363
+ x-ua-compatible:
265
364
  - IE=Edge
266
- set-cookie:
267
- - _recurly_session=9aa35c612a9b437c18be476872970555; domain=.lvh.me; path=/;
268
- HttpOnly
269
- server:
365
+ server:
270
366
  - thin 1.2.11 codename Bat-Shit Crazy
271
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charges type=\"array\">\n
272
- \ <charge type=\"charge\">\n <id>5bed639d0e9644f6b547db893e8d5ff2</id>\n
273
- \ <account_code>charge-list-invoiced-1313708721</account_code>\n <quantity
274
- type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
275
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
276
- \ <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n <end_date
277
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number type=\"integer\">1504</invoice_number>\n
278
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n
279
- \ </charge>\n <charge type=\"charge\">\n <id>462b960ebbed46a4be6102206b327559</id>\n
280
- \ <account_code>charge-list-invoiced-1313708721</account_code>\n <quantity
281
- type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
282
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
283
- \ <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n <end_date
284
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number type=\"integer\">1504</invoice_number>\n
285
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n
286
- \ </charge>\n <charge type=\"charge\">\n <id>72813d595dbd44c68c619e5b714fc5bc</id>\n
287
- \ <account_code>charge-list-invoiced-1313708721</account_code>\n <quantity
288
- type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
289
- \ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
290
- \ <start_date type=\"datetime\">2011-08-19T20:01:38Z</start_date>\n <end_date
291
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number type=\"integer\">1504</invoice_number>\n
292
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:38Z</created_at>\n
293
- \ </charge>\n</charges>\n"
294
- http_version: '1.1'
367
+ body: |
368
+ <?xml version="1.0" encoding="UTF-8"?>
369
+ <charges type="array">
370
+ <charge type="charge">
371
+ <id>fb71f80f82f345e0b23cc6ca00804245</id>
372
+ <account_code>charge-list-invoiced-1313708721</account_code>
373
+ <quantity type="integer">1</quantity>
374
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
375
+ <amount_in_cents type="integer">1000</amount_in_cents>
376
+ <currency>USD</currency>
377
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
378
+ <end_date nil="true" type="datetime"></end_date>
379
+ <invoice_number type="integer">1068</invoice_number>
380
+ <description>charge description</description>
381
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
382
+ </charge>
383
+ <charge type="charge">
384
+ <id>650614ce574c4f8a98e100d4df7a0562</id>
385
+ <account_code>charge-list-invoiced-1313708721</account_code>
386
+ <quantity type="integer">1</quantity>
387
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
388
+ <amount_in_cents type="integer">1000</amount_in_cents>
389
+ <currency>USD</currency>
390
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
391
+ <end_date nil="true" type="datetime"></end_date>
392
+ <invoice_number type="integer">1068</invoice_number>
393
+ <description>charge description</description>
394
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
395
+ </charge>
396
+ <charge type="charge">
397
+ <id>03d25262a0194cf38c04ef145ae10c81</id>
398
+ <account_code>charge-list-invoiced-1313708721</account_code>
399
+ <quantity type="integer">1</quantity>
400
+ <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
401
+ <amount_in_cents type="integer">1000</amount_in_cents>
402
+ <currency>USD</currency>
403
+ <start_date type="datetime">2011-09-22T22:01:44Z</start_date>
404
+ <end_date nil="true" type="datetime"></end_date>
405
+ <invoice_number type="integer">1068</invoice_number>
406
+ <description>charge description</description>
407
+ <created_at type="datetime">2011-09-22T22:01:44Z</created_at>
408
+ </charge>
409
+ </charges>
410
+
411
+ http_version: "1.1"