2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2017-07-26 11:07:07 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this WebIDL file is
|
2019-03-26 02:40:23 +03:00
|
|
|
* https://www.w3.org/TR/payment-method-basic-card/
|
2017-07-26 11:07:07 +03:00
|
|
|
*/
|
|
|
|
|
2019-10-28 23:24:31 +03:00
|
|
|
[GenerateInit]
|
2017-07-26 11:07:07 +03:00
|
|
|
dictionary BasicCardRequest {
|
2019-03-25 12:26:10 +03:00
|
|
|
sequence<DOMString> supportedNetworks = [];
|
2019-04-25 10:47:36 +03:00
|
|
|
boolean requestSecurityCode = true;
|
2017-07-26 11:07:07 +03:00
|
|
|
};
|
|
|
|
|
2019-10-29 02:20:11 +03:00
|
|
|
[GenerateConversionToJS]
|
2017-07-26 11:07:07 +03:00
|
|
|
dictionary BasicCardResponse {
|
2019-03-26 02:40:23 +03:00
|
|
|
DOMString cardholderName = "";
|
2017-07-26 11:07:07 +03:00
|
|
|
required DOMString cardNumber;
|
2019-03-26 02:40:23 +03:00
|
|
|
DOMString expiryMonth = "";
|
|
|
|
DOMString expiryYear = "";
|
|
|
|
DOMString cardSecurityCode = "";
|
|
|
|
PaymentAddress? billingAddress = null;
|
2017-07-26 11:07:07 +03:00
|
|
|
};
|
2018-09-27 11:03:14 +03:00
|
|
|
|
2019-10-29 02:20:11 +03:00
|
|
|
[GenerateConversionToJS]
|
2018-11-27 16:05:00 +03:00
|
|
|
dictionary BasicCardChangeDetails {
|
2019-03-26 02:40:23 +03:00
|
|
|
PaymentAddress? billingAddress = null;
|
2018-11-27 16:05:00 +03:00
|
|
|
};
|
|
|
|
|
2019-10-28 23:24:31 +03:00
|
|
|
[GenerateInit]
|
2018-09-27 11:03:14 +03:00
|
|
|
dictionary BasicCardErrors {
|
|
|
|
DOMString cardNumber;
|
|
|
|
DOMString cardholderName;
|
|
|
|
DOMString cardSecurityCode;
|
|
|
|
DOMString expiryMonth;
|
|
|
|
DOMString expiryYear;
|
|
|
|
AddressErrors billingAddress;
|
|
|
|
};
|