Bumping gaia.json for 2 gaia revision(s) a=gaia-bump
[gecko.git] / dom / webidl / MozPaymentProvider.webidl
blob30137c3b2474d5dd9e1751490b365ad30dbbf46c
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
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
7 callback SilentSmsCallback = void (optional MozSmsMessage message);
9 dictionary PaymentIccInfo {
10   DOMString mcc;
11   DOMString mnc;
12   DOMString iccId;
13   boolean dataPrimary;
16 [NavigatorProperty="mozPaymentProvider",
17  NoInterfaceObject,
18  HeaderFile="mozilla/dom/PaymentProviderUtils.h",
19  Func="mozilla::dom::PaymentProviderUtils::EnabledForScope",
20  JSImplementation="@mozilla.org/payment/provider;1"]
21 interface PaymentProvider {
22   readonly attribute DOMString? paymentServiceId;
23   // We expose to the payment provider the information of all the SIMs
24   // available in the device.
25   [Cached, Pure] readonly attribute sequence<PaymentIccInfo>? iccInfo;
27   void paymentSuccess(optional DOMString result);
28   void paymentFailed(optional DOMString error);
30   DOMRequest sendSilentSms(DOMString number, DOMString message);
31   void observeSilentSms(DOMString number, SilentSmsCallback callback);
32   void removeSilentSmsObserver(DOMString number, SilentSmsCallback callback);