json.id license.id json.status license.status.to_s json.partial! 'v1/shared/location', location: license.location if license.confidential? json.partial! 'v1/shared/confidential_well_type', well_type: license.well_type json.partial! 'v1/shared/confidential_company' else json.partial! 'v1/shared/well_type', well_type: license.well_type json.partial! 'v1/shared/company', company: license.company, applicant: license.applicant end json.issued_at license.issued_at.to_s json.expired_at license.expired_at.to_s