Interface nsIBasicCardChangeDetailsType

The basic card change details. Since PaymentAddress is an no constructor interface type, UI code can not easy create PaymentAddress by calling new PaymentAddress(). Unfortunately, BasicCardResponse has a PaymentAddress attribute, billingAddress , it means UI can not create BsaicCardChangeDetails by calling the init() with a given JSObject directly, because PaymentAddress creation in JS code is hard. To let UI code can create BasicCardResponse easier, nsIBasicCardResponse is provided for UI by passing the raw data of BasicCardResponse,

Hierarchy

Properties

billingAddress: nsIPaymentAddress

The billing address.

type: uint32_t

The method change details data type. Using the above defined consts(GENERAL_DETAILS or BASICCARD_DETAILS).

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • The initial method.

    Parameters

    • aType: uint32_t

      the method change details data type.

    Returns void

  • The initial method for nsIBasicCardChangeDetails.

    Parameters

    • billingAddress: nsIPaymentAddress

    Returns void

Generated using TypeDoc