Sha256: af2862e693d41a0218c45f6b67f9f1c5a79fb96d7bd3cb6030cd2b470988c1fe

Contents?: true

Size: 1.32 KB

Versions: 10

Compression:

Stored size: 1.32 KB

Contents

require 'require_all'
require_rel 'tessitura_rest'
require 'json'
require 'httparty'

class TessituraRest
  include HTTParty

  include Accounts
  include Addresses
  include Attributes
  include Appeals
  include BillingSchedules
  include Cart
  include Constituencies
  include Constituents
  include Countries
  include Campaigns
  include Diagnostics
  include Email
  include GiftCertificates
  include Issues
  include LocalProcedure
  include Login
  include Orders
  include Package
  include Payments
  include PaymentComponent
  include PaymentGateway
  include PaymentPlanExtension
  include PerformanceExtension
  include PerformancePackageModeOfSales
  include Phones
  include PriceTypes
  include PricingRules
  include ProductionExtension
  include ProductKeywords
  include ProductionSeason
  include Registration
  include Sections
  include Session
  include SecurityUserGroups
  include States
  include TicketProtectionPerformances
  include SubLineItems
  include WebContents
  include WebLogins

  def initialize(_options = {})
    @auth = { username: ENV.fetch('TESSITURA_USERNAME'),
              password: ENV.fetch('TESSITURA_PASSWORD') }
    @headers = { 'Accept': 'application/json', 'Content-Type': 'application/json' }
  end

  def base_api_endpoint(end_point)
    "#{ENV.fetch('TESSITURA_v16_URL')}#{end_point}"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
tessitura_rest-2.1.5 lib/tessitura_rest.rb
tessitura_rest-2.1.4 lib/tessitura_rest.rb
tessitura_rest-2.1.3 lib/tessitura_rest.rb
tessitura_rest-2.1.2 lib/tessitura_rest.rb
tessitura_rest-2.1.1 lib/tessitura_rest.rb
tessitura_rest-2.1.0 lib/tessitura_rest.rb
tessitura_rest-2.0.9 lib/tessitura_rest.rb
tessitura_rest-2.0.8 lib/tessitura_rest.rb
tessitura_rest-2.0.7 lib/tessitura_rest.rb
tessitura_rest-2.0.6 lib/tessitura_rest.rb