oneaccess 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +24 -0
  3. data/.rubocop.yml +11 -29
  4. data/.rubocop_todo.yml +50 -0
  5. data/Gemfile +1 -1
  6. data/Gemfile.lock +9 -5
  7. data/Rakefile +4 -4
  8. data/docker-compose.yml +0 -5
  9. data/lib/oneaccess.rb +25 -24
  10. data/lib/oneaccess/api/api_base.rb +9 -9
  11. data/lib/oneaccess/api/v1_1/base.rb +1 -1
  12. data/lib/oneaccess/api/v1_1/entitlement/model/user_requests.rb +62 -0
  13. data/lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb +10 -8
  14. data/lib/oneaccess/api/v1_1/entitlement/research/user_requests.rb +17 -15
  15. data/lib/oneaccess/api/v1_1/entitlement/user/product_group.rb +10 -8
  16. data/lib/oneaccess/api/v1_1/entitlement/user_subscription.rb +5 -5
  17. data/lib/oneaccess/api/v1_1/organizations.rb +2 -2
  18. data/lib/oneaccess/api/v1_1/references.rb +9 -9
  19. data/lib/oneaccess/api/v1_1/research.rb +7 -5
  20. data/lib/oneaccess/api/v1_1/symbology.rb +10 -8
  21. data/lib/oneaccess/api/v1_1/user.rb +3 -3
  22. data/lib/oneaccess/api/v3_0/base.rb +1 -1
  23. data/lib/oneaccess/api/v3_0/interactions.rb +8 -8
  24. data/lib/oneaccess/api/v3_0/providers.rb +8 -10
  25. data/lib/oneaccess/api/v3_0/references.rb +11 -11
  26. data/lib/oneaccess/configuration.rb +6 -6
  27. data/lib/oneaccess/data_object/address.rb +1 -1
  28. data/lib/oneaccess/data_object/city.rb +1 -1
  29. data/lib/oneaccess/data_object/company.rb +1 -1
  30. data/lib/oneaccess/data_object/company_light.rb +1 -1
  31. data/lib/oneaccess/data_object/contributor.rb +1 -1
  32. data/lib/oneaccess/data_object/country.rb +1 -1
  33. data/lib/oneaccess/data_object/global_region.rb +1 -1
  34. data/lib/oneaccess/data_object/inducement.rb +1 -1
  35. data/lib/oneaccess/data_object/industry.rb +1 -1
  36. data/lib/oneaccess/data_object/investor.rb +1 -1
  37. data/lib/oneaccess/data_object/meta.rb +1 -1
  38. data/lib/oneaccess/data_object/organization.rb +1 -1
  39. data/lib/oneaccess/data_object/organization_light.rb +1 -1
  40. data/lib/oneaccess/data_object/product_group.rb +1 -1
  41. data/lib/oneaccess/data_object/providers_user_details.rb +1 -1
  42. data/lib/oneaccess/data_object/providers_user_details_vendor.rb +1 -1
  43. data/lib/oneaccess/data_object/providers_users_details.rb +1 -1
  44. data/lib/oneaccess/data_object/region.rb +1 -1
  45. data/lib/oneaccess/data_object/representer/address.rb +3 -3
  46. data/lib/oneaccess/data_object/representer/city.rb +2 -2
  47. data/lib/oneaccess/data_object/representer/company.rb +12 -6
  48. data/lib/oneaccess/data_object/representer/contributor.rb +2 -2
  49. data/lib/oneaccess/data_object/representer/country.rb +10 -6
  50. data/lib/oneaccess/data_object/representer/global_region.rb +2 -2
  51. data/lib/oneaccess/data_object/representer/inducement.rb +6 -2
  52. data/lib/oneaccess/data_object/representer/industry.rb +5 -3
  53. data/lib/oneaccess/data_object/representer/investor.rb +1 -1
  54. data/lib/oneaccess/data_object/representer/meta.rb +2 -2
  55. data/lib/oneaccess/data_object/representer/providers_user_details.rb +4 -3
  56. data/lib/oneaccess/data_object/representer/providers_users_details.rb +4 -3
  57. data/lib/oneaccess/data_object/representer/research_document_info.rb +5 -3
  58. data/lib/oneaccess/data_object/representer/user.rb +10 -6
  59. data/lib/oneaccess/data_object/representer/user_entitlement_request.rb +19 -11
  60. data/lib/oneaccess/data_object/research_document_info.rb +1 -1
  61. data/lib/oneaccess/data_object/saml_info.rb +1 -1
  62. data/lib/oneaccess/data_object/sell_side_user_group_entitlement.rb +1 -1
  63. data/lib/oneaccess/data_object/user.rb +1 -1
  64. data/lib/oneaccess/data_object/user_entitlement_request.rb +1 -1
  65. data/lib/oneaccess/data_object/user_light.rb +1 -1
  66. data/lib/oneaccess/error/api_error.rb +2 -2
  67. data/lib/oneaccess/http/http_client.rb +10 -12
  68. data/lib/oneaccess/request/contributors_request_handler.rb +2 -2
  69. data/lib/oneaccess/request/investors_request_handler.rb +2 -2
  70. data/lib/oneaccess/response/api_error.rb +1 -1
  71. data/lib/oneaccess/response/buy_side_interactions_response.rb +2 -2
  72. data/lib/oneaccess/response/changed_users_response.rb +2 -2
  73. data/lib/oneaccess/response/companies_response.rb +2 -2
  74. data/lib/oneaccess/response/company_response.rb +2 -2
  75. data/lib/oneaccess/response/contributors_response.rb +2 -2
  76. data/lib/oneaccess/response/countries_response.rb +2 -2
  77. data/lib/oneaccess/response/inducement_response.rb +2 -2
  78. data/lib/oneaccess/response/industries_response.rb +2 -2
  79. data/lib/oneaccess/response/investors_response.rb +2 -2
  80. data/lib/oneaccess/response/organization_response.rb +1 -1
  81. data/lib/oneaccess/response/paginated_response.rb +1 -1
  82. data/lib/oneaccess/response/product_groups_response.rb +2 -2
  83. data/lib/oneaccess/response/providers_users_details_response.rb +2 -2
  84. data/lib/oneaccess/response/representer/buy_side_interactions_response.rb +1 -1
  85. data/lib/oneaccess/response/representer/changed_users_response.rb +1 -1
  86. data/lib/oneaccess/response/representer/companies_response.rb +6 -5
  87. data/lib/oneaccess/response/representer/company_response.rb +7 -6
  88. data/lib/oneaccess/response/representer/contributors_response.rb +9 -7
  89. data/lib/oneaccess/response/representer/countries_response.rb +6 -5
  90. data/lib/oneaccess/response/representer/inducement_response.rb +7 -6
  91. data/lib/oneaccess/response/representer/industries_response.rb +6 -5
  92. data/lib/oneaccess/response/representer/investors_response.rb +8 -6
  93. data/lib/oneaccess/response/representer/organization_response.rb +2 -2
  94. data/lib/oneaccess/response/representer/paginated_response.rb +1 -1
  95. data/lib/oneaccess/response/representer/product_groups_response.rb +6 -5
  96. data/lib/oneaccess/response/representer/providers_users_details_response.rb +3 -3
  97. data/lib/oneaccess/response/representer/research_document_response.rb +6 -5
  98. data/lib/oneaccess/response/representer/subscribe_to_updates_response.rb +1 -1
  99. data/lib/oneaccess/response/representer/user_entitlement_requests_response.rb +6 -5
  100. data/lib/oneaccess/response/representer/user_requests_response.rb +1 -1
  101. data/lib/oneaccess/response/representer/user_response.rb +2 -2
  102. data/lib/oneaccess/response/research_document_response.rb +2 -2
  103. data/lib/oneaccess/response/subscribe_to_updates_response.rb +2 -2
  104. data/lib/oneaccess/response/user_entitlement_requests_response.rb +2 -2
  105. data/lib/oneaccess/response/user_requests_response.rb +2 -2
  106. data/lib/oneaccess/response/user_response.rb +2 -2
  107. data/oneaccess.gemspec +24 -24
  108. metadata +17 -15
  109. data/circle.yml +0 -9
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/contributor"
3
+ require_relative './representer/contributor'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/country"
3
+ require_relative './representer/country'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/global_region"
3
+ require_relative './representer/global_region'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/inducement"
3
+ require_relative './representer/inducement'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/industry"
3
+ require_relative './representer/industry'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/investor"
3
+ require_relative './representer/investor'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/meta"
3
+ require_relative './representer/meta'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/organization"
3
+ require_relative './representer/organization'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/organization_light"
3
+ require_relative './representer/organization_light'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/product_group"
3
+ require_relative './representer/product_group'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/providers_user_details"
3
+ require_relative './representer/providers_user_details'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/providers_user_details_vendor"
3
+ require_relative './representer/providers_user_details_vendor'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/providers_users_details"
3
+ require_relative './representer/providers_users_details'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/region"
3
+ require_relative './representer/region'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../city"
4
- require_relative "../country"
5
- require_relative "../region"
3
+ require_relative '../city'
4
+ require_relative '../country'
5
+ require_relative '../region'
6
6
 
