def factory_statement_settings(frequency: str = 'WEEKLY', payment_account_id: str = None, from_date: datetime = datetime.now(), to_date: datetime = None): """Return Factory.""" return StatementSettings(frequency=frequency, payment_account_id=payment_account_id, from_date=from_date, to_date=to_date).save()
def factory_statement_settings(pay_account_id: str, frequency='DAILY', from_date=datetime.now(), to_date=None) -> StatementSettings: """Return Factory.""" return StatementSettings(frequency=frequency, payment_account_id=pay_account_id, from_date=from_date, to_date=to_date).save()