| 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 ShippingAddress { | 10 struct ShippingAddress { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 struct CurrencyAmount { | 61 struct CurrencyAmount { |
| 62 // ISO 4217 currency code. Three upper case ASCII letters. | 62 // ISO 4217 currency code. Three upper case ASCII letters. |
| 63 string currency_code; | 63 string currency_code; |
| 64 | 64 |
| 65 // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction | 65 // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction |
| 66 // digits. Separated by a dot. | 66 // digits. Separated by a dot. |
| 67 string value; | 67 string value; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 struct PaymentItem { | 70 struct PaymentItem { |
| 71 string id; | |
| 72 string label; | 71 string label; |
| 73 CurrencyAmount amount; | 72 CurrencyAmount amount; |
| 74 }; | 73 }; |
| 75 | 74 |
| 76 struct ShippingOption { | 75 struct ShippingOption { |
| 77 string id; | 76 string id; |
| 78 string label; | 77 string label; |
| 79 CurrencyAmount amount; | 78 CurrencyAmount amount; |
| 80 }; | 79 }; |
| 81 | 80 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 100 // object to the payment app, for example Android Pay. There's no one | 99 // 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 | 100 // format for this object, so richer types cannot be used. A simple |
| 102 // example: | 101 // example: |
| 103 // | 102 // |
| 104 // {"https://android.com/pay": {"gateway": "stripe"}} | 103 // {"https://android.com/pay": {"gateway": "stripe"}} |
| 105 string stringified_data); | 104 string stringified_data); |
| 106 UpdateWith(PaymentDetails details); | 105 UpdateWith(PaymentDetails details); |
| 107 Abort(); | 106 Abort(); |
| 108 Complete(bool success); | 107 Complete(bool success); |
| 109 }; | 108 }; |
| OLD | NEW |