#include "components/autofill/core/browser/payments/payments_requests/update_virtual_card_enrollment_request.h"
#include <string>
#include "base/json/json_writer.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "components/autofill/core/browser/payments/virtual_card_enrollment_flow.h"
namespace autofill {
namespace payments {
namespace {
const char kEnrollRequestPath[] = …;
const char kUnenrollRequestPath[] = …;
}
UpdateVirtualCardEnrollmentRequest::UpdateVirtualCardEnrollmentRequest(
const PaymentsNetworkInterface::UpdateVirtualCardEnrollmentRequestDetails&
request_details,
base::OnceCallback<void(PaymentsAutofillClient::PaymentsRpcResult)>
callback)
: … { … }
UpdateVirtualCardEnrollmentRequest::~UpdateVirtualCardEnrollmentRequest() =
default;
std::string UpdateVirtualCardEnrollmentRequest::GetRequestUrlPath() { … }
std::string UpdateVirtualCardEnrollmentRequest::GetRequestContentType() { … }
std::string UpdateVirtualCardEnrollmentRequest::GetRequestContent() { … }
void UpdateVirtualCardEnrollmentRequest::ParseResponse(
const base::Value::Dict& response) { … }
bool UpdateVirtualCardEnrollmentRequest::IsResponseComplete() { … }
void UpdateVirtualCardEnrollmentRequest::RespondToDelegate(
PaymentsAutofillClient::PaymentsRpcResult result) { … }
std::string UpdateVirtualCardEnrollmentRequest::GetHistogramName() const { … }
std::optional<base::TimeDelta> UpdateVirtualCardEnrollmentRequest::GetTimeout()
const { … }
void UpdateVirtualCardEnrollmentRequest::BuildEnrollRequestDictionary(
base::Value::Dict* request_dict) { … }
void UpdateVirtualCardEnrollmentRequest::BuildUnenrollRequestDictionary(
base::Value::Dict* request_dict) { … }
}
}