recurly 0.3.2 → 0.3.3
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/LICENSE +1 -1
- data/README.md +4 -4
- data/lib/recurly.rb +8 -1
- data/lib/recurly/account.rb +5 -0
- data/lib/recurly/coupon.rb +5 -0
- data/lib/recurly/rails3/recurly.rake +3 -18
- data/lib/recurly/version.rb +1 -1
- data/spec/config/{test.yml → test1.yml} +0 -0
- data/spec/config/test2.yml +9 -0
- data/spec/integration/account_spec.rb +3 -3
- data/spec/integration/billing_info_spec.rb +4 -8
- data/spec/integration/coupon_spec.rb +49 -0
- data/spec/integration/plan_spec.rb +0 -28
- data/spec/integration/transaction_spec.rb +3 -3
- data/spec/spec_helper.rb +6 -0
- data/spec/support/factory.rb +1 -1
- data/spec/unit/config_spec.rb +9 -2
- data/spec/vcr/account/accept-language-account/{1294473653.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/close/{1294473761.yml → 1296674173.yml} +71 -67
- data/spec/vcr/account/create-blank/{1294473761.yml → 1296674173.yml} +20 -18
- data/spec/vcr/account/create-duplicate/{1294473761.yml → 1296674173.yml} +42 -38
- data/spec/vcr/account/create-min/{1294473761.yml → 1296674173.yml} +26 -24
- data/spec/vcr/account/create/{1294473761.yml → 1296674173.yml} +29 -27
- data/spec/vcr/account/find/{1294473761.yml → 1296674173.yml} +71 -63
- data/spec/vcr/account/list/1296674173.yml +55 -0
- data/spec/vcr/account/update/{1294473761.yml → 1296674173.yml} +113 -107
- data/spec/vcr/billing/create/{1286682213.yml → 1296690812.yml} +86 -82
- data/spec/vcr/billing/destroy/{1286682213.yml → 1296690812.yml} +126 -142
- data/spec/vcr/billing/find/{1286682213.yml → 1296690812.yml} +115 -109
- data/spec/vcr/billing/update/{1286682213.yml → 1296690812.yml} +119 -115
- data/spec/vcr/charge/create/{1287465632.yml → 1296674173.yml} +109 -103
- data/spec/vcr/charge/delete-uninvoiced/{1287465632.yml → 1296674173.yml} +129 -117
- data/spec/vcr/charge/list-all/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/list-invoiced/{1287465632.yml → 1296674173.yml} +195 -177
- data/spec/vcr/charge/list-pending/{1287465632.yml → 1296674173.yml} +131 -121
- data/spec/vcr/charge/lookup/{1287465632.yml → 1296674173.yml} +77 -71
- 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/credit/create/1296674173.yml +121 -0
- data/spec/vcr/credit/delete/1296674173.yml +121 -0
- data/spec/vcr/credit/list/1296674173.yml +121 -0
- data/spec/vcr/credit/lookup/1296674173.yml +121 -0
- data/spec/vcr/invoice/create-no-charges/{1287167121.yml → 1296674173.yml} +79 -75
- data/spec/vcr/invoice/create/{1287167121.yml → 1296674173.yml} +141 -130
- data/spec/vcr/invoice/list/{1287167121.yml → 1296674173.yml} +196 -180
- data/spec/vcr/invoice/lookup/{1287167121.yml → 1296674173.yml} +145 -133
- data/spec/vcr/plan/all.yml +86 -136
- data/spec/vcr/plan/delete/{1286677585.yml → 1296674173.yml} +87 -79
- data/spec/vcr/plan/find.yml +73 -91
- data/spec/vcr/plan/update.yml +80 -76
- data/spec/vcr/subscription/addons/add/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/create/1296674173.yml +225 -0
- data/spec/vcr/subscription/addons/remove/1296674173.yml +225 -0
- data/spec/vcr/subscription/cancel-with-code/{1287455769.yml → 1296674173.yml} +201 -201
- data/spec/vcr/subscription/cancel/{1287455769.yml → 1296674173.yml} +173 -175
- data/spec/vcr/subscription/change1/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/change2/{1287455769.yml → 1296674173.yml} +172 -174
- data/spec/vcr/subscription/create/{1287455769.yml → 1296674173.yml} +93 -99
- data/spec/vcr/subscription/find/{1287455769.yml → 1296674173.yml} +119 -123
- data/spec/vcr/subscription/reactivate/{1287455769.yml → 1296674173.yml} +194 -196
- data/spec/vcr/subscription/{refund-none/1287455769.yml → refund-full/1296674173.yml} +162 -162
- data/spec/vcr/subscription/{refund-full/1287455769.yml → refund-none/1296674173.yml} +162 -162
- data/spec/vcr/subscription/refund-partial/{1287455769.yml → 1296674173.yml} +162 -162
- data/spec/vcr/transaction/all/{1289558212.yml → 1296674173.yml} +155 -153
- data/spec/vcr/transaction/create-no-account/{1289558212.yml → 1296674173.yml} +37 -35
- data/spec/vcr/transaction/create-with-account/{1289558212.yml → 1296674173.yml} +91 -87
- data/spec/vcr/transaction/list-filled/{1289558212.yml → 1296674173.yml} +200 -190
- data/spec/vcr/transaction/list-initial/{1289558212.yml → 1296674173.yml} +92 -88
- data/spec/vcr/transaction/lookup/{1289558212.yml → 1296674173.yml} +241 -227
- data/spec/vcr/transaction/refund/{1289558212.yml → 1296674173.yml} +119 -115
- data/spec/vcr/transaction/void/1296674173.yml +352 -0
- metadata +122 -122
- data/spec/config/recurly.yml +0 -4
- data/spec/vcr/account/accept-language-account/1294473761.yml +0 -68
- data/spec/vcr/account/accept-language/1294473117.yml +0 -167
- data/spec/vcr/account/list/1294473761.yml +0 -1597
- data/spec/vcr/credit/create/1287461400.yml +0 -174
- data/spec/vcr/credit/delete/1287461400.yml +0 -249
- data/spec/vcr/credit/list/1287461400.yml +0 -306
- data/spec/vcr/credit/lookup/1287461400.yml +0 -174
- data/spec/vcr/subscription/addons/add/1292420980.yml +0 -479
- data/spec/vcr/subscription/addons/create/1292420980.yml +0 -318
- data/spec/vcr/subscription/addons/remove/1292420980.yml +0 -448
- data/spec/vcr/transaction/void/1289558212.yml +0 -601
@@ -1,174 +0,0 @@
|
|
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-create-1287461400</account-code>
|
11
|
-
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
|
-
<email>verena@test.com</email>
|
14
|
-
<first-name>Verena</first-name>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
accept:
|
19
|
-
- "*/*"
|
20
|
-
connection:
|
21
|
-
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
|
-
response: !ruby/struct:VCR::Response
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
28
|
-
code: 201
|
29
|
-
message: Created
|
30
|
-
headers:
|
31
|
-
location:
|
32
|
-
- https://recurlytest3-test.recurly.com/accounts/credit-create-1287461400
|
33
|
-
connection:
|
34
|
-
- close
|
35
|
-
content-type:
|
36
|
-
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "343"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:32 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
|
-
content-length:
|
44
|
-
- "581"
|
45
|
-
set-cookie:
|
46
|
-
- account_credentials=ea696926d8ee6e325d2eeeeae634ff4ce7ca7f4d103a4529662b6f900e617b8138cff7990c94e7e99a62928d3b97966f709a22c57c9580446ea3d630ea9f93e9%3A%3A; domain=.recurly.com; path=/
|
47
|
-
- ""
|
48
|
-
- _recurly_session=e4e20a669c49412a54d1d1bb79bb2622; domain=.recurly.com; path=/; secure; HttpOnly
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
51
|
-
body: |
|
52
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
53
|
-
<account>
|
54
|
-
<id>credit-create-1287461400</id>
|
55
|
-
<account_code>credit-create-1287461400</account_code>
|
56
|
-
<username></username>
|
57
|
-
<email>verena@test.com</email>
|
58
|
-
<first_name>Verena</first_name>
|
59
|
-
<last_name>Test</last_name>
|
60
|
-
<company_name>Recurly Ruby Gem</company_name>
|
61
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
62
|
-
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>9dd2551a648746769cc504aaa73d6451</hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-01-08T08:04:32Z</created_at>
|
65
|
-
<state>active</state>
|
66
|
-
</account>
|
67
|
-
|
68
|
-
http_version: "1.1"
|
69
|
-
- !ruby/struct:VCR::HTTPInteraction
|
70
|
-
request: !ruby/struct:VCR::Request
|
71
|
-
method: :post
|
72
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-create-1287461400/credits.xml
|
73
|
-
body: |
|
74
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
75
|
-
<credit>
|
76
|
-
<amount type="float">10.05</amount>
|
77
|
-
<description>free moniez</description>
|
78
|
-
</credit>
|
79
|
-
|
80
|
-
headers:
|
81
|
-
accept:
|
82
|
-
- "*/*"
|
83
|
-
connection:
|
84
|
-
- close
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
authorization:
|
88
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
89
|
-
response: !ruby/struct:VCR::Response
|
90
|
-
status: !ruby/struct:VCR::ResponseStatus
|
91
|
-
code: 201
|
92
|
-
message: Created
|
93
|
-
headers:
|
94
|
-
connection:
|
95
|
-
- close
|
96
|
-
content-type:
|
97
|
-
- application/xml; charset=utf-8
|
98
|
-
x-runtime:
|
99
|
-
- "43"
|
100
|
-
date:
|
101
|
-
- Sat, 08 Jan 2011 08:04:32 GMT
|
102
|
-
server:
|
103
|
-
- nginx/0.8.53
|
104
|
-
content-length:
|
105
|
-
- "512"
|
106
|
-
set-cookie:
|
107
|
-
- _recurly_session=a84425a87e48040e1db0902a2f7bf473; domain=.recurly.com; path=/; secure; HttpOnly
|
108
|
-
cache-control:
|
109
|
-
- no-cache
|
110
|
-
body: |
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
112
|
-
<credit type="credit">
|
113
|
-
<id>fcd6c6c5f83942f2913516f189921646</id>
|
114
|
-
<account_code>credit-create-1287461400</account_code>
|
115
|
-
<amount_in_cents type="integer">-1005</amount_in_cents>
|
116
|
-
<start_date type="datetime">2011-01-08T08:04:32Z</start_date>
|
117
|
-
<end_date nil="true" type="datetime"></end_date>
|
118
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
119
|
-
<description>free moniez</description>
|
120
|
-
<created_at type="datetime">2011-01-08T08:04:32Z</created_at>
|
121
|
-
</credit>
|
122
|
-
|
123
|
-
http_version: "1.1"
|
124
|
-
- !ruby/struct:VCR::HTTPInteraction
|
125
|
-
request: !ruby/struct:VCR::Request
|
126
|
-
method: :get
|
127
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-create-1287461400/credits/fcd6c6c5f83942f2913516f189921646.xml
|
128
|
-
body:
|
129
|
-
headers:
|
130
|
-
accept:
|
131
|
-
- application/xml
|
132
|
-
connection:
|
133
|
-
- close
|
134
|
-
authorization:
|
135
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
136
|
-
response: !ruby/struct:VCR::Response
|
137
|
-
status: !ruby/struct:VCR::ResponseStatus
|
138
|
-
code: 200
|
139
|
-
message: OK
|
140
|
-
headers:
|
141
|
-
x-ua-compatible:
|
142
|
-
- IE=Edge
|
143
|
-
etag:
|
144
|
-
- "\"47422ddeededd9e8671c5be4b79e7dd2\""
|
145
|
-
connection:
|
146
|
-
- close
|
147
|
-
content-type:
|
148
|
-
- application/xml; charset=utf-8
|
149
|
-
x-runtime:
|
150
|
-
- "14"
|
151
|
-
date:
|
152
|
-
- Sat, 08 Jan 2011 08:04:33 GMT
|
153
|
-
server:
|
154
|
-
- nginx/0.8.53
|
155
|
-
content-length:
|
156
|
-
- "512"
|
157
|
-
set-cookie:
|
158
|
-
- _recurly_session=2109823b8d05af7a47d766b914e7eb9e; domain=.recurly.com; path=/; secure; HttpOnly
|
159
|
-
cache-control:
|
160
|
-
- private, max-age=0, must-revalidate
|
161
|
-
body: |
|
162
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
163
|
-
<credit type="credit">
|
164
|
-
<id>fcd6c6c5f83942f2913516f189921646</id>
|
165
|
-
<account_code>credit-create-1287461400</account_code>
|
166
|
-
<amount_in_cents type="integer">-1005</amount_in_cents>
|
167
|
-
<start_date type="datetime">2011-01-08T08:04:32Z</start_date>
|
168
|
-
<end_date nil="true" type="datetime"></end_date>
|
169
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
170
|
-
<description>free moniez</description>
|
171
|
-
<created_at type="datetime">2011-01-08T08:04:32Z</created_at>
|
172
|
-
</credit>
|
173
|
-
|
174
|
-
http_version: "1.1"
|
@@ -1,249 +0,0 @@
|
|
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>delete-uninvoiced-1287461400</account-code>
|
11
|
-
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
|
-
<email>verena@test.com</email>
|
14
|
-
<first-name>Verena</first-name>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
accept:
|
19
|
-
- "*/*"
|
20
|
-
connection:
|
21
|
-
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
|
-
response: !ruby/struct:VCR::Response
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
28
|
-
code: 201
|
29
|
-
message: Created
|
30
|
-
headers:
|
31
|
-
location:
|
32
|
-
- https://recurlytest3-test.recurly.com/accounts/delete-uninvoiced-1287461400
|
33
|
-
connection:
|
34
|
-
- close
|
35
|
-
content-type:
|
36
|
-
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "344"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:46 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
|
-
content-length:
|
44
|
-
- "589"
|
45
|
-
set-cookie:
|
46
|
-
- account_credentials=9bf1d45dbd536d359ced28ad8f33973fed08b4ab6b4123be9794af295b9070262c8a7a5e1b85f185530dce28758b7714bfc02d6f29fe7b015f9f5a50a0c13642%3A%3A; domain=.recurly.com; path=/
|
47
|
-
- ""
|
48
|
-
- _recurly_session=9109c0e57c790cc1f40300b06077101d; domain=.recurly.com; path=/; secure; HttpOnly
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
51
|
-
body: |
|
52
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
53
|
-
<account>
|
54
|
-
<id>delete-uninvoiced-1287461400</id>
|
55
|
-
<account_code>delete-uninvoiced-1287461400</account_code>
|
56
|
-
<username></username>
|
57
|
-
<email>verena@test.com</email>
|
58
|
-
<first_name>Verena</first_name>
|
59
|
-
<last_name>Test</last_name>
|
60
|
-
<company_name>Recurly Ruby Gem</company_name>
|
61
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
62
|
-
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>fecac0565df54be480040f05c2d64e2a</hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-01-08T08:04:46Z</created_at>
|
65
|
-
<state>active</state>
|
66
|
-
</account>
|
67
|
-
|
68
|
-
http_version: "1.1"
|
69
|
-
- !ruby/struct:VCR::HTTPInteraction
|
70
|
-
request: !ruby/struct:VCR::Request
|
71
|
-
method: :post
|
72
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits.xml
|
73
|
-
body: |
|
74
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
75
|
-
<credit>
|
76
|
-
<amount type="float">13.15</amount>
|
77
|
-
<description>free moniez 4 u</description>
|
78
|
-
</credit>
|
79
|
-
|
80
|
-
headers:
|
81
|
-
accept:
|
82
|
-
- "*/*"
|
83
|
-
connection:
|
84
|
-
- close
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
authorization:
|
88
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
89
|
-
response: !ruby/struct:VCR::Response
|
90
|
-
status: !ruby/struct:VCR::ResponseStatus
|
91
|
-
code: 201
|
92
|
-
message: Created
|
93
|
-
headers:
|
94
|
-
connection:
|
95
|
-
- close
|
96
|
-
content-type:
|
97
|
-
- application/xml; charset=utf-8
|
98
|
-
x-runtime:
|
99
|
-
- "55"
|
100
|
-
date:
|
101
|
-
- Sat, 08 Jan 2011 08:04:47 GMT
|
102
|
-
server:
|
103
|
-
- nginx/0.8.53
|
104
|
-
content-length:
|
105
|
-
- "520"
|
106
|
-
set-cookie:
|
107
|
-
- _recurly_session=3129b892daa88a2d6946f17492d0d71e; domain=.recurly.com; path=/; secure; HttpOnly
|
108
|
-
cache-control:
|
109
|
-
- no-cache
|
110
|
-
body: |
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
112
|
-
<credit type="credit">
|
113
|
-
<id>3c24941a62494e509d4b7e30c704cde4</id>
|
114
|
-
<account_code>delete-uninvoiced-1287461400</account_code>
|
115
|
-
<amount_in_cents type="integer">-1315</amount_in_cents>
|
116
|
-
<start_date type="datetime">2011-01-08T08:04:46Z</start_date>
|
117
|
-
<end_date nil="true" type="datetime"></end_date>
|
118
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
119
|
-
<description>free moniez 4 u</description>
|
120
|
-
<created_at type="datetime">2011-01-08T08:04:47Z</created_at>
|
121
|
-
</credit>
|
122
|
-
|
123
|
-
http_version: "1.1"
|
124
|
-
- !ruby/struct:VCR::HTTPInteraction
|
125
|
-
request: !ruby/struct:VCR::Request
|
126
|
-
method: :get
|
127
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/3c24941a62494e509d4b7e30c704cde4.xml
|
128
|
-
body:
|
129
|
-
headers:
|
130
|
-
accept:
|
131
|
-
- application/xml
|
132
|
-
connection:
|
133
|
-
- close
|
134
|
-
authorization:
|
135
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
136
|
-
response: !ruby/struct:VCR::Response
|
137
|
-
status: !ruby/struct:VCR::ResponseStatus
|
138
|
-
code: 200
|
139
|
-
message: OK
|
140
|
-
headers:
|
141
|
-
x-ua-compatible:
|
142
|
-
- IE=Edge
|
143
|
-
etag:
|
144
|
-
- "\"29d8fc3265522ae3bccb586aabef7e1a\""
|
145
|
-
connection:
|
146
|
-
- close
|
147
|
-
content-type:
|
148
|
-
- application/xml; charset=utf-8
|
149
|
-
x-runtime:
|
150
|
-
- "16"
|
151
|
-
date:
|
152
|
-
- Sat, 08 Jan 2011 08:04:47 GMT
|
153
|
-
server:
|
154
|
-
- nginx/0.8.53
|
155
|
-
content-length:
|
156
|
-
- "520"
|
157
|
-
set-cookie:
|
158
|
-
- _recurly_session=3a6bdbea93af386430eb614a4b297f4f; domain=.recurly.com; path=/; secure; HttpOnly
|
159
|
-
cache-control:
|
160
|
-
- private, max-age=0, must-revalidate
|
161
|
-
body: |
|
162
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
163
|
-
<credit type="credit">
|
164
|
-
<id>3c24941a62494e509d4b7e30c704cde4</id>
|
165
|
-
<account_code>delete-uninvoiced-1287461400</account_code>
|
166
|
-
<amount_in_cents type="integer">-1315</amount_in_cents>
|
167
|
-
<start_date type="datetime">2011-01-08T08:04:46Z</start_date>
|
168
|
-
<end_date nil="true" type="datetime"></end_date>
|
169
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
170
|
-
<description>free moniez 4 u</description>
|
171
|
-
<created_at type="datetime">2011-01-08T08:04:47Z</created_at>
|
172
|
-
</credit>
|
173
|
-
|
174
|
-
http_version: "1.1"
|
175
|
-
- !ruby/struct:VCR::HTTPInteraction
|
176
|
-
request: !ruby/struct:VCR::Request
|
177
|
-
method: :delete
|
178
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/3c24941a62494e509d4b7e30c704cde4.xml
|
179
|
-
body:
|
180
|
-
headers:
|
181
|
-
accept:
|
182
|
-
- application/xml
|
183
|
-
connection:
|
184
|
-
- close
|
185
|
-
authorization:
|
186
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
187
|
-
response: !ruby/struct:VCR::Response
|
188
|
-
status: !ruby/struct:VCR::ResponseStatus
|
189
|
-
code: 200
|
190
|
-
message: OK
|
191
|
-
headers:
|
192
|
-
x-ua-compatible:
|
193
|
-
- IE=Edge
|
194
|
-
connection:
|
195
|
-
- close
|
196
|
-
content-type:
|
197
|
-
- application/xml; charset=utf-8
|
198
|
-
x-runtime:
|
199
|
-
- "44"
|
200
|
-
date:
|
201
|
-
- Sat, 08 Jan 2011 08:04:48 GMT
|
202
|
-
server:
|
203
|
-
- nginx/0.8.53
|
204
|
-
content-length:
|
205
|
-
- "1"
|
206
|
-
set-cookie:
|
207
|
-
- _recurly_session=55a412e6a5d97e76edfde22109a9fe90; domain=.recurly.com; path=/; secure; HttpOnly
|
208
|
-
cache-control:
|
209
|
-
- no-cache
|
210
|
-
body: " "
|
211
|
-
http_version: "1.1"
|
212
|
-
- !ruby/struct:VCR::HTTPInteraction
|
213
|
-
request: !ruby/struct:VCR::Request
|
214
|
-
method: :get
|
215
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/delete-uninvoiced-1287461400/credits/3c24941a62494e509d4b7e30c704cde4.xml
|
216
|
-
body:
|
217
|
-
headers:
|
218
|
-
accept:
|
219
|
-
- application/xml
|
220
|
-
connection:
|
221
|
-
- close
|
222
|
-
authorization:
|
223
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
224
|
-
response: !ruby/struct:VCR::Response
|
225
|
-
status: !ruby/struct:VCR::ResponseStatus
|
226
|
-
code: 404
|
227
|
-
message: Not Found
|
228
|
-
headers:
|
229
|
-
connection:
|
230
|
-
- close
|
231
|
-
content-type:
|
232
|
-
- application/xml; charset=utf-8
|
233
|
-
date:
|
234
|
-
- Sat, 08 Jan 2011 08:04:49 GMT
|
235
|
-
server:
|
236
|
-
- nginx/0.8.53
|
237
|
-
content-length:
|
238
|
-
- "92"
|
239
|
-
set-cookie:
|
240
|
-
- _recurly_session=351fce6a28803deb6485808dfd1ee3f2; domain=.recurly.com; path=/; secure; HttpOnly
|
241
|
-
cache-control:
|
242
|
-
- no-cache
|
243
|
-
body: |
|
244
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
245
|
-
<errors>
|
246
|
-
<error>Credit not found</error>
|
247
|
-
</errors>
|
248
|
-
|
249
|
-
http_version: "1.1"
|
@@ -1,306 +0,0 @@
|
|
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-list-1287461400</account-code>
|
11
|
-
<last-name>Test</last-name>
|
12
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
13
|
-
<email>verena@test.com</email>
|
14
|
-
<first-name>Verena</first-name>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
accept:
|
19
|
-
- "*/*"
|
20
|
-
connection:
|
21
|
-
- close
|
22
|
-
content-type:
|
23
|
-
- application/xml
|
24
|
-
authorization:
|
25
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
26
|
-
response: !ruby/struct:VCR::Response
|
27
|
-
status: !ruby/struct:VCR::ResponseStatus
|
28
|
-
code: 201
|
29
|
-
message: Created
|
30
|
-
headers:
|
31
|
-
location:
|
32
|
-
- https://recurlytest3-test.recurly.com/accounts/credit-list-1287461400
|
33
|
-
connection:
|
34
|
-
- close
|
35
|
-
content-type:
|
36
|
-
- application/xml; charset=utf-8
|
37
|
-
x-runtime:
|
38
|
-
- "342"
|
39
|
-
date:
|
40
|
-
- Sat, 08 Jan 2011 08:04:35 GMT
|
41
|
-
server:
|
42
|
-
- nginx/0.8.53
|
43
|
-
content-length:
|
44
|
-
- "577"
|
45
|
-
set-cookie:
|
46
|
-
- account_credentials=1f89f3b71a0f7007eae5f2c36d3e091f00213270fdba9c6b6ff1cc41ace6308f5c9c8db5fbe768d23443af670512df217db5ea8c53a08ecf5ac15993d12845f7%3A%3A; domain=.recurly.com; path=/
|
47
|
-
- ""
|
48
|
-
- _recurly_session=8a120288be8360aaa878c62b1f0e28f1; domain=.recurly.com; path=/; secure; HttpOnly
|
49
|
-
cache-control:
|
50
|
-
- no-cache
|
51
|
-
body: |
|
52
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
53
|
-
<account>
|
54
|
-
<id>credit-list-1287461400</id>
|
55
|
-
<account_code>credit-list-1287461400</account_code>
|
56
|
-
<username></username>
|
57
|
-
<email>verena@test.com</email>
|
58
|
-
<first_name>Verena</first_name>
|
59
|
-
<last_name>Test</last_name>
|
60
|
-
<company_name>Recurly Ruby Gem</company_name>
|
61
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
62
|
-
<closed type="boolean">false</closed>
|
63
|
-
<hosted_login_token>d8f03f07b8f04d0f993ec7360830e4c8</hosted_login_token>
|
64
|
-
<created_at type="datetime">2011-01-08T08:04:35Z</created_at>
|
65
|
-
<state>active</state>
|
66
|
-
</account>
|
67
|
-
|
68
|
-
http_version: "1.1"
|
69
|
-
- !ruby/struct:VCR::HTTPInteraction
|
70
|
-
request: !ruby/struct:VCR::Request
|
71
|
-
method: :post
|
72
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-list-1287461400/credits.xml
|
73
|
-
body: |
|
74
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
75
|
-
<credit>
|
76
|
-
<amount type="integer">1</amount>
|
77
|
-
<description>one</description>
|
78
|
-
</credit>
|
79
|
-
|
80
|
-
headers:
|
81
|
-
accept:
|
82
|
-
- "*/*"
|
83
|
-
connection:
|
84
|
-
- close
|
85
|
-
content-type:
|
86
|
-
- application/xml
|
87
|
-
authorization:
|
88
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
89
|
-
response: !ruby/struct:VCR::Response
|
90
|
-
status: !ruby/struct:VCR::ResponseStatus
|
91
|
-
code: 201
|
92
|
-
message: Created
|
93
|
-
headers:
|
94
|
-
connection:
|
95
|
-
- close
|
96
|
-
content-type:
|
97
|
-
- application/xml; charset=utf-8
|
98
|
-
x-runtime:
|
99
|
-
- "44"
|
100
|
-
date:
|
101
|
-
- Sat, 08 Jan 2011 08:04:35 GMT
|
102
|
-
server:
|
103
|
-
- nginx/0.8.53
|
104
|
-
content-length:
|
105
|
-
- "501"
|
106
|
-
set-cookie:
|
107
|
-
- _recurly_session=6e2ead2a30100826fc963de9efafd387; domain=.recurly.com; path=/; secure; HttpOnly
|
108
|
-
cache-control:
|
109
|
-
- no-cache
|
110
|
-
body: |
|
111
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
112
|
-
<credit type="credit">
|
113
|
-
<id>7e87e2076ab84e4cbb7e0aebb52a59c8</id>
|
114
|
-
<account_code>credit-list-1287461400</account_code>
|
115
|
-
<amount_in_cents type="integer">-100</amount_in_cents>
|
116
|
-
<start_date type="datetime">2011-01-08T08:04:35Z</start_date>
|
117
|
-
<end_date nil="true" type="datetime"></end_date>
|
118
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
119
|
-
<description>one</description>
|
120
|
-
<created_at type="datetime">2011-01-08T08:04:35Z</created_at>
|
121
|
-
</credit>
|
122
|
-
|
123
|
-
http_version: "1.1"
|
124
|
-
- !ruby/struct:VCR::HTTPInteraction
|
125
|
-
request: !ruby/struct:VCR::Request
|
126
|
-
method: :post
|
127
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-list-1287461400/credits.xml
|
128
|
-
body: |
|
129
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
130
|
-
<credit>
|
131
|
-
<amount type="integer">2</amount>
|
132
|
-
<description>two</description>
|
133
|
-
</credit>
|
134
|
-
|
135
|
-
headers:
|
136
|
-
accept:
|
137
|
-
- "*/*"
|
138
|
-
connection:
|
139
|
-
- close
|
140
|
-
content-type:
|
141
|
-
- application/xml
|
142
|
-
authorization:
|
143
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
144
|
-
response: !ruby/struct:VCR::Response
|
145
|
-
status: !ruby/struct:VCR::ResponseStatus
|
146
|
-
code: 201
|
147
|
-
message: Created
|
148
|
-
headers:
|
149
|
-
connection:
|
150
|
-
- close
|
151
|
-
content-type:
|
152
|
-
- application/xml; charset=utf-8
|
153
|
-
x-runtime:
|
154
|
-
- "129"
|
155
|
-
date:
|
156
|
-
- Sat, 08 Jan 2011 08:04:37 GMT
|
157
|
-
server:
|
158
|
-
- nginx/0.8.53
|
159
|
-
content-length:
|
160
|
-
- "501"
|
161
|
-
set-cookie:
|
162
|
-
- _recurly_session=0516d09a6a1c08527209a20f6c558334; domain=.recurly.com; path=/; secure; HttpOnly
|
163
|
-
cache-control:
|
164
|
-
- no-cache
|
165
|
-
body: |
|
166
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
167
|
-
<credit type="credit">
|
168
|
-
<id>1a3838eab8674681bc9fb6f67358aae9</id>
|
169
|
-
<account_code>credit-list-1287461400</account_code>
|
170
|
-
<amount_in_cents type="integer">-200</amount_in_cents>
|
171
|
-
<start_date type="datetime">2011-01-08T08:04:37Z</start_date>
|
172
|
-
<end_date nil="true" type="datetime"></end_date>
|
173
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
174
|
-
<description>two</description>
|
175
|
-
<created_at type="datetime">2011-01-08T08:04:37Z</created_at>
|
176
|
-
</credit>
|
177
|
-
|
178
|
-
http_version: "1.1"
|
179
|
-
- !ruby/struct:VCR::HTTPInteraction
|
180
|
-
request: !ruby/struct:VCR::Request
|
181
|
-
method: :post
|
182
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-list-1287461400/credits.xml
|
183
|
-
body: |
|
184
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
185
|
-
<credit>
|
186
|
-
<amount type="integer">3</amount>
|
187
|
-
<description>three</description>
|
188
|
-
</credit>
|
189
|
-
|
190
|
-
headers:
|
191
|
-
accept:
|
192
|
-
- "*/*"
|
193
|
-
connection:
|
194
|
-
- close
|
195
|
-
content-type:
|
196
|
-
- application/xml
|
197
|
-
authorization:
|
198
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
199
|
-
response: !ruby/struct:VCR::Response
|
200
|
-
status: !ruby/struct:VCR::ResponseStatus
|
201
|
-
code: 201
|
202
|
-
message: Created
|
203
|
-
headers:
|
204
|
-
connection:
|
205
|
-
- close
|
206
|
-
content-type:
|
207
|
-
- application/xml; charset=utf-8
|
208
|
-
x-runtime:
|
209
|
-
- "44"
|
210
|
-
date:
|
211
|
-
- Sat, 08 Jan 2011 08:04:38 GMT
|
212
|
-
server:
|
213
|
-
- nginx/0.8.53
|
214
|
-
content-length:
|
215
|
-
- "503"
|
216
|
-
set-cookie:
|
217
|
-
- _recurly_session=b25393640c77870ed295bae16e35d167; domain=.recurly.com; path=/; secure; HttpOnly
|
218
|
-
cache-control:
|
219
|
-
- no-cache
|
220
|
-
body: |
|
221
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
222
|
-
<credit type="credit">
|
223
|
-
<id>e2534f5aeb1249b6bbc96543ab1b3d70</id>
|
224
|
-
<account_code>credit-list-1287461400</account_code>
|
225
|
-
<amount_in_cents type="integer">-300</amount_in_cents>
|
226
|
-
<start_date type="datetime">2011-01-08T08:04:38Z</start_date>
|
227
|
-
<end_date nil="true" type="datetime"></end_date>
|
228
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
229
|
-
<description>three</description>
|
230
|
-
<created_at type="datetime">2011-01-08T08:04:38Z</created_at>
|
231
|
-
</credit>
|
232
|
-
|
233
|
-
http_version: "1.1"
|
234
|
-
- !ruby/struct:VCR::HTTPInteraction
|
235
|
-
request: !ruby/struct:VCR::Request
|
236
|
-
method: :get
|
237
|
-
uri: https://railsjedi%40sogetthis.com:7PCB2mZC@recurlytest3-test.recurly.com:443/accounts/credit-list-1287461400/credits.xml
|
238
|
-
body:
|
239
|
-
headers:
|
240
|
-
accept:
|
241
|
-
- application/xml
|
242
|
-
connection:
|
243
|
-
- close
|
244
|
-
authorization:
|
245
|
-
- Basic cmFpbHNqZWRpQHNvZ2V0dGhpcy5jb206N1BDQjJtWkM=
|
246
|
-
response: !ruby/struct:VCR::Response
|
247
|
-
status: !ruby/struct:VCR::ResponseStatus
|
248
|
-
code: 200
|
249
|
-
message: OK
|
250
|
-
headers:
|
251
|
-
x-ua-compatible:
|
252
|
-
- IE=Edge
|
253
|
-
etag:
|
254
|
-
- "\"bf5514131dbf0895296edfcceb6f5aef\""
|
255
|
-
connection:
|
256
|
-
- close
|
257
|
-
content-type:
|
258
|
-
- application/xml; charset=utf-8
|
259
|
-
x-runtime:
|
260
|
-
- "25"
|
261
|
-
date:
|
262
|
-
- Sat, 08 Jan 2011 08:04:39 GMT
|
263
|
-
server:
|
264
|
-
- nginx/0.8.53
|
265
|
-
content-length:
|
266
|
-
- "1521"
|
267
|
-
set-cookie:
|
268
|
-
- _recurly_session=e799e645e5939da4ff9dd9a1c7e4ca1a; domain=.recurly.com; path=/; secure; HttpOnly
|
269
|
-
cache-control:
|
270
|
-
- private, max-age=0, must-revalidate
|
271
|
-
body: |
|
272
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
273
|
-
<credits type="array">
|
274
|
-
<credit type="credit">
|
275
|
-
<id>e2534f5aeb1249b6bbc96543ab1b3d70</id>
|
276
|
-
<account_code>credit-list-1287461400</account_code>
|
277
|
-
<amount_in_cents type="integer">-300</amount_in_cents>
|
278
|
-
<start_date type="datetime">2011-01-08T08:04:38Z</start_date>
|
279
|
-
<end_date nil="true" type="datetime"></end_date>
|
280
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
281
|
-
<description>three</description>
|
282
|
-
<created_at type="datetime">2011-01-08T08:04:38Z</created_at>
|
283
|
-
</credit>
|
284
|
-
<credit type="credit">
|
285
|
-
<id>1a3838eab8674681bc9fb6f67358aae9</id>
|
286
|
-
<account_code>credit-list-1287461400</account_code>
|
287
|
-
<amount_in_cents type="integer">-200</amount_in_cents>
|
288
|
-
<start_date type="datetime">2011-01-08T08:04:37Z</start_date>
|
289
|
-
<end_date nil="true" type="datetime"></end_date>
|
290
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
291
|
-
<description>two</description>
|
292
|
-
<created_at type="datetime">2011-01-08T08:04:37Z</created_at>
|
293
|
-
</credit>
|
294
|
-
<credit type="credit">
|
295
|
-
<id>7e87e2076ab84e4cbb7e0aebb52a59c8</id>
|
296
|
-
<account_code>credit-list-1287461400</account_code>
|
297
|
-
<amount_in_cents type="integer">-100</amount_in_cents>
|
298
|
-
<start_date type="datetime">2011-01-08T08:04:35Z</start_date>
|
299
|
-
<end_date nil="true" type="datetime"></end_date>
|
300
|
-
<invoice_number nil="true" type="integer"></invoice_number>
|
301
|
-
<description>one</description>
|
302
|
-
<created_at type="datetime">2011-01-08T08:04:35Z</created_at>
|
303
|
-
</credit>
|
304
|
-
</credits>
|
305
|
-
|
306
|
-
http_version: "1.1"
|