recurly 0.4.11 → 0.4.13

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.

Files changed (70) hide show
  1. data/README.md +4 -8
  2. data/lib/recurly.rb +10 -19
  3. data/lib/recurly/config_parser.rb +5 -2
  4. data/lib/recurly/plan.rb +0 -1
  5. data/lib/recurly/rails3/recurly.rake +10 -26
  6. data/lib/recurly/transparent.rb +2 -0
  7. data/lib/recurly/verification.rb +14 -8
  8. data/lib/recurly/version.rb +1 -1
  9. data/spec/config/recurly.yml +3 -3
  10. data/spec/config/test1.yml +1 -3
  11. data/spec/config/test2.yml +2 -6
  12. data/spec/unit/config_spec.rb +9 -16
  13. data/spec/unit/transparent_spec.rb +0 -20
  14. data/spec/unit/verification_spec.rb +15 -9
  15. data/spec/vcr/account/accept-language-account/1313708721.yml +52 -31
  16. data/spec/vcr/account/close/1313708721.yml +107 -79
  17. data/spec/vcr/account/create-blank/1313708721.yml +37 -26
  18. data/spec/vcr/account/create-duplicate/1313708721.yml +83 -54
  19. data/spec/vcr/account/create-min/1313708721.yml +48 -30
  20. data/spec/vcr/account/create/1313708721.yml +52 -31
  21. data/spec/vcr/account/find/1313708721.yml +111 -81
  22. data/spec/vcr/account/list/1313708721.yml +1148 -719
  23. data/spec/vcr/account/update/1313708721.yml +182 -124
  24. data/spec/vcr/billing/create/1313708721.yml +156 -93
  25. data/spec/vcr/billing/destroy/1313708721.yml +198 -135
  26. data/spec/vcr/billing/errors/1313708721.yml +91 -56
  27. data/spec/vcr/billing/find/1313708721.yml +200 -122
  28. data/spec/vcr/billing/update/1313708721.yml +218 -126
  29. data/spec/vcr/charge/create/1313708721.yml +189 -120
  30. data/spec/vcr/charge/delete-uninvoiced/1313708721.yml +195 -154
  31. data/spec/vcr/charge/list-all/1313708721.yml +235 -157
  32. data/spec/vcr/charge/list-invoiced/1313708721.yml +351 -234
  33. data/spec/vcr/charge/list-pending/1313708721.yml +235 -159
  34. data/spec/vcr/charge/lookup/1313708721.yml +127 -87
  35. data/spec/vcr/coupon/create/1296774903.yml +83 -95
  36. data/spec/vcr/coupon/destroy/1296774903.yml +81 -115
  37. data/spec/vcr/credit/create/1313708090.yml +127 -87
  38. data/spec/vcr/credit/delete/1313708090.yml +169 -129
  39. data/spec/vcr/credit/list/1313708090.yml +235 -157
  40. data/spec/vcr/credit/lookup/1313708090.yml +127 -87
  41. data/spec/vcr/invoice/create-no-charges/1296674173.yml +140 -89
  42. data/spec/vcr/invoice/create/1296674173.yml +259 -162
  43. data/spec/vcr/invoice/list/1296674173.yml +342 -227
  44. data/spec/vcr/invoice/lookup/1296674173.yml +260 -167
  45. data/spec/vcr/plan/all.yml +206 -198
  46. data/spec/vcr/plan/find.yml +109 -103
  47. data/spec/vcr/plan/update.yml +126 -93
  48. data/spec/vcr/subscription/addons/add/1296674173.yml +156 -261
  49. data/spec/vcr/subscription/addons/create/1296674173.yml +156 -164
  50. data/spec/vcr/subscription/addons/remove/1296674173.yml +156 -249
  51. data/spec/vcr/subscription/cancel-with-code/1296674173.yml +340 -243
  52. data/spec/vcr/subscription/cancel/1296674173.yml +297 -210
  53. data/spec/vcr/subscription/change1/1296674173.yml +303 -213
  54. data/spec/vcr/subscription/change2/1296674173.yml +303 -214
  55. data/spec/vcr/subscription/create/1296674173.yml +167 -111
  56. data/spec/vcr/subscription/find/1296674173.yml +210 -145
  57. data/spec/vcr/subscription/reactivate/1296674173.yml +318 -233
  58. data/spec/vcr/subscription/refund-full/1296674173.yml +277 -199
  59. data/spec/vcr/subscription/refund-none/1296674173.yml +277 -199
  60. data/spec/vcr/subscription/refund-partial/1296674173.yml +277 -199
  61. data/spec/vcr/transaction/all/1311126815.yml +388 -206
  62. data/spec/vcr/transaction/create-no-account/1311126815.yml +74 -43
  63. data/spec/vcr/transaction/create-with-account/1311126815.yml +172 -101
  64. data/spec/vcr/transaction/list-filled/1311126815.yml +486 -291
  65. data/spec/vcr/transaction/list-initial/1311126815.yml +159 -98
  66. data/spec/vcr/transaction/lookup/1311126815.yml +420 -268
  67. data/spec/vcr/transaction/void/1311126815.yml +280 -174
  68. metadata +109 -77
  69. data/spec/vcr/transaction/refund/1311126815.yml +0 -163
  70. data/spec/vcr/transparent/post-url/1311239470.yml +0 -76
@@ -1,51 +1,82 @@
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://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
6
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
7
- \ <account-code>transaction-create-with-accout-1311126815</account-code>\n
8
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
9
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <first-name>Verena</first-name>\n
10
- \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n
11
- \ <city>San Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n
12
- \ <country>US</country>\n <credit-card>\n <number>4111111111111111</number>\n
13
- \ <year type=\"integer\">2012</year>\n <month type=\"integer\">8</month>\n
14
- \ <verification-value>123</verification-value>\n </credit-card>\n
15
- \ </billing-info>\n </account>\n <amount-in-cents type=\"integer\">700</amount-in-cents>\n
16
- \ <description>setup fee of 7 dollarz</description>\n</transaction>\n"
17
- headers:
18
- user-agent:
19
- - Recurly Ruby Client v0.4.10
20
- content-type:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <transaction>
9
+ <account>
10
+ <account-code>transaction-create-with-accout-1311126815</account-code>
11
+ <first-name>Verena</first-name>
12
+ <last-name>Test</last-name>
13
+ <email>verena@test.com</email>
14
+ <company-name>Recurly Ruby Gem</company-name>
15
+ <billing-info>
16
+ <first-name>Verena</first-name>
17
+ <last-name>Test</last-name>
18
+ <address1>123 Test St</address1>
19
+ <city>San Francisco</city>
20
+ <state>CA</state>
21
+ <zip>94115</zip>
22
+ <country>US</country>
23
+ <credit-card>
24
+ <number>4111111111111111</number>
25
+ <year type="integer">2012</year>
26
+ <month type="integer">9</month>
27
+ <verification-value>123</verification-value>
28
+ </credit-card>
29
+ </billing-info>
30
+ </account>
31
+ <amount-in-cents type="integer">700</amount-in-cents>
32
+ <description>setup fee of 7 dollarz</description>
33
+ </transaction>
34
+
35
+ headers:
36
+ user-agent:
37
+ - Recurly Ruby Client v0.4.13
38
+ content-type:
21
39
  - application/xml
