Class: Billogram::Invoice

Inherits:
Resource show all
Includes:
Endpoint
Defined in:
lib/billogram/resources/invoice.rb

Constant Summary collapse

COMMANDS =
[
  :sell, :remind, :collect, :writeoff, :resend,
  :remind, :payment, :credit, :message, :attach
].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Endpoint

included

Methods inherited from Resource

build_objects, #initialize, relation, relations, #to_hash, #to_json

Constructor Details

This class inherits a constructor from Billogram::Resource

Instance Attribute Details

#attachmentObject

Returns the value of attribute attachment.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def attachment
  @attachment
end

#attested_atObject

Returns the value of attribute attested_at.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def attested_at
  @attested_at
end

#automatic_remindersObject

Returns the value of attribute automatic_reminders.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def automatic_reminders
  @automatic_reminders
end

#created_atObject

Returns the value of attribute created_at.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def created_at
  @created_at
end

#creditor_unique_valueObject

Returns the value of attribute creditor_unique_value.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def creditor_unique_value
  @creditor_unique_value
end

#currencyObject

Returns the value of attribute currency.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def currency
  @currency
end

#delivery_methodObject

Returns the value of attribute delivery_method.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def delivery_method
  @delivery_method
end

#detailed_sumsObject

Returns the value of attribute detailed_sums.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def detailed_sums
  @detailed_sums
end

#due_dateObject

Returns the value of attribute due_date.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def due_date
  @due_date
end

#due_daysObject

Returns the value of attribute due_days.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def due_days
  @due_days
end

#flagsObject

Returns the value of attribute flags.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def flags
  @flags
end

#idObject

Returns the value of attribute id.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def id
  @id
end

#interest_feeObject

Returns the value of attribute interest_fee.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def interest_fee
  @interest_fee
end

#interest_rateObject

Returns the value of attribute interest_rate.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def interest_rate
  @interest_rate
end

#invoice_dateObject

Returns the value of attribute invoice_date.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def invoice_date
  @invoice_date
end

#invoice_feeObject

Returns the value of attribute invoice_fee.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def invoice_fee
  @invoice_fee
end

#invoice_fee_vatObject

Returns the value of attribute invoice_fee_vat.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def invoice_fee_vat
  @invoice_fee_vat
end

#invoice_noObject

Returns the value of attribute invoice_no.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def invoice_no
  @invoice_no
end

#ocr_numberObject

Returns the value of attribute ocr_number.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def ocr_number
  @ocr_number
end

#offersObject

Returns the value of attribute offers.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def offers
  @offers
end

#pdfObject

Returns the value of attribute pdf.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def pdf
  @pdf
end

#recipient_urlObject

Returns the value of attribute recipient_url.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def recipient_url
  @recipient_url
end

#remaining_sumObject

Returns the value of attribute remaining_sum.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def remaining_sum
  @remaining_sum
end

#reminder_countObject

Returns the value of attribute reminder_count.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def reminder_count
  @reminder_count
end

#reminder_feeObject

Returns the value of attribute reminder_fee.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def reminder_fee
  @reminder_fee
end

#respite_dateObject

Returns the value of attribute respite_date.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def respite_date
  @respite_date
end

#rounding_valueObject

Returns the value of attribute rounding_value.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def rounding_value
  @rounding_value
end

#sales_acceptedObject

Returns the value of attribute sales_accepted.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def sales_accepted
  @sales_accepted
end

#show_item_gross_pricesObject

Returns the value of attribute show_item_gross_prices.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def show_item_gross_prices
  @show_item_gross_prices
end

#stateObject

Returns the value of attribute state.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def state
  @state
end

#total_sumObject

Returns the value of attribute total_sum.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def total_sum
  @total_sum
end

#updated_atObject

Returns the value of attribute updated_at.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def updated_at
  @updated_at
end

#urlObject

Returns the value of attribute url.



9
10
11
# File 'lib/billogram/resources/invoice.rb', line 9

def url
  @url
end

Instance Method Details

#send!(method:) ⇒ Object



40
41
42
# File 'lib/billogram/resources/invoice.rb', line 40

def send!(method:)
  send_command(:send, { method: method })
end