lib/ledger_sync/adaptors/test/payment/operations/update.rb in ledger_sync-1.3.1 vs lib/ledger_sync/adaptors/test/payment/operations/update.rb in ledger_sync-1.3.2
- old
+ new
@@ -7,10 +7,10 @@
class Contract < LedgerSync::Adaptors::Contract
params do
required(:external_id).maybe(:string)
optional(:account).hash(Types::Reference)
required(:amount).filled(:integer)
- required(:currency).filled(:string)
+ required(:currency).filled(:hash, Types::Reference)
required(:customer).hash(Types::Reference)
optional(:deposit_account).hash(Types::Reference)
optional(:exchange_rate).maybe(:float)
required(:ledger_id).filled(:string)
required(:line_items).array(Types::Reference)