{"id":18973344,"url":"https://github.com/cyangle/stripe","last_synced_at":"2025-04-19T16:38:19.189Z","repository":{"id":119846706,"uuid":"451271912","full_name":"cyangle/stripe","owner":"cyangle","description":"Stripe crystal lang client SDK generated by OpenAPI Generator.","archived":false,"fork":false,"pushed_at":"2024-09-08T07:20:03.000Z","size":18781,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-08T21:39:43.880Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cyangle.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}},"created_at":"2022-01-24T00:52:58.000Z","updated_at":"2024-09-08T07:19:56.000Z","dependencies_parsed_at":"2023-06-03T08:45:41.581Z","dependency_job_id":null,"html_url":"https://github.com/cyangle/stripe","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyangle%2Fstripe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyangle%2Fstripe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyangle%2Fstripe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cyangle%2Fstripe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cyangle","download_url":"https://codeload.github.com/cyangle/stripe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223704723,"owners_count":17188999,"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":[],"created_at":"2024-11-08T15:11:49.354Z","updated_at":"2024-11-08T15:11:49.911Z","avatar_url":"https://github.com/cyangle.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stripe\n\n***Experimental Stripe API Client!***\n\nThe Crystal module for the Stripe API\n\nThe Stripe REST API. Please see https://stripe.com/docs/api for more details.\n\nThis SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project with CUSTOM templates:\n\n- API version: 2024-06-20\n- Stripe OpenAPI version v1250\n- Package version: 0.0.4\n- Build package: org.openapitools.codegen.languages.CrystalClientCodegen\n- Custom templates: [crystal_client_generator](https://github.com/cyangle/crystal_client_generator)\n\nFor more information, please visit [https://stripe.com](https://stripe.com)\n\n## Installation\n\n### Install from Git\n\nAdd the following to shard.yaml\n\n```yaml\ndependencies:\n  stripe:\n    github: cyangle/stripe\n    version: ~\u003e 0.0.4\n```\n\n## Usage\n\n**Warning:** *Experimental Stripe SDK, use at your own risk!*\n\nCheck [here](https://stripe.com/docs/api) for more information about how to use stripe APIs.\n\nBelow lists only a few examples of the most interesting APIs, the client should support APIs provided by the stripe OpenAPI specification file as it's generated from the OpenAPI v3 specification `./stripe_api_spec_fixed.json`.\n\n### Require this shard in your project\n\nFirst you need to require it.\n\n```crystal\nrequire \"stripe\"\n\n# Or Require a specific api\nrequire \"stripe/api/balance_api\"\n```\n\n### Configure client with stripe credentials\n\n```crystal\nStripe.configure do |config|\n  config.access_token = \"STRIPE_API_KEY\"\nend\nStripe::ApiClient.default.default_headers[\"Stripe-Version\"] = \"2024-06-20\"\n```\n\nYou can try stripe APIs with their test API key: `sk_test_4eC39HqLyjWDarjtT1zdp7dc`\n\n### Create an instance of Stripe::BalanceApi\n\n```crystal\napi = Stripe::BalanceApi.new\n```\n\n#### Get balance\n\n```crystal\nbalance = api.get_balance\npp balance\n```\n\n## Development\n\nInstall dependencies\n\n```shell\nshards\n```\n\nRun the tests:\n\n```shell\ncrystal spec\n```\n\nRun lints\n\n```shell\n./bin/ameba\ncrystal tool format --check\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyangle%2Fstripe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcyangle%2Fstripe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcyangle%2Fstripe/lists"}