def aggregate(cls):
     return models.OFX(signonmsgsrqv1=models.SIGNONMSGSRQV1(
         sonrq=models.SONRQ(
             dtclient=datetime(2006, 3, 21, 8, 30, 10, tzinfo=UTC),
             userid="12345", userpass="******", language="ENG",
             fi=FI, appid="MyApp", appver="1600",
             clientuid="22576921-8E39-4A82-9E3E-EDDB121ADDEE")))
 def aggregate(cls):
     return models.OFX(signonmsgsrqv1=models.SIGNONMSGSRQV1(
         sonrq=models.SONRQ(
             dtclient=datetime(2006, 3, 21, 8, 30, 20, tzinfo=UTC),
             userid="12345", userpass="******", language="ENG",
             fi=FI, appid="MyApp", appver="1600",
             clientuid="22576921-8E39-4A82-9E3E-EDDB121ADDEE"),
         mfachallengetrnrq=models.MFACHALLENGETRNRQ(
             trnuid="66D3749F-5B3B-4DC3-87A3-8F795EA59EDB",
             mfachallengerq=models.MFACHALLENGERQ(
                 dtclient=datetime(2006, 3, 21, 8, 30, 20, tzinfo=UTC)))))
 def aggregate(cls):
     return models.OFX(signonmsgsrqv1=models.SIGNONMSGSRQV1(
         sonrq=models.SONRQ(
             models.MFACHALLENGEA(
                 mfaphraseid="MFA13", mfaphrasea="1234"),
             models.MFACHALLENGEA(
                 mfaphraseid="MFA107", mfaphrasea="ClientUserAgent"),
             models.MFACHALLENGEA(
                 mfaphraseid="123", mfaphrasea="Anytown"),
             dtclient=datetime(2006, 3, 21, 8, 34, 15, tzinfo=UTC),
             userid="12345", userpass="******", language="ENG",
             fi=FI, appid="MyApp", appver="1600",
             clientuid="22576921-8E39-4A82-9E3E-EDDB121ADDEE")))
    def aggregate(cls):
        sonrq = models.SONRQ(
            dtclient=datetime(2018, 1, 30, 13, 25, 10, tzinfo=UTC),
            userid="123456789",
            userpass="******",
            language="ENG",
            appid="TTWin",
            appver="2018",
        )

        trnrq = models.TAX1099TRNRQ(
            trnuid="12345", tax1099rq=models.TAX1099RQ(2018, recid="123456789")
        )

        return models.OFX(
            signonmsgsrqv1=models.SIGNONMSGSRQV1(sonrq=sonrq),
            tax1099msgsrqv1=models.TAX1099MSGSRQV1(trnrq),
        )
Exemple #5
0
from ofxtools.utils import classproperty, UTC

# test imports
import base

# Common aggregates used across tests
SONRQ = models.SONRQ(
    dtclient=datetime(2005, 10, 29, 10, 10, tzinfo=UTC),
    userid="12345",
    userpass="******",
    language="ENG",
    fi=models.FI(org="NCH", fid="1001"),
    appid="MyApp",
    appver="0500",
)
SIGNONMSGSRQV1 = models.SIGNONMSGSRQV1(sonrq=SONRQ)

STATUS = models.STATUS(code=0, severity="INFO")

SONRS = models.SONRS(
    status=STATUS,
    dtserver=datetime(2005, 10, 29, 10, 10, 3, tzinfo=UTC),
    language="ENG",
    dtprofup=datetime(2004, 10, 29, 10, 10, 3, tzinfo=UTC),
    dtacctup=datetime(2004, 10, 29, 10, 10, 3, tzinfo=UTC),
    fi=models.FI(org="NCH", fid="1001"),
)
SIGNONMSGSRSV1 = models.SIGNONMSGSRSV1(sonrs=SONRS)

BANKACCTFROM = models.BANKACCTFROM(bankid="121099999",
                                   acctid="999988",