| 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 25 matching lines...) Expand all Loading... |
| 36 // requires the amount. | 36 // requires the amount. |
| 37 struct PaymentCurrencyAmount { | 37 struct PaymentCurrencyAmount { |
| 38 // The most common identifiers are three-letter alphabetic codes as defined | 38 // The most common identifiers are three-letter alphabetic codes as defined |
| 39 // 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 |
| 40 // most 2048 characters is considered valid. | 40 // most 2048 characters is considered valid. |
| 41 string currency; | 41 string currency; |
| 42 | 42 |
| 43 // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction | 43 // ISO 20022 CurrencyAnd30Amount. Up to 30 total digits. Up to 10 fraction |
| 44 // digits. Separated by a dot. | 44 // digits. Separated by a dot. |
| 45 string value; | 45 string value; |
| 46 |
| 47 // currencySystem is a URL that indicates the currency system that the |
| 48 // currency identifier belongs to. By default, the value is |
| 49 // urn:iso:std:iso:4217 indicating that currency is defined by [ISO4217] |
| 50 // (for example, USD for US Dollars). |
| 51 string? currencySystem; |
| 46 }; | 52 }; |
| 47 | 53 |
| 48 struct PaymentResponse { | 54 struct PaymentResponse { |
| 49 string method_name; | 55 string method_name; |
| 50 | 56 |
| 51 // Payment method specific JSON string that is built either by the browser or | 57 // Payment method specific JSON string that is built either by the browser or |
| 52 // a payment app, for example Android Pay. Browser ensures that the string can | 58 // a payment app, for example Android Pay. Browser ensures that the string can |
| 53 // be successfully parsed into base::JSONParser. Renderer parses this string | 59 // be successfully parsed into base::JSONParser. Renderer parses this string |
| 54 // via v8::JSON::Parse() and hands off the result to the merchant website. | 60 // via v8::JSON::Parse() and hands off the result to the merchant website. |
| 55 // There's no one format for this object, so richer types cannot be used. A | 61 // There's no one format for this object, so richer types cannot be used. A |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 interface PaymentRequest { | 150 interface PaymentRequest { |
| 145 Init(PaymentRequestClient client, | 151 Init(PaymentRequestClient client, |
| 146 array<PaymentMethodData> methodData, | 152 array<PaymentMethodData> methodData, |
| 147 PaymentDetails details, | 153 PaymentDetails details, |
| 148 PaymentOptions options); | 154 PaymentOptions options); |
| 149 Show(); | 155 Show(); |
| 150 UpdateWith(PaymentDetails details); | 156 UpdateWith(PaymentDetails details); |
| 151 Abort(); | 157 Abort(); |
| 152 Complete(PaymentComplete result); | 158 Complete(PaymentComplete result); |
| 153 }; | 159 }; |
| OLD | NEW |