Class: Beanie::VatReturn

Inherits:
Api
  • Object
show all
Defined in:
lib/beanie/vat_return.rb

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

Instance Method Summary collapse

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

#initializeVatReturn

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_dateObject

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_fromObject

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_toObject

Returns the value of attribute goods_to.



33
34
35
# File 'lib/beanie/vat_return.rb', line 33

def goods_to
  @goods_to
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/beanie/vat_return.rb', line 32

def id
  @id
end

#purchaseObject

Returns the value of attribute purchase.



32
33
34
# File 'lib/beanie/vat_return.rb', line 32

def purchase
  @purchase
end

#return_typeObject

Returns the value of attribute return_type.



32
33
34
# File 'lib/beanie/vat_return.rb', line 32

def return_type
  @return_type
end

#salesObject

Returns the value of attribute sales.



32
33
34
# File 'lib/beanie/vat_return.rb', line 32

def sales
  @sales
end

#services_fromObject

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_toObject

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_dateObject

Returns the value of attribute start_date.



32
33
34
# File 'lib/beanie/vat_return.rb', line 32

def start_date
  @start_date
end