From bdbd753fe4ab2de979939bae4caf93b16f6b5efc Mon Sep 17 00:00:00 2001 From: Andrew Shadura Date: Wed, 19 Oct 2016 17:56:53 +0200 Subject: Imported Upstream version 0.14 --- tests/fixtures/account_listing_aggregation.ofx | 51 +++++++++++ tests/fixtures/bank_medium.ofx | 18 ++++ tests/fixtures/bank_small.ofx | 11 +++ tests/fixtures/checking.ofx | 83 +++++++++++++++++ tests/fixtures/fail_nice/date_missing.ofx | 65 ++++++++++++++ tests/fixtures/fail_nice/decimal_error.ofx | 51 +++++++++++ tests/fixtures/fail_nice/empty_balance.ofx | 48 ++++++++++ tests/fixtures/fidelity.ofx | 11 +++ tests/fixtures/investment_medium.ofx | 119 +++++++++++++++++++++++++ tests/fixtures/multiple_accounts.ofx | 61 +++++++++++++ tests/fixtures/multiple_accounts2.ofx | 61 +++++++++++++ tests/fixtures/signon_fail.ofx | 11 +++ tests/fixtures/signon_success.ofx | 11 +++ tests/fixtures/signon_success_no_message.ofx | 11 +++ tests/fixtures/vanguard.ofx | 11 +++ 15 files changed, 623 insertions(+) create mode 100644 tests/fixtures/account_listing_aggregation.ofx create mode 100644 tests/fixtures/bank_medium.ofx create mode 100644 tests/fixtures/bank_small.ofx create mode 100644 tests/fixtures/checking.ofx create mode 100644 tests/fixtures/fail_nice/date_missing.ofx create mode 100644 tests/fixtures/fail_nice/decimal_error.ofx create mode 100644 tests/fixtures/fail_nice/empty_balance.ofx create mode 100644 tests/fixtures/fidelity.ofx create mode 100644 tests/fixtures/investment_medium.ofx create mode 100644 tests/fixtures/multiple_accounts.ofx create mode 100644 tests/fixtures/multiple_accounts2.ofx create mode 100644 tests/fixtures/signon_fail.ofx create mode 100644 tests/fixtures/signon_success.ofx create mode 100644 tests/fixtures/signon_success_no_message.ofx create mode 100644 tests/fixtures/vanguard.ofx (limited to 'tests/fixtures') diff --git a/tests/fixtures/account_listing_aggregation.ofx b/tests/fixtures/account_listing_aggregation.ofx new file mode 100644 index 0000000..5ecf241 --- /dev/null +++ b/tests/fixtures/account_listing_aggregation.ofx @@ -0,0 +1,51 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:85230611d6fc414fa391a8c2425f8e9e + + + + +0INFOSuccess +20120814060142ENG +USAA24591 + + + + +09ca62d0198049388252f0a547bae86a +0INFOSuccess +4 +20120814120000 +USAA SAVINGS + +3140742690000000001SAVINGS +YNNACTIVE + + +FOUR STAR CHECKING + +3140742690000000002CHECKING +YNNACTIVE + + +LINE OF CREDIT + +31407426900000000000003CREDITLINE +YNNACTIVE + + +MY CREDIT CARD + +4111111111111111 +YNNACTIVE + + + + + diff --git a/tests/fixtures/bank_medium.ofx b/tests/fixtures/bank_medium.ofx new file mode 100644 index 0000000..08c71c3 --- /dev/null +++ b/tests/fixtures/bank_medium.ofx @@ -0,0 +1,18 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:NONE + +0INFOOK20090523122017ENG200905231220172009052312201700024 +200905231220170INFOOK +CAD1600001000012300 000012345678CHECKING +2009040120090523122017 +POS20090401122017.000[-5:EST]-6.600000123456782009040100001MCDONALD'S #112POS MERCHANDISE;MCDONALD'S #112 +CHECK20090402122017.000[-5:EST]-316.6700001234567820090402000040Joe's Bald HairstylesMISCELLANEOUS PAYMENTS;Joe's Bald Hairstyles +POS20090403122017.000[-5:EST]-22.000000123456782009040300005CONNIE'S HAIR DPOS MERCHANDISE;CONNIE'S HAIR D +382.3420090523122017682.3420090523122017 diff --git a/tests/fixtures/bank_small.ofx b/tests/fixtures/bank_small.ofx new file mode 100644 index 0000000..3040f8f --- /dev/null +++ b/tests/fixtures/bank_small.ofx @@ -0,0 +1,11 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:NONE + + diff --git a/tests/fixtures/checking.ofx b/tests/fixtures/checking.ofx new file mode 100644 index 0000000..6c32904 --- /dev/null +++ b/tests/fixtures/checking.ofx @@ -0,0 +1,83 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:NONE + + + + + + 0 + INFO + + 20130525225731.258 + ENG + 20050531060000.000 + + FAKE + 1101 + + 51123 + 9774652 + + + + + 0 + + 0 + INFO + + + USD + + 5472369148 + 1452687~7 + CHECKING + + + 20000101070000.000 + 20130525060000.000 + + CREDIT + 20110331120000.000 + 0.01 + 0000486 + DIVIDEND EARNED FOR PERIOD OF 03 + DIVIDEND EARNED FOR PERIOD OF 03/01/2011 THROUGH 03/31/2011 ANNUAL PERCENTAGE YIELD EARNED IS 0.05% + + + DEBIT + 20110405120000.000 + -34.51 + 0000487 + AUTOMATIC WITHDRAWAL, ELECTRIC BILL + AUTOMATIC WITHDRAWAL, ELECTRIC BILL WEB(S ) + + + CHECK + 20110407120000.000 + -25.00 + 0000488 + 319 + RETURNED CHECK FEE, CHECK # 319 + RETURNED CHECK FEE, CHECK # 319 FOR $45.33 ON 04/07/11 + + + + 100.99 + 20130525225731.258 + + + 75.99 + 20130525225731.258 + + + + + \ No newline at end of file diff --git a/tests/fixtures/fail_nice/date_missing.ofx b/tests/fixtures/fail_nice/date_missing.ofx new file mode 100644 index 0000000..931f438 --- /dev/null +++ b/tests/fixtures/fail_nice/date_missing.ofx @@ -0,0 +1,65 @@ + + + + + + + 0 + INFO + + 20110614 + + + + + + 1 + + 0 + INFO + + + USD + + 123845030 + 192639749 + CHECKING + + + + 20110412 + 20110614 + + + OTHER + -80.00 + 184997056 + TestFail1 + + + + OTHER + + 200.00 + 2000957249 + TestFail2 + + + + OTHER + 20120231 + 200.00 + 2000957249 + TestFail2 + + + + + + 0 + 20110614 + + + + + diff --git a/tests/fixtures/fail_nice/decimal_error.ofx b/tests/fixtures/fail_nice/decimal_error.ofx new file mode 100644 index 0000000..4389f6c --- /dev/null +++ b/tests/fixtures/fail_nice/decimal_error.ofx @@ -0,0 +1,51 @@ + + + + + + + 0 + INFO + + 20110614 + + + + + + 1 + + 0 + INFO + + + CAD + + 123845030 + 192639749 + CHECKING + + + + 20110412 + 20110614 + + + + OTHER + 201120000000 + $120 + 2000957249 + Fail1 + + + + + + 0 + 20110614 + + + + + diff --git a/tests/fixtures/fail_nice/empty_balance.ofx b/tests/fixtures/fail_nice/empty_balance.ofx new file mode 100644 index 0000000..bf76b48 --- /dev/null +++ b/tests/fixtures/fail_nice/empty_balance.ofx @@ -0,0 +1,48 @@ + + + + + 0 + INFO + + 20110614 + + + + + + 1 + + 0 + INFO + + + CAD + + 123845030 + 192639749 + CHECKING + + + 20110412 + 20110614 + + OTHER + 20110308020000 + 120 + 2000957249 + Foobar + + + + + 20110614 + + + + 20110614 + + + + + diff --git a/tests/fixtures/fidelity.ofx b/tests/fixtures/fidelity.ofx new file mode 100644 index 0000000..de8e580 --- /dev/null +++ b/tests/fixtures/fidelity.ofx @@ -0,0 +1,11 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 + +0INFOSUCCESS20120908190849.317[-4:EDT]ENGfidelity.com7776a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a00INFOSUCCESS20120908033034.000[-4:EDT]USDfidelity.com0123456789020120710000000.000[-4:EDT]20120908190849.555[-4:EDT]012345678902020112012072020120720000000.000[-4:EDT]YOU BOUGHT458140100CUSIP+0000000000100.00000000000025.635000000+00000000000007.9500+00000000000000.0000-00000000002571.45001.00USDCASHCASHBUY 012345678902090112012072720120727000000.000[-4:EDT]YOU BOUGHTG7945E105CUSIP+0000000000128.00000000000039.390900000+00000000000007.9500+00000000000000.0000-00000000005049.99001.00USDCASHCASHBUY 012345678902090122012072720120727000000.000[-4:EDT]YOU BOUGHT431571108CUSIP+0000000000115.00000000000017.250000000+00000000000007.9500+00000000000000.0000-00000000001991.70001.00USDCASHCASHBUY 012345678902130112012073120120731000000.000[-4:EDT]YOU BOUGHT19421R200CUSIP+0000000000069.00000000000014.469900000+00000000000007.9500+00000000000000.0000-00000000001006.37001.00USDCASHCASHBUY 012345678902130162012073120120731000000.000[-4:EDT]YOU BOUGHT98417P105CUSIP+0000000000386.00000000000002.588700000+00000000000007.9500+00000000000000.0000-00000000001007.19001.00USDCASHCASHBUY 012345678902350122012082020120820000000.000[-4:EDT]REINVESTMENT98417P105CUSIP+0000000000004.90900000000002.947400000+00000000000000.0000+00000000000000.0000-00000000000014.47001.00USDCASHCASHBUY 012345678902440112012083120120831000000.000[-4:EDT]REINVESTMENT19421R200CUSIP+0000000000001.57300000000014.257000000+00000000000000.0000+00000000000000.0000-00000000000022.43001.00USDCASHCASHBUY 012345678902480112012090120120901000000.000[-4:EDT]REINVESTMENT458140100CUSIP+0000000000000.91100000000024.705500000+00000000000000.0000+00000000000000.0000-00000000000022.50001.00USDCASHCASHBUY 012345678902130152012073120120731000000.000[-4:EDT]DIVIDEND RECEIVED78462F103CUSIPDIV+00000000000005.5300CASHCASH1.00USD 012345678902350132012082020120820000000.000[-4:EDT]DIVIDEND RECEIVED98417P105CUSIPDIV+00000000000015.4400CASHCASH1.00USD 012345678902440122012083120120831000000.000[-4:EDT]DIVIDEND RECEIVED19421R200CUSIPDIV+00000000000022.4300CASHCASH1.00USD 012345678902480122012090120120901000000.000[-4:EDT]DIVIDEND RECEIVED458140100CUSIPDIV+00000000000022.5000CASHCASH1.00USD 012345678902090132012072720120727000000.000[-4:EDT]YOU SOLD78462F103CUSIP-0000000000008.00000000000137.160000000+00000000000007.9500+00000000000000.0000+00000000001089.30001.00USDCASHCASHSELL 012345678902140142012080120120801000000.000[-4:EDT]IN LIEU OF FRX SHARE78462F103CUSIP-0000000000000.03500000000137.142857143+00000000000000.0000+00000000000000.0000+00000000000004.80001.00USDCASHCASHSELL DEP20120731000000.000[-4:EDT]+00000000000000.24000123456789021301320120731INTEREST EARNEDINTEREST EARNED1.00USD CASH OTHER20120820000000.000[-4:EDT]-00000000000000.97000123456789023501120120820LATE SETTLEMENT FEELATE SETTLEMENT FEE1.00USD CASH DEP20120831000000.000[-4:EDT]+00000000000000.16000123456789024401420120831INTEREST EARNEDINTEREST EARNED1.00USD CASH G7945E105CUSIPCASHLONG128.0000040.8700000+00000005231.3620120908033034.000[-4:EDT]1.0USD19421R200CUSIPCASHLONG70.5730014.3200000+00000001010.6020120908033034.000[-4:EDT]1.0USD431571108CUSIPCASHLONG115.0000018.9300000+00000002176.9520120908033034.000[-4:EDT]1.0USD458140100CUSIPCASHLONG100.9110024.1900000+00000002441.0320120908033034.000[-4:EDT]1.0USD756577102CUSIPCASHLONG50.0000059.1500000+00000002957.5020120908033034.000[-4:EDT]1.0USD98417P105CUSIPCASHLONG390.909002.8200000+00000001102.3620120908033034.000[-4:EDT]1.0USD18073.98+00000000000.00+00000000000.00+00000000000.00NetworthThe net market value of all long and short positions in the accountDOLLAR32993.7920120908033034.000[-4:EDT]1.000USDMargin EquityThe margin market value less any margin debit balanceDOLLAR0.020120908033034.000[-4:EDT]1.000USDMargin Equity PercentageMargin equity / market value of long and short positionsPERCENT0.020120908033034.000[-4:EDT]1.000USDCash Debit BalanceCash Debit BalanceDOLLAR0.020120908033034.000[-4:EDT]1.000USDTotal Money MarketsThe total value of all money market positions in the cash accountDOLLAR18073.9820120908033034.000[-4:EDT]1.000USDHouse SurplusEquity amount above house requirementsDOLLAR0.020120908033034.000[-4:EDT]1.000USDNYSE SurplusEquity amount above exchange requirementsDOLLAR0.020120908033034.000[-4:EDT]1.000USDFederal SurplusAmount above federal requirementsDOLLAR0.020120908033034.000[-4:EDT]1.000USDBuying Power - EquitiesAmount of equities you can buy on margin without generating a margin callDOLLAR0.020120908033034.000[-4:EDT]1.000USDBuying Power - Municipal BondsAmount of municipal bonds you can buy on margin without generating a margin callDOLLAR0.020120908033034.000[-4:EDT]1.000USDBuying Power - Government BondsAmount of government bonds you can buy on margin without generating a margin calDOLLAR0.020120908033034.000[-4:EDT]1.000USDBuying Power - Corporate BondsAmount you can buy of corporate bonds on margin with no margin callDOLLAR0.020120908033034.000[-4:EDT]1.000USDOption Market ValueThe market value of all options in the accountDOLLAR0.020120908033034.000[-4:EDT]1.000USDOption In The Money AmountThe in-the-money amount on covered optionsDOLLAR0.020120908033034.000[-4:EDT]1.000USDCash Market valueTotal value of all cash account positionsDOLLAR14919.820120908033034.000[-4:EDT]1.000USDMargin Market ValueTotal value of positions in margin less in-the-money amount of covered optionsDOLLAR0.020120908033034.000[-4:EDT]1.000USDShort Market ValueTotal value of short positions less in-the-money amount of covered put optionsDOLLAR0.020120908033034.000[-4:EDT]1.000USDAvailable to BorrowCash amount that can be borrowed without generating a margin callDOLLAR0.020120908033034.000[-4:EDT]1.000USDG7945E105CUSIPSEADRILL LTD USD2SDRL20120908033034.000[-4:EDT]1.000USD COMMON20120908033034.000[-4:EDT]19421R200CUSIPCOLLECTORS UNIVERSE INCCLCT20120908033034.000[-4:EDT]1.000USD COMMON20120908033034.000[-4:EDT]431571108CUSIPHILLENBRAND INC COMHI20120908033034.000[-4:EDT]1.000USD COMMON20120908033034.000[-4:EDT]458140100CUSIPINTEL CORPINTC20120908033034.000[-4:EDT]1.000USD COMMON20120908033034.000[-4:EDT]756577102CUSIPRED HAT INCRHT20120908033034.000[-4:EDT]1.000USD COMMON20120908033034.000[-4:EDT]98417P105CUSIPXINYUAN REAL ESTATE ADR EACH REPR 2 ORD SHSXIN20120908033034.000[-4:EDT]1.000USD COMMON20120908033034.000[-4:EDT]78462F103CUSIPSPDR S&P 500 ETF TRUST UNIT SER 1 S&PSPY20120908033034.000[-4:EDT]1.000USD COMMON20120908033034.000[-4:EDT] diff --git a/tests/fixtures/investment_medium.ofx b/tests/fixtures/investment_medium.ofx new file mode 100644 index 0000000..87f6eba --- /dev/null +++ b/tests/fixtures/investment_medium.ofx @@ -0,0 +1,119 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:NONE + + + + + 0 + INFO + + 20091217162416.000[-:EST] + ENG + + REDACTEDINC-US + 1234 + + + + + + 0 + + 0 + INFO + + + 20091215202000.000[-4:EST] + CAD + + 404 + ABC123 + + + 20091214202000.000[-5:EST] + 20091215202000.000[-5:EST] + + + DEBIT + 20091215202000.000[-4:EST] + -3.65 + 20091215.U489357.e.USD.1510480481 + CASH TRADE: AUD.USD + + 1.06 + USD + + + CASH + + + + CREDIT + 20091215202000.000[-4:EST] + 3.35 + 20091215.U489357.e.USD.1510982018 + CASH TRADE: AUD.USD + + 1.06 + USD + + + CASH + + + + DEBIT + 20091215202000.000[-4:EST] + -3.65 + 20091215.U489357.e.USD.1511863617 + CASH TRADE: AUD.USD + + 1.06 + USD + + + CASH + + + + 1.00 + 0 + 0 + + + ENDING CASH + ENDING CASH BALANCE + NUMBER + 2.00 + + + STOCK VALUE + TOTAL EQUITY IN STOCKS + NUMBER + 0.00 + + + OPTION VALUE + TOTAL EQUITY IN OPTIONS + NUMBER + 0.00 + + + IBGROUPNOTES VALUE + TOTAL EQUITY IN IBGROUPNOTES + NUMBER + 0.00 + + + + + + + diff --git a/tests/fixtures/multiple_accounts.ofx b/tests/fixtures/multiple_accounts.ofx new file mode 100644 index 0000000..853c788 --- /dev/null +++ b/tests/fixtures/multiple_accounts.ofx @@ -0,0 +1,61 @@ + + + + + + + 0 + INFO + The operation succeeded. + + 20120603203135.547[-7:PDT] + ENG + + blah + 1000 + + + + + + 1001 + + 0 + INFO + + + USD + + 123 + 00 + 9100 + CHECKING + + + 111 + 20120603133220.000[-7:PDT] + + + + + 1002 + + 0 + INFO + + + USD + + 123 + 00 + 9200 + SAVINGS + + + 222 + 20120603133220.000[-7:PDT] + + + + + diff --git a/tests/fixtures/multiple_accounts2.ofx b/tests/fixtures/multiple_accounts2.ofx new file mode 100644 index 0000000..853c788 --- /dev/null +++ b/tests/fixtures/multiple_accounts2.ofx @@ -0,0 +1,61 @@ + + + + + + + 0 + INFO + The operation succeeded. + + 20120603203135.547[-7:PDT] + ENG + + blah + 1000 + + + + + + 1001 + + 0 + INFO + + + USD + + 123 + 00 + 9100 + CHECKING + + + 111 + 20120603133220.000[-7:PDT] + + + + + 1002 + + 0 + INFO + + + USD + + 123 + 00 + 9200 + SAVINGS + + + 222 + 20120603133220.000[-7:PDT] + + + + + diff --git a/tests/fixtures/signon_fail.ofx b/tests/fixtures/signon_fail.ofx new file mode 100644 index 0000000..d55ef86 --- /dev/null +++ b/tests/fixtures/signon_fail.ofx @@ -0,0 +1,11 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:0e1a88e56fc548a1ba2e83bce6323bb6 + +15500ERRORYour request could not be processed because you supplied an invalid identification code or your password was incorrect20130325211209.350[-7:MST]ENGAMEX31012013032521120915500 diff --git a/tests/fixtures/signon_success.ofx b/tests/fixtures/signon_success.ofx new file mode 100644 index 0000000..82f34a3 --- /dev/null +++ b/tests/fixtures/signon_success.ofx @@ -0,0 +1,11 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:3bb6707632b64da196722ef312e6376d + +0INFOLogin successful20130325211405.187[-7:MST]ENGAMEX310120130325211405FMPWeb diff --git a/tests/fixtures/signon_success_no_message.ofx b/tests/fixtures/signon_success_no_message.ofx new file mode 100644 index 0000000..636bffa --- /dev/null +++ b/tests/fixtures/signon_success_no_message.ofx @@ -0,0 +1,11 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:3bb6707632b64da196722ef312e6376d + +0INFO20130325211405.187[-7:MST]ENGAMEX310120130325211405FMPWeb diff --git a/tests/fixtures/vanguard.ofx b/tests/fixtures/vanguard.ofx new file mode 100644 index 0000000..47f42a0 --- /dev/null +++ b/tests/fixtures/vanguard.ofx @@ -0,0 +1,11 @@ +OFXHEADER:100 +DATA:OFXSGML +VERSION:102 +SECURITY:NONE +ENCODING:USASCII +CHARSET:1252 +COMPRESSION:NONE +OLDFILEUID:NONE +NEWFILEUID:a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0 + +0INFOSuccessful Sign On20110727001702[-5:EST]ENG20010918083000The Vanguard Groupa0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a00INFO420110727USDvanguard.com0123456789020110625160000.000[-5:EST]20110727160000.000[-5:EST]01234567890.0123.07152011.020110715160000.000[-5:EST]20110715160000.000[-5:EST]THIS IS A MEMO012345678CUSIP-42.123100.004212.3CASHOTHERSELL012345678CUSIPOTHERLONG102.0100.0010200.020110726160000.000[-5:EST]Price as of date based on closing priceYY012345678CUSIPOTHERLONG142.2100.4214279.7220110726160000.000[-5:EST]Price as of date based on closing priceYY012345678CUSIPName of the securityVFINX012254.0Price as of date based on closing priceOPENEND012345678CUSIPName of shareVFIAX0123123.45Price as of date based on closing priceOPENEND \ No newline at end of file -- cgit v1.2.3