Home > @infiniteobjects/models > TokenGatedProductCampaignModel
Token Gated Product Campaign Model
Signature:
export declare class TokenGatedProductCampaignModel extends BaseFirebaseEntity implements ITokenGatedProductCampaign, ITokenGatedProductCampaignSchema
Extends: BaseFirebaseEntity
Implements: ITokenGatedProductCampaign, ITokenGatedProductCampaignSchema
Property | Modifiers | Type | Description |
---|---|---|---|
active | boolean | Is the campaign active? | |
baseVideoPrint | VideoPrintBase | Video Print Settings | |
dateCreated | Date | The date the entity was created. | |
dateUpdated | Date | The date the entity was Updated. | |
id | string | Unique identifier | |
manifoldId | string | ID of the campaign on manifold | |
productId | string | Shopify product ID | |
redirectUrlSource | TokenGatedProductRedirectUrlSource | Video Print Redirect URL Source | |
schemaVersion | TokenGatedProductCampaignSchemaVersion | Schema Version | |
videoPrintRedirectUrl | Nullable<string> | Video Print redirect URL | |
videoPrintSource | TokenGatedProductVideoPrintSource | Video Print Source | |
videoPrintSourceBucketUrl | Nullable<string> | Video Print Source Bucket | |
videoPrintSourceUrl | Nullable<string> | Video Print Source URL |
Method | Modifiers | Description |
---|---|---|
beforeInsert() | Runs before inserting into the database | |
beforeRemove() | Called before removing the document | |
beforeUpdate() | Called before updating the document | |
getProduct(metafields) | Gets the shopify product | |
getSalesRecords() | Finds all the sale recods for this Campaign | |
toEmbedded() | Serializes this class as an simplified object | |
toModel() | Serializes this class back to the model | |
toSchema() | Serializes this class to the Schema type |