7
7
  module ONEAccess
8
8
  module DataObject
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../country"
4
- require_relative "../region"
3
+ require_relative '../country'
4
+ require_relative '../region'
5
5
 
6
6
  module ONEAccess
7
7
  module DataObject
@@ -13,12 +13,18 @@ module ONEAccess
13
13
  property :exchange_code, as: :ExchangeCode, type: String
14
14
  property :ticker, as: :Ticker, type: String
15
15
  property :website, as: :Website, type: String
16
- property :address, as: :Address,
17
- decorator: Representer::Address, class: DataObject::Address
18
- property :industry, as: :Industry,
19
- decorator: Representer::Industry, class: DataObject::Industry
20
- property :sub_industry, as: :SubIndustry,
21
- decorator: Representer::Industry, class: DataObject::Industry
16
+ property :address,
17
+ as: :Address,
18
+ decorator: Representer::Address,
19
+ class: DataObject::Address
20
+ property :industry,
21
+ as: :Industry,
22
+ decorator: Representer::Industry,
23
+ class: DataObject::Industry
24
+ property :sub_industry,
25
+ as: :SubIndustry,
26
+ decorator: Representer::Industry,
27
+ class: DataObject::Industry
22
28
  end
23
29
  end
24
30
  end
@@ -6,8 +6,8 @@ module ONEAccess
6
6
  class Contributor < Representable::Decorator
