Class: Beanie::VatReturn
Constant Summary collapse
- RETURN_TYPE_ORIGINAL =
0- RETURN_TYPE_SUPPLEMENTARY =
1- RETURN_TYPE_AMENDED =
2- RETURN_TYPES =
[ ["Original Return", RETURN_TYPE_ORIGINAL], ["Supplementary Return", RETURN_TYPE_SUPPLEMENTARY], ["Amended Return", RETURN_TYPE_AMENDED] ].freeze
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#goods_from ⇒ Object
Returns the value of attribute goods_from.
-
#goods_to ⇒ Object
Returns the value of attribute goods_to.
-
#id ⇒ Object
Returns the value of attribute id.
-
#purchase ⇒ Object
Returns the value of attribute purchase.
-
#return_type ⇒ Object
Returns the value of attribute return_type.
-
#sales ⇒ Object
Returns the value of attribute sales.
-
#services_from ⇒ Object
Returns the value of attribute services_from.
-
#services_to ⇒ Object
Returns the value of attribute services_to.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize ⇒ VatReturn
constructor
Initialize instance variables.
Methods inherited from Api
all, build_url, #construct_path, delete, #extract, #field_name, find, get, #object_name, #populate, post, put, #save!, set_headers
Constructor Details
#initialize ⇒ VatReturn
Initialize instance variables
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/beanie/vat_return.rb', line 47 def initialize @id = nil @start_date = nil @end_date = nil @return_type = nil @purchase = nil @sales = nil @goods_from = nil @goods_to = nil @services_from = nil @services_to = nil end |
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date.
32 33 34 |
# File 'lib/beanie/vat_return.rb', line 32 def end_date @end_date end |
#goods_from ⇒ Object
Returns the value of attribute goods_from.
33 34 35 |
# File 'lib/beanie/vat_return.rb', line 33 def goods_from @goods_from end |
#goods_to ⇒ Object
Returns the value of attribute goods_to.
33 34 35 |
# File 'lib/beanie/vat_return.rb', line 33 def goods_to @goods_to end |
#id ⇒ Object
Returns the value of attribute id.
32 33 34 |
# File 'lib/beanie/vat_return.rb', line 32 def id @id end |
#purchase ⇒ Object
Returns the value of attribute purchase.
32 33 34 |
# File 'lib/beanie/vat_return.rb', line 32 def purchase @purchase end |
#return_type ⇒ Object
Returns the value of attribute return_type.
32 33 34 |
# File 'lib/beanie/vat_return.rb', line 32 def return_type @return_type end |
#sales ⇒ Object
Returns the value of attribute sales.
32 33 34 |
# File 'lib/beanie/vat_return.rb', line 32 def sales @sales end |
#services_from ⇒ Object
Returns the value of attribute services_from.
33 34 35 |
# File 'lib/beanie/vat_return.rb', line 33 def services_from @services_from end |
#services_to ⇒ Object
Returns the value of attribute services_to.
33 34 35 |
# File 'lib/beanie/vat_return.rb', line 33 def services_to @services_to end |
#start_date ⇒ Object
Returns the value of attribute start_date.
32 33 34 |
# File 'lib/beanie/vat_return.rb', line 32 def start_date @start_date end |