mavenlink-ruby 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.env +1 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +30 -0
- data/Gemfile +18 -0
- data/Gemfile.lock +74 -0
- data/LICENSE +21 -0
- data/README.md +7 -0
- data/Rakefile +12 -0
- data/fixtures/vcr_cassettes/Mavenlink_CustomFieldValue/_list/a_subject_type_is_provided/should_be_listable.yml +55 -0
- data/fixtures/vcr_cassettes/Mavenlink_CustomFieldValue/_retrieve/should_be_retrievable.yml +55 -0
- data/fixtures/vcr_cassettes/Mavenlink_Invoice/_list/should_be_listable.yml +89 -0
- data/fixtures/vcr_cassettes/Mavenlink_Invoice/_retrieve/should_be_retrievable.yml +55 -0
- data/fixtures/vcr_cassettes/Mavenlink_Workspace/_list/should_be_listable.yml +108 -0
- data/fixtures/vcr_cassettes/Mavenlink_Workspace/_list_invoices/should_list_the_Invoices_for_the_provided_Workspace_id.yml +57 -0
- data/fixtures/vcr_cassettes/Mavenlink_Workspace/_retrieve/should_be_retrievable.yml +57 -0
- data/fixtures/vcr_cassettes/Mavenlink_WorkspaceGroup/_list/should_be_listable.yml +74 -0
- data/fixtures/vcr_cassettes/Mavenlink_WorkspaceGroup/_list_workspaces/should_list_the_Workspaces_for_the_provided_WorkspaceGroup_id.yml +57 -0
- data/fixtures/vcr_cassettes/Mavenlink_WorkspaceGroup/_retrieve/should_be_retrievable.yml +56 -0
- data/lib/mavenlink.rb +31 -0
- data/lib/mavenlink/api_operations/request.rb +41 -0
- data/lib/mavenlink/api_resource.rb +70 -0
- data/lib/mavenlink/list.rb +59 -0
- data/lib/mavenlink/resources.rb +6 -0
- data/lib/mavenlink/resources/custom_field_value.rb +24 -0
- data/lib/mavenlink/resources/invoice.rb +16 -0
- data/lib/mavenlink/resources/workspace.rb +12 -0
- data/lib/mavenlink/resources/workspace_group.rb +25 -0
- data/lib/mavenlink/util.rb +23 -0
- data/mavenlink-ruby.gemspec +20 -0
- data/spec/.rubocop.yml +20 -0
- data/spec/lib/mavenlink/list_spec.rb +185 -0
- data/spec/lib/mavenlink/resources/custom_field_value_spec.rb +69 -0
- data/spec/lib/mavenlink/resources/invoice_spec.rb +38 -0
- data/spec/lib/mavenlink/resources/workspace_group_spec.rb +147 -0
- data/spec/lib/mavenlink/resources/workspace_spec.rb +35 -0
- data/spec/spec_helper.rb +24 -0
- metadata +78 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 43793fe3c335a93a710d3328cf1223d770c13d0f959b5e07dd3200bdb0b3dd96
|
4
|
+
data.tar.gz: 1a482dbf42f9fdaf3631012fcce9ae3e562d313a066272702fc1311903726bdb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f3de562208c389f56af9c61ff52daf04011cc27b7ef220795d2058dd88b961a128287d1adbe238b4c8d2fd4935607cd46632541965d8277e06894798cf533047
|
7
|
+
data.tar.gz: ed3469f4f16e7f2cf05cf5342973dbb9fbfed74ae750f1ff01994aae76d322de61937a8ac36392304ad72e73f78934cda7081e40bf85801d8c63327b7e40a814
|
data/.env
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
MAVENLINK_API_KEY=0e546a1f10023d5c86fbe1583cb13fbffb0c956a69dc8a496d741e8de820c672
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
AllCops:
|
2
|
+
DisplayCopNames: true
|
3
|
+
TargetRubyVersion: 2.6.5
|
4
|
+
|
5
|
+
Layout/CaseIndentation:
|
6
|
+
EnforcedStyle: end
|
7
|
+
|
8
|
+
Layout/FirstArrayElementIndentation:
|
9
|
+
EnforcedStyle: consistent
|
10
|
+
|
11
|
+
Layout/FirstHashElementIndentation:
|
12
|
+
EnforcedStyle: consistent
|
13
|
+
|
14
|
+
Style/AccessModifierDeclarations:
|
15
|
+
EnforcedStyle: inline
|
16
|
+
|
17
|
+
Style/Documentation:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Style/FrozenStringLiteralComment:
|
21
|
+
EnforcedStyle: always
|
22
|
+
|
23
|
+
Style/StringLiterals:
|
24
|
+
EnforcedStyle: double_quotes
|
25
|
+
|
26
|
+
Style/TrailingCommaInArrayLiteral:
|
27
|
+
EnforcedStyleForMultiline: consistent_comma
|
28
|
+
|
29
|
+
Style/TrailingCommaInHashLiteral:
|
30
|
+
EnforcedStyleForMultiline: consistent_comma
|
data/Gemfile
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "httparty"
|
6
|
+
|
7
|
+
group :development do
|
8
|
+
gem "rubocop"
|
9
|
+
end
|
10
|
+
|
11
|
+
group :test do
|
12
|
+
gem "dotenv"
|
13
|
+
gem "rake"
|
14
|
+
gem "rspec"
|
15
|
+
gem "simplecov", require: false
|
16
|
+
gem "vcr"
|
17
|
+
gem "webmock"
|
18
|
+
end
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
addressable (2.7.0)
|
5
|
+
public_suffix (>= 2.0.2, < 5.0)
|
6
|
+
ast (2.4.0)
|
7
|
+
crack (0.4.3)
|
8
|
+
safe_yaml (~> 1.0.0)
|
9
|
+
diff-lcs (1.3)
|
10
|
+
docile (1.3.2)
|
11
|
+
dotenv (2.7.5)
|
12
|
+
hashdiff (1.0.0)
|
13
|
+
httparty (0.17.3)
|
14
|
+
mime-types (~> 3.0)
|
15
|
+
multi_xml (>= 0.5.2)
|
16
|
+
jaro_winkler (1.5.4)
|
17
|
+
mime-types (3.3.1)
|
18
|
+
mime-types-data (~> 3.2015)
|
19
|
+
mime-types-data (3.2019.1009)
|
20
|
+
multi_xml (0.6.0)
|
21
|
+
parallel (1.19.1)
|
22
|
+
parser (2.7.0.2)
|
23
|
+
ast (~> 2.4.0)
|
24
|
+
public_suffix (4.0.3)
|
25
|
+
rainbow (3.0.0)
|
26
|
+
rake (13.0.1)
|
27
|
+
rspec (3.9.0)
|
28
|
+
rspec-core (~> 3.9.0)
|
29
|
+
rspec-expectations (~> 3.9.0)
|
30
|
+
rspec-mocks (~> 3.9.0)
|
31
|
+
rspec-core (3.9.1)
|
32
|
+
rspec-support (~> 3.9.1)
|
33
|
+
rspec-expectations (3.9.0)
|
34
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
+
rspec-support (~> 3.9.0)
|
36
|
+
rspec-mocks (3.9.1)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.9.0)
|
39
|
+
rspec-support (3.9.2)
|
40
|
+
rubocop (0.79.0)
|
41
|
+
jaro_winkler (~> 1.5.1)
|
42
|
+
parallel (~> 1.10)
|
43
|
+
parser (>= 2.7.0.1)
|
44
|
+
rainbow (>= 2.2.2, < 4.0)
|
45
|
+
ruby-progressbar (~> 1.7)
|
46
|
+
unicode-display_width (>= 1.4.0, < 1.7)
|
47
|
+
ruby-progressbar (1.10.1)
|
48
|
+
safe_yaml (1.0.5)
|
49
|
+
simplecov (0.18.1)
|
50
|
+
docile (~> 1.1)
|
51
|
+
simplecov-html (~> 0.11.0)
|
52
|
+
simplecov-html (0.11.0)
|
53
|
+
unicode-display_width (1.6.1)
|
54
|
+
vcr (5.0.0)
|
55
|
+
webmock (3.8.0)
|
56
|
+
addressable (>= 2.3.6)
|
57
|
+
crack (>= 0.3.2)
|
58
|
+
hashdiff (>= 0.4.0, < 2.0.0)
|
59
|
+
|
60
|
+
PLATFORMS
|
61
|
+
ruby
|
62
|
+
|
63
|
+
DEPENDENCIES
|
64
|
+
dotenv
|
65
|
+
httparty
|
66
|
+
rake
|
67
|
+
rspec
|
68
|
+
rubocop
|
69
|
+
simplecov
|
70
|
+
vcr
|
71
|
+
webmock
|
72
|
+
|
73
|
+
BUNDLED WITH
|
74
|
+
2.1.4
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2020 Adam Dawkins
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Mavenlink Ruby API
|
2
|
+
|
3
|
+
A wrapper for the Mavenlink API in Ruby, heavily inspired by [stripe-ruby](https://github.com/stripe/stripe-ruby)
|
4
|
+
|
5
|
+
# DO NOT USE
|
6
|
+
*This gem is a work in progress, and I am only developing the features that I need for a specific Mavenlink integration currently.*
|
7
|
+
That said, if you like this approach, and specifically prefer it to [mavenlink_gem](https://github.com/mavenlink/mavenlink_gem), then let me know, and maybe we could collaborate to take it further.
|
data/Rakefile
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mavenlink.com/api/v1/custom_field_values?subject_type=workspace_group
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer 0e546a1f10023d5c86fbe1583cb13fbffb0c956a69dc8a496d741e8de820c672
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Sun, 09 Feb 2020 22:23:19 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Expires:
|
32
|
+
- Fri, 01 Jan 1990 00:00:00 GMT
|
33
|
+
X-Request-Id:
|
34
|
+
- ea2c39f9-e7d6-43a6-a94a-1374cc9e75cc
|
35
|
+
X-Runtime:
|
36
|
+
- '0.053277'
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=631139040
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Download-Options:
|
42
|
+
- noopen
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Permitted-Cross-Domain-Policies:
|
46
|
+
- none
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"count":1,"results":[{"key":"custom_field_values","id":"314259865"}],"custom_field_values":{"314259865":{"subject_type":"workspace_group","subject_id":2223265,"value":"cus_FxpO6Tatea1K3y","account_id":6300575,"custom_field_name":"Stripe
|
52
|
+
ID","type":"string","display_value":"cus_FxpO6Tatea1K3y","can_edit":true,"created_at":"2020-01-02T12:30:06-08:00","updated_at":"2020-01-02T12:30:06-08:00","custom_field_id":"602325","setter_id":"12304555","id":"314259865"}},"meta":{"count":1,"page_count":1,"page_number":1,"page_size":20}}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Sun, 09 Feb 2020 22:23:19 GMT
|
55
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mavenlink.com/api/v1/custom_field_values/314259865
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer 0e546a1f10023d5c86fbe1583cb13fbffb0c956a69dc8a496d741e8de820c672
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Sun, 09 Feb 2020 22:23:20 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Expires:
|
32
|
+
- Fri, 01 Jan 1990 00:00:00 GMT
|
33
|
+
X-Request-Id:
|
34
|
+
- 73244d99-1a42-4bfd-9bf4-3521122c65b4
|
35
|
+
X-Runtime:
|
36
|
+
- '0.049406'
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=631139040
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Download-Options:
|
42
|
+
- noopen
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Permitted-Cross-Domain-Policies:
|
46
|
+
- none
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"count":1,"results":[{"key":"custom_field_values","id":"314259865"}],"custom_field_values":{"314259865":{"subject_type":"workspace_group","subject_id":2223265,"value":"cus_FxpO6Tatea1K3y","account_id":6300575,"custom_field_name":"Stripe
|
52
|
+
ID","type":"string","display_value":"cus_FxpO6Tatea1K3y","can_edit":true,"created_at":"2020-01-02T12:30:06-08:00","updated_at":"2020-01-02T12:30:06-08:00","custom_field_id":"602325","setter_id":"12304555","id":"314259865"}},"meta":{"count":1,"page_count":1,"page_number":1,"page_size":20}}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Sun, 09 Feb 2020 22:23:20 GMT
|
55
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,89 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mavenlink.com/api/v1/invoices
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer 0e546a1f10023d5c86fbe1583cb13fbffb0c956a69dc8a496d741e8de820c672
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Sun, 09 Feb 2020 22:23:22 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Expires:
|
32
|
+
- Fri, 01 Jan 1990 00:00:00 GMT
|
33
|
+
X-Request-Id:
|
34
|
+
- 02afb3d8-8377-403d-b848-08474def745f
|
35
|
+
X-Runtime:
|
36
|
+
- '0.352913'
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=631139040
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Download-Options:
|
42
|
+
- noopen
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Permitted-Cross-Domain-Policies:
|
46
|
+
- none
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"count":2402,"results":[{"key":"invoices","id":"8185325"},{"key":"invoices","id":"8185315"},{"key":"invoices","id":"8185305"},{"key":"invoices","id":"8185295"},{"key":"invoices","id":"8169005"},{"key":"invoices","id":"8168995"},{"key":"invoices","id":"8168985"},{"key":"invoices","id":"8168965"},{"key":"invoices","id":"8168955"},{"key":"invoices","id":"8168935"},{"key":"invoices","id":"8168925"},{"key":"invoices","id":"8168915"},{"key":"invoices","id":"8168885"},{"key":"invoices","id":"8168875"},{"key":"invoices","id":"8168865"},{"key":"invoices","id":"8168835"},{"key":"invoices","id":"8168815"},{"key":"invoices","id":"8168795"},{"key":"invoices","id":"8168755"},{"key":"invoices","id":"8168725"}],"invoices":{"8185325":{"created_at":"2020-02-08T00:15:54-08:00","updated_at":"2020-02-08T00:15:54-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"new","title":"Draft
|
52
|
+
Invoice #11837","user_invoice_number":11837,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"","draft":true,"payment_schedule":30,"balance_in_cents":19600,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8185325"},"8185315":{"created_at":"2020-02-08T00:10:09-08:00","updated_at":"2020-02-08T00:11:28-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"new","title":"Draft
|
53
|
+
Invoice #11836","user_invoice_number":11836,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"","draft":true,"payment_schedule":30,"balance_in_cents":23800,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8185315"},"8185305":{"created_at":"2020-02-07T23:34:33-08:00","updated_at":"2020-02-07T23:34:33-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"new","title":"Draft
|
54
|
+
Invoice #11835","user_invoice_number":11835,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"","draft":true,"payment_schedule":30,"balance_in_cents":0,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8185305"},"8185295":{"created_at":"2020-02-07T23:25:12-08:00","updated_at":"2020-02-07T23:25:12-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"new","title":"Draft
|
55
|
+
Invoice #11834","user_invoice_number":11834,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"","draft":true,"payment_schedule":30,"balance_in_cents":55250,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8185295"},"8169005":{"created_at":"2020-02-06T00:02:07-08:00","updated_at":"2020-02-06T00:03:27-08:00","invoice_date":"2020-02-06","due_date":"2020-03-07","status":"accepted
|
56
|
+
payment","title":"Invoice #11833","user_invoice_number":11833,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"","draft":false,"payment_schedule":30,"balance_in_cents":144000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8169005"},"8168995":{"created_at":"2020-02-05T23:41:05-08:00","updated_at":"2020-02-05T23:42:14-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
57
|
+
payment","title":"Invoice #11832","user_invoice_number":11832,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
58
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":200000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168995"},"8168985":{"created_at":"2020-02-05T23:37:04-08:00","updated_at":"2020-02-05T23:38:09-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
59
|
+
payment","title":"Invoice #11831","user_invoice_number":11831,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
60
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":175000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168985"},"8168965":{"created_at":"2020-02-05T23:29:53-08:00","updated_at":"2020-02-05T23:31:05-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
61
|
+
payment","title":"Invoice #11830","user_invoice_number":11830,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
62
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":90000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168965"},"8168955":{"created_at":"2020-02-05T23:25:07-08:00","updated_at":"2020-02-05T23:26:27-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
63
|
+
payment","title":"Invoice #11829","user_invoice_number":11829,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
64
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":120000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168955"},"8168935":{"created_at":"2020-02-05T23:16:30-08:00","updated_at":"2020-02-05T23:17:18-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
65
|
+
payment","title":"Invoice #11828","user_invoice_number":11828,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
66
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":50000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168935"},"8168925":{"created_at":"2020-02-05T23:12:07-08:00","updated_at":"2020-02-05T23:13:10-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
67
|
+
payment","title":"Invoice #11827","user_invoice_number":11827,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
68
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":175000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168925"},"8168915":{"created_at":"2020-02-05T23:07:27-08:00","updated_at":"2020-02-05T23:08:42-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
69
|
+
payment","title":"Invoice #11826","user_invoice_number":11826,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
70
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":150000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168915"},"8168885":{"created_at":"2020-02-05T22:52:28-08:00","updated_at":"2020-02-05T22:52:28-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"new","title":"Invoice
|
71
|
+
#11825","user_invoice_number":11825,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
72
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":250000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168885"},"8168875":{"created_at":"2020-02-05T22:47:33-08:00","updated_at":"2020-02-05T22:49:33-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
73
|
+
payment","title":"Invoice #11824","user_invoice_number":11824,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
74
|
+
- Jan. 2020","draft":false,"payment_schedule":30,"balance_in_cents":100000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168875"},"8168865":{"created_at":"2020-02-05T22:42:18-08:00","updated_at":"2020-02-05T22:43:01-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
75
|
+
payment","title":"Invoice #11823","user_invoice_number":11823,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
76
|
+
- Jan. 2020","draft":false,"payment_schedule":30,"balance_in_cents":100000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168865"},"8168835":{"created_at":"2020-02-05T22:35:51-08:00","updated_at":"2020-02-05T22:36:47-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
77
|
+
payment","title":"Invoice #11822","user_invoice_number":11822,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
78
|
+
- Jan 2020","draft":false,"payment_schedule":30,"balance_in_cents":100000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168835"},"8168815":{"created_at":"2020-02-05T22:30:36-08:00","updated_at":"2020-02-05T22:31:21-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
79
|
+
payment","title":"Invoice #11821","user_invoice_number":11821,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
80
|
+
- Jan. 2020","draft":false,"payment_schedule":30,"balance_in_cents":120000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168815"},"8168795":{"created_at":"2020-02-05T22:22:50-08:00","updated_at":"2020-02-05T22:23:56-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
81
|
+
payment","title":"Invoice #11820","user_invoice_number":11820,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
82
|
+
- Jan. 2020","draft":false,"payment_schedule":30,"balance_in_cents":75000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168795"},"8168755":{"created_at":"2020-02-05T22:17:37-08:00","updated_at":"2020-02-05T22:19:34-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
83
|
+
payment","title":"Invoice #11819","user_invoice_number":11819,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
84
|
+
- Jan. 2020","draft":false,"payment_schedule":30,"balance_in_cents":125000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168755"},"8168725":{"created_at":"2020-02-05T22:08:01-08:00","updated_at":"2020-02-05T22:09:24-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"accepted
|
85
|
+
payment","title":"Invoice #11818","user_invoice_number":11818,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"MCP
|
86
|
+
- Jan. 2020","draft":false,"payment_schedule":30,"balance_in_cents":140000,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8168725"}},"meta":{"count":2402,"page_count":121,"page_number":1,"page_size":20}}'
|
87
|
+
http_version:
|
88
|
+
recorded_at: Sun, 09 Feb 2020 22:23:22 GMT
|
89
|
+
recorded_with: VCR 5.0.0
|
@@ -0,0 +1,55 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mavenlink.com/api/v1/invoices/8185325
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer 0e546a1f10023d5c86fbe1583cb13fbffb0c956a69dc8a496d741e8de820c672
|
12
|
+
response:
|
13
|
+
status:
|
14
|
+
code: 200
|
15
|
+
message: OK
|
16
|
+
headers:
|
17
|
+
Date:
|
18
|
+
- Sun, 09 Feb 2020 22:23:21 GMT
|
19
|
+
Content-Type:
|
20
|
+
- application/json; charset=utf-8
|
21
|
+
Transfer-Encoding:
|
22
|
+
- chunked
|
23
|
+
Connection:
|
24
|
+
- keep-alive
|
25
|
+
Status:
|
26
|
+
- 200 OK
|
27
|
+
Cache-Control:
|
28
|
+
- no-cache, no-store
|
29
|
+
Pragma:
|
30
|
+
- no-cache
|
31
|
+
Expires:
|
32
|
+
- Fri, 01 Jan 1990 00:00:00 GMT
|
33
|
+
X-Request-Id:
|
34
|
+
- ed77a9c8-95e9-4452-b0d2-1c5245ee0a30
|
35
|
+
X-Runtime:
|
36
|
+
- '0.053161'
|
37
|
+
Strict-Transport-Security:
|
38
|
+
- max-age=631139040
|
39
|
+
X-Content-Type-Options:
|
40
|
+
- nosniff
|
41
|
+
X-Download-Options:
|
42
|
+
- noopen
|
43
|
+
X-Frame-Options:
|
44
|
+
- SAMEORIGIN
|
45
|
+
X-Permitted-Cross-Domain-Policies:
|
46
|
+
- none
|
47
|
+
X-Xss-Protection:
|
48
|
+
- 1; mode=block
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"count":1,"results":[{"key":"invoices","id":"8185325"}],"invoices":{"8185325":{"created_at":"2020-02-08T00:15:54-08:00","updated_at":"2020-02-08T00:15:54-08:00","invoice_date":"2020-01-31","due_date":"2020-03-01","status":"new","title":"Draft
|
52
|
+
Invoice #11837","user_invoice_number":11837,"user_invoice_title":"","tax_rate":0.0,"purchase_order":"","project_code":"","message":"","draft":true,"payment_schedule":30,"balance_in_cents":19600,"currency":"USD","currency_symbol":"$","currency_base_unit":100,"recipient_id":null,"user_id":"13108775","id":"8185325"}},"meta":{"count":1,"page_count":1,"page_number":1,"page_size":20}}'
|
53
|
+
http_version:
|
54
|
+
recorded_at: Sun, 09 Feb 2020 22:23:21 GMT
|
55
|
+
recorded_with: VCR 5.0.0
|