Sha256: 1b2da43d03099382013bf409e1612dfb028d1087e920ff589d18989d274d7d21

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

# frozen_string_literal: true

require 'dry-struct'

module Types
  include Dry.Types()
end

module TochkaCyclopsApi
  module Schemas
    module Responses
      # Response schema for get_beneficiary request
      class ListBeneficicary < Dry::Struct
        class LastContractOffer < Dry::Struct
          attribute :id, ::Types::String
          attribute :type, ::Types::String
          attribute :success_added, ::Types::Bool
          attribute :success_added_desc, ::Types::String
        end

        class NominalAccount < Dry::Struct
          attribute :bic, ::Types::String
          attribute :code, ::Types::String
        end

        class BeneficiaryData < Dry::Struct
          attribute :name, ::Types::String
        end

        class Beneficiary < Dry::Struct
          attribute :inn, Types::String
          attribute :id, Types::String
          attribute :is_active, Types::Bool
          attribute :legal_type, Types::String
          attribute :ogrn, Types::String
          attribute :beneficiary_data, BeneficiaryData
        end

        attribute :beneficiary, Beneficiary
        attribute :nominal_account, NominalAccount
        attribute :last_contract_offer, LastContractOffer
        attribute :permission, Types::Bool
        attribute :permission_description, Types::String
        attribute :meta, Meta
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tochka_cyclops_api-0.4.0 lib/tochka_cyclops_api/schemas/responses/get_beneficiary.rb