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,290 +1,405 @@
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>invoice-list-1296674173</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>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:
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/invoice-list-1296674173
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/invoice-list-1296674173
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=258d37c771ccf7a4c82a9f1cae16a8f6; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=8fb2730b2b97ad04ebdfce6c831360b9; 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>invoice-list-1296674173</id>\n
34
- \ <account_code>invoice-list-1296674173</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>0cf1bf5ab39f49258a47f02c25b469f8</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:53Z</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>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
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/invoice-list-1296674173/billing_info.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
45
- \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
46
- Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
47
- \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
48
- \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
49
- \ </credit-card>\n <account-code>invoice-list-1296674173</account-code>\n</billing-info>\n"
50
- headers:
51
- user-agent:
52
- - Recurly Ruby Client v0.4.10
53
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/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:
54
88
  - application/xml
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
89
+ response: !ruby/struct:VCR::Response
90
+ status: !ruby/struct:VCR::ResponseStatus
57
91
  code: 200
58
92
  message: OK
59
- headers:
60
- content-type:
93
+ headers:
94
+ content-type:
61
95
  - application/xml; charset=utf-8
62
- etag:
63
- - ! '"e690cbeee8af274a055bb3e93e33162d"'
64
- cache-control:
96
+ etag:
97
+ - "\"18e53f4d1d30c8f1e229a56e4374730f\""
98
+ cache-control:
65
99
  - max-age=0, private, must-revalidate
66
- x-ua-compatible:
100
+ x-ua-compatible:
67
101
  - IE=Edge
68
- set-cookie:
69
- - _recurly_session=b5c8ff2b407976fd8ee09d5d2c7d5983; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
102
+ set-cookie:
103
+ - _recurly_session=be73f71fa93c49b48d752843b1cc0e39; domain=.lvh.me; path=/; HttpOnly
104
+ server:
72
105
  - thin 1.2.11 codename Bat-Shit Crazy
73
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>invoice-list-1296674173</account_code>\n
74
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
75
- Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
76
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
77
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
78
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
79
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:01:57Z</updated_at>\n</billing_info>\n"
80
- http_version: '1.1'
81
- - !ruby/struct:VCR::HTTPInteraction
82
- request: !ruby/struct:VCR::Request
106
+ body: |
107
+ <?xml version="1.0" encoding="UTF-8"?>
108
+ <billing_info>
109
+ <account_code>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
83
133
  method: :post
84
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/invoice-list-1296674173/charges.xml
85
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">1.0</amount>\n
86
- \ <description>charge description</description>\n</charge>\n"
87
- headers:
88
- user-agent:
89
- - Recurly Ruby Client v0.4.10
90
- content-type:
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:
91
146
  - application/xml
92
- response: !ruby/struct:VCR::Response
93
- status: !ruby/struct:VCR::ResponseStatus
147
+ response: !ruby/struct:VCR::Response
148
+ status: !ruby/struct:VCR::ResponseStatus
94
149
  code: 201
95
150
  message: Created
96
- headers:
97
- content-type:
151
+ headers:
152
+ content-type:
98
153
  - application/xml; charset=utf-8
99
- cache-control:
154
+ cache-control:
100
155
  - no-cache
101
- x-ua-compatible:
156
+ x-ua-compatible:
102
157
  - IE=Edge
103
- set-cookie:
104
- - _recurly_session=b43adc15bb33d6b4262ff4596a97d7b6; domain=.lvh.me; path=/;
105
- HttpOnly
106
- server:
158
+ set-cookie:
159
+ - _recurly_session=fd423c5a1dc53ab8f952f08bbf498b86; domain=.lvh.me; path=/; HttpOnly
160
+ server:
107
161
  - thin 1.2.11 codename Bat-Shit Crazy
