SudoSOS Back-end API / seller-payouts / SellerPayout
Class: SellerPayout ​
Extends ​
PdfAbleClass<typeofdefault,this> &BasePayout<this>
Constructors ​
Constructor ​
ts
new SellerPayout(): SellerPayout;Returns ​
SellerPayout
Inherited from ​
ts
PdfAble(BasePayout).constructorProperties ​
| Property | Modifier | Type | Description | Overrides | Inherited from |
|---|---|---|---|---|---|
amount | public | Dinero | - | - | PdfAble(BasePayout).amount |
createdAt | readonly | Date | - | - | PdfAble(BasePayout).createdAt |
endDate | public | Date | - | - | - |
id | readonly | number | - | - | PdfAble(BasePayout).id |
pdf? | public | SellerPayoutPdf | The Pdf file. | PdfAble(BasePayout).pdf | - |
pdfId? | public | number | The id of the Pdf file. | PdfAble(BasePayout).pdfId | - |
pdfService | public | SellerPayoutPdfService | The service that creates the Pdf file. Can be either a byte-producing service plus optionally a stored-entity service. | PdfAble(BasePayout).pdfService | - |
reference | public | string | - | - | - |
requestedBy | public | User | - | - | PdfAble(BasePayout).requestedBy |
startDate | public | Date | - | - | - |
transfer? | public | Transfer | - | - | PdfAble(BasePayout).transfer |
updatedAt | readonly | Date | - | - | PdfAble(BasePayout).updatedAt |
version | readonly | number | - | - | PdfAble(BasePayout).version |
Methods ​
createPdf() ​
ts
createPdf(): Promise<Pdf>;Create and persist the Pdf file, returning the Pdf entity. The configured pdfService must implement createPdfWithEntity, otherwise this throws.
Returns ​
Promise<Pdf>
Inherited from ​
ts
PdfAble(BasePayout).createPdfgetOrCreatePdf() ​
ts
getOrCreatePdf(force?): Promise<Pdf>;Get the Pdf file. If the Pdf file is not current, create it.
Parameters ​
| Parameter | Type | Default value | Description |
|---|---|---|---|
force | boolean | false | If true, always create the Pdf file. |
Returns ​
Promise<Pdf>
Inherited from ​
ts
PdfAble(BasePayout).getOrCreatePdfgetOwner() ​
ts
abstract getOwner(): Promise<User>;Get the owner of the Pdf file.
Returns ​
Promise<User>
Inherited from ​
ts
PdfAble(BasePayout).getOwnergetPdfParamHash() ​
ts
getPdfParamHash(): Promise<string>;Get the hash of the parameters of the Pdf file.
Returns ​
Promise<string>
Inherited from ​
ts
PdfAble(BasePayout).getPdfParamHashvalidatePdfHash() ​
ts
validatePdfHash(): Promise<boolean>;Validates if the Pdf matches the stored hash.
Returns ​
Promise<boolean>
Inherited from ​
ts
PdfAble(BasePayout).validatePdfHash