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,109 +1,97 @@
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>coupon-create-1296774903</account-code>\n
7
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
- \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
- headers:
11
- user-agent:
12
- - Recurly Ruby Client v0.4.10
13
- content-type:
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>coupon-create-1296774903</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/coupon-create-1296774903
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/coupon-create-1296774903
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=af7a5d1e253473a84c62da694906688a; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=015b87e7e665912205e05921557b6166; 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>coupon-create-1296774903</id>\n
34
- \ <account_code>coupon-create-1296774903</account_code>\n <username></username>\n
35
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
- \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
- \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>7c1660cfd1bf40468f782a8e7bd175df</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:43Z</created_at>\n <state>active</state>\n</account>\n"
39
- http_version: '1.1'
40
- - !ruby/struct:VCR::HTTPInteraction
41
- request: !ruby/struct:VCR::Request
43
+ body: |
44
+ <?xml version="1.0" encoding="UTF-8"?>
45
+ <account>
46
+ <id>coupon-create-1296774903</id>
47
+ <account_code>coupon-create-1296774903</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>b5b6067e27d3415886a55975aed02797</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:01:47Z</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: :post
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-create-1296774903/coupon.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <coupon-code>coupon</coupon-code>\n</coupon>\n"
45
- headers:
46
- user-agent:
47
- - Recurly Ruby Client v0.4.10
48
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/coupon-create-1296774903/coupon.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <coupon>
68
+ <coupon-code>coupon</coupon-code>
69
+ </coupon>
70
+
71
+ headers:
72
+ user-agent:
73
+ - Recurly Ruby Client v0.4.13
74
+ content-type:
49
75
  - application/xml
50
- response: !ruby/struct:VCR::Response
51
- status: !ruby/struct:VCR::ResponseStatus
52
- code: 201
53
- message: Created
54
- headers:
55
- content-type:
76
+ response: !ruby/struct:VCR::Response
77
+ status: !ruby/struct:VCR::ResponseStatus
78
+ code: 404
79
+ message: Not Found
80
+ headers:
81
+ content-type:
56
82
  - application/xml; charset=utf-8
57
- cache-control:
83
+ cache-control:
58
84
  - no-cache
59
- x-ua-compatible:
60
- - IE=Edge
61
- set-cookie:
62
- - _recurly_session=1a5fd426906ea9145fb1272208c6fea9; domain=.lvh.me; path=/;
63
- HttpOnly
64
- server:
65
- - thin 1.2.11 codename Bat-Shit Crazy
66
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <account_code>coupon-create-1296774903</account_code>\n
67
- \ <coupon_code>coupon</coupon_code>\n <name>coupon</name>\n <discount_in_cents
68
- type=\"integer\">1500</discount_in_cents>\n <discount_percent nil=\"true\"
69
- type=\"integer\"></discount_percent>\n <redemption>\n <account_code>coupon-create-1296774903</account_code>\n
70
- \ <redeemed_at type=\"datetime\">2011-08-19T20:01:43Z</redeemed_at>\n <total_discounted_in_cents
71
- type=\"integer\">0</total_discounted_in_cents>\n </redemption>\n</coupon>\n"
72
- http_version: '1.1'
73
- - !ruby/struct:VCR::HTTPInteraction
74
- request: !ruby/struct:VCR::Request
75
- method: :get
76
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-create-1296774903/coupon.xml
77
- body: !!null
78
- headers:
79
- user-agent:
80
- - Recurly Ruby Client v0.4.10
81
- accept:
82
- - application/xml
83
- accept-encoding:
84
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
85
- response: !ruby/struct:VCR::Response
86
- status: !ruby/struct:VCR::ResponseStatus
87
- code: 200
88
- message: OK
89
- headers:
90
- content-type:
91
- - application/xml; charset=utf-8
92
- etag:
93
- - ! '"3c6f7565e5fb19329a10501c26f14950"'
94
- cache-control:
95
- - max-age=0, private, must-revalidate
96
- x-ua-compatible:
85
+ x-ua-compatible:
97
86
  - IE=Edge
