recurly 0.4.15 → 0.4.16

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/base.rb +35 -0
  2. data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
  3. data/lib/recurly.rb +14 -4
  4. data/lib/recurly/account.rb +6 -3
  5. data/lib/recurly/base.rb +1 -2
  6. data/lib/recurly/subscription.rb +7 -0
  7. data/lib/recurly/version.rb +1 -1
  8. data/spec/config/recurly.yml +4 -4
  9. data/spec/integration/subscription_spec.rb +2 -1
  10. metadata +108 -220
  11. data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
  12. data/spec/vcr/account/close/1313708721.yml +0 -132
  13. data/spec/vcr/account/create-blank/1313708721.yml +0 -44
  14. data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
  15. data/spec/vcr/account/create-min/1313708721.yml +0 -56
  16. data/spec/vcr/account/create/1313708721.yml +0 -60
  17. data/spec/vcr/account/find/1313708721.yml +0 -137
  18. data/spec/vcr/account/list/1313708721.yml +0 -1307
  19. data/spec/vcr/account/update/1313708721.yml +0 -216
  20. data/spec/vcr/billing/create/1313708721.yml +0 -181
  21. data/spec/vcr/billing/destroy/1313708721.yml +0 -240
  22. data/spec/vcr/billing/errors/1313708721.yml +0 -106
  23. data/spec/vcr/billing/find/1313708721.yml +0 -234
  24. data/spec/vcr/billing/update/1313708721.yml +0 -251
  25. data/spec/vcr/charge/create/1313708721.yml +0 -222
  26. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
  27. data/spec/vcr/charge/list-all/1313708721.yml +0 -276
  28. data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
  29. data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
  30. data/spec/vcr/charge/lookup/1313708721.yml +0 -152
  31. data/spec/vcr/coupon/create/1296774903.yml +0 -97
  32. data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
  33. data/spec/vcr/credit/create/1313708090.yml +0 -152
  34. data/spec/vcr/credit/delete/1313708090.yml +0 -211
  35. data/spec/vcr/credit/list/1313708090.yml +0 -276
  36. data/spec/vcr/credit/lookup/1313708090.yml +0 -152
  37. data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
  38. data/spec/vcr/invoice/create/1296674173.yml +0 -302
  39. data/spec/vcr/invoice/list/1296674173.yml +0 -405
  40. data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
  41. data/spec/vcr/plan/all.yml +0 -233
  42. data/spec/vcr/plan/find.yml +0 -136
  43. data/spec/vcr/plan/update.yml +0 -152
  44. data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
  45. data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
  46. data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
  47. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
  48. data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
  49. data/spec/vcr/subscription/change1/1296674173.yml +0 -354
  50. data/spec/vcr/subscription/change2/1296674173.yml +0 -354
  51. data/spec/vcr/subscription/create/1296674173.yml +0 -192
  52. data/spec/vcr/subscription/find/1296674173.yml +0 -244
  53. data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
  54. data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
  55. data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
  56. data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
  57. data/spec/vcr/transaction/all/1311126815.yml +0 -397
  58. data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
  59. data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
  60. data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
  61. data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
  62. data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
  63. data/spec/vcr/transaction/void/1311126815.yml +0 -321
  64. data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
  65. data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