22
- response: !ruby/struct:VCR::Response
23
- status: !ruby/struct:VCR::ResponseStatus
40
+ response: !ruby/struct:VCR::Response
41
+ status: !ruby/struct:VCR::ResponseStatus
24
42
  code: 201
25
43
  message: Created
26
- headers:
27
- location:
28
- - http://app.lvh.me:3000/transactions/5ac4756d027a484fa5a520f15bd08ddf
29
- content-type:
44
+ headers:
45
+ location:
46
+ - http://api.lvh.me:3000/transactions/1217e70304774f0b9d134c783900adae
47
+ content-type:
30
48
  - application/xml; charset=utf-8
31
- cache-control:
49
+ cache-control:
32
50
  - no-cache
33
- x-ua-compatible:
51
+ x-ua-compatible:
34
52
  - IE=Edge
35
- set-cookie:
36
- - _recurly_session=e7702aac805c227f2c7395b4db13be58; domain=.lvh.me; path=/;
37
- HttpOnly
38
- server:
53
+ set-cookie:
54
+ - _recurly_session=6e27bb336956f891f5c58bba71e376f8; domain=.lvh.me; path=/; HttpOnly
55
+ server:
39
56
  - thin 1.2.11 codename Bat-Shit Crazy
40
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
41
- \ <id>5ac4756d027a484fa5a520f15bd08ddf</id>\n <account_code>transaction-create-with-accout-1311126815</account_code>\n
42
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:44Z</date>\n
43
- \ <amount_in_cents type=\"integer\">700</amount_in_cents>\n <currency>USD</currency>\n
44
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
45
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
46
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
47
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
48
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
49
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
50
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
51
- http_version: '1.1'
57
+ body: |
58
+ <?xml version="1.0" encoding="UTF-8"?>
59
+ <transaction type="Payment">
60
+ <id>1217e70304774f0b9d134c783900adae</id>
61
+ <account_code>transaction-create-with-accout-1311126815</account_code>
62
+ <action>purchase</action>
63
+ <date type="datetime">2011-09-22T22:02:11Z</date>
64
+ <amount_in_cents type="integer">700</amount_in_cents>
65
+ <currency>USD</currency>
66
+ <status>success</status>
67
+ <message>Test Gateway: Successful test transaction</message>
68
+ <reference>12345</reference>
69
+ <cvv_result code="M">Match</cvv_result>
70
+ <avs_result code="D">Street address and postal code match.</avs_result>
71
+ <avs_result_street>Y</avs_result_street>
72
+ <avs_result_postal>Y</avs_result_postal>
73
+ <test type="boolean">true</test>
74
+ <voidable type="boolean">true</voidable>
75
+ <refundable type="boolean">true</refundable>
76
+ <credit_card>
77
+ <type>visa</type>
78
+ <last_four>1111</last_four>
79
+ </credit_card>
80
+ </transaction>
81
+
82
+ http_version: "1.1"
@@ -1,125 +1,196 @@
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://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-create-with-account-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:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>transaction-create-with-account-1311126815</account-code>
10
+ <first-name>Verena</first-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ user-agent:
23
+ - Recurly Ruby Client v0.4.13
24
+ content-type:
14
25
  - application/xml
15
- response: !ruby/struct:VCR::Response
16
- status: !ruby/struct:VCR::ResponseStatus
26
+ response: !ruby/struct:VCR::Response
27
+ status: !ruby/struct:VCR::ResponseStatus
17
28
  code: 201
18
29
  message: Created
19
- headers:
20
- location:
21
- - http://app.lvh.me:3000/accounts/transaction-create-with-account-1311126815
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/transaction-create-with-account-1311126815
33
+ content-type:
23
34
  - application/xml; charset=utf-8
24
- cache-control:
35
+ cache-control:
25
36
  - no-cache
26
- x-ua-compatible:
37
+ x-ua-compatible:
27
38
  - IE=Edge
28
- set-cookie:
29
- - _recurly_session=8a4eeefb110720c56e7224f202a4f143; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=506e9988ad7a2cf13b7389c37a5f138d; domain=.lvh.me; path=/; HttpOnly
41
+ server:
32
42
  - thin 1.2.11 codename Bat-Shit Crazy
33
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>transaction-create-with-account-1311126815</id>\n
34
- \ <account_code>transaction-create-with-account-1311126815</account_code>\n
35
- \ <username></username>\n <email>verena@test.com</email>\n <first_name>Verena</first_name>\n
36
- \ <last_name>Test</last_name>\n <company_name>Recurly Ruby Gem</company_name>\n
37
- \ <balance_in_cents type=\"integer\">0</balance_in_cents>\n <closed type=\"boolean\">false</closed>\n
38
- \ <hosted_login_token>61373a5be444421a971305f279eab98b</hosted_login_token>\n
39
- \ <created_at type=\"datetime\">2011-08-19T20:02:46Z</created_at>\n <state>active</state>\n</account>\n"
40
- http_version: '1.1'
41
- - !ruby/struct:VCR::HTTPInteraction
42
- request: !ruby/struct:VCR::Request
43
+ body: |
44
+ <?xml version="1.0" encoding="UTF-8"?>
45
+ <account>
46
+ <id>transaction-create-with-account-1311126815</id>
47
+ <account_code>transaction-create-with-account-1311126815</account_code>
48
+ <username></username>
49
+ <email>verena@test.com</email>
50
+ <first_name>Verena</first_name>
51
+ <last_name>Test</last_name>
52
+ <company_name>Recurly Ruby Gem</company_name>
53
+ <balance_in_cents type="integer">0</balance_in_cents>
54
+ <closed type="boolean">false</closed>
55
+ <hosted_login_token>370c03089efa49aaa4c574c692db959f</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:02:12Z</created_at>
57
+ <state>active</state>
58
+ </account>
59
+
60
+ http_version: "1.1"
61
+ - !ruby/struct:VCR::HTTPInteraction
62
+ request: !ruby/struct:VCR::Request
43
63
  method: :put
