lib/ding/models/operations/lookup.rb in ding_sdk-0.4.0 vs lib/ding/models/operations/lookup.rb in ding_sdk-0.4.1

- old
+ new

@@ -31,26 +31,26 @@ class LookupResponse < DingSDK::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 # Bad Request field :error_response, T.nilable(Shared::ErrorResponse) # OK field :lookup_response, T.nilable(Shared::LookupResponse) - # Raw HTTP response; suitable for custom response parsing - field :raw_response, T.nilable(Faraday::Response) - sig { params(content_type: String, status_code: Integer, error_response: T.nilable(Shared::ErrorResponse), lookup_response: T.nilable(Shared::LookupResponse), raw_response: T.nilable(Faraday::Response)).void } - def initialize(content_type: nil, status_code: nil, error_response: nil, lookup_response: nil, raw_response: nil) + sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, error_response: T.nilable(Shared::ErrorResponse), lookup_response: T.nilable(Shared::LookupResponse)).void } + def initialize(content_type: nil, raw_response: nil, status_code: nil, error_response: nil, lookup_response: nil) @content_type = content_type + @raw_response = raw_response @status_code = status_code @error_response = error_response @lookup_response = lookup_response - @raw_response = raw_response end end end end