{"id":18766293,"url":"https://github.com/jonatanrdsantos/elixir-inter-sdk","last_synced_at":"2025-04-13T05:33:52.143Z","repository":{"id":200051162,"uuid":"705052460","full_name":"jonatanrdsantos/elixir-inter-sdk","owner":"jonatanrdsantos","description":"This is a simple wrapper around the Banco Inter's API - a Brazilian digital banking.","archived":false,"fork":false,"pushed_at":"2025-01-04T23:01:00.000Z","size":30,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-10T07:02:15.604Z","etag":null,"topics":["banco-inter","banco-inter-elixir-sdk","elixir","inter-elixir","inter-sdk"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonatanrdsantos.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-10-14T22:37:11.000Z","updated_at":"2025-01-04T23:01:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"b86e374e-2e54-4eb5-b961-4697f94ad83e","html_url":"https://github.com/jonatanrdsantos/elixir-inter-sdk","commit_stats":null,"previous_names":["jonatanrdsantos/elixir-inter-sdk"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonatanrdsantos%2Felixir-inter-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonatanrdsantos%2Felixir-inter-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonatanrdsantos%2Felixir-inter-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonatanrdsantos%2Felixir-inter-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonatanrdsantos","download_url":"https://codeload.github.com/jonatanrdsantos/elixir-inter-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670459,"owners_count":21142896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["banco-inter","banco-inter-elixir-sdk","elixir","inter-elixir","inter-sdk"],"created_at":"2024-11-07T18:40:03.233Z","updated_at":"2025-04-13T05:33:52.137Z","avatar_url":"https://github.com/jonatanrdsantos.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Inter\n\nThis is a simple wrapper around the Banco Inter's API - a Brazilian digital banking.\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `inter` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:inter, \"~\u003e 0.1.1\"}\n  ]\nend\n```\n\n\nUsage:\n```elixir\napi_key = \"-----BEGIN PRIVATE KEY-----\\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDQ8Z4ZQ8Z4ZQ8Z\\n-----END PRIVATE KEY-----\\n\"\napi_cert = \"-----BEGIN CERTIFICATE-----\\nMIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDQ8Z4ZQ8Z4ZQ8Z\\n-----END CERTIFICATE-----\\n\"\ngrant_type = \"client_credentials\"\nscope = \"pix.write pix.read webhook.read webhook.write cob.write pagamento-pix.write\"\nclient_secret = \"secret\"\nclient_id = \"client_id\"\n\npix_charge_request = %Inter.Pix.Charge.Request{\n  calendario: %Inter.Pix.Charge.Request.Calendario{\n    expiracao: 3600\n  },\n  devedor: %Inter.Pix.Charge.Request.Devedor{\n    cpf: \"40894943030\",\n    nome: \"Jhon Doe\"\n  },\n  valor: %Inter.Pix.Charge.Request.Valor{\n    original: \"5.00\", \n    modalidadeAlteracao: 1\n  },\n  infoAdicionais: [\n    %Inter.Pix.Charge.Request.InfoAdicional{\n      nome: \"meu campo adicional\", \n      valor: \"algum valor 🤩\"\n    },\n    %Inter.Pix.Charge.Request.InfoAdicional{\n      nome: \"meu campo adicional\", \n      valor: \"algum valor 🤩\"\n    },\n    %Inter.Pix.Charge.Request.InfoAdicional{\n      nome: \"meu campo adicional\", \n      valor: \"algum valor 🤩\"\n    },\n  ],\n  chave: \"46650032907724\"\n}\n\nInter.Client.new(client_id, client_secret, scope, grant_type, api_cert, api_key)\n |\u003e Inter.pix_charge(pix_charge_request)\n```\n\n**How to run locally?**\n\n- `docker compose run --rm app bash`\n  - `mix deps.get` to install the dependencies\n  - `iex -S mix` to open the elixir REPL\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at \u003chttps://hexdocs.pm/inter\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonatanrdsantos%2Felixir-inter-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonatanrdsantos%2Felixir-inter-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonatanrdsantos%2Felixir-inter-sdk/lists"}