44
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-create-with-account-1311126815/billing_info.xml
45
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing-info>\n <first-name>Verena</first-name>\n
46
- \ <last-name>Test</last-name>\n <address1>123 Test St</address1>\n <city>San
47
- Francisco</city>\n <state>CA</state>\n <zip>94115</zip>\n <country>US</country>\n
48
- \ <credit-card>\n <number>4111111111111111</number>\n <year type=\"integer\">2012</year>\n
49
- \ <month type=\"integer\">8</month>\n <verification-value>123</verification-value>\n
50
- \ </credit-card>\n <account-code>transaction-create-with-account-1311126815</account-code>\n</billing-info>\n"
51
- headers:
52
- user-agent:
53
- - Recurly Ruby Client v0.4.10
54
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-create-with-account-1311126815/billing_info.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <billing-info>
68
+ <first-name>Verena</first-name>
69
+ <last-name>Test</last-name>
70
+ <address1>123 Test St</address1>
71
+ <city>San Francisco</city>
72
+ <state>CA</state>
73
+ <zip>94115</zip>
74
+ <country>US</country>
75
+ <credit-card>
76
+ <number>4111111111111111</number>
77
+ <year type="integer">2012</year>
78
+ <month type="integer">9</month>
79
+ <verification-value>123</verification-value>
80
+ </credit-card>
81
+ <account-code>transaction-create-with-account-1311126815</account-code>
82
+ </billing-info>
83
+
84
+ headers:
85
+ user-agent:
86
+ - Recurly Ruby Client v0.4.13
87
+ content-type:
55
88
  - application/xml
56
- response: !ruby/struct:VCR::Response
57
- status: !ruby/struct:VCR::ResponseStatus
89
+ response: !ruby/struct:VCR::Response
90
+ status: !ruby/struct:VCR::ResponseStatus
58
91
  code: 200
59
92
  message: OK
60
- headers:
61
- content-type:
93
+ headers:
94
+ content-type:
62
95
  - application/xml; charset=utf-8
63
- etag:
64
- - ! '"16942786728b1da5759cea1a2be3a607"'
65
- cache-control:
96
+ etag:
97
+ - "\"cabf7e64539f05f92c101976d5ab475b\""
98
+ cache-control:
66
99
  - max-age=0, private, must-revalidate
67
- x-ua-compatible:
100
+ x-ua-compatible:
68
101
  - IE=Edge
69
- set-cookie:
70
- - _recurly_session=0e7f533899fa9ee3f0a7910af1eab870; domain=.lvh.me; path=/;
71
- HttpOnly
72
- server:
102
+ set-cookie:
103
+ - _recurly_session=c4fdc3b61867fdbaa3d66f2f6f4e0036; domain=.lvh.me; path=/; HttpOnly
104
+ server:
73
105
  - thin 1.2.11 codename Bat-Shit Crazy
74
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-create-with-account-1311126815</account_code>\n
75
- \ <first_name>Verena</first_name>\n <last_name>Test</last_name>\n <address1>123
76
- Test St</address1>\n <address2></address2>\n <city>San Francisco</city>\n
77
- \ <state>CA</state>\n <country>US</country>\n <zip>94115</zip>\n <phone></phone>\n
78
- \ <vat_number></vat_number>\n <ip_address></ip_address>\n <credit_card>\n
79
- \ <type>visa</type>\n <last_four>1111</last_four>\n <month type=\"integer\">8</month>\n
80
- \ <year type=\"integer\">2012</year>\n </credit_card>\n <updated_at type=\"datetime\">2011-08-19T20:02:50Z</updated_at>\n</billing_info>\n"
81
- http_version: '1.1'
82
- - !ruby/struct:VCR::HTTPInteraction
83
- request: !ruby/struct:VCR::Request
106
+ body: |
107
+ <?xml version="1.0" encoding="UTF-8"?>
108
+ <billing_info>
109
+ <account_code>transaction-create-with-account-1311126815</account_code>
110
+ <first_name>Verena</first_name>
111
+ <last_name>Test</last_name>
112
+ <address1>123 Test St</address1>
113
+ <address2></address2>
114
+ <city>San Francisco</city>
115
+ <state>CA</state>
116
+ <country>US</country>
117
+ <zip>94115</zip>
118
+ <phone></phone>
119
+ <vat_number></vat_number>
120
+ <ip_address></ip_address>
121
+ <credit_card>
122
+ <type>visa</type>
123
+ <last_four>1111</last_four>
124
+ <month type="integer">9</month>
125
+ <year type="integer">2012</year>
126
+ </credit_card>
127
+ <updated_at type="datetime">2011-09-22T22:02:13Z</updated_at>
128
+ </billing_info>
129
+
130
+ http_version: "1.1"
131
+ - !ruby/struct:VCR::HTTPInteraction
132
+ request: !ruby/struct:VCR::Request
84
133
  method: :post
85
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
86
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
87
- \ <account-code>transaction-create-with-account-1311126815</account-code>\n
88
- \ <billing-info>\n <credit-card>\n </credit-card>\n </billing-info>\n
89
- \ </account>\n <amount-in-cents type=\"integer\">700</amount-in-cents>\n <description>test
90
- transaction for $7</description>\n</transaction>\n"
91
- headers:
92
- user-agent:
93
- - Recurly Ruby Client v0.4.10
94
- content-type:
134
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
135
+ body: |
136
+ <?xml version="1.0" encoding="UTF-8"?>
137
+ <transaction>
138
+ <account>
139
+ <account-code>transaction-create-with-account-1311126815</account-code>
140
+ <billing-info>
141
+ <credit-card>
142
+ </credit-card>
143
+ </billing-info>
144
+ </account>
145
+ <amount-in-cents type="integer">700</amount-in-cents>
146
+ <description>test transaction for $7</description>
147
+ </transaction>
148
+
149
+ headers:
150
+ user-agent:
151
+ - Recurly Ruby Client v0.4.13
152
+ content-type:
95
153
  - application/xml
96
- response: !ruby/struct:VCR::Response
97
- status: !ruby/struct:VCR::ResponseStatus
154
+ response: !ruby/struct:VCR::Response
155
+ status: !ruby/struct:VCR::ResponseStatus
98
156
  code: 201
99
157
  message: Created
100
- headers:
101
- location:
102
- - http://app.lvh.me:3000/transactions/32cfb90011604574ba6aab6143920ed2
103
- content-type:
158
+ headers:
159
+ location:
160
+ - http://api.lvh.me:3000/transactions/3e0ab17feaa64a1abf0a21d823f2b4fc
161
+ content-type:
104
162
  - application/xml; charset=utf-8
105
- cache-control:
163
+ cache-control:
106
164
  - no-cache
107
- x-ua-compatible:
165
+ x-ua-compatible:
108
166
  - IE=Edge
109
- set-cookie:
110
- - _recurly_session=8e339173b47853568a0bbbb038548b73; domain=.lvh.me; path=/;
111
- HttpOnly
112
- server:
167
+ set-cookie:
168
+ - _recurly_session=e9d83541024076f79ab0a8d7d3e8013e; domain=.lvh.me; path=/; HttpOnly
169
+ server:
113
170
  - thin 1.2.11 codename Bat-Shit Crazy
