Files @ 1e381664f477
Branch filter:

Location: NPO-Accounting/import2ledger/tests/data/imports.yml

Brett Smith
tests: Use yaml.full_load when available.

Per <https://msg.pyyaml.org/load>;.
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
- source: PatreonPatronReport_2017-09-01.csv
  importer: patreon.IncomeImporter
  expect:
    - payee: Alex Jones
      date: !!python/object/apply:datetime.date [2017, 9, 1]
      amount: !!python/object/apply:decimal.Decimal ["1500.00"]
      currency: USD
    - payee: Dakota Doe
      date: !!python/object/apply:datetime.date [2017, 9, 1]
      amount: !!python/object/apply:decimal.Decimal ["12.00"]
      currency: USD

- source: PatreonEarnings.csv
  importer: patreon.ServiceFeesImporter
  expect:
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2017, 9, 1]
      amount: !!python/object/apply:decimal.Decimal ["61.73"]
      currency: USD
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2017, 10, 1]
      amount: !!python/object/apply:decimal.Decimal ["117.03"]
      currency: USD

- source: PatreonEarnings.csv
  importer: patreon.CardFeesImporter
  expect:
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2017, 9, 1]
      amount: !!python/object/apply:decimal.Decimal ["52.47"]
      currency: USD
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2017, 10, 1]
      amount: !!python/object/apply:decimal.Decimal ["99.47"]
      currency: USD

- source: PatreonVat.csv
  importer: patreon.VATImporter
  expect:
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2017, 9, 1]
      amount: !!python/object/apply:decimal.Decimal ["2.00"]
      currency: USD
      country_code: AT
      country_name: Austria
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2017, 9, 1]
      amount: !!python/object/apply:decimal.Decimal ["3.30"]
      currency: USD
      country_code: BE
      country_name: Belgium
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2017, 10, 1]
      amount: !!python/object/apply:decimal.Decimal ["0.40"]
      currency: USD
      country_code: BG
      country_name: Bulgaria
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2017, 10, 1]
      amount: !!python/object/apply:decimal.Decimal ["6.05"]
      currency: USD
      country_code: CZ
      country_name: Czech Republic

- source: PatreonPayouts.csv
  importer: patreon.PayoutImporter
  expect:
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2018, 4, 1]
      amount: !!python/object/apply:decimal.Decimal ["123.45"]
      pledges_amount: !!python/object/apply:decimal.Decimal ["0"]
      transfer_amount: !!python/object/apply:decimal.Decimal ["123.45"]
      currency: USD
    - payee: Patreon
      date: !!python/object/apply:datetime.date [2018, 5, 1]
      amount: !!python/object/apply:decimal.Decimal ["2345.67"]
      pledges_amount: !!python/object/apply:decimal.Decimal ["0"]
      transfer_amount: !!python/object/apply:decimal.Decimal ["2345.67"]
      currency: USD

- source: StripePayments.csv
  importer: stripe.PaymentImporter
  expect:
    - payee: Dakota Smith
      date: !!python/object/apply:datetime.date [2017, 11, 8]
      amount: !!python/object/apply:decimal.Decimal ["100.00"]
      fee: !!python/object/apply:decimal.Decimal ["3"]
      tax: !!python/object/apply:decimal.Decimal ["0"]
      currency: USD
      payment_id: ch_oxuish6phae2Raighooghi3U
      customer_id: cus_DohSheeQu8eng3
      customer_email: one@example.org
      payout_id: po_aeYees2ahtier8ohju7Eeyie
      description: "Payment for invoice #102"
    - payee: Dakota Jones
      date: !!python/object/apply:datetime.date [2017, 10, 28]
      amount: !!python/object/apply:decimal.Decimal ["50.00"]
      fee: !!python/object/apply:decimal.Decimal ["1.4"]
      tax: !!python/object/apply:decimal.Decimal ["0"]
      currency: USD
      payment_id: ch_hHee9ef1aeyee1ruo7ochee9
      customer_id: cus_iepae2Iecae8Ei
      customer_email: two@example.org
      payout_id: po_aeYees2ahtier8ohju7Eeyie
      description: "Payment for invoice #100"

