1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this WebIDL file is
7 * https://www.w3.org/TR/payment-method-basic-card/
11 dictionary BasicCardRequest {
12 sequence<DOMString> supportedNetworks = [];
13 boolean requestSecurityCode = true;
16 [GenerateConversionToJS]
17 dictionary BasicCardResponse {
18 DOMString cardholderName = "";
19 required DOMString cardNumber;
20 DOMString expiryMonth = "";
21 DOMString expiryYear = "";
22 DOMString cardSecurityCode = "";
23 PaymentAddress? billingAddress = null;
26 [GenerateConversionToJS]
27 dictionary BasicCardChangeDetails {
28 PaymentAddress? billingAddress = null;
32 dictionary BasicCardErrors {
34 DOMString cardholderName;
35 DOMString cardSecurityCode;
36 DOMString expiryMonth;
38 AddressErrors billingAddress;