quaderno 1.13.2 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +56 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/Gemfile +2 -15
  6. data/README.md +120 -42
  7. data/Rakefile +4 -50
  8. data/changelog.md +67 -41
  9. data/lib/quaderno-ruby.rb +5 -5
  10. data/lib/quaderno-ruby/base.rb +112 -107
  11. data/lib/quaderno-ruby/behavior/block.rb +20 -19
  12. data/lib/quaderno-ruby/behavior/crud.rb +108 -95
  13. data/lib/quaderno-ruby/behavior/deliver.rb +20 -18
  14. data/lib/quaderno-ruby/behavior/payment.rb +38 -34
  15. data/lib/quaderno-ruby/behavior/retrieve.rb +26 -25
  16. data/lib/quaderno-ruby/checkout_session.rb +4 -0
  17. data/lib/quaderno-ruby/collection.rb +1 -0
  18. data/lib/quaderno-ruby/contact.rb +6 -8
  19. data/lib/quaderno-ruby/credit.rb +10 -12
  20. data/lib/quaderno-ruby/document_item.rb +1 -3
  21. data/lib/quaderno-ruby/estimate.rb +5 -7
  22. data/lib/quaderno-ruby/evidence.rb +5 -7
  23. data/lib/quaderno-ruby/exceptions/exceptions.rb +50 -44
  24. data/lib/quaderno-ruby/expense.rb +6 -8
  25. data/lib/quaderno-ruby/helpers/authentication.rb +16 -18
  26. data/lib/quaderno-ruby/helpers/rate_limit.rb +12 -0
  27. data/lib/quaderno-ruby/income.rb +8 -10
  28. data/lib/quaderno-ruby/invoice.rb +9 -11
  29. data/lib/quaderno-ruby/item.rb +3 -6
  30. data/lib/quaderno-ruby/payment.rb +2 -3
  31. data/lib/quaderno-ruby/receipt.rb +6 -8
  32. data/lib/quaderno-ruby/recurring.rb +4 -7
  33. data/lib/quaderno-ruby/report.rb +67 -29
  34. data/lib/quaderno-ruby/tax.rb +51 -46
  35. data/lib/quaderno-ruby/version.rb +3 -0
  36. data/lib/quaderno-ruby/webhook.rb +3 -5
  37. data/quaderno.gemspec +28 -148
  38. metadata +92 -92
  39. data/Gemfile.lock +0 -91
  40. data/VERSION +0 -1
  41. data/test/fixtures/quaderno_cassettes/.DS_Store +0 -0
  42. data/test/fixtures/quaderno_cassettes/all_contacts.yml +0 -52
  43. data/test/fixtures/quaderno_cassettes/all_contacts_by_access_token.yml +0 -56
  44. data/test/fixtures/quaderno_cassettes/all_contacts_by_authentication_token.yml +0 -57
  45. data/test/fixtures/quaderno_cassettes/all_estimates.yml +0 -52
  46. data/test/fixtures/quaderno_cassettes/all_expenses.yml +0 -55
  47. data/test/fixtures/quaderno_cassettes/all_invoices.yml +0 -56
  48. data/test/fixtures/quaderno_cassettes/all_items.yml +0 -46
  49. data/test/fixtures/quaderno_cassettes/all_receipts.yml +0 -53
  50. data/test/fixtures/quaderno_cassettes/all_webhooks.yml +0 -214
  51. data/test/fixtures/quaderno_cassettes/create_estimate_on_downgraded_API.yml +0 -156
  52. data/test/fixtures/quaderno_cassettes/create_expense_on_downgraded_API.yml +0 -278
  53. data/test/fixtures/quaderno_cassettes/create_invoice_on_downgraded_API.yml +0 -159
  54. data/test/fixtures/quaderno_cassettes/create_receipt_on_downgraded_API.yml +0 -196
  55. data/test/fixtures/quaderno_cassettes/deleted_contact.yml +0 -187
  56. data/test/fixtures/quaderno_cassettes/deleted_contact_by_access_token.yml +0 -199
  57. data/test/fixtures/quaderno_cassettes/deleted_contact_by_authentication_token.yml +0 -199
  58. data/test/fixtures/quaderno_cassettes/deleted_estimate.yml +0 -187
  59. data/test/fixtures/quaderno_cassettes/deleted_expense.yml +0 -189
  60. data/test/fixtures/quaderno_cassettes/deleted_invoice.yml +0 -190
  61. data/test/fixtures/quaderno_cassettes/deleted_item.yml +0 -128
  62. data/test/fixtures/quaderno_cassettes/deleted_receipt.yml +0 -223
  63. data/test/fixtures/quaderno_cassettes/deleted_webhook.yml +0 -257
  64. data/test/fixtures/quaderno_cassettes/delivered_estimate.yml +0 -136
  65. data/test/fixtures/quaderno_cassettes/delivered_invoice.yml +0 -143
  66. data/test/fixtures/quaderno_cassettes/delivered_receipt.yml +0 -140
  67. data/test/fixtures/quaderno_cassettes/evidence_invoice.yml +0 -98
  68. data/test/fixtures/quaderno_cassettes/found_contact.yml +0 -95
  69. data/test/fixtures/quaderno_cassettes/found_contact_by_access_token.yml +0 -99
  70. data/test/fixtures/quaderno_cassettes/found_contact_by_authentication_token.yml +0 -100
  71. data/test/fixtures/quaderno_cassettes/found_estimate.yml +0 -97
  72. data/test/fixtures/quaderno_cassettes/found_expense.yml +0 -99
  73. data/test/fixtures/quaderno_cassettes/found_invoice.yml +0 -100
  74. data/test/fixtures/quaderno_cassettes/found_item.yml +0 -91
  75. data/test/fixtures/quaderno_cassettes/found_receipt.yml +0 -98
  76. data/test/fixtures/quaderno_cassettes/found_webhook.yml +0 -130
  77. data/test/fixtures/quaderno_cassettes/new_contact.yml +0 -48
  78. data/test/fixtures/quaderno_cassettes/new_contact_by_access_token.yml +0 -48
  79. data/test/fixtures/quaderno_cassettes/new_contact_by_authentication_token.yml +0 -48
  80. data/test/fixtures/quaderno_cassettes/new_estimate.yml +0 -137
  81. data/test/fixtures/quaderno_cassettes/new_evidence.yml +0 -48
  82. data/test/fixtures/quaderno_cassettes/new_expense.yml +0 -189
  83. data/test/fixtures/quaderno_cassettes/new_invoice.yml +0 -137
  84. data/test/fixtures/quaderno_cassettes/new_item.yml +0 -48
  85. data/test/fixtures/quaderno_cassettes/new_receipt.yml +0 -173
  86. data/test/fixtures/quaderno_cassettes/new_webhook.yml +0 -87
  87. data/test/fixtures/quaderno_cassettes/paid_expense.yml +0 -98
  88. data/test/fixtures/quaderno_cassettes/paid_invoice.yml +0 -99
  89. data/test/fixtures/quaderno_cassettes/rate_limit.yml +0 -46
  90. data/test/fixtures/quaderno_cassettes/unpay_an_expense.yml +0 -138
  91. data/test/fixtures/quaderno_cassettes/unpay_an_invoice.yml +0 -138
  92. data/test/fixtures/quaderno_cassettes/updated_contact.yml +0 -97
  93. data/test/fixtures/quaderno_cassettes/updated_contact_by_access_token.yml +0 -101
  94. data/test/fixtures/quaderno_cassettes/updated_contact_by_authentication_token.yml +0 -102
  95. data/test/fixtures/quaderno_cassettes/updated_estimate.yml +0 -185
  96. data/test/fixtures/quaderno_cassettes/updated_expense.yml +0 -184
  97. data/test/fixtures/quaderno_cassettes/updated_invoice.yml +0 -184
  98. data/test/fixtures/quaderno_cassettes/updated_item.yml +0 -93
  99. data/test/fixtures/quaderno_cassettes/updated_receipt.yml +0 -220
  100. data/test/fixtures/quaderno_cassettes/updated_webhook.yml +0 -175
  101. data/test/fixtures/quaderno_cassettes/validate_invalid_VAT_number.yml +0 -44
  102. data/test/fixtures/quaderno_cassettes/validate_valid_VAT_number.yml +0 -44
  103. data/test/helper.rb +0 -32
  104. data/test/unit/test_quaderno_contacts.rb +0 -83
  105. data/test/unit/test_quaderno_contacts_thread_safe.rb +0 -104
  106. data/test/unit/test_quaderno_estimates.rb +0 -155
  107. data/test/unit/test_quaderno_evidences.rb +0 -41
  108. data/test/unit/test_quaderno_expenses.rb +0 -162
  109. data/test/unit/test_quaderno_invoices.rb +0 -177
  110. data/test/unit/test_quaderno_items.rb +0 -84
  111. data/test/unit/test_quaderno_receipts.rb +0 -156
  112. data/test/unit/test_quaderno_tax.rb +0 -46
  113. data/test/unit/test_quaderno_webhooks.rb +0 -93