- source: StripePayouts.csv
  importer: stripe.PayoutImporter
  expect:
    - payee: Stripe
      date: !!python/object/apply:datetime.date [2017, 11, 30]
      amount: !!python/object/apply:decimal.Decimal ["-50"]
      currency: USD
      payment_count: !!python/object/apply:decimal.Decimal ["0"]
      payment_gross: !!python/object/apply:decimal.Decimal ["0"]
      payment_fees: !!python/object/apply:decimal.Decimal ["0"]
      payment_net: !!python/object/apply:decimal.Decimal ["0"]
      refund_count: !!python/object/apply:decimal.Decimal ["1"]
      refund_gross: !!python/object/apply:decimal.Decimal ["-50"]
      refund_fees: !!python/object/apply:decimal.Decimal ["0"]
      refund_net: !!python/object/apply:decimal.Decimal ["-50"]
      collected_fee_count: !!python/object/apply:decimal.Decimal ["0"]
      collected_fee_gross: !!python/object/apply:decimal.Decimal ["0"]
      collected_fee_refund_count: !!python/object/apply:decimal.Decimal ["0"]
      collected_fee_refund_gross: !!python/object/apply:decimal.Decimal ["0"]
      adjustment_count: !!python/object/apply:decimal.Decimal ["0"]
      adjustment_gross: !!python/object/apply:decimal.Decimal ["0"]
      adjustment_fees: !!python/object/apply:decimal.Decimal ["0"]
      adjustment_net: !!python/object/apply:decimal.Decimal ["0"]
      validation_count: !!python/object/apply:decimal.Decimal ["0"]
      validation_fees: !!python/object/apply:decimal.Decimal ["0"]
      retried_payout_count: !!python/object/apply:decimal.Decimal ["0"]
      retried_payout_net: !!python/object/apply:decimal.Decimal ["0"]
      total_count: !!python/object/apply:decimal.Decimal ["1"]
      total_gross: !!python/object/apply:decimal.Decimal ["-50"]
      total_fees: !!python/object/apply:decimal.Decimal ["0"]
      total_net: !!python/object/apply:decimal.Decimal ["-50"]
      payout_id: po_faegh6aeghishuethuoSoT2i
      destination_id: ba_chu0Woop5queewi2Ea1Aibah
      balance_txid: txn_EiKahrazei3aeMohk7EeDigh
      failure_txid: ""
    - payee: Stripe
      date: !!python/object/apply:datetime.date [2017, 11, 29]
      amount: !!python/object/apply:decimal.Decimal ["146.50"]
      currency: USD
      payment_count: !!python/object/apply:decimal.Decimal ["2"]
      payment_gross: !!python/object/apply:decimal.Decimal ["150"]
      payment_fees: !!python/object/apply:decimal.Decimal ["3.5"]
      payment_net: !!python/object/apply:decimal.Decimal ["146.5"]
      refund_count: !!python/object/apply:decimal.Decimal ["0"]
      refund_gross: !!python/object/apply:decimal.Decimal ["0"]
      refund_fees: !!python/object/apply:decimal.Decimal ["0"]
      refund_net: !!python/object/apply:decimal.Decimal ["0"]
      collected_fee_count: !!python/object/apply:decimal.Decimal ["0"]
      collected_fee_gross: !!python/object/apply:decimal.Decimal ["0"]
      collected_fee_refund_count: !!python/object/apply:decimal.Decimal ["0"]
      collected_fee_refund_gross: !!python/object/apply:decimal.Decimal ["0"]
      adjustment_count: !!python/object/apply:decimal.Decimal ["0"]
      adjustment_gross: !!python/object/apply:decimal.Decimal ["0"]
      adjustment_fees: !!python/object/apply:decimal.Decimal ["0"]
      adjustment_net: !!python/object/apply:decimal.Decimal ["0"]
      validation_count: !!python/object/apply:decimal.Decimal ["0"]
      validation_fees: !!python/object/apply:decimal.Decimal ["0"]
      retried_payout_count: !!python/object/apply:decimal.Decimal ["0"]
      retried_payout_net: !!python/object/apply:decimal.Decimal ["0"]
      total_count: !!python/object/apply:decimal.Decimal ["2"]
      total_gross: !!python/object/apply:decimal.Decimal ["150"]
      total_fees: !!python/object/apply:decimal.Decimal ["3.5"]
      total_net: !!python/object/apply:decimal.Decimal ["146.5"]
      payout_id: po_Do9pathoo9Pu8jaePhahJa0e
      destination_id: ba_chu0Woop5queewi2Ea1Aibah
      balance_txid: txn_ahsaixiene6Thie1aiti3tuo
      failure_txid: ""

