Class: TessituraRest
- Inherits:
-
Object
- Object
- TessituraRest
- Includes:
- Accounts, Addresses, Appeals, Attributes, BillingSchedules, Campaigns, Cart, Constituencies, Constituents, Countries, Diagnostics, Email, GiftCertificates, HTTParty, Issues, LocalProcedure, Login, Orders, Package, PaymentComponent, PaymentGateway, PaymentPlanExtension, Payments, PerformanceExtension, PerformancePackageModeOfSales, Phones, PriceTypes, PricingRules, ProductKeywords, ProductionExtension, ProductionSeason, Registration, Sections, Session, States, SubLineItems, TicketProtectionPerformances, WebContents, WebLogins
- Defined in:
- lib/tessitura_rest.rb,
lib/tessitura_rest/version.rb
Constant Summary collapse
- VERSION =
'2.1.6'.freeze
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 TicketProtectionPerformances
#get_ticket_protection_performances
Methods included from States
Methods included from Session
#create_session, #get_expiration, #get_promotion, #get_renewals, #get_session, #get_shipping_methods, #get_variables, #load_existing_order, #send_credentials, #send_credentials_v16, #set_expiration, #set_expiration_v16, #transfer_session, #update_login
Methods included from Sections
#get_all_sections, #get_section
Methods included from Registration
#register_user, #register_user_v16
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 PricingRules
Methods included from PriceTypes
#get_price_type, #get_price_type_details
Methods included from Phones
#create_primary_phone, #delete_phone, #get_phone, #update_phone
Methods included from PerformancePackageModeOfSales
#performance_package_mode_of_sales
Methods included from PerformanceExtension
#get_performance_availability, #get_performance_availability_v16, #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_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, #store_card
Methods included from PaymentComponent
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
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, #create_issue_step, #get_issue, #update_issue
Methods included from GiftCertificates
Methods included from Email
#send_email, #send_login_credentials, #send_order_confirmation
Methods included from Diagnostics
#diagnostics_status, #seat_server_status
Methods included from Campaigns
Methods included from Countries
Methods included from Constituents
#create_constituent_by_snapshot, #create_constituent_by_snapshot_v16, #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, #add_gift_certificate, #add_membership_by_amount, #add_nfs_package_item, #add_on_account, #add_or_update_fee, #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_membership, #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
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 Accounts
#delete_account, #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( = {}) @auth = { username: ENV.fetch('TESSITURA_USERNAME'), password: ENV.fetch('TESSITURA_PASSWORD') } @headers = { 'Accept': 'application/json', 'Content-Type': '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_v16_URL')}#{end_point}" end |