recurly 0.4.8 → 0.4.10

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 (114) hide show
  1. data/README.md +2 -2
  2. data/lib/recurly.rb +2 -1
  3. data/lib/recurly/account.rb +2 -2
  4. data/lib/recurly/base.rb +30 -12
  5. data/lib/recurly/billing_info.rb +2 -2
  6. data/lib/recurly/exceptions.rb +13 -0
  7. data/lib/recurly/plan.rb +1 -1
  8. data/lib/recurly/subscription.rb +2 -2
  9. data/lib/recurly/transaction.rb +2 -2
  10. data/lib/recurly/transparent.rb +1 -1
  11. data/lib/recurly/verification.rb +77 -0
  12. data/lib/recurly/version.rb +1 -1
  13. data/spec/config/recurly.yml +4 -4
  14. data/spec/integration/account_spec.rb +12 -0
  15. data/spec/integration/billing_info_spec.rb +2 -2
  16. data/spec/integration/charge_spec.rb +0 -1
  17. data/spec/integration/plan_spec.rb +2 -2
  18. data/spec/support/vcr.rb +2 -2
  19. data/spec/unit/verification_spec.rb +76 -0
  20. data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
  21. data/spec/vcr/account/close/1313708721.yml +104 -0
  22. data/spec/vcr/account/create-blank/1313708721.yml +33 -0
  23. data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
  24. data/spec/vcr/account/create-min/1313708721.yml +38 -0
  25. data/spec/vcr/account/create/1313708721.yml +39 -0
  26. data/spec/vcr/account/find/1313708721.yml +107 -0
  27. data/spec/vcr/account/list/1313708721.yml +878 -0
  28. data/spec/vcr/account/update/1313708721.yml +158 -0
  29. data/spec/vcr/billing/create/1313708721.yml +118 -0
  30. data/spec/vcr/billing/destroy/1313708721.yml +177 -0
  31. data/spec/vcr/billing/errors/1313708721.yml +71 -0
  32. data/spec/vcr/billing/find/1313708721.yml +156 -0
  33. data/spec/vcr/billing/update/1313708721.yml +159 -0
  34. data/spec/vcr/charge/create/1313708721.yml +153 -0
  35. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
  36. data/spec/vcr/charge/list-all/1313708721.yml +198 -0
  37. data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
  38. data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
  39. data/spec/vcr/charge/lookup/1313708721.yml +112 -0
  40. data/spec/vcr/coupon/create/1296774903.yml +96 -170
  41. data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
  42. data/spec/vcr/credit/create/1313708090.yml +112 -0
  43. data/spec/vcr/credit/delete/1313708090.yml +171 -0
  44. data/spec/vcr/credit/list/1313708090.yml +198 -0
  45. data/spec/vcr/credit/lookup/1313708090.yml +112 -0
  46. data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
  47. data/spec/vcr/invoice/create/1296674173.yml +182 -328
  48. data/spec/vcr/invoice/list/1296674173.yml +255 -442
  49. data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
  50. data/spec/vcr/plan/all.yml +210 -253
  51. data/spec/vcr/plan/find.yml +115 -187
  52. data/spec/vcr/plan/update.yml +105 -187
  53. data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
  54. data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
  55. data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
  56. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
  57. data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
  58. data/spec/vcr/subscription/change1/1296674173.yml +237 -402
  59. data/spec/vcr/subscription/change2/1296674173.yml +238 -402
  60. data/spec/vcr/subscription/create/1296674173.yml +123 -221
  61. data/spec/vcr/subscription/find/1296674173.yml +161 -279
  62. data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
  63. data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
  64. data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
  65. data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
  66. data/spec/vcr/transaction/all/1311126815.yml +215 -0
  67. data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
  68. data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
  69. data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
  70. data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
  71. data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
  72. data/spec/vcr/transaction/refund/1311126815.yml +163 -0
  73. data/spec/vcr/transaction/void/1311126815.yml +215 -0
  74. data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
  75. metadata +207 -154
  76. data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
  77. data/spec/vcr/account/close/1296674173.yml +0 -164
  78. data/spec/vcr/account/create-blank/1296674173.yml +0 -52
  79. data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
  80. data/spec/vcr/account/create-min/1296674173.yml +0 -66
  81. data/spec/vcr/account/create/1296674173.yml +0 -70
  82. data/spec/vcr/account/find/1296674173.yml +0 -169
  83. data/spec/vcr/account/list/1296674173.yml +0 -55
  84. data/spec/vcr/account/update/1296674173.yml +0 -258
  85. data/spec/vcr/billing/create/1296690812.yml +0 -215
  86. data/spec/vcr/billing/destroy/1296690812.yml +0 -294
  87. data/spec/vcr/billing/find/1296690812.yml +0 -280
  88. data/spec/vcr/billing/update/1296690812.yml +0 -297
  89. data/spec/vcr/charge/create/1296674173.yml +0 -262
  90. data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
  91. data/spec/vcr/charge/list-all/1296674173.yml +0 -316
  92. data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
  93. data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
  94. data/spec/vcr/charge/lookup/1296674173.yml +0 -180
  95. data/spec/vcr/coupon/create/1296688818.yml +0 -183
  96. data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
  97. data/spec/vcr/credit/create/1296674173.yml +0 -121
  98. data/spec/vcr/credit/delete/1296674173.yml +0 -121
  99. data/spec/vcr/credit/list/1296674173.yml +0 -121
  100. data/spec/vcr/credit/lookup/1296674173.yml +0 -121
  101. data/spec/vcr/plan/delete/1296674173.yml +0 -225
  102. data/spec/vcr/transaction/all/1296674173.yml +0 -389
  103. data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
  104. data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
  105. data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
  106. data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
  107. data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
  108. data/spec/vcr/transaction/refund/1296674173.yml +0 -287
  109. data/spec/vcr/transaction/void/1296674173.yml +0 -352
  110. data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
  111. data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
  112. data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
  113. data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
  114. data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -0,0 +1,206 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
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-delete-uinvoiced-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:
14
+ - application/xml
15
+ response: !ruby/struct:VCR::Response
16
+ status: !ruby/struct:VCR::ResponseStatus
17
+ code: 201
18
+ message: Created
19
+ headers:
20
+ location:
21
+ - http://app.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721
22
+ content-type:
23
+ - application/xml; charset=utf-8
24
+ cache-control:
25
+ - no-cache
26
+ x-ua-compatible:
27
+ - IE=Edge
28
+ set-cookie:
29
+ - _recurly_session=ce28007f3e2623d0c5ff035498a2466a; domain=.lvh.me; path=/;
30
+ HttpOnly
31
+ server:
32
+ - thin 1.2.11 codename Bat-Shit Crazy
33
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>charge-delete-uinvoiced-1313708721</id>\n
34
+ \ <account_code>charge-delete-uinvoiced-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>0735b9195b384c20aadef7c802364eb4</hosted_login_token>\n
38
+ \ <created_at type=\"datetime\">2011-08-19T20:01:42Z</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
42
+ method: :post
43
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/charges.xml
44
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">13.15</amount>\n
45
+ \ <description>inconvenience fee</description>\n</charge>\n"
46
+ headers:
47
+ user-agent:
48
+ - Recurly Ruby Client v0.4.10
49
+ content-type:
50
+ - application/xml
51
+ response: !ruby/struct:VCR::Response
52
+ status: !ruby/struct:VCR::ResponseStatus
53
+ code: 201
54
+ message: Created
55
+ headers:
56
+ content-type:
57
+ - application/xml; charset=utf-8
58
+ cache-control:
59
+ - no-cache
60
+ x-ua-compatible:
61
+ - IE=Edge
62
+ set-cookie:
63
+ - _recurly_session=250e58811d886c025664eca9a4dee08b; domain=.lvh.me; path=/;
64
+ HttpOnly
65
+ server:
66
+ - thin 1.2.11 codename Bat-Shit Crazy
67
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
68
+ \ <id>31eec133f99544d8abe92a6d0d7580e4</id>\n <account_code>charge-delete-uinvoiced-1313708721</account_code>\n
69
+ \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1315</unit_amount_in_cents>\n
70
+ \ <amount_in_cents type=\"integer\">1315</amount_in_cents>\n <currency>USD</currency>\n
71
+ \ <start_date type=\"datetime\">2011-08-19T20:01:43Z</start_date>\n <end_date
72
+ nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
73
+ \ <description>inconvenience fee</description>\n <created_at type=\"datetime\">2011-08-19T20:01:43Z</created_at>\n</charge>\n"
74
+ http_version: '1.1'
75
+ - !ruby/struct:VCR::HTTPInteraction
76
+ request: !ruby/struct:VCR::Request
77
+ method: :get
78
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/charges/31eec133f99544d8abe92a6d0d7580e4.xml
79
+ body: !!null
80
+ headers:
81
+ user-agent:
82
+ - Recurly Ruby Client v0.4.10
83
+ accept:
84
+ - application/xml
85
+ accept-encoding:
86
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
+ response: !ruby/struct:VCR::Response
88
+ status: !ruby/struct:VCR::ResponseStatus
89
+ code: 200
90
+ message: OK
91
+ headers:
92
+ content-type:
93
+ - application/xml; charset=utf-8
94
+ etag:
95
+ - ! '"0f899ea6a717e3bfec770631c620d964"'
96
+ cache-control:
97
+ - max-age=0, private, must-revalidate
98
+ x-ua-compatible:
99
+ - IE=Edge
100
+ set-cookie:
101
+ - _recurly_session=bda2cdd6ad5cbc16c86f3e950d529aab; domain=.lvh.me; path=/;
102
+ HttpOnly
103
+ server:
104
+ - thin 1.2.11 codename Bat-Shit Crazy
105
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
106
+ \ <id>31eec133f99544d8abe92a6d0d7580e4</id>\n <account_code>charge-delete-uinvoiced-1313708721</account_code>\n
107
+ \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1315</unit_amount_in_cents>\n
108
+ \ <amount_in_cents type=\"integer\">1315</amount_in_cents>\n <currency>USD</currency>\n
109
+ \ <start_date type=\"datetime\">2011-08-19T20:01:43Z</start_date>\n <end_date
110
+ nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
111
+ \ <description>inconvenience fee</description>\n <created_at type=\"datetime\">2011-08-19T20:01:43Z</created_at>\n</charge>\n"
112
+ http_version: '1.1'
113
+ - !ruby/struct:VCR::HTTPInteraction
114
+ request: !ruby/struct:VCR::Request
115
+ method: :delete
116
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/charges/31eec133f99544d8abe92a6d0d7580e4.xml
117
+ body: !!null
118
+ headers:
119
+ user-agent:
120
+ - Recurly Ruby Client v0.4.10
121
+ accept:
122
+ - application/xml
123
+ response: !ruby/struct:VCR::Response
124
+ status: !ruby/struct:VCR::ResponseStatus
125
+ code: 200
126
+ message: OK
127
+ headers:
128
+ content-type:
129
+ - application/xml; charset=utf-8
130
+ cache-control:
131
+ - no-cache
132
+ x-ua-compatible:
133
+ - IE=Edge
134
+ set-cookie:
135
+ - _recurly_session=2065934139eb11f0dc62cb00e84a61bf; domain=.lvh.me; path=/;
136
+ HttpOnly
137
+ server:
138
+ - thin 1.2.11 codename Bat-Shit Crazy
139
+ body: ! ' '
140
+ http_version: '1.1'
141
+ - !ruby/struct:VCR::HTTPInteraction
142
+ request: !ruby/struct:VCR::Request
143
+ method: :get
144
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/charges/31eec133f99544d8abe92a6d0d7580e4.xml
145
+ body: !!null
146
+ headers:
147
+ user-agent:
148
+ - Recurly Ruby Client v0.4.10
149
+ accept:
150
+ - application/xml
151
+ accept-encoding:
152
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
153
+ response: !ruby/struct:VCR::Response
154
+ status: !ruby/struct:VCR::ResponseStatus
155
+ code: 404
156
+ message: Not Found
157
+ headers:
158
+ content-type:
159
+ - application/xml; charset=utf-8
160
+ cache-control:
161
+ - no-cache
162
+ x-ua-compatible:
163
+ - IE=Edge
164
+ set-cookie:
165
+ - _recurly_session=d2c8fd31d0babf499ab8e1f43ee2351e; domain=.lvh.me; path=/;
166
+ HttpOnly
167
+ server:
168
+ - thin 1.2.11 codename Bat-Shit Crazy
169
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error>Charge
170
+ not found</error>\n</errors>\n"
171
+ http_version: '1.1'
172
+ - !ruby/struct:VCR::HTTPInteraction
173
+ request: !ruby/struct:VCR::Request
174
+ method: :post
175
+ uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/invoices.xml
176
+ body: ! '<?xml version="1.0" encoding="UTF-8"?>
177
+
178
+ <invoice>
179
+
180
+ </invoice>
181
+
182
+ '
183
+ headers:
184
+ user-agent:
185
+ - Recurly Ruby Client v0.4.10
186
+ content-type:
187
+ - application/xml
188
+ response: !ruby/struct:VCR::Response
189
+ status: !ruby/struct:VCR::ResponseStatus
190
+ code: 422
191
+ message: !!null
192
+ headers:
193
+ content-type:
194
+ - application/xml; charset=utf-8
195
+ cache-control:
196
+ - no-cache
197
+ x-ua-compatible:
198
+ - IE=Edge
199
+ set-cookie:
200
+ - _recurly_session=8696be3713cf6938045f7c97714aad52; domain=.lvh.me; path=/;
201
+ HttpOnly
202
+ server:
203
+ - thin 1.2.11 codename Bat-Shit Crazy
204
+ body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error>No charges
205
+ to invoice.</error>\n</errors>\n"
206
+ http_version: '1.1'
@@ -0,0 +1,198 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
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:
14
+ - application/xml
15
+ response: !ruby/struct:VCR::Response
16
+ status: !ruby/struct:VCR::ResponseStatus
17
+ code: 201
18
+ message: Created
19
+ headers:
20
+ location:
21
+ - http://app.lvh.me:3000/accounts/charge-list-all-1313708721
22
+ content-type:
23
+ - application/xml; charset=utf-8
24
+ cache-control:
25
+ - no-cache
26
+ x-ua-compatible:
27
+ - IE=Edge
28
+ set-cookie:
29
+ - _recurly_session=2204fa761752691803b5137abd9ac71f; domain=.lvh.me; path=/;
30
+ HttpOnly
31
+ server:
32
+ - 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
42
+ 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:
50
+ - application/xml
51
+ response: !ruby/struct:VCR::Response
52
+ status: !ruby/struct:VCR::ResponseStatus
53
+ code: 201
54
+ message: Created
55
+ headers:
56
+ content-type:
57
+ - application/xml; charset=utf-8
58
+ cache-control:
59
+ - no-cache
60
+ x-ua-compatible:
61
+ - IE=Edge
62
+ set-cookie:
63
+ - _recurly_session=815874a2c22d6b9090fde86923d33033; domain=.lvh.me; path=/;
64
+ HttpOnly
65
+ server:
66
+ - 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
77
+ 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:
85
+ - application/xml
86
+ response: !ruby/struct:VCR::Response
87
+ status: !ruby/struct:VCR::ResponseStatus
88
+ code: 201
89
+ message: Created
90
+ headers:
91
+ content-type:
92
+ - application/xml; charset=utf-8
93
+ cache-control:
94
+ - no-cache
95
+ x-ua-compatible:
96
+ - IE=Edge
97
+ set-cookie:
98
+ - _recurly_session=66ed10fa8f7dd3892add75815d8f9eb9; domain=.lvh.me; path=/;
99
+ HttpOnly
100
+ server:
101
+ - 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
112
+ 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:
120
+ - application/xml
121
+ response: !ruby/struct:VCR::Response
122
+ status: !ruby/struct:VCR::ResponseStatus
123
+ code: 201
124
+ message: Created
125
+ headers:
126
+ content-type:
127
+ - application/xml; charset=utf-8
128
+ cache-control:
129
+ - no-cache
130
+ x-ua-compatible:
131
+ - IE=Edge
132
+ set-cookie:
133
+ - _recurly_session=4c45f0c47ca3fb4e09ee7652a9aa76eb; domain=.lvh.me; path=/;
134
+ HttpOnly
135
+ server:
136
+ - 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
147
+ 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:
154
+ - application/xml
155
+ accept-encoding:
156
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
157
+ response: !ruby/struct:VCR::Response
158
+ status: !ruby/struct:VCR::ResponseStatus
159
+ code: 200
160
+ message: OK
161
+ headers:
162
+ content-type:
163
+ - application/xml; charset=utf-8
164
+ etag:
165
+ - ! '"22d50339c6522006a1e56f7b8cd22bbb"'
166
+ cache-control:
167
+ - max-age=0, private, must-revalidate
168
+ x-ua-compatible:
169
+ - IE=Edge
170
+ set-cookie:
171
+ - _recurly_session=3daa690675fcff306ca327f5ccfafae1; domain=.lvh.me; path=/;
172
+ HttpOnly
173
+ server:
174
+ - 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'
@@ -0,0 +1,294 @@
1
+ ---
2
+ - !ruby/struct:VCR::HTTPInteraction
3
+ request: !ruby/struct:VCR::Request
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:
14
+ - application/xml
15
+ response: !ruby/struct:VCR::Response
16
+ status: !ruby/struct:VCR::ResponseStatus
17
+ code: 201
18
+ message: Created
19
+ headers:
20
+ location:
21
+ - http://app.lvh.me:3000/accounts/charge-list-invoiced-1313708721
22
+ content-type:
23
+ - application/xml; charset=utf-8
24
+ cache-control:
25
+ - no-cache
26
+ x-ua-compatible:
27
+ - IE=Edge
28
+ set-cookie:
29
+ - _recurly_session=e5848572fcabe7e79ef2e8bce7281c97; domain=.lvh.me; path=/;
30
+ HttpOnly
31
+ server:
32
+ - 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
42
+ 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:
50
+ - application/xml
51
+ response: !ruby/struct:VCR::Response
52
+ status: !ruby/struct:VCR::ResponseStatus
53
+ code: 201
54
+ message: Created
55
+ headers:
56
+ content-type:
57
+ - application/xml; charset=utf-8
58
+ cache-control:
59
+ - no-cache
60
+ x-ua-compatible:
61
+ - IE=Edge
62
+ set-cookie:
63
+ - _recurly_session=b6f77e0020c1631521c189589f5f93eb; domain=.lvh.me; path=/;
64
+ HttpOnly
65
+ server:
66
+ - 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
77
+ 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:
85
+ - application/xml
86
+ response: !ruby/struct:VCR::Response
87
+ status: !ruby/struct:VCR::ResponseStatus
88
+ code: 201
89
+ message: Created
90
+ headers:
91
+ content-type:
92
+ - application/xml; charset=utf-8
93
+ cache-control:
94
+ - no-cache
95
+ x-ua-compatible:
96
+ - IE=Edge
97
+ set-cookie:
98
+ - _recurly_session=ced5a78d0709d20dde516eabf78d8189; domain=.lvh.me; path=/;
99
+ HttpOnly
100
+ server:
101
+ - 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
112
+ 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:
120
+ - application/xml
121
+ response: !ruby/struct:VCR::Response
122
+ status: !ruby/struct:VCR::ResponseStatus
123
+ code: 201
124
+ message: Created
125
+ headers:
126
+ content-type:
127
+ - application/xml; charset=utf-8
128
+ cache-control:
129
+ - no-cache
130
+ x-ua-compatible:
131
+ - IE=Edge
132
+ set-cookie:
133
+ - _recurly_session=f86a6ca85aed9ef15b7a9f8ca8cfdc84; domain=.lvh.me; path=/;
134
+ HttpOnly
135
+ server:
136
+ - 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"?>
150
+
151
+ <invoice>
152
+
153
+ </invoice>
154
+
155
+ '
156
+ headers:
157
+ user-agent:
158
+ - Recurly Ruby Client v0.4.10
159
+ content-type:
160
+ - application/xml
161
+ response: !ruby/struct:VCR::Response
162
+ status: !ruby/struct:VCR::ResponseStatus
163
+ code: 201
164
+ message: Created
165
+ headers:
166
+ location:
167
+ - http://app.lvh.me:3000/invoices/7ff51cdd3c144784979614ccf9bff376
168
+ content-type:
169
+ - application/xml; charset=utf-8
170
+ cache-control:
171
+ - no-cache
172
+ x-ua-compatible:
173
+ - IE=Edge
174
+ set-cookie:
175
+ - _recurly_session=d16504353994c65a72a18549e2e5e036; domain=.lvh.me; path=/;
176
+ HttpOnly
177
+ server:
178
+ - 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
208
+ 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:
216
+ - application/xml
217
+ response: !ruby/struct:VCR::Response
218
+ status: !ruby/struct:VCR::ResponseStatus
219
+ code: 201
220
+ message: Created
221
+ headers:
222
+ content-type:
223
+ - application/xml; charset=utf-8
224
+ cache-control:
225
+ - no-cache
226
+ x-ua-compatible:
227
+ - IE=Edge
228
+ set-cookie:
229
+ - _recurly_session=f27859736123134fc048e5d20c56ab5c; domain=.lvh.me; path=/;
230
+ HttpOnly
231
+ server:
232
+ - 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
243
+ 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:
250
+ - application/xml
251
+ accept-encoding:
252
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
253
+ response: !ruby/struct:VCR::Response
254
+ status: !ruby/struct:VCR::ResponseStatus
255
+ code: 200
256
+ message: OK
257
+ headers:
258
+ content-type:
259
+ - application/xml; charset=utf-8
260
+ etag:
261
+ - ! '"367fa4efd245c490b0b6751ad3228fea"'
262
+ cache-control:
263
+ - max-age=0, private, must-revalidate
264
+ x-ua-compatible:
265
+ - IE=Edge
266
+ set-cookie:
267
+ - _recurly_session=9aa35c612a9b437c18be476872970555; domain=.lvh.me; path=/;
268
+ HttpOnly
269
+ server:
270
+ - 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'