- source: nbpy2017a.html
  importer: nbpy2017.InvoiceImporter
  expect:
    - payee: Python Person A
      ledger template: nbpy2017 invoice ledger entry
      date: !!python/object/apply:datetime.date [2017, 10, 19]
      amount: !!python/object/apply:decimal.Decimal ["80.00"]
      tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
      ticket_rate: !!python/object/apply:decimal.Decimal ["21.25"]
      shirts_sold: !!python/object/apply:decimal.Decimal ["1"]
      shirt_rate: !!python/object/apply:decimal.Decimal ["25.50"]
      currency: USD
      status: Invoice
      invoice_id: "83"
      invoice_date: !!python/object/apply:datetime.date [2017, 10, 19]
    - payee: Python Person A
      ledger template: nbpy2017 payment ledger entry
      date: !!python/object/apply:datetime.date [2017, 10, 19]
      amount: !!python/object/apply:decimal.Decimal ["80.00"]
      tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
      ticket_rate: !!python/object/apply:decimal.Decimal ["21.25"]
      shirts_sold: !!python/object/apply:decimal.Decimal ["1"]
      shirt_rate: !!python/object/apply:decimal.Decimal ["25.50"]
      currency: USD
      status: Payment
      invoice_id: "83"
      invoice_date: !!python/object/apply:datetime.date [2017, 10, 19]
      payment_id: ch_ahr0ue8lai1ohqu4Gei4Biem
      stripe_id: ch_ahr0ue8lai1ohqu4Gei4Biem

- source: nbpy2017b.html
  importer: nbpy2017.InvoiceImporter
  expect:
    - payee: Python Person B
      ledger template: nbpy2017 invoice ledger entry
      date: !!python/object/apply:datetime.date [2017, 12, 3]
      amount: !!python/object/apply:decimal.Decimal ["50.00"]
      tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
      ticket_rate: !!python/object/apply:decimal.Decimal ["42.50"]
      shirts_sold: !!python/object/apply:decimal.Decimal ["0"]
      shirt_rate: !!python/object/apply:decimal.Decimal ["25.50"]
      status: Invoice
      currency: USD
      invoice_date: !!python/object/apply:datetime.date [2017, 12, 3]
      invoice_id: "304"
    - payee: Python Person B
      ledger template: nbpy2017 payment ledger entry
      date: !!python/object/apply:datetime.date [2017, 12, 3]
      amount: !!python/object/apply:decimal.Decimal ["50.00"]
      tickets_sold: !!python/object/apply:decimal.Decimal ["1"]
      ticket_rate: !!python/object/apply:decimal.Decimal ["42.50"]
      shirts_sold: !!python/object/apply:decimal.Decimal ["0"]
      shirt_rate: !!python/object/apply:decimal.Decimal ["25.50"]
      status: Payment
      currency: USD
      invoice_date: !!python/object/apply:datetime.date [2017, 12, 3]
      payment_id: ch_eishei9aiY8aiqu4lieYiu9i
      stripe_id: ch_eishei9aiY8aiqu4lieYiu9i
      invoice_id: "304"