7
7
  include Representable::JSON
8
8
 
9
- property :contributor_id, type: Integer
10
- property :contributor_name, type: String
9
+ property :contributor_id, type: Integer
10
+ property :contributor_name, type: String
11
11
  property :contributor_shortname, type: String
12
12
  property :active
13
13
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../region"
4
- require_relative "../global_region"
3
+ require_relative '../region'
4
+ require_relative '../global_region'
5
5
 
6
6
  module ONEAccess
7
7
  module DataObject
@@ -14,10 +14,14 @@ module ONEAccess
14
14
  property :code, as: :Code, type: String
15
15
  property :code3, as: :Code3, type: String
16
16
  property :description, as: :Description, type: String
17
- property :global_region, as: :GlobalRegion,
18
- decorator: Representer::GlobalRegion, class: DataObject::GlobalRegion
19
- collection :regions, as: :Regions,
20
- decorator: Representer::Region, class: DataObject::Region
17
+ property :global_region,
18
+ as: :GlobalRegion,
19
+ decorator: Representer::GlobalRegion,
20
+ class: DataObject::GlobalRegion
21
+ collection :regions,
22
+ as: :Regions,
23
+ decorator: Representer::Region,
24
+ class: DataObject::Region
21
25
  end
22
26
  end
23
27
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../country"
4
- require_relative "../region"
3
+ require_relative '../country'
4
+ require_relative '../region'
5
5
 
