add quick leads
All checks were successful
Build and Publish / build-release (push) Successful in 2m13s
All checks were successful
Build and Publish / build-release (push) Successful in 2m13s
This commit is contained in:
@@ -114,6 +114,44 @@ defmodule CustomerServiceWeb.Schemas.Customer do
|
||||
})
|
||||
end
|
||||
|
||||
defmodule UpdateCustomer do
|
||||
require OpenApiSpex
|
||||
|
||||
OpenApiSpex.schema(%{
|
||||
title: "UpdateCustomer",
|
||||
type: :object,
|
||||
properties: %{
|
||||
first_name: %Schema{type: :string},
|
||||
last_name: %Schema{type: :string},
|
||||
email: %Schema{type: :string, format: :email},
|
||||
phone: %Schema{type: :string},
|
||||
birth_date: %Schema{type: :string, format: :date},
|
||||
gender: %Schema{type: :string},
|
||||
document_id: %Schema{type: :string},
|
||||
address: %Schema{type: :string}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
defmodule UpdateCorporateCustomer do
|
||||
require OpenApiSpex
|
||||
|
||||
OpenApiSpex.schema(%{
|
||||
title: "UpdateCorporateCustomer",
|
||||
type: :object,
|
||||
properties: %{
|
||||
legal_name: %Schema{type: :string},
|
||||
commercial_name: %Schema{type: :string},
|
||||
ruc: %Schema{type: :string},
|
||||
legal_rep_name: %Schema{type: :string},
|
||||
legal_rep_document_id: %Schema{type: :string},
|
||||
email: %Schema{type: :string, format: :email},
|
||||
phone: %Schema{type: :string},
|
||||
address: %Schema{type: :string}
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
defmodule CustomerListResponse do
|
||||
require OpenApiSpex
|
||||
|
||||
|
||||
Reference in New Issue
Block a user