Sha256: 9dce728c04cdb75a003565f3c1713df23fcaaf285d8319da729ec5ebb50c9549

Contents?: true

Size: 382 Bytes

Versions: 2

Compression:

Stored size: 382 Bytes

Contents

require 'dry/types'

module Payable
  module Types
    include Dry::Types.module

    QuantityMeasure = Strict::String.enum('time', 'money', 'unit', 'distance')
    InviteStatus    = Strict::String.enum('invited', 'not_invited', 'accepted')
    PaymentStatus   = Strict::String.enum('draft_ready', 'payment_pending', 'payment_failed', 'payment_refunded', 'paid').optional
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
payable-api-0.1.2 lib/payable/types.rb
payable-api-0.1.1 lib/payable/types.rb