Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
Settlements clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
cloveras committed Oct 13, 2018
1 parent d7108ed commit aec3912
Show file tree
Hide file tree
Showing 19 changed files with 1,231 additions and 21 deletions.
3 changes: 0 additions & 3 deletions settlement/README.md

This file was deleted.

18 changes: 0 additions & 18 deletions settlement/settlement-report.csv

This file was deleted.

36 changes: 36 additions & 0 deletions settlements/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Vipps Settlements

Settlement reports are provided in these formats:

| Format | Example | Specification |
| ------ | ------------------ | ------------------ |
| OCR | [OCRV20170114.sample.txt](ocr/OCRV20170114.sample.txt) | [ocr-spec.xlsx](ocr/ocr-spec.xlsx) |
| CSV | [settlement-report.csv](csv/settlement-report.csv) | - |
| XML | [Example-Gross.xml](xml/Example-Gross.xml), [Example-Net.xml](xml/Example-Net.xml) | [SettlementReport-3.0.xsd](xml/SettlementReport-3.0.xsd) |
| PDF | [PDF](pdf/Vipps-oppgjørsrapport-16655-2018-09-23.pdf) | - |
| XLSX | [XLSX](xlsx/Vipps-oppgjørsrapport-16655-2018-09-23.xlsx) | - |

# OCR

OCR files are distributed in different ways, and will soon move to an
[SFTP](https://en.wikipedia.org/wiki/SSH_File_Transfer_Protocol)-based distribution.

Details: See the [ocr](ocr/) folder.

# CSV

CSV files are sent by email.

Details: See the [csv](csv/) folder.

# XML

XML files are sent by email.

Details: See the [xml](xml/) folder.

# PDF

PDF files are sent by email.

Details: See the [pdf](pdf/) folder.
3 changes: 3 additions & 0 deletions settlements/csv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vipps settlements: CSV

See the [Settlements](..) overview.
Binary file not shown.
18 changes: 18 additions & 0 deletions settlements/csv/settlement-report.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
OrganizationNumber,MerchantName
918713867,Vipps AS
Name,VisitingAddress,Postbox,Zipno,Place,Country,CompanyNumber
Vipps AS,Dronning Eufemias Gate 42,,0191,Oslo,Norway,918713867
SettlementInfo,SalesUnitName,SaleUnitNumber,SettlementDate,SettlementID,SettlementAccount,Gross,Currency,Fee,Refund,Net,NumberOfTransactions
SettlementInfo,VippsExampleStore,513428,12.04.2018,2000001,15039794613,1.00,NOK,-0.02,0.00,0.98,1
SettlementInfo,VippsExampleStore,513428,13.04.2018,2000002,15039794613,1.00,NOK,-0.02,0.00,0.98,1
FeeInfo,SettlementDate,SaleUnitName,SaleUnitNumber,FeeAccount,Fee,Currency
TransactionInfo,SalesDate,SaleUnitName,SaleUnitNumber,TransactionId,SettlementId,OrderID,SettlementDate,Gross,Currency,Fee,Refund,Net
TransactionInfo,11.04.2018,VippsExampleStore,513428,5554795401,2000001,1911652,12.04.2018,1.00,NOK,-0.02,0.00,0.98
TransactionInfo,13.04.2018,VippsExampleStore,513428,5555094801,2000002,1923885,13.04.2018,1.00,NOK,-0.02,0.00,0.98
SettlementInfo,SalesUnitName,SaleUnitNumber,SettlementDate,SettlementID,SettlementAccount,Gross,Currency,Fee,Refund,Net,NumberOfTransactions
SettlementInfo,VippsExampleStore,513428,12.04.2018,2000001,15039794613,1.00,NOK,-0.02,0.00,0.98,1
SettlementInfo,VippsExampleStore,513428,13.04.2018,2000002,15039794613,1.00,NOK,-0.02,0.00,0.98,1
FeeInfo,SettlementDate,SaleUnitName,SaleUnitNumber,FeeAccount,Fee,Currency
TransactionInfo,SalesDate,SaleUnitName,SaleUnitNumber,TransactionId,SettlementId,OrderID,SettlementDate,Gross,Currency,Fee,Refund,Net
TransactionInfo,11.04.2018,VippsExampleStore,513428,5554795401,2000001,1911652,12.04.2018,1.00,NOK,-0.02,0.00,0.98
TransactionInfo,13.04.2018,VippsExampleStore,513428,5555094801,2000002,1923885,13.04.2018,1.00,NOK,-0.02,0.00,0.98
18 changes: 18 additions & 0 deletions settlements/ocr/OCRV20170114.sample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
NY000010000090000000002000107800000000000000000000000000000000000000000000000000
NY090020000010780000000212029007290000000000000000000000000000000000000000000000
NY09503000000011401175013900000000000000000000400 119930260000000000000
NY095031000000100000000000000000100019127130117000000000000000000000000000000000
NY09503000000021401175013900000000000000000000400 -12345678919001000000
NY095031000000200000000000000000100019128130117000000000000000000000000000000000
NY09503000000031401175013900000000000000000000400 119930252000000000000
NY095031000000300000000000000000100019129130117000000000000000000000000000000000
NY09503000000041401175013900000000000000000000400 00981234576842000000
NY095031000000400000000000000000100019130130117000000000000000000000000000000000
NY09503000000051401175013900000000000000000000400 119930252000000000000
NY095031000000500000000000000000100019131130117000000000000000000000000000000000
NY095030000000614011750139000000000000000000004000076543211234567898838912000000
NY095031000000600000000000000000100019132130117000000000000000000000000000000000
NY095030000000714011750139000000000000000000004009876543211234567898888856000000
NY095031000000700000000000000000100019133130117000000000000000000000000000000000
NY090088000000070000001600000000000002800140117140117140117000000000000000000000
NY000089000000070000001800000000000002800140117000000000000000000000000000000000
3 changes: 3 additions & 0 deletions settlements/ocr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vipps settlements: OCR

See the [Settlements] overview.
Binary file added settlements/ocr/ocr-spec.xlsx
Binary file not shown.
3 changes: 3 additions & 0 deletions settlements/pdf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vipps settlements: PDF

See the [Settlements](..) overview.
Binary file not shown.
3 changes: 3 additions & 0 deletions settlements/xlsx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Vipps settlements: XLSX

See the [Settlements](..) overview.
Binary file not shown.
Loading

0 comments on commit aec3912

Please sign in to comment.