# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. # typed: true # frozen_string_literal: true require 'sorbet-runtime' require 'faraday' require_relative '../shared/hriscreatetimeoffrequestdto' require_relative '../shared/createtimeoffresult' module StackOne module Operations class HrisCreateTimeOffRequestRequest < StackOne::Utils::FieldAugmented extend T::Sig field :hris_create_time_off_request_dto, Shared::HrisCreateTimeOffRequestDto, { 'request': { 'media_type': 'application/json' } } # The account identifier field :x_account_id, String, { 'header': { 'field_name': 'x-account-id', 'style': 'simple', 'explode': false } } sig { params(hris_create_time_off_request_dto: Shared::HrisCreateTimeOffRequestDto, x_account_id: String).void } def initialize(hris_create_time_off_request_dto: nil, x_account_id: nil) @hris_create_time_off_request_dto = hris_create_time_off_request_dto @x_account_id = x_account_id end end class HrisCreateTimeOffRequestResponse < StackOne::Utils::FieldAugmented extend T::Sig # HTTP response content type for this operation field :content_type, String # Raw HTTP response; suitable for custom response parsing field :raw_response, Faraday::Response # HTTP response status code for this operation field :status_code, Integer # The time off request was created successfully. field :create_time_off_result, T.nilable(Shared::CreateTimeOffResult) sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, create_time_off_result: T.nilable(Shared::CreateTimeOffResult)).void } def initialize(content_type: nil, raw_response: nil, status_code: nil, create_time_off_result: nil) @content_type = content_type @raw_response = raw_response @status_code = status_code @create_time_off_result = create_time_off_result end end end end