98
- set-cookie:
99
- - _recurly_session=db7c1ccfb14a322ccccc49c34cac235f; domain=.lvh.me; path=/;
100
- HttpOnly
101
- server:
87
+ set-cookie:
88
+ - _recurly_session=745e525b8f793b787dc0d6bc308472bd; domain=.lvh.me; path=/; HttpOnly
89
+ server:
102
90
  - thin 1.2.11 codename Bat-Shit Crazy
103
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <account_code>coupon-create-1296774903</account_code>\n
104
- \ <coupon_code>coupon</coupon_code>\n <name>coupon</name>\n <discount_in_cents
105
- type=\"integer\">1500</discount_in_cents>\n <discount_percent nil=\"true\"
106
- type=\"integer\"></discount_percent>\n <redemption>\n <account_code>coupon-create-1296774903</account_code>\n
107
- \ <redeemed_at type=\"datetime\">2011-08-19T20:01:43Z</redeemed_at>\n <total_discounted_in_cents
108
- type=\"integer\">0</total_discounted_in_cents>\n </redemption>\n</coupon>\n"
109
- http_version: '1.1'
91
+ body: |
92
+ <?xml version="1.0" encoding="UTF-8"?>
93
+ <errors>
94
+ <error>Coupon not found</error>
95
+ </errors>
96
+
97
+ http_version: "1.1"
@@ -1,131 +1,97 @@
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>coupon-destroy-1296774903</account-code>\n
7
- \ <first-name>Verena</first-name>\n <last-name>Test</last-name>\n <email>verena@test.com</email>\n
8
- \ <company-name>Recurly Ruby Gem</company-name>\n <billing-info>\n <credit-card>\n
9
- \ </credit-card>\n </billing-info>\n <accept-language nil=\"true\"></accept-language>\n</account>\n"
10
- headers:
11
- user-agent:
12
- - Recurly Ruby Client v0.4.10
13
- content-type:
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>coupon-destroy-1296774903</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/coupon-destroy-1296774903
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/coupon-destroy-1296774903
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=4115da7475cf1f47c6861d67ce690b11; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=368f85f925dda8944540df66fd128d0b; 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>coupon-destroy-1296774903</id>\n
34
- \ <account_code>coupon-destroy-1296774903</account_code>\n <username></username>\n
35
- \ <email>verena@test.com</email>\n <first_name>Verena</first_name>\n <last_name>Test</last_name>\n
36
- \ <company_name>Recurly Ruby Gem</company_name>\n <balance_in_cents type=\"integer\">0</balance_in_cents>\n
37
- \ <closed type=\"boolean\">false</closed>\n <hosted_login_token>d00de23adf5e4cd0b1270ce3f2446c7e</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:44Z</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>coupon-destroy-1296774903</id>
47
+ <account_code>coupon-destroy-1296774903</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>4e91c347401540098337f82c650371e9</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:01:47Z</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: :post
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-destroy-1296774903/coupon.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <coupon-code>coupon</coupon-code>\n</coupon>\n"
45
- headers:
46
- user-agent:
47
- - Recurly Ruby Client v0.4.10
48
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/coupon-destroy-1296774903/coupon.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <coupon>
68
+ <coupon-code>coupon</coupon-code>
69
+ </coupon>
70
+
71
+ headers:
72
+ user-agent:
73
+ - Recurly Ruby Client v0.4.13
74
+ content-type:
49
75
  - application/xml
