{"id":20672111,"url":"https://github.com/workarea-commerce/workarea-shipping-message","last_synced_at":"2025-07-17T14:36:14.567Z","repository":{"id":56898469,"uuid":"221284819","full_name":"workarea-commerce/workarea-shipping-message","owner":"workarea-commerce","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-17T15:04:10.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T17:35:05.605Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/workarea-commerce.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-12T18:28:17.000Z","updated_at":"2020-06-17T15:04:13.000Z","dependencies_parsed_at":"2022-08-20T17:40:41.247Z","dependency_job_id":null,"html_url":"https://github.com/workarea-commerce/workarea-shipping-message","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/workarea-commerce/workarea-shipping-message","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-shipping-message","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-shipping-message/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-shipping-message/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-shipping-message/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workarea-commerce","download_url":"https://codeload.github.com/workarea-commerce/workarea-shipping-message/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workarea-commerce%2Fworkarea-shipping-message/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265617430,"owners_count":23799044,"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-16T20:32:04.524Z","updated_at":"2025-07-17T14:36:14.529Z","avatar_url":"https://github.com/workarea-commerce.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Workarea Shipping Message\n================================================================================\n\nDiscount messaging plugin for the Workarea platform.\n\nOut of the box this plugin adds messaging to the cart to let a customer know how\nclose they are to receiving a free shipping discount.\n\nThe plugin includes seed data that sets up a free shipping discount with message.\n\nConfiguration\n--------------------------------------------------------------------------------\n\nNo additional configuration is necessary to use this plugin with free shipping messaging.\n\nOther discount types can be configured to allow messaging.\nTo configure another discount type for messaging you will need to\n\n1. Decorate the discount type and include Pricing::Discount::Message\n2. Add a method called discount_message_valid? to the decorated discount type.\n    See workarea-shipping-message/app/models/workarea/pricing/discount/shipping.decorator\n    for an example.\n3. Create a new discount that meets the criteria of your discount_message_valid?\n    method\n4. Add a method to render your discount message along with any necessary logic to\n    the relevant view_model for where your message will be displayed.\n5. Call the discount render method in the view where your message will be displayed\n\nIf you think your new discount message might be a useful addition to this plugin\nplease include a member of the plugin team on your pull request or open a PR against\nthis plugin.\n\nWorkarea Platform Documentation\n--------------------------------------------------------------------------------\n\nSee [https://developer.workarea.com](https://developer.workarea.com) for Workarea platform documentation.\n\nCopyright \u0026 Licensing\n--------------------------------------------------------------------------------\nWorkarea Commerce Platform is released under the [Business Software License](https://github.com/workarea-commerce/workarea/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkarea-commerce%2Fworkarea-shipping-message","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkarea-commerce%2Fworkarea-shipping-message","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkarea-commerce%2Fworkarea-shipping-message/lists"}