#include "components/payments/core/payment_details_validation.h"
#include <set>
#include <vector>
#include "components/payments/core/payment_details.h"
#include "components/payments/core/payments_validators.h"
namespace payments {
namespace {
template <typename T>
bool ValidateShippingOptionOrPaymentItem(const T& item,
std::string* error_message) { … }
bool ValidateDisplayItems(const std::vector<PaymentItem>& items,
std::string* error_message) { … }
bool ValidateShippingOptions(const std::vector<PaymentShippingOption>& options,
std::string* error_message) { … }
bool ValidatePaymentDetailsModifiers(
const std::vector<PaymentDetailsModifier>& modifiers,
std::string* error_message) { … }
}
bool ValidatePaymentDetails(const PaymentDetails& details,
std::string* error_message) { … }
}