114
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
115
- \ <id>32cfb90011604574ba6aab6143920ed2</id>\n <account_code>transaction-create-with-account-1311126815</account_code>\n
116
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:02:51Z</date>\n
117
- \ <amount_in_cents type=\"integer\">700</amount_in_cents>\n <currency>USD</currency>\n
118
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
119
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
120
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
121
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
122
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
123
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
124
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
125
- http_version: '1.1'
171
+ body: |
172
+ <?xml version="1.0" encoding="UTF-8"?>
173
+ <transaction type="Payment">
174
+ <id>3e0ab17feaa64a1abf0a21d823f2b4fc</id>
175
+ <account_code>transaction-create-with-account-1311126815</account_code>
176
+ <action>purchase</action>
177
+ <date type="datetime">2011-09-22T22:02:13Z</date>
178
+ <amount_in_cents type="integer">700</amount_in_cents>
179
+ <currency>USD</currency>
180
+ <status>success</status>
181
+ <message>Test Gateway: Successful test transaction</message>
182
+ <reference>12345</reference>
183
+ <cvv_result code="M">Match</cvv_result>
184
+ <avs_result code="D">Street address and postal code match.</avs_result>
185
+ <avs_result_street>Y</avs_result_street>
186
+ <avs_result_postal>Y</avs_result_postal>
187
+ <test type="boolean">true</test>
188
+ <voidable type="boolean">true</voidable>
189
+ <refundable type="boolean">true</refundable>
190
+ <credit_card>
191
+ <type>visa</type>
192
+ <last_four>1111</last_four>
193
+ </credit_card>
194
+ </transaction>
195
+
196
+ http_version: "1.1"
@@ -1,349 +1,544 @@
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://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-list-filled-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:
5
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts.xml
6
+ body: |
7
+ <?xml version="1.0" encoding="UTF-8"?>
8
+ <account>
9
+ <account-code>transaction-list-filled-1311126815</account-code>
10
+ <first-name>Verena</first-name>
11
+ <last-name>Test</last-name>
12
+ <email>verena@test.com</email>
13
+ <company-name>Recurly Ruby Gem</company-name>
14
+ <billing-info>
15
+ <credit-card>
16
+ </credit-card>
17
+ </billing-info>
18
+ <accept-language nil="true"></accept-language>
19
+ </account>
20
+
21
+ headers:
22
+ user-agent:
23
+ - Recurly Ruby Client v0.4.13
24
+ content-type:
14
25
  - application/xml
15
- response: !ruby/struct:VCR::Response
16
- status: !ruby/struct:VCR::ResponseStatus
26
+ response: !ruby/struct:VCR::Response
27
+ status: !ruby/struct:VCR::ResponseStatus
17
28
  code: 201
18
29
  message: Created
19
- headers:
20
- location:
21
- - http://app.lvh.me:3000/accounts/transaction-list-filled-1311126815
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/transaction-list-filled-1311126815
33
+ content-type:
23
34
  - application/xml; charset=utf-8
24
- cache-control:
35
+ cache-control:
25
36
  - no-cache
26
- x-ua-compatible:
37
+ x-ua-compatible:
27
38
  - IE=Edge
28
- set-cookie:
29
- - _recurly_session=8e51591c2ae39cb2ea9762e0d23232bc; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=35d5658fb009d2380de12f9500662540; domain=.lvh.me; path=/; HttpOnly
41
+ server:
32
42
  - thin 1.2.11 codename Bat-Shit Crazy
33
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<account>\n <id>transaction-list-filled-1311126815</id>\n
34
- \ <account_code>transaction-list-filled-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>e9988504bd594babb69c1fb4dcbc607d</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:02:56Z</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
43
+ body: |
44
+ <?xml version="1.0" encoding="UTF-8"?>
45
+ <account>
46
+ <id>transaction-list-filled-1311126815</id>
47
+ <account_code>transaction-list-filled-1311126815</account_code>
48
+ <username></username>
49
+ <email>verena@test.com</email>
50
+ <first_name>Verena</first_name>
51
+ <last_name>Test</last_name>
52
+ <company_name>Recurly Ruby Gem</company_name>
53
+ <balance_in_cents type="integer">0</balance_in_cents>
54
+ <closed type="boolean">false</closed>
55
+ <hosted_login_token>e50b70a342cb4b6d80a78fc3db03a636</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:02:15Z</created_at>
57
+ <state>active</state>
58
+ </account>
59
+
60
+ http_version: "1.1"
61
+ - !ruby/struct:VCR::HTTPInteraction
62
+ request: !ruby/struct:VCR::Request
42
63
  method: :put
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-list-filled-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-list-filled-1311126815</account-code>\n</billing-info>\n"
50
- headers:
51
- user-agent:
52
- - Recurly Ruby Client v0.4.10
53
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-filled-1311126815/billing_info.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <billing-info>
68
+ <first-name>Verena</first-name>
69
+ <last-name>Test</last-name>
70
+ <address1>123 Test St</address1>
71
+ <city>San Francisco</city>
72
+ <state>CA</state>
73
+ <zip>94115</zip>
74
+ <country>US</country>
75
+ <credit-card>
76
+ <number>4111111111111111</number>
77
+ <year type="integer">2012</year>
78
+ <month type="integer">9</month>
79
+ <verification-value>123</verification-value>
80
+ </credit-card>
81
+ <account-code>transaction-list-filled-1311126815</account-code>
82
+ </billing-info>
83
+
84
+ headers:
85
+ user-agent:
86
+ - Recurly Ruby Client v0.4.13
87
+ content-type:
54
88
  - application/xml
55
- response: !ruby/struct:VCR::Response
56
- status: !ruby/struct:VCR::ResponseStatus
89
+ response: !ruby/struct:VCR::Response
90
+ status: !ruby/struct:VCR::ResponseStatus
57
91
  code: 200
58
92
  message: OK
59
- headers:
60
- content-type:
93
+ headers:
94
+ content-type:
61
95
  - application/xml; charset=utf-8
62
- etag:
63
- - ! '"8458b5b6582dc8533529d42cb30867fe"'
64
- cache-control:
96
+ etag:
97
+ - "\"13755457a9327e01b2baffa015edcb8e\""
98
+ cache-control:
65
99
  - max-age=0, private, must-revalidate
66
- x-ua-compatible:
100
+ x-ua-compatible:
67
101
  - IE=Edge
68
- set-cookie:
69
- - _recurly_session=c73120f6895b813871c61a5eb60212d0; domain=.lvh.me; path=/;
70
- HttpOnly
71
- server:
102
+ set-cookie:
103
+ - _recurly_session=2eca8a467ac42d366eff235f86f3a2d2; domain=.lvh.me; path=/; HttpOnly
104
+ server:
72
105
  - thin 1.2.11 codename Bat-Shit Crazy
