Home > @infiniteobjects/models > PrintButtonSaleModel
Print button Sale
Signature:
export declare class PrintButtonSaleModel extends BaseFirebaseEntity implements IPrintButtonSaleSchema, IPrintButtonSale
Extends: BaseFirebaseEntity
Implements: IPrintButtonSaleSchema, IPrintButtonSale
Used to: - keep track of the sales - manage webhooks - enforce one print per sake
| Property | Modifiers | Type | Description |
|---|---|---|---|
| blockchain | Blockchain | Blockchain | |
| blockchainNetwork | BlockchainNetwork | ||
| contractAddress | string | Contract Address | |
| dateCreated | Date | The date the entity was created. | |
| datePurchased | Date | Purchase date | |
| dateUpdated | Date | The date the entity was Updated. | |
| hooks | PrintButtonSaleHookState | ||
| id | string | Unique Identifier | |
| orderStatus | PrintButtonWebhookEvent | The status of the order | |
| partnerId | string | Print button partner id | |
| printId | string | Video PrintId Associated with this sale | |
| schemaVersion | PrintButtonSaleSchemaVersion | ||
| shopifyLineItemId | number | Shopify line item id | |
| shopifyOrderId | number | Shopify order id | |
| shopifyOrderNumber | number | Shopify order number | |
| shopifyProductId | number | Shopify Product Id | |
| shopifyVariantId | number | Shopify Variant Id | |
| tokenId | string | Token Id | |
| userEmail | Nullable<string> | Email of the user that purchased this print | |
| userWallet | string | Wallet of the user that purchased |
| Method | Modifiers | Description |
|---|---|---|
| isSimilar(sale) | Returns tru if 2 instances are similar | |
| toCallBackPayload() | Transforms a print sale in to a webhook payload | |
| toCsv() | Transforms a print sale in to a CSV row | |
| toEmbedded() | Serializes this class as an simplified object | |
| toModel() | Serializes this class back to the model | |
| toSchema() | Serializes this class to the Schema type |