- source: nbpy2017c.html
  importer: nbpy2017.InvoiceImporter
  expect:
    - payee: Python Person C
      ledger template: nbpy2017 invoice ledger entry
      date: !!python/object/apply:datetime.date [2017, 9, 5]
      amount: !!python/object/apply:decimal.Decimal ["60.00"]
      tickets_sold: !!python/object/apply:decimal.Decimal ["0"]
      ticket_rate: !!python/object/apply:decimal.Decimal ["42.50"]
      shirts_sold: !!python/object/apply:decimal.Decimal ["2"]
      shirt_rate: !!python/object/apply:decimal.Decimal ["25.50"]
      status: Invoice
      currency: USD
      invoice_date: !!python/object/apply:datetime.date [2017, 9, 5]
      invoice_id: "11"
    - payee: Python Person C
      ledger template: nbpy2017 payment ledger entry
      date: !!python/object/apply:datetime.date [2017, 9, 5]
      amount: !!python/object/apply:decimal.Decimal ["60.00"]
      tickets_sold: !!python/object/apply:decimal.Decimal ["0"]
      ticket_rate: !!python/object/apply:decimal.Decimal ["42.50"]
      shirts_sold: !!python/object/apply:decimal.Decimal ["2"]
      shirt_rate: !!python/object/apply:decimal.Decimal ["25.50"]
      status: Payment
      currency: USD
      invoice_date: !!python/object/apply:datetime.date [2017, 9, 5]
      payment_id: ch_daer0ahwoh9oDeiqu2eimoD7
      stripe_id: ch_daer0ahwoh9oDeiqu2eimoD7
      invoice_id: "11"

- source: AmazonAffiliateEarnings.csv
  importer: amazon.EarningsImporter
  header_rows: 1
  header_cols: 12
  expect:
    - payee: Amazon
      date: !!python/object/apply:datetime.date [2016, 12, 20]
      amount: !!python/object/apply:decimal.Decimal ["4.24"]
      currency: USD
    - payee: Amazon
      date: !!python/object/apply:datetime.date [2017, 1, 7]
      amount: !!python/object/apply:decimal.Decimal ["-.08"]
      currency: USD

- source: Benevity2018.csv
  importer: benevity.Donations2018Importer
  header_rows: 11
  header_cols: 17
  expect:
    - date: !!python/object/apply:datetime.date [2017, 10, 28]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [20]
      net_amount: !!python/object/apply:decimal.Decimal [20]
      donation_amount: !!python/object/apply:decimal.Decimal [20]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Dakota Smith
      corporation: Company A
      project: ""
      comment: ""
      frequency: One-time
      transaction_id: 67890QWERT
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 30]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [25]
      net_amount: !!python/object/apply:decimal.Decimal [25]
      donation_amount: !!python/object/apply:decimal.Decimal [25]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Dakota Smith
      corporation: Company A
      project: ""
      comment: ""
      frequency: One-time
      transaction_id: 67890WERTY
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 19]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [10]
      net_amount: !!python/object/apply:decimal.Decimal [10]
      donation_amount: !!python/object/apply:decimal.Decimal [0]
      match_amount: !!python/object/apply:decimal.Decimal [10]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Anonymous
      corporation: Company B
      project: ""
      comment: ""
      frequency: Unknown
      transaction_id: 67890ERTYU
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 19]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [20]
      net_amount: !!python/object/apply:decimal.Decimal [20]
      donation_amount: !!python/object/apply:decimal.Decimal [0]
      match_amount: !!python/object/apply:decimal.Decimal [20]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Anonymous
      corporation: Company B
      project: ""
      comment: ""
      frequency: Unknown
      transaction_id: 67890RTYUI
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 19]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [30]
      net_amount: !!python/object/apply:decimal.Decimal [30]
      donation_amount: !!python/object/apply:decimal.Decimal [30]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      payee: Anonymous
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      corporation: Company B
      project: ""
      comment: ""
      frequency: Recurring
      transaction_id: 67890TYUIO
      ledger template: benevity donations ledger entry

