Class: DeltavistaCrifDvaInterface::CollectionCheck

Inherits:
SoapConverter
  • Object
show all
Defined in:
lib/deltavista_crif_dva_interface/collection_check.rb

Instance Attribute Summary

Attributes inherited from SoapConverter

#client, #envelope, #logger, #options, #result

Instance Method Summary collapse

Methods inherited from SoapConverter

#additional_input, #commit, #convert_country, #format_date, #insert_company_address, #insert_identity, #insert_private_address, #insert_reference_number, #parse_location

Constructor Details

#initialize(options) ⇒ CollectionCheck



4
5
6
# File 'lib/deltavista_crif_dva_interface/collection_check.rb', line 4

def initialize(options)
  super(options)
end

Instance Method Details

#business_collection_check(address, collection) ⇒ Object



15
16
17
18
19
20
# File 'lib/deltavista_crif_dva_interface/collection_check.rb', line 15

def business_collection_check(address, collection)
  envelope[:report_type] = 'COLLECTION_CHECK_BUSINESS'
  insert_company_address address
  insert_collection collection
  commit(:collection_check_consumer)
end

#private_collection_check(address, collection) ⇒ Object



8
9
10
11
12
13
# File 'lib/deltavista_crif_dva_interface/collection_check.rb', line 8

def private_collection_check(address, collection)
  envelope[:report_type] = 'COLLECTION_CHECK_CONSUMER'
  insert_private_address address
  insert_collection collection
  commit(:collection_check_consumer)
end