108
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
109
- \ <id>5034165e650547cb8e36c2edcd63a870</id>\n <account_code>invoice-list-1296674173</account_code>\n
110
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">100</unit_amount_in_cents>\n
111
- \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
112
- \ <start_date type=\"datetime\">2011-08-19T20:01:57Z</start_date>\n <end_date
113
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
114
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:57Z</created_at>\n</charge>\n"
115
- http_version: '1.1'
116
- - !ruby/struct:VCR::HTTPInteraction
117
- request: !ruby/struct:VCR::Request
118
- method: :post
119
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/invoice-list-1296674173/invoices.xml
120
- body: ! '<?xml version="1.0" encoding="UTF-8"?>
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>
121
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"?>
122
185
  <invoice>
123
-
124
186
  </invoice>
125
187
 
126
- '
127
- headers:
128
- user-agent:
129
- - Recurly Ruby Client v0.4.10
130
- content-type:
188
+ headers:
189
+ user-agent:
190
+ - Recurly Ruby Client v0.4.13
191
+ content-type:
131
192
  - application/xml
132
- response: !ruby/struct:VCR::Response
133
- status: !ruby/struct:VCR::ResponseStatus
193
+ response: !ruby/struct:VCR::Response
194
+ status: !ruby/struct:VCR::ResponseStatus
134
195
  code: 201
135
196
  message: Created
136
- headers:
137
- location:
138
- - http://app.lvh.me:3000/invoices/adf54a9b0e7b4823903e1233fd2609af
139
- content-type:
197
+ headers:
198
+ location:
199
+ - http://api.lvh.me:3000/invoices/1dd64429d31e4f629984561fd54f0fa0
200
+ content-type:
140
201
  - application/xml; charset=utf-8
141
- cache-control:
202
+ cache-control:
142
203
  - no-cache
143
- x-ua-compatible:
204
+ x-ua-compatible:
144
205
  - IE=Edge
145
- set-cookie:
146
- - _recurly_session=746bf442773eb998ef20f0ed1f647868; domain=.lvh.me; path=/;
147
- HttpOnly
148
- server:
206
+ set-cookie:
207
+ - _recurly_session=16f246ebaf1a16b82e174437a1e15714; domain=.lvh.me; path=/; HttpOnly
208
+ server:
149
209
  - thin 1.2.11 codename Bat-Shit Crazy
150
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<invoice>\n <id>adf54a9b0e7b4823903e1233fd2609af</id>\n
151
- \ <account_code>invoice-list-1296674173</account_code>\n <date type=\"datetime\">2011-08-19T20:01:57Z</date>\n
152
- \ <invoice_number type=\"integer\">1506</invoice_number>\n <vat_number></vat_number>\n
153
- \ <status>open</status>\n <subtotal_in_cents type=\"integer\">100</subtotal_in_cents>\n
154
- \ <total_in_cents type=\"integer\">100</total_in_cents>\n <vat_amount_in_cents
155
- type=\"integer\">0</vat_amount_in_cents>\n <paid_in_cents type=\"integer\">0</paid_in_cents>\n
156
- \ <total_due_in_cents type=\"integer\">100</total_due_in_cents>\n <discount_in_cents
157
- type=\"integer\">0</discount_in_cents>\n <currency>USD</currency>\n <line_items
158
- type=\"array\">\n <line_item>\n <id>5034165e650547cb8e36c2edcd63a870</id>\n
159
- \ <type>charge</type>\n <amount_in_cents type=\"integer\">100</amount_in_cents>\n
160
- \ <currency>USD</currency>\n <start_date type=\"datetime\">2011-08-19T20:01:57Z</start_date>\n
161
- \ <end_date nil=\"true\" type=\"datetime\"></end_date>\n <description>charge
162
- description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:57Z</created_at>\n
163
- \ <applied_coupon_code></applied_coupon_code>\n </line_item>\n </line_items>\n
164
- \ <payments type=\"array\">\n </payments>\n</invoice>\n"
165
- http_version: '1.1'
166
- - !ruby/struct:VCR::HTTPInteraction
167
- request: !ruby/struct:VCR::Request
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
168
246
  method: :post
