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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 array<string> supported_methods; | 96 array<string> supported_methods; |
97 PaymentItem total; | 97 PaymentItem total; |
98 array<PaymentItem> additional_display_items; | 98 array<PaymentItem> additional_display_items; |
99 }; | 99 }; |
100 | 100 |
101 struct PaymentDetails { | 101 struct PaymentDetails { |
102 PaymentItem total; | 102 PaymentItem total; |
103 array<PaymentItem> display_items; | 103 array<PaymentItem> display_items; |
104 array<PaymentShippingOption> shipping_options; | 104 array<PaymentShippingOption> shipping_options; |
105 array<PaymentDetailsModifier> modifiers; | 105 array<PaymentDetailsModifier> modifiers; |
| 106 string error; |
106 }; | 107 }; |
107 | 108 |
108 struct PaymentOptions { | 109 struct PaymentOptions { |
109 bool request_payer_name; | 110 bool request_payer_name; |
110 bool request_payer_email; | 111 bool request_payer_email; |
111 bool request_payer_phone; | 112 bool request_payer_phone; |
112 bool request_shipping; | 113 bool request_shipping; |
113 }; | 114 }; |
114 | 115 |
115 struct PaymentMethodData { | 116 struct PaymentMethodData { |
(...skipping 19 matching lines...) Expand all Loading... |
135 interface PaymentRequest { | 136 interface PaymentRequest { |
136 Init(PaymentRequestClient client, | 137 Init(PaymentRequestClient client, |
137 array<PaymentMethodData> methodData, | 138 array<PaymentMethodData> methodData, |
138 PaymentDetails details, | 139 PaymentDetails details, |
139 PaymentOptions options); | 140 PaymentOptions options); |
140 Show(); | 141 Show(); |
141 UpdateWith(PaymentDetails details); | 142 UpdateWith(PaymentDetails details); |
142 Abort(); | 143 Abort(); |
143 Complete(PaymentComplete result); | 144 Complete(PaymentComplete result); |
144 }; | 145 }; |
OLD | NEW |