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.
- data/README.md +4 -8
- data/lib/recurly.rb +10 -19
- data/lib/recurly/config_parser.rb +5 -2
- data/lib/recurly/plan.rb +0 -1
- data/lib/recurly/rails3/recurly.rake +10 -26
- data/lib/recurly/transparent.rb +2 -0
- data/lib/recurly/verification.rb +14 -8
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +3 -3
- data/spec/config/test1.yml +1 -3
- data/spec/config/test2.yml +2 -6
- data/spec/unit/config_spec.rb +9 -16
- data/spec/unit/transparent_spec.rb +0 -20
- data/spec/unit/verification_spec.rb +15 -9
- data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
- data/spec/vcr/account/close/1313708721.yml +107 -79
- data/spec/vcr/account/create-blank/1313708721.yml +37 -26
- data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
- data/spec/vcr/account/create-min/1313708721.yml +48 -30
- data/spec/vcr/account/create/1313708721.yml +52 -31
- data/spec/vcr/account/find/1313708721.yml +111 -81
- data/spec/vcr/account/list/1313708721.yml +1148 -719
- data/spec/vcr/account/update/1313708721.yml +182 -124
- data/spec/vcr/billing/create/1313708721.yml +156 -93
- data/spec/vcr/billing/destroy/1313708721.yml +198 -135
- data/spec/vcr/billing/errors/1313708721.yml +91 -56
- data/spec/vcr/billing/find/1313708721.yml +200 -122
- data/spec/vcr/billing/update/1313708721.yml +218 -126
- data/spec/vcr/charge/create/1313708721.yml +189 -120
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
- data/spec/vcr/charge/list-all/1313708721.yml +235 -157
- data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
- data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
- data/spec/vcr/charge/lookup/1313708721.yml +127 -87
- data/spec/vcr/coupon/create/1296774903.yml +83 -95
- data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
- data/spec/vcr/credit/create/1313708090.yml +127 -87
- data/spec/vcr/credit/delete/1313708090.yml +169 -129
- data/spec/vcr/credit/list/1313708090.yml +235 -157
- data/spec/vcr/credit/lookup/1313708090.yml +127 -87
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
- data/spec/vcr/invoice/create/1296674173.yml +259 -162
- data/spec/vcr/invoice/list/1296674173.yml +342 -227
- data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
- data/spec/vcr/plan/all.yml +206 -198
- data/spec/vcr/plan/find.yml +109 -103
- data/spec/vcr/plan/update.yml +126 -93
- data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
- data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
- data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
- data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
- data/spec/vcr/subscription/change1/1296674173.yml +303 -213
- data/spec/vcr/subscription/change2/1296674173.yml +303 -214
- data/spec/vcr/subscription/create/1296674173.yml +167 -111
- data/spec/vcr/subscription/find/1296674173.yml +210 -145
- data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
- data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
- data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
- data/spec/vcr/transaction/all/1311126815.yml +388 -206
- data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
- data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
- data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
- data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
- data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
- data/spec/vcr/transaction/void/1311126815.yml +280 -174
- metadata +109 -77
- data/spec/vcr/transaction/refund/1311126815.yml +0 -163
- data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,200 +1,276 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://api
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>charge-list-pending-1313708721</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
18
|
+
<accept-language nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
user-agent:
|
23
|
+
- Recurly Ruby Client v0.4.13
|
24
|
+
content-type:
|
14
25
|
- application/xml
|
15
|
-
response: !ruby/struct:VCR::Response
|
16
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
+
response: !ruby/struct:VCR::Response
|
27
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
28
|
code: 201
|
18
29
|
message: Created
|
19
|
-
headers:
|
20
|
-
location:
|
21
|
-
- http://
|
22
|
-
content-type:
|
30
|
+
headers:
|
31
|
+
location:
|
32
|
+
- http://api.lvh.me:3000/accounts/charge-list-pending-1313708721
|
33
|
+
content-type:
|
23
34
|
- application/xml; charset=utf-8
|
24
|
-
cache-control:
|
35
|
+
cache-control:
|
25
36
|
- no-cache
|
26
|
-
x-ua-compatible:
|
37
|
+
x-ua-compatible:
|
27
38
|
- IE=Edge
|
28
|
-
set-cookie:
|
29
|
-
- _recurly_session=
|
30
|
-
|
31
|
-
server:
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=4d255a6644b5cae5eb449eba160ca9ac; domain=.lvh.me; path=/; HttpOnly
|
41
|
+
server:
|
32
42
|
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
body: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<account>
|
46
|
+
<id>charge-list-pending-1313708721</id>
|
47
|
+
<account_code>charge-list-pending-1313708721</account_code>
|
48
|
+
<username></username>
|
49
|
+
<email>verena@test.com</email>
|
50
|
+
<first_name>Verena</first_name>
|
51
|
+
<last_name>Test</last_name>
|
52
|
+
<company_name>Recurly Ruby Gem</company_name>
|
53
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
54
|
+
<closed type="boolean">false</closed>
|
55
|
+
<hosted_login_token>025235b64ed5474cb11e650e376420c0</hosted_login_token>
|
56
|
+
<created_at type="datetime">2011-09-22T22:01:44Z</created_at>
|
57
|
+
<state>active</state>
|
58
|
+
</account>
|
59
|
+
|
60
|
+
http_version: "1.1"
|
61
|
+
- !ruby/struct:VCR::HTTPInteraction
|
62
|
+
request: !ruby/struct:VCR::Request
|
42
63
|
method: :post
|
43
|
-
uri: http://api
|
44
|
-
body:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
64
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-pending-1313708721/charges.xml
|
65
|
+
body: |
|
66
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
67
|
+
<charge>
|
68
|
+
<amount type="float">10.0</amount>
|
69
|
+
<description>charge description</description>
|
70
|
+
</charge>
|
71
|
+
|
72
|
+
headers:
|
73
|
+
user-agent:
|
74
|
+
- Recurly Ruby Client v0.4.13
|
75
|
+
content-type:
|
50
76
|
- application/xml
|
51
|
-
response: !ruby/struct:VCR::Response
|
52
|
-
status: !ruby/struct:VCR::ResponseStatus
|
77
|
+
response: !ruby/struct:VCR::Response
|
78
|
+
status: !ruby/struct:VCR::ResponseStatus
|
53
79
|
code: 201
|
54
80
|
message: Created
|
55
|
-
headers:
|
56
|
-
content-type:
|
81
|
+
headers:
|
82
|
+
content-type:
|
57
83
|
- application/xml; charset=utf-8
|
58
|
-
cache-control:
|
84
|
+
cache-control:
|
59
85
|
- no-cache
|
60
|
-
x-ua-compatible:
|
86
|
+
x-ua-compatible:
|
61
87
|
- IE=Edge
|
62
|
-
set-cookie:
|
63
|
-
- _recurly_session=
|
64
|
-
|
65
|
-
server:
|
88
|
+
set-cookie:
|
89
|
+
- _recurly_session=a696a60f683716fe3acae305dce75a7a; domain=.lvh.me; path=/; HttpOnly
|
90
|
+
server:
|
66
91
|
- thin 1.2.11 codename Bat-Shit Crazy
|
67
|
-
body:
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
92
|
+
body: |
|
93
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
94
|
+
<charge type="charge">
|
95
|
+
<id>04fb2a875cf8487b88b7b666ee8e9917</id>
|
96
|
+
<account_code>charge-list-pending-1313708721</account_code>
|
97
|
+
<quantity type="integer">1</quantity>
|
98
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
99
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
100
|
+
<currency>USD</currency>
|
101
|
+
<start_date type="datetime">2011-09-22T22:01:44Z</start_date>
|
102
|
+
<end_date nil="true" type="datetime"></end_date>
|
103
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
104
|
+
<description>charge description</description>
|
105
|
+
<created_at type="datetime">2011-09-22T22:01:44Z</created_at>
|
106
|
+
</charge>
|
107
|
+
|
108
|
+
http_version: "1.1"
|
109
|
+
- !ruby/struct:VCR::HTTPInteraction
|
110
|
+
request: !ruby/struct:VCR::Request
|
77
111
|
method: :post
|
78
|
-
uri: http://api
|
79
|
-
body:
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
112
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-pending-1313708721/charges.xml
|
113
|
+
body: |
|
114
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
115
|
+
<charge>
|
116
|
+
<amount type="float">10.0</amount>
|
117
|
+
<description>charge description</description>
|
118
|
+
</charge>
|
119
|
+
|
120
|
+
headers:
|
121
|
+
user-agent:
|
122
|
+
- Recurly Ruby Client v0.4.13
|
123
|
+
content-type:
|
85
124
|
- application/xml
|
86
|
-
response: !ruby/struct:VCR::Response
|
87
|
-
status: !ruby/struct:VCR::ResponseStatus
|
125
|
+
response: !ruby/struct:VCR::Response
|
126
|
+
status: !ruby/struct:VCR::ResponseStatus
|
88
127
|
code: 201
|
89
128
|
message: Created
|
90
|
-
headers:
|
91
|
-
content-type:
|
129
|
+
headers:
|
130
|
+
content-type:
|
92
131
|
- application/xml; charset=utf-8
|
93
|
-
cache-control:
|
132
|
+
cache-control:
|
94
133
|
- no-cache
|
95
|
-
x-ua-compatible:
|
134
|
+
x-ua-compatible:
|
96
135
|
- IE=Edge
|
97
|
-
set-cookie:
|
98
|
-
- _recurly_session=
|
99
|
-
|
100
|
-
server:
|
136
|
+
set-cookie:
|
137
|
+
- _recurly_session=aad3eac6270ae2f27eaeba671a74f388; domain=.lvh.me; path=/; HttpOnly
|
138
|
+
server:
|
101
139
|
- thin 1.2.11 codename Bat-Shit Crazy
|
102
|
-
body:
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
140
|
+
body: |
|
141
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
142
|
+
<charge type="charge">
|
143
|
+
<id>016468c16fb24d6f9604952b6ee7fc24</id>
|
144
|
+
<account_code>charge-list-pending-1313708721</account_code>
|
145
|
+
<quantity type="integer">1</quantity>
|
146
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
147
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
148
|
+
<currency>USD</currency>
|
149
|
+
<start_date type="datetime">2011-09-22T22:01:44Z</start_date>
|
150
|
+
<end_date nil="true" type="datetime"></end_date>
|
151
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
152
|
+
<description>charge description</description>
|
153
|
+
<created_at type="datetime">2011-09-22T22:01:44Z</created_at>
|
154
|
+
</charge>
|
155
|
+
|
156
|
+
http_version: "1.1"
|
157
|
+
- !ruby/struct:VCR::HTTPInteraction
|
158
|
+
request: !ruby/struct:VCR::Request
|
112
159
|
method: :post
|
113
|
-
uri: http://api
|
114
|
-
body:
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
160
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-pending-1313708721/charges.xml
|
161
|
+
body: |
|
162
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
163
|
+
<charge>
|
164
|
+
<amount type="float">10.0</amount>
|
165
|
+
<description>charge description</description>
|
166
|
+
</charge>
|
167
|
+
|
168
|
+
headers:
|
169
|
+
user-agent:
|
170
|
+
- Recurly Ruby Client v0.4.13
|
171
|
+
content-type:
|
120
172
|
- application/xml
|
121
|
-
response: !ruby/struct:VCR::Response
|
122
|
-
status: !ruby/struct:VCR::ResponseStatus
|
173
|
+
response: !ruby/struct:VCR::Response
|
174
|
+
status: !ruby/struct:VCR::ResponseStatus
|
123
175
|
code: 201
|
124
176
|
message: Created
|
125
|
-
headers:
|
126
|
-
content-type:
|
177
|
+
headers:
|
178
|
+
content-type:
|
127
179
|
- application/xml; charset=utf-8
|
128
|
-
cache-control:
|
180
|
+
cache-control:
|
129
181
|
- no-cache
|
130
|
-
x-ua-compatible:
|
182
|
+
x-ua-compatible:
|
131
183
|
- IE=Edge
|
132
|
-
set-cookie:
|
133
|
-
- _recurly_session=
|
134
|
-
|
135
|
-
server:
|
184
|
+
set-cookie:
|
185
|
+
- _recurly_session=3a7588e5a4190b1679ed95f84b6c19f7; domain=.lvh.me; path=/; HttpOnly
|
186
|
+
server:
|
136
187
|
- thin 1.2.11 codename Bat-Shit Crazy
|
137
|
-
body:
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
188
|
+
body: |
|
189
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
190
|
+
<charge type="charge">
|
191
|
+
<id>013f3ea1466d481080ee51cd225e5be0</id>
|
192
|
+
<account_code>charge-list-pending-1313708721</account_code>
|
193
|
+
<quantity type="integer">1</quantity>
|
194
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
195
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
196
|
+
<currency>USD</currency>
|
197
|
+
<start_date type="datetime">2011-09-22T22:01:44Z</start_date>
|
198
|
+
<end_date nil="true" type="datetime"></end_date>
|
199
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
200
|
+
<description>charge description</description>
|
201
|
+
<created_at type="datetime">2011-09-22T22:01:44Z</created_at>
|
202
|
+
</charge>
|
203
|
+
|
204
|
+
http_version: "1.1"
|
205
|
+
- !ruby/struct:VCR::HTTPInteraction
|
206
|
+
request: !ruby/struct:VCR::Request
|
147
207
|
method: :get
|
148
|
-
uri: http://api
|
149
|
-
body:
|
150
|
-
headers:
|
151
|
-
user-agent:
|
152
|
-
- Recurly Ruby Client v0.4.
|
153
|
-
accept:
|
208
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-list-pending-1313708721/charges.xml?show=pending
|
209
|
+
body:
|
210
|
+
headers:
|
211
|
+
user-agent:
|
212
|
+
- Recurly Ruby Client v0.4.13
|
213
|
+
accept:
|
154
214
|
- application/xml
|
155
|
-
accept-encoding:
|
215
|
+
accept-encoding:
|
156
216
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
157
|
-
response: !ruby/struct:VCR::Response
|
158
|
-
status: !ruby/struct:VCR::ResponseStatus
|
217
|
+
response: !ruby/struct:VCR::Response
|
218
|
+
status: !ruby/struct:VCR::ResponseStatus
|
159
219
|
code: 200
|
160
220
|
message: OK
|
161
|
-
headers:
|
162
|
-
content-type:
|
221
|
+
headers:
|
222
|
+
content-type:
|
163
223
|
- application/xml; charset=utf-8
|
164
|
-
etag:
|
165
|
-
-
|
166
|
-
cache-control:
|
224
|
+
etag:
|
225
|
+
- "\"19377ed3c05b737cb336597582c99556\""
|
226
|
+
cache-control:
|
167
227
|
- max-age=0, private, must-revalidate
|
168
|
-
x-ua-compatible:
|
228
|
+
x-ua-compatible:
|
169
229
|
- IE=Edge
|
170
|
-
|
171
|
-
- _recurly_session=f66efc5287611fc7633c7a2fabeff192; domain=.lvh.me; path=/;
|
172
|
-
HttpOnly
|
173
|
-
server:
|
230
|
+
server:
|
174
231
|
- thin 1.2.11 codename Bat-Shit Crazy
|
175
|
-
body:
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
232
|
+
body: |
|
233
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
234
|
+
<charges type="array">
|
235
|
+
<charge type="charge">
|
236
|
+
<id>013f3ea1466d481080ee51cd225e5be0</id>
|
237
|
+
<account_code>charge-list-pending-1313708721</account_code>
|
238
|
+
<quantity type="integer">1</quantity>
|
239
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
240
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
241
|
+
<currency>USD</currency>
|
242
|
+
<start_date type="datetime">2011-09-22T22:01:44Z</start_date>
|
243
|
+
<end_date nil="true" type="datetime"></end_date>
|
244
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
245
|
+
<description>charge description</description>
|
246
|
+
<created_at type="datetime">2011-09-22T22:01:44Z</created_at>
|
247
|
+
</charge>
|
248
|
+
<charge type="charge">
|
249
|
+
<id>016468c16fb24d6f9604952b6ee7fc24</id>
|
250
|
+
<account_code>charge-list-pending-1313708721</account_code>
|
251
|
+
<quantity type="integer">1</quantity>
|
252
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
253
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
254
|
+
<currency>USD</currency>
|
255
|
+
<start_date type="datetime">2011-09-22T22:01:44Z</start_date>
|
256
|
+
<end_date nil="true" type="datetime"></end_date>
|
257
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
258
|
+
<description>charge description</description>
|
259
|
+
<created_at type="datetime">2011-09-22T22:01:44Z</created_at>
|
260
|
+
</charge>
|
261
|
+
<charge type="charge">
|
262
|
+
<id>04fb2a875cf8487b88b7b666ee8e9917</id>
|
263
|
+
<account_code>charge-list-pending-1313708721</account_code>
|
264
|
+
<quantity type="integer">1</quantity>
|
265
|
+
<unit_amount_in_cents type="integer">1000</unit_amount_in_cents>
|
266
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
267
|
+
<currency>USD</currency>
|
268
|
+
<start_date type="datetime">2011-09-22T22:01:44Z</start_date>
|
269
|
+
<end_date nil="true" type="datetime"></end_date>
|
270
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
271
|
+
<description>charge description</description>
|
272
|
+
<created_at type="datetime">2011-09-22T22:01:44Z</created_at>
|
273
|
+
</charge>
|
274
|
+
</charges>
|
275
|
+
|
276
|
+
http_version: "1.1"
|
@@ -1,112 +1,152 @@
|
|
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
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
5
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>charge-lookup-1313708721</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<billing-info>
|
15
|
+
<credit-card>
|
16
|
+
</credit-card>
|
17
|
+
</billing-info>
|
18
|
+
<accept-language nil="true"></accept-language>
|
19
|
+
</account>
|
20
|
+
|
21
|
+
headers:
|
22
|
+
user-agent:
|
23
|
+
- Recurly Ruby Client v0.4.13
|
24
|
+
content-type:
|
14
25
|
- application/xml
|
15
|
-
response: !ruby/struct:VCR::Response
|
16
|
-
status: !ruby/struct:VCR::ResponseStatus
|
26
|
+
response: !ruby/struct:VCR::Response
|
27
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
28
|
code: 201
|
18
29
|
message: Created
|
19
|
-
headers:
|
20
|
-
location:
|
21
|
-
- http://
|
22
|
-
content-type:
|
30
|
+
headers:
|
31
|
+
location:
|
32
|
+
- http://api.lvh.me:3000/accounts/charge-lookup-1313708721
|
33
|
+
content-type:
|
23
34
|
- application/xml; charset=utf-8
|
24
|
-
cache-control:
|
35
|
+
cache-control:
|
25
36
|
- no-cache
|
26
|
-
x-ua-compatible:
|
37
|
+
x-ua-compatible:
|
27
38
|
- IE=Edge
|
28
|
-
set-cookie:
|
29
|
-
- _recurly_session=
|
30
|
-
|
31
|
-
server:
|
39
|
+
set-cookie:
|
40
|
+
- _recurly_session=8d424be1daf2cf161416372f6fc4898f; domain=.lvh.me; path=/; HttpOnly
|
41
|
+
server:
|
32
42
|
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
-
body:
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
43
|
+
body: |
|
44
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
45
|
+
<account>
|
46
|
+
<id>charge-lookup-1313708721</id>
|
47
|
+
<account_code>charge-lookup-1313708721</account_code>
|
48
|
+
<username></username>
|
49
|
+
<email>verena@test.com</email>
|
50
|
+
<first_name>Verena</first_name>
|
51
|
+
<last_name>Test</last_name>
|
52
|
+
<company_name>Recurly Ruby Gem</company_name>
|
53
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
54
|
+
<closed type="boolean">false</closed>
|
55
|
+
<hosted_login_token>6a255ea83fe242a5825d9a6739e9410c</hosted_login_token>
|
56
|
+
<created_at type="datetime">2011-09-22T22:01:46Z</created_at>
|
57
|
+
<state>active</state>
|
58
|
+
</account>
|
59
|
+
|
60
|
+
http_version: "1.1"
|
61
|
+
- !ruby/struct:VCR::HTTPInteraction
|
62
|
+
request: !ruby/struct:VCR::Request
|
42
63
|
method: :post
|
43
|
-
uri: http://api
|
44
|
-
body:
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
64
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-lookup-1313708721/charges.xml
|
65
|
+
body: |
|
66
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
67
|
+
<charge>
|
68
|
+
<amount type="float">13.15</amount>
|
69
|
+
<description>inconvenience fee</description>
|
70
|
+
</charge>
|
71
|
+
|
72
|
+
headers:
|
73
|
+
user-agent:
|
74
|
+
- Recurly Ruby Client v0.4.13
|
75
|
+
content-type:
|
50
76
|
- application/xml
|
51
|
-
response: !ruby/struct:VCR::Response
|
52
|
-
status: !ruby/struct:VCR::ResponseStatus
|
77
|
+
response: !ruby/struct:VCR::Response
|
78
|
+
status: !ruby/struct:VCR::ResponseStatus
|
53
79
|
code: 201
|
54
80
|
message: Created
|
55
|
-
headers:
|
56
|
-
content-type:
|
81
|
+
headers:
|
82
|
+
content-type:
|
57
83
|
- application/xml; charset=utf-8
|
58
|
-
cache-control:
|
84
|
+
cache-control:
|
59
85
|
- no-cache
|
60
|
-
x-ua-compatible:
|
86
|
+
x-ua-compatible:
|
61
87
|
- IE=Edge
|
62
|
-
set-cookie:
|
63
|
-
- _recurly_session=
|
64
|
-
|
65
|
-
server:
|
88
|
+
set-cookie:
|
89
|
+
- _recurly_session=e6b2b1c1c75a5fe1cf0263d06bfbb72a; domain=.lvh.me; path=/; HttpOnly
|
90
|
+
server:
|
66
91
|
- thin 1.2.11 codename Bat-Shit Crazy
|
67
|
-
body:
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
92
|
+
body: |
|
93
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
94
|
+
<charge type="charge">
|
95
|
+
<id>74c7e99cb4bd48c0839d2517f0e4142d</id>
|
96
|
+
<account_code>charge-lookup-1313708721</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:46Z</start_date>
|
102
|
+
<end_date nil="true" type="datetime"></end_date>
|
103
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
104
|
+
<description>inconvenience fee</description>
|
105
|
+
<created_at type="datetime">2011-09-22T22:01:46Z</created_at>
|
106
|
+
</charge>
|
107
|
+
|
108
|
+
http_version: "1.1"
|
109
|
+
- !ruby/struct:VCR::HTTPInteraction
|
110
|
+
request: !ruby/struct:VCR::Request
|
77
111
|
method: :get
|
78
|
-
uri: http://api
|
79
|
-
body:
|
80
|
-
headers:
|
81
|
-
user-agent:
|
82
|
-
- Recurly Ruby Client v0.4.
|
83
|
-
accept:
|
112
|
+
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-lookup-1313708721/charges/74c7e99cb4bd48c0839d2517f0e4142d.xml
|
113
|
+
body:
|
114
|
+
headers:
|
115
|
+
user-agent:
|
116
|
+
- Recurly Ruby Client v0.4.13
|
117
|
+
accept:
|
84
118
|
- application/xml
|
85
|
-
accept-encoding:
|
119
|
+
accept-encoding:
|
86
120
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
-
response: !ruby/struct:VCR::Response
|
88
|
-
status: !ruby/struct:VCR::ResponseStatus
|
121
|
+
response: !ruby/struct:VCR::Response
|
122
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
123
|
code: 200
|
90
124
|
message: OK
|
91
|
-
headers:
|
92
|
-
content-type:
|
125
|
+
headers:
|
126
|
+
content-type:
|
93
127
|
- application/xml; charset=utf-8
|
94
|
-
etag:
|
95
|
-
-
|
96
|
-
cache-control:
|
128
|
+
etag:
|
129
|
+
- "\"3052884c7d2c84b8fbdf424d7293e1f2\""
|
130
|
+
cache-control:
|
97
131
|
- max-age=0, private, must-revalidate
|
98
|
-
x-ua-compatible:
|
132
|
+
x-ua-compatible:
|
99
133
|
- IE=Edge
|
100
|
-
|
101
|
-
- _recurly_session=15a8352f402d7c9352a6af489ce7b2ee; domain=.lvh.me; path=/;
|
102
|
-
HttpOnly
|
103
|
-
server:
|
134
|
+
server:
|
104
135
|
- thin 1.2.11 codename Bat-Shit Crazy
|
105
|
-
body:
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
136
|
+
body: |
|
137
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
138
|
+
<charge type="charge">
|
139
|
+
<id>74c7e99cb4bd48c0839d2517f0e4142d</id>
|
140
|
+
<account_code>charge-lookup-1313708721</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:46Z</start_date>
|
146
|
+
<end_date nil="true" type="datetime"></end_date>
|
147
|
+
<invoice_number nil="true" type="integer"></invoice_number>
|
148
|
+
<description>inconvenience fee</description>
|
149
|
+
<created_at type="datetime">2011-09-22T22:01:46Z</created_at>
|
150
|
+
</charge>
|
151
|
+
|
152
|
+
http_version: "1.1"
|