169
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/invoice-list-1296674173/charges.xml
170
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">3.0</amount>\n
171
- \ <description>charge description</description>\n</charge>\n"
172
- headers:
173
- user-agent:
174
- - Recurly Ruby Client v0.4.10
175
- content-type:
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:
176
259
  - application/xml
177
- response: !ruby/struct:VCR::Response
178
- status: !ruby/struct:VCR::ResponseStatus
260
+ response: !ruby/struct:VCR::Response
261
+ status: !ruby/struct:VCR::ResponseStatus
179
262
  code: 201
180
263
  message: Created
181
- headers:
182
- content-type:
264
+ headers:
265
+ content-type:
183
266
  - application/xml; charset=utf-8
184
- cache-control:
267
+ cache-control:
185
268
  - no-cache
186
- x-ua-compatible:
269
+ x-ua-compatible:
187
270
  - IE=Edge
188
- set-cookie:
189
- - _recurly_session=b6e67ee5b80795e4395996b904cf7aae; domain=.lvh.me; path=/;
190
- HttpOnly
191
- server:
271
+ set-cookie:
272
+ - _recurly_session=cd2b03c40d75e1cb1de397b855beb76c; domain=.lvh.me; path=/; HttpOnly
273
+ server:
192
274
  - thin 1.2.11 codename Bat-Shit Crazy
193
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
194
- \ <id>bbd80c02b9884f2c863d881b2660aee9</id>\n <account_code>invoice-list-1296674173</account_code>\n
195
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">300</unit_amount_in_cents>\n
196
- \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
197
- \ <start_date type=\"datetime\">2011-08-19T20:01:57Z</start_date>\n <end_date
198
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
199
- \ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:57Z</created_at>\n</charge>\n"
200
- http_version: '1.1'
201
- - !ruby/struct:VCR::HTTPInteraction
202
- request: !ruby/struct:VCR::Request
203
- method: :post
204
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/invoice-list-1296674173/invoices.xml
205
- body: ! '<?xml version="1.0" encoding="UTF-8"?>
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>
206
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"?>
207
298
  <invoice>
208
-
209
299
  </invoice>
210
300
 
211
- '
212
- headers:
213
- user-agent:
214
- - Recurly Ruby Client v0.4.10
215
- content-type:
301
+ headers:
302
+ user-agent:
303
+ - Recurly Ruby Client v0.4.13
304
+ content-type:
216
305
  - application/xml
217
- response: !ruby/struct:VCR::Response
218
- status: !ruby/struct:VCR::ResponseStatus
306
+ response: !ruby/struct:VCR::Response
307
+ status: !ruby/struct:VCR::ResponseStatus
219
308
  code: 201
220
309
  message: Created
221
- headers:
222
- location:
223
- - http://app.lvh.me:3000/invoices/f33c1576729f43619d23ebd052fe6306
224
- content-type:
310
+ headers:
311
+ location:
312
+ - http://api.lvh.me:3000/invoices/6617f57ac17d45fb86c4ad497ccabdb2
313
+ content-type:
225
314
  - application/xml; charset=utf-8
226
- cache-control:
315
+ cache-control:
227
316
  - no-cache
228
- x-ua-compatible:
317
+ x-ua-compatible:
229
318
  - IE=Edge
230
- set-cookie:
231
- - _recurly_session=0adb89e96346824e759bc86601d602dd; domain=.lvh.me; path=/;
232
- HttpOnly
233
- server:
319
+ set-cookie:
320
+ - _recurly_session=33a1aef48d06076ecc0dcbdafb11cac6; domain=.lvh.me; path=/; HttpOnly
321
+ server:
234
322
  - thin 1.2.11 codename Bat-Shit Crazy
