ebarimtv3

package module
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: MIT Imports: 7 Imported by: 0

README ยถ

๐Ÿงพ ebarimt-pos3-go

Go Report Card Go Version GORM

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.

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create your feature branch (git checkout -b feature/AmazingFeature)
  3. ๐Ÿ’พ Commit your changes (git commit -m 'Add some AmazingFeature')
  4. ๐Ÿ“ค Push to the branch (git push origin feature/AmazingFeature)
  5. ๐Ÿ”„ 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.

Documentation ยถ

Index ยถ

Constants ยถ

This section is empty.

Variables ยถ

This section is empty.

Functions ยถ

This section is empty.

Types ยถ

type EbarimtClient ยถ

type EbarimtClient struct {
	pos3.Pos3

	// * NOTE * : Optional & Integration To the Third Party
	DB           *gorm.DB
	MailHost     string
	MailPort     string
	MailFrom     string
	MailSubject  string
	MailPassword string
	MailUser     string
	TemplatePath string
}

func New ยถ

func New(input Input) *EbarimtClient

func (*EbarimtClient) CalculateTotals ยถ

func (*EbarimtClient) Create ยถ

type Input ยถ

type Input struct {
	Endpoint    string
	PosNo       string
	MerchantTin string
	IsDev       bool

	// * NOTE * : Optional & Integration To the Third Party
	DB           *gorm.DB // ะฅะพะพัะพะฝ ะฑะฐะนะถ ะฑะพะปะฝะพ. ะฅัั€ะฒัั ะฑะฐะนะฒะฐะป, database ะดััั€ ั…ะฐะดะณะฐะปะฝะฐ ะฐะฒั‚ะพะผะฐั‚ะฐะฐั€
	MailHost     string
	MailPort     string
	MailFrom     string
	MailSubject  string
	MailPassword string
	MailUser     string
	TemplatePath string
}

Directories ยถ

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL