def ccstmttrnrq(self, acctid, dtstart=None, dtend=None, inctran=True): """ Construct CCSTMTRQ; package in CCSTMTTRNRQ """ acct = CCACCTFROM(acctid=acctid) inctran = INCTRAN(dtstart=dtstart, dtend=dtend, include=inctran) stmtrq = CCSTMTRQ(ccacctfrom=acct, inctran=inctran) trnuid = uuid.uuid4() return CCSTMTTRNRQ(trnuid=trnuid, ccstmtrq=stmtrq)
def ccstmtendtrnrq( self, acctid: str, dtstart: Optional[datetime.datetime] = None, dtend: Optional[datetime.datetime] = None, ) -> CCSTMTENDTRNRQ: """Construct CCSTMTENDRQ; package in CCSTMTENDTRNRQ""" acct = CCACCTFROM(acctid=acctid) stmtrq = CCSTMTENDRQ(ccacctfrom=acct, dtstart=dtstart, dtend=dtend) trnuid = self.uuid return CCSTMTENDTRNRQ(trnuid=trnuid, ccstmtendrq=stmtrq)
def ccstmttrnrq( self, acctid: str, dtstart: Optional[datetime.datetime] = None, dtend: Optional[datetime.datetime] = None, inctran: bool = True, ) -> CCSTMTTRNRQ: """Construct CCSTMTRQ; package in CCSTMTTRNRQ""" acct = CCACCTFROM(acctid=acctid) inctran_ = INCTRAN(dtstart=dtstart, dtend=dtend, include=inctran) stmtrq = CCSTMTRQ(ccacctfrom=acct, inctran=inctran_) trnuid = self.uuid return CCSTMTTRNRQ(trnuid=trnuid, ccstmtrq=stmtrq)
def ccstmtendtrnrq(self, acctid, dtstart=None, dtend=None): """ Construct CCSTMTENDRQ; package in CCSTMTENDTRNRQ """ acct = CCACCTFROM(acctid=acctid) stmtrq = CCSTMTENDRQ(ccacctfrom=acct, dtstart=dtstart, dtend=dtend) trnuid = self.uuid return CCSTMTENDTRNRQ(trnuid=trnuid, ccstmtendrq=stmtrq)