Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: third_party/WebKit/public/platform/modules/payments/payment_request.mojom

Issue 2271113002: Accept any string for currency code in PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allow null as per spec Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 of at
41 // most 2048 characters is considered valid.
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
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 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/payments/PaymentsValidatorsTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698