trait Acquisition extends ThriftStruct with Product19[Product, PaymentFrequency, String, Double, Option[PaymentProvider], Option[Set[String]], Option[AbTestInfo], Option[String], Option[String], Option[String], Option[String], Option[ComponentType], Option[AcquisitionSource], Option[PrintOptions], Option[Platform], Option[Short], Option[Double], Option[String], Option[Set[String]]] with HasThriftStructCodec3[Acquisition] with Serializable
Prefer the companion object's ophan.thrift.event.Acquisition.apply for construction if you don't need to specify passthrough fields.
- Alphabetic
- By Inheritance
- Acquisition
- Serializable
- HasThriftStructCodec3
- Product19
- Product
- Equals
- ThriftStruct
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
abTests: Option[AbTestInfo]
The ab tests the user was in on dotcom
-
abstract
def
amount: Double
Contributed amount in units of the currency received
-
abstract
def
campaignCode: Option[Set[String]]
The campaign code of the campaign that the user came from
-
abstract
def
componentId: Option[String]
An ID that can be used to distinguish different instances of a given component type
-
abstract
def
componentTypeV2: Option[ComponentType]
The type of component that the acquisition came from
-
abstract
def
countryCode: Option[String]
ISO-3166-aplha-2 country code representing where the user is from.
ISO-3166-aplha-2 country code representing where the user is from. It is either the country of the card used, or the country of the contributor s address
-
abstract
def
currency: String
Currency code (ISO 4217 3-character, upper-case, eg USD, GBP)
-
abstract
def
discountLengthInMonths: Option[Short]
Length of the discount in months
-
abstract
def
discountPercentage: Option[Double]
Amount of discount, as a percentage
-
abstract
def
labels: Option[Set[String]]
Any additional labels.
Any additional labels. In particular, extra information that is needed to calculate Annualised Value for this Acquisition (e.g. promotions like Guardian Weekly Six For Six) can go here.
-
abstract
def
paymentFrequency: PaymentFrequency
If the payment is a one off or reccuring
-
abstract
def
paymentProvider: Option[PaymentProvider]
The payment provider the user paid with
-
abstract
def
platform: Option[Platform]
Platform on which the acquisition occurred e.g.
Platform on which the acquisition occurred e.g. Contributions, S&C
-
abstract
def
printOptions: Option[PrintOptions]
Extra parameters only applicable to print products
-
abstract
def
product: Product
Product type
-
abstract
def
promoCode: Option[String]
Promo code for the acquisition.
Promo code for the acquisition. Only applicable to subscriptions.
-
abstract
def
referrerPageViewId: Option[String]
Page view id of the page the reader was on that lead them through to the contribution page e.g.
Page view id of the page the reader was on that lead them through to the contribution page e.g. by clicking on the Contribute Now button in the Epic component
-
abstract
def
referrerUrl: Option[String]
Url of the page the reader was on that lead them through to the contribution page e.g.
Url of the page the reader was on that lead them through to the contribution page e.g. by clicking on the Contribute Now button in the Epic component
-
abstract
def
source: Option[AcquisitionSource]
The source of the acquisition
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
_1: Product
- Definition Classes
- Acquisition → Product19
-
def
_10: Option[String]
- Definition Classes
- Acquisition → Product19
-
def
_11: Option[String]
- Definition Classes
- Acquisition → Product19
-
def
_12: Option[ComponentType]
- Definition Classes
- Acquisition → Product19
-
def
_13: Option[AcquisitionSource]
- Definition Classes
- Acquisition → Product19
-
def
_14: Option[PrintOptions]
- Definition Classes
- Acquisition → Product19
-
def
_15: Option[Platform]
- Definition Classes
- Acquisition → Product19
-
def
_16: Option[Short]
- Definition Classes
- Acquisition → Product19
-
def
_17: Option[Double]
- Definition Classes
- Acquisition → Product19
-
def
_18: Option[String]
- Definition Classes
- Acquisition → Product19
-
def
_19: Option[Set[String]]
- Definition Classes
- Acquisition → Product19
-
def
_2: PaymentFrequency
- Definition Classes
- Acquisition → Product19
-
def
_3: String
- Definition Classes
- Acquisition → Product19
-
def
_4: Double
- Definition Classes
- Acquisition → Product19
-
def
_5: Option[PaymentProvider]
- Definition Classes
- Acquisition → Product19
-
def
_6: Option[Set[String]]
- Definition Classes
- Acquisition → Product19
-
def
_7: Option[AbTestInfo]
- Definition Classes
- Acquisition → Product19
-
def
_8: Option[String]
- Definition Classes
- Acquisition → Product19
-
def
_9: Option[String]
- Definition Classes
- Acquisition → Product19
-
def
_codec: ThriftStructCodec3[Acquisition]
- Definition Classes
- Acquisition → HasThriftStructCodec3
- def _passthroughFields: Map[Short, TFieldBlob]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(other: Any): Boolean
- Definition Classes
- Acquisition → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def copy(product: Product = this.product, paymentFrequency: PaymentFrequency = this.paymentFrequency, currency: String = this.currency, amount: Double = this.amount, paymentProvider: Option[PaymentProvider] = this.paymentProvider, campaignCode: Option[Set[String]] = this.campaignCode, abTests: Option[AbTestInfo] = this.abTests, countryCode: Option[String] = this.countryCode, referrerPageViewId: Option[String] = this.referrerPageViewId, referrerUrl: Option[String] = this.referrerUrl, componentId: Option[String] = this.componentId, componentTypeV2: Option[ComponentType] = this.componentTypeV2, source: Option[AcquisitionSource] = this.source, printOptions: Option[PrintOptions] = this.printOptions, platform: Option[Platform] = this.platform, discountLengthInMonths: Option[Short] = this.discountLengthInMonths, discountPercentage: Option[Double] = this.discountPercentage, promoCode: Option[String] = this.promoCode, labels: Option[Set[String]] = this.labels, _passthroughFields: Map[Short, TFieldBlob] = this._passthroughFields): Acquisition
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- Acquisition → Equals → AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getFieldBlob(_fieldId: Short): Option[TFieldBlob]
Gets a field value encoded as a binary blob using TCompactProtocol.
Gets a field value encoded as a binary blob using TCompactProtocol. If the specified field is present in the passthrough map, that value is returned. Otherwise, if the specified field is known and not optional and set to None, then the field is serialized and returned.
-
def
getFieldBlobs(ids: TraversableOnce[Short]): Map[Short, TFieldBlob]
Collects TCompactProtocol-encoded field values according to
getFieldBlob
into a map. -
def
hashCode(): Int
- Definition Classes
- Acquisition → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
productArity: Int
- Definition Classes
- Acquisition → Product19 → Product
-
def
productElement(n: Int): Any
- Definition Classes
- Acquisition → Product19 → Product
-
def
productIterator: Iterator[Any]
- Definition Classes
- Product
-
def
productPrefix: String
- Definition Classes
- Acquisition → Product
-
def
setField(_blob: TFieldBlob): Acquisition
Sets a field using a TCompactProtocol-encoded binary blob.
Sets a field using a TCompactProtocol-encoded binary blob. If the field is a known field, the blob is decoded and the field is set to the decoded value. If the field is unknown and passthrough fields are enabled, then the blob will be stored in _passthroughFields.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Acquisition → AnyRef → Any
- def toTuple: (Product, PaymentFrequency, String, Double, Option[PaymentProvider], Option[Set[String]], Option[AbTestInfo], Option[String], Option[String], Option[String], Option[String], Option[ComponentType], Option[AcquisitionSource], Option[PrintOptions], Option[Platform], Option[Short], Option[Double], Option[String], Option[Set[String]])
- def unsetAbTests: Acquisition
- def unsetAmount: Acquisition
- def unsetCampaignCode: Acquisition
- def unsetComponentId: Acquisition
- def unsetComponentTypeV2: Acquisition
- def unsetCountryCode: Acquisition
- def unsetCurrency: Acquisition
- def unsetDiscountLengthInMonths: Acquisition
- def unsetDiscountPercentage: Acquisition
-
def
unsetField(_fieldId: Short): Acquisition
If the specified field is optional, it is set to None.
If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.
- def unsetLabels: Acquisition
- def unsetPaymentFrequency: Acquisition
- def unsetPaymentProvider: Acquisition
- def unsetPlatform: Acquisition
- def unsetPrintOptions: Acquisition
-
def
unsetProduct: Acquisition
If the specified field is optional, it is set to None.
If the specified field is optional, it is set to None. Otherwise, if the field is known, it is reverted to its default value; if the field is unknown, it is removed from the passthroughFields map, if present.
- def unsetPromoCode: Acquisition
- def unsetReferrerPageViewId: Acquisition
- def unsetReferrerUrl: Acquisition
- def unsetSource: Acquisition
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
write(_oprot: TProtocol): Unit
- Definition Classes
- Acquisition → ThriftStruct