GithubHelp home page GithubHelp logo

vipps-xml-reports's Introduction

Vipps XML reports

The contents of this repository has moved to Settlements.

The old content is kept here, for reference.

Old contents, for reference

This repository contains schemas and example files for Vipps XML settlement reports.

The new settlement report schema v3.0 can be found in the schemas directory together with the old v2.0 version for comparison.

Example files following schema v3.0 are included in the examples directory.

Changelog

Changes to Vipps settlement report XML schema v2.0 to v3.0

NB! New settlements will contain a mix of captures and refunds. To make the numbers unambiguous we have introduced new fields for capture and refund but kept gross and net fields as before.

  • Schema changes from v2.0 to v3.0:

  • Changes to PaymentsInfo:

    • ReportDateFrom and ReportDateTo fields:
      • Drop time part, keep only date (in yyyy-mm-dd format)
      • Change schema type from xs:string to xs:date
    • Remove control sums (TotalSettledGrossAmount, TotalSettledNetAmount, TotalSettledFeeAmount, and TotalSettledRefundAmount)
    • Move NumOfSettlements after SettlementInfo blocks to facilitate future streaming optimizations for large files
  • Changes to TransactionInfo:

    • Rename TransactionDate to TransactionTime and:
      • Change type from xs:string to xs:dateTime
      • Fix timezone bug from previous report system where time UTC formatting was applied to Oslo time.
      • Now always Oslo timezone, consistent with dates
    • Change type of TransactionID from xs:string to xs:long
    • Add field TransactionCaptureAmount (always positive)
    • Add field TransactionRefundAmount (always negative)
    • Note that TransactionGrossAmount = TransactionCaptureAmount + TransactionRefundAmount
  • Changes to SettlementInfo:

    • Rename SettlementBatchDate to SettlementDate and:
      • Drop time part and change type from xs:string to xs:date
      • For new settlements, this date is within the inclusive range [ReportDateFrom, ReportDateTo] and is equal to or later than the date of the last transaction within the settlement
      • Note that the bank transfer will typically occur at a later date
    • Change type of SettlementID from xs:string to xs:long
    • Move NumOfTransactions and all amounts to below TransactionInfo fields, to facilitate future streaming optimizations for large files
    • Add field SettlementType ("Net" or "Gross")
    • Add field SettledAmount, which is the amount paid out or invoiced (net or gross depending on settlement type)
    • Add field CaptureSettlementAmount, sum of TransactionCaptureAmount fields
    • Add field RefundSettlementAmount, sum of TransactionRefundAmount fields
    • Note that GrossSettlementAmount is still the sum of TransactionGrossAmount fields
    • Note that GrossSettlementAmount = CaptureSettlementAmount + RefundSettlementAmount
  • Changes to FeeInfo:

    • FeeInfo will only be included for old reports with gross settlement type
    • Change type of FeeDate from xs:string to xs:date
    • Change type of FeeAccount from xs:long to xs:string
  • Changes to SettlementDetailsInfo:

    • Change type of MainAddressCity from xs:NCName to xs:string
  • Changes to VippsInfo:

    • Change type of WebSite from xs:NCName to xs:anyURI
    • Change type of Country from xs:NCName to xs:string

vipps-xml-reports's People

Contributors

cloveras avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

hakonslie

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.