9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/eway_rapid/message/convert/response/access_code_to_create_cust.rb', line 9
def do_convert(response)
customer_response = CreateCustomerResponse.new
customer_response.access_code = response.access_code
customer_response.form_action_url = response.form_action_url
convert = InternalCustomerToCustomer.new
customer_response.customer = convert.do_convert(response.customer)
customer_response.errors = response.errors.split(/\s*,\s*/) if response.errors
customer_response
end
|