#include "components/autofill/core/browser/payments/payments_requests/get_card_upload_details_request.h"
#include <string>
#include "base/json/json_writer.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/autofill/core/browser/payments/client_behavior_constants.h"
namespace autofill::payments {
namespace {
const char kGetCardUploadDetailsRequestPath[] = …;
}
GetCardUploadDetailsRequest::GetCardUploadDetailsRequest(
const std::vector<AutofillProfile>& addresses,
const int detected_values,
const std::vector<ClientBehaviorConstants>& client_behavior_signals,
const bool full_sync_enabled,
const std::string& app_locale,
base::OnceCallback<void(PaymentsAutofillClient::PaymentsRpcResult,
const std::u16string&,
std::unique_ptr<base::Value::Dict>,
std::vector<std::pair<int, int>>)> callback,
const int billable_service_number,
const int64_t billing_customer_number,
PaymentsNetworkInterface::UploadCardSource upload_card_source)
: … { … }
GetCardUploadDetailsRequest::~GetCardUploadDetailsRequest() = default;
std::string GetCardUploadDetailsRequest::GetRequestUrlPath() { … }
std::string GetCardUploadDetailsRequest::GetRequestContentType() { … }
std::string GetCardUploadDetailsRequest::GetRequestContent() { … }
void GetCardUploadDetailsRequest::ParseResponse(
const base::Value::Dict& response) { … }
bool GetCardUploadDetailsRequest::IsResponseComplete() { … }
void GetCardUploadDetailsRequest::RespondToDelegate(
PaymentsAutofillClient::PaymentsRpcResult result) { … }
std::vector<std::pair<int, int>>
GetCardUploadDetailsRequest::ParseSupportedCardBinRangesString(
const std::string& supported_card_bin_ranges_string) { … }
}