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.
- data/README.md +2 -2
- data/lib/recurly.rb +2 -1
- data/lib/recurly/account.rb +2 -2
- data/lib/recurly/base.rb +30 -12
- data/lib/recurly/billing_info.rb +2 -2
- data/lib/recurly/exceptions.rb +13 -0
- data/lib/recurly/plan.rb +1 -1
- data/lib/recurly/subscription.rb +2 -2
- data/lib/recurly/transaction.rb +2 -2
- data/lib/recurly/transparent.rb +1 -1
- data/lib/recurly/verification.rb +77 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/account_spec.rb +12 -0
- data/spec/integration/billing_info_spec.rb +2 -2
- data/spec/integration/charge_spec.rb +0 -1
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/vcr.rb +2 -2
- data/spec/unit/verification_spec.rb +76 -0
- data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
- data/spec/vcr/account/close/1313708721.yml +104 -0
- data/spec/vcr/account/create-blank/1313708721.yml +33 -0
- data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
- data/spec/vcr/account/create-min/1313708721.yml +38 -0
- data/spec/vcr/account/create/1313708721.yml +39 -0
- data/spec/vcr/account/find/1313708721.yml +107 -0
- data/spec/vcr/account/list/1313708721.yml +878 -0
- data/spec/vcr/account/update/1313708721.yml +158 -0
- data/spec/vcr/billing/create/1313708721.yml +118 -0
- data/spec/vcr/billing/destroy/1313708721.yml +177 -0
- data/spec/vcr/billing/errors/1313708721.yml +71 -0
- data/spec/vcr/billing/find/1313708721.yml +156 -0
- data/spec/vcr/billing/update/1313708721.yml +159 -0
- data/spec/vcr/charge/create/1313708721.yml +153 -0
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
- data/spec/vcr/charge/list-all/1313708721.yml +198 -0
- data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
- data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
- data/spec/vcr/charge/lookup/1313708721.yml +112 -0
- data/spec/vcr/coupon/create/1296774903.yml +96 -170
- data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
- data/spec/vcr/credit/create/1313708090.yml +112 -0
- data/spec/vcr/credit/delete/1313708090.yml +171 -0
- data/spec/vcr/credit/list/1313708090.yml +198 -0
- data/spec/vcr/credit/lookup/1313708090.yml +112 -0
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
- data/spec/vcr/invoice/create/1296674173.yml +182 -328
- data/spec/vcr/invoice/list/1296674173.yml +255 -442
- data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
- data/spec/vcr/plan/all.yml +210 -253
- data/spec/vcr/plan/find.yml +115 -187
- data/spec/vcr/plan/update.yml +105 -187
- data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
- data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
- data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
- data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
- data/spec/vcr/subscription/change1/1296674173.yml +237 -402
- data/spec/vcr/subscription/change2/1296674173.yml +238 -402
- data/spec/vcr/subscription/create/1296674173.yml +123 -221
- data/spec/vcr/subscription/find/1296674173.yml +161 -279
- data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
- data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
- data/spec/vcr/transaction/all/1311126815.yml +215 -0
- data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
- data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
- data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
- data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
- data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
- data/spec/vcr/transaction/refund/1311126815.yml +163 -0
- data/spec/vcr/transaction/void/1311126815.yml +215 -0
- data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
- metadata +207 -154
- data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
- data/spec/vcr/account/close/1296674173.yml +0 -164
- data/spec/vcr/account/create-blank/1296674173.yml +0 -52
- data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
- data/spec/vcr/account/create-min/1296674173.yml +0 -66
- data/spec/vcr/account/create/1296674173.yml +0 -70
- data/spec/vcr/account/find/1296674173.yml +0 -169
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/account/update/1296674173.yml +0 -258
- data/spec/vcr/billing/create/1296690812.yml +0 -215
- data/spec/vcr/billing/destroy/1296690812.yml +0 -294
- data/spec/vcr/billing/find/1296690812.yml +0 -280
- data/spec/vcr/billing/update/1296690812.yml +0 -297
- data/spec/vcr/charge/create/1296674173.yml +0 -262
- data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
- data/spec/vcr/charge/list-all/1296674173.yml +0 -316
- data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
- data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
- data/spec/vcr/charge/lookup/1296674173.yml +0 -180
- data/spec/vcr/coupon/create/1296688818.yml +0 -183
- data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/all/1296674173.yml +0 -389
- data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
- data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -1,477 +1,290 @@
|
|
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://
|
6
|
-
body:
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
authorization:
|
19
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
-
content-type:
|
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:
|
21
14
|
- application/xml
|
22
|
-
|
23
|
-
|
24
|
-
user-agent:
|
25
|
-
- Ruby
|
26
|
-
connection:
|
27
|
-
- close
|
28
|
-
response: !ruby/struct:VCR::Response
|
29
|
-
status: !ruby/struct:VCR::ResponseStatus
|
15
|
+
response: !ruby/struct:VCR::Response
|
16
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
17
|
code: 201
|
31
|
-
message:
|
32
|
-
headers:
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/invoice-list-1296674173
|
37
|
-
x-runtime:
|
38
|
-
- "626"
|
39
|
-
content-type:
|
18
|
+
message: Created
|
19
|
+
headers:
|
20
|
+
location:
|
21
|
+
- http://app.lvh.me:3000/accounts/invoice-list-1296674173
|
22
|
+
content-type:
|
40
23
|
- application/xml; charset=utf-8
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
-
|
45
|
-
|
46
|
-
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<account
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>0f1c909f94c04a01a3c9ce2edbe18dec</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T22:20:12Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
24
|
+
cache-control:
|
25
|
+
- no-cache
|
26
|
+
x-ua-compatible:
|
27
|
+
- IE=Edge
|
28
|
+
set-cookie:
|
29
|
+
- _recurly_session=258d37c771ccf7a4c82a9f1cae16a8f6; 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>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
|
73
42
|
method: :put
|
74
|
-
uri: http://
|
75
|
-
body:
|
76
|
-
|
77
|
-
<
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<year type="integer">2012</year>
|
86
|
-
<month type="integer">2</month>
|
87
|
-
<verification-value>123</verification-value>
|
88
|
-
</credit-card>
|
89
|
-
<account-code>invoice-list-1296674173</account-code>
|
90
|
-
<first-name>Verena</first-name>
|
91
|
-
<last-name>Test</last-name>
|
92
|
-
</billing-info>
|
93
|
-
|
94
|
-
headers:
|
95
|
-
authorization:
|
96
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
97
|
-
content-type:
|
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:
|
98
54
|
- application/xml
|
99
|
-
|
100
|
-
|
101
|
-
user-agent:
|
102
|
-
- Ruby
|
103
|
-
connection:
|
104
|
-
- close
|
105
|
-
response: !ruby/struct:VCR::Response
|
106
|
-
status: !ruby/struct:VCR::ResponseStatus
|
55
|
+
response: !ruby/struct:VCR::Response
|
56
|
+
status: !ruby/struct:VCR::ResponseStatus
|
107
57
|
code: 200
|
108
|
-
message:
|
109
|
-
headers:
|
110
|
-
|
111
|
-
- "1560"
|
112
|
-
content-type:
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
content-type:
|
113
61
|
- application/xml; charset=utf-8
|
114
|
-
etag:
|
115
|
-
- "
|
116
|
-
cache-control:
|
117
|
-
-
|
118
|
-
|
119
|
-
-
|
120
|
-
|
121
|
-
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
<
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
<address2></address2>
|
136
|
-
<city>San Francisco</city>
|
137
|
-
<state>CA</state>
|
138
|
-
<country>US</country>
|
139
|
-
<zip>94115</zip>
|
140
|
-
<phone></phone>
|
141
|
-
<vat_number></vat_number>
|
142
|
-
<ip_address></ip_address>
|
143
|
-
<credit_card>
|
144
|
-
<type>visa</type>
|
145
|
-
<last_four>1111</last_four>
|
146
|
-
<month type="integer">2</month>
|
147
|
-
<year type="integer">2012</year>
|
148
|
-
</credit_card>
|
149
|
-
<updated_at type="datetime">2011-02-03T22:20:16Z</updated_at>
|
150
|
-
</billing_info>
|
151
|
-
|
152
|
-
http_version: "1.1"
|
153
|
-
- !ruby/struct:VCR::HTTPInteraction
|
154
|
-
request: !ruby/struct:VCR::Request
|
62
|
+
etag:
|
63
|
+
- ! '"e690cbeee8af274a055bb3e93e33162d"'
|
64
|
+
cache-control:
|
65
|
+
- max-age=0, private, must-revalidate
|
66
|
+
x-ua-compatible:
|
67
|
+
- IE=Edge
|
68
|
+
set-cookie:
|
69
|
+
- _recurly_session=b5c8ff2b407976fd8ee09d5d2c7d5983; domain=.lvh.me; path=/;
|
70
|
+
HttpOnly
|
71
|
+
server:
|
72
|
+
- 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
|
155
83
|
method: :post
|
156
|
-
uri: http://
|
157
|
-
body:
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
headers:
|
165
|
-
authorization:
|
166
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
167
|
-
content-type:
|
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:
|
168
91
|
- application/xml
|
169
|
-
|
170
|
-
|
171
|
-
user-agent:
|
172
|
-
- Ruby
|
173
|
-
connection:
|
174
|
-
- close
|
175
|
-
response: !ruby/struct:VCR::Response
|
176
|
-
status: !ruby/struct:VCR::ResponseStatus
|
92
|
+
response: !ruby/struct:VCR::Response
|
93
|
+
status: !ruby/struct:VCR::ResponseStatus
|
177
94
|
code: 201
|
178
|
-
message:
|
179
|
-
headers:
|
180
|
-
|
181
|
-
- no-cache
|
182
|
-
x-runtime:
|
183
|
-
- "434"
|
184
|
-
content-type:
|
95
|
+
message: Created
|
96
|
+
headers:
|
97
|
+
content-type:
|
185
98
|
- application/xml; charset=utf-8
|
186
|
-
|
187
|
-
-
|
188
|
-
|
189
|
-
-
|
190
|
-
|
191
|
-
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
<
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
<description>charge description</description>
|
206
|
-
<created_at type="datetime">2011-02-03T22:20:18Z</created_at>
|
207
|
-
</charge>
|
208
|
-
|
209
|
-
http_version: "1.1"
|
210
|
-
- !ruby/struct:VCR::HTTPInteraction
|
211
|
-
request: !ruby/struct:VCR::Request
|
99
|
+
cache-control:
|
100
|
+
- no-cache
|
101
|
+
x-ua-compatible:
|
102
|
+
- IE=Edge
|
103
|
+
set-cookie:
|
104
|
+
- _recurly_session=b43adc15bb33d6b4262ff4596a97d7b6; domain=.lvh.me; path=/;
|
105
|
+
HttpOnly
|
106
|
+
server:
|
107
|
+
- 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
|
212
118
|
method: :post
|
213
|
-
uri: http://
|
214
|
-
body:
|
215
|
-
|
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"?>
|
121
|
+
|
216
122
|
<invoice>
|
123
|
+
|
217
124
|
</invoice>
|
218
125
|
|
219
|
-
|
220
|
-
|
221
|
-
-
|
222
|
-
|
126
|
+
'
|
127
|
+
headers:
|
128
|
+
user-agent:
|
129
|
+
- Recurly Ruby Client v0.4.10
|
130
|
+
content-type:
|
223
131
|
- application/xml
|
224
|
-
|
225
|
-
|
226
|
-
user-agent:
|
227
|
-
- Ruby
|
228
|
-
connection:
|
229
|
-
- close
|
230
|
-
response: !ruby/struct:VCR::Response
|
231
|
-
status: !ruby/struct:VCR::ResponseStatus
|
132
|
+
response: !ruby/struct:VCR::Response
|
133
|
+
status: !ruby/struct:VCR::ResponseStatus
|
232
134
|
code: 201
|
233
|
-
message:
|
234
|
-
headers:
|
235
|
-
|
236
|
-
-
|
237
|
-
|
238
|
-
- http://litle-test.recurly.local:3000/invoices/ea18bb3d1e1241968104da9c4ed1bdbf
|
239
|
-
x-runtime:
|
240
|
-
- "656"
|
241
|
-
content-type:
|
135
|
+
message: Created
|
136
|
+
headers:
|
137
|
+
location:
|
138
|
+
- http://app.lvh.me:3000/invoices/adf54a9b0e7b4823903e1233fd2609af
|
139
|
+
content-type:
|
242
140
|
- application/xml; charset=utf-8
|
243
|
-
|
244
|
-
-
|
245
|
-
|
246
|
-
-
|
247
|
-
|
248
|
-
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
<
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
<id>6adc381d8c7944a688abb7edf5e4b2af</id>
|
271
|
-
<type>charge</type>
|
272
|
-
<amount_in_cents type="integer">100</amount_in_cents>
|
273
|
-
<start_date type="datetime">2011-02-03T22:20:18Z</start_date>
|
274
|
-
<end_date nil="true" type="datetime"></end_date>
|
275
|
-
<description>charge description</description>
|
276
|
-
<created_at type="datetime">2011-02-03T22:20:18Z</created_at>
|
277
|
-
<applied_coupon_code></applied_coupon_code>
|
278
|
-
</line_item>
|
279
|
-
</line_items>
|
280
|
-
<payments type="array">
|
281
|
-
</payments>
|
282
|
-
</invoice>
|
283
|
-
|
284
|
-
http_version: "1.1"
|
285
|
-
- !ruby/struct:VCR::HTTPInteraction
|
286
|
-
request: !ruby/struct:VCR::Request
|
141
|
+
cache-control:
|
142
|
+
- no-cache
|
143
|
+
x-ua-compatible:
|
144
|
+
- IE=Edge
|
145
|
+
set-cookie:
|
146
|
+
- _recurly_session=746bf442773eb998ef20f0ed1f647868; domain=.lvh.me; path=/;
|
147
|
+
HttpOnly
|
148
|
+
server:
|
149
|
+
- 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
|
287
168
|
method: :post
|
288
|
-
uri: http://
|
289
|
-
body:
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
headers:
|
297
|
-
authorization:
|
298
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
299
|
-
content-type:
|
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:
|
300
176
|
- application/xml
|
301
|
-
|
302
|
-
|
303
|
-
user-agent:
|
304
|
-
- Ruby
|
305
|
-
connection:
|
306
|
-
- close
|
307
|
-
response: !ruby/struct:VCR::Response
|
308
|
-
status: !ruby/struct:VCR::ResponseStatus
|
177
|
+
response: !ruby/struct:VCR::Response
|
178
|
+
status: !ruby/struct:VCR::ResponseStatus
|
309
179
|
code: 201
|
310
|
-
message:
|
311
|
-
headers:
|
312
|
-
|
313
|
-
- no-cache
|
314
|
-
x-runtime:
|
315
|
-
- "442"
|
316
|
-
content-type:
|
180
|
+
message: Created
|
181
|
+
headers:
|
182
|
+
content-type:
|
317
183
|
- application/xml; charset=utf-8
|
318
|
-
|
319
|
-
-
|
320
|
-
|
321
|
-
-
|
322
|
-
|
323
|
-
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
<
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
<description>charge description</description>
|
338
|
-
<created_at type="datetime">2011-02-03T22:20:22Z</created_at>
|
339
|
-
</charge>
|
340
|
-
|
341
|
-
http_version: "1.1"
|
342
|
-
- !ruby/struct:VCR::HTTPInteraction
|
343
|
-
request: !ruby/struct:VCR::Request
|
184
|
+
cache-control:
|
185
|
+
- no-cache
|
186
|
+
x-ua-compatible:
|
187
|
+
- IE=Edge
|
188
|
+
set-cookie:
|
189
|
+
- _recurly_session=b6e67ee5b80795e4395996b904cf7aae; domain=.lvh.me; path=/;
|
190
|
+
HttpOnly
|
191
|
+
server:
|
192
|
+
- 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
|
344
203
|
method: :post
|
345
|
-
uri: http://
|
346
|
-
body:
|
347
|
-
|
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"?>
|
206
|
+
|
348
207
|
<invoice>
|
208
|
+
|
349
209
|
</invoice>
|
350
210
|
|
351
|
-
|
352
|
-
|
353
|
-
-
|
354
|
-
|
211
|
+
'
|
212
|
+
headers:
|
213
|
+
user-agent:
|
214
|
+
- Recurly Ruby Client v0.4.10
|
215
|
+
content-type:
|
355
216
|
- application/xml
|
356
|
-
|
357
|
-
|
358
|
-
user-agent:
|
359
|
-
- Ruby
|
360
|
-
connection:
|
361
|
-
- close
|
362
|
-
response: !ruby/struct:VCR::Response
|
363
|
-
status: !ruby/struct:VCR::ResponseStatus
|
217
|
+
response: !ruby/struct:VCR::Response
|
218
|
+
status: !ruby/struct:VCR::ResponseStatus
|
364
219
|
code: 201
|
365
|
-
message:
|
366
|
-
headers:
|
367
|
-
|
368
|
-
-
|
369
|
-
|
370
|
-
- http://litle-test.recurly.local:3000/invoices/b7635a7c7ce4494999d1ba0c80be897f
|
371
|
-
x-runtime:
|
372
|
-
- "454"
|
373
|
-
content-type:
|
220
|
+
message: Created
|
221
|
+
headers:
|
222
|
+
location:
|
223
|
+
- http://app.lvh.me:3000/invoices/f33c1576729f43619d23ebd052fe6306
|
224
|
+
content-type:
|
374
225
|
- application/xml; charset=utf-8
|
375
|
-
|
376
|
-
-
|
377
|
-
|
378
|
-
-
|
379
|
-
|
380
|
-
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
<
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
<id>8381a84d9767432894206a5450ee3eab</id>
|
403
|
-
<type>charge</type>
|
404
|
-
<amount_in_cents type="integer">300</amount_in_cents>
|
405
|
-
<start_date type="datetime">2011-02-03T22:20:22Z</start_date>
|
406
|
-
<end_date nil="true" type="datetime"></end_date>
|
407
|
-
<description>charge description</description>
|
408
|
-
<created_at type="datetime">2011-02-03T22:20:22Z</created_at>
|
409
|
-
<applied_coupon_code></applied_coupon_code>
|
410
|
-
</line_item>
|
411
|
-
</line_items>
|
412
|
-
<payments type="array">
|
413
|
-
</payments>
|
414
|
-
</invoice>
|
415
|
-
|
416
|
-
http_version: "1.1"
|
417
|
-
- !ruby/struct:VCR::HTTPInteraction
|
418
|
-
request: !ruby/struct:VCR::Request
|
226
|
+
cache-control:
|
227
|
+
- no-cache
|
228
|
+
x-ua-compatible:
|
229
|
+
- IE=Edge
|
230
|
+
set-cookie:
|
231
|
+
- _recurly_session=0adb89e96346824e759bc86601d602dd; domain=.lvh.me; path=/;
|
232
|
+
HttpOnly
|
233
|
+
server:
|
234
|
+
- 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
|
419
253
|
method: :get
|
420
|
-
uri: http://
|
421
|
-
body:
|
422
|
-
headers:
|
423
|
-
|
424
|
-
-
|
425
|
-
accept:
|
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:
|
426
260
|
- application/xml
|
427
|
-
accept-encoding:
|
261
|
+
accept-encoding:
|
428
262
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
429
|
-
|
430
|
-
|
431
|
-
connection:
|
432
|
-
- close
|
433
|
-
response: !ruby/struct:VCR::Response
|
434
|
-
status: !ruby/struct:VCR::ResponseStatus
|
263
|
+
response: !ruby/struct:VCR::Response
|
264
|
+
status: !ruby/struct:VCR::ResponseStatus
|
435
265
|
code: 200
|
436
|
-
message:
|
437
|
-
headers:
|
438
|
-
|
439
|
-
- "208"
|
440
|
-
content-type:
|
266
|
+
message: OK
|
267
|
+
headers:
|
268
|
+
content-type:
|
441
269
|
- application/xml; charset=utf-8
|
442
|
-
etag:
|
443
|
-
- "
|
444
|
-
cache-control:
|
445
|
-
-
|
446
|
-
|
447
|
-
-
|
448
|
-
|
449
|
-
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
-
|
456
|
-
|
457
|
-
|
458
|
-
<
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
<invoice_number type="integer">1237</invoice_number>
|
464
|
-
<subtotal_in_cents type="integer">300</subtotal_in_cents>
|
465
|
-
<total_in_cents type="integer">300</total_in_cents>
|
466
|
-
</invoice>
|
467
|
-
<invoice>
|
468
|
-
<id>ea18bb3d1e1241968104da9c4ed1bdbf</id>
|
469
|
-
<account_code>invoice-list-1296674173</account_code>
|
470
|
-
<date type="datetime">2011-02-03T22:20:20Z</date>
|
471
|
-
<invoice_number type="integer">1236</invoice_number>
|
472
|
-
<subtotal_in_cents type="integer">100</subtotal_in_cents>
|
473
|
-
<total_in_cents type="integer">100</total_in_cents>
|
474
|
-
</invoice>
|
475
|
-
</invoices>
|
476
|
-
|
477
|
-
http_version: "1.1"
|
270
|
+
etag:
|
271
|
+
- ! '"bf3ae3232384cc8f612d9be517ddc18a"'
|
272
|
+
cache-control:
|
273
|
+
- max-age=0, private, must-revalidate
|
274
|
+
x-ua-compatible:
|
275
|
+
- IE=Edge
|
276
|
+
set-cookie:
|
277
|
+
- _recurly_session=1dd333a7b8e301ecaacdefafb7070b66; domain=.lvh.me; path=/;
|
278
|
+
HttpOnly
|
279
|
+
server:
|
280
|
+
- 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'
|