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,163 @@
|
|
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>transaction-refund-1311126815</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/transaction-refund-1311126815
|
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=719701500fd919d00744fbd32adafa6d; 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>transaction-refund-1311126815</id>\n
|
34
|
+
\ <account_code>transaction-refund-1311126815</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>617ddbe9209d4ce7a042cdad9567c672</hosted_login_token>\n
|
38
|
+
\ <created_at type=\"datetime\">2011-08-19T20:03:19Z</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: :put
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-refund-1311126815/billing_info.xml
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
|
45
|
+
\ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
|
46
|
+
Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
|
47
|
+
\ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
|
48
|
+
\ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
|
49
|
+
\ </credit-card>\n <account-code>transaction-refund-1311126815</account-code>\n</billing-info>\n"
|
50
|
+
headers:
|
51
|
+
user-agent:
|
52
|
+
- Recurly Ruby Client v0.4.10
|
53
|
+
content-type:
|
54
|
+
- application/xml
|
55
|
+
response: !ruby/struct:VCR::Response
|
56
|
+
status: !ruby/struct:VCR::ResponseStatus
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
content-type:
|
61
|
+
- application/xml; charset=utf-8
|
62
|
+
etag:
|
63
|
+
- ! '"835d66a3a9661c3d1515b351ec6bc8ee"'
|
64
|
+
cache-control:
|
65
|
+
- max-age=0, private, must-revalidate
|
66
|
+
x-ua-compatible:
|
67
|
+
- IE=Edge
|
68
|
+
set-cookie:
|
69
|
+
- _recurly_session=51124094eb3d250e757347d9984a6d51; domain=.lvh.me; path=/;
|
70
|
+
HttpOnly
|
71
|
+
server:
|
72
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
73
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-refund-1311126815</account_code>\n
|
74
|
+
\ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
|
75
|
+
Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
|
76
|
+
\ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
|
77
|
+
\ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
|
78
|
+
\ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
|
79
|
+
\ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:03:22Z</updated_at>\n</billing_info>\n"
|
80
|
+
http_version: '1.1'
|
81
|
+
- !ruby/struct:VCR::HTTPInteraction
|
82
|
+
request: !ruby/struct:VCR::Request
|
83
|
+
method: :post
|
84
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
|
85
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
|
86
|
+
\ <account-code>transaction-refund-1311126815</account-code>\n <billing-info>\n
|
87
|
+
\ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
|
88
|
+
\ <amount-in-cents type=\"integer\">1000</amount-in-cents>\n <description>one</description>\n</transaction>\n"
|
89
|
+
headers:
|
90
|
+
user-agent:
|
91
|
+
- Recurly Ruby Client v0.4.10
|
92
|
+
content-type:
|
93
|
+
- application/xml
|
94
|
+
response: !ruby/struct:VCR::Response
|
95
|
+
status: !ruby/struct:VCR::ResponseStatus
|
96
|
+
code: 201
|
97
|
+
message: Created
|
98
|
+
headers:
|
99
|
+
location:
|
100
|
+
- http://app.lvh.me:3000/transactions/bf1e04bcc73542eeb96553f93331f3f7
|
101
|
+
content-type:
|
102
|
+
- application/xml; charset=utf-8
|
103
|
+
cache-control:
|
104
|
+
- no-cache
|
105
|
+
x-ua-compatible:
|
106
|
+
- IE=Edge
|
107
|
+
set-cookie:
|
108
|
+
- _recurly_session=c92561a61c3fc7a95111be1798b8a11f; domain=.lvh.me; path=/;
|
109
|
+
HttpOnly
|
110
|
+
server:
|
111
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
112
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
|
113
|
+
\ <id>bf1e04bcc73542eeb96553f93331f3f7</id>\n <account_code>transaction-refund-1311126815</account_code>\n
|
114
|
+
\ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:23Z</date>\n
|
115
|
+
\ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
|
116
|
+
\ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
|
117
|
+
\ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
|
118
|
+
\ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
|
119
|
+
\ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
|
120
|
+
\ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
|
121
|
+
\ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
|
122
|
+
\ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
|
123
|
+
http_version: '1.1'
|
124
|
+
- !ruby/struct:VCR::HTTPInteraction
|
125
|
+
request: !ruby/struct:VCR::Request
|
126
|
+
method: :delete
|
127
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions/bf1e04bcc73542eeb96553f93331f3f7.xml?action=refund&amount_in_cents=1000
|
128
|
+
body: !!null
|
129
|
+
headers:
|
130
|
+
user-agent:
|
131
|
+
- Recurly Ruby Client v0.4.10
|
132
|
+
accept:
|
133
|
+
- application/xml
|
134
|
+
response: !ruby/struct:VCR::Response
|
135
|
+
status: !ruby/struct:VCR::ResponseStatus
|
136
|
+
code: 200
|
137
|
+
message: OK
|
138
|
+
headers:
|
139
|
+
content-type:
|
140
|
+
- application/xml; charset=utf-8
|
141
|
+
etag:
|
142
|
+
- ! '"7e0eef11c9a635b6e60ca59e26710ebf"'
|
143
|
+
cache-control:
|
144
|
+
- max-age=0, private, must-revalidate
|
145
|
+
x-ua-compatible:
|
146
|
+
- IE=Edge
|
147
|
+
set-cookie:
|
148
|
+
- _recurly_session=149d04926372877b5f835ac60d57924c; domain=.lvh.me; path=/;
|
149
|
+
HttpOnly
|
150
|
+
server:
|
151
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
152
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
|
153
|
+
\ <id>bf1e04bcc73542eeb96553f93331f3f7</id>\n <account_code>transaction-refund-1311126815</account_code>\n
|
154
|
+
\ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:23Z</date>\n
|
155
|
+
\ <amount_in_cents type=\"integer\">1000</amount_in_cents>\n <currency>USD</currency>\n
|
156
|
+
\ <status>void</status>\n <message>Test Gateway: Successful test transaction</message>\n
|
157
|
+
\ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
|
158
|
+
\ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
|
159
|
+
\ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
|
160
|
+
\ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
|
161
|
+
\ <refundable type=\"boolean\">false</refundable>\n <credit_card>\n <type>visa</type>\n
|
162
|
+
\ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
|
163
|
+
http_version: '1.1'
|
@@ -0,0 +1,215 @@
|
|
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>transaction-void-1311126815</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/transaction-void-1311126815
|
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=c530d29f0228cfe8f6c054824d4ed32c; 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>transaction-void-1311126815</id>\n
|
34
|
+
\ <account_code>transaction-void-1311126815</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>9a468a881ad64640a3775ade7df064fc</hosted_login_token>\n
|
38
|
+
\ <created_at type=\"datetime\">2011-08-19T20:03:14Z</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: :put
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-void-1311126815/billing_info.xml
|
44
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
|
45
|
+
\ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
|
46
|
+
Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
|
47
|
+
\ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
|
48
|
+
\ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
|
49
|
+
\ </credit-card>\n <account-code>transaction-void-1311126815</account-code>\n</billing-info>\n"
|
50
|
+
headers:
|
51
|
+
user-agent:
|
52
|
+
- Recurly Ruby Client v0.4.10
|
53
|
+
content-type:
|
54
|
+
- application/xml
|
55
|
+
response: !ruby/struct:VCR::Response
|
56
|
+
status: !ruby/struct:VCR::ResponseStatus
|
57
|
+
code: 200
|
58
|
+
message: OK
|
59
|
+
headers:
|
60
|
+
content-type:
|
61
|
+
- application/xml; charset=utf-8
|
62
|
+
etag:
|
63
|
+
- ! '"94b1411e0be7f585d4ff1ac2062fb378"'
|
64
|
+
cache-control:
|
65
|
+
- max-age=0, private, must-revalidate
|
66
|
+
x-ua-compatible:
|
67
|
+
- IE=Edge
|
68
|
+
set-cookie:
|
69
|
+
- _recurly_session=19f72787d250d4f422ec8b622fbf110a; domain=.lvh.me; path=/;
|
70
|
+
HttpOnly
|
71
|
+
server:
|
72
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
73
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-void-1311126815</account_code>\n
|
74
|
+
\ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
|
75
|
+
Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
|
76
|
+
\ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
|
77
|
+
\ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
|
78
|
+
\ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
|
79
|
+
\ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:03:18Z</updated_at>\n</billing_info>\n"
|
80
|
+
http_version: '1.1'
|
81
|
+
- !ruby/struct:VCR::HTTPInteraction
|
82
|
+
request: !ruby/struct:VCR::Request
|
83
|
+
method: :post
|
84
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
|
85
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
|
86
|
+
\ <account-code>transaction-void-1311126815</account-code>\n <billing-info>\n
|
87
|
+
\ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
|
88
|
+
\ <amount-in-cents type=\"integer\">100</amount-in-cents>\n <description>one</description>\n</transaction>\n"
|
89
|
+
headers:
|
90
|
+
user-agent:
|
91
|
+
- Recurly Ruby Client v0.4.10
|
92
|
+
content-type:
|
93
|
+
- application/xml
|
94
|
+
response: !ruby/struct:VCR::Response
|
95
|
+
status: !ruby/struct:VCR::ResponseStatus
|
96
|
+
code: 201
|
97
|
+
message: Created
|
98
|
+
headers:
|
99
|
+
location:
|
100
|
+
- http://app.lvh.me:3000/transactions/3662cf1f73ea4aa69591ad1be8ea0921
|
101
|
+
content-type:
|
102
|
+
- application/xml; charset=utf-8
|
103
|
+
cache-control:
|
104
|
+
- no-cache
|
105
|
+
x-ua-compatible:
|
106
|
+
- IE=Edge
|
107
|
+
set-cookie:
|
108
|
+
- _recurly_session=d28cd2ff869b4c46d1edbd260f14652a; domain=.lvh.me; path=/;
|
109
|
+
HttpOnly
|
110
|
+
server:
|
111
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
112
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
|
113
|
+
\ <id>3662cf1f73ea4aa69591ad1be8ea0921</id>\n <account_code>transaction-void-1311126815</account_code>\n
|
114
|
+
\ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:19Z</date>\n
|
115
|
+
\ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
|
116
|
+
\ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
|
117
|
+
\ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
|
118
|
+
\ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
|
119
|
+
\ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
|
120
|
+
\ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
|
121
|
+
\ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
|
122
|
+
\ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
|
123
|
+
http_version: '1.1'
|
124
|
+
- !ruby/struct:VCR::HTTPInteraction
|
125
|
+
request: !ruby/struct:VCR::Request
|
126
|
+
method: :delete
|
127
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions/3662cf1f73ea4aa69591ad1be8ea0921.xml?action=void
|
128
|
+
body: !!null
|
129
|
+
headers:
|
130
|
+
user-agent:
|
131
|
+
- Recurly Ruby Client v0.4.10
|
132
|
+
accept:
|
133
|
+
- application/xml
|
134
|
+
response: !ruby/struct:VCR::Response
|
135
|
+
status: !ruby/struct:VCR::ResponseStatus
|
136
|
+
code: 200
|
137
|
+
message: OK
|
138
|
+
headers:
|
139
|
+
content-type:
|
140
|
+
- application/xml; charset=utf-8
|
141
|
+
etag:
|
142
|
+
- ! '"89640203e23e12eef4cb5426a3cd520b"'
|
143
|
+
cache-control:
|
144
|
+
- max-age=0, private, must-revalidate
|
145
|
+
x-ua-compatible:
|
146
|
+
- IE=Edge
|
147
|
+
set-cookie:
|
148
|
+
- _recurly_session=37a1469f6504b193dabe7d760b3575b9; domain=.lvh.me; path=/;
|
149
|
+
HttpOnly
|
150
|
+
server:
|
151
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
152
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
|
153
|
+
\ <id>3662cf1f73ea4aa69591ad1be8ea0921</id>\n <account_code>transaction-void-1311126815</account_code>\n
|
154
|
+
\ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:19Z</date>\n
|
155
|
+
\ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
|
156
|
+
\ <status>void</status>\n <message>Test Gateway: Successful test transaction</message>\n
|
157
|
+
\ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
|
158
|
+
\ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
|
159
|
+
\ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
|
160
|
+
\ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
|
161
|
+
\ <refundable type=\"boolean\">false</refundable>\n <credit_card>\n <type>visa</type>\n
|
162
|
+
\ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
|
163
|
+
http_version: '1.1'
|
164
|
+
- !ruby/struct:VCR::HTTPInteraction
|
165
|
+
request: !ruby/struct:VCR::Request
|
166
|
+
method: :get
|
167
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml?show=voided
|
168
|
+
body: !!null
|
169
|
+
headers:
|
170
|
+
user-agent:
|
171
|
+
- Recurly Ruby Client v0.4.10
|
172
|
+
accept:
|
173
|
+
- application/xml
|
174
|
+
accept-encoding:
|
175
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
176
|
+
response: !ruby/struct:VCR::Response
|
177
|
+
status: !ruby/struct:VCR::ResponseStatus
|
178
|
+
code: 200
|
179
|
+
message: OK
|
180
|
+
headers:
|
181
|
+
content-type:
|
182
|
+
- application/xml; charset=utf-8
|
183
|
+
etag:
|
184
|
+
- ! '"13725465fa6e5d5f7a56cce0feb1b653"'
|
185
|
+
cache-control:
|
186
|
+
- max-age=0, private, must-revalidate
|
187
|
+
x-ua-compatible:
|
188
|
+
- IE=Edge
|
189
|
+
set-cookie:
|
190
|
+
- _recurly_session=9fd6d18fb730464f65042b4758a3d6e0; domain=.lvh.me; path=/;
|
191
|
+
HttpOnly
|
192
|
+
server:
|
193
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
194
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
|
195
|
+
\ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">20</per_page>\n
|
196
|
+
\ <total_entries type=\"integer\">2</total_entries>\n <transaction type=\"Payment\">\n
|
197
|
+
\ <id>3662cf1f73ea4aa69591ad1be8ea0921</id>\n <account_code>transaction-void-1311126815</account_code>\n
|
198
|
+
\ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:19Z</date>\n
|
199
|
+
\ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
|
200
|
+
\ <status>void</status>\n <message>Test Gateway: Successful test transaction</message>\n
|
201
|
+
\ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
|
202
|
+
\ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
|
203
|
+
\ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
|
204
|
+
\ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
|
205
|
+
\ <refundable type=\"boolean\">false</refundable>\n </transaction>\n <transaction
|
206
|
+
type=\"Payment\">\n <id>41aa2da2fee8432d85009a21f9081d38</id>\n <account_code>subscription-refund-full-1296674173</account_code>\n
|
207
|
+
\ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:31Z</date>\n
|
208
|
+
\ <amount_in_cents type=\"integer\">1200</amount_in_cents>\n <currency>USD</currency>\n
|
209
|
+
\ <status>void</status>\n <message>Test Gateway: Successful test transaction</message>\n
|
210
|
+
\ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
|
211
|
+
\ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
|
212
|
+
\ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
|
213
|
+
\ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
|
214
|
+
\ <refundable type=\"boolean\">false</refundable>\n </transaction>\n</transactions>\n"
|
215
|
+
http_version: '1.1'
|
@@ -0,0 +1,76 @@
|
|
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>account-get-1311239470</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/account-get-1311239470
|
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=24850fcb933b5afa605151ca42468f05; 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>account-get-1311239470</id>\n
|
34
|
+
\ <account_code>account-get-1311239470</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>ed5b4c91bd4e43f79ea10f43997d5bc1</hosted_login_token>\n
|
38
|
+
\ <created_at type=\"datetime\">2011-08-19T20:03:23Z</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: :get
|
43
|
+
uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/account-get-1311239470.xml
|
44
|
+
body: !!null
|
45
|
+
headers:
|
46
|
+
user-agent:
|
47
|
+
- Recurly Ruby Client v0.4.10
|
48
|
+
accept:
|
49
|
+
- application/xml
|
50
|
+
accept-encoding:
|
51
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
52
|
+
response: !ruby/struct:VCR::Response
|
53
|
+
status: !ruby/struct:VCR::ResponseStatus
|
54
|
+
code: 200
|
55
|
+
message: OK
|
56
|
+
headers:
|
57
|
+
content-type:
|
58
|
+
- application/xml; charset=utf-8
|
59
|
+
etag:
|
60
|
+
- ! '"fc694cbe7667bd0d1e1be54edd63908d"'
|
61
|
+
cache-control:
|
62
|
+
- max-age=0, private, must-revalidate
|
63
|
+
x-ua-compatible:
|
64
|
+
- IE=Edge
|
65
|
+
set-cookie:
|
66
|
+
- _recurly_session=d4cc83cfc44c7a5fc172827dfad62b02; domain=.lvh.me; path=/;
|
67
|
+
HttpOnly
|
68
|
+
server:
|
69
|
+
- thin 1.2.11 codename Bat-Shit Crazy
|
70
|
+
body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>account-get-1311239470</id>\n
|
71
|
+
\ <account_code>account-get-1311239470</account_code>\n <username></username>\n
|
72
|
+
\ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
|
73
|
+
\ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
|
74
|
+
\ <closed type=\"boolean\">false</closed>\n <hosted_login_token>ed5b4c91bd4e43f79ea10f43997d5bc1</hosted_login_token>\n
|
75
|
+
\ <created_at type=\"datetime\">2011-08-19T20:03:23Z</created_at>\n <state>active</state>\n</account>\n"
|
76
|
+
http_version: '1.1'
|