package pl.piomin.services.order.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

import pl.piomin.services.order.model.Account;

@FeignClient(name = "account")
public interface AccountClient {

	@PutMapping("/withdraw/{accountId}/{amount}")
	Account withdraw(@PathVariable("accountId") Long id, @PathVariable("amount") int amount);

}