- source: Benevity2019.csv
  importer: benevity.Donations2019Importer
  header_rows: 11
  header_cols: 21
  expect:
    - date: !!python/object/apply:datetime.date [2017, 10, 28]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [20]
      net_amount: !!python/object/apply:decimal.Decimal [20]
      donation_amount: !!python/object/apply:decimal.Decimal [20]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Dakota Smith
      corporation: Company A
      project: ""
      comment: ""
      frequency: One-time
      transaction_id: 67890QWERT
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 30]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [25]
      net_amount: !!python/object/apply:decimal.Decimal [25]
      donation_amount: !!python/object/apply:decimal.Decimal [25]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Dakota Smith
      corporation: Company A
      project: ""
      comment: ""
      frequency: One-time
      transaction_id: 67890WERTY
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 19]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [10]
      net_amount: !!python/object/apply:decimal.Decimal [10]
      donation_amount: !!python/object/apply:decimal.Decimal [0]
      match_amount: !!python/object/apply:decimal.Decimal [10]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Anonymous
      corporation: Company B
      project: ""
      comment: ""
      frequency: Unknown
      transaction_id: 67890ERTYU
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 19]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [20]
      net_amount: !!python/object/apply:decimal.Decimal [20]
      donation_amount: !!python/object/apply:decimal.Decimal [0]
      match_amount: !!python/object/apply:decimal.Decimal [20]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Anonymous
      corporation: Company B
      project: ""
      comment: ""
      frequency: Unknown
      transaction_id: 67890RTYUI
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 19]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [30]
      net_amount: !!python/object/apply:decimal.Decimal [30]
      donation_amount: !!python/object/apply:decimal.Decimal [30]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      donation_fee: !!python/object/apply:decimal.Decimal [0]
      match_fee: !!python/object/apply:decimal.Decimal [0]
      merchant_fee: !!python/object/apply:decimal.Decimal [0]
      payee: Anonymous
      corporation: Company B
      project: ""
      comment: ""
      frequency: Recurring
      transaction_id: 67890TYUIO
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 18]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [20]
      net_amount: !!python/object/apply:decimal.Decimal ["19.55"]
      donation_amount: !!python/object/apply:decimal.Decimal [10]
      match_amount: !!python/object/apply:decimal.Decimal [10]
      donation_fee: !!python/object/apply:decimal.Decimal [".1"]
      match_fee: !!python/object/apply:decimal.Decimal [".2"]
      merchant_fee: !!python/object/apply:decimal.Decimal [".15"]
      payee: Anonymous
      corporation: Company C
      project: ""
      comment: ""
      frequency: Unknown
      transaction_id: 67890YUIOP
      ledger template: benevity donations ledger entry
    - date: !!python/object/apply:datetime.date [2017, 10, 21]
      currency: USD
      disbursement_id: ABCDE12345
      amount: !!python/object/apply:decimal.Decimal [20]
      net_amount: !!python/object/apply:decimal.Decimal ["19.55"]
      donation_amount: !!python/object/apply:decimal.Decimal [10]
      match_amount: !!python/object/apply:decimal.Decimal [10]
      donation_fee: !!python/object/apply:decimal.Decimal [".1"]
      match_fee: !!python/object/apply:decimal.Decimal [".2"]
      merchant_fee: !!python/object/apply:decimal.Decimal [".15"]
      payee: Anonymous
      corporation: Company C
      project: ""
      comment: ""
      frequency: Unknown
      transaction_id: 67890ASDFG
      ledger template: benevity donations ledger entry

- source: BrightFunds.xls
  importer: brightfunds.DonorReportImporter
  expect:
    - date: !!python/object/apply:datetime.date [2017, 10, 20]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal [120]
      payee: Dakota Smith
      corporation: Company
      company_name: ""
      designation: ""
      donor_name: Company
      donor_email: ""
      fund: ""
      on_behalf_of: Dakota Smith
      type: Matched Donation

