alma / alma-python-client Goto Github PK
View Code? Open in Web Editor NEWPython API Client for the Alma API
License: MIT License
Python API Client for the Alma API
License: MIT License
When creating a data export, the start and end parameter are expecting datetime values :
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")
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")
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")
I realized there is a config for black, shall we add one for isort as well?
Hi,
Any idea when you will update it and push it to pip ?
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,
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 ?
Thank you in advance
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.