Ejemplo n.º 1
0
    def aggregate(cls):
        rs = models.INTRARS(curdef="USD",
                            srvrtid="100100000",
                            xferinfo=models.XFERINFO(
                                bankacctfrom=BANKACCTFROM,
                                bankacctto=BANKACCTTO,
                                trnamt=Decimal("1000.00")),
                            dtxferprj=datetime(2006, 11, 15, tzinfo=UTC),
                            recsrvrtid="20000")

        trnrs = models.INTRATRNRS(trnuid="0", status=STATUS, intrars=rs)
        return models.OFX(signonmsgsrsv1=SIGNONMSGSRSV1,
                          bankmsgsrsv1=models.BANKMSGSRSV1(
                              models.INTRASYNCRS(trnrs,
                                                 token="22243",
                                                 bankacctfrom=BANKACCTFROM)))
Ejemplo n.º 2
0
    def aggregate(cls):
        intrars = models.INTRARS(
            curdef="USD",
            srvrtid="1001",
            xferinfo=models.XFERINFO(
                bankacctfrom=BANKACCTFROM,
                bankacctto=BANKACCTTO,
                trnamt=Decimal("200.00"),
            ),
            dtxferprj=datetime(2006, 8, 29, 10, tzinfo=UTC),
        )

        intratrnrs = models.INTRATRNRS(trnuid="1001",
                                       status=STATUS,
                                       intrars=intrars)
        return models.OFX(signonmsgsrsv1=SIGNONMSGSRSV1,
                          bankmsgsrsv1=models.BANKMSGSRSV1(intratrnrs))
Ejemplo n.º 3
0
    def aggregate(cls):
        trnrs0 = models.INTRATRNRS(
            trnuid="0",
            status=STATUS,
            intramodrs=models.INTRAMODRS(
                srvrtid="100100000",
                xferinfo=models.XFERINFO(
                    bankacctfrom=BANKACCTFROM,
                    bankacctto=BANKACCTTO,
                    trnamt=Decimal("1000.00"),
                ),
                xferprcsts=models.XFERPRCSTS(xferprccode="POSTEDON",
                                             dtxferprc=datetime(2006,
                                                                11,
                                                                15,
                                                                tzinfo=UTC)),
            ),
        )

        trnrs1 = models.INTRATRNRS(
            trnuid="0",
            status=STATUS,
            intrars=models.INTRARS(
                curdef="USD",
                srvrtid="112233",
                xferinfo=models.XFERINFO(
                    bankacctfrom=BANKACCTFROM,
                    bankacctto=BANKACCTTO,
                    trnamt=Decimal("1000.00"),
                ),
                dtxferprj=datetime(2006, 12, 15, tzinfo=UTC),
                recsrvrtid="20000",
            ),
        )

        trnrs2 = models.INTRATRNRS(
            trnuid="0",
            status=STATUS,
            intramodrs=models.INTRAMODRS(
                srvrtid="112233",
                xferinfo=models.XFERINFO(
                    bankacctfrom=BANKACCTFROM,
                    bankacctto=BANKACCTTO,
                    trnamt=Decimal("1000.00"),
                ),
                xferprcsts=models.XFERPRCSTS(xferprccode="POSTEDON",
                                             dtxferprc=datetime(2006,
                                                                12,
                                                                15,
                                                                tzinfo=UTC)),
            ),
        )

        trnrs3 = models.INTRATRNRS(
            trnuid="0",
            status=STATUS,
            intrars=models.INTRARS(
                curdef="USD",
                srvrtid="112255",
                xferinfo=models.XFERINFO(
                    bankacctfrom=BANKACCTFROM,
                    bankacctto=BANKACCTTO,
                    trnamt=Decimal("1000.00"),
                ),
                dtxferprj=datetime(2006, 1, 15, tzinfo=UTC),
                recsrvrtid="20000",
            ),
        )

        trnrs4 = models.INTRATRNRS(
            trnuid="0",
            status=STATUS,
            intracanrs=models.INTRACANRS(srvrtid="112255"))

        syncrs = models.INTRASYNCRS(
            trnrs0,
            trnrs1,
            trnrs2,
            trnrs3,
            trnrs4,
            token="22244",
            bankacctfrom=BANKACCTFROM,
        )

        return models.OFX(signonmsgsrsv1=SIGNONMSGSRSV1,
                          bankmsgsrsv1=models.BANKMSGSRSV1(syncrs))