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]
pub fn coerce<T: nsIPaymentShowActionResponseCoerce>(&self) -> &T
[src]
Cast this nsIPaymentShowActionResponse
to one of its base interfaces.
impl nsIPaymentShowActionResponse
[src]
pub unsafe fn GetAcceptStatus(&self, aAcceptStatus: *mut uint32_t) -> nsresult
[src]
/**
* Accept status of the payment.
* Using the defined consts(PAYMENT_XXX) in nsIPaymentActionResponse.
*/
readonly attribute uint32_t acceptStatus;
pub unsafe fn GetMethodName(&self, aMethodName: &mut nsAString) -> nsresult
[src]
/**
* The decided payment method name. i.e. "basic-card".
*/
readonly attribute AString methodName;
pub unsafe fn GetData(&self, aData: &mut nsAString) -> nsresult
[src]
/**
* The data needed by the payment method. (it must be serializable)
*/
readonly attribute AString data;
pub unsafe fn GetPayerName(&self, aPayerName: &mut nsAString) -> nsresult
[src]
/**
* The payer name information.
*/
readonly attribute AString payerName;
pub unsafe fn GetPayerEmail(&self, aPayerEmail: &mut nsAString) -> nsresult
[src]
/**
* The payer email information.
*/
readonly attribute AString payerEmail;
pub unsafe fn GetPayerPhone(&self, aPayerPhone: &mut nsAString) -> nsresult
[src]
/**
* The payer phone information.
*/
readonly attribute AString payerPhone;
pub unsafe fn Init(
&self,
aRequestId: &nsAString,
aAcceptStatus: uint32_t,
aMethodName: &nsAString,
aData: *const nsIPaymentResponseData,
aPayerName: &nsAString,
aPayerEmail: &nsAString,
aPayerPhone: &nsAString
) -> nsresult
[src]
&self,
aRequestId: &nsAString,
aAcceptStatus: uint32_t,
aMethodName: &nsAString,
aData: *const nsIPaymentResponseData,
aPayerName: &nsAString,
aPayerEmail: &nsAString,
aPayerPhone: &nsAString
) -> nsresult
/**
* 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>
pub fn coerce<T: nsIPaymentActionResponseCoerce>(&self) -> &T
[src]
Cast this nsIPaymentActionResponse
to one of its base interfaces.
pub const NO_TYPE: i64
pub const CANMAKE_ACTION: i64
pub const SHOW_ACTION: i64
pub const ABORT_ACTION: i64
pub const COMPLETE_ACTION: i64
pub const ABORT_SUCCEEDED: i64
pub const ABORT_FAILED: i64
pub const PAYMENT_REJECTED: i64
pub const PAYMENT_ACCEPTED: i64
pub const PAYMENT_NOTSUPPORTED: i64
pub const COMPLETE_SUCCEEDED: i64
pub const COMPLETE_FAILED: i64
pub unsafe fn GetRequestId(&self, aRequestId: &mut nsAString) -> nsresult
[src]
readonly attribute AString requestId;
pub unsafe fn GetType(&self, aType: *mut uint32_t) -> nsresult
[src]
readonly attribute uint32_t type;
Trait Implementations
impl XpCom for nsIPaymentShowActionResponse
[src]
const IID: nsIID
IID: nsIID = nsID(407078347, 11573, 19353, [169, 163, 124, 120, 11, 246, 107, 155])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIPaymentShowActionResponse
[src]
type Target = nsIPaymentActionResponse
The resulting type after dereferencing.
fn deref(&self) -> &nsIPaymentActionResponse
[src]
Dereferences the value.