author Kyle Machulis <>
Wed, 05 Sep 2012 20:06:06 -0700
changeset 104409 b5f9c880652ac1acb2b6428994a66fdbe66a29d6
parent 103831 fc63cbb13336802bfc294356d1a5cc067de5de67
child 111663 7035e54f92fc029ecaf168cb480e416e1a488e1e
permissions -rw-r--r--
Bug 756299: Patch 1 - IPC Socket Functions; r=mrbkap

/* 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 */

#include "nsISupports.idl"

[scriptable, uuid(393f54dc-13c1-44e5-ad36-ab410dc3334b)]
interface nsIDOMPaymentProductPrice : nsISupports
  // A product might have a different price depending on the country. Even if
  // the currency is the same.
  readonly attribute DOMString country;

  // Each price has a currency associated.
  readonly attribute DOMString currency;

  // Total amount of the product being sold.
  readonly attribute double amount;

[scriptable, uuid(95b89ed3-074d-4c31-a26d-5f0abed420a2)]
interface nsIDOMPaymentRequestInfo : nsISupports
  // Base64 encoded and digitally signed payment request.
  readonly attribute DOMString jwt;

  // JWT type that identifies the payment provider owner of the payment request
  // format.
  readonly attribute DOMString type;

  // Payment provider name.
  readonly attribute DOMString providerName;

[scriptable, uuid(7a9f78a6-84c6-4f8a-bb3e-3d9ae34727db)]
interface nsIDOMPaymentRequestPaymentInfo : nsIDOMPaymentRequestInfo
  // Name of the product being sold.
  readonly attribute DOMString productName;

  // Human readable description about the product being sold.
  readonly attribute DOMString productDescription;

  // Could be a single nsIDOMPaymentProductPrice or an array of them.
  readonly attribute jsval productPrice;

[scriptable, uuid(9759800a-7766-48c3-a6a6-efbe6ab54054)]
interface nsIDOMPaymentRequestRefundInfo : nsIDOMPaymentRequestInfo
  // If the requests is a refund request, it must contain a refund reason.
  readonly attribute DOMString reason;