Packagecom.distriqt.extension.flurry
Classpublic class PaymentData
InheritancePaymentData Inheritance Object

Represents data to track a payment

See also

FlurryAnalytics.logPayment()


Public Properties
 PropertyDefined By
  currency : String
PaymentData
  price : Number = 0
PaymentData
  productId : String
PaymentData
  productName : String
PaymentData
  quantity : int = 1
PaymentData
  transactionId : String
PaymentData
Public Methods
 MethodDefined By
  
PaymentData(productName:String, productId:String, quantity:int = 1, price:Number = 0, currency:String, transactionId:String)
PaymentData
  
setCurrency(currency:String):PaymentData
Set the currency for the price argument
PaymentData
  
setPrice(price:Number):PaymentData
Set the price of the the products purchased in the given currency
PaymentData
  
setProductId(productId:String):PaymentData
Set the id of the product purchased.
PaymentData
  
setProductName(productName:String):PaymentData
Set the name of the product purchased
PaymentData
  
setQuantity(quantity:int):PaymentData
Set the number of products purchased.
PaymentData
  
setTransactionId(transactionId:String):PaymentData
Set the unique identifier for the transaction used to make the purchase
PaymentData
  
toObject():Object
PaymentData
Property Detail
currencyproperty
public var currency:String

See also

priceproperty 
public var price:Number = 0

See also

productIdproperty 
public var productId:String

See also

productNameproperty 
public var productName:String

See also

quantityproperty 
public var quantity:int = 1

See also

transactionIdproperty 
public var transactionId:String

See also

Constructor Detail
PaymentData()Constructor
public function PaymentData(productName:String, productId:String, quantity:int = 1, price:Number = 0, currency:String, transactionId:String)



Parameters
productName:String
 
productId:String
 
quantity:int (default = 1)
 
price:Number (default = 0)
 
currency:String
 
transactionId:String
Method Detail
setCurrency()method
public function setCurrency(currency:String):PaymentData

Set the currency for the price argument

Parameters

currency:String — The currency for the price argument

Returns
PaymentData — The PaymentData instance for chaining calls
setPrice()method 
public function setPrice(price:Number):PaymentData

Set the price of the the products purchased in the given currency

Parameters

price:Number — The price of the the products purchased in the given currency

Returns
PaymentData — The PaymentData instance for chaining calls
setProductId()method 
public function setProductId(productId:String):PaymentData

Set the id of the product purchased.

Parameters

productId:String — The id of the product purchased.

Returns
PaymentData — The PaymentData instance for chaining calls
setProductName()method 
public function setProductName(productName:String):PaymentData

Set the name of the product purchased

Parameters

productName:String — The name of the product purchased

Returns
PaymentData — The PaymentData instance for chaining calls
setQuantity()method 
public function setQuantity(quantity:int):PaymentData

Set the number of products purchased.

Parameters

quantity:int — The number of products purchased.

Returns
PaymentData — The PaymentData instance for chaining calls
setTransactionId()method 
public function setTransactionId(transactionId:String):PaymentData

Set the unique identifier for the transaction used to make the purchase

Parameters

transactionId:String — A unique identifier for the transaction used to make the purchase

Returns
PaymentData — The PaymentData instance for chaining calls
toObject()method 
public function toObject():Object

Returns
Object