๐งพ ebarimt-pos3-go

Ebarimt POS 3.0 Golang Implementation SDK - A comprehensive Go library for integrating with the Ebarimt POS 3.0 system.
โจ Features
- ๐ Complete POS 3.0 API implementation
- ๐ก๏ธ Type-safe Go structures for all API requests and responses
- โก Comprehensive error handling
- ๐ Built-in authentication and security features
- โ
Extensive test coverage
- ๐พ GORM integration for database operations
๐ฆ Installation
go get github.com/batorgil-it/ebarimt-pos3-go
๐ Quick Start
package main
import (
"github.com/batorgil-it/ebarimt-pos3-go"
"gorm.io/gorm"
)
func main() {
// Initialize the client with required parameters
client := ebarimtv3.New(ebarimtv3.Input{
Endpoint: "https://example.ebarimt.mn",
PosNo: "YOUR_POS_NUMBER",
MerchantTin: "YOUR_MERCHANT_TIN",
// Optional parameters
DB: nil, // Your GORM DB instance if you want to store receipts
MailHost: "", // SMTP host for email notifications
MailPort: 0, // SMTP port for email notifications
})
// Create a receipt
response, err := client.Create(models.CreateInputModel{
// Add your receipt details here
})
if err != nil {
// Handle error
}
// Use the response
fmt.Printf("Receipt created: %+v\n", response)
}
๐ Documentation
For detailed documentation and examples, please visit our documentation.
๐ Project Structure
ebarimt-pos3-go/
โโโ ๐ constants/ # Constant definitions
โโโ ๐ files/ # File handling utilities
โโโ ๐ pos3/ # Core POS 3.0 implementation
โโโ ๐ services/ # Service layer implementations
โโโ ๐ structs/ # Data structures
โโโ ๐ tests/ # Test files
โโโ ๐ utils/ # Utility functions
โ๏ธ Requirements
- ๐ท Go 1.23.5 or higher
- ๐ท GORM v1.25.12
- ๐ท Other dependencies as specified in go.mod
๐ค Contributing
We welcome contributions! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- ๐ด Fork the repository
- ๐ฟ Create your feature branch (
git checkout -b feature/AmazingFeature)
- ๐พ Commit your changes (
git commit -m 'Add some AmazingFeature')
- ๐ค Push to the branch (
git push origin feature/AmazingFeature)
- ๐ Open a Pull Request
๐งช Testing
Run the test suite:
go test ./...
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ฌ Support
For support, please open an issue in the GitHub repository or contact our support team.
๐ Acknowledgments
- ๐ฅ Thanks to all contributors who have helped shape this project
- ๐ Special thanks to the Ebarimt team for their support and documentation
๐ Security
For security concerns, please email security@techpartners.asia or open a security advisory in the GitHub repository.