@@ -1,302 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
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>invoice-create-1296674173</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:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/invoice-create-1296674173
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=a609e50cda192acf89910f1a603534f3; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>invoice-create-1296674173</id>
47
- <account_code>invoice-create-1296674173</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>9e7c86bbaa6a40409626ab44e8128b97</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:48Z</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
63
- method: :put
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-create-1296674173/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>invoice-create-1296674173</account-code>
82
- </billing-info>
83
-
84
- headers:
85
- user-agent:
86
- - Recurly Ruby Client v0.4.13
87
- content-type:
88
- - application/xml
89
- response: !ruby/struct:VCR::Response
90
- status: !ruby/struct:VCR::ResponseStatus
91
- code: 200
92
- message: OK
93
- headers:
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"6abfbe09ce9b3ae2eebf2450e0847217\""
98
- cache-control:
99
- - max-age=0, private, must-revalidate
100
- x-ua-compatible:
101
- - IE=Edge
102
- set-cookie:
103
- - _recurly_session=f36d9ff9e0e6093c3755aea89da37a31; domain=.lvh.me; path=/; HttpOnly
104
- server:
105
- - thin 1.2.11 codename Bat-Shit Crazy
106
- body: |
107
- <?xml version="1.0" encoding="UTF-8"?>
108
- <billing_info>
109
- <account_code>invoice-create-1296674173</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:01:49Z</updated_at>
128
- </billing_info>
129
-
130
- http_version: "1.1"
131
- - !ruby/struct:VCR::HTTPInteraction
132
- request: !ruby/struct:VCR::Request
133
- method: :post
134
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-create-1296674173/charges.xml
135
- body: |
136
- <?xml version="1.0" encoding="UTF-8"?>
137
- <charge>
138
- <amount type="float">10.0</amount>
139
- <description>charge description</description>
140
- </charge>
141
-
142
- headers:
143
- user-agent:
144
- - Recurly Ruby Client v0.4.13
145
- content-type:
146
- - application/xml
147
- response: !ruby/struct:VCR::Response
148
- status: !ruby/struct:VCR::ResponseStatus
149
- code: 201
150
- message: Created
151
- headers:
152
- content-type:
153
- - application/xml; charset=utf-8
154
- cache-control:
155
- - no-cache
156
- x-ua-compatible:
157
- - IE=Edge
158
- set-cookie:
159
- - _recurly_session=354c8ec641598fb39a008e1b754462f0; domain=.lvh.me; path=/; HttpOnly
160
- server:
161
- - thin 1.2.11 codename Bat-Shit Crazy
162
- body: |
163
- <?xml version="1.0" encoding="UTF-8"?>
164
- <charge type="charge">
165
- <id>b4eca9f3f14c437a817fb3fa463f43a1</id>
166
- <account_code>invoice-create-1296674173</account_code>
167
- <quantity type="integer">1</quantity>
168
- <unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
169
- <amount_in_cents type="integer">1000</amount_in_cents>
170
- <currency>USD</currency>
171
- <start_date type="datetime">2011-09-22T22:01:49Z</start_date>
172
- <end_date nil="true" type="datetime"></end_date>
173
- <invoice_number nil="true" type="integer"></invoice_number>
174
- <description>charge description</description>
175
- <created_at type="datetime">2011-09-22T22:01:50Z</created_at>
176
- </charge>
177
-
178
- http_version: "1.1"
179
- - !ruby/struct:VCR::HTTPInteraction
180
- request: !ruby/struct:VCR::Request
181
- method: :post
182
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-create-1296674173/charges.xml
183
- body: |
184
- <?xml version="1.0" encoding="UTF-8"?>
185
- <charge>
186
- <amount type="float">15.0</amount>
187
- <description>charge description</description>
188
- </charge>
189
-
190
- headers:
191
- user-agent:
192
- - Recurly Ruby Client v0.4.13
193
- content-type:
194
- - application/xml
195
- response: !ruby/struct:VCR::Response
196
- status: !ruby/struct:VCR::ResponseStatus
197
- code: 201
198
- message: Created
199
- headers:
200
- content-type:
201
- - application/xml; charset=utf-8
202
- cache-control:
203
- - no-cache
204
- x-ua-compatible:
205
- - IE=Edge
206
- set-cookie:
207
- - _recurly_session=d2477078e686d65f380551efef7bd5f8; domain=.lvh.me; path=/; HttpOnly
208
- server:
209
- - thin 1.2.11 codename Bat-Shit Crazy
210
- body: |
211
- <?xml version="1.0" encoding="UTF-8"?>
212
- <charge type="charge">
213
- <id>fab35ea2969c425788948697b04fb61d</id>
214
- <account_code>invoice-create-1296674173</account_code>
215
- <quantity type="integer">1</quantity>
216
- <unit_amount_in_cents type="integer">1500</unit_amount_in_cents>
217
- <amount_in_cents type="integer">1500</amount_in_cents>
218
- <currency>USD</currency>
219
- <start_date type="datetime">2011-09-22T22:01:50Z</start_date>
220
- <end_date nil="true" type="datetime"></end_date>
221
- <invoice_number nil="true" type="integer"></invoice_number>
222
- <description>charge description</description>
223
- <created_at type="datetime">2011-09-22T22:01:50Z</created_at>
224
- </charge>
225
-
226
- http_version: "1.1"
227
- - !ruby/struct:VCR::HTTPInteraction
228
- request: !ruby/struct:VCR::Request
229
- method: :post
230
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-create-1296674173/invoices.xml
231
- body: |
232
- <?xml version="1.0" encoding="UTF-8"?>
233
- <invoice>
234
- </invoice>
235
-
236
- headers:
237
- user-agent:
238
- - Recurly Ruby Client v0.4.13
239
- content-type:
240
- - application/xml
241
- response: !ruby/struct:VCR::Response
242
- status: !ruby/struct:VCR::ResponseStatus
243
- code: 201
244
- message: Created
245
- headers:
246
- location:
247
- - http://api.lvh.me:3000/invoices/a0df5fae8a2f4650b5614962106b7376
248
- content-type:
249
- - application/xml; charset=utf-8
250
- cache-control:
251
- - no-cache
252
- x-ua-compatible:
253
- - IE=Edge
254
- set-cookie:
255
- - _recurly_session=6f0fe043e631af053d93ca5b7b164190; domain=.lvh.me; path=/; HttpOnly
256
- server:
257
- - thin 1.2.11 codename Bat-Shit Crazy
258
- body: |
259
- <?xml version="1.0" encoding="UTF-8"?>
260
- <invoice>
261
- <id>a0df5fae8a2f4650b5614962106b7376</id>
262
- <account_code>invoice-create-1296674173</account_code>
263
- <date type="datetime">2011-09-22T22:01:50Z</date>
264
- <invoice_number type="integer">1069</invoice_number>
265
- <vat_number></vat_number>
266
- <status>open</status>
267
- <subtotal_in_cents type="integer">2500</subtotal_in_cents>
268
- <total_in_cents type="integer">2500</total_in_cents>
269
- <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
270
- <paid_in_cents type="integer">0</paid_in_cents>
271
- <total_due_in_cents type="integer">2500</total_due_in_cents>
272
- <discount_in_cents type="integer">0</discount_in_cents>
273
- <currency>USD</currency>
274
- <line_items type="array">
275
- <line_item>
276
- <id>b4eca9f3f14c437a817fb3fa463f43a1</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:49Z</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:50Z</created_at>
284
- <applied_coupon_code></applied_coupon_code>
285
- </line_item>
286
- <line_item>
287
- <id>fab35ea2969c425788948697b04fb61d</id>
288
- <type>charge</type>
289
- <amount_in_cents type="integer">1500</amount_in_cents>
290
- <currency>USD</currency>
291
- <start_date type="datetime">2011-09-22T22:01:50Z</start_date>
292
- <end_date nil="true" type="datetime"></end_date>
293
- <description>charge description</description>
294
- <created_at type="datetime">2011-09-22T22:01:50Z</created_at>
295
- <applied_coupon_code></applied_coupon_code>
296
- </line_item>
297
- </line_items>
298
- <payments type="array">
299
- </payments>
300
- </invoice>
301
-
302
- http_version: "1.1"
@@ -1,405 +0,0 @@
1
- ---
2
- - !ruby/struct:VCR::HTTPInteraction
3
- request: !ruby/struct:VCR::Request
4
- method: :post
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>invoice-list-1296674173</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:
25
- - application/xml
26
- response: !ruby/struct:VCR::Response
27
- status: !ruby/struct:VCR::ResponseStatus
28
- code: 201
29
- message: Created
30
- headers:
31
- location:
32
- - http://api.lvh.me:3000/accounts/invoice-list-1296674173
33
- content-type:
34
- - application/xml; charset=utf-8
35
- cache-control:
36
- - no-cache
37
- x-ua-compatible:
38
- - IE=Edge
39
- set-cookie:
40
- - _recurly_session=8fb2730b2b97ad04ebdfce6c831360b9; domain=.lvh.me; path=/; HttpOnly
41
- server:
42
- - thin 1.2.11 codename Bat-Shit Crazy
43
- body: |
44
- <?xml version="1.0" encoding="UTF-8"?>
45
- <account>
46
- <id>invoice-list-1296674173</id>
47
- <account_code>invoice-list-1296674173</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>f7fc66cd7ba449c5ab1cbdcd72dd0ab8</hosted_login_token>
56
- <created_at type="datetime">2011-09-22T22:01:51Z</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
63
- method: :put
64
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-list-1296674173/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>invoice-list-1296674173</account-code>
82
- </billing-info>
83
-
84
- headers:
85
- user-agent:
86
- - Recurly Ruby Client v0.4.13
87
- content-type:
88
- - application/xml
89
- response: !ruby/struct:VCR::Response
90
- status: !ruby/struct:VCR::ResponseStatus
91
- code: 200
92
- message: OK
93
- headers:
94
- content-type:
95
- - application/xml; charset=utf-8
96
- etag:
97
- - "\"18e53f4d1d30c8f1e229a56e4374730f\""
98
- cache-control:
99
- - max-age=0, private, must-revalidate
100
- x-ua-compatible:
101
- - IE=Edge
102
- set-cookie:
103
- - _recurly_session=be73f71fa93c49b48d752843b1cc0e39; domain=.lvh.me; path=/; HttpOnly
104
- server:
105
- - thin 1.2.11 codename Bat-Shit Crazy
106
- body: |
107
- <?xml version="1.0" encoding="UTF-8"?>
108
- <billing_info>
109
- <account_code>invoice-list-1296674173</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:01:52Z</updated_at>
128
- </billing_info>
129
-
130
- http_version: "1.1"
131
- - !ruby/struct:VCR::HTTPInteraction
132
- request: !ruby/struct:VCR::Request
133
- method: :post
134
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-list-1296674173/charges.xml
135
- body: |
136
- <?xml version="1.0" encoding="UTF-8"?>
137
- <charge>
138
- <amount type="float">1.0</amount>
139
- <description>charge description</description>
140
- </charge>
141
-
142
- headers:
143
- user-agent:
144
- - Recurly Ruby Client v0.4.13
145
- content-type:
146
- - application/xml
147
- response: !ruby/struct:VCR::Response
148
- status: !ruby/struct:VCR::ResponseStatus
149
- code: 201
150
- message: Created
151
- headers:
152
- content-type:
153
- - application/xml; charset=utf-8
154
- cache-control:
155
- - no-cache
156
- x-ua-compatible:
157
- - IE=Edge
158
- set-cookie:
159
- - _recurly_session=fd423c5a1dc53ab8f952f08bbf498b86; domain=.lvh.me; path=/; HttpOnly
160
- server:
161
- - thin 1.2.11 codename Bat-Shit Crazy
162
- body: |
163
- <?xml version="1.0" encoding="UTF-8"?>
164
- <charge type="charge">
165
- <id>9197688f43ec4994a5329c8a06745b2f</id>
166
- <account_code>invoice-list-1296674173</account_code>
167
- <quantity type="integer">1</quantity>
168
- <unit_amount_in_cents type="integer">100</unit_amount_in_cents>
169
- <amount_in_cents type="integer">100</amount_in_cents>
170
- <currency>USD</currency>
171
- <start_date type="datetime">2011-09-22T22:01:52Z</start_date>
172
- <end_date nil="true" type="datetime"></end_date>
173
- <invoice_number nil="true" type="integer"></invoice_number>
174
- <description>charge description</description>
175
- <created_at type="datetime">2011-09-22T22:01:52Z</created_at>
176
- </charge>
177
-
178
- http_version: "1.1"
179
- - !ruby/struct:VCR::HTTPInteraction
180
- request: !ruby/struct:VCR::Request
181
- method: :post
182
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-list-1296674173/invoices.xml
183
- body: |
184
- <?xml version="1.0" encoding="UTF-8"?>
185
- <invoice>
186
- </invoice>
187
-
188
- headers:
189
- user-agent:
190
- - Recurly Ruby Client v0.4.13
191
- content-type:
192
- - application/xml
193
- response: !ruby/struct:VCR::Response
194
- status: !ruby/struct:VCR::ResponseStatus
195
- code: 201
196
- message: Created
197
- headers:
198
- location:
199
- - http://api.lvh.me:3000/invoices/1dd64429d31e4f629984561fd54f0fa0
200
- content-type:
201
- - application/xml; charset=utf-8
202
- cache-control:
203
- - no-cache
204
- x-ua-compatible:
205
- - IE=Edge
206
- set-cookie:
207
- - _recurly_session=16f246ebaf1a16b82e174437a1e15714; domain=.lvh.me; path=/; HttpOnly
208
- server:
209
- - thin 1.2.11 codename Bat-Shit Crazy
210
- body: |
211
- <?xml version="1.0" encoding="UTF-8"?>
212
- <invoice>
213
- <id>1dd64429d31e4f629984561fd54f0fa0</id>
214
- <account_code>invoice-list-1296674173</account_code>
215
- <date type="datetime">2011-09-22T22:01:52Z</date>
216
- <invoice_number type="integer">1070</invoice_number>
217
- <vat_number></vat_number>
218
- <status>open</status>
219
- <subtotal_in_cents type="integer">100</subtotal_in_cents>
220
- <total_in_cents type="integer">100</total_in_cents>
221
- <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
222
- <paid_in_cents type="integer">0</paid_in_cents>
223
- <total_due_in_cents type="integer">100</total_due_in_cents>
224
- <discount_in_cents type="integer">0</discount_in_cents>
225
- <currency>USD</currency>
226
- <line_items type="array">
227
- <line_item>
228
- <id>9197688f43ec4994a5329c8a06745b2f</id>
229
- <type>charge</type>
230
- <amount_in_cents type="integer">100</amount_in_cents>
231
- <currency>USD</currency>
232
- <start_date type="datetime">2011-09-22T22:01:52Z</start_date>
233
- <end_date nil="true" type="datetime"></end_date>
234
- <description>charge description</description>
235
- <created_at type="datetime">2011-09-22T22:01:52Z</created_at>
236
- <applied_coupon_code></applied_coupon_code>
237
- </line_item>
238
- </line_items>
239
- <payments type="array">
240
- </payments>
241
- </invoice>
242
-
243
- http_version: "1.1"
244
- - !ruby/struct:VCR::HTTPInteraction
245
- request: !ruby/struct:VCR::Request
246
- method: :post
247
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-list-1296674173/charges.xml
248
- body: |
249
- <?xml version="1.0" encoding="UTF-8"?>
250
- <charge>
251
- <amount type="float">3.0</amount>
252
- <description>charge description</description>
253
- </charge>
254
-
255
- headers:
256
- user-agent:
257
- - Recurly Ruby Client v0.4.13
258
- content-type:
259
- - application/xml
260
- response: !ruby/struct:VCR::Response
261
- status: !ruby/struct:VCR::ResponseStatus
262
- code: 201
263
- message: Created
264
- headers:
265
- content-type:
266
- - application/xml; charset=utf-8
267
- cache-control:
268
- - no-cache
269
- x-ua-compatible:
270
- - IE=Edge
271
- set-cookie:
272
- - _recurly_session=cd2b03c40d75e1cb1de397b855beb76c; domain=.lvh.me; path=/; HttpOnly
273
- server:
274
- - thin 1.2.11 codename Bat-Shit Crazy
275
- body: |
276
- <?xml version="1.0" encoding="UTF-8"?>
277
- <charge type="charge">
278
- <id>30b6c5c80e4241719a59a63110dca45e</id>
279
- <account_code>invoice-list-1296674173</account_code>
280
- <quantity type="integer">1</quantity>
281
- <unit_amount_in_cents type="integer">300</unit_amount_in_cents>
282
- <amount_in_cents type="integer">300</amount_in_cents>
283
- <currency>USD</currency>
284
- <start_date type="datetime">2011-09-22T22:01:52Z</start_date>
285
- <end_date nil="true" type="datetime"></end_date>
286
- <invoice_number nil="true" type="integer"></invoice_number>
287
- <description>charge description</description>
288
- <created_at type="datetime">2011-09-22T22:01:52Z</created_at>
289
- </charge>
290
-
291
- http_version: "1.1"
292
- - !ruby/struct:VCR::HTTPInteraction
293
- request: !ruby/struct:VCR::Request
294
- method: :post
295
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-list-1296674173/invoices.xml
296
- body: |
297
- <?xml version="1.0" encoding="UTF-8"?>
298
- <invoice>
299
- </invoice>
300
-
301
- headers:
302
- user-agent:
303
- - Recurly Ruby Client v0.4.13
304
- content-type:
305
- - application/xml
306
- response: !ruby/struct:VCR::Response
307
- status: !ruby/struct:VCR::ResponseStatus
308
- code: 201
309
- message: Created
310
- headers:
311
- location:
312
- - http://api.lvh.me:3000/invoices/6617f57ac17d45fb86c4ad497ccabdb2
313
- content-type:
314
- - application/xml; charset=utf-8
315
- cache-control:
316
- - no-cache
317
- x-ua-compatible:
318
- - IE=Edge
319
- set-cookie:
320
- - _recurly_session=33a1aef48d06076ecc0dcbdafb11cac6; domain=.lvh.me; path=/; HttpOnly
321
- server:
322
- - thin 1.2.11 codename Bat-Shit Crazy
323
- body: |
324
- <?xml version="1.0" encoding="UTF-8"?>
325
- <invoice>
326
- <id>6617f57ac17d45fb86c4ad497ccabdb2</id>
327
- <account_code>invoice-list-1296674173</account_code>
328
- <date type="datetime">2011-09-22T22:01:52Z</date>
329
- <invoice_number type="integer">1071</invoice_number>
330
- <vat_number></vat_number>
331
- <status>open</status>
332
- <subtotal_in_cents type="integer">300</subtotal_in_cents>
333
- <total_in_cents type="integer">300</total_in_cents>
334
- <vat_amount_in_cents type="integer">0</vat_amount_in_cents>
335
- <paid_in_cents type="integer">0</paid_in_cents>
336
- <total_due_in_cents type="integer">300</total_due_in_cents>
337
- <discount_in_cents type="integer">0</discount_in_cents>
338
- <currency>USD</currency>
339
- <line_items type="array">
340
- <line_item>
341
- <id>30b6c5c80e4241719a59a63110dca45e</id>
342
- <type>charge</type>
343
- <amount_in_cents type="integer">300</amount_in_cents>
344
- <currency>USD</currency>
345
- <start_date type="datetime">2011-09-22T22:01:52Z</start_date>
346
- <end_date nil="true" type="datetime"></end_date>
347
- <description>charge description</description>
348
- <created_at type="datetime">2011-09-22T22:01:52Z</created_at>
349
- <applied_coupon_code></applied_coupon_code>
350
- </line_item>
351
- </line_items>
352
- <payments type="array">
353
- </payments>
354
- </invoice>
355
-
356
- http_version: "1.1"
357
- - !ruby/struct:VCR::HTTPInteraction
358
- request: !ruby/struct:VCR::Request
359
- method: :get
360
- uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/invoice-list-1296674173/invoices.xml
361
- body:
362
- headers:
363
- user-agent:
364
- - Recurly Ruby Client v0.4.13
365
- accept:
366
- - application/xml
367
- accept-encoding:
368
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
369
- response: !ruby/struct:VCR::Response
370
- status: !ruby/struct:VCR::ResponseStatus
371
- code: 200
372
- message: OK
373
- headers:
374
- content-type:
375
- - application/xml; charset=utf-8
376
- etag:
377
- - "\"7da2affdf71174f1e2d89ae5572fc1fe\""
378
- cache-control:
379
- - max-age=0, private, must-revalidate
380
- x-ua-compatible:
381
- - IE=Edge
382
- server:
383
- - thin 1.2.11 codename Bat-Shit Crazy
384
- body: |
385
- <?xml version="1.0" encoding="UTF-8"?>
386
- <invoices type="array">
387
- <invoice>
388
- <id>6617f57ac17d45fb86c4ad497ccabdb2</id>
389
- <account_code>invoice-list-1296674173</account_code>
390
- <date type="datetime">2011-09-22T22:01:52Z</date>
391
- <invoice_number type="integer">1071</invoice_number>
392
- <subtotal_in_cents type="integer">300</subtotal_in_cents>
393
- <total_in_cents type="integer">300</total_in_cents>
394
- </invoice>
395
- <invoice>
396
- <id>1dd64429d31e4f629984561fd54f0fa0</id>
397
- <account_code>invoice-list-1296674173</account_code>
398
- <date type="datetime">2011-09-22T22:01:52Z</date>
399
- <invoice_number type="integer">1070</invoice_number>
400
- <subtotal_in_cents type="integer">100</subtotal_in_cents>
401
- <total_in_cents type="integer">100</total_in_cents>
402
- </invoice>
403
- </invoices>
404
-
405
- http_version: "1.1"