{"id":37201131,"url":"https://github.com/iota-uz/click","last_synced_at":"2026-01-14T23:11:22.240Z","repository":{"id":293605488,"uuid":"977922355","full_name":"iota-uz/click","owner":"iota-uz","description":"IOTA Go client for the CLICK Pass API — work with payments, invoices, and fiscalization in your Go applications. Generated with OpenAPI Generator. Includes support for API key auth, server configuration, and handy utility helpers","archived":false,"fork":false,"pushed_at":"2025-05-16T07:02:53.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-16T07:33:48.149Z","etag":null,"topics":["api-client","click","click-pass","go","openapi"],"latest_commit_sha":null,"homepage":"https://www.iota.uz","language":"Mustache","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iota-uz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-05T07:29:39.000Z","updated_at":"2025-05-16T06:34:21.000Z","dependencies_parsed_at":"2025-05-16T07:33:49.735Z","dependency_job_id":"d66ce861-b240-4ef9-b698-fdc3237a8a9c","html_url":"https://github.com/iota-uz/click","commit_stats":null,"previous_names":["iota-uz/click"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/iota-uz/click","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iota-uz%2Fclick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iota-uz%2Fclick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iota-uz%2Fclick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iota-uz%2Fclick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iota-uz","download_url":"https://codeload.github.com/iota-uz/click/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iota-uz%2Fclick/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28437936,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T22:37:52.437Z","status":"ssl_error","status_checked_at":"2026-01-14T22:37:31.496Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api-client","click","click-pass","go","openapi"],"created_at":"2026-01-14T23:11:21.516Z","updated_at":"2026-01-14T23:11:22.192Z","avatar_url":"https://github.com/iota-uz.png","language":"Mustache","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go API client for clickapi\n\nAPI for managing payments and fiscalization with CLICK Pass.\n\n## Overview\nThis API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project.  By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.\n\n- API version: 1.0.0\n- Package version: 1.0.0\n- Build date: 2025-05-16T12:32:01.201873300+05:00[Asia/Tashkent]\n- Generator version: 7.9.0\n- Build package: org.openapitools.codegen.languages.GoClientCodegen\nFor more information, please visit [https://www.iota.uz](https://www.iota.uz)\n\n## Installation\n\nInstall the following dependencies:\n\n```sh\ngo get github.com/stretchr/testify/assert\ngo get golang.org/x/net/context\n```\n\nPut the package under your project folder and add the following in import:\n\n```go\nimport clickapi \"github.com/iota-uz/click/clickapi\"\n```\n\nTo use a proxy, set the environment variable `HTTP_PROXY`:\n\n```go\nos.Setenv(\"HTTP_PROXY\", \"http://proxy_name:proxy_port\")\n```\n\n## Configuration of Server URL\n\nDefault configuration comes with `Servers` field that contains server objects as defined in the OpenAPI specification.\n\n### Select Server Configuration\n\nFor using other server than the one defined on index 0 set context value `clickapi.ContextServerIndex` of type `int`.\n\n```go\nctx := context.WithValue(context.Background(), clickapi.ContextServerIndex, 1)\n```\n\n### Templated Server URL\n\nTemplated server URL is formatted using default variables from configuration or from context value `clickapi.ContextServerVariables` of type `map[string]string`.\n\n```go\nctx := context.WithValue(context.Background(), clickapi.ContextServerVariables, map[string]string{\n\t\"basePath\": \"v2\",\n})\n```\n\nNote, enum values are always validated and all unused variables are silently ignored.\n\n### URLs Configuration per Operation\n\nEach operation can use different server URL defined using `OperationServers` map in the `Configuration`.\nAn operation is uniquely identified by `\"{classname}Service.{nickname}\"` string.\nSimilar rules for overriding default operation server index and variables applies by using `clickapi.ContextOperationServerIndices` and `clickapi.ContextOperationServerVariables` context maps.\n\n```go\nctx := context.WithValue(context.Background(), clickapi.ContextOperationServerIndices, map[string]int{\n\t\"{classname}Service.{nickname}\": 2,\n})\nctx = context.WithValue(context.Background(), clickapi.ContextOperationServerVariables, map[string]map[string]string{\n\t\"{classname}Service.{nickname}\": {\n\t\t\"port\": \"8443\",\n\t},\n})\n```\n\n## Documentation for API Endpoints\n\nAll URIs are relative to *https://api.click.uz*\n\nClass | Method | HTTP request | Description\n------------ | ------------- | ------------- | -------------\n*CardAPI* | [**CreateCardToken**](docs/CardAPI.md#createcardtoken) | **Post** /v2/merchant/card_token/request | Create card token\n*CardAPI* | [**DeleteCardToken**](docs/CardAPI.md#deletecardtoken) | **Delete** /v2/merchant/card_token/{service_id}/{card_token} | Delete card token\n*CardAPI* | [**VerifyCardToken**](docs/CardAPI.md#verifycardtoken) | **Post** /v2/merchant/card_token/verify | Verify card token\n*FiscalizationAPI* | [**GetFiscalData**](docs/FiscalizationAPI.md#getfiscaldata) | **Get** /v2/merchant/payment/ofd_data/{service_id}/{payment_id} | Retrieving fiscal data (URL)\n*FiscalizationAPI* | [**SubmitFiscalItems**](docs/FiscalizationAPI.md#submitfiscalitems) | **Post** /v2/merchant/payment/ofd_data/submit_items | Fiscalization of goods and services\n*FiscalizationAPI* | [**SubmitFiscalQRCode**](docs/FiscalizationAPI.md#submitfiscalqrcode) | **Post** /v2/merchant/payment/ofd_data/submit_qrcode | Registering already fiscalized check\n*InvoiceAPI* | [**CheckInvoiceStatus**](docs/InvoiceAPI.md#checkinvoicestatus) | **Get** /v2/merchant/invoice/status/{service_id}/{invoice_id} | Invoice status check\n*InvoiceAPI* | [**CreateInvoice**](docs/InvoiceAPI.md#createinvoice) | **Post** /v2/merchant/invoice/create | Create invoice\n*PaymentAPI* | [**CheckPaymentStatus**](docs/PaymentAPI.md#checkpaymentstatus) | **Get** /v2/merchant/payment/status/{service_id}/{payment_id} | Payment status check\n*PaymentAPI* | [**CheckPaymentStatusByMTI**](docs/PaymentAPI.md#checkpaymentstatusbymti) | **Get** /v2/merchant/payment/status_by_mti/{service_id}/{merchant_trans_id} | Payment status check by merchant_trans_id\n*PaymentAPI* | [**ConfirmPayment**](docs/PaymentAPI.md#confirmpayment) | **Post** /v2/merchant/click_pass/confirm | Payment confirmation\n*PaymentAPI* | [**CreatePaymentWithClickPass**](docs/PaymentAPI.md#createpaymentwithclickpass) | **Post** /v2/merchant/click_pass/payment | Payment with CLICK Pass\n*PaymentAPI* | [**DisableConfirmationMode**](docs/PaymentAPI.md#disableconfirmationmode) | **Delete** /v2/merchant/click_pass/confirmation/{service_id} | Disable confirmation mode\n*PaymentAPI* | [**EnableConfirmationMode**](docs/PaymentAPI.md#enableconfirmationmode) | **Put** /v2/merchant/click_pass/confirmation/{service_id} | Enable confirmation mode\n*PaymentAPI* | [**PartialRefund**](docs/PaymentAPI.md#partialrefund) | **Delete** /v2/merchant/payment/partial_reversal/{service_id}/{payment_id}/{amount} | Partial refund\n*PaymentAPI* | [**PaymentWithToken**](docs/PaymentAPI.md#paymentwithtoken) | **Post** /v2/merchant/card_token/payment | Payment with token\n*PaymentAPI* | [**ReversePayment**](docs/PaymentAPI.md#reversepayment) | **Delete** /v2/merchant/payment/reversal/{service_id}/{payment_id} | Payment reversal (cancel)\n\n\n## Documentation For Models\n\n - [CardTokenRequest](docs/CardTokenRequest.md)\n - [CardTokenResponse](docs/CardTokenResponse.md)\n - [CardTokenVerifyRequest](docs/CardTokenVerifyRequest.md)\n - [CardTokenVerifyResponse](docs/CardTokenVerifyResponse.md)\n - [ClickPassPaymentRequest](docs/ClickPassPaymentRequest.md)\n - [ClickPassPaymentResponse](docs/ClickPassPaymentResponse.md)\n - [CommissionInfo](docs/CommissionInfo.md)\n - [CompleteRequest](docs/CompleteRequest.md)\n - [CompleteResponse](docs/CompleteResponse.md)\n - [ConfirmationModeResponse](docs/ConfirmationModeResponse.md)\n - [DeleteCardTokenResponse](docs/DeleteCardTokenResponse.md)\n - [FiscalDataResponse](docs/FiscalDataResponse.md)\n - [FiscalQRCodeRequest](docs/FiscalQRCodeRequest.md)\n - [FiscalQRCodeResponse](docs/FiscalQRCodeResponse.md)\n - [FiscalizationRequest](docs/FiscalizationRequest.md)\n - [FiscalizationResponse](docs/FiscalizationResponse.md)\n - [InvoiceRequest](docs/InvoiceRequest.md)\n - [InvoiceResponse](docs/InvoiceResponse.md)\n - [InvoiceStatusResponse](docs/InvoiceStatusResponse.md)\n - [Item](docs/Item.md)\n - [PartialRefundResponse](docs/PartialRefundResponse.md)\n - [PaymentConfirmationRequest](docs/PaymentConfirmationRequest.md)\n - [PaymentConfirmationResponse](docs/PaymentConfirmationResponse.md)\n - [PaymentReversalResponse](docs/PaymentReversalResponse.md)\n - [PaymentStatusByMTIResponse](docs/PaymentStatusByMTIResponse.md)\n - [PaymentStatusResponse](docs/PaymentStatusResponse.md)\n - [PrepareRequest](docs/PrepareRequest.md)\n - [PrepareResponse](docs/PrepareResponse.md)\n - [TokenPaymentRequest](docs/TokenPaymentRequest.md)\n - [TokenPaymentResponse](docs/TokenPaymentResponse.md)\n\n\n## Documentation For Authorization\n\n\nAuthentication schemes defined for the API:\n### AuthHeader\n\n- **Type**: API key\n- **API key parameter name**: Auth\n- **Location**: HTTP header\n\nNote, each API key must be added to a map of `map[string]APIKey` where the key is: AuthHeader and passed in as the auth context for each request.\n\nExample\n\n```go\nauth := context.WithValue(\n\t\tcontext.Background(),\n\t\tclickapi.ContextAPIKeys,\n\t\tmap[string]clickapi.APIKey{\n\t\t\t\"AuthHeader\": {Key: \"API_KEY_STRING\"},\n\t\t},\n\t)\nr, err := client.Service.Operation(auth, args)\n```\n\n\n## Documentation for Utility Methods\n\nDue to the fact that model structure members are all pointers, this package contains\na number of utility functions to easily obtain pointers to values of basic types.\nEach of these functions takes a value of the given basic type and returns a pointer to it:\n\n* `PtrBool`\n* `PtrInt`\n* `PtrInt32`\n* `PtrInt64`\n* `PtrFloat`\n* `PtrFloat32`\n* `PtrFloat64`\n* `PtrString`\n* `PtrTime`\n\n## Author\n\ndanil@iota.uz\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiota-uz%2Fclick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiota-uz%2Fclick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiota-uz%2Fclick/lists"}