6
6
  # declare country to avoid circular dependency
7
7
  # rubocop:disable Style/ClassAndModuleChildren
@@ -6,7 +6,9 @@ module ONEAccess
6
6
  class Inducement < Representable::Decorator
7
7
  include Representable::JSON
8
8
 
9
- property :receive_date, as: :ReceiveDate, type: Time,
9
+ property :receive_date,
10
+ as: :ReceiveDate,
11
+ type: Time,
10
12
  parse_filter: ->(value, _) { value&.size&.positive? ? Time.parse(value) : nil }
11
13
  property :provider_org_id, as: :ProviderOrgId, type: Integer
12
14
  property :email_inducement_id, as: :EmailInducementId, type: Integer
@@ -14,7 +16,9 @@ module ONEAccess
14
16
  property :sender_user_id, as: :SenderUserId, type: Integer
15
17
  property :email_inducement_status_id, as: :EmailInducementStatusId, type: Integer
16
18
  property :body, as: :Body, type: String
17
- property :processed_date, as: :ProcessedDate, type: Time,
19
+ property :processed_date,
20
+ as: :ProcessedDate,
21
+ type: Time,
18
22
  parse_filter: ->(value, _) { value&.size&.positive? ? Time.parse(value) : nil }
19
23
  property :subject, as: :Subject, type: String
20
24
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../industry"
3
+ require_relative '../industry'
4
4
 
5
5
  # declare industry to avoid circular dependency
6
6
  # rubocop:disable Style/ClassAndModuleChildren
@@ -17,8 +17,10 @@ module ONEAccess
17
17
  property :id, as: :Id, type: Integer
18
18
  property :name, as: :Name, type: String
19
19
  property :code, as: :Code, type: String
20
- property :parent, as: :Parent,
21
- decorator: Representer::Industry, class: DataObject::Industry
20
+ property :parent,
21
+ as: :Parent,
22
+ decorator: Representer::Industry,
23
+ class: DataObject::Industry
22
24
  end
23
25
  end
24
26
  end
@@ -6,7 +6,7 @@ module ONEAccess
6
6
  class Investor < Representable::Decorator
7
7
  include Representable::JSON
8
8
 
9
- property :investor_id, type: Integer
9
+ property :investor_id, type: Integer
10
10
  property :investor_name, type: String
11
11
  property :active
12
12
  end
@@ -6,8 +6,8 @@ module ONEAccess
6
6
  class Meta < Representable::Decorator
7
7
  include Representable::JSON
8
8
 
9
- property :total, type: Integer
10
- property :limit, type: Integer
9
+ property :total, type: Integer
10
+ property :limit, type: Integer
11
11
  property :offset, type: Integer
12
12
  end
13
13
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../providers_user_details_vendor"
3
+ require_relative '../providers_user_details_vendor'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -14,8 +14,9 @@ module ONEAccess
14
14
  property :last_name, as: :lastname, type: String
15
15
  property :email, type: String
16
16
  property :vendors_count, as: :vendorscount, type: Integer
17
- collection :vendors, decorator: Representer::ProvidersUserDetailsVendor,
18
- class: DataObject::ProvidersUserDetailsVendor
17
+ collection :vendors,
18
+ decorator: Representer::ProvidersUserDetailsVendor,
19
+ class: DataObject::ProvidersUserDetailsVendor
19
20
  end
20
21
  end
21
22
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../providers_user_details"
3
+ require_relative '../providers_user_details'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -15,8 +15,9 @@ module ONEAccess
15
15
  property :contract_status_id, as: :contractstatusid, type: String
16
16
  property :buy_side_org_name, as: :buysideorgname, type: String
17
17
  property :users_count, as: :userscount, type: Integer
