Initial commit
This commit is contained in:
12
app/api/v2/management/entities/document.rb
Normal file
12
app/api/v2/management/entities/document.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API::V2::Management
|
||||
module Entities
|
||||
class Document < API::V2::Entities::Document
|
||||
expose :doc_number,
|
||||
documentation: {
|
||||
type: 'String', desc: 'Document number: AB123123 type'
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
13
app/api/v2/management/entities/phone.rb
Normal file
13
app/api/v2/management/entities/phone.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API::V2::Management
|
||||
module Entities
|
||||
class Phone < API::V2::Entities::Phone
|
||||
expose :number,
|
||||
documentation: {
|
||||
type: 'String',
|
||||
desc: 'Phone Number'
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
19
app/api/v2/management/entities/profile.rb
Normal file
19
app/api/v2/management/entities/profile.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API::V2::Management
|
||||
module Entities
|
||||
class Profile < API::V2::Entities::Profile
|
||||
expose :last_name,
|
||||
documentation: {
|
||||
type: 'String',
|
||||
desc: 'Last name'
|
||||
}
|
||||
|
||||
expose :dob,
|
||||
documentation: {
|
||||
type: 'Date',
|
||||
desc: 'Birth date'
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
11
app/api/v2/management/entities/user_with_kyc.rb
Normal file
11
app/api/v2/management/entities/user_with_kyc.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API::V2::Management
|
||||
module Entities
|
||||
class UserWithKYC < API::V2::Entities::UserWithKYC
|
||||
expose :profiles, using: Entities::Profile
|
||||
expose :phones, using: Entities::Phone
|
||||
expose :documents, using: Entities::Document
|
||||
end
|
||||
end
|
||||
end
|
||||
9
app/api/v2/management/entities/user_with_profile.rb
Normal file
9
app/api/v2/management/entities/user_with_profile.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module API::V2::Management
|
||||
module Entities
|
||||
class UserWithProfile < API::V2::Entities::UserWithProfile
|
||||
expose :profiles, using: Entities::Profile
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user