import2ledger/tests/data/imports.yml

180 lines
6.9 KiB
YAML
Raw Normal View History

- 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 ["150.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.PatreonFeeImporter
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.CardFeeImporter
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
2017-10-26 16:40:28 +00:00
- 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"]
2017-10-26 16:40:28 +00: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"]
2017-10-26 16:40:28 +00:00
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"]
2017-10-26 16:40:28 +00:00
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"]
2017-10-26 16:40:28 +00:00
currency: USD
country_code: CZ
country_name: Czech Republic
- 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
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
description: "Payment for invoice #100"
- source: nbpy2017a.html
importer: nbpy2017.Invoice2017Importer
expect:
- payee: Python Person A
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]
- source: nbpy2017b.html
importer: nbpy2017.Invoice2017Importer
expect:
- payee: Python Person B
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"
- source: nbpy2017c.html
importer: nbpy2017.Invoice2017Importer
expect:
- payee: Python Person C
date: !!python/object/apply:datetime.date [2017, 10, 5]
amount: !!python/object/apply:decimal.Decimal ["55.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"]
status: Invoice
currency: USD
invoice_date: !!python/object/apply:datetime.date [2017, 10, 5]
invoice_id: "11"
- source: nbpy2017a.html
importer: nbpy2017.Payment2017Importer
expect:
- payee: Python Person A
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.Payment2017Importer
expect:
- payee: Python Person B
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.Payment2017Importer
expect:
- payee: Python Person C
date: !!python/object/apply:datetime.date [2017, 10, 5]
amount: !!python/object/apply:decimal.Decimal ["55.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"]
status: Payment
currency: USD
invoice_date: !!python/object/apply:datetime.date [2017, 10, 5]
payment_id: ch_daer0ahwoh9oDeiqu2eimoD7
stripe_id: ch_daer0ahwoh9oDeiqu2eimoD7
invoice_id: "11"