mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-02-26 07:31:22 +01:00
- 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.
23 lines
383 B
Python
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))
|