Sha256: 829ff80a72862119166ef8651dc4d1c065ef5d0ddb694b1b57aaa115137a7c35

Contents?: true

Size: 1.71 KB

Versions: 3

Compression:

Stored size: 1.71 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/patchaccountdto'
require_relative '../shared/linkedaccount'

module StackOne
  module Operations

    class StackoneUpdateAccountRequest < ::StackOne::Utils::FieldAugmented
      extend T::Sig


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

      field :patch_account_dto, Shared::PatchAccountDto, { 'request': { 'media_type': 'application/json' } }


      sig { params(id: String, patch_account_dto: Shared::PatchAccountDto).void }
      def initialize(id: nil, patch_account_dto: nil)
        @id = id
        @patch_account_dto = patch_account_dto
      end
    end


    class StackoneUpdateAccountResponse < ::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 account with the given identifier was updated.
      field :linked_account, T.nilable(Shared::LinkedAccount)


      sig { params(content_type: String, raw_response: Faraday::Response, status_code: Integer, linked_account: T.nilable(Shared::LinkedAccount)).void }
      def initialize(content_type: nil, raw_response: nil, status_code: nil, linked_account: nil)
        @content_type = content_type
        @raw_response = raw_response
        @status_code = status_code
        @linked_account = linked_account
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stackone_client-0.1.0 lib/stackone/models/operations/stackone_update_account.rb
stackone_client-0.0.3 lib/stackone/models/operations/stackone_update_account.rb
stackone_client-0.0.2 lib/stackone/models/operations/stackone_update_account.rb