50
- response: !ruby/struct:VCR::Response
51
- status: !ruby/struct:VCR::ResponseStatus
52
- code: 201
53
- message: Created
54
- headers:
55
- content-type:
56
- - application/xml; charset=utf-8
57
- cache-control:
58
- - no-cache
59
- x-ua-compatible:
60
- - IE=Edge
61
- set-cookie:
62
- - _recurly_session=0b1337491de5aabc61a7990034101215; domain=.lvh.me; path=/;
63
- HttpOnly
64
- server:
65
- - thin 1.2.11 codename Bat-Shit Crazy
66
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<coupon>\n <account_code>coupon-destroy-1296774903</account_code>\n
67
- \ <coupon_code>coupon</coupon_code>\n <name>coupon</name>\n <discount_in_cents
68
- type=\"integer\">1500</discount_in_cents>\n <discount_percent nil=\"true\"
69
- type=\"integer\"></discount_percent>\n <redemption>\n <account_code>coupon-destroy-1296774903</account_code>\n
70
- \ <redeemed_at type=\"datetime\">2011-08-19T20:01:44Z</redeemed_at>\n <total_discounted_in_cents
71
- type=\"integer\">0</total_discounted_in_cents>\n </redemption>\n</coupon>\n"
72
- http_version: '1.1'
73
- - !ruby/struct:VCR::HTTPInteraction
74
- request: !ruby/struct:VCR::Request
75
- method: :delete
76
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-destroy-1296774903/coupon.xml
77
- body: !!null
78
- headers:
79
- user-agent:
80
- - Recurly Ruby Client v0.4.10
81
- accept:
82
- - application/xml
83
- response: !ruby/struct:VCR::Response
84
- status: !ruby/struct:VCR::ResponseStatus
85
- code: 200
86
- message: OK
87
- headers:
88
- content-type:
89
- - application/xml; charset=utf-8
90
- cache-control:
91
- - no-cache
92
- x-ua-compatible:
93
- - IE=Edge
94
- set-cookie:
95
- - _recurly_session=906f5697944325b115f309db2d6039fb; domain=.lvh.me; path=/;
96
- HttpOnly
97
- server:
98
- - thin 1.2.11 codename Bat-Shit Crazy
99
- body: ! ' '
100
- http_version: '1.1'
101
- - !ruby/struct:VCR::HTTPInteraction
102
- request: !ruby/struct:VCR::Request
103
- method: :get
104
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/coupon-destroy-1296774903/coupon.xml
105
- body: !!null
106
- headers:
107
- user-agent:
108
- - Recurly Ruby Client v0.4.10
109
- accept:
110
- - application/xml
111
- accept-encoding:
112
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
113
- response: !ruby/struct:VCR::Response
114
- status: !ruby/struct:VCR::ResponseStatus
76
+ response: !ruby/struct:VCR::Response
77
+ status: !ruby/struct:VCR::ResponseStatus
115
78
  code: 404
116
79
  message: Not Found
117
- headers:
118
- content-type:
80
+ headers:
81
+ content-type:
119
82
  - application/xml; charset=utf-8
120
- cache-control:
83
+ cache-control:
121
84
  - no-cache
122
- x-ua-compatible:
85
+ x-ua-compatible:
123
86
  - IE=Edge
124
- set-cookie:
125
- - _recurly_session=fbb3f8874bef4b92f82bda98a11c7571; domain=.lvh.me; path=/;
126
- HttpOnly
127
- server:
87
+ set-cookie:
88
+ - _recurly_session=eacf1e397fa4e09c254a8efd30daa697; domain=.lvh.me; path=/; HttpOnly
89
+ server:
128
90
  - thin 1.2.11 codename Bat-Shit Crazy
