Class: Billogram::Invoice

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

Constant Summary

Constants inherited from Resource

Resource::DEFAULT_OPTIONS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

build_objects, create, delete, #delete, endpoint, #endpoint, fetch, #initialize, #perform_request, perform_request, relation, relations, search, #to_json, #update, update

Constructor Details

This class inherits a constructor from Billogram::Resource

Instance Attribute Details

#attachmentObject

Returns the value of attribute attachment.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def attachment
  @attachment
end

#attested_atObject

Returns the value of attribute attested_at.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def attested_at
  @attested_at
end

#automatic_remindersObject

Returns the value of attribute automatic_reminders.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def automatic_reminders
  @automatic_reminders
end

#created_atObject

Returns the value of attribute created_at.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def created_at
  @created_at
end

#currencyObject

Returns the value of attribute currency.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def currency
  @currency
end

#delivery_methodObject

Returns the value of attribute delivery_method.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def delivery_method
  @delivery_method
end

#detailed_sumsObject

Returns the value of attribute detailed_sums.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def detailed_sums
  @detailed_sums
end

#due_dateObject

Returns the value of attribute due_date.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def due_date
  @due_date
end

#due_daysObject

Returns the value of attribute due_days.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def due_days
  @due_days
end

#flagsObject

Returns the value of attribute flags.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def flags
  @flags
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def id
  @id
end

#interest_feeObject

Returns the value of attribute interest_fee.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def interest_fee
  @interest_fee
end

#interest_rateObject

Returns the value of attribute interest_rate.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def interest_rate
  @interest_rate
end

#invoice_dateObject

Returns the value of attribute invoice_date.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def invoice_date
  @invoice_date
end

#invoice_feeObject

Returns the value of attribute invoice_fee.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def invoice_fee
  @invoice_fee
end

#invoice_fee_vatObject

Returns the value of attribute invoice_fee_vat.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def invoice_fee_vat
  @invoice_fee_vat
end

#invoice_noObject

Returns the value of attribute invoice_no.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def invoice_no
  @invoice_no
end

#ocr_numberObject

Returns the value of attribute ocr_number.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def ocr_number
  @ocr_number
end

#remaining_sumObject

Returns the value of attribute remaining_sum.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def remaining_sum
  @remaining_sum
end

#reminder_countObject

Returns the value of attribute reminder_count.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def reminder_count
  @reminder_count
end

#reminder_feeObject

Returns the value of attribute reminder_fee.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def reminder_fee
  @reminder_fee
end

#rounding_valueObject

Returns the value of attribute rounding_value.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def rounding_value
  @rounding_value
end

#stateObject

Returns the value of attribute state.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def state
  @state
end

#total_sumObject

Returns the value of attribute total_sum.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def total_sum
  @total_sum
end

#updated_atObject

Returns the value of attribute updated_at.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def updated_at
  @updated_at
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/billogram/resources/invoice.rb', line 5

def url
  @url
end

Instance Method Details

#attach(options = {}) ⇒ Object



57
58
59
# File 'lib/billogram/resources/invoice.rb', line 57

def attach(options = {})
  perform_request(command_path(:attach), :post, options)
end

#collectObject



25
26
27
# File 'lib/billogram/resources/invoice.rb', line 25

def collect
  perform_request(command_path(:collect), :post)
end

#credit(options = {}) ⇒ Object



49
50
51
# File 'lib/billogram/resources/invoice.rb', line 49

def credit(options = {})
  perform_request(command_path(:credit), :post, options)
end

#message(message:) ⇒ Object



53
54
55
# File 'lib/billogram/resources/invoice.rb', line 53

def message(message: )
  perform_request(command_path(:message), :post, {message: message})
end

#payment(amount:) ⇒ Object



45
46
47
# File 'lib/billogram/resources/invoice.rb', line 45

def payment(amount: )
  perform_request(command_path(:payment), :post, {amount: amount})
end

#remind(method:) ⇒ Object



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

def remind(method: )
  perform_request(command_path(:remind), :post, {method: method})
end

#resend(method:) ⇒ Object



37
38
39
# File 'lib/billogram/resources/invoice.rb', line 37

def resend(method: )
  perform_request(command_path(:resend), :post, {method: method})
end

#sellObject



21
22
23
# File 'lib/billogram/resources/invoice.rb', line 21

def sell
  perform_request(command_path(:sell), :post)
end

#send!(method:) ⇒ Object



33
34
35
# File 'lib/billogram/resources/invoice.rb', line 33

def send!(method: )
  perform_request(command_path(:send), :post, {method: method})
end

#writeoffObject



29
30
31
# File 'lib/billogram/resources/invoice.rb', line 29

def writeoff
  perform_request(command_path(:writeoff), :post)
end