chromium/components/payments/core/payment_details_validation.cc

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Validates ShippingOption or PaymentItem, which happen to have identical
// fields, except for "id", which is present only in ShippingOption.
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) {}

}  // namespace

bool ValidatePaymentDetails(const PaymentDetails& details,
                            std::string* error_message) {}

}  // namespace payments