129
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<errors>\n <error>Coupon
130
- not found</error>\n</errors>\n"
131
- http_version: '1.1'
91
+ body: |
92
+ <?xml version="1.0" encoding="UTF-8"?>
93
+ <errors>
94
+ <error>Coupon not found</error>
95
+ </errors>
96
+
97
+ http_version: "1.1"
@@ -1,112 +1,152 @@
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>credit-create-1313708090</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>credit-create-1313708090</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/credit-create-1313708090
22
- content-type:
30
+ headers:
31
+ location:
32
+ - http://api.lvh.me:3000/accounts/credit-create-1313708090
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=57a6a7feac74f1115c2c7a297a08f0a5; domain=.lvh.me; path=/;
30
- HttpOnly
31
- server:
39
+ set-cookie:
40
+ - _recurly_session=039e7b84f2c7ab3e968029773d42c835; 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>credit-create-1313708090</id>\n
34
- \ <account_code>credit-create-1313708090</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>3212802a955b45a383bbff1934e0efb8</hosted_login_token>\n
38
- \ <created_at type=\"datetime\">2011-08-19T20:01:44Z</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>credit-create-1313708090</id>
47
+ <account_code>credit-create-1313708090</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>772e713027824d689739c402ed7c8396</hosted_login_token>
56
+ <created_at type="datetime">2011-09-22T22:01:47Z</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: :post
43
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/credit-create-1313708090/credits.xml
44
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit>\n <amount-in-cents
45
- type=\"integer\">1005</amount-in-cents>\n <description>free moniez</description>\n</credit>\n"
46
- headers:
47
- user-agent:
48
- - Recurly Ruby Client v0.4.10
49
- content-type:
64
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/credit-create-1313708090/credits.xml
65
+ body: |
66
+ <?xml version="1.0" encoding="UTF-8"?>
67
+ <credit>
68
+ <amount-in-cents type="integer">1005</amount-in-cents>
69
+ <description>free moniez</description>
70
+ </credit>
71
+
72
+ headers:
73
+ user-agent:
74
+ - Recurly Ruby Client v0.4.13
75
+ content-type:
50
76
  - application/xml
51
- response: !ruby/struct:VCR::Response
52
- status: !ruby/struct:VCR::ResponseStatus
77
+ response: !ruby/struct:VCR::Response
78
+ status: !ruby/struct:VCR::ResponseStatus
53
79
  code: 201
54
80
  message: Created
55
- headers:
56
- content-type:
81
+ headers:
82
+ content-type:
57
83
  - application/xml; charset=utf-8
58
- cache-control:
84
+ cache-control:
59
85
  - no-cache
60
- x-ua-compatible:
86
+ x-ua-compatible:
61
87
  - IE=Edge
62
- set-cookie:
63
- - _recurly_session=373db127f541f139ce710d3bee50e928; domain=.lvh.me; path=/;
64
- HttpOnly
65
- server:
88
+ set-cookie:
89
+ - _recurly_session=31815f42565a91ebaba48c369be06951; domain=.lvh.me; path=/; HttpOnly
90
+ server:
66
91
  - thin 1.2.11 codename Bat-Shit Crazy
67
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit type=\"credit\">\n
68
- \ <id>6199de5433ef4e20916605741a493e0e</id>\n <account_code>credit-create-1313708090</account_code>\n
69
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">-1005</unit_amount_in_cents>\n
70
- \ <amount_in_cents type=\"integer\">-1005</amount_in_cents>\n <currency>USD</currency>\n
71
- \ <start_date type=\"datetime\">2011-08-19T20:01:44Z</start_date>\n <end_date
72
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
73
- \ <description>free moniez</description>\n <created_at type=\"datetime\">2011-08-19T20:01:44Z</created_at>\n</credit>\n"
74
- http_version: '1.1'
75
- - !ruby/struct:VCR::HTTPInteraction
76
- request: !ruby/struct:VCR::Request
92
+ body: |
93
+ <?xml version="1.0" encoding="UTF-8"?>
94
+ <credit type="credit">
95
+ <id>74b3dd2bedbb4a17b868599ccbe0964a</id>
96
+ <account_code>credit-create-1313708090</account_code>
97
+ <quantity type="integer">1</quantity>
98
+ <unit_amount_in_cents type="integer">-1005</unit_amount_in_cents>
99
+ <amount_in_cents type="integer">-1005</amount_in_cents>
100
+ <currency>USD</currency>
101
+ <start_date type="datetime">2011-09-22T22:01:47Z</start_date>
102
+ <end_date nil="true" type="datetime"></end_date>
103
+ <invoice_number nil="true" type="integer"></invoice_number>
104
+ <description>free moniez</description>
105
+ <created_at type="datetime">2011-09-22T22:01:47Z</created_at>
106
+ </credit>
107
+
108
+ http_version: "1.1"
109
+ - !ruby/struct:VCR::HTTPInteraction
110
+ request: !ruby/struct:VCR::Request
77
111
  method: :get
