Sha256: d74d6aade45af06e22e75cbe3cf54b311929e416d2cb45d80a53ddedaefc997f

Contents?: true

Size: 636 Bytes

Versions: 5

Compression:

Stored size: 636 Bytes

Contents

module Tangany
  module Customers
    module Contracts
      module NaturalPersons
        module CreateSchemas
          module Sanctions
            class << self
              def schema
                Dry::Schema.Params do
                  required(:checkDate).filled(:string, format?: Tangany::ApplicationContract::DATETIME_REGEX)
                  required(:isSanctioned).filled(:bool)
                  optional(:source).maybe(:string, max_size?: 255)
                  optional(:reason).maybe(:string, max_size?: 255)
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tangany-0.0.5 lib/tangany/customers/contracts/natural_persons/create_schemas/sanctions.rb
tangany-0.0.4 lib/tangany/customers/contracts/natural_persons/create_schemas/sanctions.rb
tangany-0.0.3 lib/tangany/customers/contracts/natural_persons/create_schemas/sanctions.rb
tangany-0.0.2 lib/tangany/customers/contracts/natural_persons/create_schemas/sanctions.rb
tangany-0.0.1 lib/tangany/customers/contracts/natural_persons/create_schemas/sanctions.rb