lib/payable/work.rb in payable-api-0.1.1 vs lib/payable/work.rb in payable-api-0.1.2
- old
+ new
@@ -3,12 +3,12 @@
attribute :worker_id, Types::Strict::Int
attribute :work_type_id, Types::Strict::Int
attribute :quantity, Types::Form::Decimal
attribute :quantity_measure, Types::QuantityMeasure
attribute :start, Types::Form::DateTime
- attribute :end, Types::Form::DateTime
- attribute :note, Types::String
- attribute :payment_id, Types::Strict::Int
+ attribute :end, Types::Form::DateTime.optional
+ attribute :notes, Types::String.optional
+ attribute :payment_id, Types::Strict::Int.optional
attribute :payment_status, Types::PaymentStatus
def self.collection; 'work'; end
extend Writeable