apimatic-bcd-travel-sdk 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +28 -0
- data/README.md +180 -0
- data/bin/console +15 -0
- data/lib/bcd_travel_api/api_helper.rb +10 -0
- data/lib/bcd_travel_api/apis/air_api.rb +138 -0
- data/lib/bcd_travel_api/apis/air_availability_return_flight_api.rb +31 -0
- data/lib/bcd_travel_api/apis/air_fare_search_optional_services_api.rb +31 -0
- data/lib/bcd_travel_api/apis/air_fare_search_select_seat_api.rb +53 -0
- data/lib/bcd_travel_api/apis/air_fare_search_simple_api.rb +195 -0
- data/lib/bcd_travel_api/apis/base_api.rb +67 -0
- data/lib/bcd_travel_api/apis/cars_api.rb +563 -0
- data/lib/bcd_travel_api/apis/hotels_api.rb +930 -0
- data/lib/bcd_travel_api/apis/retrieve_versions_api.rb +32 -0
- data/lib/bcd_travel_api/apis/search_expenses_api.rb +88 -0
- data/lib/bcd_travel_api/apis/v20_api.rb +72 -0
- data/lib/bcd_travel_api/apis/v21_api.rb +535 -0
- data/lib/bcd_travel_api/client.rb +136 -0
- data/lib/bcd_travel_api/configuration.rb +205 -0
- data/lib/bcd_travel_api/exceptions/api_exception.rb +21 -0
- data/lib/bcd_travel_api/http/api_response.rb +19 -0
- data/lib/bcd_travel_api/http/auth/basic.rb +62 -0
- data/lib/bcd_travel_api/http/auth/bearer.rb +53 -0
- data/lib/bcd_travel_api/http/http_call_back.rb +10 -0
- data/lib/bcd_travel_api/http/http_method_enum.rb +10 -0
- data/lib/bcd_travel_api/http/http_request.rb +10 -0
- data/lib/bcd_travel_api/http/http_response.rb +10 -0
- data/lib/bcd_travel_api/http/proxy_settings.rb +22 -0
- data/lib/bcd_travel_api/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/bcd_travel_api/logging/sdk_logger.rb +17 -0
- data/lib/bcd_travel_api/models/address.rb +74 -0
- data/lib/bcd_travel_api/models/address1.rb +111 -0
- data/lib/bcd_travel_api/models/address3.rb +109 -0
- data/lib/bcd_travel_api/models/address32.rb +75 -0
- data/lib/bcd_travel_api/models/address33.rb +103 -0
- data/lib/bcd_travel_api/models/address5.rb +100 -0
- data/lib/bcd_travel_api/models/air.rb +108 -0
- data/lib/bcd_travel_api/models/air1.rb +108 -0
- data/lib/bcd_travel_api/models/air16.rb +100 -0
- data/lib/bcd_travel_api/models/air2.rb +108 -0
- data/lib/bcd_travel_api/models/airavailabilityrequest.rb +164 -0
- data/lib/bcd_travel_api/models/airbookrequest.rb +350 -0
- data/lib/bcd_travel_api/models/aircancel_reservation_request4.rb +161 -0
- data/lib/bcd_travel_api/models/aircancel_reservationrefundquoteconfirmrequest.rb +164 -0
- data/lib/bcd_travel_api/models/aircomplete_verification_request.rb +146 -0
- data/lib/bcd_travel_api/models/airdocuments_issue_request.rb +163 -0
- data/lib/bcd_travel_api/models/airfare_rules_request.rb +155 -0
- data/lib/bcd_travel_api/models/airfare_search_request.rb +243 -0
- data/lib/bcd_travel_api/models/airget_checkout_data_request.rb +177 -0
- data/lib/bcd_travel_api/models/airpricingavailabilityrequest.rb +222 -0
- data/lib/bcd_travel_api/models/airpricingavailabilityrequest1.rb +231 -0
- data/lib/bcd_travel_api/models/airpricingfare_searchrequest.rb +214 -0
- data/lib/bcd_travel_api/models/airretrieve_reservations_list_request.rb +172 -0
- data/lib/bcd_travel_api/models/airseat_map_request.rb +175 -0
- data/lib/bcd_travel_api/models/arrival_location.rb +82 -0
- data/lib/bcd_travel_api/models/base_fare.rb +91 -0
- data/lib/bcd_travel_api/models/base_fare1.rb +119 -0
- data/lib/bcd_travel_api/models/base_fare2.rb +91 -0
- data/lib/bcd_travel_api/models/base_model.rb +110 -0
- data/lib/bcd_travel_api/models/billing_address.rb +110 -0
- data/lib/bcd_travel_api/models/booking_data.rb +73 -0
- data/lib/bcd_travel_api/models/broker.rb +82 -0
- data/lib/bcd_travel_api/models/broker16.rb +82 -0
- data/lib/bcd_travel_api/models/car.rb +91 -0
- data/lib/bcd_travel_api/models/car1.rb +91 -0
- data/lib/bcd_travel_api/models/car16.rb +83 -0
- data/lib/bcd_travel_api/models/car2.rb +91 -0
- data/lib/bcd_travel_api/models/card_detail.rb +104 -0
- data/lib/bcd_travel_api/models/carsbookcardrequest.rb +310 -0
- data/lib/bcd_travel_api/models/carsbookguaranteerequest.rb +236 -0
- data/lib/bcd_travel_api/models/carsbookvoucherrequest.rb +266 -0
- data/lib/bcd_travel_api/models/carscancel_reservation_request1.rb +163 -0
- data/lib/bcd_travel_api/models/carsdirect_sell_bookcardrequest.rb +362 -0
- data/lib/bcd_travel_api/models/carsdirect_sell_bookno_paymentrequest.rb +307 -0
- data/lib/bcd_travel_api/models/carsmodify_reservation_request.rb +215 -0
- data/lib/bcd_travel_api/models/carsretrieve_reservations_list_request.rb +172 -0
- data/lib/bcd_travel_api/models/client_reportable_datum.rb +82 -0
- data/lib/bcd_travel_api/models/content_type.rb +26 -0
- data/lib/bcd_travel_api/models/cruise_ferry.rb +91 -0
- data/lib/bcd_travel_api/models/departure_location.rb +82 -0
- data/lib/bcd_travel_api/models/document.rb +150 -0
- data/lib/bcd_travel_api/models/drop_off_location.rb +122 -0
- data/lib/bcd_travel_api/models/drop_off_location1.rb +118 -0
- data/lib/bcd_travel_api/models/drop_off_location16.rb +83 -0
- data/lib/bcd_travel_api/models/drop_off_location2.rb +82 -0
- data/lib/bcd_travel_api/models/end_location_address.rb +109 -0
- data/lib/bcd_travel_api/models/fare.rb +117 -0
- data/lib/bcd_travel_api/models/fare2.rb +119 -0
- data/lib/bcd_travel_api/models/fare3.rb +119 -0
- data/lib/bcd_travel_api/models/fare5.rb +91 -0
- data/lib/bcd_travel_api/models/ff_number.rb +82 -0
- data/lib/bcd_travel_api/models/filter.rb +185 -0
- data/lib/bcd_travel_api/models/filter1.rb +74 -0
- data/lib/bcd_travel_api/models/filter10.rb +74 -0
- data/lib/bcd_travel_api/models/filter11.rb +75 -0
- data/lib/bcd_travel_api/models/filter12.rb +75 -0
- data/lib/bcd_travel_api/models/filter13.rb +74 -0
- data/lib/bcd_travel_api/models/filter14.rb +75 -0
- data/lib/bcd_travel_api/models/filter15.rb +75 -0
- data/lib/bcd_travel_api/models/filter2.rb +74 -0
- data/lib/bcd_travel_api/models/filter3.rb +74 -0
- data/lib/bcd_travel_api/models/filter4.rb +75 -0
- data/lib/bcd_travel_api/models/filter6.rb +75 -0
- data/lib/bcd_travel_api/models/filter8.rb +75 -0
- data/lib/bcd_travel_api/models/generate_oauth_20_token.rb +91 -0
- data/lib/bcd_travel_api/models/get_configurations_post_request.rb +193 -0
- data/lib/bcd_travel_api/models/get_versionsbytrip_id.rb +99 -0
- data/lib/bcd_travel_api/models/guest.rb +82 -0
- data/lib/bcd_travel_api/models/hotel.rb +91 -0
- data/lib/bcd_travel_api/models/hotel1.rb +91 -0
- data/lib/bcd_travel_api/models/hotel16.rb +83 -0
- data/lib/bcd_travel_api/models/hotel2.rb +91 -0
- data/lib/bcd_travel_api/models/hotelsbookrequest.rb +418 -0
- data/lib/bcd_travel_api/models/hotelsbookrequest1.rb +445 -0
- data/lib/bcd_travel_api/models/hotelscancel_reservation_request.rb +153 -0
- data/lib/bcd_travel_api/models/hotelsrebookrequest.rb +214 -0
- data/lib/bcd_travel_api/models/hotelsrebookrequest1.rb +231 -0
- data/lib/bcd_travel_api/models/hotelsupdate_reservation_details_request.rb +153 -0
- data/lib/bcd_travel_api/models/hotelsupdate_reservation_details_request1.rb +164 -0
- data/lib/bcd_travel_api/models/leg.rb +166 -0
- data/lib/bcd_travel_api/models/leg1.rb +168 -0
- data/lib/bcd_travel_api/models/leg2.rb +156 -0
- data/lib/bcd_travel_api/models/leg3.rb +160 -0
- data/lib/bcd_travel_api/models/leg33.rb +164 -0
- data/lib/bcd_travel_api/models/leg34.rb +143 -0
- data/lib/bcd_travel_api/models/leg4.rb +154 -0
- data/lib/bcd_travel_api/models/leg6.rb +143 -0
- data/lib/bcd_travel_api/models/line_item.rb +109 -0
- data/lib/bcd_travel_api/models/line_item1.rb +119 -0
- data/lib/bcd_travel_api/models/location.rb +73 -0
- data/lib/bcd_travel_api/models/location16.rb +73 -0
- data/lib/bcd_travel_api/models/misc.rb +91 -0
- data/lib/bcd_travel_api/models/misc10.rb +83 -0
- data/lib/bcd_travel_api/models/options.rb +84 -0
- data/lib/bcd_travel_api/models/origin_destination.rb +134 -0
- data/lib/bcd_travel_api/models/origin_destination1.rb +108 -0
- data/lib/bcd_travel_api/models/passenger.rb +104 -0
- data/lib/bcd_travel_api/models/passport.rb +102 -0
- data/lib/bcd_travel_api/models/payment.rb +137 -0
- data/lib/bcd_travel_api/models/payment1.rb +141 -0
- data/lib/bcd_travel_api/models/payment2.rb +121 -0
- data/lib/bcd_travel_api/models/payment3.rb +111 -0
- data/lib/bcd_travel_api/models/pickup_location.rb +122 -0
- data/lib/bcd_travel_api/models/pickup_location1.rb +118 -0
- data/lib/bcd_travel_api/models/pickup_location16.rb +83 -0
- data/lib/bcd_travel_api/models/pickup_location2.rb +82 -0
- data/lib/bcd_travel_api/models/ping_getresponse.rb +72 -0
- data/lib/bcd_travel_api/models/pingrequest.rb +126 -0
- data/lib/bcd_travel_api/models/pingrequest2.rb +146 -0
- data/lib/bcd_travel_api/models/products.rb +129 -0
- data/lib/bcd_travel_api/models/products1.rb +117 -0
- data/lib/bcd_travel_api/models/products16.rb +111 -0
- data/lib/bcd_travel_api/models/products2.rb +107 -0
- data/lib/bcd_travel_api/models/rail.rb +91 -0
- data/lib/bcd_travel_api/models/rail1.rb +91 -0
- data/lib/bcd_travel_api/models/rail16.rb +82 -0
- data/lib/bcd_travel_api/models/rail2.rb +91 -0
- data/lib/bcd_travel_api/models/reservation.rb +223 -0
- data/lib/bcd_travel_api/models/reservation1.rb +239 -0
- data/lib/bcd_travel_api/models/reservation2.rb +170 -0
- data/lib/bcd_travel_api/models/reservation3.rb +193 -0
- data/lib/bcd_travel_api/models/reservation4.rb +201 -0
- data/lib/bcd_travel_api/models/reservation56.rb +220 -0
- data/lib/bcd_travel_api/models/reservation57.rb +219 -0
- data/lib/bcd_travel_api/models/reservation6.rb +240 -0
- data/lib/bcd_travel_api/models/reservation8.rb +220 -0
- data/lib/bcd_travel_api/models/reservation9.rb +239 -0
- data/lib/bcd_travel_api/models/result.rb +299 -0
- data/lib/bcd_travel_api/models/result1.rb +267 -0
- data/lib/bcd_travel_api/models/result16.rb +295 -0
- data/lib/bcd_travel_api/models/result2.rb +295 -0
- data/lib/bcd_travel_api/models/search_expenses.rb +111 -0
- data/lib/bcd_travel_api/models/search_expenses_request.rb +99 -0
- data/lib/bcd_travel_api/models/search_expensesbyaccount_id.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbyaccount_id_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbybooking_date_time.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbybooking_date_time_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbybooking_date_timerange.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbybooking_date_timerange_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbycalculated_ticket_status.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbycalculated_ticket_status_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbycustomer_number.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbycustomer_number_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbyglobal_customer_number.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbyglobal_customer_number_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbyhas_transaction.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbyhas_transaction_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbyinvoice_date_time.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbyinvoice_date_time_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbyinvoice_date_timerange.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbyinvoice_date_timerange_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbyinvoice_number.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbyinvoice_number_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbylast_modified_date_time.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbylast_modified_date_time_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbylast_modified_date_timerange.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbylast_modified_date_timerange_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbyrecord_locator.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbyrecord_locator_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbyticket_status.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbyticket_status_request.rb +90 -0
- data/lib/bcd_travel_api/models/search_expensesbytraveler_email.rb +111 -0
- data/lib/bcd_travel_api/models/search_expensesbytraveler_email_request.rb +90 -0
- data/lib/bcd_travel_api/models/segment_option.rb +85 -0
- data/lib/bcd_travel_api/models/seller.rb +83 -0
- data/lib/bcd_travel_api/models/seller16.rb +72 -0
- data/lib/bcd_travel_api/models/sort.rb +86 -0
- data/lib/bcd_travel_api/models/specific_flight.rb +82 -0
- data/lib/bcd_travel_api/models/start_location_address.rb +109 -0
- data/lib/bcd_travel_api/models/taxis.rb +145 -0
- data/lib/bcd_travel_api/models/taxis1.rb +132 -0
- data/lib/bcd_travel_api/models/taxis3.rb +143 -0
- data/lib/bcd_travel_api/models/taxis4.rb +130 -0
- data/lib/bcd_travel_api/models/ticket.rb +334 -0
- data/lib/bcd_travel_api/models/ticket1.rb +156 -0
- data/lib/bcd_travel_api/models/ticket2.rb +244 -0
- data/lib/bcd_travel_api/models/ticket3.rb +156 -0
- data/lib/bcd_travel_api/models/ticket32.rb +337 -0
- data/lib/bcd_travel_api/models/ticket33.rb +156 -0
- data/lib/bcd_travel_api/models/ticket4.rb +337 -0
- data/lib/bcd_travel_api/models/ticket5.rb +156 -0
- data/lib/bcd_travel_api/models/time_restriction.rb +90 -0
- data/lib/bcd_travel_api/models/tour.rb +91 -0
- data/lib/bcd_travel_api/models/traveler.rb +91 -0
- data/lib/bcd_travel_api/models/traveler1.rb +110 -0
- data/lib/bcd_travel_api/models/traveler3.rb +91 -0
- data/lib/bcd_travel_api/models/traveler4.rb +120 -0
- data/lib/bcd_travel_api/models/traveler_name.rb +82 -0
- data/lib/bcd_travel_api/utilities/date_time_helper.rb +11 -0
- data/lib/bcd_travel_api/utilities/file_wrapper.rb +28 -0
- data/lib/bcd_travel_api/utilities/union_type_lookup.rb +128 -0
- data/lib/bcd_travel_api.rb +270 -0
- metadata +316 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
# bcd_travel_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module BcdTravelApi
|
|
7
|
+
# Airbookrequest Model.
|
|
8
|
+
class Airbookrequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :api_key
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :timestamp
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :nonce
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :locale
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :customer_ip
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :session_id
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :user_agent
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :system
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :booktrack_id
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [Integer]
|
|
50
|
+
attr_accessor :configuration_id
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :pnr_id
|
|
55
|
+
|
|
56
|
+
# TODO: Write general description for this method
|
|
57
|
+
# @return [String]
|
|
58
|
+
attr_accessor :fare_group_key
|
|
59
|
+
|
|
60
|
+
# TODO: Write general description for this method
|
|
61
|
+
# @return [Array[String]]
|
|
62
|
+
attr_accessor :flight_option_keys
|
|
63
|
+
|
|
64
|
+
# TODO: Write general description for this method
|
|
65
|
+
# @return [Array[String]]
|
|
66
|
+
attr_accessor :optional_service_keys
|
|
67
|
+
|
|
68
|
+
# TODO: Write general description for this method
|
|
69
|
+
# @return [String]
|
|
70
|
+
attr_accessor :booker_email
|
|
71
|
+
|
|
72
|
+
# TODO: Write general description for this method
|
|
73
|
+
# @return [String]
|
|
74
|
+
attr_accessor :booker_first_name
|
|
75
|
+
|
|
76
|
+
# TODO: Write general description for this method
|
|
77
|
+
# @return [String]
|
|
78
|
+
attr_accessor :booker_last_name
|
|
79
|
+
|
|
80
|
+
# TODO: Write general description for this method
|
|
81
|
+
# @return [String]
|
|
82
|
+
attr_accessor :payment_method
|
|
83
|
+
|
|
84
|
+
# TODO: Write general description for this method
|
|
85
|
+
# @return [String]
|
|
86
|
+
attr_accessor :credit_card_number
|
|
87
|
+
|
|
88
|
+
# TODO: Write general description for this method
|
|
89
|
+
# @return [String]
|
|
90
|
+
attr_accessor :credit_card_expiration_year
|
|
91
|
+
|
|
92
|
+
# TODO: Write general description for this method
|
|
93
|
+
# @return [String]
|
|
94
|
+
attr_accessor :credit_card_expiration_month
|
|
95
|
+
|
|
96
|
+
# TODO: Write general description for this method
|
|
97
|
+
# @return [String]
|
|
98
|
+
attr_accessor :credit_card_first_name
|
|
99
|
+
|
|
100
|
+
# TODO: Write general description for this method
|
|
101
|
+
# @return [String]
|
|
102
|
+
attr_accessor :credit_card_last_name
|
|
103
|
+
|
|
104
|
+
# TODO: Write general description for this method
|
|
105
|
+
# @return [String]
|
|
106
|
+
attr_accessor :credit_card_identifier
|
|
107
|
+
|
|
108
|
+
# TODO: Write general description for this method
|
|
109
|
+
# @return [BillingAddress]
|
|
110
|
+
attr_accessor :billing_address
|
|
111
|
+
|
|
112
|
+
# TODO: Write general description for this method
|
|
113
|
+
# @return [String]
|
|
114
|
+
attr_accessor :phone_number
|
|
115
|
+
|
|
116
|
+
# TODO: Write general description for this method
|
|
117
|
+
# @return [Array[Traveler4]]
|
|
118
|
+
attr_accessor :travelers
|
|
119
|
+
|
|
120
|
+
# TODO: Write general description for this method
|
|
121
|
+
# @return [String]
|
|
122
|
+
attr_accessor :tspm_company_id
|
|
123
|
+
|
|
124
|
+
# A mapping from model property names to API property names.
|
|
125
|
+
def self.names
|
|
126
|
+
@_hash = {} if @_hash.nil?
|
|
127
|
+
@_hash['api_key'] = 'api_key'
|
|
128
|
+
@_hash['timestamp'] = 'timestamp'
|
|
129
|
+
@_hash['nonce'] = 'nonce'
|
|
130
|
+
@_hash['locale'] = 'locale'
|
|
131
|
+
@_hash['customer_ip'] = 'customer_ip'
|
|
132
|
+
@_hash['session_id'] = 'session_id'
|
|
133
|
+
@_hash['user_agent'] = 'user_agent'
|
|
134
|
+
@_hash['system'] = 'system'
|
|
135
|
+
@_hash['booktrack_id'] = 'booktrack_id'
|
|
136
|
+
@_hash['configuration_id'] = 'configuration_id'
|
|
137
|
+
@_hash['pnr_id'] = 'pnr_id'
|
|
138
|
+
@_hash['fare_group_key'] = 'fare_group_key'
|
|
139
|
+
@_hash['flight_option_keys'] = 'flight_option_keys'
|
|
140
|
+
@_hash['optional_service_keys'] = 'optional_service_keys'
|
|
141
|
+
@_hash['booker_email'] = 'booker_email'
|
|
142
|
+
@_hash['booker_first_name'] = 'booker_first_name'
|
|
143
|
+
@_hash['booker_last_name'] = 'booker_last_name'
|
|
144
|
+
@_hash['payment_method'] = 'payment_method'
|
|
145
|
+
@_hash['credit_card_number'] = 'credit_card_number'
|
|
146
|
+
@_hash['credit_card_expiration_year'] = 'credit_card_expiration_year'
|
|
147
|
+
@_hash['credit_card_expiration_month'] = 'credit_card_expiration_month'
|
|
148
|
+
@_hash['credit_card_first_name'] = 'credit_card_first_name'
|
|
149
|
+
@_hash['credit_card_last_name'] = 'credit_card_last_name'
|
|
150
|
+
@_hash['credit_card_identifier'] = 'credit_card_identifier'
|
|
151
|
+
@_hash['billing_address'] = 'billing_address'
|
|
152
|
+
@_hash['phone_number'] = 'phone_number'
|
|
153
|
+
@_hash['travelers'] = 'travelers'
|
|
154
|
+
@_hash['tspm_company_id'] = 'tspm_company_id'
|
|
155
|
+
@_hash
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# An array for optional fields
|
|
159
|
+
def self.optionals
|
|
160
|
+
[]
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# An array for nullable fields
|
|
164
|
+
def self.nullables
|
|
165
|
+
[]
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
def initialize(api_key:, timestamp:, nonce:, locale:, customer_ip:,
|
|
169
|
+
session_id:, user_agent:, system:, booktrack_id:,
|
|
170
|
+
configuration_id:, pnr_id:, fare_group_key:,
|
|
171
|
+
flight_option_keys:, optional_service_keys:, booker_email:,
|
|
172
|
+
booker_first_name:, booker_last_name:, payment_method:,
|
|
173
|
+
credit_card_number:, credit_card_expiration_year:,
|
|
174
|
+
credit_card_expiration_month:, credit_card_first_name:,
|
|
175
|
+
credit_card_last_name:, credit_card_identifier:,
|
|
176
|
+
billing_address:, phone_number:, travelers:,
|
|
177
|
+
tspm_company_id:, additional_properties: nil)
|
|
178
|
+
# Add additional model properties to the instance
|
|
179
|
+
additional_properties = {} if additional_properties.nil?
|
|
180
|
+
|
|
181
|
+
@api_key = api_key
|
|
182
|
+
@timestamp = timestamp
|
|
183
|
+
@nonce = nonce
|
|
184
|
+
@locale = locale
|
|
185
|
+
@customer_ip = customer_ip
|
|
186
|
+
@session_id = session_id
|
|
187
|
+
@user_agent = user_agent
|
|
188
|
+
@system = system
|
|
189
|
+
@booktrack_id = booktrack_id
|
|
190
|
+
@configuration_id = configuration_id
|
|
191
|
+
@pnr_id = pnr_id
|
|
192
|
+
@fare_group_key = fare_group_key
|
|
193
|
+
@flight_option_keys = flight_option_keys
|
|
194
|
+
@optional_service_keys = optional_service_keys
|
|
195
|
+
@booker_email = booker_email
|
|
196
|
+
@booker_first_name = booker_first_name
|
|
197
|
+
@booker_last_name = booker_last_name
|
|
198
|
+
@payment_method = payment_method
|
|
199
|
+
@credit_card_number = credit_card_number
|
|
200
|
+
@credit_card_expiration_year = credit_card_expiration_year
|
|
201
|
+
@credit_card_expiration_month = credit_card_expiration_month
|
|
202
|
+
@credit_card_first_name = credit_card_first_name
|
|
203
|
+
@credit_card_last_name = credit_card_last_name
|
|
204
|
+
@credit_card_identifier = credit_card_identifier
|
|
205
|
+
@billing_address = billing_address
|
|
206
|
+
@phone_number = phone_number
|
|
207
|
+
@travelers = travelers
|
|
208
|
+
@tspm_company_id = tspm_company_id
|
|
209
|
+
@additional_properties = additional_properties
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Creates an instance of the object from a hash.
|
|
213
|
+
def self.from_hash(hash)
|
|
214
|
+
return nil unless hash
|
|
215
|
+
|
|
216
|
+
# Extract variables from the hash.
|
|
217
|
+
api_key = hash.key?('api_key') ? hash['api_key'] : nil
|
|
218
|
+
timestamp = hash.key?('timestamp') ? hash['timestamp'] : nil
|
|
219
|
+
nonce = hash.key?('nonce') ? hash['nonce'] : nil
|
|
220
|
+
locale = hash.key?('locale') ? hash['locale'] : nil
|
|
221
|
+
customer_ip = hash.key?('customer_ip') ? hash['customer_ip'] : nil
|
|
222
|
+
session_id = hash.key?('session_id') ? hash['session_id'] : nil
|
|
223
|
+
user_agent = hash.key?('user_agent') ? hash['user_agent'] : nil
|
|
224
|
+
system = hash.key?('system') ? hash['system'] : nil
|
|
225
|
+
booktrack_id = hash.key?('booktrack_id') ? hash['booktrack_id'] : nil
|
|
226
|
+
configuration_id =
|
|
227
|
+
hash.key?('configuration_id') ? hash['configuration_id'] : nil
|
|
228
|
+
pnr_id = hash.key?('pnr_id') ? hash['pnr_id'] : nil
|
|
229
|
+
fare_group_key =
|
|
230
|
+
hash.key?('fare_group_key') ? hash['fare_group_key'] : nil
|
|
231
|
+
flight_option_keys =
|
|
232
|
+
hash.key?('flight_option_keys') ? hash['flight_option_keys'] : nil
|
|
233
|
+
optional_service_keys =
|
|
234
|
+
hash.key?('optional_service_keys') ? hash['optional_service_keys'] : nil
|
|
235
|
+
booker_email = hash.key?('booker_email') ? hash['booker_email'] : nil
|
|
236
|
+
booker_first_name =
|
|
237
|
+
hash.key?('booker_first_name') ? hash['booker_first_name'] : nil
|
|
238
|
+
booker_last_name =
|
|
239
|
+
hash.key?('booker_last_name') ? hash['booker_last_name'] : nil
|
|
240
|
+
payment_method =
|
|
241
|
+
hash.key?('payment_method') ? hash['payment_method'] : nil
|
|
242
|
+
credit_card_number =
|
|
243
|
+
hash.key?('credit_card_number') ? hash['credit_card_number'] : nil
|
|
244
|
+
credit_card_expiration_year =
|
|
245
|
+
hash.key?('credit_card_expiration_year') ? hash['credit_card_expiration_year'] : nil
|
|
246
|
+
credit_card_expiration_month =
|
|
247
|
+
hash.key?('credit_card_expiration_month') ? hash['credit_card_expiration_month'] : nil
|
|
248
|
+
credit_card_first_name =
|
|
249
|
+
hash.key?('credit_card_first_name') ? hash['credit_card_first_name'] : nil
|
|
250
|
+
credit_card_last_name =
|
|
251
|
+
hash.key?('credit_card_last_name') ? hash['credit_card_last_name'] : nil
|
|
252
|
+
credit_card_identifier =
|
|
253
|
+
hash.key?('credit_card_identifier') ? hash['credit_card_identifier'] : nil
|
|
254
|
+
billing_address = BillingAddress.from_hash(hash['billing_address']) if
|
|
255
|
+
hash['billing_address']
|
|
256
|
+
phone_number = hash.key?('phone_number') ? hash['phone_number'] : nil
|
|
257
|
+
# Parameter is an array, so we need to iterate through it
|
|
258
|
+
travelers = nil
|
|
259
|
+
unless hash['travelers'].nil?
|
|
260
|
+
travelers = []
|
|
261
|
+
hash['travelers'].each do |structure|
|
|
262
|
+
travelers << (Traveler4.from_hash(structure) if structure)
|
|
263
|
+
end
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
travelers = nil unless hash.key?('travelers')
|
|
267
|
+
tspm_company_id =
|
|
268
|
+
hash.key?('tspm_company_id') ? hash['tspm_company_id'] : nil
|
|
269
|
+
|
|
270
|
+
# Create a new hash for additional properties, removing known properties.
|
|
271
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
272
|
+
|
|
273
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
274
|
+
new_hash, proc { |value| value }
|
|
275
|
+
)
|
|
276
|
+
|
|
277
|
+
# Create object from extracted values.
|
|
278
|
+
Airbookrequest.new(api_key: api_key,
|
|
279
|
+
timestamp: timestamp,
|
|
280
|
+
nonce: nonce,
|
|
281
|
+
locale: locale,
|
|
282
|
+
customer_ip: customer_ip,
|
|
283
|
+
session_id: session_id,
|
|
284
|
+
user_agent: user_agent,
|
|
285
|
+
system: system,
|
|
286
|
+
booktrack_id: booktrack_id,
|
|
287
|
+
configuration_id: configuration_id,
|
|
288
|
+
pnr_id: pnr_id,
|
|
289
|
+
fare_group_key: fare_group_key,
|
|
290
|
+
flight_option_keys: flight_option_keys,
|
|
291
|
+
optional_service_keys: optional_service_keys,
|
|
292
|
+
booker_email: booker_email,
|
|
293
|
+
booker_first_name: booker_first_name,
|
|
294
|
+
booker_last_name: booker_last_name,
|
|
295
|
+
payment_method: payment_method,
|
|
296
|
+
credit_card_number: credit_card_number,
|
|
297
|
+
credit_card_expiration_year: credit_card_expiration_year,
|
|
298
|
+
credit_card_expiration_month: credit_card_expiration_month,
|
|
299
|
+
credit_card_first_name: credit_card_first_name,
|
|
300
|
+
credit_card_last_name: credit_card_last_name,
|
|
301
|
+
credit_card_identifier: credit_card_identifier,
|
|
302
|
+
billing_address: billing_address,
|
|
303
|
+
phone_number: phone_number,
|
|
304
|
+
travelers: travelers,
|
|
305
|
+
tspm_company_id: tspm_company_id,
|
|
306
|
+
additional_properties: additional_properties)
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Provides a human-readable string representation of the object.
|
|
310
|
+
def to_s
|
|
311
|
+
class_name = self.class.name.split('::').last
|
|
312
|
+
"<#{class_name} api_key: #{@api_key}, timestamp: #{@timestamp}, nonce: #{@nonce}, locale:"\
|
|
313
|
+
" #{@locale}, customer_ip: #{@customer_ip}, session_id: #{@session_id}, user_agent:"\
|
|
314
|
+
" #{@user_agent}, system: #{@system}, booktrack_id: #{@booktrack_id}, configuration_id:"\
|
|
315
|
+
" #{@configuration_id}, pnr_id: #{@pnr_id}, fare_group_key: #{@fare_group_key},"\
|
|
316
|
+
" flight_option_keys: #{@flight_option_keys}, optional_service_keys:"\
|
|
317
|
+
" #{@optional_service_keys}, booker_email: #{@booker_email}, booker_first_name:"\
|
|
318
|
+
" #{@booker_first_name}, booker_last_name: #{@booker_last_name}, payment_method:"\
|
|
319
|
+
" #{@payment_method}, credit_card_number: #{@credit_card_number},"\
|
|
320
|
+
" credit_card_expiration_year: #{@credit_card_expiration_year},"\
|
|
321
|
+
" credit_card_expiration_month: #{@credit_card_expiration_month}, credit_card_first_name:"\
|
|
322
|
+
" #{@credit_card_first_name}, credit_card_last_name: #{@credit_card_last_name},"\
|
|
323
|
+
" credit_card_identifier: #{@credit_card_identifier}, billing_address: #{@billing_address},"\
|
|
324
|
+
" phone_number: #{@phone_number}, travelers: #{@travelers}, tspm_company_id:"\
|
|
325
|
+
" #{@tspm_company_id}, additional_properties: #{@additional_properties}>"
|
|
326
|
+
end
|
|
327
|
+
|
|
328
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
329
|
+
def inspect
|
|
330
|
+
class_name = self.class.name.split('::').last
|
|
331
|
+
"<#{class_name} api_key: #{@api_key.inspect}, timestamp: #{@timestamp.inspect}, nonce:"\
|
|
332
|
+
" #{@nonce.inspect}, locale: #{@locale.inspect}, customer_ip: #{@customer_ip.inspect},"\
|
|
333
|
+
" session_id: #{@session_id.inspect}, user_agent: #{@user_agent.inspect}, system:"\
|
|
334
|
+
" #{@system.inspect}, booktrack_id: #{@booktrack_id.inspect}, configuration_id:"\
|
|
335
|
+
" #{@configuration_id.inspect}, pnr_id: #{@pnr_id.inspect}, fare_group_key:"\
|
|
336
|
+
" #{@fare_group_key.inspect}, flight_option_keys: #{@flight_option_keys.inspect},"\
|
|
337
|
+
" optional_service_keys: #{@optional_service_keys.inspect}, booker_email:"\
|
|
338
|
+
" #{@booker_email.inspect}, booker_first_name: #{@booker_first_name.inspect},"\
|
|
339
|
+
" booker_last_name: #{@booker_last_name.inspect}, payment_method:"\
|
|
340
|
+
" #{@payment_method.inspect}, credit_card_number: #{@credit_card_number.inspect},"\
|
|
341
|
+
" credit_card_expiration_year: #{@credit_card_expiration_year.inspect},"\
|
|
342
|
+
" credit_card_expiration_month: #{@credit_card_expiration_month.inspect},"\
|
|
343
|
+
" credit_card_first_name: #{@credit_card_first_name.inspect}, credit_card_last_name:"\
|
|
344
|
+
" #{@credit_card_last_name.inspect}, credit_card_identifier:"\
|
|
345
|
+
" #{@credit_card_identifier.inspect}, billing_address: #{@billing_address.inspect},"\
|
|
346
|
+
" phone_number: #{@phone_number.inspect}, travelers: #{@travelers.inspect}, tspm_company_id:"\
|
|
347
|
+
" #{@tspm_company_id.inspect}, additional_properties: #{@additional_properties}>"
|
|
348
|
+
end
|
|
349
|
+
end
|
|
350
|
+
end
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
# bcd_travel_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module BcdTravelApi
|
|
7
|
+
# AircancelReservationRequest4 Model.
|
|
8
|
+
class AircancelReservationRequest4 < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :api_key
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :timestamp
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :nonce
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :locale
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :customer_ip
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :session_id
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :user_agent
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :system
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :email
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [Options]
|
|
50
|
+
attr_accessor :options
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :booking_uid
|
|
55
|
+
|
|
56
|
+
# A mapping from model property names to API property names.
|
|
57
|
+
def self.names
|
|
58
|
+
@_hash = {} if @_hash.nil?
|
|
59
|
+
@_hash['api_key'] = 'api_key'
|
|
60
|
+
@_hash['timestamp'] = 'timestamp'
|
|
61
|
+
@_hash['nonce'] = 'nonce'
|
|
62
|
+
@_hash['locale'] = 'locale'
|
|
63
|
+
@_hash['customer_ip'] = 'customer_ip'
|
|
64
|
+
@_hash['session_id'] = 'session_id'
|
|
65
|
+
@_hash['user_agent'] = 'user_agent'
|
|
66
|
+
@_hash['system'] = 'system'
|
|
67
|
+
@_hash['email'] = 'email'
|
|
68
|
+
@_hash['options'] = 'options'
|
|
69
|
+
@_hash['booking_uid'] = 'booking_uid'
|
|
70
|
+
@_hash
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# An array for optional fields
|
|
74
|
+
def self.optionals
|
|
75
|
+
[]
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# An array for nullable fields
|
|
79
|
+
def self.nullables
|
|
80
|
+
[]
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def initialize(api_key:, timestamp:, nonce:, locale:, customer_ip:,
|
|
84
|
+
session_id:, user_agent:, system:, email:, options:,
|
|
85
|
+
booking_uid:, additional_properties: nil)
|
|
86
|
+
# Add additional model properties to the instance
|
|
87
|
+
additional_properties = {} if additional_properties.nil?
|
|
88
|
+
|
|
89
|
+
@api_key = api_key
|
|
90
|
+
@timestamp = timestamp
|
|
91
|
+
@nonce = nonce
|
|
92
|
+
@locale = locale
|
|
93
|
+
@customer_ip = customer_ip
|
|
94
|
+
@session_id = session_id
|
|
95
|
+
@user_agent = user_agent
|
|
96
|
+
@system = system
|
|
97
|
+
@email = email
|
|
98
|
+
@options = options
|
|
99
|
+
@booking_uid = booking_uid
|
|
100
|
+
@additional_properties = additional_properties
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Creates an instance of the object from a hash.
|
|
104
|
+
def self.from_hash(hash)
|
|
105
|
+
return nil unless hash
|
|
106
|
+
|
|
107
|
+
# Extract variables from the hash.
|
|
108
|
+
api_key = hash.key?('api_key') ? hash['api_key'] : nil
|
|
109
|
+
timestamp = hash.key?('timestamp') ? hash['timestamp'] : nil
|
|
110
|
+
nonce = hash.key?('nonce') ? hash['nonce'] : nil
|
|
111
|
+
locale = hash.key?('locale') ? hash['locale'] : nil
|
|
112
|
+
customer_ip = hash.key?('customer_ip') ? hash['customer_ip'] : nil
|
|
113
|
+
session_id = hash.key?('session_id') ? hash['session_id'] : nil
|
|
114
|
+
user_agent = hash.key?('user_agent') ? hash['user_agent'] : nil
|
|
115
|
+
system = hash.key?('system') ? hash['system'] : nil
|
|
116
|
+
email = hash.key?('email') ? hash['email'] : nil
|
|
117
|
+
options = Options.from_hash(hash['options']) if hash['options']
|
|
118
|
+
booking_uid = hash.key?('booking_uid') ? hash['booking_uid'] : nil
|
|
119
|
+
|
|
120
|
+
# Create a new hash for additional properties, removing known properties.
|
|
121
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
122
|
+
|
|
123
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
124
|
+
new_hash, proc { |value| value }
|
|
125
|
+
)
|
|
126
|
+
|
|
127
|
+
# Create object from extracted values.
|
|
128
|
+
AircancelReservationRequest4.new(api_key: api_key,
|
|
129
|
+
timestamp: timestamp,
|
|
130
|
+
nonce: nonce,
|
|
131
|
+
locale: locale,
|
|
132
|
+
customer_ip: customer_ip,
|
|
133
|
+
session_id: session_id,
|
|
134
|
+
user_agent: user_agent,
|
|
135
|
+
system: system,
|
|
136
|
+
email: email,
|
|
137
|
+
options: options,
|
|
138
|
+
booking_uid: booking_uid,
|
|
139
|
+
additional_properties: additional_properties)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Provides a human-readable string representation of the object.
|
|
143
|
+
def to_s
|
|
144
|
+
class_name = self.class.name.split('::').last
|
|
145
|
+
"<#{class_name} api_key: #{@api_key}, timestamp: #{@timestamp}, nonce: #{@nonce}, locale:"\
|
|
146
|
+
" #{@locale}, customer_ip: #{@customer_ip}, session_id: #{@session_id}, user_agent:"\
|
|
147
|
+
" #{@user_agent}, system: #{@system}, email: #{@email}, options: #{@options}, booking_uid:"\
|
|
148
|
+
" #{@booking_uid}, additional_properties: #{@additional_properties}>"
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
152
|
+
def inspect
|
|
153
|
+
class_name = self.class.name.split('::').last
|
|
154
|
+
"<#{class_name} api_key: #{@api_key.inspect}, timestamp: #{@timestamp.inspect}, nonce:"\
|
|
155
|
+
" #{@nonce.inspect}, locale: #{@locale.inspect}, customer_ip: #{@customer_ip.inspect},"\
|
|
156
|
+
" session_id: #{@session_id.inspect}, user_agent: #{@user_agent.inspect}, system:"\
|
|
157
|
+
" #{@system.inspect}, email: #{@email.inspect}, options: #{@options.inspect}, booking_uid:"\
|
|
158
|
+
" #{@booking_uid.inspect}, additional_properties: #{@additional_properties}>"
|
|
159
|
+
end
|
|
160
|
+
end
|
|
161
|
+
end
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# bcd_travel_api
|
|
2
|
+
#
|
|
3
|
+
# This file was automatically generated by APIMATIC v3.0 (
|
|
4
|
+
# https://www.apimatic.io ).
|
|
5
|
+
|
|
6
|
+
module BcdTravelApi
|
|
7
|
+
# AircancelReservationrefundquoteconfirmrequest Model.
|
|
8
|
+
class AircancelReservationrefundquoteconfirmrequest < BaseModel
|
|
9
|
+
SKIP = Object.new
|
|
10
|
+
private_constant :SKIP
|
|
11
|
+
|
|
12
|
+
# TODO: Write general description for this method
|
|
13
|
+
# @return [String]
|
|
14
|
+
attr_accessor :api_key
|
|
15
|
+
|
|
16
|
+
# TODO: Write general description for this method
|
|
17
|
+
# @return [String]
|
|
18
|
+
attr_accessor :timestamp
|
|
19
|
+
|
|
20
|
+
# TODO: Write general description for this method
|
|
21
|
+
# @return [String]
|
|
22
|
+
attr_accessor :nonce
|
|
23
|
+
|
|
24
|
+
# TODO: Write general description for this method
|
|
25
|
+
# @return [String]
|
|
26
|
+
attr_accessor :locale
|
|
27
|
+
|
|
28
|
+
# TODO: Write general description for this method
|
|
29
|
+
# @return [String]
|
|
30
|
+
attr_accessor :customer_ip
|
|
31
|
+
|
|
32
|
+
# TODO: Write general description for this method
|
|
33
|
+
# @return [String]
|
|
34
|
+
attr_accessor :session_id
|
|
35
|
+
|
|
36
|
+
# TODO: Write general description for this method
|
|
37
|
+
# @return [String]
|
|
38
|
+
attr_accessor :user_agent
|
|
39
|
+
|
|
40
|
+
# TODO: Write general description for this method
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :system
|
|
43
|
+
|
|
44
|
+
# TODO: Write general description for this method
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :email
|
|
47
|
+
|
|
48
|
+
# TODO: Write general description for this method
|
|
49
|
+
# @return [String]
|
|
50
|
+
attr_accessor :refund_quote_id
|
|
51
|
+
|
|
52
|
+
# TODO: Write general description for this method
|
|
53
|
+
# @return [String]
|
|
54
|
+
attr_accessor :booking_uid
|
|
55
|
+
|
|
56
|
+
# A mapping from model property names to API property names.
|
|
57
|
+
def self.names
|
|
58
|
+
@_hash = {} if @_hash.nil?
|
|
59
|
+
@_hash['api_key'] = 'api_key'
|
|
60
|
+
@_hash['timestamp'] = 'timestamp'
|
|
61
|
+
@_hash['nonce'] = 'nonce'
|
|
62
|
+
@_hash['locale'] = 'locale'
|
|
63
|
+
@_hash['customer_ip'] = 'customer_ip'
|
|
64
|
+
@_hash['session_id'] = 'session_id'
|
|
65
|
+
@_hash['user_agent'] = 'user_agent'
|
|
66
|
+
@_hash['system'] = 'system'
|
|
67
|
+
@_hash['email'] = 'email'
|
|
68
|
+
@_hash['refund_quote_id'] = 'refund_quote_id'
|
|
69
|
+
@_hash['booking_uid'] = 'booking_uid'
|
|
70
|
+
@_hash
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# An array for optional fields
|
|
74
|
+
def self.optionals
|
|
75
|
+
[]
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# An array for nullable fields
|
|
79
|
+
def self.nullables
|
|
80
|
+
[]
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def initialize(api_key:, timestamp:, nonce:, locale:, customer_ip:,
|
|
84
|
+
session_id:, user_agent:, system:, email:, refund_quote_id:,
|
|
85
|
+
booking_uid:, additional_properties: nil)
|
|
86
|
+
# Add additional model properties to the instance
|
|
87
|
+
additional_properties = {} if additional_properties.nil?
|
|
88
|
+
|
|
89
|
+
@api_key = api_key
|
|
90
|
+
@timestamp = timestamp
|
|
91
|
+
@nonce = nonce
|
|
92
|
+
@locale = locale
|
|
93
|
+
@customer_ip = customer_ip
|
|
94
|
+
@session_id = session_id
|
|
95
|
+
@user_agent = user_agent
|
|
96
|
+
@system = system
|
|
97
|
+
@email = email
|
|
98
|
+
@refund_quote_id = refund_quote_id
|
|
99
|
+
@booking_uid = booking_uid
|
|
100
|
+
@additional_properties = additional_properties
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Creates an instance of the object from a hash.
|
|
104
|
+
def self.from_hash(hash)
|
|
105
|
+
return nil unless hash
|
|
106
|
+
|
|
107
|
+
# Extract variables from the hash.
|
|
108
|
+
api_key = hash.key?('api_key') ? hash['api_key'] : nil
|
|
109
|
+
timestamp = hash.key?('timestamp') ? hash['timestamp'] : nil
|
|
110
|
+
nonce = hash.key?('nonce') ? hash['nonce'] : nil
|
|
111
|
+
locale = hash.key?('locale') ? hash['locale'] : nil
|
|
112
|
+
customer_ip = hash.key?('customer_ip') ? hash['customer_ip'] : nil
|
|
113
|
+
session_id = hash.key?('session_id') ? hash['session_id'] : nil
|
|
114
|
+
user_agent = hash.key?('user_agent') ? hash['user_agent'] : nil
|
|
115
|
+
system = hash.key?('system') ? hash['system'] : nil
|
|
116
|
+
email = hash.key?('email') ? hash['email'] : nil
|
|
117
|
+
refund_quote_id =
|
|
118
|
+
hash.key?('refund_quote_id') ? hash['refund_quote_id'] : nil
|
|
119
|
+
booking_uid = hash.key?('booking_uid') ? hash['booking_uid'] : nil
|
|
120
|
+
|
|
121
|
+
# Create a new hash for additional properties, removing known properties.
|
|
122
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
123
|
+
|
|
124
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
125
|
+
new_hash, proc { |value| value }
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
# Create object from extracted values.
|
|
129
|
+
AircancelReservationrefundquoteconfirmrequest.new(api_key: api_key,
|
|
130
|
+
timestamp: timestamp,
|
|
131
|
+
nonce: nonce,
|
|
132
|
+
locale: locale,
|
|
133
|
+
customer_ip: customer_ip,
|
|
134
|
+
session_id: session_id,
|
|
135
|
+
user_agent: user_agent,
|
|
136
|
+
system: system,
|
|
137
|
+
email: email,
|
|
138
|
+
refund_quote_id: refund_quote_id,
|
|
139
|
+
booking_uid: booking_uid,
|
|
140
|
+
additional_properties: additional_properties)
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Provides a human-readable string representation of the object.
|
|
144
|
+
def to_s
|
|
145
|
+
class_name = self.class.name.split('::').last
|
|
146
|
+
"<#{class_name} api_key: #{@api_key}, timestamp: #{@timestamp}, nonce: #{@nonce}, locale:"\
|
|
147
|
+
" #{@locale}, customer_ip: #{@customer_ip}, session_id: #{@session_id}, user_agent:"\
|
|
148
|
+
" #{@user_agent}, system: #{@system}, email: #{@email}, refund_quote_id:"\
|
|
149
|
+
" #{@refund_quote_id}, booking_uid: #{@booking_uid}, additional_properties:"\
|
|
150
|
+
" #{@additional_properties}>"
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Provides a debugging-friendly string with detailed object information.
|
|
154
|
+
def inspect
|
|
155
|
+
class_name = self.class.name.split('::').last
|
|
156
|
+
"<#{class_name} api_key: #{@api_key.inspect}, timestamp: #{@timestamp.inspect}, nonce:"\
|
|
157
|
+
" #{@nonce.inspect}, locale: #{@locale.inspect}, customer_ip: #{@customer_ip.inspect},"\
|
|
158
|
+
" session_id: #{@session_id.inspect}, user_agent: #{@user_agent.inspect}, system:"\
|
|
159
|
+
" #{@system.inspect}, email: #{@email.inspect}, refund_quote_id:"\
|
|
160
|
+
" #{@refund_quote_id.inspect}, booking_uid: #{@booking_uid.inspect}, additional_properties:"\
|
|
161
|
+
" #{@additional_properties}>"
|
|
162
|
+
end
|
|
163
|
+
end
|
|
164
|
+
end
|