{"id":25619345,"url":"https://github.com/hunterae/cashstar-ruby","last_synced_at":"2025-04-14T00:40:44.300Z","repository":{"id":13805264,"uuid":"16501171","full_name":"hunterae/cashstar-ruby","owner":"hunterae","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-01T18:21:22.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T14:52:29.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/hunterae.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}},"created_at":"2014-02-04T03:23:07.000Z","updated_at":"2018-02-13T15:07:39.000Z","dependencies_parsed_at":"2022-09-06T12:21:02.266Z","dependency_job_id":null,"html_url":"https://github.com/hunterae/cashstar-ruby","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunterae%2Fcashstar-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunterae%2Fcashstar-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunterae%2Fcashstar-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hunterae%2Fcashstar-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hunterae","download_url":"https://codeload.github.com/hunterae/cashstar-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248804408,"owners_count":21164125,"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":"2025-02-22T06:16:58.557Z","updated_at":"2025-04-14T00:40:44.278Z","avatar_url":"https://github.com/hunterae.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A CashStar Ruby Gem\nA Ruby wrapper for the CashStar REST API\n\nNote: This gem is a copy of the gem found here: https://github.com/crowdtap/cashstar. I created a copy of that gem because the cashstar team was not responding to my request to put their gem on Rubygems.\n\n## \u003ca name=\"installation\"\u003eInstallation\u003c/a\u003e\n    gem install cashstar\n\n## \u003ca name=\"Full API Docs\"\u003eFull Documentation\u003c/a\u003e\n\tplease consult your CashStar API documentation for full use cases and support\n\n## \u003ca name=\"Notes\"\u003eCurrent Limitations\u003c/a\u003e\n\tas of v0.1.2, this gems supports json only and only one gift card is supported per order.\n\n## \u003ca name=\"examples\"\u003eUsage Examples\u003c/a\u003e\n    require \"cashstar\"\n   \n\t# Configure your CashStar settings - for Rails, typically in /config/initializers/cashstar.rb\n\t# Optionally, store your credentials for each environment in a cashstar.yml file and load from there.\n\t\n\tCashstar.configure do |config|\n\t  config.username = 'username'\n\t  config.password = 'password'\n\t  config.endpoint = 'production or semi-production url'  \n\t  config.format = 'json' #or 'xml'\n\tend\n\t\n\t# Gift Card numbers are not returned by default - only urls to the hosted Gift Card and the associated challenge phrase\n\t# If you need the gift card number and pin, include the following in your config block:\n\t\n\tconfig.return_card_numbers = true\n\n    # Get all merchants enabled for this account\n    puts Cashstar.merchants\n\n    # Get all faceplates for a merchant\n    puts Cashstar.faceplates(:merchant_code)\n\n\t# Build an Order Entity\n\t# An order is composed of one or many gift card entities, which are in turn composed of delivery and message entities\n\tdelivery = Cashstar::Client::Delivery.new(:delivered_by =\u003e :CLIENT) \n\tmessage =  Cashstar::Client::Message.new(:body =\u003e 'Thanks for all the hard work!', :from =\u003e 'Santa Claus', :to =\u003e 'Rudolph')\n\tgift_card = Cashstar::Client::GiftCard.new(:merchant_code =\u003e 'GAP', :initial_balance =\u003e '100.00', :delivery =\u003e delivery, :message =\u003e message)\n\torder = Cashstar::Client::Order.new(:audit_number =\u003e '123456', :gift_card =\u003e gift_card) #Audit Number is required\n\n\n\t# Issue the built order\n\tputs Cashstar.issue(order)\n   \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunterae%2Fcashstar-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhunterae%2Fcashstar-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhunterae%2Fcashstar-ruby/lists"}