#include "components/autofill/core/browser/payments/payments_requests/opt_change_request.h"
#include <string>
#include "base/json/json_writer.h"
namespace autofill::payments {
namespace {
const char kOptChangeRequestPath[] = …;
}
OptChangeRequest::OptChangeRequest(
const PaymentsNetworkInterface::OptChangeRequestDetails& request_details,
base::OnceCallback<
void(PaymentsAutofillClient::PaymentsRpcResult,
PaymentsNetworkInterface::OptChangeResponseDetails&)> callback,
const bool full_sync_enabled)
: … { … }
OptChangeRequest::~OptChangeRequest() = default;
std::string OptChangeRequest::GetRequestUrlPath() { … }
std::string OptChangeRequest::GetRequestContentType() { … }
std::string OptChangeRequest::GetRequestContent() { … }
void OptChangeRequest::ParseResponse(const base::Value::Dict& response) { … }
bool OptChangeRequest::IsResponseComplete() { … }
void OptChangeRequest::RespondToDelegate(
PaymentsAutofillClient::PaymentsRpcResult result) { … }
}