Sha256: a4085dbac344e61a30c4d4520302fcf0b6b56befeab6e4b257edf32c22f1fa23
Contents?: true
Size: 433 Bytes
Versions: 3
Compression:
Stored size: 433 Bytes
Contents
# frozen_string_literal: true require 'dry-validation' module Fawry module Contracts class RefundRequestContract < Dry::Validation::Contract params do required(:merchant_code).value(:string) required(:reference_number).value(:string) required(:refund_amount).value(:decimal) required(:fawry_secure_key).value(:string) optional(:reason).value(:string) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fawry-0.3.0 | lib/fawry/contracts/refund_request_contract.rb |
fawry-0.2.0 | lib/fawry/contracts/refund_request_contract.rb |
fawry-0.1.0 | lib/fawry/contracts/refund_request_contract.rb |