oneaccess 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +24 -0
- data/.rubocop.yml +11 -29
- data/.rubocop_todo.yml +50 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +9 -5
- data/Rakefile +4 -4
- data/docker-compose.yml +0 -5
- data/lib/oneaccess.rb +25 -24
- data/lib/oneaccess/api/api_base.rb +9 -9
- data/lib/oneaccess/api/v1_1/base.rb +1 -1
- data/lib/oneaccess/api/v1_1/entitlement/model/user_requests.rb +62 -0
- data/lib/oneaccess/api/v1_1/entitlement/organization/product_group.rb +10 -8
- data/lib/oneaccess/api/v1_1/entitlement/research/user_requests.rb +17 -15
- data/lib/oneaccess/api/v1_1/entitlement/user/product_group.rb +10 -8
- data/lib/oneaccess/api/v1_1/entitlement/user_subscription.rb +5 -5
- data/lib/oneaccess/api/v1_1/organizations.rb +2 -2
- data/lib/oneaccess/api/v1_1/references.rb +9 -9
- data/lib/oneaccess/api/v1_1/research.rb +7 -5
- data/lib/oneaccess/api/v1_1/symbology.rb +10 -8
- data/lib/oneaccess/api/v1_1/user.rb +3 -3
- data/lib/oneaccess/api/v3_0/base.rb +1 -1
- data/lib/oneaccess/api/v3_0/interactions.rb +8 -8
- data/lib/oneaccess/api/v3_0/providers.rb +8 -10
- data/lib/oneaccess/api/v3_0/references.rb +11 -11
- data/lib/oneaccess/configuration.rb +6 -6
- data/lib/oneaccess/data_object/address.rb +1 -1
- data/lib/oneaccess/data_object/city.rb +1 -1
- data/lib/oneaccess/data_object/company.rb +1 -1
- data/lib/oneaccess/data_object/company_light.rb +1 -1
- data/lib/oneaccess/data_object/contributor.rb +1 -1
- data/lib/oneaccess/data_object/country.rb +1 -1
- data/lib/oneaccess/data_object/global_region.rb +1 -1
- data/lib/oneaccess/data_object/inducement.rb +1 -1
- data/lib/oneaccess/data_object/industry.rb +1 -1
- data/lib/oneaccess/data_object/investor.rb +1 -1
- data/lib/oneaccess/data_object/meta.rb +1 -1
- data/lib/oneaccess/data_object/organization.rb +1 -1
- data/lib/oneaccess/data_object/organization_light.rb +1 -1
- data/lib/oneaccess/data_object/product_group.rb +1 -1
- data/lib/oneaccess/data_object/providers_user_details.rb +1 -1
- data/lib/oneaccess/data_object/providers_user_details_vendor.rb +1 -1
- data/lib/oneaccess/data_object/providers_users_details.rb +1 -1
- data/lib/oneaccess/data_object/region.rb +1 -1
- data/lib/oneaccess/data_object/representer/address.rb +3 -3
- data/lib/oneaccess/data_object/representer/city.rb +2 -2
- data/lib/oneaccess/data_object/representer/company.rb +12 -6
- data/lib/oneaccess/data_object/representer/contributor.rb +2 -2
- data/lib/oneaccess/data_object/representer/country.rb +10 -6
- data/lib/oneaccess/data_object/representer/global_region.rb +2 -2
- data/lib/oneaccess/data_object/representer/inducement.rb +6 -2
- data/lib/oneaccess/data_object/representer/industry.rb +5 -3
- data/lib/oneaccess/data_object/representer/investor.rb +1 -1
- data/lib/oneaccess/data_object/representer/meta.rb +2 -2
- data/lib/oneaccess/data_object/representer/providers_user_details.rb +4 -3
- data/lib/oneaccess/data_object/representer/providers_users_details.rb +4 -3
- data/lib/oneaccess/data_object/representer/research_document_info.rb +5 -3
- data/lib/oneaccess/data_object/representer/user.rb +10 -6
- data/lib/oneaccess/data_object/representer/user_entitlement_request.rb +19 -11
- data/lib/oneaccess/data_object/research_document_info.rb +1 -1
- data/lib/oneaccess/data_object/saml_info.rb +1 -1
- data/lib/oneaccess/data_object/sell_side_user_group_entitlement.rb +1 -1
- data/lib/oneaccess/data_object/user.rb +1 -1
- data/lib/oneaccess/data_object/user_entitlement_request.rb +1 -1
- data/lib/oneaccess/data_object/user_light.rb +1 -1
- data/lib/oneaccess/error/api_error.rb +2 -2
- data/lib/oneaccess/http/http_client.rb +10 -12
- data/lib/oneaccess/request/contributors_request_handler.rb +2 -2
- data/lib/oneaccess/request/investors_request_handler.rb +2 -2
- data/lib/oneaccess/response/api_error.rb +1 -1
- data/lib/oneaccess/response/buy_side_interactions_response.rb +2 -2
- data/lib/oneaccess/response/changed_users_response.rb +2 -2
- data/lib/oneaccess/response/companies_response.rb +2 -2
- data/lib/oneaccess/response/company_response.rb +2 -2
- data/lib/oneaccess/response/contributors_response.rb +2 -2
- data/lib/oneaccess/response/countries_response.rb +2 -2
- data/lib/oneaccess/response/inducement_response.rb +2 -2
- data/lib/oneaccess/response/industries_response.rb +2 -2
- data/lib/oneaccess/response/investors_response.rb +2 -2
- data/lib/oneaccess/response/organization_response.rb +1 -1
- data/lib/oneaccess/response/paginated_response.rb +1 -1
- data/lib/oneaccess/response/product_groups_response.rb +2 -2
- data/lib/oneaccess/response/providers_users_details_response.rb +2 -2
- data/lib/oneaccess/response/representer/buy_side_interactions_response.rb +1 -1
- data/lib/oneaccess/response/representer/changed_users_response.rb +1 -1
- data/lib/oneaccess/response/representer/companies_response.rb +6 -5
- data/lib/oneaccess/response/representer/company_response.rb +7 -6
- data/lib/oneaccess/response/representer/contributors_response.rb +9 -7
- data/lib/oneaccess/response/representer/countries_response.rb +6 -5
- data/lib/oneaccess/response/representer/inducement_response.rb +7 -6
- data/lib/oneaccess/response/representer/industries_response.rb +6 -5
- data/lib/oneaccess/response/representer/investors_response.rb +8 -6
- data/lib/oneaccess/response/representer/organization_response.rb +2 -2
- data/lib/oneaccess/response/representer/paginated_response.rb +1 -1
- data/lib/oneaccess/response/representer/product_groups_response.rb +6 -5
- data/lib/oneaccess/response/representer/providers_users_details_response.rb +3 -3
- data/lib/oneaccess/response/representer/research_document_response.rb +6 -5
- data/lib/oneaccess/response/representer/subscribe_to_updates_response.rb +1 -1
- data/lib/oneaccess/response/representer/user_entitlement_requests_response.rb +6 -5
- data/lib/oneaccess/response/representer/user_requests_response.rb +1 -1
- data/lib/oneaccess/response/representer/user_response.rb +2 -2
- data/lib/oneaccess/response/research_document_response.rb +2 -2
- data/lib/oneaccess/response/subscribe_to_updates_response.rb +2 -2
- data/lib/oneaccess/response/user_entitlement_requests_response.rb +2 -2
- data/lib/oneaccess/response/user_requests_response.rb +2 -2
- data/lib/oneaccess/response/user_response.rb +2 -2
- data/oneaccess.gemspec +24 -24
- metadata +17 -15
- data/circle.yml +0 -9
@@ -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,
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
property :
|
21
|
-
|
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,
|
10
|
-
property :contributor_name,
|
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
|
4
|
-
require_relative
|
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,
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
@@ -6,7 +6,9 @@ module ONEAccess
|
|
6
6
|
class Inducement < Representable::Decorator
|
7
7
|
include Representable::JSON
|
8
8
|
|
9
|
-
property :receive_date,
|
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,
|
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
|
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,
|
21
|
-
|
20
|
+
property :parent,
|
21
|
+
as: :Parent,
|
22
|
+
decorator: Representer::Industry,
|
23
|
+
class: DataObject::Industry
|
22
24
|
end
|
23
25
|
end
|
24
26
|
end
|
@@ -6,8 +6,8 @@ module ONEAccess
|
|
6
6
|
class Meta < Representable::Decorator
|
7
7
|
include Representable::JSON
|
8
8
|
|
9
|
-
property :total,
|
10
|
-
property :limit,
|
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
|
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,
|
18
|
-
|
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
|
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,
|
19
|
-
|
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
|
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,
|
14
|
-
|
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
|
4
|
-
require_relative
|
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,
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
4
|
-
require_relative
|
5
|
-
require_relative
|
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,
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
property :
|
23
|
-
|
24
|
-
|
25
|
-
|
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
|