| 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 [JavaPackage="org.chromium.mojom.payments"] | 5 [JavaPackage="org.chromium.mojom.payments"] |
| 6 module blink.mojom; | 6 module blink.mojom; |
| 7 | 7 |
| 8 // The shipping address that the browser process provides to the renderer | 8 // The shipping address that the browser process provides to the renderer |
| 9 // process. Built either by the browser or a payment app. | 9 // process. Built either by the browser or a payment app. |
| 10 struct PaymentAddress { | 10 struct PaymentAddress { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 struct PaymentItem { | 70 struct PaymentItem { |
| 71 string label; | 71 string label; |
| 72 CurrencyAmount amount; | 72 CurrencyAmount amount; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 struct ShippingOption { | 75 struct ShippingOption { |
| 76 string id; | 76 string id; |
| 77 string label; | 77 string label; |
| 78 CurrencyAmount amount; | 78 CurrencyAmount amount; |
| 79 bool selected; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 struct PaymentDetails { | 82 struct PaymentDetails { |
| 82 PaymentItem total; | 83 PaymentItem total; |
| 83 array<PaymentItem> display_items; | 84 array<PaymentItem> display_items; |
| 84 array<ShippingOption> shipping_options; | 85 array<ShippingOption> shipping_options; |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 struct PaymentOptions { | 88 struct PaymentOptions { |
| 88 bool request_shipping; | 89 bool request_shipping; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 100 // object to the payment app, for example Android Pay. There's no one | 101 // object to the payment app, for example Android Pay. There's no one |
| 101 // format for this object, so richer types cannot be used. A simple | 102 // format for this object, so richer types cannot be used. A simple |
| 102 // example: | 103 // example: |
| 103 // | 104 // |
| 104 // {"https://android.com/pay": {"gateway": "stripe"}} | 105 // {"https://android.com/pay": {"gateway": "stripe"}} |
| 105 string stringified_data); | 106 string stringified_data); |
| 106 UpdateWith(PaymentDetails details); | 107 UpdateWith(PaymentDetails details); |
| 107 Abort(); | 108 Abort(); |
| 108 Complete(bool success); | 109 Complete(bool success); |
| 109 }; | 110 }; |
| OLD | NEW |