Code Monkey home page Code Monkey logo

dinero-go's People

Contributors

eikster-dk avatar

Stargazers

 avatar

dinero-go's Issues

Allow Call to handle dinero throttling

If the client get throttled by too many requests the API will return an 429 error. Handle this with a specific error message to allow the consumers of the library to handle it gracefully with easy error checking.

Add CircleCi build

Add a CircleCi build configuration to run and test the SDK before allowing the PR to be merged into master

Create a logger

Create a logger in the SDK that can be replaced by outside implementations of the logger interface

add type alias for all const properties

To improve the quality of the SDK, add a property for all const types in the SDK.

For example:

// Payment terms
const (
	Netto           = "Netto"
	NettoCash       = "NettoCash"
	CurrentMonthOut = "CurrentMonthNettoOut"
)

Can have a type alias like

// PaymentTerm represents how payment terms in dinero regnskab
type PaymentTerm string

// Payment terms
const (
	Netto            PaymentTerm = "Netto"
	NettoCash        PaymentTerm = "NettoCash"
	CurrentMonthOut  PaymentTerm = "CurrentMonthNettoOut"
)

Packages have const without a type alias is:

  • invoices
  • account
  • contacts

Add automatic pagination

Add an automatic pagination feature that will allow you to go through the pages of the paginated objects like

var params ListParams
iter, _ := List(c, params)

for iter.Next() {
   item := iter.Item()
   // Do something to item
}

This should work on the following endpoints

  • Invoice list
  • contacts list
  • product list
  • Sales list
  • SalesCreditNotes list
  • TradeOffers list

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.