openapi: 3.2.0 info: title: Insurance App Rent Schedule Row Post Dto API description: Resource 'RentScheduleRowPostDto' operations. version: 0.1.0 servers: - url: https://insurance-app.goodlord.co/ description: Development - url: https://insurance-app.staging.goodoverlord.com/ description: Staging - url: https://insurance-app.qa1.goodoverlord.com/ description: QA1 - url: https://insurance-app.demo.goodlord.co/ description: Demo security: - JWT: [] tags: - name: RentScheduleRowPostDto description: Resource 'RentScheduleRowPostDto' operations. paths: /api/v1/insurance_claims/{insuranceClaimId}/rent_schedule/{rentScheduleId}/rent_schedule_row: post: operationId: api_insurance_claims_insuranceClaimIdrent_schedule_rentScheduleIdrent_schedule_row_post tags: - RentScheduleRowPostDto responses: '201': description: RentScheduleRowPostDto resource created content: application/vnd.api+json: schema: $ref: '#/components/schemas/RentScheduleRowPostDto.RentScheduleRowPostDto.jsonapi' application/json: schema: $ref: '#/components/schemas/RentScheduleRowPostDto.RentScheduleRowGetModel' text/csv: schema: $ref: '#/components/schemas/RentScheduleRowPostDto.RentScheduleRowGetModel.csv' links: {} '400': description: Invalid input content: application/vnd.api+json: schema: $ref: '#/components/schemas/Error.jsonapi' application/problem+json: schema: $ref: '#/components/schemas/Error' application/json: schema: $ref: '#/components/schemas/Error' links: {} '422': description: An error occurred content: application/vnd.api+json: schema: $ref: '#/components/schemas/ConstraintViolation.jsonapi' application/problem+json: schema: $ref: '#/components/schemas/ConstraintViolation' application/json: schema: $ref: '#/components/schemas/ConstraintViolation' links: {} summary: Creates a RentScheduleRowPostDto resource. description: Creates a RentScheduleRowPostDto resource. parameters: - name: insuranceClaimId in: path description: RentScheduleRowPostDto identifier required: true deprecated: false schema: type: string style: simple explode: false - name: rentScheduleId in: path description: RentScheduleRowPostDto identifier required: true deprecated: false schema: type: string style: simple explode: false requestBody: description: The new RentScheduleRowPostDto resource content: application/vnd.api+json: schema: $ref: '#/components/schemas/RentScheduleRowPostDto.jsonapi' application/json: schema: $ref: '#/components/schemas/RentScheduleRowPostDto' text/csv: schema: $ref: '#/components/schemas/RentScheduleRowPostDto.csv' required: true components: schemas: RentScheduleRowPostDto.RentScheduleRowPostDto.jsonapi: properties: data: type: object properties: id: type: string type: type: string attributes: $ref: '#/components/schemas/RentScheduleRowPostDto.RentScheduleRowGetModel' required: - type - id RentScheduleRowPostDto.jsonapi: properties: data: type: object properties: id: type: string type: type: string attributes: $ref: '#/components/schemas/RentScheduleRowPostDto' required: - type - id ConstraintViolation.jsonapi: properties: data: type: object properties: id: type: string type: type: string attributes: $ref: '#/components/schemas/ConstraintViolation' required: - type - id RentScheduleRowPostDto: type: object required: - rowType - date properties: rowType: type: - string - 'null' enum: - tenant_payment - rent_due - null date: type: - string - 'null' format: date-time amount: type: object properties: amount: type: integer example: 123 currency: type: string example: GBP required: - amount - currency note: maxLength: 2000 type: - string - 'null' ConstraintViolation: type: object description: Unprocessable entity properties: status: default: 422 type: integer detail: readOnly: true type: string type: readOnly: true type: string title: readOnly: true type: - string - 'null' instance: readOnly: true type: - string - 'null' RentScheduleRowPostDto.RentScheduleRowGetModel.csv: type: object properties: audits: type: array items: $ref: '#/components/schemas/RentScheduleRowAuditGetDto.csv' balance: readOnly: true description: API serialization - returns an array to avoid JSON:API wrapping of Money objects. type: object additionalProperties: anyOf: - type: integer - type: string id: readOnly: true type: string rowType: readOnly: true description: API serialization - returns the string value to avoid JSON:API wrapping of enums. type: string date: readOnly: true type: string format: date-time amount: type: object properties: amount: type: integer example: 123 currency: type: string example: GBP note: readOnly: true type: - string - 'null' submittedAt: readOnly: true type: - string - 'null' format: date-time createdAt: readOnly: true type: string format: date-time updatedAt: readOnly: true type: string format: date-time deletedAt: readOnly: true type: - string - 'null' format: date-time rentSchedule: readOnly: true type: - string - 'null' format: iri-reference example: https://example.com/ insuranceClaim: readOnly: true type: - string - 'null' format: iri-reference example: https://example.com/ insuranceClaimId: readOnly: true type: string companyExternalId: readOnly: true description: 'Helper method for voter - gets company external ID directly from entity without creating a DTO (which can fail in certain test contexts).' type: - string - 'null' Error.jsonapi: properties: errors: type: array items: allOf: - $ref: '#/components/schemas/Error' - type: object properties: source: type: object status: type: string RentScheduleRowPostDto.csv: type: object required: - rowType - date properties: rowType: type: - string - 'null' enum: - tenant_payment - rent_due - null date: type: - string - 'null' format: date-time amount: type: object properties: amount: type: integer example: 123 currency: type: string example: GBP required: - amount - currency note: maxLength: 2000 type: - string - 'null' Error: type: object description: A representation of common errors. properties: id: type: - string - 'null' title: readOnly: true description: A short, human-readable summary of the problem. type: - string - 'null' detail: readOnly: true description: A human-readable explanation specific to this occurrence of the problem. type: - string - 'null' status: type: - number - 'null' examples: - 404 default: 400 instance: readOnly: true description: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. type: - string - 'null' type: readOnly: true description: A URI reference that identifies the problem type type: string meta: type: object source: type: object properties: pointer: type: string parameter: type: string header: type: string RentScheduleRowAuditGetDto.csv: type: object properties: type: type: string text: type: string changedBy: type: - string - 'null' changedAt: type: string format: date-time changes: type: - object - 'null' additionalProperties: type: - string - 'null' RentScheduleRowAuditGetDto: type: object properties: type: type: string text: type: string changedBy: type: - string - 'null' changedAt: type: string format: date-time changes: type: - object - 'null' additionalProperties: type: - string - 'null' RentScheduleRowPostDto.RentScheduleRowGetModel: type: object properties: audits: type: array items: $ref: '#/components/schemas/RentScheduleRowAuditGetDto' balance: readOnly: true description: API serialization - returns an array to avoid JSON:API wrapping of Money objects. type: object additionalProperties: anyOf: - type: integer - type: string id: readOnly: true type: string rowType: readOnly: true description: API serialization - returns the string value to avoid JSON:API wrapping of enums. type: string date: readOnly: true type: string format: date-time amount: type: object properties: amount: type: integer example: 123 currency: type: string example: GBP note: readOnly: true type: - string - 'null' submittedAt: readOnly: true type: - string - 'null' format: date-time createdAt: readOnly: true type: string format: date-time updatedAt: readOnly: true type: string format: date-time deletedAt: readOnly: true type: - string - 'null' format: date-time rentSchedule: readOnly: true type: - string - 'null' format: iri-reference example: https://example.com/ insuranceClaim: readOnly: true type: - string - 'null' format: iri-reference example: https://example.com/ insuranceClaimId: readOnly: true type: string companyExternalId: readOnly: true description: 'Helper method for voter - gets company external ID directly from entity without creating a DTO (which can fail in certain test contexts).' type: - string - 'null' securitySchemes: JWT: type: apiKey description: Value for the Authorization header parameter. name: Authorization in: header