recurly 0.4.7 → 0.4.8
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 +6 -0
- data/lib/recurly/base.rb +15 -14
- data/lib/recurly/subscription.rb +2 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -10
- data/spec/integration/transparent_spec.rb +72 -0
- data/spec/unit/transparent_spec.rb +6 -6
- data/spec/vcr/account/accept-language-account/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/close/{1301979678.yml → 1296674173.yml} +37 -39
- data/spec/vcr/account/create-blank/{1301979678.yml → 1296674173.yml} +8 -12
- data/spec/vcr/account/create-duplicate/{1301979678.yml → 1296674173.yml} +21 -27
- data/spec/vcr/account/create-min/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/create/{1301979678.yml → 1296674173.yml} +16 -18
- data/spec/vcr/account/find/{1301979678.yml → 1296674173.yml} +36 -38
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1301979678.yml → 1296674173.yml} +59 -65
- data/spec/vcr/billing/create/{1302025874.yml → 1296690812.yml} +43 -45
- data/spec/vcr/billing/destroy/{1302025874.yml → 1296690812.yml} +58 -60
- data/spec/vcr/billing/find/{1302025874.yml → 1296690812.yml} +56 -58
- data/spec/vcr/billing/update/{1302025874.yml → 1296690812.yml} +59 -61
- data/spec/vcr/charge/create/{1297746103.yml → 1296674173.yml} +58 -64
- data/spec/vcr/charge/delete-uninvoiced/{1297746103.yml → 1296674173.yml} +66 -72
- data/spec/vcr/charge/list-all/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/list-invoiced/{1297746103.yml → 1296674173.yml} +115 -131
- data/spec/vcr/charge/list-pending/{1297746103.yml → 1296674173.yml} +77 -91
- data/spec/vcr/charge/lookup/{1297746103.yml → 1296674173.yml} +43 -49
- data/spec/vcr/coupon/create/1296688818.yml +183 -0
- data/spec/vcr/coupon/create/1296774903.yml +183 -0
- data/spec/vcr/coupon/destroy/1296688818.yml +207 -0
- data/spec/vcr/coupon/destroy/1296774903.yml +207 -0
- data/spec/vcr/{coupon/create/1299714521.yml → credit/create/1296674173.yml} +34 -32
- data/spec/vcr/{billing/errors/1302025874.yml → credit/delete/1296674173.yml} +33 -42
- data/spec/vcr/{coupon/destroy/1299714521.yml → credit/list/1296674173.yml} +35 -33
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1297746103.yml → 1296674173.yml} +40 -42
- data/spec/vcr/invoice/create/{1297746103.yml → 1296674173.yml} +77 -83
- data/spec/vcr/invoice/list/{1297746103.yml → 1296674173.yml} +107 -113
- data/spec/vcr/invoice/lookup/{1297746103.yml → 1296674173.yml} +77 -81
- data/spec/vcr/plan/all.yml +117 -98
- data/spec/vcr/plan/delete/1296674173.yml +225 -0
- data/spec/vcr/plan/find.yml +66 -36
- data/spec/vcr/plan/update.yml +64 -144
- data/spec/vcr/subscription/addons/add/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/create/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/addons/remove/{1301885121.yml → 1296674173.yml} +58 -51
- data/spec/vcr/subscription/cancel-with-code/{1301881900.yml → 1296674173.yml} +135 -133
- data/spec/vcr/subscription/cancel/{1301881900.yml → 1296674173.yml} +117 -114
- data/spec/vcr/subscription/change1/{1301881900.yml → 1296674173.yml} +113 -110
- data/spec/vcr/subscription/change2/{1301881900.yml → 1296674173.yml} +112 -109
- data/spec/vcr/subscription/create/{1301881900.yml → 1296674173.yml} +65 -59
- data/spec/vcr/subscription/find/{1301881900.yml → 1296674173.yml} +81 -76
- data/spec/vcr/subscription/reactivate/{1301881900.yml → 1296674173.yml} +127 -124
- data/spec/vcr/subscription/refund-full/1296674173.yml +400 -0
- data/spec/vcr/subscription/refund-none/{1301881900.yml → 1296674173.yml} +106 -102
- data/spec/vcr/subscription/refund-partial/1296674173.yml +400 -0
- data/spec/vcr/transaction/all/{1301883347.yml → 1296674173.yml} +126 -126
- data/spec/vcr/transaction/create-no-account/{1301883347.yml → 1296674173.yml} +16 -16
- data/spec/vcr/transaction/create-with-account/{1301883347.yml → 1296674173.yml} +45 -51
- data/spec/vcr/transaction/list-filled/{1301883347.yml → 1296674173.yml} +91 -221
- data/spec/vcr/transaction/list-initial/{1301883347.yml → 1296674173.yml} +44 -46
- data/spec/vcr/transaction/lookup/{1301883347.yml → 1296674173.yml} +107 -121
- data/spec/vcr/transaction/refund/{1301883347.yml → 1296674173.yml} +57 -63
- data/spec/vcr/transaction/void/{1301883347.yml → 1296674173.yml} +69 -75
- 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
- metadata +97 -155
- data/spec/vcr/account/list/1301979678.yml +0 -1588
- data/spec/vcr/credit/create/1299714599.yml +0 -186
- data/spec/vcr/credit/delete/1299714599.yml +0 -265
- data/spec/vcr/credit/list/1299714599.yml +0 -330
- data/spec/vcr/credit/lookup/1299714599.yml +0 -186
- data/spec/vcr/subscription/refund-full/1301881900.yml +0 -334
- data/spec/vcr/subscription/refund-partial/1301881900.yml +0 -334
- data/spec/vcr/transparent/post-url/1301879142.yml +0 -129
@@ -2,31 +2,27 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>
|
9
|
+
<account-code>credit-list-1296674173</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
19
15
|
</account>
|
20
16
|
|
21
17
|
headers:
|
22
18
|
authorization:
|
23
|
-
- Basic
|
24
|
-
user-agent:
|
25
|
-
- Recurly Ruby Client v0.4.6
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
26
20
|
content-type:
|
27
21
|
- application/xml
|
28
22
|
accept:
|
29
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
30
26
|
connection:
|
31
27
|
- close
|
32
28
|
response: !ruby/struct:VCR::Response
|
@@ -37,26 +33,28 @@
|
|
37
33
|
cache-control:
|
38
34
|
- no-cache
|
39
35
|
location:
|
40
|
-
- http://
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/credit-list-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "626"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
|
-
- "
|
42
|
+
- "577"
|
47
43
|
server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
45
|
date:
|
50
|
-
- Thu,
|
46
|
+
- Thu, 03 Feb 2011 22:19:39 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=d86c504a0562390e68171373cc3b2184ad86995c1c38a5ce1c096465e3ad732c653c3a125aa8d700dc77ad462cd058a505b6d1c36eef5296c18f86c0d475aa26%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=22a39ea08b27ec7736f5a0c6c419fa03; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>
|
59
|
-
<account_code>
|
56
|
+
<id>credit-list-1296674173</id>
|
57
|
+
<account_code>credit-list-1296674173</account_code>
|
60
58
|
<username></username>
|
61
59
|
<email>verena@test.com</email>
|
62
60
|
<first_name>Verena</first_name>
|
@@ -64,8 +62,8 @@
|
|
64
62
|
<company_name>Recurly Ruby Gem</company_name>
|
65
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
66
64
|
<closed type="boolean">false</closed>
|
67
|
-
<hosted_login_token>
|
68
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>da5204b982da4345903186d77051c22b</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:19:39Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,47 +71,51 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :post
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/credit-list-1296674173/credits.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
|
-
<
|
80
|
-
<
|
81
|
-
|
77
|
+
<credit>
|
78
|
+
<amount type="integer">1</amount>
|
79
|
+
<description>one</description>
|
80
|
+
</credit>
|
82
81
|
|
83
82
|
headers:
|
84
83
|
authorization:
|
85
|
-
- Basic
|
86
|
-
user-agent:
|
87
|
-
- Recurly Ruby Client v0.4.6
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
88
85
|
content-type:
|
89
86
|
- application/xml
|
90
87
|
accept:
|
91
88
|
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
92
91
|
connection:
|
93
92
|
- close
|
94
93
|
response: !ruby/struct:VCR::Response
|
95
94
|
status: !ruby/struct:VCR::ResponseStatus
|
96
|
-
code:
|
97
|
-
message: "
|
95
|
+
code: 422
|
96
|
+
message: ""
|
98
97
|
headers:
|
99
98
|
cache-control:
|
100
99
|
- no-cache
|
100
|
+
x-runtime:
|
101
|
+
- "406"
|
101
102
|
content-type:
|
102
103
|
- application/xml; charset=utf-8
|
103
104
|
content-length:
|
104
|
-
- "
|
105
|
+
- "223"
|
105
106
|
server:
|
106
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
107
108
|
date:
|
108
|
-
- Thu,
|
109
|
+
- Thu, 03 Feb 2011 22:19:41 GMT
|
109
110
|
connection:
|
110
111
|
- close
|
111
112
|
set-cookie:
|
112
|
-
- _recurly_session=
|
113
|
+
- _recurly_session=51aa080a604f6dd4eb995da2be14e4a9; domain=.recurly.local; path=/; HttpOnly
|
113
114
|
body: |
|
114
115
|
<?xml version="1.0" encoding="UTF-8"?>
|
115
116
|
<errors>
|
116
|
-
<error>
|
117
|
+
<error field="unit_amount_in_cents">Unit amount in cents can't be blank</error>
|
118
|
+
<error field="unit_amount_in_cents">Unit amount in cents is not a number</error>
|
117
119
|
</errors>
|
118
120
|
|
119
121
|
http_version: "1.1"
|
@@ -0,0 +1,121 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
|
+
body: |
|
7
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
8
|
+
<account>
|
9
|
+
<account-code>credit-lookup-1296674173</account-code>
|
10
|
+
<first-name>Verena</first-name>
|
11
|
+
<last-name>Test</last-name>
|
12
|
+
<email>verena@test.com</email>
|
13
|
+
<company-name>Recurly Ruby Gem</company-name>
|
14
|
+
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
+
</account>
|
16
|
+
|
17
|
+
headers:
|
18
|
+
authorization:
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
+
content-type:
|
21
|
+
- application/xml
|
22
|
+
accept:
|
23
|
+
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
26
|
+
connection:
|
27
|
+
- close
|
28
|
+
response: !ruby/struct:VCR::Response
|
29
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
|
+
code: 201
|
31
|
+
message: "Created "
|
32
|
+
headers:
|
33
|
+
cache-control:
|
34
|
+
- no-cache
|
35
|
+
location:
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/credit-lookup-1296674173
|
37
|
+
x-runtime:
|
38
|
+
- "491"
|
39
|
+
content-type:
|
40
|
+
- application/xml; charset=utf-8
|
41
|
+
content-length:
|
42
|
+
- "581"
|
43
|
+
server:
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
45
|
+
date:
|
46
|
+
- Thu, 03 Feb 2011 22:19:44 GMT
|
47
|
+
connection:
|
48
|
+
- close
|
49
|
+
set-cookie:
|
50
|
+
- account_credentials=1197676125ce16ccfea313d064a8523f58a9420f0c704a8509499ea580be26898e6bb6928583a4d46b5c0d9ed09125557b70759705ae12b06b3f169100b9f437%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=6182947a2be94b25ac887df4d6a2ef7b; domain=.recurly.local; path=/; HttpOnly
|
53
|
+
body: |
|
54
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
55
|
+
<account>
|
56
|
+
<id>credit-lookup-1296674173</id>
|
57
|
+
<account_code>credit-lookup-1296674173</account_code>
|
58
|
+
<username></username>
|
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>56d6811b6e544ca489428f78129cf624</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:19:44Z</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
|
73
|
+
method: :post
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/credit-lookup-1296674173/credits.xml
|
75
|
+
body: |
|
76
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
77
|
+
<credit>
|
78
|
+
<amount type="float">13.15</amount>
|
79
|
+
<description>free moniez 4 u</description>
|
80
|
+
</credit>
|
81
|
+
|
82
|
+
headers:
|
83
|
+
authorization:
|
84
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
85
|
+
content-type:
|
86
|
+
- application/xml
|
87
|
+
accept:
|
88
|
+
- "*/*"
|
89
|
+
user-agent:
|
90
|
+
- Ruby
|
91
|
+
connection:
|
92
|
+
- close
|
93
|
+
response: !ruby/struct:VCR::Response
|
94
|
+
status: !ruby/struct:VCR::ResponseStatus
|
95
|
+
code: 422
|
96
|
+
message: ""
|
97
|
+
headers:
|
98
|
+
cache-control:
|
99
|
+
- no-cache
|
100
|
+
x-runtime:
|
101
|
+
- "407"
|
102
|
+
content-type:
|
103
|
+
- application/xml; charset=utf-8
|
104
|
+
content-length:
|
105
|
+
- "223"
|
106
|
+
server:
|
107
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
108
|
+
date:
|
109
|
+
- Thu, 03 Feb 2011 22:19:46 GMT
|
110
|
+
connection:
|
111
|
+
- close
|
112
|
+
set-cookie:
|
113
|
+
- _recurly_session=541fc18675afc06fec2720190f6f202a; domain=.recurly.local; path=/; HttpOnly
|
114
|
+
body: |
|
115
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
116
|
+
<errors>
|
117
|
+
<error field="unit_amount_in_cents">Unit amount in cents can't be blank</error>
|
118
|
+
<error field="unit_amount_in_cents">Unit amount in cents is not a number</error>
|
119
|
+
</errors>
|
120
|
+
|
121
|
+
http_version: "1.1"
|
@@ -2,31 +2,27 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
5
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts.xml
|
6
6
|
body: |
|
7
7
|
<?xml version="1.0" encoding="UTF-8"?>
|
8
8
|
<account>
|
9
|
-
<account-code>invoice-create-no-charges-
|
9
|
+
<account-code>invoice-create-no-charges-1296674173</account-code>
|
10
10
|
<first-name>Verena</first-name>
|
11
11
|
<last-name>Test</last-name>
|
12
12
|
<email>verena@test.com</email>
|
13
13
|
<company-name>Recurly Ruby Gem</company-name>
|
14
|
-
<billing-info>
|
15
|
-
<credit-card>
|
16
|
-
</credit-card>
|
17
|
-
</billing-info>
|
18
14
|
<accept-language type="yaml" nil="true"></accept-language>
|
19
15
|
</account>
|
20
16
|
|
21
17
|
headers:
|
22
18
|
authorization:
|
23
|
-
- Basic
|
24
|
-
user-agent:
|
25
|
-
- Recurly Ruby Client v0.4.6
|
19
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
26
20
|
content-type:
|
27
21
|
- application/xml
|
28
22
|
accept:
|
29
23
|
- "*/*"
|
24
|
+
user-agent:
|
25
|
+
- Ruby
|
30
26
|
connection:
|
31
27
|
- close
|
32
28
|
response: !ruby/struct:VCR::Response
|
@@ -37,26 +33,28 @@
|
|
37
33
|
cache-control:
|
38
34
|
- no-cache
|
39
35
|
location:
|
40
|
-
- http://
|
36
|
+
- http://litle-test.recurly.local:3000/accounts/invoice-create-no-charges-1296674173
|
41
37
|
x-runtime:
|
42
|
-
- "
|
38
|
+
- "623"
|
43
39
|
content-type:
|
44
40
|
- application/xml; charset=utf-8
|
45
41
|
content-length:
|
46
42
|
- "605"
|
47
43
|
server:
|
48
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
44
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
49
45
|
date:
|
50
|
-
- Thu,
|
46
|
+
- Thu, 03 Feb 2011 22:20:05 GMT
|
51
47
|
connection:
|
52
48
|
- close
|
53
49
|
set-cookie:
|
54
|
-
-
|
50
|
+
- account_credentials=28be163e1f94a7ceae69999f3a3a7744c48ce3196a699a544b41e0fe0b295430413fed60c84d800ede07c5c1b9518402eec01d3ecaedaa26ff9e59759933b26b%3A%3A; domain=.recurly.local; path=/
|
51
|
+
- ""
|
52
|
+
- _recurly_session=cb720a4d65d1589d60dc78151587a22b; domain=.recurly.local; path=/; HttpOnly
|
55
53
|
body: |
|
56
54
|
<?xml version="1.0" encoding="UTF-8"?>
|
57
55
|
<account>
|
58
|
-
<id>invoice-create-no-charges-
|
59
|
-
<account_code>invoice-create-no-charges-
|
56
|
+
<id>invoice-create-no-charges-1296674173</id>
|
57
|
+
<account_code>invoice-create-no-charges-1296674173</account_code>
|
60
58
|
<username></username>
|
61
59
|
<email>verena@test.com</email>
|
62
60
|
<first_name>Verena</first_name>
|
@@ -64,8 +62,8 @@
|
|
64
62
|
<company_name>Recurly Ruby Gem</company_name>
|
65
63
|
<balance_in_cents type="integer">0</balance_in_cents>
|
66
64
|
<closed type="boolean">false</closed>
|
67
|
-
<hosted_login_token>
|
68
|
-
<created_at type="datetime">2011-
|
65
|
+
<hosted_login_token>3c9caa2ce2564b09933c85b108bf366b</hosted_login_token>
|
66
|
+
<created_at type="datetime">2011-02-03T22:20:05Z</created_at>
|
69
67
|
<state>active</state>
|
70
68
|
</account>
|
71
69
|
|
@@ -73,12 +71,10 @@
|
|
73
71
|
- !ruby/struct:VCR::HTTPInteraction
|
74
72
|
request: !ruby/struct:VCR::Request
|
75
73
|
method: :put
|
76
|
-
uri: http://
|
74
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-no-charges-1296674173/billing_info.xml
|
77
75
|
body: |
|
78
76
|
<?xml version="1.0" encoding="UTF-8"?>
|
79
77
|
<billing-info>
|
80
|
-
<first-name>Verena</first-name>
|
81
|
-
<last-name>Test</last-name>
|
82
78
|
<address1>123 Test St</address1>
|
83
79
|
<city>San Francisco</city>
|
84
80
|
<state>CA</state>
|
@@ -87,21 +83,23 @@
|
|
87
83
|
<credit-card>
|
88
84
|
<number>4111111111111111</number>
|
89
85
|
<year type="integer">2012</year>
|
90
|
-
<month type="integer">
|
86
|
+
<month type="integer">2</month>
|
91
87
|
<verification-value>123</verification-value>
|
92
88
|
</credit-card>
|
93
|
-
<account-code>invoice-create-no-charges-
|
89
|
+
<account-code>invoice-create-no-charges-1296674173</account-code>
|
90
|
+
<first-name>Verena</first-name>
|
91
|
+
<last-name>Test</last-name>
|
94
92
|
</billing-info>
|
95
93
|
|
96
94
|
headers:
|
97
95
|
authorization:
|
98
|
-
- Basic
|
99
|
-
user-agent:
|
100
|
-
- Recurly Ruby Client v0.4.6
|
96
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
101
97
|
content-type:
|
102
98
|
- application/xml
|
103
99
|
accept:
|
104
100
|
- "*/*"
|
101
|
+
user-agent:
|
102
|
+
- Ruby
|
105
103
|
connection:
|
106
104
|
- close
|
107
105
|
response: !ruby/struct:VCR::Response
|
@@ -110,27 +108,27 @@
|
|
110
108
|
message: "OK "
|
111
109
|
headers:
|
112
110
|
x-runtime:
|
113
|
-
- "
|
111
|
+
- "1491"
|
114
112
|
content-type:
|
115
113
|
- application/xml; charset=utf-8
|
116
114
|
etag:
|
117
|
-
- "\"
|
115
|
+
- "\"9a4b5c014f959f4bfe74ea7f634f5bf9\""
|
118
116
|
cache-control:
|
119
117
|
- private, max-age=0, must-revalidate
|
120
118
|
content-length:
|
121
119
|
- "651"
|
122
120
|
server:
|
123
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
124
122
|
date:
|
125
|
-
- Thu,
|
123
|
+
- Thu, 03 Feb 2011 22:20:08 GMT
|
126
124
|
connection:
|
127
125
|
- close
|
128
126
|
set-cookie:
|
129
|
-
- _recurly_session=
|
127
|
+
- _recurly_session=af039358179357c805316807a2fdba1d; domain=.recurly.local; path=/; HttpOnly
|
130
128
|
body: |
|
131
129
|
<?xml version="1.0" encoding="UTF-8"?>
|
132
130
|
<billing_info>
|
133
|
-
<account_code>invoice-create-no-charges-
|
131
|
+
<account_code>invoice-create-no-charges-1296674173</account_code>
|
134
132
|
<first_name>Verena</first_name>
|
135
133
|
<last_name>Test</last_name>
|
136
134
|
<address1>123 Test St</address1>
|
@@ -145,17 +143,17 @@
|
|
145
143
|
<credit_card>
|
146
144
|
<type>visa</type>
|
147
145
|
<last_four>1111</last_four>
|
148
|
-
<month type="integer">
|
146
|
+
<month type="integer">2</month>
|
149
147
|
<year type="integer">2012</year>
|
150
148
|
</credit_card>
|
151
|
-
<updated_at type="datetime">2011-
|
149
|
+
<updated_at type="datetime">2011-02-03T22:20:08Z</updated_at>
|
152
150
|
</billing_info>
|
153
151
|
|
154
152
|
http_version: "1.1"
|
155
153
|
- !ruby/struct:VCR::HTTPInteraction
|
156
154
|
request: !ruby/struct:VCR::Request
|
157
155
|
method: :post
|
158
|
-
uri: http://
|
156
|
+
uri: http://isaac%40recurly.com:isaac1024@litle-test.recurly.local:3000/accounts/invoice-create-no-charges-1296674173/invoices.xml
|
159
157
|
body: |
|
160
158
|
<?xml version="1.0" encoding="UTF-8"?>
|
161
159
|
<invoice>
|
@@ -163,13 +161,13 @@
|
|
163
161
|
|
164
162
|
headers:
|
165
163
|
authorization:
|
166
|
-
- Basic
|
167
|
-
user-agent:
|
168
|
-
- Recurly Ruby Client v0.4.6
|
164
|
+
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
169
165
|
content-type:
|
170
166
|
- application/xml
|
171
167
|
accept:
|
172
168
|
- "*/*"
|
169
|
+
user-agent:
|
170
|
+
- Ruby
|
173
171
|
connection:
|
174
172
|
- close
|
175
173
|
response: !ruby/struct:VCR::Response
|
@@ -180,19 +178,19 @@
|
|
180
178
|
cache-control:
|
181
179
|
- no-cache
|
182
180
|
x-runtime:
|
183
|
-
- "
|
181
|
+
- "54"
|
184
182
|
content-type:
|
185
183
|
- application/xml; charset=utf-8
|
186
184
|
content-length:
|
187
185
|
- "98"
|
188
186
|
server:
|
189
|
-
- WEBrick/1.3.1 (Ruby/1.9.2/
|
187
|
+
- WEBrick/1.3.1 (Ruby/1.9.2/2010-08-18)
|
190
188
|
date:
|
191
|
-
- Thu,
|
189
|
+
- Thu, 03 Feb 2011 22:20:10 GMT
|
192
190
|
connection:
|
193
191
|
- close
|
194
192
|
set-cookie:
|
195
|
-
- _recurly_session=
|
193
|
+
- _recurly_session=9c8403aefc985a58f956ba6534133b73; domain=.recurly.local; path=/; HttpOnly
|
196
194
|
body: |
|
197
195
|
<?xml version="1.0" encoding="UTF-8"?>
|
198
196
|
<errors>
|