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 18 matching lines...) Expand all Loading... | |
29 string organization; | 29 string organization; |
30 string recipient; | 30 string recipient; |
31 string careOf; | 31 string careOf; |
32 string phone; | 32 string phone; |
33 }; | 33 }; |
34 | 34 |
35 // The currency amount that the renderer provides to the browser process. The | 35 // 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 | 36 // browser shows the amount in UI and forwards it on to the payment app, if it |
37 // requires the amount. | 37 // requires the amount. |
38 struct PaymentCurrencyAmount { | 38 struct PaymentCurrencyAmount { |
39 // ISO 4217 currency code. Three upper case ASCII letters. | 39 // The most common identifiers are three-letter alphabetic codes as defined |
40 // by [ISO4217] (for example, "USD" for US Dollars), however any string is | |
41 // considered valid. | |
please use gerrit instead
2016/08/29 14:23:40
"any string of at most 2048 characters"
pals
2016/08/30 09:02:10
Done.
| |
40 string currency; | 42 string currency; |
41 | 43 |
42 // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction | 44 // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction |
43 // digits. Separated by a dot. | 45 // digits. Separated by a dot. |
44 string value; | 46 string value; |
45 }; | 47 }; |
46 | 48 |
47 struct PaymentResponse { | 49 struct PaymentResponse { |
48 string method_name; | 50 string method_name; |
49 | 51 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
132 interface PaymentRequest { | 134 interface PaymentRequest { |
133 Init(PaymentRequestClient client, | 135 Init(PaymentRequestClient client, |
134 array<PaymentMethodData> methodData, | 136 array<PaymentMethodData> methodData, |
135 PaymentDetails details, | 137 PaymentDetails details, |
136 PaymentOptions options); | 138 PaymentOptions options); |
137 Show(); | 139 Show(); |
138 UpdateWith(PaymentDetails details); | 140 UpdateWith(PaymentDetails details); |
139 Abort(); | 141 Abort(); |
140 Complete(PaymentComplete result); | 142 Complete(PaymentComplete result); |
141 }; | 143 }; |
OLD | NEW |