Class: Quickeebooks::Windows::Model::Payment
- Inherits:
-
IntuitType
- Object
- IntuitType
- Quickeebooks::Windows::Model::Payment
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/quickeebooks/windows/model/payment.rb
Constant Summary collapse
- XML_COLLECTION_NODE =
'Payments'
- XML_NODE =
"Payment"
- REST_RESOURCE =
"payment"
Instance Method Summary collapse
-
#initialize ⇒ Payment
constructor
A new instance of Payment.
- #valid_for_create? ⇒ Boolean
Methods included from Logging
Constructor Details
#initialize ⇒ Payment
Returns a new instance of Payment.
26 27 28 |
# File 'lib/quickeebooks/windows/model/payment.rb', line 26 def initialize ensure_line_items_initialization end |
Instance Method Details
#valid_for_create? ⇒ Boolean
30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/quickeebooks/windows/model/payment.rb', line 30 def valid_for_create? valid? if header.nil? errors.add(:header, "Missing Header field for Create") # else # # ensure header is valid # unless header.valid? # #errors.concat(header.errors) # #errors[:base].each {|e| header.errors[:base] << e } # end end errors.empty? end |