#include "components/autofill/core/browser/payments/payments_requests/get_details_for_enrollment_request.h"
#include "base/json/json_writer.h"
#include "base/strings/string_number_conversions.h"
namespace autofill::payments {
namespace {
const char kGetDetailsForEnrollmentRequestPath[] = …;
const int kUpstreamEnrollBillableServiceNumber = …;
const int kDownstreamEnrollBillableServiceNumber = …;
}
GetDetailsForEnrollmentRequest::GetDetailsForEnrollmentRequest(
const PaymentsNetworkInterface::GetDetailsForEnrollmentRequestDetails&
request_details,
base::OnceCallback<void(PaymentsAutofillClient::PaymentsRpcResult,
const PaymentsNetworkInterface::
GetDetailsForEnrollmentResponseDetails&)>
callback)
: … { … }
GetDetailsForEnrollmentRequest::~GetDetailsForEnrollmentRequest() = default;
std::string GetDetailsForEnrollmentRequest::GetRequestUrlPath() { … }
std::string GetDetailsForEnrollmentRequest::GetRequestContentType() { … }
std::string GetDetailsForEnrollmentRequest::GetRequestContent() { … }
void GetDetailsForEnrollmentRequest::ParseResponse(
const base::Value::Dict& response) { … }
bool GetDetailsForEnrollmentRequest::IsResponseComplete() { … }
void GetDetailsForEnrollmentRequest::RespondToDelegate(
PaymentsAutofillClient::PaymentsRpcResult result) { … }
}