recurly 0.4.15 → 0.4.16
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/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,222 +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>charge-create-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:
|
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/charge-create-1313708721
|
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=a24f9e09065743ec3e17bddb4402e6ee; 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>charge-create-1313708721</id>
|
47
|
-
<account_code>charge-create-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>b4f07de10b6f4e2f907470f231d43499</hosted_login_token>
|
56
|
-
<created_at type="datetime">2011-09-22T22:01:45Z</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/charge-create-1313708721/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>charge-create-1313708721</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
|
-
- "\"9a08d0ceca1c2ee63ed32a54031edc99\""
|
98
|
-
cache-control:
|
99
|
-
- max-age=0, private, must-revalidate
|
100
|
-
x-ua-compatible:
|
101
|
-
- IE=Edge
|
102
|
-
set-cookie:
|
103
|
-
- _recurly_session=ae65eb9f52e9b64fc52bfd0ba107fe2a; 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>charge-create-1313708721</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:46Z</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/charge-create-1313708721/charges.xml
|
135
|
-
body: |
|
136
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
137
|
-
<charge>
|
138
|
-
<amount type="float">2.5</amount>
|
139
|
-
<description>virtual cow maintence fee</description>
|
140
|
-
</charge>
|
141
|
-
|
142
|
-
headers:
|
143
|
-
user-agent:
|
144
|
-
- Recurly Ruby Client v0.4.13
|
145
|
-
content-type:
|
146
|
-
- application/xml
|
147
|
-
response: !ruby/struct:VCR::Response
|
148
|
-
status: !ruby/struct:VCR::ResponseStatus
|
149
|
-
code: 201
|
150
|
-
message: Created
|
151
|
-
headers:
|
152
|
-
content-type:
|
153
|
-
- application/xml; charset=utf-8
|
154
|
-
cache-control:
|
155
|
-
- no-cache
|
156
|
-
x-ua-compatible:
|
157
|
-
- IE=Edge
|
158
|
-
set-cookie:
|
159
|
-
- _recurly_session=7832541ec6d595eac7a0a067b160ff9a; domain=.lvh.me; path=/; HttpOnly
|
160
|
-
server:
|
161
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
162
|
-
body: |
|
163
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
164
|
-
<charge type="charge">
|
165
|
-
<id>8c0a6bcb9cb644c5bfa3079e0faaef51</id>
|
166
|
-
<account_code>charge-create-1313708721</account_code>
|
167
|
-
<quantity type="integer">1</quantity>
|
168
|
-
<unit_amount_in_cents type="integer">250</unit_amount_in_cents>
|
169
|
-
<amount_in_cents type="integer">250</amount_in_cents>
|
170
|
-
<currency>USD</currency>
|
171
|
-
<start_date type="datetime">2011-09-22T22:01:46Z</start_date>
|
172
|
-
<end_date nil="true" type="datetime"></end_date>
|
173
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
174
|
-
<description>virtual cow maintence fee</description>
|
175
|
-
<created_at type="datetime">2011-09-22T22:01:46Z</created_at>
|
176
|
-
</charge>
|
177
|
-
|
178
|
-
http_version: "1.1"
|
179
|
-
- !ruby/struct:VCR::HTTPInteraction
|
180
|
-
request: !ruby/struct:VCR::Request
|
181
|
-
method: :get
|
182
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-create-1313708721/charges/8c0a6bcb9cb644c5bfa3079e0faaef51.xml
|
183
|
-
body:
|
184
|
-
headers:
|
185
|
-
user-agent:
|
186
|
-
- Recurly Ruby Client v0.4.13
|
187
|
-
accept:
|
188
|
-
- application/xml
|
189
|
-
accept-encoding:
|
190
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
191
|
-
response: !ruby/struct:VCR::Response
|
192
|
-
status: !ruby/struct:VCR::ResponseStatus
|
193
|
-
code: 200
|
194
|
-
message: OK
|
195
|
-
headers:
|
196
|
-
content-type:
|
197
|
-
- application/xml; charset=utf-8
|
198
|
-
etag:
|
199
|
-
- "\"0780320662336dfb6c3089cc762c184e\""
|
200
|
-
cache-control:
|
201
|
-
- max-age=0, private, must-revalidate
|
202
|
-
x-ua-compatible:
|
203
|
-
- IE=Edge
|
204
|
-
server:
|
205
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
206
|
-
body: |
|
207
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
208
|
-
<charge type="charge">
|
209
|
-
<id>8c0a6bcb9cb644c5bfa3079e0faaef51</id>
|
210
|
-
<account_code>charge-create-1313708721</account_code>
|
211
|
-
<quantity type="integer">1</quantity>
|
212
|
-
<unit_amount_in_cents type="integer">250</unit_amount_in_cents>
|
213
|
-
<amount_in_cents type="integer">250</amount_in_cents>
|
214
|
-
<currency>USD</currency>
|
215
|
-
<start_date type="datetime">2011-09-22T22:01:46Z</start_date>
|
216
|
-
<end_date nil="true" type="datetime"></end_date>
|
217
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
218
|
-
<description>virtual cow maintence fee</description>
|
219
|
-
<created_at type="datetime">2011-09-22T22:01:46Z</created_at>
|
220
|
-
</charge>
|
221
|
-
|
222
|
-
http_version: "1.1"
|
@@ -1,247 +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>charge-delete-uinvoiced-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:
|
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/charge-delete-uinvoiced-1313708721
|
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=833b6b1537ce7fc4e71717e1b49b54bc; 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>charge-delete-uinvoiced-1313708721</id>
|
47
|
-
<account_code>charge-delete-uinvoiced-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>7a02cf6aee65413e868268e78bd1a9f6</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
|
63
|
-
method: :post
|
64
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-delete-uinvoiced-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:
|
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=42de862c94d660c9c03487e15c656653; 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
|
-
<charge type="charge">
|
95
|
-
<id>c775274040a64332867ec9f9c6d9cee4</id>
|
96
|
-
<account_code>charge-delete-uinvoiced-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
|
111
|
-
method: :get
|
112
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/charges/c775274040a64332867ec9f9c6d9cee4.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
|
-
- "\"4a93a23b5b20c9c7205e665e4483d8e8\""
|
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
|
-
<charge type="charge">
|
139
|
-
<id>c775274040a64332867ec9f9c6d9cee4</id>
|
140
|
-
<account_code>charge-delete-uinvoiced-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"
|
153
|
-
- !ruby/struct:VCR::HTTPInteraction
|
154
|
-
request: !ruby/struct:VCR::Request
|
155
|
-
method: :delete
|
156
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/charges/c775274040a64332867ec9f9c6d9cee4.xml
|
157
|
-
body:
|
158
|
-
headers:
|
159
|
-
user-agent:
|
160
|
-
- Recurly Ruby Client v0.4.13
|
161
|
-
accept:
|
162
|
-
- application/xml
|
163
|
-
response: !ruby/struct:VCR::Response
|
164
|
-
status: !ruby/struct:VCR::ResponseStatus
|
165
|
-
code: 200
|
166
|
-
message: OK
|
167
|
-
headers:
|
168
|
-
content-type:
|
169
|
-
- application/xml; charset=utf-8
|
170
|
-
cache-control:
|
171
|
-
- no-cache
|
172
|
-
x-ua-compatible:
|
173
|
-
- IE=Edge
|
174
|
-
set-cookie:
|
175
|
-
- _recurly_session=62d3ee8086ff35ee600655acf544833d; domain=.lvh.me; path=/; HttpOnly
|
176
|
-
server:
|
177
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
178
|
-
body: " "
|
179
|
-
http_version: "1.1"
|
180
|
-
- !ruby/struct:VCR::HTTPInteraction
|
181
|
-
request: !ruby/struct:VCR::Request
|
182
|
-
method: :get
|
183
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/charges/c775274040a64332867ec9f9c6d9cee4.xml
|
184
|
-
body:
|
185
|
-
headers:
|
186
|
-
user-agent:
|
187
|
-
- Recurly Ruby Client v0.4.13
|
188
|
-
accept:
|
189
|
-
- application/xml
|
190
|
-
accept-encoding:
|
191
|
-
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
192
|
-
response: !ruby/struct:VCR::Response
|
193
|
-
status: !ruby/struct:VCR::ResponseStatus
|
194
|
-
code: 404
|
195
|
-
message: Not Found
|
196
|
-
headers:
|
197
|
-
content-type:
|
198
|
-
- application/xml; charset=utf-8
|
199
|
-
cache-control:
|
200
|
-
- no-cache
|
201
|
-
x-ua-compatible:
|
202
|
-
- IE=Edge
|
203
|
-
server:
|
204
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
205
|
-
body: |
|
206
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
207
|
-
<errors>
|
208
|
-
<error>Charge not found</error>
|
209
|
-
</errors>
|
210
|
-
|
211
|
-
http_version: "1.1"
|
212
|
-
- !ruby/struct:VCR::HTTPInteraction
|
213
|
-
request: !ruby/struct:VCR::Request
|
214
|
-
method: :post
|
215
|
-
uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/charge-delete-uinvoiced-1313708721/invoices.xml
|
216
|
-
body: |
|
217
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
218
|
-
<invoice>
|
219
|
-
</invoice>
|
220
|
-
|
221
|
-
headers:
|
222
|
-
user-agent:
|
223
|
-
- Recurly Ruby Client v0.4.13
|
224
|
-
content-type:
|
225
|
-
- application/xml
|
226
|
-
response: !ruby/struct:VCR::Response
|
227
|
-
status: !ruby/struct:VCR::ResponseStatus
|
228
|
-
code: 422
|
229
|
-
message:
|
230
|
-
headers:
|
231
|
-
content-type:
|
232
|
-
- application/xml; charset=utf-8
|
233
|
-
cache-control:
|
234
|
-
- no-cache
|
235
|
-
x-ua-compatible:
|
236
|
-
- IE=Edge
|
237
|
-
set-cookie:
|
238
|
-
- _recurly_session=f14b613796f363f3e61e4300fc875773; domain=.lvh.me; path=/; HttpOnly
|
239
|
-
server:
|
240
|
-
- thin 1.2.11 codename Bat-Shit Crazy
|
241
|
-
body: |
|
242
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
243
|
-
<errors>
|
244
|
-
<error>No charges to invoice.</error>
|
245
|
-
</errors>
|
246
|
-
|
247
|
-
http_version: "1.1"
|