Struct xpcom::interfaces::nsIPaymentActionResponse [] [src]

#[repr(C)]
pub struct nsIPaymentActionResponse { /* fields omitted */ }

interface nsIPaymentActionResponse : nsISupports

/**
 *  The base interface of user's response.
 *  Payment UI should create different sub-interface of nsIPaymentActionResponse
 *  according to user's action, and call nsIPaymentRequestService::respondPayment
 *  with the created action to inform the merchant.
 */

Methods

impl nsIPaymentActionResponse
[src]

[src]

Cast this nsIPaymentActionResponse to one of its base interfaces.

impl nsIPaymentActionResponse
[src]

NO_TYPE: i64 = 0
/**
   *  The response type.
   *  Align type to nsIPaymentActionRequest types,
   *  where 1 is for payment request creation.
   *  the action expects no response from UI module.
   */

CANMAKE_ACTION: i64 = 2

SHOW_ACTION: i64 = 3

ABORT_ACTION: i64 = 4

COMPLETE_ACTION: i64 = 5

ABORT_SUCCEEDED: i64 = 1
/**
   *  The abort status.
   */

ABORT_FAILED: i64 = 0

PAYMENT_REJECTED: i64 = 0
/**
   *  The payment status.
   */

PAYMENT_ACCEPTED: i64 = 1

PAYMENT_NOTSUPPORTED: i64 = 2

COMPLETE_SUCCEEDED: i64 = 1
/**
   *  The complete status.
   */

COMPLETE_FAILED: i64 = 0

[src]

readonly attribute AString requestId;

[src]

readonly attribute uint32_t type;

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPaymentActionResponse
[src]

IID: nsIID = nsID(2785525909, 61280, 19099, [163, 208, 5, 6, 198, 7, 40, 179])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIPaymentActionResponse
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPaymentActionResponse
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.