Class: TessituraRest

Constant Summary collapse

VERSION =
'0.7.0'

Instance Method Summary collapse

Methods included from WebLogins

#get_web_login

Methods included from WebContents

#get_web_contents

Methods included from SubLineItems

#get_return_tickets

Methods included from States

#get_all_states

Methods included from SecurityUserGroups

#security_user_groups

Methods included from Session

#create_session, #get_expiration, #get_promotion, #get_renewals, #get_session, #get_shipping_methods, #get_variables, #load_existing_order, #send_credentials, #set_expiration

Methods included from Sections

#get_section

Methods included from ProductionSeason

#get_production_season, #productions_by_performance_date

Methods included from ProductKeywords

#get_keywords

Methods included from ProductionExtension

#get_production, #get_production_details

Methods included from PriceTypes

#get_price_type

Methods included from Phones

#create_primary_phone, #create_secondary_phone

Methods included from PerformancePackageModeOfSales

#performance_package_mode_of_sales

Methods included from PerformanceExtension

#get_performance_availability, #get_performance_detail, #get_performance_seat_summaries, #get_performance_seats, #get_performance_summaries, #get_performances_by_production

Methods included from PaymentPlanExtension

#add_billing_payment_plan, #preview_billing_payment_plan, #remove_payment_plan, #validate_payment_plan

Methods included from Package

#get_package_by_id, #get_package_detail, #get_package_performance_groups, #get_package_prices, #packages_by_performance_date

Methods included from Orders

#get_products_view, #print_order_ticket_elements

Methods included from Login

#login_using_email, #login_using_external, #login_with_token, #with_user

Methods included from LocalProcedure

#execute_local_procedure, #execute_local_procedure_v2, #execute_local_procedure_with_multiple_result_sets

Methods included from Issues

#create_issue, #get_issue, #get_issues

Methods included from GiftCertificates

#get_gift_certificate_info

Methods included from Email

#send_login_credentials, #send_order_confirmation

Methods included from Diagnostics

#diagnostics_status

Methods included from Countries

#get_all_countries

Methods included from Constituencies

#create_constituencies, #get_constituencies, #get_constituent_snapshot

Methods included from Cart

#add_contribution, #add_gift_certificate, #add_nfs_package_item, #add_on_account, #add_or_update_fee, #add_order_comment, #add_package_item, #add_sub_package_item, #apply_gift_certificate, #change_mode_of_sale, #empty_cart, #get_cart, #get_properties, #order_confirm_text, #print_ticket_elements, #remove_contribution, #remove_gift_certificate, #remove_nfs_package_item, #remove_on_account, #remove_package_item, #remove_sub_package_item, #remove_tickets, #reserve_tickets, #return_tickets, #un_apply_gift_certificate, #update_cart_properties_custom_data, #update_properties, #update_source, #validate_cart, #web_cart_text

Methods included from BillingSchedules

#get_billing_schedules

Methods included from Attributes

#add_attribute

Methods included from Addresses

#create_address, #deactivate_address, #delete_address, #get_address, #get_all_addresses, #update_address

Methods included from Actions

#create_action, #get_action, #get_actions

Methods included from Accounts

#get_all_accounts

Constructor Details

#initialize(options = {}) ⇒ TessituraRest

Returns a new instance of TessituraRest.



41
42
43
44
45
# File 'lib/tessitura_rest.rb', line 41

def initialize(options={})
  @auth = { username: ENV['TESSITURA_USERNAME'],
            password: ENV['TESSITURA_PASSWORD'] }
  @headers = { 'Accept': 'application/json' }
end

Instance Method Details

#base_api_endpoint(end_point) ⇒ Object



47
48
49
# File 'lib/tessitura_rest.rb', line 47

def base_api_endpoint(end_point)
  "#{ENV['TESSITURA_URL']}#{end_point}"
end