autofleet / locomotion Goto Github PK
View Code? Open in Web Editor NEWAn open-source rider/passenger mobile app written in React Native and Node.js that can be customized and modified to support any ride-hailing
License: MIT License
An open-source rider/passenger mobile app written in React Native and Node.js that can be customized and modified to support any ride-hailing
License: MIT License
Context:
In some cases Locomotion based apps need the ability to manage payments and charging transactions automatically.
As there is significant variability in how charging and billing flows are implemented, the approach is to define a specification that Locomotion app developers would be able to implement against.
This specification is called: External Billing Server API (EBS) and will be provided through a pull request on the public repo.
A secret will be defined in both Locomotion and EBS, each request will contain a header - Authorization (JWT bearer token) that will include a secret containing the user id.
{
"userId": "UUID"
}
Body:
{
"id": "UUID",
"firstName": "STRING",
"lastName": "STRING",
"email": "STRING",
"phoneNumber": "STRING",
"createdAt": "STRING",
}
Response:
{
"status": "OK",
}
Response:
{
"balance": 100,
"currency": "USD",
"currencySymbol": "$",
"bookingLimitation": "none",
"charingType": "per-ride",
}
bookingLimitation can be of
charingType can be of
This method can be called more then one time.
Body:
TBD
Response:
{
"status": "ok",
}
This url should return an HTML to be showed to the user in app after clinking "Billing" from the main menu.
This method can be called more then one time, every call will replace the last data saved.
Body:
{
"status": "done",
"priceCharged": 20,
"currency": "USD",
"currencySymbol": "$",
"documents": [
{
"name": "Receipt",
"url": "https://ebs.com/documents/uuid/?token"
}
]
}
Response:
{
"status": "ok",
}
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.