235
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<invoice>\n <id>f33c1576729f43619d23ebd052fe6306</id>\n
236
- \ <account_code>invoice-list-1296674173</account_code>\n <date type=\"datetime\">2011-08-19T20:01:57Z</date>\n
237
- \ <invoice_number type=\"integer\">1507</invoice_number>\n <vat_number></vat_number>\n
238
- \ <status>open</status>\n <subtotal_in_cents type=\"integer\">300</subtotal_in_cents>\n
239
- \ <total_in_cents type=\"integer\">300</total_in_cents>\n <vat_amount_in_cents
240
- type=\"integer\">0</vat_amount_in_cents>\n <paid_in_cents type=\"integer\">0</paid_in_cents>\n
241
- \ <total_due_in_cents type=\"integer\">300</total_due_in_cents>\n <discount_in_cents
242
- type=\"integer\">0</discount_in_cents>\n <currency>USD</currency>\n <line_items
243
- type=\"array\">\n <line_item>\n <id>bbd80c02b9884f2c863d881b2660aee9</id>\n
244
- \ <type>charge</type>\n <amount_in_cents type=\"integer\">300</amount_in_cents>\n
245
- \ <currency>USD</currency>\n <start_date type=\"datetime\">2011-08-19T20:01:57Z</start_date>\n
246
- \ <end_date nil=\"true\" type=\"datetime\"></end_date>\n <description>charge
247
- description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:57Z</created_at>\n
248
- \ <applied_coupon_code></applied_coupon_code>\n </line_item>\n </line_items>\n
249
- \ <payments type=\"array\">\n </payments>\n</invoice>\n"
250
- http_version: '1.1'
251
- - !ruby/struct:VCR::HTTPInteraction
252
- request: !ruby/struct:VCR::Request
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
253
359
  method: :get
254
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/invoice-list-1296674173/invoices.xml
255
- body: !!null
256
- headers:
257
- user-agent:
258
- - Recurly Ruby Client v0.4.10
259
- accept:
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:
260
366
  - application/xml
261
- accept-encoding:
367
+ accept-encoding:
262
368
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
263
- response: !ruby/struct:VCR::Response
264
- status: !ruby/struct:VCR::ResponseStatus
369
+ response: !ruby/struct:VCR::Response
370
+ status: !ruby/struct:VCR::ResponseStatus
265
371
  code: 200
266
372
  message: OK
267
- headers:
268
- content-type:
373
+ headers:
374
+ content-type:
269
375
  - application/xml; charset=utf-8
270
- etag:
271
- - ! '"bf3ae3232384cc8f612d9be517ddc18a"'
272
- cache-control:
376
+ etag:
377
+ - "\"7da2affdf71174f1e2d89ae5572fc1fe\""
378
+ cache-control:
273
379
  - max-age=0, private, must-revalidate
274
- x-ua-compatible:
380
+ x-ua-compatible:
275
381
  - IE=Edge
276
- set-cookie:
277
- - _recurly_session=1dd333a7b8e301ecaacdefafb7070b66; domain=.lvh.me; path=/;
278
- HttpOnly
279
- server:
382
+ server:
280
383
  - thin 1.2.11 codename Bat-Shit Crazy
281
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<invoices type=\"array\">\n
282
- \ <invoice>\n <id>f33c1576729f43619d23ebd052fe6306</id>\n <account_code>invoice-list-1296674173</account_code>\n
283
- \ <date type=\"datetime\">2011-08-19T20:01:57Z</date>\n <invoice_number
284
- type=\"integer\">1507</invoice_number>\n <subtotal_in_cents type=\"integer\">300</subtotal_in_cents>\n
285
- \ <total_in_cents type=\"integer\">300</total_in_cents>\n </invoice>\n <invoice>\n
286
- \ <id>adf54a9b0e7b4823903e1233fd2609af</id>\n <account_code>invoice-list-1296674173</account_code>\n
287
- \ <date type=\"datetime\">2011-08-19T20:01:57Z</date>\n <invoice_number
288
- type=\"integer\">1506</invoice_number>\n <subtotal_in_cents type=\"integer\">100</subtotal_in_cents>\n
289
- \ <total_in_cents type=\"integer\">100</total_in_cents>\n </invoice>\n</invoices>\n"
290
- http_version: '1.1'
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"