- source: OReillyRoyalties.csv
  importer: oreilly.RoyaltiesImporter
  expect:
    - date: !!python/object/apply:datetime.date [2018, 3, 31]
      start_date: !!python/object/apply:datetime.date [2018, 3, 1]
      paid_date: null
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["11.96"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2018, 2, 28]
      start_date: !!python/object/apply:datetime.date [2018, 2, 1]
      paid_date: !!python/object/apply:datetime.date [2018, 3, 29]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["20.83"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2018, 1, 31]
      start_date: !!python/object/apply:datetime.date [2018, 1, 1]
      paid_date: !!python/object/apply:datetime.date [2018, 3, 29]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["8.51"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2017, 3, 31]
      start_date: !!python/object/apply:datetime.date [2017, 3, 1]
      paid_date: !!python/object/apply:datetime.date [2017, 4, 28]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["26.91"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2017, 1, 31]
      start_date: !!python/object/apply:datetime.date [2017, 1, 1]
      paid_date: !!python/object/apply:datetime.date [2017, 4, 28]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["12.33"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2016, 12, 31]
      start_date: !!python/object/apply:datetime.date [2016, 12, 1]
      paid_date: !!python/object/apply:datetime.date [2017, 4, 28]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["9.15"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2016, 9, 30]
      start_date: !!python/object/apply:datetime.date [2016, 9, 1]
      paid_date: !!python/object/apply:datetime.date [2016, 12, 16]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["26.19"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2016, 8, 31]
      start_date: !!python/object/apply:datetime.date [2016, 8, 1]
      paid_date: !!python/object/apply:datetime.date [2016, 11, 30]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["27.58"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2010, 3, 31]
      start_date: !!python/object/apply:datetime.date [2010, 1, 1]
      paid_date: !!python/object/apply:datetime.date [2010, 3, 31]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["73.85"]
      payee: "O'Reilly Media, Inc."

- source: OReillyPayments.csv
  importer: oreilly.PaymentsImporter
  expect:
    - date: !!python/object/apply:datetime.date [2018, 3, 29]
      paid_date: !!python/object/apply:datetime.date [2018, 3, 29]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["29.34"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2017, 4, 27]
      paid_date: !!python/object/apply:datetime.date [2017, 4, 28]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["26.91"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2017, 4, 24]
      paid_date: !!python/object/apply:datetime.date [2017, 4, 28]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["21.48"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2016, 12, 16]
      paid_date: !!python/object/apply:datetime.date [2016, 12, 16]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["26.19"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2016, 11, 29]
      paid_date: !!python/object/apply:datetime.date [2016, 11, 30]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["27.58"]
      payee: "O'Reilly Media, Inc."
    - date: !!python/object/apply:datetime.date [2010, 3, 31]
      paid_date: !!python/object/apply:datetime.date [2010, 3, 31]
      currency: USD
      amount: !!python/object/apply:decimal.Decimal ["73.85"]
      payee: "O'Reilly Media, Inc."

- source: YourCause.csv
  importer: yourcause.DonationsImporter
  expect:
    - date: !!python/object/apply:datetime.date [2018, 12, 20]
      currency: USD
      original_currency: USD
      payment_id: "10006789"
      transaction_id: 2-34567891
      amount: !!python/object/apply:decimal.Decimal [12]
      original_amount: !!python/object/apply:decimal.Decimal [12]
      received_amount: !!python/object/apply:decimal.Decimal [12]
      donor_amount: !!python/object/apply:decimal.Decimal [12]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      dedication_type: ""
      dedication: ""
      designation: Note
      payee: Dakota Smith
      donor: Dakota Smith
      corporation: Company A
    - date: !!python/object/apply:datetime.date [2018, 12, 31]
      currency: USD
      original_currency: USD
      payment_id: "10006789"
      transaction_id: 2-34567893
      amount: !!python/object/apply:decimal.Decimal [14]
      original_amount: !!python/object/apply:decimal.Decimal [14]
      received_amount: !!python/object/apply:decimal.Decimal [14]
      donor_amount: !!python/object/apply:decimal.Decimal [14]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      dedication_type: ""
      dedication: ""
      designation: ""
      payee: Anonymous
      donor: Anonymous
      corporation: Company B
    - date: !!python/object/apply:datetime.date [2018, 12, 20]
      currency: USD
      original_currency: USD
      payment_id: "10006789"
      transaction_id: 2-34567895
      amount: !!python/object/apply:decimal.Decimal [12]
      original_amount: !!python/object/apply:decimal.Decimal [12]
      received_amount: !!python/object/apply:decimal.Decimal [12]
      donor_amount: !!python/object/apply:decimal.Decimal [0]
      match_amount: !!python/object/apply:decimal.Decimal [12]
      dedication_type: ""
      dedication: ""
      designation: Note
      payee: Company A
      donor: Dakota Smith
      corporation: Company A
    - date: !!python/object/apply:datetime.date [2018, 12, 31]
      currency: USD
      original_currency: USD
      payment_id: "10006789"
      transaction_id: 2-34567897
      amount: !!python/object/apply:decimal.Decimal [14]
      original_amount: !!python/object/apply:decimal.Decimal [14]
      received_amount: !!python/object/apply:decimal.Decimal [14]
      donor_amount: !!python/object/apply:decimal.Decimal [0]
      match_amount: !!python/object/apply:decimal.Decimal [14]
      dedication_type: ""
      dedication: ""
      designation: ""
      payee: Company B
      donor: Anonymous
      corporation: Company B
    - date: !!python/object/apply:datetime.date [2018, 12, 15]
      currency: USD
      original_currency: GBP
      payment_id: "10006789"
      transaction_id: 2-34567899
      amount: !!python/object/apply:decimal.Decimal ["12.50"]
      original_amount: !!python/object/apply:decimal.Decimal [10]
      received_amount: !!python/object/apply:decimal.Decimal ["12.50"]
      donor_amount: !!python/object/apply:decimal.Decimal ["12.50"]
      match_amount: !!python/object/apply:decimal.Decimal [0]
      dedication_type: ""
      dedication: ""
      designation: ""
      payee: Alex Jones
      donor: Alex Jones
      corporation: Company C