73
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<billing_info>\n <account_code>transaction-list-filled-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:00Z</updated_at>\n</billing_info>\n"
80
- http_version: '1.1'
81
- - !ruby/struct:VCR::HTTPInteraction
82
- request: !ruby/struct:VCR::Request
106
+ body: |
107
+ <?xml version="1.0" encoding="UTF-8"?>
108
+ <billing_info>
109
+ <account_code>transaction-list-filled-1311126815</account_code>
110
+ <first_name>Verena</first_name>
111
+ <last_name>Test</last_name>
112
+ <address1>123 Test St</address1>
113
+ <address2></address2>
114
+ <city>San Francisco</city>
115
+ <state>CA</state>
116
+ <country>US</country>
117
+ <zip>94115</zip>
118
+ <phone></phone>
119
+ <vat_number></vat_number>
120
+ <ip_address></ip_address>
121
+ <credit_card>
122
+ <type>visa</type>
123
+ <last_four>1111</last_four>
124
+ <month type="integer">9</month>
125
+ <year type="integer">2012</year>
126
+ </credit_card>
127
+ <updated_at type="datetime">2011-09-22T22:02:16Z</updated_at>
128
+ </billing_info>
129
+
130
+ http_version: "1.1"
131
+ - !ruby/struct:VCR::HTTPInteraction
132
+ request: !ruby/struct:VCR::Request
83
133
  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-list-filled-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:
134
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
135
+ body: |
136
+ <?xml version="1.0" encoding="UTF-8"?>
137
+ <transaction>
138
+ <account>
139
+ <account-code>transaction-list-filled-1311126815</account-code>
140
+ <billing-info>
141
+ <credit-card>
142
+ </credit-card>
143
+ </billing-info>
144
+ </account>
145
+ <amount-in-cents type="integer">100</amount-in-cents>
146
+ <description>one</description>
147
+ </transaction>
148
+
149
+ headers:
150
+ user-agent:
151
+ - Recurly Ruby Client v0.4.13
152
+ content-type:
93
153
  - application/xml
94
- response: !ruby/struct:VCR::Response
95
- status: !ruby/struct:VCR::ResponseStatus
154
+ response: !ruby/struct:VCR::Response
155
+ status: !ruby/struct:VCR::ResponseStatus
96
156
  code: 201
97
157
  message: Created
98
- headers:
99
- location:
100
- - http://app.lvh.me:3000/transactions/3d28d911feda43a9bc1303c107d13bcf
101
- content-type:
158
+ headers:
159
+ location:
160
+ - http://api.lvh.me:3000/transactions/ffa632cd5aea400e9b247c8b3d62c507
161
+ content-type:
102
162
  - application/xml; charset=utf-8
103
- cache-control:
163
+ cache-control:
104
164
  - no-cache
105
- x-ua-compatible:
165
+ x-ua-compatible:
106
166
  - IE=Edge
107
- set-cookie:
108
- - _recurly_session=b648fb564ffad13e156da57618a823b2; domain=.lvh.me; path=/;
109
- HttpOnly
110
- server:
167
+ set-cookie:
168
+ - _recurly_session=ca2c25e772d2a576588904e24aa39ec5; domain=.lvh.me; path=/; HttpOnly
169
+ server:
111
170
  - thin 1.2.11 codename Bat-Shit Crazy
112
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
113
- \ <id>3d28d911feda43a9bc1303c107d13bcf</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
114
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:02Z</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
171
+ body: |
172
+ <?xml version="1.0" encoding="UTF-8"?>
173
+ <transaction type="Payment">
174
+ <id>ffa632cd5aea400e9b247c8b3d62c507</id>
175
+ <account_code>transaction-list-filled-1311126815</account_code>
176
+ <action>purchase</action>
177
+ <date type="datetime">2011-09-22T22:02:16Z</date>
178
+ <amount_in_cents type="integer">100</amount_in_cents>
179
+ <currency>USD</currency>
180
+ <status>success</status>
181
+ <message>Test Gateway: Successful test transaction</message>
182
+ <reference>12345</reference>
183
+ <cvv_result code="M">Match</cvv_result>
184
+ <avs_result code="D">Street address and postal code match.</avs_result>
185
+ <avs_result_street>Y</avs_result_street>
186
+ <avs_result_postal>Y</avs_result_postal>
187
+ <test type="boolean">true</test>
188
+ <voidable type="boolean">true</voidable>
189
+ <refundable type="boolean">true</refundable>
190
+ <credit_card>
191
+ <type>visa</type>
192
+ <last_four>1111</last_four>
193
+ </credit_card>
194
+ </transaction>
195
+
196
+ http_version: "1.1"
197
+ - !ruby/struct:VCR::HTTPInteraction
198
+ request: !ruby/struct:VCR::Request
126
199
  method: :post
127
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
128
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
129
- \ <account-code>transaction-list-filled-1311126815</account-code>\n <billing-info>\n
130
- \ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
131
- \ <amount-in-cents type=\"integer\">200</amount-in-cents>\n <description>two</description>\n</transaction>\n"
132
- headers:
133
- user-agent:
134
- - Recurly Ruby Client v0.4.10
135
- content-type:
200
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
201
+ body: |
202
+ <?xml version="1.0" encoding="UTF-8"?>
203
+ <transaction>
204
+ <account>
205
+ <account-code>transaction-list-filled-1311126815</account-code>
206
+ <billing-info>
207
+ <credit-card>
208
+ </credit-card>
209
+ </billing-info>
210
+ </account>
211
+ <amount-in-cents type="integer">200</amount-in-cents>
212
+ <description>two</description>
213
+ </transaction>
214
+
215
+ headers:
216
+ user-agent:
217
+ - Recurly Ruby Client v0.4.13
218
+ content-type:
136
219
  - application/xml
137
- response: !ruby/struct:VCR::Response
138
- status: !ruby/struct:VCR::ResponseStatus
220
+ response: !ruby/struct:VCR::Response
221
+ status: !ruby/struct:VCR::ResponseStatus
139
222
  code: 201
140
223
  message: Created
141
- headers:
142
- location:
143
- - http://app.lvh.me:3000/transactions/9f88f115c89f412398fa2099af402a53
144
- content-type:
224
+ headers:
225
+ location:
226
+ - http://api.lvh.me:3000/transactions/98fee873ba754956b913ad0d66b2b3e6
227
+ content-type:
145
228
  - application/xml; charset=utf-8
146
- cache-control:
229
+ cache-control:
147
230
  - no-cache
148
- x-ua-compatible:
231
+ x-ua-compatible:
149
232
  - IE=Edge
150
- set-cookie:
151
- - _recurly_session=ea58f11ca47066c08555bea8f2c924b6; domain=.lvh.me; path=/;
152
- HttpOnly
153
- server:
233
+ set-cookie:
234
+ - _recurly_session=2f8580b21a96f793f4632bcc766dc86e; domain=.lvh.me; path=/; HttpOnly
235
+ server:
154
236
  - thin 1.2.11 codename Bat-Shit Crazy
