Class: TessituraRest
- Inherits:
-
Object
- Object
- TessituraRest
- Includes:
- Accounts, Actions, Addresses, Appeals, Attributes, BillingSchedules, Cart, Constituencies, Constituents, Countries, Diagnostics, Email, GiftCertificates, HTTParty, Issues, LocalProcedure, Login, Orders, Package, PaymentPlanExtension, PerformanceExtension, PerformancePackageModeOfSales, Phones, PriceTypes, ProductKeywords, ProductionExtension, ProductionSeason, Registration, Sections, SecurityUserGroups, Session, States, SubLineItems, WebContents, WebLogins
- Defined in:
- lib/tessitura_rest.rb,
lib/tessitura_rest/version.rb
Constant Summary collapse
- VERSION =
'0.8.6.4'
Instance Method Summary collapse
- #base_api_endpoint(end_point) ⇒ Object
-
#initialize(options = {}) ⇒ TessituraRest
constructor
A new instance of TessituraRest.
Methods included from WebLogins
#create_web_login, #get_web_login
Methods included from WebContents
Methods included from SubLineItems
Methods included from States
Methods included from SecurityUserGroups
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
Methods included from Registration
Methods included from ProductionSeason
#get_production_season, #productions_by_performance_date
Methods included from ProductKeywords
Methods included from ProductionExtension
#get_production, #get_production_details
Methods included from PriceTypes
#get_price_type, #get_price_type_details
Methods included from Phones
#create_primary_phone, #create_secondary_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
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, #get_package_seats, #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, #logout, #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
Methods included from Email
#send_login_credentials, #send_order_confirmation
Methods included from Diagnostics
Methods included from 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, #change_mode_of_sale, #checkout, #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
Methods included from Appeals
Methods included from Attributes
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
Constructor Details
#initialize(options = {}) ⇒ TessituraRest
Returns a new instance of TessituraRest.
44 45 46 47 48 |
# File 'lib/tessitura_rest.rb', line 44 def initialize(={}) @auth = { username: ENV['TESSITURA_USERNAME'], password: ENV['TESSITURA_PASSWORD'] } @headers = { 'Accept': 'application/json' } end |
Instance Method Details
#base_api_endpoint(end_point) ⇒ Object
50 51 52 |
# File 'lib/tessitura_rest.rb', line 50 def base_api_endpoint(end_point) "#{ENV['TESSITURA_URL']}#{end_point}" end |