def stmttrnrq(self, bankid, acctid, accttype, dtstart=None, dtend=None, inctran=True): """ Construct STMTRQ; package in STMTTRNRQ """ acct = BANKACCTFROM(bankid=bankid, acctid=acctid, accttype=accttype) inctran = INCTRAN(dtstart=dtstart, dtend=dtend, include=inctran) stmtrq = STMTRQ(bankacctfrom=acct, inctran=inctran) trnuid = uuid.uuid4() return STMTTRNRQ(trnuid=trnuid, stmtrq=stmtrq)
def stmttrnrq( self, bankid: str, acctid: str, accttype: str, dtstart: Optional[datetime.datetime] = None, dtend: Optional[datetime.datetime] = None, inctran: bool = True, ) -> STMTTRNRQ: """Construct STMTRQ; package in STMTTRNRQ""" acct = BANKACCTFROM(bankid=bankid, acctid=acctid, accttype=accttype) inctran_ = INCTRAN(dtstart=dtstart, dtend=dtend, include=inctran) stmtrq = STMTRQ(bankacctfrom=acct, inctran=inctran_) trnuid = self.uuid return STMTTRNRQ(trnuid=trnuid, stmtrq=stmtrq)