155
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
156
- \ <id>9f88f115c89f412398fa2099af402a53</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
157
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:03Z</date>\n
158
- \ <amount_in_cents type=\"integer\">200</amount_in_cents>\n <currency>USD</currency>\n
159
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
160
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
161
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
162
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
163
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
164
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
165
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
166
- http_version: '1.1'
167
- - !ruby/struct:VCR::HTTPInteraction
168
- request: !ruby/struct:VCR::Request
237
+ body: |
238
+ <?xml version="1.0" encoding="UTF-8"?>
239
+ <transaction type="Payment">
240
+ <id>98fee873ba754956b913ad0d66b2b3e6</id>
241
+ <account_code>transaction-list-filled-1311126815</account_code>
242
+ <action>purchase</action>
243
+ <date type="datetime">2011-09-22T22:02:16Z</date>
244
+ <amount_in_cents type="integer">200</amount_in_cents>
245
+ <currency>USD</currency>
246
+ <status>success</status>
247
+ <message>Test Gateway: Successful test transaction</message>
248
+ <reference>12345</reference>
249
+ <cvv_result code="M">Match</cvv_result>
250
+ <avs_result code="D">Street address and postal code match.</avs_result>
251
+ <avs_result_street>Y</avs_result_street>
252
+ <avs_result_postal>Y</avs_result_postal>
253
+ <test type="boolean">true</test>
254
+ <voidable type="boolean">true</voidable>
255
+ <refundable type="boolean">true</refundable>
256
+ <credit_card>
257
+ <type>visa</type>
258
+ <last_four>1111</last_four>
259
+ </credit_card>
260
+ </transaction>
261
+
262
+ http_version: "1.1"
263
+ - !ruby/struct:VCR::HTTPInteraction
264
+ request: !ruby/struct:VCR::Request
169
265
  method: :post
170
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/transactions.xml
171
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction>\n <account>\n
172
- \ <account-code>transaction-list-filled-1311126815</account-code>\n <billing-info>\n
173
- \ <credit-card>\n </credit-card>\n </billing-info>\n </account>\n
174
- \ <amount-in-cents type=\"integer\">300</amount-in-cents>\n <description>three</description>\n</transaction>\n"
175
- headers:
176
- user-agent:
177
- - Recurly Ruby Client v0.4.10
178
- content-type:
266
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/transactions.xml
267
+ body: |
268
+ <?xml version="1.0" encoding="UTF-8"?>
269
+ <transaction>
270
+ <account>
271
+ <account-code>transaction-list-filled-1311126815</account-code>
272
+ <billing-info>
273
+ <credit-card>
274
+ </credit-card>
275
+ </billing-info>
276
+ </account>
277
+ <amount-in-cents type="integer">300</amount-in-cents>
278
+ <description>three</description>
279
+ </transaction>
280
+
281
+ headers:
282
+ user-agent:
283
+ - Recurly Ruby Client v0.4.13
284
+ content-type:
179
285
  - application/xml
180
- response: !ruby/struct:VCR::Response
181
- status: !ruby/struct:VCR::ResponseStatus
286
+ response: !ruby/struct:VCR::Response
287
+ status: !ruby/struct:VCR::ResponseStatus
182
288
  code: 201
183
289
  message: Created
184
- headers:
185
- location:
186
- - http://app.lvh.me:3000/transactions/3680e3c2479d4e1baac068855dd7c858
187
- content-type:
290
+ headers:
291
+ location:
292
+ - http://api.lvh.me:3000/transactions/5e336e732cac45328c9b005b68d4455a
293
+ content-type:
188
294
  - application/xml; charset=utf-8
189
- cache-control:
295
+ cache-control:
190
296
  - no-cache
191
- x-ua-compatible:
297
+ x-ua-compatible:
192
298
  - IE=Edge
193
- set-cookie:
194
- - _recurly_session=673f2a980b940ab7b9bf1119ddc47366; domain=.lvh.me; path=/;
195
- HttpOnly
196
- server:
299
+ set-cookie:
300
+ - _recurly_session=76b34df9c69b1afdffe2265ee17a4538; domain=.lvh.me; path=/; HttpOnly
301
+ server:
197
302
  - thin 1.2.11 codename Bat-Shit Crazy
198
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transaction type=\"Payment\">\n
199
- \ <id>3680e3c2479d4e1baac068855dd7c858</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
200
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:04Z</date>\n
201
- \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
202
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
203
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
204
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
205
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
206
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
207
- \ <refundable type=\"boolean\">true</refundable>\n <credit_card>\n <type>visa</type>\n
208
- \ <last_four>1111</last_four>\n </credit_card>\n</transaction>\n"
209
- http_version: '1.1'
210
- - !ruby/struct:VCR::HTTPInteraction
211
- request: !ruby/struct:VCR::Request
303
+ body: |
304
+ <?xml version="1.0" encoding="UTF-8"?>
305
+ <transaction type="Payment">
306
+ <id>5e336e732cac45328c9b005b68d4455a</id>
307
+ <account_code>transaction-list-filled-1311126815</account_code>
308
+ <action>purchase</action>
309
+ <date type="datetime">2011-09-22T22:02:17Z</date>
310
+ <amount_in_cents type="integer">300</amount_in_cents>
311
+ <currency>USD</currency>
312
+ <status>success</status>
313
+ <message>Test Gateway: Successful test transaction</message>
314
+ <reference>12345</reference>
315
+ <cvv_result code="M">Match</cvv_result>
316
+ <avs_result code="D">Street address and postal code match.</avs_result>
317
+ <avs_result_street>Y</avs_result_street>
318
+ <avs_result_postal>Y</avs_result_postal>
319
+ <test type="boolean">true</test>
320
+ <voidable type="boolean">true</voidable>
321
+ <refundable type="boolean">true</refundable>
322
+ <credit_card>
323
+ <type>visa</type>
324
+ <last_four>1111</last_four>
325
+ </credit_card>
326
+ </transaction>
327
+
328
+ http_version: "1.1"
329
+ - !ruby/struct:VCR::HTTPInteraction
330
+ request: !ruby/struct:VCR::Request
212
331
  method: :get
213
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-list-filled-1311126815/transactions
214
- body: !!null
215
- headers:
216
- user-agent:
217
- - Recurly Ruby Client v0.4.10
218
- accept:
332
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-filled-1311126815/transactions
333
+ body:
334
+ headers:
335
+ user-agent:
336
+ - Recurly Ruby Client v0.4.13
337
+ accept:
219
338
  - application/xml
220
- accept-encoding:
339
+ accept-encoding:
221
340
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
222
- response: !ruby/struct:VCR::Response
223
- status: !ruby/struct:VCR::ResponseStatus
341
+ response: !ruby/struct:VCR::Response
342
+ status: !ruby/struct:VCR::ResponseStatus
224
343
  code: 200
225
344
  message: OK
226
- headers:
227
- content-type:
345
+ headers:
346
+ content-type:
228
347
  - application/xml; charset=utf-8
229
- etag:
230
- - ! '"c31656db53dc70c1d7819373ab8ff45b"'
231
- cache-control:
348
+ etag:
349
+ - "\"0571c7e7ca71efbf0309a63730bba264\""
350
+ cache-control:
232
351
  - max-age=0, private, must-revalidate
233
- x-ua-compatible:
352
+ x-ua-compatible:
234
353
  - IE=Edge
