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 10 matching lines...) Expand all Loading... |
21 // Optional shortest ISO 639 language code. Two or three lower case ASCII | 21 // Optional shortest ISO 639 language code. Two or three lower case ASCII |
22 // letters. | 22 // letters. |
23 string language_code; | 23 string language_code; |
24 | 24 |
25 // Optional ISO 15924 script code. Four ASCII letters. The first letter is | 25 // Optional ISO 15924 script code. Four ASCII letters. The first letter is |
26 // upper case; the rest are lower case. | 26 // upper case; the rest are lower case. |
27 string script_code; | 27 string script_code; |
28 | 28 |
29 string organization; | 29 string organization; |
30 string recipient; | 30 string recipient; |
31 string careOf; | |
32 string phone; | 31 string phone; |
33 }; | 32 }; |
34 | 33 |
35 // The currency amount that the renderer provides to the browser process. The | 34 // The currency amount that the renderer provides to the browser process. The |
36 // browser shows the amount in UI and forwards it on to the payment app, if it | 35 // browser shows the amount in UI and forwards it on to the payment app, if it |
37 // requires the amount. | 36 // requires the amount. |
38 struct PaymentCurrencyAmount { | 37 struct PaymentCurrencyAmount { |
39 // The most common identifiers are three-letter alphabetic codes as defined | 38 // The most common identifiers are three-letter alphabetic codes as defined |
40 // by [ISO4217] (for example, "USD" for US Dollars), however any string of at | 39 // by [ISO4217] (for example, "USD" for US Dollars), however any string of at |
41 // most 2048 characters is considered valid. | 40 // most 2048 characters is considered valid. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 interface PaymentRequest { | 133 interface PaymentRequest { |
135 Init(PaymentRequestClient client, | 134 Init(PaymentRequestClient client, |
136 array<PaymentMethodData> methodData, | 135 array<PaymentMethodData> methodData, |
137 PaymentDetails details, | 136 PaymentDetails details, |
138 PaymentOptions options); | 137 PaymentOptions options); |
139 Show(); | 138 Show(); |
140 UpdateWith(PaymentDetails details); | 139 UpdateWith(PaymentDetails details); |
141 Abort(); | 140 Abort(); |
142 Complete(PaymentComplete result); | 141 Complete(PaymentComplete result); |
143 }; | 142 }; |
OLD | NEW |