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

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

Issue 2039863002: PaymentRequest: Sync up PaymentAddress with the payment request spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
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 {
11 // ISO 3166 country code. Two upper case ASCII letters. 11 // ISO 3166 country code. Two upper case ASCII letters.
12 string region_code; 12 string country;
13 13
14 array<string> address_line; 14 array<string> address_line;
15 string administrative_area; 15 string region;
16 string locality; 16 string city;
17 string dependent_locality; 17 string dependent_locality;
18 string postal_code; 18 string postal_code;
19 string sorting_code; 19 string sorting_code;
20 20
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;
please use gerrit instead 2016/06/06 16:01:15 +careOf +phone
zino 2016/06/06 17:23:16 Done.
31 }; 31 };
32 32
33 struct PaymentResponse { 33 struct PaymentResponse {
34 string method_name; 34 string method_name;
35 35
36 // Payment method specific JSON string that is built either by the browser or 36 // Payment method specific JSON string that is built either by the browser or
37 // a payment app, for example Android Pay. Browser ensures that the string can 37 // a payment app, for example Android Pay. Browser ensures that the string can
38 // be successfully parsed into base::JSONParser. Renderer parses this string 38 // be successfully parsed into base::JSONParser. Renderer parses this string
39 // via v8::JSON::Parse() and hands off the result to the merchant website. 39 // via v8::JSON::Parse() and hands off the result to the merchant website.
40 // There's no one format for this object, so richer types cannot be used. A 40 // There's no one format for this object, so richer types cannot be used. A
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // object to the payment app, for example Android Pay. There's no one 100 // 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 101 // format for this object, so richer types cannot be used. A simple
102 // example: 102 // example:
103 // 103 //
104 // {"https://android.com/pay": {"gateway": "stripe"}} 104 // {"https://android.com/pay": {"gateway": "stripe"}}
105 string stringified_data); 105 string stringified_data);
106 UpdateWith(PaymentDetails details); 106 UpdateWith(PaymentDetails details);
107 Abort(); 107 Abort();
108 Complete(bool success); 108 Complete(bool success);
109 }; 109 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698