OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ | 5 #ifndef IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ |
6 #define IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ | 6 #define IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 PaymentResponse(); | 308 PaymentResponse(); |
309 PaymentResponse(const PaymentResponse& other); | 309 PaymentResponse(const PaymentResponse& other); |
310 ~PaymentResponse(); | 310 ~PaymentResponse(); |
311 | 311 |
312 bool operator==(const PaymentResponse& other) const; | 312 bool operator==(const PaymentResponse& other) const; |
313 bool operator!=(const PaymentResponse& other) const; | 313 bool operator!=(const PaymentResponse& other) const; |
314 | 314 |
315 // Populates |value| with the properties of this PaymentResponse. | 315 // Populates |value| with the properties of this PaymentResponse. |
316 std::unique_ptr<base::DictionaryValue> ToDictionaryValue() const; | 316 std::unique_ptr<base::DictionaryValue> ToDictionaryValue() const; |
317 | 317 |
318 // TODO(jdonnelly): Remove this after removing downstream use. | |
319 void ToDictionaryValue(base::DictionaryValue* value) const; | |
320 | |
321 // The payment method identifier for the payment method that the user selected | 318 // The payment method identifier for the payment method that the user selected |
322 // to fulfil the transaction. | 319 // to fulfil the transaction. |
323 base::string16 method_name; | 320 base::string16 method_name; |
324 | 321 |
325 // A credit card response object used by the merchant to process the | 322 // A credit card response object used by the merchant to process the |
326 // transaction and determine successful fund transfer. | 323 // transaction and determine successful fund transfer. |
327 BasicCardResponse details; | 324 BasicCardResponse details; |
328 }; | 325 }; |
329 | 326 |
330 } // namespace web | 327 } // namespace web |
331 | 328 |
332 #endif // IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ | 329 #endif // IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ |
OLD | NEW |