@@ -1,159 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json?
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- accept:
11
- - application/json; api_version=20160602
12
- authorization:
13
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
14
- response:
15
- status:
16
- code: 200
17
- message: OK
18
- headers:
19
- x-frame-options:
20
- - ALLOWALL
21
- x-ratelimit-limit:
22
- - '2000'
23
- x-ratelimit-reset:
24
- - '10'
25
- x-ratelimit-remaining:
26
- - '98'
27
- x-pages-currentpage:
28
- - '1'
29
- x-pages-totalpages:
30
- - '1'
31
- content-type:
32
- - application/json; charset=utf-8
33
- etag:
34
- - '"9f61db3c521dbbd6fa0aec27f6813410"'
35
- cache-control:
36
- - max-age=0, private, must-revalidate
37
- x-request-id:
38
- - 32c4c07d-6222-471a-990e-bf332bf5f252
39
- x-runtime:
40
- - '1.210230'
41
- connection:
42
- - close
43
- server:
44
- - thin
45
- body:
46
- encoding: UTF-8
47
- string: '[{"id":44,"kind":"company","created_at":1496660076,"full_name":"Albus
48
- Dumbledoge","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"BE","phone_1":null,"phone_2":null,"fax":null,"email":"john@recrea.es","web":null,"discount":null,"tax_id":null,"vat_number":null,"language":"DE","notes":null,"processor_id":"cst_yBHtjcSFhR","secure_id":"51ed8dd564d46a3e8f6550686dea84750c5d4b80","permalink":"http://development.lvh.me:3000/billing/51ed8dd564d46a3e8f6550686dea84750c5d4b80","url":"http://development.lvh.me:3000/api/contacts/44"},{"id":42,"kind":"person","created_at":1495535760,"first_name":"Cidi","last_name":"Campidocti","full_name":"Cidi
49
- Campidocti","street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":"","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"7e17fe690137a91f7d1b8c1602fb7667ab981b00","permalink":"http://development.lvh.me:3000/billing/7e17fe690137a91f7d1b8c1602fb7667ab981b00","url":"http://development.lvh.me:3000/api/contacts/42"},{"id":43,"kind":"company","created_at":1496653655,"full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"processor_id":"tr_VpKBExBQxU","secure_id":"240d872343b09c0e4f095cfd6484c6eabc74c6eb","permalink":"http://development.lvh.me:3000/billing/240d872343b09c0e4f095cfd6484c6eabc74c6eb","url":"http://development.lvh.me:3000/api/contacts/43"},{"id":45,"kind":"company","created_at":1497013162,"full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0c102e324af99ba80911b5040f8c3ac253c76890","permalink":"http://development.lvh.me:3000/billing/0c102e324af99ba80911b5040f8c3ac253c76890","url":"http://development.lvh.me:3000/api/contacts/45"},{"id":47,"kind":"company","created_at":1497013255,"full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","permalink":"http://development.lvh.me:3000/billing/e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","url":"http://development.lvh.me:3000/api/contacts/47"}]'
50
- http_version: '1.1'
51
- recorded_at: Mon, 12 Jun 2017 11:44:49 GMT
52
- - request:
53
- method: post
54
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/invoices.json
55
- body:
56
- encoding: UTF-8
57
- string: '{"contact_id":44,"contact_name":"Albus Dumbledoge","currency":"EUR","items_attributes":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0"}],"tags":"tnt","payment_details":"","notes":""}'
58
- headers:
59
- accept:
60
- - application/json; api_version=20160602
61
- content-type:
62
- - application/json
63
- authorization:
64
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
65
- response:
66
- status:
67
- code: 201
68
- message: Created
69
- headers:
70
- x-frame-options:
71
- - ALLOWALL
72
- x-ratelimit-limit:
73
- - '2000'
74
- x-ratelimit-reset:
75
- - '9'
76
- x-ratelimit-remaining:
77
- - '97'
78
- content-type:
79
- - application/json; charset=utf-8
80
- etag:
81
- - '"257dfe1ffb849ba20bc804912b98a192"'
82
- cache-control:
83
- - max-age=0, private, must-revalidate
84
- x-request-id:
85
- - 6e19f9c0-72a6-4891-82b6-c60743721f77
86
- x-runtime:
87
- - '6.047995'
88
- connection:
89
- - close
90
- server:
91
- - thin
92
- body:
93
- encoding: ASCII-8BIT
94
- string: !binary |-
95
- eyJpZCI6MTk1LCJudW1iZXIiOiIwMDA2IiwiaXNzdWVfZGF0ZSI6IjIwMTct
96
- MDYtMTIiLCJjcmVhdGVkX2F0IjoxNDk3MjY3ODkxLCJjb250YWN0Ijp7Imlk
97
- Ijo0NCwiZnVsbF9uYW1lIjoiQWxidXMgRHVtYmxlZG9nZSJ9LCJzdHJlZXRf
98
- bGluZV8xIjpudWxsLCJzdHJlZXRfbGluZV8yIjpudWxsLCJjaXR5IjpudWxs
99
- LCJyZWdpb24iOm51bGwsInBvc3RhbF9jb2RlIjpudWxsLCJwb19udW1iZXIi
100
- Om51bGwsImR1ZV9kYXRlIjpudWxsLCJjdXJyZW5jeSI6IkVVUiIsIml0ZW1z
101
- IjpbeyJpZCI6MTk2LCJkZXNjcmlwdGlvbiI6IkFpcmNyYWZ0IiwicXVhbnRp
102
- dHkiOiIxLjAiLCJ1bml0X3ByaWNlIjoiMC4wIiwiZGlzY291bnRfcmF0ZSI6
103
- IjAuMCIsInRheF8xX25hbWUiOm51bGwsInRheF8xX3JhdGUiOm51bGwsInRh
104
- eF8yX25hbWUiOm51bGwsInRheF8yX3JhdGUiOm51bGwsInJlZmVyZW5jZSI6
105
- bnVsbCwic3VidG90YWwiOiLigqwwLjAwIiwiZGlzY291bnQiOiLigqwwLjAw
106
- IiwiZ3Jvc3NfYW1vdW50Ijoi4oKsMC4wMCJ9XSwic3VidG90YWwiOiLigqww
107
- LjAwIiwiZGlzY291bnQiOiLigqwwLjAwIiwidGF4ZXMiOltdLCJ0b3RhbCI6
108
- IuKCrDAuMDAiLCJwYXltZW50cyI6W10sInBheW1lbnRfZGV0YWlscyI6bnVs
109
- bCwibm90ZXMiOm51bGwsInN0YXRlIjoib3V0c3RhbmRpbmciLCJ0YWdfbGlz
110
- dCI6W10sInNlY3VyZV9pZCI6IjM1ODQzNzZhNzg4OTRkYzBkZjI2MzZhMzI4
111
- ZDA0ZDNiMmU1MDcxZmUiLCJwZXJtYWxpbmsiOiJodHRwOi8vZGV2ZWxvcG1l
112
- bnQubHZoLm1lOjMwMDAvaW52b2ljZS8zNTg0Mzc2YTc4ODk0ZGMwZGYyNjM2
113
- YTMyOGQwNGQzYjJlNTA3MWZlIiwicGRmIjoiaHR0cDovL2RldmVsb3BtZW50
114
- Lmx2aC5tZTozMDAwL2ludm9pY2UvMzU4NDM3NmE3ODg5NGRjMGRmMjYzNmEz
115
- MjhkMDRkM2IyZTUwNzFmZS5wZGYiLCJ1cmwiOiJodHRwOi8vZGV2ZWxvcG1l
116
- bnQubHZoLm1lOjMwMDAvYXBpL2ludm9pY2VzLzE5NS5qc29uIiwicHJvY2Vz
117
- c29yIjpudWxsLCJwcm9jZXNzb3JfaWQiOm51bGx9
118
- http_version: '1.1'
119
- recorded_at: Mon, 12 Jun 2017 11:44:55 GMT
120
- - request:
121
- method: delete
122
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/invoices/195.json
123
- body:
124
- encoding: US-ASCII
125
- string: ''
126
- headers:
127
- accept:
128
- - application/json; api_version=20160602
129
- authorization:
130
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
131
- response:
132
- status:
133
- code: 204
134
- message: No Content
135
- headers:
136
- x-frame-options:
137
- - ALLOWALL
138
- x-ratelimit-limit:
139
- - '2000'
140
- x-ratelimit-reset:
141
- - '2'
142
- x-ratelimit-remaining:
143
- - '96'
144
- cache-control:
145
- - no-cache
146
- x-request-id:
147
- - 92099e25-7b01-411e-b810-8a8376eb19df
148
- x-runtime:
149
- - '2.429109'
150
- connection:
151
- - close
152
- server:
153
- - thin
154
- body:
155
- encoding: US-ASCII
156
- string: ''
157
- http_version: '1.1'
158
- recorded_at: Mon, 12 Jun 2017 11:44:58 GMT
159
- recorded_with: VCR 2.9.2
@@ -1,196 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json
6
- body:
7
- encoding: UTF-8
8
- string: '{"first_name":"Test customer"}'
9
- headers:
10
- accept:
11
- - application/json; api_version=20160602
12
- content-type:
13
- - application/json
14
- authorization:
15
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
16
- response:
17
- status:
18
- code: 201
19
- message: Created
20
- headers:
21
- x-frame-options:
22
- - ALLOWALL
23
- x-ratelimit-limit:
24
- - '2000'
25
- x-ratelimit-reset:
26
- - '1'
27
- x-ratelimit-remaining:
28
- - '91'
29
- content-type:
30
- - application/json; charset=utf-8
31
- etag:
32
- - '"f710d0238ce57e50b83b3da2b7ecfe0d"'
33
- cache-control:
34
- - max-age=0, private, must-revalidate
35
- x-request-id:
36
- - 3170e289-db15-444c-a66a-c4f2a710b344
37
- x-runtime:
38
- - '1.638696'
39
- connection:
40
- - close
41
- server:
42
- - thin
43
- body:
44
- encoding: UTF-8
45
- string: '{"id":53,"kind":"company","created_at":1497268179,"full_name":"Test
46
- customer","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"658db8fdb0ae926ce37a239aab1619bf5f8fc4f4","permalink":"http://development.lvh.me:3000/billing/658db8fdb0ae926ce37a239aab1619bf5f8fc4f4","url":"http://development.lvh.me:3000/api/contacts/53"}'
47
- http_version: '1.1'
48
- recorded_at: Mon, 12 Jun 2017 11:49:40 GMT
49
- - request:
50
- method: post
51
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts.json
52
- body:
53
- encoding: UTF-8
54
- string: '{"contact_id":53,"currency":"EUR","items_attributes":[{"description":"Aircraft","quantity":"1.0","unit_price":"0.0"}],"tags":"tnt","payment_method":"cash","notes":""}'
55
- headers:
56
- accept:
57
- - application/json; api_version=20160602
58
- content-type:
59
- - application/json
60
- authorization:
61
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
62
- response:
63
- status:
64
- code: 201
65
- message: Created
66
- headers:
67
- x-frame-options:
68
- - ALLOWALL
69
- x-ratelimit-limit:
70
- - '2000'
71
- x-ratelimit-reset:
72
- - '0'
73
- x-ratelimit-remaining:
74
- - '90'
75
- content-type:
76
- - application/json; charset=utf-8
77
- etag:
78
- - '"f7bfc685efa964fc8fad6e84b042358c"'
79
- cache-control:
80
- - max-age=0, private, must-revalidate
81
- x-request-id:
82
- - 923be158-1857-4184-8631-54001e3d8835
83
- x-runtime:
84
- - '4.633702'
85
- connection:
86
- - close
87
- server:
88
- - thin
89
- body:
90
- encoding: ASCII-8BIT
91
- string: !binary |-
92
- eyJpZCI6MjAzLCJudW1iZXIiOiIwMDAzIiwiaXNzdWVfZGF0ZSI6IjIwMTct
93
- MDYtMTIiLCJjcmVhdGVkX2F0IjoxNDk3MjY4MTgxLCJjb250YWN0Ijp7Imlk
94
- Ijo1MywiZnVsbF9uYW1lIjoiVGVzdCBjdXN0b21lciJ9LCJzdHJlZXRfbGlu
95
- ZV8xIjpudWxsLCJzdHJlZXRfbGluZV8yIjpudWxsLCJjaXR5IjpudWxsLCJy
96
- ZWdpb24iOm51bGwsInBvc3RhbF9jb2RlIjpudWxsLCJwb19udW1iZXIiOm51
97
- bGwsImN1cnJlbmN5IjoiRVVSIiwiaXRlbXMiOlt7ImlkIjoyMDQsImRlc2Ny
98
- aXB0aW9uIjoiQWlyY3JhZnQiLCJxdWFudGl0eSI6IjEuMCIsInVuaXRfcHJp
99
- Y2UiOiIwLjAiLCJkaXNjb3VudF9yYXRlIjoiMC4wIiwidGF4XzFfbmFtZSI6
100
- bnVsbCwidGF4XzFfcmF0ZSI6bnVsbCwidGF4XzJfbmFtZSI6bnVsbCwidGF4
101
- XzJfcmF0ZSI6bnVsbCwicmVmZXJlbmNlIjpudWxsLCJzdWJ0b3RhbCI6IuKC
102
- rDAuMDAiLCJkaXNjb3VudCI6IuKCrDAuMDAiLCJncm9zc19hbW91bnQiOiLi
103
- gqwwLjAwIn1dLCJzdWJ0b3RhbCI6IuKCrDAuMDAiLCJkaXNjb3VudCI6IuKC
104
- rDAuMDAiLCJ0YXhlcyI6W10sInRvdGFsIjoi4oKsMC4wMCIsInBheW1lbnRz
105
- IjpbeyJpZCI6NTMsImRhdGUiOiIyMDE3LTA2LTEyIiwicGF5bWVudF9tZXRo
106
- b2QiOiJjYXNoIiwiYW1vdW50Ijoi4oKsMC4wMCJ9XSwibm90ZXMiOm51bGws
107
- InN0YXRlIjoicGFpZCIsInRhZ19saXN0IjpbXSwic2VjdXJlX2lkIjoiN2Nl
108
- Yjg5YmE3ZWRjMWNiOTI2YmU4NDczMjA2N2NkNjYwY2U5MTJlNSIsInBlcm1h
109
- bGluayI6Imh0dHA6Ly9kZXZlbG9wbWVudC5sdmgubWU6MzAwMC9yZWNlaXB0
110
- LzdjZWI4OWJhN2VkYzFjYjkyNmJlODQ3MzIwNjdjZDY2MGNlOTEyZTUiLCJw
111
- ZGYiOiJodHRwOi8vZGV2ZWxvcG1lbnQubHZoLm1lOjMwMDAvcmVjZWlwdC83
112
- Y2ViODliYTdlZGMxY2I5MjZiZTg0NzMyMDY3Y2Q2NjBjZTkxMmU1LnBkZiIs
113
- InVybCI6Imh0dHA6Ly9kZXZlbG9wbWVudC5sdmgubWU6MzAwMC9hcGkvcmVj
114
- ZWlwdHMvMjAzLmpzb24iLCJwcm9jZXNzb3IiOm51bGwsInByb2Nlc3Nvcl9p
115
- ZCI6bnVsbH0=
116
- http_version: '1.1'
117
- recorded_at: Mon, 12 Jun 2017 11:49:45 GMT
118
- - request:
119
- method: delete
120
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/receipts/203.json
121
- body:
122
- encoding: US-ASCII
123
- string: ''
124
- headers:
125
- accept:
126
- - application/json; api_version=20160602
127
- authorization:
128
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
129
- response:
130
- status:
131
- code: 204
132
- message: No Content
133
- headers:
134
- x-frame-options:
135
- - ALLOWALL
136
- x-ratelimit-limit:
137
- - '2000'
138
- x-ratelimit-reset:
139
- - '15'
140
- x-ratelimit-remaining:
141
- - '100'
142
- cache-control:
143
- - no-cache
144
- x-request-id:
145
- - 804eb5ef-a74e-4e8c-85db-5955b07357d5
146
- x-runtime:
147
- - '2.946196'
148
- connection:
149
- - close
150
- server:
151
- - thin
152
- body:
153
- encoding: US-ASCII
154
- string: ''
155
- http_version: '1.1'
156
- recorded_at: Mon, 12 Jun 2017 11:49:48 GMT
157
- - request:
158
- method: delete
159
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts/53.json
160
- body:
161
- encoding: US-ASCII
162
- string: ''
163
- headers:
164
- accept:
165
- - application/json; api_version=20160602
166
- authorization:
167
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
168
- response:
169
- status:
170
- code: 204
171
- message: No Content
172
- headers:
173
- x-frame-options:
174
- - ALLOWALL
175
- x-ratelimit-limit:
176
- - '2000'
177
- x-ratelimit-reset:
178
- - '15'
179
- x-ratelimit-remaining:
180
- - '99'
181
- cache-control:
182
- - no-cache
183
- x-request-id:
184
- - f85ce166-ddd4-4254-bd61-a877fefd13b9
185
- x-runtime:
186
- - '1.077894'
187
- connection:
188
- - close
189
- server:
190
- - thin
191
- body:
192
- encoding: US-ASCII
193
- string: ''
194
- http_version: '1.1'
195
- recorded_at: Mon, 12 Jun 2017 11:49:49 GMT
196
- recorded_with: VCR 2.9.2
@@ -1,187 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json
6
- body:
7
- encoding: UTF-8
8
- string: '{"kind":"company","first_name":"Z, Mazinger Z","email":"koji@kabuto.ftw"}'
9
- headers:
10
- accept:
11
- - application/json
12
- content-type:
13
- - application/json
14
- authorization:
15
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
16
- response:
17
- status:
18
- code: 201
19
- message: Created
20
- headers:
21
- x-frame-options:
22
- - ALLOWALL
23
- x-ratelimit-limit:
24
- - '2000'
25
- x-ratelimit-reset:
26
- - '15'
27
- x-ratelimit-remaining:
28
- - '99'
29
- content-type:
30
- - application/json; charset=utf-8
31
- etag:
32
- - '"f91d98eb306ceab26e10411da065a848"'
33
- cache-control:
34
- - max-age=0, private, must-revalidate
35
- x-request-id:
36
- - 68925492-4e9d-45de-9c9d-7597a558bc31
37
- x-runtime:
38
- - '0.353759'
39
- connection:
40
- - close
41
- server:
42
- - thin
43
- body:
44
- encoding: UTF-8
45
- string: '{"id":48,"kind":"company","created_at":1497013255,"full_name":"Z, Mazinger
46
- Z","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"fc1348ad62a1a70cd3a4e0316a20a2cfc69ea32b","permalink":"http://development.lvh.me:3000/billing/fc1348ad62a1a70cd3a4e0316a20a2cfc69ea32b","url":"http://development.lvh.me:3000/api/contacts/48"}'
47
- http_version: '1.1'
48
- recorded_at: Fri, 09 Jun 2017 13:00:55 GMT
49
- - request:
50
- method: get
51
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json?
52
- body:
53
- encoding: US-ASCII
54
- string: ''
55
- headers:
56
- accept:
57
- - application/json
58
- authorization:
59
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
60
- response:
61
- status:
62
- code: 200
63
- message: OK
64
- headers:
65
- x-frame-options:
66
- - ALLOWALL
67
- x-ratelimit-limit:
68
- - '2000'
69
- x-ratelimit-reset:
70
- - '14'
71
- x-ratelimit-remaining:
72
- - '98'
73
- x-pages-currentpage:
74
- - '1'
75
- x-pages-totalpages:
76
- - '1'
77
- content-type:
78
- - application/json; charset=utf-8
79
- etag:
80
- - '"c9eb5006ee31c15bc32f3281041f65f5"'
81
- cache-control:
82
- - max-age=0, private, must-revalidate
83
- x-request-id:
84
- - 58010a60-be63-4e25-a609-e255cb485064
85
- x-runtime:
86
- - '0.377157'
87
- connection:
88
- - close
89
- server:
90
- - thin
91
- body:
92
- encoding: UTF-8
93
- string: '[{"id":44,"kind":"company","created_at":1496660076,"full_name":"Albus
94
- Dumbledoge","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"BE","phone_1":null,"phone_2":null,"fax":null,"email":"john@recrea.es","web":null,"discount":null,"tax_id":null,"vat_number":null,"language":"DE","notes":null,"processor_id":"cst_yBHtjcSFhR","secure_id":"51ed8dd564d46a3e8f6550686dea84750c5d4b80","permalink":"http://development.lvh.me:3000/billing/51ed8dd564d46a3e8f6550686dea84750c5d4b80","url":"http://development.lvh.me:3000/api/contacts/44"},{"id":42,"kind":"person","created_at":1495535760,"first_name":"Cidi","last_name":"Campidocti","full_name":"Cidi
95
- Campidocti","street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":"","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"7e17fe690137a91f7d1b8c1602fb7667ab981b00","permalink":"http://development.lvh.me:3000/billing/7e17fe690137a91f7d1b8c1602fb7667ab981b00","url":"http://development.lvh.me:3000/api/contacts/42"},{"id":43,"kind":"company","created_at":1496653655,"full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"processor_id":"tr_VpKBExBQxU","secure_id":"240d872343b09c0e4f095cfd6484c6eabc74c6eb","permalink":"http://development.lvh.me:3000/billing/240d872343b09c0e4f095cfd6484c6eabc74c6eb","url":"http://development.lvh.me:3000/api/contacts/43"},{"id":45,"kind":"company","created_at":1497013162,"full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0c102e324af99ba80911b5040f8c3ac253c76890","permalink":"http://development.lvh.me:3000/billing/0c102e324af99ba80911b5040f8c3ac253c76890","url":"http://development.lvh.me:3000/api/contacts/45"},{"id":47,"kind":"company","created_at":1497013255,"full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","permalink":"http://development.lvh.me:3000/billing/e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","url":"http://development.lvh.me:3000/api/contacts/47"},{"id":48,"kind":"company","created_at":1497013255,"full_name":"Z,
96
- Mazinger Z","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"koji@kabuto.ftw","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"fc1348ad62a1a70cd3a4e0316a20a2cfc69ea32b","permalink":"http://development.lvh.me:3000/billing/fc1348ad62a1a70cd3a4e0316a20a2cfc69ea32b","url":"http://development.lvh.me:3000/api/contacts/48"}]'
97
- http_version: '1.1'
98
- recorded_at: Fri, 09 Jun 2017 13:00:56 GMT
99
- - request:
100
- method: delete
101
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts/48.json
102
- body:
103
- encoding: US-ASCII
104
- string: ''
105
- headers:
106
- accept:
107
- - application/json
108
- authorization:
109
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
110
- response:
111
- status:
112
- code: 204
113
- message: No Content
114
- headers:
115
- x-frame-options:
116
- - ALLOWALL
117
- x-ratelimit-limit:
118
- - '2000'
119
- x-ratelimit-reset:
120
- - '14'
121
- x-ratelimit-remaining:
122
- - '97'
123
- cache-control:
124
- - no-cache
125
- x-request-id:
126
- - 7fba948f-6c17-4b8c-b4f0-e39060029740
127
- x-runtime:
128
- - '0.214950'
129
- connection:
130
- - close
131
- server:
132
- - thin
133
- body:
134
- encoding: US-ASCII
135
- string: ''
136
- http_version: '1.1'
137
- recorded_at: Fri, 09 Jun 2017 13:00:56 GMT
138
- - request:
139
- method: get
140
- uri: http://sk_test_B7xXrTspfeGukQqGN1pK@development.lvh.me:3000/api/contacts.json?
141
- body:
142
- encoding: US-ASCII
143
- string: ''
144
- headers:
145
- accept:
146
- - application/json
147
- authorization:
148
- - Basic c2tfdGVzdF9CN3hYclRzcGZlR3VrUXFHTjFwSzo=
149
- response:
150
- status:
151
- code: 200
152
- message: OK
153
- headers:
154
- x-frame-options:
155
- - ALLOWALL
156
- x-ratelimit-limit:
157
- - '2000'
158
- x-ratelimit-reset:
159
- - '13'
160
- x-ratelimit-remaining:
161
- - '96'
162
- x-pages-currentpage:
163
- - '1'
164
- x-pages-totalpages:
165
- - '1'
166
- content-type:
167
- - application/json; charset=utf-8
168
- etag:
169
- - '"9f61db3c521dbbd6fa0aec27f6813410"'
170
- cache-control:
171
- - max-age=0, private, must-revalidate
172
- x-request-id:
173
- - 5d903d58-2498-49ac-bf25-20cb941cd34f
174
- x-runtime:
175
- - '0.250481'
176
- connection:
177
- - close
178
- server:
179
- - thin
180
- body:
181
- encoding: UTF-8
182
- string: '[{"id":44,"kind":"company","created_at":1496660076,"full_name":"Albus
183
- Dumbledoge","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"BE","phone_1":null,"phone_2":null,"fax":null,"email":"john@recrea.es","web":null,"discount":null,"tax_id":null,"vat_number":null,"language":"DE","notes":null,"processor_id":"cst_yBHtjcSFhR","secure_id":"51ed8dd564d46a3e8f6550686dea84750c5d4b80","permalink":"http://development.lvh.me:3000/billing/51ed8dd564d46a3e8f6550686dea84750c5d4b80","url":"http://development.lvh.me:3000/api/contacts/44"},{"id":42,"kind":"person","created_at":1495535760,"first_name":"Cidi","last_name":"Campidocti","full_name":"Cidi
184
- Campidocti","street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":null,"web":null,"discount":null,"tax_id":"","vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"7e17fe690137a91f7d1b8c1602fb7667ab981b00","permalink":"http://development.lvh.me:3000/billing/7e17fe690137a91f7d1b8c1602fb7667ab981b00","url":"http://development.lvh.me:3000/api/contacts/42"},{"id":43,"kind":"company","created_at":1496653655,"full_name":"Test_OCP","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"dont@stop.believing","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"processor_id":"tr_VpKBExBQxU","secure_id":"240d872343b09c0e4f095cfd6484c6eabc74c6eb","permalink":"http://development.lvh.me:3000/billing/240d872343b09c0e4f095cfd6484c6eabc74c6eb","url":"http://development.lvh.me:3000/api/contacts/43"},{"id":45,"kind":"company","created_at":1497013162,"full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"0c102e324af99ba80911b5040f8c3ac253c76890","permalink":"http://development.lvh.me:3000/billing/0c102e324af99ba80911b5040f8c3ac253c76890","url":"http://development.lvh.me:3000/api/contacts/45"},{"id":47,"kind":"company","created_at":1497013255,"full_name":"Test_Skynet","contact_name":null,"street_line_1":null,"street_line_2":null,"postal_code":null,"city":null,"region":null,"country":"ES","phone_1":null,"phone_2":null,"fax":null,"email":"my_little@po.ny","web":null,"discount":null,"tax_id":null,"vat_number":null,"bank_account":null,"language":"ES","notes":null,"secure_id":"e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","permalink":"http://development.lvh.me:3000/billing/e09d2dd3b8781a417a0ee1b43bdb5499a8e925a7","url":"http://development.lvh.me:3000/api/contacts/47"}]'
185
- http_version: '1.1'
186
- recorded_at: Fri, 09 Jun 2017 13:00:56 GMT
187
- recorded_with: VCR 2.9.2