def __init__(self, *, paymenthash: bytes=None, amount=None, net: Type[AbstractNet]=None, tags=None, date=None, payment_secret: bytes=None):
    self.date = (int(time.time()) if (not date) else int(date))
    self.tags = ([] if (not tags) else tags)
    self.unknown_tags = []
    self.paymenthash = paymenthash
    self.payment_secret = payment_secret
    self.signature = None
    self.pubkey = None
    self.net = (constants.net if (net is None) else net)
    self._amount = amount
    self._min_final_cltv_expiry = 18
def __init__(self, *, paymenthash: bytes=None, amount=None, net: Type[AbstractNet]=None, tags=None, date=None, payment_secret: bytes=None):
    self.date = (int(time.time()) if (not date) else int(date))
    self.tags = ([] if (not tags) else tags)
    self.unknown_tags = []
    self.paymenthash = paymenthash
    self.payment_secret = payment_secret
    self.signature = None
    self.pubkey = None
    self.net = (constants.net if (net is None) else net)
    self._amount = amount
    self._min_final_cltv_expiry = 18