2012-08-30 01:41:34 +04: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/. */
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const {classes: Cc, interfaces: Ci, utils: Cu} = Components;
|
|
|
|
|
|
|
|
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
|
|
|
|
|
|
|
const PAYMENTREQUESTINFO_CID =
|
|
|
|
Components.ID("{0a58c67d-f003-48da-81d1-bd8f605f4b1c}");
|
|
|
|
|
|
|
|
// nsIDOMPaymentRequestInfo
|
|
|
|
|
|
|
|
function PaymentRequestInfo() {
|
2012-11-08 04:02:10 +04:00
|
|
|
this.wrappedJSObject = this;
|
2012-08-30 01:41:34 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
PaymentRequestInfo.prototype = {
|
|
|
|
QueryInterface: XPCOMUtils.generateQI([Ci.nsIDOMPaymentRequestInfo]),
|
|
|
|
classID: PAYMENTREQUESTINFO_CID,
|
|
|
|
classInfo: XPCOMUtils.generateCI({
|
|
|
|
classID: PAYMENTREQUESTINFO_CID,
|
|
|
|
contractID: "@mozilla.org/payment/request-info;1",
|
|
|
|
classDescription: "Payment request information",
|
|
|
|
flags: Ci.nsIClassInfo.DOM_OBJECT,
|
|
|
|
interfaces: [Ci.nsIDOMPaymentRequestInfo]
|
|
|
|
}),
|
|
|
|
jwt: null,
|
|
|
|
type: null,
|
|
|
|
providerName: null,
|
|
|
|
|
2012-11-08 04:02:10 +04:00
|
|
|
init: function init(aJwt, aType, aProviderName) {
|
2012-08-30 01:41:34 +04:00
|
|
|
this.jwt = aJwt;
|
|
|
|
this.type = aType;
|
|
|
|
this.providerName = aProviderName;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2012-11-08 04:02:10 +04:00
|
|
|
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([PaymentRequestInfo]);
|