235
- set-cookie:
236
- - _recurly_session=e47ce3d4548bf6e8836c38c8aabc9fee; domain=.lvh.me; path=/;
237
- HttpOnly
238
- server:
354
+ server:
239
355
  - thin 1.2.11 codename Bat-Shit Crazy
240
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
241
- \ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">50</per_page>\n
242
- \ <total_entries type=\"integer\">4</total_entries>\n <transaction type=\"Payment\">\n
243
- \ <id>3680e3c2479d4e1baac068855dd7c858</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
244
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:04Z</date>\n
245
- \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
246
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
247
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
248
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
249
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
250
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
251
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
252
- type=\"Payment\">\n <id>9f88f115c89f412398fa2099af402a53</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
253
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:03Z</date>\n
254
- \ <amount_in_cents type=\"integer\">200</amount_in_cents>\n <currency>USD</currency>\n
255
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
256
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
257
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
258
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
259
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
260
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
261
- type=\"Payment\">\n <id>3d28d911feda43a9bc1303c107d13bcf</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
262
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:02Z</date>\n
263
- \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
264
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
265
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
266
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
267
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
268
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
269
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
270
- type=\"Payment\">\n <id>eeb4782d846a49598c7a3c914fbc33b0</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
271
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:02:58Z</date>\n
272
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
273
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
274
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
275
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
276
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
277
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
278
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n</transactions>\n"
279
- http_version: '1.1'
280
- - !ruby/struct:VCR::HTTPInteraction
281
- request: !ruby/struct:VCR::Request
356
+ body: |
357
+ <?xml version="1.0" encoding="UTF-8"?>
358
+ <transactions type="collection">
359
+ <current_page type="integer">1</current_page>
360
+ <per_page type="integer">50</per_page>
361
+ <total_entries type="integer">4</total_entries>
362
+ <transaction type="Payment">
363
+ <id>5e336e732cac45328c9b005b68d4455a</id>
364
+ <account_code>transaction-list-filled-1311126815</account_code>
365
+ <action>purchase</action>
366
+ <date type="datetime">2011-09-22T22:02:17Z</date>
367
+ <amount_in_cents type="integer">300</amount_in_cents>
368
+ <currency>USD</currency>
369
+ <status>success</status>
370
+ <message>Test Gateway: Successful test transaction</message>
371
+ <reference>12345</reference>
372
+ <cvv_result code="M">Match</cvv_result>
373
+ <avs_result code="D">Street address and postal code match.</avs_result>
374
+ <avs_result_street>Y</avs_result_street>
375
+ <avs_result_postal>Y</avs_result_postal>
376
+ <test type="boolean">true</test>
377
+ <voidable type="boolean">true</voidable>
378
+ <refundable type="boolean">true</refundable>
379
+ </transaction>
380
+ <transaction type="Payment">
381
+ <id>98fee873ba754956b913ad0d66b2b3e6</id>
382
+ <account_code>transaction-list-filled-1311126815</account_code>
383
+ <action>purchase</action>
384
+ <date type="datetime">2011-09-22T22:02:16Z</date>
385
+ <amount_in_cents type="integer">200</amount_in_cents>
386
+ <currency>USD</currency>
387
+ <status>success</status>
388
+ <message>Test Gateway: Successful test transaction</message>
389
+ <reference>12345</reference>
390
+ <cvv_result code="M">Match</cvv_result>
391
+ <avs_result code="D">Street address and postal code match.</avs_result>
392
+ <avs_result_street>Y</avs_result_street>
393
+ <avs_result_postal>Y</avs_result_postal>
394
+ <test type="boolean">true</test>
395
+ <voidable type="boolean">true</voidable>
396
+ <refundable type="boolean">true</refundable>
397
+ </transaction>
398
+ <transaction type="Payment">
399
+ <id>ffa632cd5aea400e9b247c8b3d62c507</id>
400
+ <account_code>transaction-list-filled-1311126815</account_code>
401
+ <action>purchase</action>
402
+ <date type="datetime">2011-09-22T22:02:16Z</date>
403
+ <amount_in_cents type="integer">100</amount_in_cents>
404
+ <currency>USD</currency>
405
+ <status>success</status>
406
+ <message>Test Gateway: Successful test transaction</message>
407
+ <reference>12345</reference>
408
+ <cvv_result code="M">Match</cvv_result>
409
+ <avs_result code="D">Street address and postal code match.</avs_result>
410
+ <avs_result_street>Y</avs_result_street>
411
+ <avs_result_postal>Y</avs_result_postal>
412
+ <test type="boolean">true</test>
413
+ <voidable type="boolean">true</voidable>
414
+ <refundable type="boolean">true</refundable>
415
+ </transaction>
416
+ <transaction type="Payment">
417
+ <id>b63edd68f716468085ad244aa788376a</id>
418
+ <account_code>transaction-list-filled-1311126815</account_code>
419
+ <action>authorization</action>
420
+ <date type="datetime">2011-09-22T22:02:15Z</date>
421
+ <amount_in_cents type="integer">0</amount_in_cents>
422
+ <currency>USD</currency>
423
+ <status>success</status>
424
+ <message>Test Gateway: Successful test transaction</message>
425
+ <reference>12345</reference>
426
+ <cvv_result code="M">Match</cvv_result>
427
+ <avs_result code="D">Street address and postal code match.</avs_result>
428
+ <avs_result_street>Y</avs_result_street>
429
+ <avs_result_postal>Y</avs_result_postal>
430
+ <test type="boolean">true</test>
431
+ <voidable type="boolean">false</voidable>
432
+ <refundable type="boolean">false</refundable>
433
+ </transaction>
434
+ </transactions>
435
+
436
+ http_version: "1.1"
437
+ - !ruby/struct:VCR::HTTPInteraction
438
+ request: !ruby/struct:VCR::Request
282
439
  method: :get
283
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/transaction-list-filled-1311126815/transactions
284
- body: !!null
285
- headers:
286
- user-agent:
287
- - Recurly Ruby Client v0.4.10
288
- accept:
440
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/transaction-list-filled-1311126815/transactions
441
+ body:
442
+ headers:
443
+ user-agent:
444
+ - Recurly Ruby Client v0.4.13
445
+ accept:
289
446
  - application/xml
290
- accept-encoding:
447
+ accept-encoding:
291
448
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
292
- response: !ruby/struct:VCR::Response
293
- status: !ruby/struct:VCR::ResponseStatus
449
+ response: !ruby/struct:VCR::Response
450
+ status: !ruby/struct:VCR::ResponseStatus
294
451
  code: 200
295
452
  message: OK
296
- headers:
297
- content-type:
453
+ headers:
454
+ content-type:
298
455
  - application/xml; charset=utf-8
299
- etag:
300
- - ! '"c31656db53dc70c1d7819373ab8ff45b"'
301
- cache-control:
456
+ etag:
457
+ - "\"0571c7e7ca71efbf0309a63730bba264\""
458
+ cache-control:
302
459
  - max-age=0, private, must-revalidate
