Class: Quickbooks::Model::Invoice
Constant Summary
collapse
- REST_RESOURCE =
'invoice'
- XML_COLLECTION_NODE =
"Invoice"
- XML_NODE =
"Invoice"
Instance Method Summary
collapse
Methods inherited from BaseModel
resource_for_collection, resource_for_singular, #to_xml_inject_ns, #to_xml_ns
Constructor Details
Returns a new instance of Invoice.
54
55
56
57
|
# File 'lib/quickbooks/model/invoice.rb', line 54
def initialize
ensure_line_items_initialization
super
end
|
Instance Method Details
#allow_ipn_payment? ⇒ Boolean
63
64
65
|
# File 'lib/quickbooks/model/invoice.rb', line 63
def allow_ipn_payment?
allow_ipn_payment.to_s == 'true'
end
|
#allow_online_ach_payment? ⇒ Boolean
75
76
77
|
# File 'lib/quickbooks/model/invoice.rb', line 75
def allow_online_ach_payment?
allow_online_ach_payment.to_s == 'true'
end
|
#allow_online_credit_card_payment? ⇒ Boolean
71
72
73
|
# File 'lib/quickbooks/model/invoice.rb', line 71
def allow_online_credit_card_payment?
allow_online_credit_card_payment.to_s == 'true'
end
|
#allow_online_payment? ⇒ Boolean
67
68
69
|
# File 'lib/quickbooks/model/invoice.rb', line 67
def allow_online_payment?
allow_online_payment.to_s == 'true'
end
|
#apply_tax_after_discount? ⇒ Boolean
59
60
61
|
# File 'lib/quickbooks/model/invoice.rb', line 59
def apply_tax_after_discount?
apply_tax_after_discount.to_s == 'true'
end
|
#customer_id=(customer_id) ⇒ Object
79
80
81
|
# File 'lib/quickbooks/model/invoice.rb', line 79
def customer_id=(customer_id)
self.customer_ref = Quickbooks::Model::CustomerRef.new(customer_id)
end
|