Sha256: 03f71294095657feda01a37615afaa7ee52fddc0a25388fb337e0dae86042005

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 KB

Contents

# Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.

# typed: true
# frozen_string_literal: true

require 'sorbet-runtime'
require 'faraday'
require_relative '../shared/errorresponse'
require_relative '../shared/lookupresponse'

module DingSDK
  module Operations

    class LookupRequest < DingSDK::Utils::FieldAugmented
      extend T::Sig


      field :customer_uuid, String, { 'header': { 'field_name': 'customer-uuid', 'style': 'simple', 'explode': false } }

      field :phone_number, String, { 'path_param': { 'field_name': 'phone_number', 'style': 'simple', 'explode': false } }


      sig { params(customer_uuid: String, phone_number: String).void }
      def initialize(customer_uuid: nil, phone_number: nil)
        @customer_uuid = customer_uuid
        @phone_number = phone_number
      end
    end


    class LookupResponse < DingSDK::Utils::FieldAugmented
      extend T::Sig

      # HTTP response content type for this operation
      field :content_type, String
      # 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)
        @content_type = content_type
        @status_code = status_code
        @error_response = error_response
        @lookup_response = lookup_response
        @raw_response = raw_response
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ding_sdk-0.4.0 lib/ding/models/operations/lookup.rb
ding_sdk-0.3.0 lib/ding/models/operations/lookup.rb