@aiteq/messenger-bot > ReceiptElementBuilder
Helps to create a Receipt Element.
↳ ReceiptElementBuilder
Creates an instance of ReceiptBuilder.
Parameters:
Param | Type | Description |
---|---|---|
title | string |
title of the element |
price | number |
price of the item |
Returns: ReceiptElementBuilder
Sets receipt's currency.
Parameters:
Param | Type | Description |
---|---|---|
currency | string |
currency code |
Returns: this
- for chaining
Sets Recipient Element's image.
Parameters:
Param | Type | Description |
---|---|---|
imageUrl | string |
URL of the image |
Returns: this
- for chaining
Sets a number of quantity.
Parameters:
Param | Type | Description |
---|---|---|
quantity | number |
Returns: this
- for chaining
Sets a text for Receipt Element's subtitle.
Parameters:
Param | Type | Description |
---|---|---|
subtitle | string |
optional subtitle of the element |
Returns: this
- for chaining