Struct xpcom::interfaces::nsIPaymentShowActionResponse [] [src]

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

interface nsIPaymentShowActionResponse : nsIPaymentActionResponse

/**
 *  The response for show action.
 *  Notice that to represent user's cancel, we should use nsIPaymentShowActionResponse
 *  with PAYMENT_REJECTED status, not nsIPaymentAbortActionResponse.
 */

Methods

impl nsIPaymentShowActionResponse
[src]

[src]

Cast this nsIPaymentShowActionResponse to one of its base interfaces.

impl nsIPaymentShowActionResponse
[src]

[src]

/**
   *  Accept status of the payment.
   *  Using the defined consts(PAYMENT_XXX) in nsIPaymentActionResponse.
   */

readonly attribute uint32_t acceptStatus;

[src]

/**
   *  The decided payment method name. i.e. "basic-card".
   */

readonly attribute AString methodName;

[src]

/**
   *  The data needed by the payment method. (it must be serializable)
   */

readonly attribute AString data;

[src]

/**
   *  The payer name information.
   */

readonly attribute AString payerName;

[src]

/**
   *  The payer email information.
   */

readonly attribute AString payerEmail;

[src]

/**
   *  The payer phone information.
   */

readonly attribute AString payerPhone;

[src]

/**
   *  The initial method.
   *  @param aRequestId - the request identifier of the payment request.
   *  @param aAcceptStatus - the payment status.
   *  @param aMethodName - the decided method name.
   *  @param aData - the response data for the decided payment method.
   *  @param aPayerName - the payer's name.
   *  @param aPayerEmail - the payer's email.
   *  @param aPayerPhone - the payer's phone.
   */

void init (in AString aRequestId, in uint32_t aAcceptStatus, in AString aMethodName, in nsIPaymentResponseData aData, in AString aPayerName, in AString aPayerEmail, in AString aPayerPhone);

Methods from Deref<Target = nsIPaymentActionResponse>

[src]

Cast this nsIPaymentActionResponse to one of its base interfaces.

[src]

readonly attribute AString requestId;

[src]

readonly attribute uint32_t type;

Trait Implementations

impl XpCom for nsIPaymentShowActionResponse
[src]

IID: nsIID = nsID(407078347, 11573, 19353, [169, 163, 124, 120, 11, 246, 107, 155])

[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 nsIPaymentShowActionResponse
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPaymentShowActionResponse
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.