You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
569 B
24 lines
569 B
#pragma once |
|
|
|
#include "application/interfaces/IOrderService.h" |
|
#include "domain/entities/Item.h" |
|
#include "autostore/ILogger.h" |
|
|
|
namespace nxl::autostore::infrastructure { |
|
|
|
class HttpOrderService : public application::IOrderService |
|
{ |
|
public: |
|
explicit HttpOrderService(ILoggerPtr logger); |
|
virtual ~HttpOrderService(); |
|
void orderItem(const domain::Item& item) override; |
|
|
|
private: |
|
ILoggerPtr log; |
|
void sendPostRequest(std::string_view url, std::string_view payload); |
|
|
|
class Impl; |
|
std::unique_ptr<Impl> impl; |
|
}; |
|
|
|
} // namespace nxl::autostore::infrastructure
|