Giter Club home page Giter Club logo

seating_chart_presenter_plugin's Introduction

Seating chart Presenter Plugin

A COPRL presenter plugin that provides three components for implementing a Seats.io integration. The available components are Seating Chart, Chart Designer, and Event Manager

Installation

Add this line to your application's Gemfile:

gem 'seating_chart_presenter_plugin', git: 'https://github.com/evvnt/seating_chart_presenter_plugin', require: false

And then execute:

$ bundle

Usage in POMs

Seating Chart

plugin :seating_chart

content do
  seating_chart('[SEATSIO_CHART_KEY]',
                       '[SEATSIO.PUBLIC_KEY]',
                       event_id: '[EVENT_ID]', # as a string
                       pricing: [
                          {category: 1, price: 30.0}, 
                          {category: 2, price: 35.0}
                       ],
                       available_categories: [1,2],
                       currency: 'USD',
                       locale: 'en-US')
end

Chart Designer

plugin :seating_chart

content do
  seating_designer('[SUBACCOUNT_ID]',  # Now know as "workspace"
                          '[DESIGNER_KEY]',
                           chart_key: '[CHART KEY]',
                           disabled: [],  # list of disabled designer functions ie: 'focalPoint', 'backgroundImage', etc.
                           readonly: [],  # list of disabled functions ie: 'chartName', 'categoryList'
                           language: 'en',
                           open_latest_drawing: true,
                           show_on_update: '',  # ID of element to show on chart update (optional)
                           hide_on_update: '',  # ID of element to hide on chart update (optional)
                           chart_key_input_id: '' # ID of input element to store chart key (optional) 
                         )
end

Event Manager

plugin :seating_chart

content do
  event_manager('[SUBACCOUNT_ID]', 
                       '[SECRET_KEY]',
                        event_id: '[EVENT_ID]',
                        mode: 'manageObjectStatuses' # or 'manageForSaleConfig'
                      )
end

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/evvnt/seating_chart_presenter_plugin.

seating_chart_presenter_plugin's People

Contributors

dsgraham avatar jadefish avatar semantic-release-bot avatar dependabot-preview[bot] avatar kgrafius avatar rx avatar rhetprieto avatar dependabot[bot] avatar

Watchers

 avatar Mark Unsworth avatar  avatar James Cloos avatar Chris Marques avatar  avatar  avatar  avatar

Forkers

jadefish

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.