示例#1
0
 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)
示例#2
0
 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)