recurly 0.4.15 → 0.4.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/lib/patches/rails2/active_resource/base.rb +35 -0
- data/lib/patches/rails3/active_model/serializers/xml.rb +28 -0
- data/lib/recurly.rb +14 -4
- data/lib/recurly/account.rb +6 -3
- data/lib/recurly/base.rb +1 -2
- data/lib/recurly/subscription.rb +7 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/subscription_spec.rb +2 -1
- metadata +108 -220
- data/spec/vcr/account/accept-language-account/1313708721.yml +0 -60
- data/spec/vcr/account/close/1313708721.yml +0 -132
- data/spec/vcr/account/create-blank/1313708721.yml +0 -44
- data/spec/vcr/account/create-duplicate/1313708721.yml +0 -98
- data/spec/vcr/account/create-min/1313708721.yml +0 -56
- data/spec/vcr/account/create/1313708721.yml +0 -60
- data/spec/vcr/account/find/1313708721.yml +0 -137
- data/spec/vcr/account/list/1313708721.yml +0 -1307
- data/spec/vcr/account/update/1313708721.yml +0 -216
- data/spec/vcr/billing/create/1313708721.yml +0 -181
- data/spec/vcr/billing/destroy/1313708721.yml +0 -240
- data/spec/vcr/billing/errors/1313708721.yml +0 -106
- data/spec/vcr/billing/find/1313708721.yml +0 -234
- data/spec/vcr/billing/update/1313708721.yml +0 -251
- data/spec/vcr/charge/create/1313708721.yml +0 -222
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +0 -247
- data/spec/vcr/charge/list-all/1313708721.yml +0 -276
- data/spec/vcr/charge/list-invoiced/1313708721.yml +0 -411
- data/spec/vcr/charge/list-pending/1313708721.yml +0 -276
- data/spec/vcr/charge/lookup/1313708721.yml +0 -152
- data/spec/vcr/coupon/create/1296774903.yml +0 -97
- data/spec/vcr/coupon/destroy/1296774903.yml +0 -97
- data/spec/vcr/credit/create/1313708090.yml +0 -152
- data/spec/vcr/credit/delete/1313708090.yml +0 -211
- data/spec/vcr/credit/list/1313708090.yml +0 -276
- data/spec/vcr/credit/lookup/1313708090.yml +0 -152
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +0 -166
- data/spec/vcr/invoice/create/1296674173.yml +0 -302
- data/spec/vcr/invoice/list/1296674173.yml +0 -405
- data/spec/vcr/invoice/lookup/1296674173.yml +0 -304
- data/spec/vcr/plan/all.yml +0 -233
- data/spec/vcr/plan/find.yml +0 -136
- data/spec/vcr/plan/update.yml +0 -152
- data/spec/vcr/subscription/addons/add/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/create/1296674173.yml +0 -177
- data/spec/vcr/subscription/addons/remove/1296674173.yml +0 -177
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +0 -400
- data/spec/vcr/subscription/cancel/1296674173.yml +0 -348
- data/spec/vcr/subscription/change1/1296674173.yml +0 -354
- data/spec/vcr/subscription/change2/1296674173.yml +0 -354
- data/spec/vcr/subscription/create/1296674173.yml +0 -192
- data/spec/vcr/subscription/find/1296674173.yml +0 -244
- data/spec/vcr/subscription/reactivate/1296674173.yml +0 -377
- data/spec/vcr/subscription/refund-full/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-none/1296674173.yml +0 -328
- data/spec/vcr/subscription/refund-partial/1296674173.yml +0 -328
- data/spec/vcr/transaction/all/1311126815.yml +0 -397
- data/spec/vcr/transaction/create-no-account/1311126815.yml +0 -82
- data/spec/vcr/transaction/create-with-account/1311126815.yml +0 -196
- data/spec/vcr/transaction/list-filled/1311126815.yml +0 -544
- data/spec/vcr/transaction/list-initial/1311126815.yml +0 -184
- data/spec/vcr/transaction/lookup/1311126815.yml +0 -487
- data/spec/vcr/transaction/void/1311126815.yml +0 -321
- data/spec/vcr/transparent/post-url/1317063400.yml +0 -105
- data/spec/vcr/transparent/post-url/1317063474.yml +0 -105
@@ -1,276 +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>credit-list-1313708090</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/credit-list-1313708090
|
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=39ec21c4ebab7cfe217d6ad89d8ca398; 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>credit-list-1313708090</id>
|
47
|
-
<account_code>credit-list-1313708090</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>1f1ad94e986e40c7be918c8b0df8aa3c</hosted_login_token>
|
56
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</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: :post
|
64
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/credit-list-1313708090/credits.xml
|
65
|
-
body: |
|
66
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
67
|
-
<credit>
|
68
|
-
<amount-in-cents type="integer">100</amount-in-cents>
|
69
|
-
<description>one</description>
|
70
|
-
</credit>
|
71
|
-
|
72
|
-
headers:
|
73
|
-
user-agent:
|
74
|
-
- Recurly Ruby Client v0.4.13
|
75
|
-
content-type:
|
76
|
-
- application/xml
|
77
|
-
response: !ruby/struct:VCR::Response
|
78
|
-
status: !ruby/struct:VCR::ResponseStatus
|
79
|
-
code: 201
|
80
|
-
message: Created
|
81
|
-
headers:
|
82
|
-
content-type:
|
83
|
-
- application/xml; charset=utf-8
|
84
|
-
cache-control:
|
85
|
-
- no-cache
|
86
|
-
x-ua-compatible:
|
87
|
-
- IE=Edge
|
88
|
-
set-cookie:
|
89
|
-
- _recurly_session=74d0affabe94074fa1b417842fa52db7; domain=.lvh.me; path=/; HttpOnly
|
90
|
-
server:
|
91
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
92
|
-
body: |
|
93
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
94
|
-
<credit type="credit">
|
95
|
-
<id>95ff2af7afd2483c97e3e1108d067c9c</id>
|
96
|
-
<account_code>credit-list-1313708090</account_code>
|
97
|
-
<quantity type="integer">1</quantity>
|
98
|
-
<unit_amount_in_cents type="integer">-100</unit_amount_in_cents>
|
99
|
-
<amount_in_cents type="integer">-100</amount_in_cents>
|
100
|
-
<currency>USD</currency>
|
101
|
-
<start_date type="datetime">2011-09-22T22:01:47Z</start_date>
|
102
|
-
<end_date nil="true" type="datetime"></end_date>
|
103
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
104
|
-
<description>one</description>
|
105
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</created_at>
|
106
|
-
</credit>
|
107
|
-
|
108
|
-
http_version: "1.1"
|
109
|
-
- !ruby/struct:VCR::HTTPInteraction
|
110
|
-
request: !ruby/struct:VCR::Request
|
111
|
-
method: :post
|
112
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/credit-list-1313708090/credits.xml
|
113
|
-
body: |
|
114
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
115
|
-
<credit>
|
116
|
-
<amount-in-cents type="integer">200</amount-in-cents>
|
117
|
-
<description>two</description>
|
118
|
-
</credit>
|
119
|
-
|
120
|
-
headers:
|
121
|
-
user-agent:
|
122
|
-
- Recurly Ruby Client v0.4.13
|
123
|
-
content-type:
|
124
|
-
- application/xml
|
125
|
-
response: !ruby/struct:VCR::Response
|
126
|
-
status: !ruby/struct:VCR::ResponseStatus
|
127
|
-
code: 201
|
128
|
-
message: Created
|
129
|
-
headers:
|
130
|
-
content-type:
|
131
|
-
- application/xml; charset=utf-8
|
132
|
-
cache-control:
|
133
|
-
- no-cache
|
134
|
-
x-ua-compatible:
|
135
|
-
- IE=Edge
|
136
|
-
set-cookie:
|
137
|
-
- _recurly_session=454ddd4b98d61f31b09757ba970cb35b; domain=.lvh.me; path=/; HttpOnly
|
138
|
-
server:
|
139
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
140
|
-
body: |
|
141
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
142
|
-
<credit type="credit">
|
143
|
-
<id>21dd23cba98a482fb6bb352199aa60db</id>
|
144
|
-
<account_code>credit-list-1313708090</account_code>
|
145
|
-
<quantity type="integer">1</quantity>
|
146
|
-
<unit_amount_in_cents type="integer">-200</unit_amount_in_cents>
|
147
|
-
<amount_in_cents type="integer">-200</amount_in_cents>
|
148
|
-
<currency>USD</currency>
|
149
|
-
<start_date type="datetime">2011-09-22T22:01:47Z</start_date>
|
150
|
-
<end_date nil="true" type="datetime"></end_date>
|
151
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
152
|
-
<description>two</description>
|
153
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</created_at>
|
154
|
-
</credit>
|
155
|
-
|
156
|
-
http_version: "1.1"
|
157
|
-
- !ruby/struct:VCR::HTTPInteraction
|
158
|
-
request: !ruby/struct:VCR::Request
|
159
|
-
method: :post
|
160
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/credit-list-1313708090/credits.xml
|
161
|
-
body: |
|
162
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
163
|
-
<credit>
|
164
|
-
<amount-in-cents type="integer">300</amount-in-cents>
|
165
|
-
<description>three</description>
|
166
|
-
</credit>
|
167
|
-
|
168
|
-
headers:
|
169
|
-
user-agent:
|
170
|
-
- Recurly Ruby Client v0.4.13
|
171
|
-
content-type:
|
172
|
-
- application/xml
|
173
|
-
response: !ruby/struct:VCR::Response
|
174
|
-
status: !ruby/struct:VCR::ResponseStatus
|
175
|
-
code: 201
|
176
|
-
message: Created
|
177
|
-
headers:
|
178
|
-
content-type:
|
179
|
-
- application/xml; charset=utf-8
|
180
|
-
cache-control:
|
181
|
-
- no-cache
|
182
|
-
x-ua-compatible:
|
183
|
-
- IE=Edge
|
184
|
-
set-cookie:
|
185
|
-
- _recurly_session=12b8e65d08b98514359d11454368ec54; domain=.lvh.me; path=/; HttpOnly
|
186
|
-
server:
|
187
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
188
|
-
body: |
|
189
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
190
|
-
<credit type="credit">
|
191
|
-
<id>40308b4027c54cd994c36c718f6bfa54</id>
|
192
|
-
<account_code>credit-list-1313708090</account_code>
|
193
|
-
<quantity type="integer">1</quantity>
|
194
|
-
<unit_amount_in_cents type="integer">-300</unit_amount_in_cents>
|
195
|
-
<amount_in_cents type="integer">-300</amount_in_cents>
|
196
|
-
<currency>USD</currency>
|
197
|
-
<start_date type="datetime">2011-09-22T22:01:47Z</start_date>
|
198
|
-
<end_date nil="true" type="datetime"></end_date>
|
199
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
200
|
-
<description>three</description>
|
201
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</created_at>
|
202
|
-
</credit>
|
203
|
-
|
204
|
-
http_version: "1.1"
|
205
|
-
- !ruby/struct:VCR::HTTPInteraction
|
206
|
-
request: !ruby/struct:VCR::Request
|
207
|
-
method: :get
|
208
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/credit-list-1313708090/credits.xml
|
209
|
-
body:
|
210
|
-
headers:
|
211
|
-
user-agent:
|
212
|
-
- Recurly Ruby Client v0.4.13
|
213
|
-
accept:
|
214
|
-
- application/xml
|
215
|
-
accept-encoding:
|
216
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
217
|
-
response: !ruby/struct:VCR::Response
|
218
|
-
status: !ruby/struct:VCR::ResponseStatus
|
219
|
-
code: 200
|
220
|
-
message: OK
|
221
|
-
headers:
|
222
|
-
content-type:
|
223
|
-
- application/xml; charset=utf-8
|
224
|
-
etag:
|
225
|
-
- "\"090f0ebf081471c2df82186a16bfd952\""
|
226
|
-
cache-control:
|
227
|
-
- max-age=0, private, must-revalidate
|
228
|
-
x-ua-compatible:
|
229
|
-
- IE=Edge
|
230
|
-
server:
|
231
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
232
|
-
body: |
|
233
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
234
|
-
<credits type="array">
|
235
|
-
<credit type="credit">
|
236
|
-
<id>40308b4027c54cd994c36c718f6bfa54</id>
|
237
|
-
<account_code>credit-list-1313708090</account_code>
|
238
|
-
<quantity type="integer">1</quantity>
|
239
|
-
<unit_amount_in_cents type="integer">-300</unit_amount_in_cents>
|
240
|
-
<amount_in_cents type="integer">-300</amount_in_cents>
|
241
|
-
<currency>USD</currency>
|
242
|
-
<start_date type="datetime">2011-09-22T22:01:47Z</start_date>
|
243
|
-
<end_date nil="true" type="datetime"></end_date>
|
244
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
245
|
-
<description>three</description>
|
246
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</created_at>
|
247
|
-
</credit>
|
248
|
-
<credit type="credit">
|
249
|
-
<id>21dd23cba98a482fb6bb352199aa60db</id>
|
250
|
-
<account_code>credit-list-1313708090</account_code>
|
251
|
-
<quantity type="integer">1</quantity>
|
252
|
-
<unit_amount_in_cents type="integer">-200</unit_amount_in_cents>
|
253
|
-
<amount_in_cents type="integer">-200</amount_in_cents>
|
254
|
-
<currency>USD</currency>
|
255
|
-
<start_date type="datetime">2011-09-22T22:01:47Z</start_date>
|
256
|
-
<end_date nil="true" type="datetime"></end_date>
|
257
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
258
|
-
<description>two</description>
|
259
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</created_at>
|
260
|
-
</credit>
|
261
|
-
<credit type="credit">
|
262
|
-
<id>95ff2af7afd2483c97e3e1108d067c9c</id>
|
263
|
-
<account_code>credit-list-1313708090</account_code>
|
264
|
-
<quantity type="integer">1</quantity>
|
265
|
-
<unit_amount_in_cents type="integer">-100</unit_amount_in_cents>
|
266
|
-
<amount_in_cents type="integer">-100</amount_in_cents>
|
267
|
-
<currency>USD</currency>
|
268
|
-
<start_date type="datetime">2011-09-22T22:01:47Z</start_date>
|
269
|
-
<end_date nil="true" type="datetime"></end_date>
|
270
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
271
|
-
<description>one</description>
|
272
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</created_at>
|
273
|
-
</credit>
|
274
|
-
</credits>
|
275
|
-
|
276
|
-
http_version: "1.1"
|
@@ -1,152 +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>credit-lookup-1313708090</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/credit-lookup-1313708090
|
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=82f0809927ec5e5a0869c19af156e26b; 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>credit-lookup-1313708090</id>
|
47
|
-
<account_code>credit-lookup-1313708090</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>86eacdf2c9114220a2207b54d430d138</hosted_login_token>
|
56
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</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: :post
|
64
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/credit-lookup-1313708090/credits.xml
|
65
|
-
body: |
|
66
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
67
|
-
<credit>
|
68
|
-
<amount-in-cents type="integer">1315</amount-in-cents>
|
69
|
-
<description>free moniez 4 u</description>
|
70
|
-
</credit>
|
71
|
-
|
72
|
-
headers:
|
73
|
-
user-agent:
|
74
|
-
- Recurly Ruby Client v0.4.13
|
75
|
-
content-type:
|
76
|
-
- application/xml
|
77
|
-
response: !ruby/struct:VCR::Response
|
78
|
-
status: !ruby/struct:VCR::ResponseStatus
|
79
|
-
code: 201
|
80
|
-
message: Created
|
81
|
-
headers:
|
82
|
-
content-type:
|
83
|
-
- application/xml; charset=utf-8
|
84
|
-
cache-control:
|
85
|
-
- no-cache
|
86
|
-
x-ua-compatible:
|
87
|
-
- IE=Edge
|
88
|
-
set-cookie:
|
89
|
-
- _recurly_session=6616c5265eaa265ad56525902d8bc22d; domain=.lvh.me; path=/; HttpOnly
|
90
|
-
server:
|
91
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
92
|
-
body: |
|
93
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
94
|
-
<credit type="credit">
|
95
|
-
<id>a0766273ddb04c9eb0f1a482f340d89d</id>
|
96
|
-
<account_code>credit-lookup-1313708090</account_code>
|
97
|
-
<quantity type="integer">1</quantity>
|
98
|
-
<unit_amount_in_cents type="integer">-1315</unit_amount_in_cents>
|
99
|
-
<amount_in_cents type="integer">-1315</amount_in_cents>
|
100
|
-
<currency>USD</currency>
|
101
|
-
<start_date type="datetime">2011-09-22T22:01:47Z</start_date>
|
102
|
-
<end_date nil="true" type="datetime"></end_date>
|
103
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
104
|
-
<description>free moniez 4 u</description>
|
105
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</created_at>
|
106
|
-
</credit>
|
107
|
-
|
108
|
-
http_version: "1.1"
|
109
|
-
- !ruby/struct:VCR::HTTPInteraction
|
110
|
-
request: !ruby/struct:VCR::Request
|
111
|
-
method: :get
|
112
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/credit-lookup-1313708090/credits/a0766273ddb04c9eb0f1a482f340d89d.xml
|
113
|
-
body:
|
114
|
-
headers:
|
115
|
-
user-agent:
|
116
|
-
- Recurly Ruby Client v0.4.13
|
117
|
-
accept:
|
118
|
-
- application/xml
|
119
|
-
accept-encoding:
|
120
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
121
|
-
response: !ruby/struct:VCR::Response
|
122
|
-
status: !ruby/struct:VCR::ResponseStatus
|
123
|
-
code: 200
|
124
|
-
message: OK
|
125
|
-
headers:
|
126
|
-
content-type:
|
127
|
-
- application/xml; charset=utf-8
|
128
|
-
etag:
|
129
|
-
- "\"bcc88bf3fd840aadefe67bcf2a716d95\""
|
130
|
-
cache-control:
|
131
|
-
- max-age=0, private, must-revalidate
|
132
|
-
x-ua-compatible:
|
133
|
-
- IE=Edge
|
134
|
-
server:
|
135
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
136
|
-
body: |
|
137
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
138
|
-
<credit type="credit">
|
139
|
-
<id>a0766273ddb04c9eb0f1a482f340d89d</id>
|
140
|
-
<account_code>credit-lookup-1313708090</account_code>
|
141
|
-
<quantity type="integer">1</quantity>
|
142
|
-
<unit_amount_in_cents type="integer">-1315</unit_amount_in_cents>
|
143
|
-
<amount_in_cents type="integer">-1315</amount_in_cents>
|
144
|
-
<currency>USD</currency>
|
145
|
-
<start_date type="datetime">2011-09-22T22:01:47Z</start_date>
|
146
|
-
<end_date nil="true" type="datetime"></end_date>
|
147
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
148
|
-
<description>free moniez 4 u</description>
|
149
|
-
<created_at type="datetime">2011-09-22T22:01:47Z</created_at>
|
150
|
-
</credit>
|
151
|
-
|
152
|
-
http_version: "1.1"
|
@@ -1,166 +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-no-charges-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-no-charges-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=3e52788e49c24866a42fb8c9de14321d; 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-no-charges-1296674173</id>
|
47
|
-
<account_code>invoice-create-no-charges-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>c5ae31d330d44dcaa88e2f424079d323</hosted_login_token>
|
56
|
-
<created_at type="datetime">2011-09-22T22:01:50Z</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-no-charges-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-no-charges-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
|
-
- "\"e4a8348a105af4d154e97eed272a6eab\""
|
98
|
-
cache-control:
|
99
|
-
- max-age=0, private, must-revalidate
|
100
|
-
x-ua-compatible:
|
101
|
-
- IE=Edge
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=d5f5fdbfb7616e948e32e9936155d457; 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-no-charges-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:51Z</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-no-charges-1296674173/invoices.xml
|
135
|
-
body: |
|
136
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
137
|
-
<invoice>
|
138
|
-
</invoice>
|
139
|
-
|
140
|
-
headers:
|
141
|
-
user-agent:
|
142
|
-
- Recurly Ruby Client v0.4.13
|
143
|
-
content-type:
|
144
|
-
- application/xml
|
145
|
-
response: !ruby/struct:VCR::Response
|
146
|
-
status: !ruby/struct:VCR::ResponseStatus
|
147
|
-
code: 422
|
148
|
-
message:
|
149
|
-
headers:
|
150
|
-
content-type:
|
151
|
-
- application/xml; charset=utf-8
|
152
|
-
cache-control:
|
153
|
-
- no-cache
|
154
|
-
x-ua-compatible:
|
155
|
-
- IE=Edge
|
156
|
-
set-cookie:
|
157
|
-
- _recurly_session=1b8ca0f7bb68f209dd4187fbdd01429c; domain=.lvh.me; path=/; HttpOnly
|
158
|
-
server:
|
159
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
160
|
-
body: |
|
161
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
162
|
-
<errors>
|
163
|
-
<error>No charges to invoice.</error>
|
164
|
-
</errors>
|
165
|
-
|
166
|
-
http_version: "1.1"
|