78
- uri: http://api-test%40facebook-test.com:69d95a9768c745ecb5ac6864032ec970@app.lvh.me:3000/accounts/credit-create-1313708090/credits/6199de5433ef4e20916605741a493e0e.xml
79
- body: !!null
80
- headers:
81
- user-agent:
82
- - Recurly Ruby Client v0.4.10
83
- accept:
112
+ uri: http://2a655d41659d4ae0b37fcaec06331bf5:@api.lvh.me:3000/accounts/credit-create-1313708090/credits/74b3dd2bedbb4a17b868599ccbe0964a.xml
113
+ body:
114
+ headers:
115
+ user-agent:
116
+ - Recurly Ruby Client v0.4.13
117
+ accept:
84
118
  - application/xml
85
- accept-encoding:
119
+ accept-encoding:
86
120
  - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
87
- response: !ruby/struct:VCR::Response
88
- status: !ruby/struct:VCR::ResponseStatus
121
+ response: !ruby/struct:VCR::Response
122
+ status: !ruby/struct:VCR::ResponseStatus
89
123
  code: 200
90
124
  message: OK
91
- headers:
92
- content-type:
125
+ headers:
126
+ content-type:
93
127
  - application/xml; charset=utf-8
94
- etag:
95
- - ! '"c495ec98a1577f8014dcb55b8440893c"'
96
- cache-control:
128
+ etag:
129
+ - "\"9dab87df5a4287da8e8c4e5e927ee26d\""
130
+ cache-control:
97
131
  - max-age=0, private, must-revalidate
98
- x-ua-compatible:
132
+ x-ua-compatible:
99
133
  - IE=Edge
100
- set-cookie:
101
- - _recurly_session=a3a3c96ecc6d0f8366bea3954125f225; domain=.lvh.me; path=/;
102
- HttpOnly
103
- server:
134
+ server:
104
135
  - thin 1.2.11 codename Bat-Shit Crazy
105
- body: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<credit type=\"credit\">\n
106
- \ <id>6199de5433ef4e20916605741a493e0e</id>\n <account_code>credit-create-1313708090</account_code>\n
107
- \ <quantity type=\"integer\">1</quantity>\n <unit_amount_in_cents type=\"integer\">-1005</unit_amount_in_cents>\n
108
- \ <amount_in_cents type=\"integer\">-1005</amount_in_cents>\n <currency>USD</currency>\n
109
- \ <start_date type=\"datetime\">2011-08-19T20:01:44Z</start_date>\n <end_date
110
- nil=\"true\" type=\"datetime\"></end_date>\n <invoice_number nil=\"true\" type=\"integer\"></invoice_number>\n
111
- \ <description>free moniez</description>\n <created_at type=\"datetime\">2011-08-19T20:01:44Z</created_at>\n</credit>\n"
112
- http_version: '1.1'
136
+ body: |
137
+ <?xml version="1.0" encoding="UTF-8"?>
138
+ <credit type="credit">
139
+ <id>74b3dd2bedbb4a17b868599ccbe0964a</id>
140
+ <account_code>credit-create-1313708090</account_code>
141
+ <quantity type="integer">1</quantity>
142
+ <unit_amount_in_cents type="integer">-1005</unit_amount_in_cents>
143
+ <amount_in_cents type="integer">-1005</amount_in_cents>
144
+ <currency>USD</currency>
145
+ <start_date type="datetime">2011-09-22T22:01:47Z</start_date>
146
+ <end_date nil="true" type="datetime"></end_date>
147
+ <invoice_number nil="true" type="integer"></invoice_number>
148
+ <description>free moniez</description>
149
+ <created_at type="datetime">2011-09-22T22:01:47Z</created_at>
150
+ </credit>
151
+
152
+ http_version: "1.1"