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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 ~PaymentRequest(); | 271 ~PaymentRequest(); |
272 | 272 |
273 bool operator==(const PaymentRequest& other) const; | 273 bool operator==(const PaymentRequest& other) const; |
274 bool operator!=(const PaymentRequest& other) const; | 274 bool operator!=(const PaymentRequest& other) const; |
275 | 275 |
276 // Populates the properties of this PaymentRequest from |value|. Returns true | 276 // Populates the properties of this PaymentRequest from |value|. Returns true |
277 // if the required values are present. | 277 // if the required values are present. |
278 bool FromDictionaryValue(const base::DictionaryValue& value); | 278 bool FromDictionaryValue(const base::DictionaryValue& value); |
279 | 279 |
280 // Properties set in order to communicate user choices back to the page. | 280 // Properties set in order to communicate user choices back to the page. |
281 PaymentAddress payment_address; | 281 PaymentAddress shipping_address; |
282 base::string16 shipping_option; | 282 base::string16 shipping_option; |
283 | 283 |
284 // Properties set via the constructor for communicating from the page to the | 284 // Properties set via the constructor for communicating from the page to the |
285 // browser UI. | 285 // browser UI. |
286 std::vector<PaymentMethodData> method_data; | 286 std::vector<PaymentMethodData> method_data; |
287 PaymentDetails details; | 287 PaymentDetails details; |
288 PaymentOptions options; | 288 PaymentOptions options; |
289 }; | 289 }; |
290 | 290 |
291 // Contains the response from the PaymentRequest API when a user accepts | 291 // Contains the response from the PaymentRequest API when a user accepts |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 base::string16 method_name; | 342 base::string16 method_name; |
343 | 343 |
344 // A credit card response object used by the merchant to process the | 344 // A credit card response object used by the merchant to process the |
345 // transaction and determine successful fund transfer. | 345 // transaction and determine successful fund transfer. |
346 BasicCardResponse details; | 346 BasicCardResponse details; |
347 }; | 347 }; |
348 | 348 |
349 } // namespace web | 349 } // namespace web |
350 | 350 |
351 #endif // IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ | 351 #endif // IOS_WEB_PUBLIC_PAYMENTS_PAYMENT_REQUEST_H_ |
OLD | NEW |