Giter Club home page Giter Club logo

alma-python-client's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alma-python-client's Issues

Type problem on the start and end parameter

When creating a data export, the start and end parameter are expecting datetime values :
image

But when I give start and end as datetime, I get this error :
formated_date_begin = datetime.strptime(date_begin_yyyymmdd, "%Y%m%d")
formated_date_end = datetime.strptime(date_end_yyyymmdd, "%Y%m%d")
image

When I give start and end as string in this format : "YYYY-MM-DD", I get this error :
formated_date_begin = datetime.strptime(date_begin_yyyymmdd, "%Y%m%d").strftime("%Y-%m-%d")
formated_date_end = datetime.strptime(date_end_yyyymmdd, "%Y%m%d").strftime("%Y-%m-%d")
image

And when I give start as a string and end as a datetime, the code runs well but the end date isn't taken into account and the export contains all the payments since the start date.
formated_date_begin = datetime.strptime(date_begin_yyyymmdd, "%Y%m%d").strftime("%Y-%m-%d")
formated_date_end = datetime.strptime(date_end_yyyymmdd, "%Y%m%d")

Bump it to pip

Hi,

Any idea when you will update it and push it to pip ?

Add documentation

  • Setup a Sphinx doc with a quickstart on how to use the lib.
  • Configure alma-client.readthedocs.org to host the doc

Payload for payment eligibility method does not work according to demo code

This sample code not working for me

    "purchase_amount": 10000,
    "return_url": "http://merchant.com/payment-success",
    "shipping_address": {
        "first_name": "Martin",
        "last_name": "Dupond",
        "line1": "1 rue de Rivoli",
        "postal_code": "75004",
        "city": "Paris"
    }
}

eligibility = alma_client.payments.eligibility(payment_data)

Response

{'constraints': {'purchase_amount': {'maximum': 200000, 'minimum': 10000}},
 'eligible': False,
 'installments_count': 3,
 'reasons': {'purchase_amount': 'missing_field'}}

I had to wrap my payload into payment property.

eligibility = alma_client.payments.eligibility({'payment': payment_data})

This is a little disturbing when a coder starts.

I also suggest adding a link to the official API documentation.

Thank you,

include_child_accounts flag for function Exports.create()

Hello @elemoine,

Currently on our production environment we are collecting empty files even though there are payments.
As seen with Olivier, we have to add the flag include_child_accounts=True which is not a parameter in the create function from class Export. How can I pass this argument when creating an export ?
image

Thank you in advance

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.