Sha256: 2006b6a9001bcd6c46664f38ce8895c98f9003b3bb7739d60f73e7c29584d0cb
Contents?: true
Size: 625 Bytes
Versions: 1
Compression:
Stored size: 625 Bytes
Contents
require 'dry-validation' module TochkaCyclopsApi module Schemas class BeneficiaryData < Dry::Validation::Contract params do required(:name).value(:string) required(:kpp).value(:string) optional(:ogrn).value(:string) end end class CreateBeneficiaryUl < Dry::Validation::Contract schema do required(:inn).value(:string) optional(:nominal_account_code).value(:string) optional(:nominal_account_bic).value(:string) required(:beneficiary_data).schema( TochkaCyclopsApi::Schemas::BeneficiaryData.schema) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tochka_cyclops_api-0.1.0 | lib/tochka_cyclops_api/schemas/create_beneficiary_ul.rb |