lnbits-legend/lnbits/extensions/tpos/models.py
Lee Salminen 82d7bfbba8 Enhancements to TPOS Extension
- Add new tip % option to TPOS extension.
        - When adding a new TPOS, a user can choose 1 or more tip % options to be displayed to the customer.
        - When adding a new TPOS, a user can choose a wallet to send all collected tips to.

- UI Refresh on TPOS extension.
        - Moved the share button to the top navigation, next to the TPOS name, and changed the icon to a more recognizable one.
        - Re-arranged the buttons on the keypad to be more ergonomic.
2022-07-03 15:49:31 -06:00

23 lines
383 B
Python

from sqlite3 import Row
from pydantic import BaseModel
class CreateTposData(BaseModel):
name: str
currency: str
tip_options: str
tip_wallet: str
class TPoS(BaseModel):
id: str
wallet: str
name: str
currency: str
tip_options: str
tip_wallet: str
@classmethod
def from_row(cls, row: Row) -> "TPoS":
return cls(**dict(row))