Sha256: 10a0894ba708dbc8ca3f82d485b2e24f85fb76d766e30b74103e9adced775dca

Contents?: true

Size: 616 Bytes

Versions: 6

Compression:

Stored size: 616 Bytes

Contents

module LedgerSync
  module Adaptors
    module Test
      module Customer
        module Operations
          class Valid < Operation::Create
            class Contract < LedgerSync::Adaptors::Contract
              schema do
                optional(:ledger_id).maybe(:string)
                optional(:email).maybe(:string)
                optional(:name).maybe(:string)
                optional(:phone_number).maybe(:string)
              end
            end

            private

            def operate
              success(response: :foo)
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ledger_sync-1.1.1 lib/ledger_sync/adaptors/test/customer/operations/valid.rb
ledger_sync-1.0.10 lib/ledger_sync/adaptors/test/customer/operations/valid.rb
ledger_sync-1.0.9 lib/ledger_sync/adaptors/test/customer/operations/valid.rb
ledger_sync-1.0.3 lib/ledger_sync/adaptors/test/customer/operations/valid.rb
ledger_sync-1.0.2 lib/ledger_sync/adaptors/test/customer/operations/valid.rb
ledger_sync-1.0.0 lib/ledger_sync/adaptors/test/customer/operations/valid.rb