recurly 0.4.8 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/README.md +2 -2
- data/lib/recurly.rb +2 -1
- data/lib/recurly/account.rb +2 -2
- data/lib/recurly/base.rb +30 -12
- data/lib/recurly/billing_info.rb +2 -2
- data/lib/recurly/exceptions.rb +13 -0
- data/lib/recurly/plan.rb +1 -1
- data/lib/recurly/subscription.rb +2 -2
- data/lib/recurly/transaction.rb +2 -2
- data/lib/recurly/transparent.rb +1 -1
- data/lib/recurly/verification.rb +77 -0
- data/lib/recurly/version.rb +1 -1
- data/spec/config/recurly.yml +4 -4
- data/spec/integration/account_spec.rb +12 -0
- data/spec/integration/billing_info_spec.rb +2 -2
- data/spec/integration/charge_spec.rb +0 -1
- data/spec/integration/plan_spec.rb +2 -2
- data/spec/support/vcr.rb +2 -2
- data/spec/unit/verification_spec.rb +76 -0
- data/spec/vcr/account/accept-language-account/1313708721.yml +39 -0
- data/spec/vcr/account/close/1313708721.yml +104 -0
- data/spec/vcr/account/create-blank/1313708721.yml +33 -0
- data/spec/vcr/account/create-duplicate/1313708721.yml +69 -0
- data/spec/vcr/account/create-min/1313708721.yml +38 -0
- data/spec/vcr/account/create/1313708721.yml +39 -0
- data/spec/vcr/account/find/1313708721.yml +107 -0
- data/spec/vcr/account/list/1313708721.yml +878 -0
- data/spec/vcr/account/update/1313708721.yml +158 -0
- data/spec/vcr/billing/create/1313708721.yml +118 -0
- data/spec/vcr/billing/destroy/1313708721.yml +177 -0
- data/spec/vcr/billing/errors/1313708721.yml +71 -0
- data/spec/vcr/billing/find/1313708721.yml +156 -0
- data/spec/vcr/billing/update/1313708721.yml +159 -0
- data/spec/vcr/charge/create/1313708721.yml +153 -0
- data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +206 -0
- data/spec/vcr/charge/list-all/1313708721.yml +198 -0
- data/spec/vcr/charge/list-invoiced/1313708721.yml +294 -0
- data/spec/vcr/charge/list-pending/1313708721.yml +200 -0
- data/spec/vcr/charge/lookup/1313708721.yml +112 -0
- data/spec/vcr/coupon/create/1296774903.yml +96 -170
- data/spec/vcr/coupon/destroy/1296774903.yml +114 -190
- data/spec/vcr/credit/create/1313708090.yml +112 -0
- data/spec/vcr/credit/delete/1313708090.yml +171 -0
- data/spec/vcr/credit/list/1313708090.yml +198 -0
- data/spec/vcr/credit/lookup/1313708090.yml +112 -0
- data/spec/vcr/invoice/create-no-charges/1296674173.yml +100 -185
- data/spec/vcr/invoice/create/1296674173.yml +182 -328
- data/spec/vcr/invoice/list/1296674173.yml +255 -442
- data/spec/vcr/invoice/lookup/1296674173.yml +187 -331
- data/spec/vcr/plan/all.yml +210 -253
- data/spec/vcr/plan/find.yml +115 -187
- data/spec/vcr/plan/update.yml +105 -187
- data/spec/vcr/subscription/addons/add/1296674173.yml +269 -212
- data/spec/vcr/subscription/addons/create/1296674173.yml +172 -212
- data/spec/vcr/subscription/addons/remove/1296674173.yml +257 -212
- data/spec/vcr/subscription/cancel-with-code/1296674173.yml +271 -452
- data/spec/vcr/subscription/cancel/1296674173.yml +234 -394
- data/spec/vcr/subscription/change1/1296674173.yml +237 -402
- data/spec/vcr/subscription/change2/1296674173.yml +238 -402
- data/spec/vcr/subscription/create/1296674173.yml +123 -221
- data/spec/vcr/subscription/find/1296674173.yml +161 -279
- data/spec/vcr/subscription/reactivate/1296674173.yml +261 -431
- data/spec/vcr/subscription/refund-full/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-none/1296674173.yml +223 -373
- data/spec/vcr/subscription/refund-partial/1296674173.yml +223 -373
- data/spec/vcr/transaction/all/1311126815.yml +215 -0
- data/spec/vcr/transaction/create-no-account/1311126815.yml +51 -0
- data/spec/vcr/transaction/create-with-account/1311126815.yml +125 -0
- data/spec/vcr/transaction/list-filled/1311126815.yml +349 -0
- data/spec/vcr/transaction/list-initial/1311126815.yml +123 -0
- data/spec/vcr/transaction/lookup/1311126815.yml +335 -0
- data/spec/vcr/transaction/refund/1311126815.yml +163 -0
- data/spec/vcr/transaction/void/1311126815.yml +215 -0
- data/spec/vcr/transparent/post-url/1311239470.yml +76 -0
- metadata +207 -154
- data/spec/vcr/account/accept-language-account/1296674173.yml +0 -70
- data/spec/vcr/account/close/1296674173.yml +0 -164
- data/spec/vcr/account/create-blank/1296674173.yml +0 -52
- data/spec/vcr/account/create-duplicate/1296674173.yml +0 -116
- data/spec/vcr/account/create-min/1296674173.yml +0 -66
- data/spec/vcr/account/create/1296674173.yml +0 -70
- data/spec/vcr/account/find/1296674173.yml +0 -169
- data/spec/vcr/account/list/1296674173.yml +0 -55
- data/spec/vcr/account/update/1296674173.yml +0 -258
- data/spec/vcr/billing/create/1296690812.yml +0 -215
- data/spec/vcr/billing/destroy/1296690812.yml +0 -294
- data/spec/vcr/billing/find/1296690812.yml +0 -280
- data/spec/vcr/billing/update/1296690812.yml +0 -297
- data/spec/vcr/charge/create/1296674173.yml +0 -262
- data/spec/vcr/charge/delete-uninvoiced/1296674173.yml +0 -307
- data/spec/vcr/charge/list-all/1296674173.yml +0 -316
- data/spec/vcr/charge/list-invoiced/1296674173.yml +0 -468
- data/spec/vcr/charge/list-pending/1296674173.yml +0 -316
- data/spec/vcr/charge/lookup/1296674173.yml +0 -180
- data/spec/vcr/coupon/create/1296688818.yml +0 -183
- data/spec/vcr/coupon/destroy/1296688818.yml +0 -207
- data/spec/vcr/credit/create/1296674173.yml +0 -121
- data/spec/vcr/credit/delete/1296674173.yml +0 -121
- data/spec/vcr/credit/list/1296674173.yml +0 -121
- data/spec/vcr/credit/lookup/1296674173.yml +0 -121
- data/spec/vcr/plan/delete/1296674173.yml +0 -225
- data/spec/vcr/transaction/all/1296674173.yml +0 -389
- data/spec/vcr/transaction/create-no-account/1296674173.yml +0 -93
- data/spec/vcr/transaction/create-with-account/1296674173.yml +0 -225
- data/spec/vcr/transaction/list-filled/1296674173.yml +0 -487
- data/spec/vcr/transaction/list-initial/1296674173.yml +0 -217
- data/spec/vcr/transaction/lookup/1296674173.yml +0 -563
- data/spec/vcr/transaction/refund/1296674173.yml +0 -287
- data/spec/vcr/transaction/void/1296674173.yml +0 -352
- data/spec/vcr/transparent/post-url/1311127536.yml +0 -0
- data/spec/vcr/transparent/post-url/1311127583.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128042.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128073.yml +0 -0
- data/spec/vcr/transparent/post-url/1311128087.yml +0 -0
@@ -0,0 +1,200 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>charge-list-pending-1313708721</account-code>\n
|
7
|
+
\ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
|
8
|
+
\ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
|
9
|
+
\ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
|
10
|
+
headers:
|
11
|
+
user-agent:
|
12
|
+
- Recurly Ruby Client v0.4.10
|
13
|
+
content-type:
|
14
|
+
- application/xml
|
15
|
+
response: !ruby/struct:VCR::Response
|
16
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
|
+
code: 201
|
18
|
+
message: Created
|
19
|
+
headers:
|
20
|
+
location:
|
21
|
+
- http://app.lvh.me:3000/accounts/charge-list-pending-1313708721
|
22
|
+
content-type:
|
23
|
+
- application/xml; charset=utf-8
|
24
|
+
cache-control:
|
25
|
+
- no-cache
|
26
|
+
x-ua-compatible:
|
27
|
+
- IE=Edge
|
28
|
+
set-cookie:
|
29
|
+
- _recurly_session=e8e14d445716199e9dd53942ba6e77ce; domain=.lvh.me; path=/;
|
30
|
+
HttpOnly
|
31
|
+
server:
|
32
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>charge-list-pending-1313708721</id>\n
|
34
|
+
\ <account_code>charge-list-pending-1313708721</account_code>\n <username></username>\n
|
35
|
+
\ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
|
36
|
+
\ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
|
37
|
+
\ <closed type=\"boolean\">false</closed>\n <hosted_login_token>ea3af119d3d2489abfb6c5b189475076</hosted_login_token>\n
|
38
|
+
\ <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n <state>active</state>\n</account>\n"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
42
|
+
method: :post
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-pending-1313708721/charges.xml
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
|
45
|
+
\ <description>charge description</description>\n</charge>\n"
|
46
|
+
headers:
|
47
|
+
user-agent:
|
48
|
+
- Recurly Ruby Client v0.4.10
|
49
|
+
content-type:
|
50
|
+
- application/xml
|
51
|
+
response: !ruby/struct:VCR::Response
|
52
|
+
status: !ruby/struct:VCR::ResponseStatus
|
53
|
+
code: 201
|
54
|
+
message: Created
|
55
|
+
headers:
|
56
|
+
content-type:
|
57
|
+
- application/xml; charset=utf-8
|
58
|
+
cache-control:
|
59
|
+
- no-cache
|
60
|
+
x-ua-compatible:
|
61
|
+
- IE=Edge
|
62
|
+
set-cookie:
|
63
|
+
- _recurly_session=3e20ba18462e05eb287c02d8680b2469; domain=.lvh.me; path=/;
|
64
|
+
HttpOnly
|
65
|
+
server:
|
66
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
67
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
|
68
|
+
\ <id>2955baf968534bfe8bf90545ee3fd4bd</id>\n <account_code>charge-list-pending-1313708721</account_code>\n
|
69
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
|
70
|
+
\ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
|
71
|
+
\ <start_date type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date
|
72
|
+
nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
|
73
|
+
\ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n</charge>\n"
|
74
|
+
http_version: '1.1'
|
75
|
+
- !ruby/struct:VCR::HTTPInteraction
|
76
|
+
request: !ruby/struct:VCR::Request
|
77
|
+
method: :post
|
78
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-pending-1313708721/charges.xml
|
79
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
|
80
|
+
\ <description>charge description</description>\n</charge>\n"
|
81
|
+
headers:
|
82
|
+
user-agent:
|
83
|
+
- Recurly Ruby Client v0.4.10
|
84
|
+
content-type:
|
85
|
+
- application/xml
|
86
|
+
response: !ruby/struct:VCR::Response
|
87
|
+
status: !ruby/struct:VCR::ResponseStatus
|
88
|
+
code: 201
|
89
|
+
message: Created
|
90
|
+
headers:
|
91
|
+
content-type:
|
92
|
+
- application/xml; charset=utf-8
|
93
|
+
cache-control:
|
94
|
+
- no-cache
|
95
|
+
x-ua-compatible:
|
96
|
+
- IE=Edge
|
97
|
+
set-cookie:
|
98
|
+
- _recurly_session=f42c7f29f4990903615feb3f31cc0a58; domain=.lvh.me; path=/;
|
99
|
+
HttpOnly
|
100
|
+
server:
|
101
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
102
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
|
103
|
+
\ <id>27e119ba4db64637aff4b90983252541</id>\n <account_code>charge-list-pending-1313708721</account_code>\n
|
104
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
|
105
|
+
\ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
|
106
|
+
\ <start_date type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date
|
107
|
+
nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
|
108
|
+
\ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n</charge>\n"
|
109
|
+
http_version: '1.1'
|
110
|
+
- !ruby/struct:VCR::HTTPInteraction
|
111
|
+
request: !ruby/struct:VCR::Request
|
112
|
+
method: :post
|
113
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-pending-1313708721/charges.xml
|
114
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">10.0</amount>\n
|
115
|
+
\ <description>charge description</description>\n</charge>\n"
|
116
|
+
headers:
|
117
|
+
user-agent:
|
118
|
+
- Recurly Ruby Client v0.4.10
|
119
|
+
content-type:
|
120
|
+
- application/xml
|
121
|
+
response: !ruby/struct:VCR::Response
|
122
|
+
status: !ruby/struct:VCR::ResponseStatus
|
123
|
+
code: 201
|
124
|
+
message: Created
|
125
|
+
headers:
|
126
|
+
content-type:
|
127
|
+
- application/xml; charset=utf-8
|
128
|
+
cache-control:
|
129
|
+
- no-cache
|
130
|
+
x-ua-compatible:
|
131
|
+
- IE=Edge
|
132
|
+
set-cookie:
|
133
|
+
- _recurly_session=44df5bf5d7b057293b385600b376542c; domain=.lvh.me; path=/;
|
134
|
+
HttpOnly
|
135
|
+
server:
|
136
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
137
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
|
138
|
+
\ <id>b4df858fc6f9463e83d0e853757019cb</id>\n <account_code>charge-list-pending-1313708721</account_code>\n
|
139
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
|
140
|
+
\ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
|
141
|
+
\ <start_date type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date
|
142
|
+
nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
|
143
|
+
\ <description>charge description</description>\n <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n</charge>\n"
|
144
|
+
http_version: '1.1'
|
145
|
+
- !ruby/struct:VCR::HTTPInteraction
|
146
|
+
request: !ruby/struct:VCR::Request
|
147
|
+
method: :get
|
148
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-list-pending-1313708721/charges.xml?show=pending
|
149
|
+
body: !!null
|
150
|
+
headers:
|
151
|
+
user-agent:
|
152
|
+
- Recurly Ruby Client v0.4.10
|
153
|
+
accept:
|
154
|
+
- application/xml
|
155
|
+
accept-encoding:
|
156
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
157
|
+
response: !ruby/struct:VCR::Response
|
158
|
+
status: !ruby/struct:VCR::ResponseStatus
|
159
|
+
code: 200
|
160
|
+
message: OK
|
161
|
+
headers:
|
162
|
+
content-type:
|
163
|
+
- application/xml; charset=utf-8
|
164
|
+
etag:
|
165
|
+
- ! '"7d5e59b64bcee45ca483c9099bc43d6d"'
|
166
|
+
cache-control:
|
167
|
+
- max-age=0, private, must-revalidate
|
168
|
+
x-ua-compatible:
|
169
|
+
- IE=Edge
|
170
|
+
set-cookie:
|
171
|
+
- _recurly_session=f66efc5287611fc7633c7a2fabeff192; domain=.lvh.me; path=/;
|
172
|
+
HttpOnly
|
173
|
+
server:
|
174
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
175
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charges type=\"array\">\n
|
176
|
+
\ <charge type=\"charge\">\n <id>b4df858fc6f9463e83d0e853757019cb</id>\n
|
177
|
+
\ <account_code>charge-list-pending-1313708721</account_code>\n <quantity
|
178
|
+
type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
|
179
|
+
\ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
|
180
|
+
\ <start_date type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date
|
181
|
+
nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\"
|
182
|
+
type=\"integer\"></invoice_number>\n <description>charge description</description>\n
|
183
|
+
\ <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n </charge>\n
|
184
|
+
\ <charge type=\"charge\">\n <id>27e119ba4db64637aff4b90983252541</id>\n
|
185
|
+
\ <account_code>charge-list-pending-1313708721</account_code>\n <quantity
|
186
|
+
type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
|
187
|
+
\ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
|
188
|
+
\ <start_date type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date
|
189
|
+
nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\"
|
190
|
+
type=\"integer\"></invoice_number>\n <description>charge description</description>\n
|
191
|
+
\ <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n </charge>\n
|
192
|
+
\ <charge type=\"charge\">\n <id>2955baf968534bfe8bf90545ee3fd4bd</id>\n
|
193
|
+
\ <account_code>charge-list-pending-1313708721</account_code>\n <quantity
|
194
|
+
type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1000</unit_amount_in_cents>\n
|
195
|
+
\ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
|
196
|
+
\ <start_date type=\"datetime\">2011-08-19T20:01:37Z</start_date>\n <end_date
|
197
|
+
nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\"
|
198
|
+
type=\"integer\"></invoice_number>\n <description>charge description</description>\n
|
199
|
+
\ <created_at type=\"datetime\">2011-08-19T20:01:37Z</created_at>\n </charge>\n</charges>\n"
|
200
|
+
http_version: '1.1'
|
@@ -0,0 +1,112 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :post
|
5
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>charge-lookup-1313708721</account-code>\n
|
7
|
+
\ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
|
8
|
+
\ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
|
9
|
+
\ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
|
10
|
+
headers:
|
11
|
+
user-agent:
|
12
|
+
- Recurly Ruby Client v0.4.10
|
13
|
+
content-type:
|
14
|
+
- application/xml
|
15
|
+
response: !ruby/struct:VCR::Response
|
16
|
+
status: !ruby/struct:VCR::ResponseStatus
|
17
|
+
code: 201
|
18
|
+
message: Created
|
19
|
+
headers:
|
20
|
+
location:
|
21
|
+
- http://app.lvh.me:3000/accounts/charge-lookup-1313708721
|
22
|
+
content-type:
|
23
|
+
- application/xml; charset=utf-8
|
24
|
+
cache-control:
|
25
|
+
- no-cache
|
26
|
+
x-ua-compatible:
|
27
|
+
- IE=Edge
|
28
|
+
set-cookie:
|
29
|
+
- _recurly_session=93150a97bec4cc3ba16eb8d03c1044aa; domain=.lvh.me; path=/;
|
30
|
+
HttpOnly
|
31
|
+
server:
|
32
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>charge-lookup-1313708721</id>\n
|
34
|
+
\ <account_code>charge-lookup-1313708721</account_code>\n <username></username>\n
|
35
|
+
\ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
|
36
|
+
\ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
|
37
|
+
\ <closed type=\"boolean\">false</closed>\n <hosted_login_token>b704828df8fe4a1c859bfc26067401ee</hosted_login_token>\n
|
38
|
+
\ <created_at type=\"datetime\">2011-08-19T20:01:42Z</created_at>\n <state>active</state>\n</account>\n"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
42
|
+
method: :post
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-lookup-1313708721/charges.xml
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge>\n <amount type=\"float\">13.15</amount>\n
|
45
|
+
\ <description>inconvenience fee</description>\n</charge>\n"
|
46
|
+
headers:
|
47
|
+
user-agent:
|
48
|
+
- Recurly Ruby Client v0.4.10
|
49
|
+
content-type:
|
50
|
+
- application/xml
|
51
|
+
response: !ruby/struct:VCR::Response
|
52
|
+
status: !ruby/struct:VCR::ResponseStatus
|
53
|
+
code: 201
|
54
|
+
message: Created
|
55
|
+
headers:
|
56
|
+
content-type:
|
57
|
+
- application/xml; charset=utf-8
|
58
|
+
cache-control:
|
59
|
+
- no-cache
|
60
|
+
x-ua-compatible:
|
61
|
+
- IE=Edge
|
62
|
+
set-cookie:
|
63
|
+
- _recurly_session=4d88c14ae24bf1f7bcbab3dc9450b6a2; domain=.lvh.me; path=/;
|
64
|
+
HttpOnly
|
65
|
+
server:
|
66
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
67
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
|
68
|
+
\ <id>8c35713571af41a9accdb97cb70c4e29</id>\n <account_code>charge-lookup-1313708721</account_code>\n
|
69
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1315</unit_amount_in_cents>\n
|
70
|
+
\ <amount_in_cents type=\"integer\">1315</amount_in_cents>\n <currency>USD</currency>\n
|
71
|
+
\ <start_date type=\"datetime\">2011-08-19T20:01:42Z</start_date>\n <end_date
|
72
|
+
nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
|
73
|
+
\ <description>inconvenience fee</description>\n <created_at type=\"datetime\">2011-08-19T20:01:42Z</created_at>\n</charge>\n"
|
74
|
+
http_version: '1.1'
|
75
|
+
- !ruby/struct:VCR::HTTPInteraction
|
76
|
+
request: !ruby/struct:VCR::Request
|
77
|
+
method: :get
|
78
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/charge-lookup-1313708721/charges/8c35713571af41a9accdb97cb70c4e29.xml
|
79
|
+
body: !!null
|
80
|
+
headers:
|
81
|
+
user-agent:
|
82
|
+
- Recurly Ruby Client v0.4.10
|
83
|
+
accept:
|
84
|
+
- application/xml
|
85
|
+
accept-encoding:
|
86
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
87
|
+
response: !ruby/struct:VCR::Response
|
88
|
+
status: !ruby/struct:VCR::ResponseStatus
|
89
|
+
code: 200
|
90
|
+
message: OK
|
91
|
+
headers:
|
92
|
+
content-type:
|
93
|
+
- application/xml; charset=utf-8
|
94
|
+
etag:
|
95
|
+
- ! '"ece1f229b856b13944ddbc4aa5a468a8"'
|
96
|
+
cache-control:
|
97
|
+
- max-age=0, private, must-revalidate
|
98
|
+
x-ua-compatible:
|
99
|
+
- IE=Edge
|
100
|
+
set-cookie:
|
101
|
+
- _recurly_session=15a8352f402d7c9352a6af489ce7b2ee; domain=.lvh.me; path=/;
|
102
|
+
HttpOnly
|
103
|
+
server:
|
104
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
105
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<charge type=\"charge\">\n
|
106
|
+
\ <id>8c35713571af41a9accdb97cb70c4e29</id>\n <account_code>charge-lookup-1313708721</account_code>\n
|
107
|
+
\ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">1315</unit_amount_in_cents>\n
|
108
|
+
\ <amount_in_cents type=\"integer\">1315</amount_in_cents>\n <currency>USD</currency>\n
|
109
|
+
\ <start_date type=\"datetime\">2011-08-19T20:01:42Z</start_date>\n <end_date
|
110
|
+
nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
|
111
|
+
\ <description>inconvenience fee</description>\n <created_at type=\"datetime\">2011-08-19T20:01:42Z</created_at>\n</charge>\n"
|
112
|
+
http_version: '1.1'
|
@@ -1,183 +1,109 @@
|
|
1
|
-
---
|
2
|
-
- !ruby/struct:VCR::HTTPInteraction
|
3
|
-
request: !ruby/struct:VCR::Request
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
4
|
method: :post
|
5
|
-
uri: http://
|
6
|
-
body:
|
7
|
-
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<accept-language type="yaml" nil="true"></accept-language>
|
15
|
-
</account>
|
16
|
-
|
17
|
-
headers:
|
18
|
-
authorization:
|
19
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
20
|
-
content-type:
|
5
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts.xml
|
6
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <account-code>coupon-create-1296774903</account-code>\n
|
7
|
+
\ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
|
8
|
+
\ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
|
9
|
+
\ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
|
10
|
+
headers:
|
11
|
+
user-agent:
|
12
|
+
- Recurly Ruby Client v0.4.10
|
13
|
+
content-type:
|
21
14
|
- application/xml
|
22
|
-
|
23
|
-
|
24
|
-
user-agent:
|
25
|
-
- Ruby
|
26
|
-
connection:
|
27
|
-
- close
|
28
|
-
response: !ruby/struct:VCR::Response
|
29
|
-
status: !ruby/struct:VCR::ResponseStatus
|
15
|
+
response: !ruby/struct:VCR::Response
|
16
|
+
status: !ruby/struct:VCR::ResponseStatus
|
30
17
|
code: 201
|
31
|
-
message:
|
32
|
-
headers:
|
33
|
-
|
34
|
-
-
|
35
|
-
|
36
|
-
- http://litle-test.recurly.local:3000/accounts/coupon-create-1296774903
|
37
|
-
x-runtime:
|
38
|
-
- "844"
|
39
|
-
content-type:
|
18
|
+
message: Created
|
19
|
+
headers:
|
20
|
+
location:
|
21
|
+
- http://app.lvh.me:3000/accounts/coupon-create-1296774903
|
22
|
+
content-type:
|
40
23
|
- application/xml; charset=utf-8
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
-
|
45
|
-
|
46
|
-
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<account
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
<email>verena@test.com</email>
|
60
|
-
<first_name>Verena</first_name>
|
61
|
-
<last_name>Test</last_name>
|
62
|
-
<company_name>Recurly Ruby Gem</company_name>
|
63
|
-
<balance_in_cents type="integer">0</balance_in_cents>
|
64
|
-
<closed type="boolean">false</closed>
|
65
|
-
<hosted_login_token>9d7a9cbdacfd43f7a2ec469f74645eca</hosted_login_token>
|
66
|
-
<created_at type="datetime">2011-02-03T23:15:18Z</created_at>
|
67
|
-
<state>active</state>
|
68
|
-
</account>
|
69
|
-
|
70
|
-
http_version: "1.1"
|
71
|
-
- !ruby/struct:VCR::HTTPInteraction
|
72
|
-
request: !ruby/struct:VCR::Request
|
24
|
+
cache-control:
|
25
|
+
- no-cache
|
26
|
+
x-ua-compatible:
|
27
|
+
- IE=Edge
|
28
|
+
set-cookie:
|
29
|
+
- _recurly_session=af7a5d1e253473a84c62da694906688a; domain=.lvh.me; path=/;
|
30
|
+
HttpOnly
|
31
|
+
server:
|
32
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
33
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>coupon-create-1296774903</id>\n
|
34
|
+
\ <account_code>coupon-create-1296774903</account_code>\n <username></username>\n
|
35
|
+
\ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
|
36
|
+
\ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
|
37
|
+
\ <closed type=\"boolean\">false</closed>\n <hosted_login_token>7c1660cfd1bf40468f782a8e7bd175df</hosted_login_token>\n
|
38
|
+
\ <created_at type=\"datetime\">2011-08-19T20:01:43Z</created_at>\n <state>active</state>\n</account>\n"
|
39
|
+
http_version: '1.1'
|
40
|
+
- !ruby/struct:VCR::HTTPInteraction
|
41
|
+
request: !ruby/struct:VCR::Request
|
73
42
|
method: :post
|
74
|
-
uri: http://
|
75
|
-
body:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
headers:
|
82
|
-
authorization:
|
83
|
-
- Basic aXNhYWNAcmVjdXJseS5jb206aXNhYWMxMDI0
|
84
|
-
content-type:
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-create-1296774903/coupon.xml
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <coupon-code>coupon</coupon-code>\n</coupon>\n"
|
45
|
+
headers:
|
46
|
+
user-agent:
|
47
|
+
- Recurly Ruby Client v0.4.10
|
48
|
+
content-type:
|
85
49
|
- application/xml
|
86
|
-
|
87
|
-
|
88
|
-
user-agent:
|
89
|
-
- Ruby
|
90
|
-
connection:
|
91
|
-
- close
|
92
|
-
response: !ruby/struct:VCR::Response
|
93
|
-
status: !ruby/struct:VCR::ResponseStatus
|
50
|
+
response: !ruby/struct:VCR::Response
|
51
|
+
status: !ruby/struct:VCR::ResponseStatus
|
94
52
|
code: 201
|
95
|
-
message:
|
96
|
-
headers:
|
97
|
-
|
98
|
-
- no-cache
|
99
|
-
x-runtime:
|
100
|
-
- "578"
|
101
|
-
content-type:
|
53
|
+
message: Created
|
54
|
+
headers:
|
55
|
+
content-type:
|
102
56
|
- application/xml; charset=utf-8
|
103
|
-
|
104
|
-
-
|
105
|
-
|
106
|
-
-
|
107
|
-
|
108
|
-
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
<coupon
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<redemption>
|
122
|
-
<account_code>coupon-create-1296774903</account_code>
|
123
|
-
<redeemed_at type="datetime">2011-02-03 23:15:21 UTC</redeemed_at>
|
124
|
-
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
125
|
-
</redemption>
|
126
|
-
</coupon>
|
127
|
-
|
128
|
-
http_version: "1.1"
|
129
|
-
- !ruby/struct:VCR::HTTPInteraction
|
130
|
-
request: !ruby/struct:VCR::Request
|
57
|
+
cache-control:
|
58
|
+
- no-cache
|
59
|
+
x-ua-compatible:
|
60
|
+
- IE=Edge
|
61
|
+
set-cookie:
|
62
|
+
- _recurly_session=1a5fd426906ea9145fb1272208c6fea9; domain=.lvh.me; path=/;
|
63
|
+
HttpOnly
|
64
|
+
server:
|
65
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
66
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <account_code>coupon-create-1296774903</account_code>\n
|
67
|
+
\ <coupon_code>coupon</coupon_code>\n <name>coupon</name>\n <discount_in_cents
|
68
|
+
type=\"integer\">1500</discount_in_cents>\n <discount_percent nil=\"true\"
|
69
|
+
type=\"integer\"></discount_percent>\n <redemption>\n <account_code>coupon-create-1296774903</account_code>\n
|
70
|
+
\ <redeemed_at type=\"datetime\">2011-08-19T20:01:43Z</redeemed_at>\n <total_discounted_in_cents
|
71
|
+
type=\"integer\">0</total_discounted_in_cents>\n </redemption>\n</coupon>\n"
|
72
|
+
http_version: '1.1'
|
73
|
+
- !ruby/struct:VCR::HTTPInteraction
|
74
|
+
request: !ruby/struct:VCR::Request
|
131
75
|
method: :get
|
132
|
-
uri: http://
|
133
|
-
body:
|
134
|
-
headers:
|
135
|
-
|
136
|
-
-
|
137
|
-
accept:
|
76
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-create-1296774903/coupon.xml
|
77
|
+
body: !!null
|
78
|
+
headers:
|
79
|
+
user-agent:
|
80
|
+
- Recurly Ruby Client v0.4.10
|
81
|
+
accept:
|
138
82
|
- application/xml
|
139
|
-
accept-encoding:
|
83
|
+
accept-encoding:
|
140
84
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
141
|
-
|
142
|
-
|
143
|
-
connection:
|
144
|
-
- close
|
145
|
-
response: !ruby/struct:VCR::Response
|
146
|
-
status: !ruby/struct:VCR::ResponseStatus
|
85
|
+
response: !ruby/struct:VCR::Response
|
86
|
+
status: !ruby/struct:VCR::ResponseStatus
|
147
87
|
code: 200
|
148
|
-
message:
|
149
|
-
headers:
|
150
|
-
|
151
|
-
- "295"
|
152
|
-
content-type:
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
content-type:
|
153
91
|
- application/xml; charset=utf-8
|
154
|
-
etag:
|
155
|
-
- "
|
156
|
-
cache-control:
|
157
|
-
-
|
158
|
-
|
159
|
-
-
|
160
|
-
|
161
|
-
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
<coupon_code>coupon</coupon_code>
|
173
|
-
<name>coupon</name>
|
174
|
-
<discount_in_cents type="integer"></discount_in_cents>
|
175
|
-
<discount_percent type="integer">15</discount_percent>
|
176
|
-
<redemption>
|
177
|
-
<account_code>coupon-create-1296774903</account_code>
|
178
|
-
<redeemed_at type="datetime">2011-02-03 23:15:21 UTC</redeemed_at>
|
179
|
-
<total_discounted_in_cents type="integer">0</total_discounted_in_cents>
|
180
|
-
</redemption>
|
181
|
-
</coupon>
|
182
|
-
|
183
|
-
http_version: "1.1"
|
92
|
+
etag:
|
93
|
+
- ! '"3c6f7565e5fb19329a10501c26f14950"'
|
94
|
+
cache-control:
|
95
|
+
- max-age=0, private, must-revalidate
|
96
|
+
x-ua-compatible:
|
97
|
+
- IE=Edge
|
98
|
+
set-cookie:
|
99
|
+
- _recurly_session=db7c1ccfb14a322ccccc49c34cac235f; domain=.lvh.me; path=/;
|
100
|
+
HttpOnly
|
101
|
+
server:
|
102
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
103
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <account_code>coupon-create-1296774903</account_code>\n
|
104
|
+
\ <coupon_code>coupon</coupon_code>\n <name>coupon</name>\n <discount_in_cents
|
105
|
+
type=\"integer\">1500</discount_in_cents>\n <discount_percent nil=\"true\"
|
106
|
+
type=\"integer\"></discount_percent>\n <redemption>\n <account_code>coupon-create-1296774903</account_code>\n
|
107
|
+
\ <redeemed_at type=\"datetime\">2011-08-19T20:01:43Z</redeemed_at>\n <total_discounted_in_cents
|
108
|
+
type=\"integer\">0</total_discounted_in_cents>\n </redemption>\n</coupon>\n"
|
109
|
+
http_version: '1.1'
|