blob: bb4147c92d25c255d7bbbfc96a1780a209f90375 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PAYMENTS_CORE_PAYMENT_ADDRESS_H_
#define COMPONENTS_PAYMENTS_CORE_PAYMENT_ADDRESS_H_
#include <memory>
#include <vector>
#include "base/strings/string16.h"
#include "components/payments/mojom/payment_request_data.mojom.h"
// C++ bindings for the PaymentRequest API PaymentAddress. Conforms to the
// following spec:
// https://w3c.github.io/payment-request/#dom-paymentaddress
namespace base {
class DictionaryValue;
}
namespace payments {
// Populates |value| with the properties of this PaymentAddress.
std::unique_ptr<base::DictionaryValue> PaymentAddressToDictionaryValue(
const mojom::PaymentAddress& address);
} // namespace payments
#endif // COMPONENTS_PAYMENTS_CORE_PAYMENT_ADDRESS_H_