303
- x-ua-compatible:
460
+ x-ua-compatible:
304
461
  - IE=Edge
305
- set-cookie:
306
- - _recurly_session=4dbfc4d14a0680a1a18fdfd8007ff95e; domain=.lvh.me; path=/;
307
- HttpOnly
308
- server:
462
+ server:
309
463
  - thin 1.2.11 codename Bat-Shit Crazy
310
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<transactions type=\"collection\">\n
311
- \ <current_page type=\"integer\">1</current_page>\n <per_page type=\"integer\">50</per_page>\n
312
- \ <total_entries type=\"integer\">4</total_entries>\n <transaction type=\"Payment\">\n
313
- \ <id>3680e3c2479d4e1baac068855dd7c858</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
314
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:04Z</date>\n
315
- \ <amount_in_cents type=\"integer\">300</amount_in_cents>\n <currency>USD</currency>\n
316
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
317
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
318
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
319
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
320
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
321
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
322
- type=\"Payment\">\n <id>9f88f115c89f412398fa2099af402a53</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
323
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:03Z</date>\n
324
- \ <amount_in_cents type=\"integer\">200</amount_in_cents>\n <currency>USD</currency>\n
325
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
326
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
327
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
328
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
329
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
330
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
331
- type=\"Payment\">\n <id>3d28d911feda43a9bc1303c107d13bcf</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
332
- \ <action>purchase</action>\n <date type=\"datetime\">2011-08-19T20:03:02Z</date>\n
333
- \ <amount_in_cents type=\"integer\">100</amount_in_cents>\n <currency>USD</currency>\n
334
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
335
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
336
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
337
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
338
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">true</voidable>\n
339
- \ <refundable type=\"boolean\">true</refundable>\n </transaction>\n <transaction
340
- type=\"Payment\">\n <id>eeb4782d846a49598c7a3c914fbc33b0</id>\n <account_code>transaction-list-filled-1311126815</account_code>\n
341
- \ <action>authorization</action>\n <date type=\"datetime\">2011-08-19T20:02:58Z</date>\n
342
- \ <amount_in_cents type=\"integer\">0</amount_in_cents>\n <currency>USD</currency>\n
343
- \ <status>success</status>\n <message>Test Gateway: Successful test transaction</message>\n
344
- \ <reference>12345</reference>\n <cvv_result code=\"M\">Match</cvv_result>\n
345
- \ <avs_result code=\"D\">Street address and postal code match.</avs_result>\n
346
- \ <avs_result_street>Y</avs_result_street>\n <avs_result_postal>Y</avs_result_postal>\n
347
- \ <test type=\"boolean\">true</test>\n <voidable type=\"boolean\">false</voidable>\n
348
- \ <refundable type=\"boolean\">false</refundable>\n </transaction>\n</transactions>\n"
349
- http_version: '1.1'
464
+ body: |
465
+ <?xml version="1.0" encoding="UTF-8"?>
466
+ <transactions type="collection">
467
+ <current_page type="integer">1</current_page>
468
+ <per_page type="integer">50</per_page>
469
+ <total_entries type="integer">4</total_entries>
470
+ <transaction type="Payment">
471
+ <id>5e336e732cac45328c9b005b68d4455a</id>
472
+ <account_code>transaction-list-filled-1311126815</account_code>
473
+ <action>purchase</action>
474
+ <date type="datetime">2011-09-22T22:02:17Z</date>
475
+ <amount_in_cents type="integer">300</amount_in_cents>
476
+ <currency>USD</currency>
477
+ <status>success</status>
478
+ <message>Test Gateway: Successful test transaction</message>
479
+ <reference>12345</reference>
480
+ <cvv_result code="M">Match</cvv_result>
481
+ <avs_result code="D">Street address and postal code match.</avs_result>
482
+ <avs_result_street>Y</avs_result_street>
483
+ <avs_result_postal>Y</avs_result_postal>
484
+ <test type="boolean">true</test>
485
+ <voidable type="boolean">true</voidable>
486
+ <refundable type="boolean">true</refundable>
487
+ </transaction>
488
+ <transaction type="Payment">
489
+ <id>98fee873ba754956b913ad0d66b2b3e6</id>
490
+ <account_code>transaction-list-filled-1311126815</account_code>
491
+ <action>purchase</action>
492
+ <date type="datetime">2011-09-22T22:02:16Z</date>
493
+ <amount_in_cents type="integer">200</amount_in_cents>
494
+ <currency>USD</currency>
495
+ <status>success</status>
496
+ <message>Test Gateway: Successful test transaction</message>
497
+ <reference>12345</reference>
498
+ <cvv_result code="M">Match</cvv_result>
499
+ <avs_result code="D">Street address and postal code match.</avs_result>
500
+ <avs_result_street>Y</avs_result_street>
501
+ <avs_result_postal>Y</avs_result_postal>
502
+ <test type="boolean">true</test>
503
+ <voidable type="boolean">true</voidable>
504
+ <refundable type="boolean">true</refundable>
505
+ </transaction>
506
+ <transaction type="Payment">
507
+ <id>ffa632cd5aea400e9b247c8b3d62c507</id>
508
+ <account_code>transaction-list-filled-1311126815</account_code>
509
+ <action>purchase</action>
510
+ <date type="datetime">2011-09-22T22:02:16Z</date>
511
+ <amount_in_cents type="integer">100</amount_in_cents>
512
+ <currency>USD</currency>
513
+ <status>success</status>
514
+ <message>Test Gateway: Successful test transaction</message>
515
+ <reference>12345</reference>
516
+ <cvv_result code="M">Match</cvv_result>
517
+ <avs_result code="D">Street address and postal code match.</avs_result>
518
+ <avs_result_street>Y</avs_result_street>
519
+ <avs_result_postal>Y</avs_result_postal>
520
+ <test type="boolean">true</test>
521
+ <voidable type="boolean">true</voidable>
522
+ <refundable type="boolean">true</refundable>
523
+ </transaction>
524
+ <transaction type="Payment">
525
+ <id>b63edd68f716468085ad244aa788376a</id>
526
+ <account_code>transaction-list-filled-1311126815</account_code>
527
+ <action>authorization</action>
528
+ <date type="datetime">2011-09-22T22:02:15Z</date>
529
+ <amount_in_cents type="integer">0</amount_in_cents>
530
+ <currency>USD</currency>
531
+ <status>success</status>
532
+ <message>Test Gateway: Successful test transaction</message>
533
+ <reference>12345</reference>
534
+ <cvv_result code="M">Match</cvv_result>
535
+ <avs_result code="D">Street address and postal code match.</avs_result>
536
+ <avs_result_street>Y</avs_result_street>
537
+ <avs_result_postal>Y</avs_result_postal>
538
+ <test type="boolean">true</test>
539
+ <voidable type="boolean">false</voidable>
540
+ <refundable type="boolean">false</refundable>
541
+ </transaction>
542
+ </transactions>
543
+
544
+ http_version: "1.1"