Struct xpcom::interfaces::nsIBasicCardResponseData [] [src]

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

interface nsIBasicCardResponseData : nsIPaymentResponseData

/**
 *  The basic card response data.
 *  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 BsaicCardResponse 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,
 */

Methods

impl nsIBasicCardResponseData
[src]

[src]

Cast this nsIBasicCardResponseData to one of its base interfaces.

impl nsIBasicCardResponseData
[src]

[src]

/**
   *  The stringified response data.
   */

readonly attribute AString data;

[src]

/**
   *  The initial method for nsIBasicCardResponseData.
   *  @param aCardholderName   - the cardholder name.
   *  @param aCardNumber       - the card number.
   *  @param aExpiryMonth      - the expiry month.
   *  @param aExpiryYear       - the expiry year.
   *  @param aCardSecurityCode - the card security code.
   *  @param aBillingAddreess  - the billing address.
   */

void initData (in AString aCardholderName, in AString aCardNumber, in AString aExpiryMonth, in AString aExpiryYear, in AString aCardSecurityCode, in nsIPaymentAddress billingAddress);

Methods from Deref<Target = nsIPaymentResponseData>

[src]

Cast this nsIPaymentResponseData to one of its base interfaces.

[src]

/**
   *  The response data type.
   *  Using the above defined consts(GENERAL_RESPONSE or BASICCARD_RESPONSE).
   */

readonly attribute uint32_t type;

[src]

/**
   *  The initial method.
   *  @param aType - the response data type.
   */

void init (in uint32_t aType);

Trait Implementations

impl XpCom for nsIBasicCardResponseData
[src]

IID: nsIID = nsID(223716838, 53637, 17648, [185, 146, 168, 225, 50, 30, 75, 206])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIBasicCardResponseData
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.