Home > @infiniteobjects/models > PrintButtonSaleRepository
Print Button Partner Repository
Signature:
export declare class PrintButtonSaleRepository extends Repository<PrintButtonSaleModel, IPrintButtonSaleSchema>
Extends: Repository<PrintButtonSaleModel, IPrintButtonSaleSchema>
Property | Modifiers | Type | Description |
---|---|---|---|
protectedKeys | protected |
(keyof IPrintButtonSaleSchema)[] | We want to not update the hooks via updateInstace |
Method | Modifiers | Description |
---|---|---|
createFromLineItem(lineItem) | Creates or updates a PrintButtonSale record from a lineItem | |
findByContract(contractAddress) | Find sales by contract address | |
findByLineItem(lineItem) | Finds a sale by the provided lineItem | |
findByLineItem(lineItem, reject) | ||
findByPlatformId(partnerId) | Find sales by platform/partner id | |
findByTokenAndContract(partnerId, tokenId, contractAddress) | Find sales of the same partner, token, and contract | |
findSimilarSale(sale) | Finds a sale that is similar than the provided one | |
findSimilarSale(sale, reject) | ||
findSimilarSale(sale, reject, code) | ||
sendWebhooks(sale, platform, force) | Sends the Pub/Sub events for the given Sale |