Class: Moneybird::Resource::SalesInvoice
- Inherits:
-
Object
- Object
- Moneybird::Resource::SalesInvoice
- Extended by:
- ClassMethods
- Includes:
- Moneybird::Resource
- Defined in:
- lib/moneybird/resource/sales_invoice.rb
Instance Attribute Summary collapse
-
#contact ⇒ Object
Returns the value of attribute contact.
-
#custom_fields ⇒ Object
Returns the value of attribute custom_fields.
-
#details ⇒ Object
Returns the value of attribute details.
-
#events ⇒ Object
Returns the value of attribute events.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#payments ⇒ Object
Returns the value of attribute payments.
Attributes included from ClassMethods
#attributes, #logger, #nillable_attributes
Attributes included from Moneybird::Resource
Instance Method Summary collapse
Methods included from ClassMethods
build, has_attributes, has_boolean_attributes, has_datetime_attributes, has_integer_attributes, has_nillable_attributes, resource
Methods included from Moneybird::Resource
#attributes, #attributes=, #initialize, #link_booking, #path, #persisted?, #to_json
Instance Attribute Details
#contact ⇒ Object
Returns the value of attribute contact.
61 62 63 |
# File 'lib/moneybird/resource/sales_invoice.rb', line 61 def contact @contact end |
#custom_fields ⇒ Object
Returns the value of attribute custom_fields.
61 62 63 |
# File 'lib/moneybird/resource/sales_invoice.rb', line 61 def custom_fields @custom_fields end |
#details ⇒ Object
Returns the value of attribute details.
61 62 63 |
# File 'lib/moneybird/resource/sales_invoice.rb', line 61 def details @details end |
#events ⇒ Object
Returns the value of attribute events.
61 62 63 |
# File 'lib/moneybird/resource/sales_invoice.rb', line 61 def events @events end |
#notes ⇒ Object
Returns the value of attribute notes.
61 62 63 |
# File 'lib/moneybird/resource/sales_invoice.rb', line 61 def notes @notes end |
#payments ⇒ Object
Returns the value of attribute payments.
61 62 63 |
# File 'lib/moneybird/resource/sales_invoice.rb', line 61 def payments @payments end |
Instance Method Details
#mark_as_uncollectible(options = {}) ⇒ Object
76 77 78 79 |
# File 'lib/moneybird/resource/sales_invoice.rb', line 76 def mark_as_uncollectible( = {}) invoice_service = Moneybird::Service::SalesInvoice.new(client, administration_id) invoice_service.mark_as_uncollectible(self, ) end |
#send_invoice(options = {}) ⇒ Object
71 72 73 74 |
# File 'lib/moneybird/resource/sales_invoice.rb', line 71 def send_invoice( = {}) invoice_service = Moneybird::Service::SalesInvoice.new(client, administration_id) invoice_service.send_invoice(self, ) end |