Initial commit

This commit is contained in:
Yaser
2026-08-13 19:56:46 +03:30
commit de1d57a67b
474 changed files with 43185 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# frozen_string_literal: true
module API
module V2
module Entities
# Phone request response
class Phone < API::V2::Entities::Base
expose :country,
documentation: {
type: 'String',
desc: 'Phone country'
}
expose :number,
documentation: {
type: 'String',
desc: 'Submasked phone number'
} do |phone|
Barong::App.config.api_data_masking_enabled ? phone.sub_masked_number : phone.number
end
expose :validated_at,
documentation: {
type: 'Datetime',
desc: 'Phone validation date'
}
end
end
end
end