@property
def is_payment(self) -> bool:
    return ((not self.is_entire_order) and (not self.is_billing_to_credit_card) and (not self.is_shipping_handling) and (not self.is_discount) and (self.price is not None) and (self.price > 0) and (self.number is not None) and (self.number > 0))
@property
def is_payment(self) -> bool:
    return ((not self.is_entire_order) and (not self.is_billing_to_credit_card) and (not self.is_shipping_handling) and (not self.is_discount) and (self.price is not None) and (self.price > 0) and (self.number is not None) and (self.number > 0))