/**
 * MuleSoft Examples
 * Copyright 2014 MuleSoft, Inc.
 *
 * This product includes software developed at
 * MuleSoft, Inc. (http://www.mulesoft.com/).
 */

package com.mulesoft.se.samsung;

import javax.jws.WebService;

@WebService(endpointInterface="com.mulesoft.se.samsung.SamsungService", name="SamsungService")
public class SamsungServiceImpl implements SamsungService {

	@Override
	public OrderResponse purchase(OrderRequest orderRequest) {
		OrderResponse orderResponse = new OrderResponse();
		orderResponse.setId("1");
		orderResponse.setResult("ACCEPTED");
		Integer price = 2550 * orderRequest.getQuantity();
		orderResponse.setPrice(price.toString());
		return orderResponse;
	}

}