- source: EventBrite.csv
  importer: eventbrite.SalesImporter
  expect:
    - date: !!python/object/apply:datetime.date [2018, 11, 27]
      currency: USD
      event_name: First Event
      event_id: "12345678901"
      order_id: "123432101"
      attendee_id: "432123401"
      payee: Alex Jones
      corporation: ""
      ticket_type: Discount Ticket
      quantity: !!python/object/apply:decimal.Decimal ["1"]
      amount: !!python/object/apply:decimal.Decimal ["10"]
      total_fees: !!python/object/apply:decimal.Decimal ["3.99"]
      eventbrite_fees: !!python/object/apply:decimal.Decimal ["2.99"]
      payment_fees: !!python/object/apply:decimal.Decimal ["1"]
      tax: !!python/object/apply:decimal.Decimal [0]
    - date: !!python/object/apply:datetime.date [2018, 12, 6]
      currency: USD
      event_name: First Event
      event_id: "12345678901"
      order_id: "123432102"
      attendee_id: "432123402"
      payee: Bret Baker
      corporation: ""
      ticket_type: Regular Ticket
      quantity: !!python/object/apply:decimal.Decimal ["1"]
      amount: !!python/object/apply:decimal.Decimal ["30"]
      total_fees: !!python/object/apply:decimal.Decimal ["3.99"]
      eventbrite_fees: !!python/object/apply:decimal.Decimal ["2.99"]
      payment_fees: !!python/object/apply:decimal.Decimal ["1"]
      tax: !!python/object/apply:decimal.Decimal [0]
    - date: !!python/object/apply:datetime.date [2019, 1, 7]
      currency: USD
      event_name: First Event
      event_id: "12345678901"
      order_id: "123432103"
      attendee_id: "432123403"
      payee: Cam Smith
      corporation: SampleCo
      ticket_type: Premium Ticket
      quantity: !!python/object/apply:decimal.Decimal ["1"]
      amount: !!python/object/apply:decimal.Decimal ["60"]
      total_fees: !!python/object/apply:decimal.Decimal ["6.39"]
      eventbrite_fees: !!python/object/apply:decimal.Decimal ["4.39"]
      payment_fees: !!python/object/apply:decimal.Decimal ["2"]
      tax: !!python/object/apply:decimal.Decimal [0]
    - date: !!python/object/apply:datetime.date [2019, 1, 23]
      currency: EUR
      event_name: Second Event
      event_id: "12345678902"
      order_id: "123432110"
      attendee_id: "432123410"
      payee: Jam Jones
      corporation: ""
      ticket_type: Discount Ticket
      quantity: !!python/object/apply:decimal.Decimal ["1"]
      amount: !!python/object/apply:decimal.Decimal ["25"]
      total_fees: !!python/object/apply:decimal.Decimal ["3.99"]
      eventbrite_fees: !!python/object/apply:decimal.Decimal ["2.99"]
      payment_fees: !!python/object/apply:decimal.Decimal ["1"]
      tax: !!python/object/apply:decimal.Decimal [0]