Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)