Package host.anzo.eossdk.eos.sdk.ecom
Class EOS_Ecom_CatalogOffer
java.lang.Object
com.sun.jna.Structure
host.anzo.eossdk.eos.sdk.ecom.EOS_Ecom_CatalogOffer
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
EOS_Ecom_CatalogOffer.ByReference,EOS_Ecom_CatalogOffer.ByValue
@FieldOrder({"ApiVersion","ServerIndex","CatalogNamespace","Id","TitleText","DescriptionText","LongDescriptionText","TechnicalDetailsText_DEPRECATED","CurrencyCode","PriceResult","OriginalPrice_DEPRECATED","CurrentPrice_DEPRECATED","DiscountPercentage","ExpirationTimestamp","PurchasedCount_DEPRECATED","PurchaseLimit","IsAvailableForPurchase","OriginalPrice64","CurrentPrice64","DecimalPoint","ReleaseDateTimestamp","EffectiveDateTimestamp"})
public class EOS_Ecom_CatalogOffer
extends com.sun.jna.Structure
implements AutoCloseable
Contains information about a single offer within the catalog. Instances of this structure are
created by EOS_Ecom_CopyOfferByIndex. They must be passed to EOS_Ecom_CatalogOffer_Release.
Prices are stored in the lowest denomination for the associated currency. If CurrencyCode is
"USD" then a price of 299 represents "$2.99".
- Since:
- 8/20/2023
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.FieldOrder, com.sun.jna.Structure.StructField -
Field Summary
FieldsModifier and TypeFieldDescriptionintAPI Version: Set this to EOS_ECOM_CATALOGOFFER_API_LATEST.Product namespace in which this offer existsThe Currency Code for this offerintThe current price including discounts of this offer as a 32-bit number is deprecated..longThe current price including discounts of this offer as a 64-bit number.intThe decimal point for the provided price.Localized UTF-8 description of this offerbyteA value from 0 to 100 define the percentage of the OrignalPrice that the CurrentPrice representslongTimestamp indicating the effective date of the offer.static final intThe most recent version of the EOS_Ecom_CatalogOffer struct.static final intTimestamp value representing an undefined EffectiveDateTimestamp for EOS_Ecom_CatalogOfferstatic final intTimestamp value representing an undefined ExpirationTimestamp for EOS_Ecom_CatalogOfferstatic final intTimestamp value representing an undefined ReleaseDateTimestamp for EOS_Ecom_CatalogOfferlongContains the POSIX timestamp that the offer expires or -1 if it does not expireThe ID of this offerTrue if the user can purchase this offer.Localized UTF-8 long description of this offerintThe original price of this offer as a 32-bit number is deprecated.longThe original price of this offer as a 64-bit number.If this value is EOS_Success then OriginalPrice, CurrentPrice, and DiscountPercentage contain valid data.intThe number of times that the requesting account has purchased this offer.intThe maximum number of times that the offer can be purchased.longTimestamp indicating when the time when the offer was released.intThe index of this offer as it exists on the server.Deprecated.Localized UTF-8 title of this offerFields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoAllocate, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, calculateSize, clear, createFieldsOrder, createFieldsOrder, createFieldsOrder, createFieldsOrder, dataEquals, dataEquals, ensureAllocated, equals, fieldOffset, getAutoRead, getAutoWrite, getFieldList, getFieldOrder, getFields, getNativeAlignment, getNativeSize, getNativeSize, getPointer, getStringEncoding, getStructAlignment, hashCode, newInstance, newInstance, read, readField, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setStringEncoding, size, sortFields, toArray, toArray, toString, toString, useMemory, useMemory, write, writeField, writeField, writeField
-
Field Details
-
EOS_ECOM_CATALOGOFFER_API_LATEST
public static final int EOS_ECOM_CATALOGOFFER_API_LATESTThe most recent version of the EOS_Ecom_CatalogOffer struct.- See Also:
-
EOS_ECOM_CATALOGOFFER_EXPIRATIONTIMESTAMP_UNDEFINED
public static final int EOS_ECOM_CATALOGOFFER_EXPIRATIONTIMESTAMP_UNDEFINEDTimestamp value representing an undefined ExpirationTimestamp for EOS_Ecom_CatalogOffer- See Also:
-
EOS_ECOM_CATALOGOFFER_RELEASEDATETIMESTAMP_UNDEFINED
public static final int EOS_ECOM_CATALOGOFFER_RELEASEDATETIMESTAMP_UNDEFINEDTimestamp value representing an undefined ReleaseDateTimestamp for EOS_Ecom_CatalogOffer- See Also:
-
EOS_ECOM_CATALOGOFFER_EFFECTIVEDATETIMESTAMP_UNDEFINED
public static final int EOS_ECOM_CATALOGOFFER_EFFECTIVEDATETIMESTAMP_UNDEFINEDTimestamp value representing an undefined EffectiveDateTimestamp for EOS_Ecom_CatalogOffer- See Also:
-
ApiVersion
public int ApiVersionAPI Version: Set this to EOS_ECOM_CATALOGOFFER_API_LATEST. -
ServerIndex
public int ServerIndexThe index of this offer as it exists on the server. This is useful for understanding pagination data. -
CatalogNamespace
Product namespace in which this offer exists -
Id
The ID of this offer -
TitleText
Localized UTF-8 title of this offer -
DescriptionText
Localized UTF-8 description of this offer -
LongDescriptionText
Localized UTF-8 long description of this offer -
TechnicalDetailsText_DEPRECATED
Deprecated. EOS_Ecom_CatalogItem::TechnicalDetailsText is still valid. -
CurrencyCode
The Currency Code for this offer -
PriceResult
If this value is EOS_Success then OriginalPrice, CurrentPrice, and DiscountPercentage contain valid data. Otherwise this value represents the error that occurred on the price query. -
OriginalPrice_DEPRECATED
public int OriginalPrice_DEPRECATEDThe original price of this offer as a 32-bit number is deprecated. -
CurrentPrice_DEPRECATED
public int CurrentPrice_DEPRECATEDThe current price including discounts of this offer as a 32-bit number is deprecated.. -
DiscountPercentage
public byte DiscountPercentageA value from 0 to 100 define the percentage of the OrignalPrice that the CurrentPrice represents -
ExpirationTimestamp
public long ExpirationTimestampContains the POSIX timestamp that the offer expires or -1 if it does not expire -
PurchasedCount_DEPRECATED
public int PurchasedCount_DEPRECATEDThe number of times that the requesting account has purchased this offer. This value is deprecated and the backend no longer returns this value. -
PurchaseLimit
public int PurchaseLimitThe maximum number of times that the offer can be purchased. A negative value implies there is no limit. -
IsAvailableForPurchase
True if the user can purchase this offer. -
OriginalPrice64
public long OriginalPrice64The original price of this offer as a 64-bit number. -
CurrentPrice64
public long CurrentPrice64The current price including discounts of this offer as a 64-bit number. -
DecimalPoint
public int DecimalPointThe decimal point for the provided price. For example, DecimalPoint '2' and CurrentPrice64 '12345' would be '123.45'. -
ReleaseDateTimestamp
public long ReleaseDateTimestampTimestamp indicating when the time when the offer was released. Can be ignored if set to -1. -
EffectiveDateTimestamp
public long EffectiveDateTimestampTimestamp indicating the effective date of the offer. Can be ignored if set to -1.
-
-
Constructor Details
-
EOS_Ecom_CatalogOffer
public EOS_Ecom_CatalogOffer() -
EOS_Ecom_CatalogOffer
public EOS_Ecom_CatalogOffer(com.sun.jna.Pointer peer)
-
-
Method Details
-
release
public void release() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-