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 stmtendtrnrq( self, bankid: str, acctid: str, accttype: str, dtstart: Optional[datetime.datetime] = None, dtend: Optional[datetime.datetime] = None, ) -> STMTENDTRNRQ: """Construct STMTENDRQ; package in STMTENDTRNRQ""" acct = BANKACCTFROM(bankid=bankid, acctid=acctid, accttype=accttype) stmtrq = STMTENDRQ(bankacctfrom=acct, dtstart=dtstart, dtend=dtend) trnuid = self.uuid return STMTENDTRNRQ(trnuid=trnuid, stmtendrq=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)
def stmtendtrnrq(self, bankid, acctid, accttype, dtstart=None, dtend=None): """ Construct STMTENDRQ; package in STMTENDTRNRQ """ acct = BANKACCTFROM(bankid=bankid, acctid=acctid, accttype=accttype) stmtrq = STMTENDRQ(bankacctfrom=acct, dtstart=dtstart, dtend=dtend) trnuid = self.uuid return STMTENDTRNRQ(trnuid=trnuid, stmtendrq=stmtrq)