Class: TessituraRest

Constant Summary collapse

VERSION =
'1.4.6'.freeze

Instance Method Summary collapse

Methods included from WebLogins

#create_web_login, #get_web_login

Methods included from WebContents

#get_web_contents

Methods included from SubLineItems

#get_return_tickets

Methods included from TicketProtectionPerformances

#get_ticket_protection_performances

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, #transfer_session, #update_login

Methods included from Sections

#get_section

Methods included from Registration

#register_user

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 PricingRules

#get_pricing_rules

Methods included from PriceTypes

#get_price_type, #get_price_type_details

Methods included from Phones

#create_primary_phone, #get_phone, #update_phone

Methods included from PerformancePackageModeOfSales

#performance_package_mode_of_sales

Methods included from PerformanceExtension

#get_performance_availability, #get_performance_detail, #get_performance_prices, #get_performance_seat_summaries, #get_performance_seats, #get_performance_summaries, #get_performance_zone_availability, #get_performances_by_production, #get_seat_holds

Methods included from PaymentPlanExtension

#add_billing_payment_plan, #add_tms_billing_payment_plan, #preview_billing_payment_plan, #remove_payment_plan, #update_payment_plan, #validate_payment_plan

Methods included from PaymentGateway

#authorize_payment, #finalize_payment, #reversal_request

Methods included from PaymentComponent

#fetch_payment_component

Methods included from Payments

#get_on_account_balance, #reserve_payment_id

Methods included from Package

#get_package_by_id, #get_package_detail, #get_package_performance_groups, #get_package_prices, #get_package_seat_summaries, #get_package_seats, #packages_by_performance_date

Methods included from Orders

#get_products_view

Methods included from Login

#login_as_guest, #login_using_email, #login_using_external, #login_with_token, #logout, #with_user

Methods included from LocalProcedure

#execute_local_procedure_v2, #execute_local_procedure_with_multiple_result_sets

Methods included from Issues

#create_issue

Methods included from GiftCertificates

#get_gift_certificate_info

Methods included from Email

#send_login_credentials, #send_order_confirmation

Methods included from Diagnostics

#diagnostics_status, #seat_server_status

Methods included from Countries

#get_all_countries

Methods included from Constituents

#create_constituent_by_snapshot, #get_constituent_snapshot, #is_household?, #update_constituent, #update_household

Methods included from Constituencies

#create_constituencies, #get_constituencies

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, #apply_on_account, #change_mode_of_sale, #checkout, #checkout_with_tms, #checkout_with_zip, #empty_cart, #get_cart, #get_checkout_complete, #get_properties, #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, #validate_cart

Methods included from BillingSchedules

#get_billing_schedules

Methods included from Appeals

#get_appeal_info

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 Accounts

#get_all_accounts

Constructor Details

#initialize(_options = {}) ⇒ TessituraRest

Returns a new instance of TessituraRest.



48
49
50
51
52
# File 'lib/tessitura_rest.rb', line 48

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

Instance Method Details

#base_api_endpoint(end_point) ⇒ Object



54
55
56
# File 'lib/tessitura_rest.rb', line 54

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