recurly 0.2.1 → 0.2.2
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 +3 -2
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/subscription.rb +1 -1
- data/lib/recurly/transaction.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/spec/integration/subscription_spec.rb +29 -8
- data/spec/vcr/account/close/1286666929.yml +159 -0
- data/spec/vcr/account/create-blank/1286666929.yml +49 -0
- data/spec/vcr/account/create-duplicate/1286666929.yml +95 -0
- data/spec/vcr/account/create-min/1286666929.yml +63 -0
- data/spec/vcr/account/create/1286666929.yml +67 -0
- data/spec/vcr/account/find/1286666929.yml +122 -0
- data/spec/vcr/account/list/1286666929.yml +1565 -0
- data/spec/vcr/account/update/1286666929.yml +250 -0
- data/spec/vcr/billing/create/1286682213.yml +210 -0
- data/spec/vcr/billing/destroy/1286682213.yml +309 -0
- data/spec/vcr/billing/find/1286682213.yml +273 -0
- data/spec/vcr/billing/update/1286682213.yml +292 -0
- data/spec/vcr/charge/create/1286681273.yml +253 -0
- data/spec/vcr/charge/list-all/1286681273.yml +302 -0
- data/spec/vcr/charge/list-invoiced/1286681273.yml +445 -0
- data/spec/vcr/charge/list-pending/1286681273.yml +302 -0
- data/spec/vcr/charge/lookup/1286681273.yml +171 -0
- data/spec/vcr/credit/create/1286681343.yml +171 -0
- data/spec/vcr/credit/list/1286681343.yml +299 -0
- data/spec/vcr/credit/lookup/1286681343.yml +171 -0
- data/spec/vcr/invoice/create/1286679184.yml +337 -0
- data/spec/vcr/invoice/list/1286679184.yml +458 -0
- data/spec/vcr/invoice/lookup/1286679184.yml +341 -0
- data/spec/vcr/plan/all.yml +306 -0
- data/spec/vcr/plan/delete/1286677585.yml +217 -0
- data/spec/vcr/plan/find.yml +196 -0
- data/spec/vcr/plan/update.yml +197 -0
- data/spec/vcr/subscription/cancel/1287036910.yml +401 -0
- data/spec/vcr/subscription/cancel/1287037325.yml +401 -0
- data/spec/vcr/subscription/cancel/1287037363.yml +401 -0
- data/spec/vcr/subscription/change1/1287036910.yml +409 -0
- data/spec/vcr/subscription/change1/1287037152.yml +409 -0
- data/spec/vcr/subscription/change1/1287037325.yml +409 -0
- data/spec/vcr/subscription/change1/1287037363.yml +409 -0
- data/spec/vcr/subscription/change2/1287036910.yml +409 -0
- data/spec/vcr/subscription/change2/1287037152.yml +283 -0
- data/spec/vcr/subscription/change2/1287037325.yml +283 -0
- data/spec/vcr/subscription/change2/1287037363.yml +409 -0
- data/spec/vcr/subscription/create/1287036910.yml +224 -0
- data/spec/vcr/subscription/create/1287037152.yml +224 -0
- data/spec/vcr/subscription/create/1287037325.yml +224 -0
- data/spec/vcr/subscription/create/1287037363.yml +224 -0
- data/spec/vcr/subscription/find/1287036910.yml +283 -0
- data/spec/vcr/subscription/find/1287037152.yml +283 -0
- data/spec/vcr/subscription/find/1287037325.yml +283 -0
- data/spec/vcr/subscription/find/1287037363.yml +283 -0
- data/spec/vcr/subscription/refund/1287036910.yml +382 -0
- data/spec/vcr/subscription/refund/1287037325.yml +382 -0
- data/spec/vcr/subscription/refund/1287037363.yml +382 -0
- data/spec/vcr/transaction/all/1286674805.yml +387 -0
- data/spec/vcr/transaction/create-no-account/1286674805.yml +91 -0
- data/spec/vcr/transaction/create-with-account/1286674805.yml +220 -0
- data/spec/vcr/transaction/list-empty/1286674805.yml +212 -0
- data/spec/vcr/transaction/list-filled/1286674805.yml +476 -0
- data/spec/vcr/transaction/lookup/1286674805.yml +548 -0
- data/spec/vcr/transaction/refund/1286674805.yml +220 -0
- data/spec/vcr/transaction/void/1286674805.yml +668 -0
- metadata +118 -4
@@ -0,0 +1,171 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<company-name>Recurly Ruby Gem</company-name>
|
10
|
+
<account-code>credit-lookup-1286681343</account-code>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<first-name>Verena</first-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/credit-lookup-1286681343
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "569"
|
38
|
+
date:
|
39
|
+
- Thu, 14 Oct 2010 06:16:33 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "581"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=045036635b989baf68387e8d6a9b86c9b446ac2609638ff8595a636fcb4d8d301f74c679f05d3244cb895a22531b9a79316c0443a0625f951cba711903120ffa%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=80b0e3bc70dd1611675f7154ad950f31; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>credit-lookup-1286681343</id>
|
54
|
+
<account_code>credit-lookup-1286681343</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>fb6fe9f929ee4741bcae67122e6efbf1</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-14T06:16:33Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|
68
|
+
- !ruby/struct:VCR::HTTPInteraction
|
69
|
+
request: !ruby/struct:VCR::Request
|
70
|
+
method: :post
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1286681343/credits.xml
|
72
|
+
body: |
|
73
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
74
|
+
<credit>
|
75
|
+
<amount type="float">13.15</amount>
|
76
|
+
<description>free moniez 4 u</description>
|
77
|
+
</credit>
|
78
|
+
|
79
|
+
headers:
|
80
|
+
accept:
|
81
|
+
- "*/*"
|
82
|
+
connection:
|
83
|
+
- close
|
84
|
+
content-type:
|
85
|
+
- application/xml
|
86
|
+
authorization:
|
87
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
88
|
+
response: !ruby/struct:VCR::Response
|
89
|
+
status: !ruby/struct:VCR::ResponseStatus
|
90
|
+
code: 201
|
91
|
+
message: Created
|
92
|
+
headers:
|
93
|
+
connection:
|
94
|
+
- close
|
95
|
+
content-type:
|
96
|
+
- application/xml; charset=utf-8
|
97
|
+
x-runtime:
|
98
|
+
- "45"
|
99
|
+
date:
|
100
|
+
- Thu, 14 Oct 2010 06:16:34 GMT
|
101
|
+
server:
|
102
|
+
- nginx/0.7.65
|
103
|
+
content-length:
|
104
|
+
- "454"
|
105
|
+
set-cookie:
|
106
|
+
- _recurly_session=4210c6e95ecbc406a537719b841994c9; domain=.recurly.com; path=/; Secure; HttpOnly
|
107
|
+
cache-control:
|
108
|
+
- no-cache
|
109
|
+
body: |
|
110
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
111
|
+
<credit type="credit">
|
112
|
+
<id>15d2e2a10f8347eb93799f5cce622dbe</id>
|
113
|
+
<account_code>credit-lookup-1286681343</account_code>
|
114
|
+
<amount_in_cents type="integer">-1315</amount_in_cents>
|
115
|
+
<start_date type="datetime">2010-10-14T06:16:34Z</start_date>
|
116
|
+
<end_date nil="true" type="datetime"></end_date>
|
117
|
+
<description>free moniez 4 u</description>
|
118
|
+
<created_at type="datetime">2010-10-14T06:16:34Z</created_at>
|
119
|
+
</credit>
|
120
|
+
|
121
|
+
http_version: "1.1"
|
122
|
+
- !ruby/struct:VCR::HTTPInteraction
|
123
|
+
request: !ruby/struct:VCR::Request
|
124
|
+
method: :get
|
125
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-lookup-1286681343/credits/15d2e2a10f8347eb93799f5cce622dbe.xml
|
126
|
+
body:
|
127
|
+
headers:
|
128
|
+
accept:
|
129
|
+
- application/xml
|
130
|
+
connection:
|
131
|
+
- close
|
132
|
+
authorization:
|
133
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
134
|
+
response: !ruby/struct:VCR::Response
|
135
|
+
status: !ruby/struct:VCR::ResponseStatus
|
136
|
+
code: 200
|
137
|
+
message: OK
|
138
|
+
headers:
|
139
|
+
x-ua-compatible:
|
140
|
+
- IE=Edge
|
141
|
+
etag:
|
142
|
+
- "\"1bdbaec5ad251ca5c08f566581183515\""
|
143
|
+
connection:
|
144
|
+
- close
|
145
|
+
content-type:
|
146
|
+
- application/xml; charset=utf-8
|
147
|
+
x-runtime:
|
148
|
+
- "23"
|
149
|
+
date:
|
150
|
+
- Thu, 14 Oct 2010 06:16:35 GMT
|
151
|
+
server:
|
152
|
+
- nginx/0.7.65
|
153
|
+
content-length:
|
154
|
+
- "454"
|
155
|
+
set-cookie:
|
156
|
+
- _recurly_session=d02ab23265088a57afdee16fc83ac3da; domain=.recurly.com; path=/; Secure; HttpOnly
|
157
|
+
cache-control:
|
158
|
+
- private, max-age=0, must-revalidate
|
159
|
+
body: |
|
160
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
161
|
+
<credit type="credit">
|
162
|
+
<id>15d2e2a10f8347eb93799f5cce622dbe</id>
|
163
|
+
<account_code>credit-lookup-1286681343</account_code>
|
164
|
+
<amount_in_cents type="integer">-1315</amount_in_cents>
|
165
|
+
<start_date type="datetime">2010-10-14T06:16:34Z</start_date>
|
166
|
+
<end_date nil="true" type="datetime"></end_date>
|
167
|
+
<description>free moniez 4 u</description>
|
168
|
+
<created_at type="datetime">2010-10-14T06:16:34Z</created_at>
|
169
|
+
</credit>
|
170
|
+
|
171
|
+
http_version: "1.1"
|
@@ -0,0 +1,337 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<company-name>Recurly Ruby Gem</company-name>
|
10
|
+
<account-code>invoice-create-1286679184</account-code>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<first-name>Verena</first-name>
|
14
|
+
</account>
|
15
|
+
|
16
|
+
headers:
|
17
|
+
accept:
|
18
|
+
- "*/*"
|
19
|
+
connection:
|
20
|
+
- close
|
21
|
+
content-type:
|
22
|
+
- application/xml
|
23
|
+
authorization:
|
24
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
25
|
+
response: !ruby/struct:VCR::Response
|
26
|
+
status: !ruby/struct:VCR::ResponseStatus
|
27
|
+
code: 201
|
28
|
+
message: Created
|
29
|
+
headers:
|
30
|
+
location:
|
31
|
+
- https://recurlytest3-test.recurly.com/accounts/invoice-create-1286679184
|
32
|
+
connection:
|
33
|
+
- close
|
34
|
+
content-type:
|
35
|
+
- application/xml; charset=utf-8
|
36
|
+
x-runtime:
|
37
|
+
- "581"
|
38
|
+
date:
|
39
|
+
- Thu, 14 Oct 2010 06:16:36 GMT
|
40
|
+
server:
|
41
|
+
- nginx/0.7.65
|
42
|
+
content-length:
|
43
|
+
- "583"
|
44
|
+
set-cookie:
|
45
|
+
- account_credentials=7deaedda2a5ea73128ccc3edb8a835fa915467f4018588ce82ea96695c8e06788e4e5c83b220a644883b0e2c4eb4c3e3d7d6369f45f8c6c40e36bdc4a89e0fe8%3A%3A; domain=.recurly.com; path=/; secure; HttpOnly
|
46
|
+
- ""
|
47
|
+
- _recurly_session=ea4ee1a2599c15bd470ba266cc1299a8; domain=.recurly.com; path=/; Secure; HttpOnly
|
48
|
+
cache-control:
|
49
|
+
- no-cache
|
50
|
+
body: |
|
51
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
52
|
+
<account>
|
53
|
+
<id>invoice-create-1286679184</id>
|
54
|
+
<account_code>invoice-create-1286679184</account_code>
|
55
|
+
<username></username>
|
56
|
+
<email>verena@test.com</email>
|
57
|
+
<first_name>Verena</first_name>
|
58
|
+
<last_name>Test</last_name>
|
59
|
+
<company_name>Recurly Ruby Gem</company_name>
|
60
|
+
<balance_in_cents type="integer">0</balance_in_cents>
|
61
|
+
<closed type="boolean">false</closed>
|
62
|
+
<hosted_login_token>db9d50a63710436791b342d63a4dd9d0</hosted_login_token>
|
63
|
+
<created_at type="datetime">2010-10-14T06:16:36Z</created_at>
|
64
|
+
<state>active</state>
|
65
|
+
</account>
|
66
|
+
|
67
|
+
http_version: "1.1"
|
68
|
+
- !ruby/struct:VCR::HTTPInteraction
|
69
|
+
request: !ruby/struct:VCR::Request
|
70
|
+
method: :put
|
71
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1286679184/billing_info.xml
|
72
|
+
body: |
|
73
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
74
|
+
<billing-info>
|
75
|
+
<city>San Francisco</city>
|
76
|
+
<address1>123 Test St</address1>
|
77
|
+
<zip>94115</zip>
|
78
|
+
<account-code>invoice-create-1286679184</account-code>
|
79
|
+
<country>US</country>
|
80
|
+
<credit-card>
|
81
|
+
<number>1</number>
|
82
|
+
<month type="integer">10</month>
|
83
|
+
<year type="integer">2011</year>
|
84
|
+
<verification-value>123</verification-value>
|
85
|
+
</credit-card>
|
86
|
+
<last-name>Test</last-name>
|
87
|
+
<first-name>Verena</first-name>
|
88
|
+
<state>CA</state>
|
89
|
+
</billing-info>
|
90
|
+
|
91
|
+
headers:
|
92
|
+
accept:
|
93
|
+
- "*/*"
|
94
|
+
connection:
|
95
|
+
- close
|
96
|
+
content-type:
|
97
|
+
- application/xml
|
98
|
+
authorization:
|
99
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
100
|
+
response: !ruby/struct:VCR::Response
|
101
|
+
status: !ruby/struct:VCR::ResponseStatus
|
102
|
+
code: 200
|
103
|
+
message: OK
|
104
|
+
headers:
|
105
|
+
x-ua-compatible:
|
106
|
+
- IE=Edge
|
107
|
+
etag:
|
108
|
+
- "\"19519cd10e3044273810c3b88144e6bb\""
|
109
|
+
connection:
|
110
|
+
- close
|
111
|
+
content-type:
|
112
|
+
- application/xml; charset=utf-8
|
113
|
+
x-runtime:
|
114
|
+
- "60"
|
115
|
+
date:
|
116
|
+
- Thu, 14 Oct 2010 06:16:37 GMT
|
117
|
+
server:
|
118
|
+
- nginx/0.7.65
|
119
|
+
content-length:
|
120
|
+
- "639"
|
121
|
+
set-cookie:
|
122
|
+
- _recurly_session=ed9dfed0eb507fbf24ceaa6ab27b8c44; domain=.recurly.com; path=/; Secure; HttpOnly
|
123
|
+
cache-control:
|
124
|
+
- private, max-age=0, must-revalidate
|
125
|
+
body: |
|
126
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
127
|
+
<billing_info>
|
128
|
+
<account_code>invoice-create-1286679184</account_code>
|
129
|
+
<first_name>Verena</first_name>
|
130
|
+
<last_name>Test</last_name>
|
131
|
+
<address1>123 Test St</address1>
|
132
|
+
<address2></address2>
|
133
|
+
<city>San Francisco</city>
|
134
|
+
<state>CA</state>
|
135
|
+
<country>US</country>
|
136
|
+
<zip>94115</zip>
|
137
|
+
<phone></phone>
|
138
|
+
<vat_number></vat_number>
|
139
|
+
<ip_address></ip_address>
|
140
|
+
<credit_card>
|
141
|
+
<type>bogus</type>
|
142
|
+
<last_four>1</last_four>
|
143
|
+
<month type="integer">10</month>
|
144
|
+
<year type="integer">2011</year>
|
145
|
+
</credit_card>
|
146
|
+
<updated_at type="datetime">2010-10-14T06:16:37Z</updated_at>
|
147
|
+
</billing_info>
|
148
|
+
|
149
|
+
http_version: "1.1"
|
150
|
+
- !ruby/struct:VCR::HTTPInteraction
|
151
|
+
request: !ruby/struct:VCR::Request
|
152
|
+
method: :post
|
153
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1286679184/charges.xml
|
154
|
+
body: |
|
155
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
156
|
+
<charge>
|
157
|
+
<amount type="float">10.0</amount>
|
158
|
+
<description>charge description</description>
|
159
|
+
</charge>
|
160
|
+
|
161
|
+
headers:
|
162
|
+
accept:
|
163
|
+
- "*/*"
|
164
|
+
connection:
|
165
|
+
- close
|
166
|
+
content-type:
|
167
|
+
- application/xml
|
168
|
+
authorization:
|
169
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
170
|
+
response: !ruby/struct:VCR::Response
|
171
|
+
status: !ruby/struct:VCR::ResponseStatus
|
172
|
+
code: 201
|
173
|
+
message: Created
|
174
|
+
headers:
|
175
|
+
connection:
|
176
|
+
- close
|
177
|
+
content-type:
|
178
|
+
- application/xml; charset=utf-8
|
179
|
+
x-runtime:
|
180
|
+
- "62"
|
181
|
+
date:
|
182
|
+
- Thu, 14 Oct 2010 06:16:38 GMT
|
183
|
+
server:
|
184
|
+
- nginx/0.7.65
|
185
|
+
content-length:
|
186
|
+
- "457"
|
187
|
+
set-cookie:
|
188
|
+
- _recurly_session=1331cb2e27db000a26fd52301491df28; domain=.recurly.com; path=/; Secure; HttpOnly
|
189
|
+
cache-control:
|
190
|
+
- no-cache
|
191
|
+
body: |
|
192
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
193
|
+
<charge type="charge">
|
194
|
+
<id>30996569406140caaac01871864811aa</id>
|
195
|
+
<account_code>invoice-create-1286679184</account_code>
|
196
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
197
|
+
<start_date type="datetime">2010-10-14T06:16:38Z</start_date>
|
198
|
+
<end_date nil="true" type="datetime"></end_date>
|
199
|
+
<description>charge description</description>
|
200
|
+
<created_at type="datetime">2010-10-14T06:16:38Z</created_at>
|
201
|
+
</charge>
|
202
|
+
|
203
|
+
http_version: "1.1"
|
204
|
+
- !ruby/struct:VCR::HTTPInteraction
|
205
|
+
request: !ruby/struct:VCR::Request
|
206
|
+
method: :post
|
207
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1286679184/charges.xml
|
208
|
+
body: |
|
209
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
210
|
+
<charge>
|
211
|
+
<amount type="float">15.0</amount>
|
212
|
+
<description>charge description</description>
|
213
|
+
</charge>
|
214
|
+
|
215
|
+
headers:
|
216
|
+
accept:
|
217
|
+
- "*/*"
|
218
|
+
connection:
|
219
|
+
- close
|
220
|
+
content-type:
|
221
|
+
- application/xml
|
222
|
+
authorization:
|
223
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
224
|
+
response: !ruby/struct:VCR::Response
|
225
|
+
status: !ruby/struct:VCR::ResponseStatus
|
226
|
+
code: 201
|
227
|
+
message: Created
|
228
|
+
headers:
|
229
|
+
connection:
|
230
|
+
- close
|
231
|
+
content-type:
|
232
|
+
- application/xml; charset=utf-8
|
233
|
+
x-runtime:
|
234
|
+
- "41"
|
235
|
+
date:
|
236
|
+
- Thu, 14 Oct 2010 06:16:39 GMT
|
237
|
+
server:
|
238
|
+
- nginx/0.7.65
|
239
|
+
content-length:
|
240
|
+
- "457"
|
241
|
+
set-cookie:
|
242
|
+
- _recurly_session=929f6961d86093818a353abd1082fdc3; domain=.recurly.com; path=/; Secure; HttpOnly
|
243
|
+
cache-control:
|
244
|
+
- no-cache
|
245
|
+
body: |
|
246
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
247
|
+
<charge type="charge">
|
248
|
+
<id>422eac6ffb3b4042896d2f729481a7d5</id>
|
249
|
+
<account_code>invoice-create-1286679184</account_code>
|
250
|
+
<amount_in_cents type="integer">1500</amount_in_cents>
|
251
|
+
<start_date type="datetime">2010-10-14T06:16:39Z</start_date>
|
252
|
+
<end_date nil="true" type="datetime"></end_date>
|
253
|
+
<description>charge description</description>
|
254
|
+
<created_at type="datetime">2010-10-14T06:16:39Z</created_at>
|
255
|
+
</charge>
|
256
|
+
|
257
|
+
http_version: "1.1"
|
258
|
+
- !ruby/struct:VCR::HTTPInteraction
|
259
|
+
request: !ruby/struct:VCR::Request
|
260
|
+
method: :post
|
261
|
+
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/invoice-create-1286679184/invoices.xml
|
262
|
+
body: |
|
263
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
264
|
+
<invoice>
|
265
|
+
</invoice>
|
266
|
+
|
267
|
+
headers:
|
268
|
+
accept:
|
269
|
+
- "*/*"
|
270
|
+
connection:
|
271
|
+
- close
|
272
|
+
content-type:
|
273
|
+
- application/xml
|
274
|
+
authorization:
|
275
|
+
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
276
|
+
response: !ruby/struct:VCR::Response
|
277
|
+
status: !ruby/struct:VCR::ResponseStatus
|
278
|
+
code: 201
|
279
|
+
message: Created
|
280
|
+
headers:
|
281
|
+
location:
|
282
|
+
- https://recurlytest3-test.recurly.com/invoices/77d0388529524ba8b06e903533808b16
|
283
|
+
connection:
|
284
|
+
- close
|
285
|
+
content-type:
|
286
|
+
- application/xml; charset=utf-8
|
287
|
+
x-runtime:
|
288
|
+
- "68"
|
289
|
+
date:
|
290
|
+
- Thu, 14 Oct 2010 06:16:39 GMT
|
291
|
+
server:
|
292
|
+
- nginx/0.7.65
|
293
|
+
content-length:
|
294
|
+
- "1517"
|
295
|
+
set-cookie:
|
296
|
+
- _recurly_session=fbc807d9b9ae37307bd1a18a73bc176f; domain=.recurly.com; path=/; Secure; HttpOnly
|
297
|
+
cache-control:
|
298
|
+
- no-cache
|
299
|
+
body: |
|
300
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
301
|
+
<invoice>
|
302
|
+
<id>77d0388529524ba8b06e903533808b16</id>
|
303
|
+
<account_code>invoice-create-1286679184</account_code>
|
304
|
+
<date type="datetime">2010-10-14T06:16:39Z</date>
|
305
|
+
<invoice_number type="integer">1734</invoice_number>
|
306
|
+
<vat_number></vat_number>
|
307
|
+
<status>open</status>
|
308
|
+
<subtotal_in_cents type="integer">2500</subtotal_in_cents>
|
309
|
+
<total_in_cents type="integer">2500</total_in_cents>
|
310
|
+
<vat_amount_in_cents type="integer">0</vat_amount_in_cents>
|
311
|
+
<paid_in_cents type="integer">0</paid_in_cents>
|
312
|
+
<total_due_in_cents type="integer">2500</total_due_in_cents>
|
313
|
+
<line_items type="array">
|
314
|
+
<line_item>
|
315
|
+
<id>30996569406140caaac01871864811aa</id>
|
316
|
+
<type>charge</type>
|
317
|
+
<amount_in_cents type="integer">1000</amount_in_cents>
|
318
|
+
<start_date type="datetime">2010-10-14T06:16:38Z</start_date>
|
319
|
+
<end_date nil="true" type="datetime"></end_date>
|
320
|
+
<description>charge description</description>
|
321
|
+
<created_at type="datetime">2010-10-14T06:16:38Z</created_at>
|
322
|
+
</line_item>
|
323
|
+
<line_item>
|
324
|
+
<id>422eac6ffb3b4042896d2f729481a7d5</id>
|
325
|
+
<type>charge</type>
|
326
|
+
<amount_in_cents type="integer">1500</amount_in_cents>
|
327
|
+
<start_date type="datetime">2010-10-14T06:16:39Z</start_date>
|
328
|
+
<end_date nil="true" type="datetime"></end_date>
|
329
|
+
<description>charge description</description>
|
330
|
+
<created_at type="datetime">2010-10-14T06:16:39Z</created_at>
|
331
|
+
</line_item>
|
332
|
+
</line_items>
|
333
|
+
<payments type="array">
|
334
|
+
</payments>
|
335
|
+
</invoice>
|
336
|
+
|
337
|
+
http_version: "1.1"
|