18
- collection :users, decorator: Representer::ProvidersUserDetails,
19
- class: DataObject::ProvidersUserDetails
18
+ collection :users,
19
+ decorator: Representer::ProvidersUserDetails,
20
+ class: DataObject::ProvidersUserDetails
20
21
  end
21
22
  end
22
23
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../saml_info"
3
+ require_relative '../saml_info'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -10,8 +10,10 @@ module ONEAccess
10
10
 
11
11
  property :url, as: :Url, type: String
12
12
  property :title, as: :Title, type: String
13
- property :saml, as: :SAML,
14
- decorator: Representer::SAMLInfo, class: DataObject::SAMLInfo
13
+ property :saml,
14
+ as: :SAML,
15
+ decorator: Representer::SAMLInfo,
16
+ class: DataObject::SAMLInfo
15
17
  end
16
18
  end
17
19
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../organization_light"
4
- require_relative "../address"
3
+ require_relative '../organization_light'
4
+ require_relative '../address'
5
5
 
6
6
  module ONEAccess
7
7
  module DataObject
@@ -16,10 +16,14 @@ module ONEAccess
16
16
  property :phone, as: :Phone, type: String
17
17
  property :type, as: :Type, type: Integer
18
18
  property :active, as: :Active
19
- property :organization, as: :Organization,
20
- decorator: Representer::OrganizationLight, class: DataObject::OrganizationLight
21
- property :address, as: :Address,
22
- decorator: Representer::Address, class: DataObject::Address
19
+ property :organization,
20
+ as: :Organization,
21
+ decorator: Representer::OrganizationLight,
22
+ class: DataObject::OrganizationLight
23
+ property :address,
24
+ as: :Address,
25
+ decorator: Representer::Address,
26
+ class: DataObject::Address
23
27
  end
24
28
  end
25
29
  end
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "../user_light"
4
- require_relative "../organization_light"
5
- require_relative "../sell_side_user_group_entitlement"
3
+ require_relative '../user_light'
4
+ require_relative '../organization_light'
5
+ require_relative '../sell_side_user_group_entitlement'
6
6
 
7
7
  module ONEAccess
8
8
  module DataObject
@@ -15,14 +15,22 @@ module ONEAccess
15
15
  property :update_date, as: :UpdateDate, parse_filter: ->(value, _) { Time.parse(value) }
16
16
  property :notes, as: :Notes, type: String
17
17
  property :status, as: :Status, type: Integer
18
- property :user, as: :User,
19
- decorator: Representer::UserLight, class: DataObject::UserLight
20
- property :buy_side_org, as: :BuySideOrg,
21
- decorator: Representer::OrganizationLight, class: DataObject::OrganizationLight
22
- property :sell_side_org, as: :SellSideOrg,
23
- decorator: Representer::OrganizationLight, class: DataObject::OrganizationLight
24
- collection :sell_side_user_groups, as: :SellSideUserGroups,
25
- decorator: Representer::SellSideUserGroupEntitlement, class: DataObject::SellSideUserGroupEntitlement
18
+ property :user,
19
+ as: :User,
20
+ decorator: Representer::UserLight,
21
+ class: DataObject::UserLight
22
+ property :buy_side_org,
23
+ as: :BuySideOrg,
24
+ decorator: Representer::OrganizationLight,
25
+ class: DataObject::OrganizationLight
26
+ property :sell_side_org,
27
+ as: :SellSideOrg,
28
+ decorator: Representer::OrganizationLight,
29
+ class: DataObject::OrganizationLight
30
+ collection :sell_side_user_groups,
31
+ as: :SellSideUserGroups,
32
+ decorator: Representer::SellSideUserGroupEntitlement,
33
+ class: DataObject::SellSideUserGroupEntitlement
26
34
  end
27
35
  end
28
36
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/research_document_info"
3
+ require_relative './representer/research_document_info'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/saml_info"
3
+ require_relative './representer/saml_info'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "./representer/sell_side_user_group_entitlement"
3
+ require_relative './representer/sell_side_user_group_entitlement'
4
4
 
5
5
  module ONEAccess
6
6
  module DataObject