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