| 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.payments.mojom"] | 5 [JavaPackage="org.chromium.payments.mojom"] |
| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 struct PaymentShippingOption { | 89 struct PaymentShippingOption { |
| 90 string id; | 90 string id; |
| 91 string label; | 91 string label; |
| 92 PaymentCurrencyAmount amount; | 92 PaymentCurrencyAmount amount; |
| 93 bool selected; | 93 bool selected; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 struct PaymentDetailsModifier { | 96 struct PaymentDetailsModifier { |
| 97 array<string> supported_methods; | 97 array<string> supported_methods; |
| 98 PaymentItem total; | 98 PaymentItem? total; |
| 99 array<PaymentItem> additional_display_items; | 99 array<PaymentItem> additional_display_items; |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 struct PaymentDetails { | 102 struct PaymentDetails { |
| 103 PaymentItem total; | 103 PaymentItem total; |
| 104 array<PaymentItem> display_items; | 104 array<PaymentItem> display_items; |
| 105 array<PaymentShippingOption> shipping_options; | 105 array<PaymentShippingOption> shipping_options; |
| 106 array<PaymentDetailsModifier> modifiers; | 106 array<PaymentDetailsModifier> modifiers; |
| 107 string error; | 107 string error; |
| 108 }; | 108 }; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 interface PaymentRequest { | 144 interface PaymentRequest { |
| 145 Init(PaymentRequestClient client, | 145 Init(PaymentRequestClient client, |
| 146 array<PaymentMethodData> methodData, | 146 array<PaymentMethodData> methodData, |
| 147 PaymentDetails details, | 147 PaymentDetails details, |
| 148 PaymentOptions options); | 148 PaymentOptions options); |
| 149 Show(); | 149 Show(); |
| 150 UpdateWith(PaymentDetails details); | 150 UpdateWith(PaymentDetails details); |
| 151 Abort(); | 151 Abort(); |
| 152 Complete(PaymentComplete result); | 152 Complete(PaymentComplete result); |
| 153 }; | 153 }; |
| OLD | NEW |