cybersource_rest_client 0.0.19 → 0.0.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +4 -0
- data/lib/AuthenticationSDK/util/Constants.rb +8 -0
- data/lib/cybersource_rest_client.rb +104 -11
- data/lib/cybersource_rest_client/api/authentication_exemptions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +142 -0
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -2
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -2
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +78 -13
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payments_api.rb +71 -0
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +87 -87
- data/lib/cybersource_rest_client/api/reports_api.rb +4 -4
- data/lib/cybersource_rest_client/api/reversal_api.rb +65 -0
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -4
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
- data/lib/cybersource_rest_client/api/tokenization_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -9
- data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
- data/lib/cybersource_rest_client/api/verification_api.rb +154 -0
- data/lib/cybersource_rest_client/api/void_api.rb +65 -0
- data/lib/cybersource_rest_client/models/add_negative_list_request.rb +228 -0
- data/lib/cybersource_rest_client/models/authentication_exemptions_request.rb +1 -1
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +22 -4
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +11 -2
- data/lib/cybersource_rest_client/models/create_credit_request.rb +32 -5
- data/lib/cybersource_rest_client/models/create_instrument_identifier_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +22 -4
- data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +1 -1
- data/lib/cybersource_rest_client/models/embedded_instrument_identifier_response.rb +10 -1
- data/lib/cybersource_rest_client/models/error.rb +13 -23
- data/lib/cybersource_rest_client/models/error_bean.rb +1 -1
- data/lib/cybersource_rest_client/models/error_links.rb +15 -15
- data/lib/cybersource_rest_client/models/error_response.rb +20 -2
- data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +183 -0
- data/lib/cybersource_rest_client/models/generate_public_key_request.rb +14 -4
- data/lib/cybersource_rest_client/models/increment_auth_request.rb +219 -0
- data/lib/cybersource_rest_client/models/inline_response_400.rb +14 -59
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +59 -14
- data/lib/cybersource_rest_client/models/{inline_response_400_fields.rb → inline_response_400_1_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/instrument_identifier_enrollable_card.rb +1 -1
- data/lib/cybersource_rest_client/models/instrument_identifier_response.rb +10 -1
- data/lib/cybersource_rest_client/models/instrument_identifier_tokenized_card.rb +272 -0
- data/lib/cybersource_rest_client/models/key_parameters.rb +14 -4
- data/lib/cybersource_rest_client/models/link.rb +25 -4
- data/lib/cybersource_rest_client/models/links.rb +18 -23
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +219 -0
- data/lib/cybersource_rest_client/models/mit_void_request.rb +183 -0
- data/lib/cybersource_rest_client/models/oct_create_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +210 -0
- data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +15 -6
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +14 -4
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response.rb +298 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_reversals_post201_response__links.rb → pts_v2_incremental_authorization_patch201_response__links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2payouts_client_reference_information.rb → pts_v2_incremental_authorization_patch201_response_client_reference_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information_account_features.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +293 -0
- data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +225 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +23 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_invoice_details.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processing_information.rb +184 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +264 -19
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +28 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +29 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +10 -10
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +35 -10
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +14 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +3 -28
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +5 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +14 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +108 -15
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_japan_payment_options.rb +209 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +32 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +55 -21
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +74 -14
- data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +26 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +21 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_currency_conversion.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +30 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +10 -10
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +27 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +91 -16
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +158 -15
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +19 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +359 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_promotion_information.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information.rb +226 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_agency.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +1229 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +233 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb +988 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +285 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs.rb +614 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ticket_issuer.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_merchant_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options.rb +183 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator.rb +184 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsid_travel_information.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +34 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +194 -19
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +23 -14
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_travel_information.rb +201 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +19 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +54 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +33 -8
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +22 -4
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +22 -4
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +285 -0
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address1.rb +224 -0
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information.rb +327 -0
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_bar_code.rb +209 -0
- data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_standard_address.rb +433 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response.rb +2 -2
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +249 -4
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response.rb +246 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information.rb +224 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_error_information.rb +205 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +3 -3
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +386 -7
- data/lib/cybersource_rest_client/models/{riskv1authentications_consumer_authentication_information_ivr.rb → risk_v1_authentications_post201_response_consumer_authentication_information_ivr.rb} +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response.rb +225 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +54 -4
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +285 -0
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +229 -0
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list.rb +185 -0
- data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb +235 -0
- data/lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb +237 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_buyer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_client_reference_information.rb +233 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information.rb +203 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb +410 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +342 -0
- data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +392 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_acquirer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_fluid_data.rb +268 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +4 -214
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/riskv1authentications_acquirer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +4 -333
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +2 -2
- data/lib/cybersource_rest_client/models/{riskv1authentications_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information.rb +210 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +286 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +325 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +184 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_card_verification.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +1 -26
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +4 -13
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +1 -26
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +4 -13
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +4 -13
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +2 -2
- data/lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information_marking_details.rb +247 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +205 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information_weights.rb +249 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information.rb +203 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to.rb +503 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to_company.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +364 -0
- data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to.rb +249 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_buyer_information.rb +186 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_device_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information.rb +213 -0
- data/lib/cybersource_rest_client/models/{riskv1decisions_order_information_address.rb → riskv1liststypeentries_order_information_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to.rb +449 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +199 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +325 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information.rb +193 -0
- data/lib/cybersource_rest_client/models/{riskv1decisions_payment_information_bank.rb → riskv1liststypeentries_payment_information_bank.rb} +1 -1
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +234 -0
- data/lib/cybersource_rest_client/models/riskv1liststypeentries_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/{riskv1decisions_risk_information_marking_details.rb → riskv1liststypeentries_risk_information_marking_details.rb} +29 -44
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_embedded_instrument_identifier.rb +10 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +10 -1
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_tokenized_card.rb +272 -0
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_tokenized_card_card.rb +253 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +4 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +1 -1
- data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +219 -0
- data/lib/cybersource_rest_client/models/{request.rb → validate_request.rb} +12 -3
- data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +201 -0
- metadata +107 -14
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +0 -365
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +0 -221
data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs.rb
ADDED
@@ -0,0 +1,614 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class Ptsv2paymentsTravelInformationTransitAirlineLegs
|
17
|
+
# Carrier Code: IATA1 code for the carrier for this leg of the trip.
|
18
|
+
attr_accessor :carrier_code
|
19
|
+
|
20
|
+
# Flight number for this leg of the trip.
|
21
|
+
attr_accessor :flight_number
|
22
|
+
|
23
|
+
# IATA1 code for the originating airport for this leg of the trip.
|
24
|
+
attr_accessor :originating_airport_code
|
25
|
+
|
26
|
+
# IATA1 code for the class of service for this leg of the trip.
|
27
|
+
attr_accessor :_class
|
28
|
+
|
29
|
+
# Code that indicates whether a stopover is allowed on this leg of the trip. Possible Values: O(capital letter \"O\"): stopover allowed. X(capital letter \"X\"): Stopover not allowed.
|
30
|
+
attr_accessor :stopover_indicator
|
31
|
+
|
32
|
+
# Departure date for the first leg of the trip. Format: YYYYMMDD.
|
33
|
+
attr_accessor :departure_date
|
34
|
+
|
35
|
+
# IATA1 code for the destination airport for this leg of the trip.
|
36
|
+
attr_accessor :destination_airport_code
|
37
|
+
|
38
|
+
# Code for the fare basis for this leg of the trip. The fare basis is assigned by the carriers and indicates a particular ticket type, such as business class or discounted/nonrefundable.
|
39
|
+
attr_accessor :fare_basis
|
40
|
+
|
41
|
+
# Amount of departure tax for this leg of the trip.
|
42
|
+
attr_accessor :depart_tax_amount
|
43
|
+
|
44
|
+
# Ticket that contains additional coupons for this leg of the trip on an itinerary that has more than four segments.
|
45
|
+
attr_accessor :conjunction_ticket
|
46
|
+
|
47
|
+
# New ticket number that is issued when the ticket is exchanged for this leg of the trip.
|
48
|
+
attr_accessor :exchange_ticket_number
|
49
|
+
|
50
|
+
# Each leg on the ticket requires a separate coupon, and each coupon is identified by the coupon number.
|
51
|
+
attr_accessor :coupon_number
|
52
|
+
|
53
|
+
# Time of departure for this leg of the trip. The format is military time and HHMM: If not all zeros, then the hours must be 00-23 and the minutes must be 00-59
|
54
|
+
attr_accessor :departure_time
|
55
|
+
|
56
|
+
# AM or PM for the departure time. Possible values: - A: 12:00 midnight to 11:59 a.m. - P: 12:00 noon to 11:59 p.m
|
57
|
+
attr_accessor :departure_time_meridian
|
58
|
+
|
59
|
+
# Time of arrival for this leg of the trip. The format is military time and HHMM: If not all zeros, then the hours must be 00-23 and the minutes must be 00-59
|
60
|
+
attr_accessor :arrival_time
|
61
|
+
|
62
|
+
# AM or PM for the arrival time for this leg of the trip. Possible values: - A: 12:00 midnight to 11:59 a.m. - P: 12:00 noon to 11:59 p.m. Format: English characters only
|
63
|
+
attr_accessor :arrival_time_meridian
|
64
|
+
|
65
|
+
# Notes or notations about endorsements and restrictions for this leg of the trip. Endorsements can be notations added by the travel agency, including mandatory government required notations such as value added tax. Restrictions are limitations for the ticket based on the type of fare, such as a nonrefundable tic.
|
66
|
+
attr_accessor :endorsements_restrictions
|
67
|
+
|
68
|
+
# Total fare for this leg of the trip.
|
69
|
+
attr_accessor :total_fare_amount
|
70
|
+
|
71
|
+
# Fee for this leg of the trip, such as an airport fee or country fee.
|
72
|
+
attr_accessor :fee_amount
|
73
|
+
|
74
|
+
# Tax for this leg of the trip
|
75
|
+
attr_accessor :tax_amount
|
76
|
+
|
77
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
78
|
+
def self.attribute_map
|
79
|
+
{
|
80
|
+
:'carrier_code' => :'carrierCode',
|
81
|
+
:'flight_number' => :'flightNumber',
|
82
|
+
:'originating_airport_code' => :'originatingAirportCode',
|
83
|
+
:'_class' => :'class',
|
84
|
+
:'stopover_indicator' => :'stopoverIndicator',
|
85
|
+
:'departure_date' => :'departureDate',
|
86
|
+
:'destination_airport_code' => :'destinationAirportCode',
|
87
|
+
:'fare_basis' => :'fareBasis',
|
88
|
+
:'depart_tax_amount' => :'departTaxAmount',
|
89
|
+
:'conjunction_ticket' => :'conjunctionTicket',
|
90
|
+
:'exchange_ticket_number' => :'exchangeTicketNumber',
|
91
|
+
:'coupon_number' => :'couponNumber',
|
92
|
+
:'departure_time' => :'departureTime',
|
93
|
+
:'departure_time_meridian' => :'departureTimeMeridian',
|
94
|
+
:'arrival_time' => :'arrivalTime',
|
95
|
+
:'arrival_time_meridian' => :'arrivalTimeMeridian',
|
96
|
+
:'endorsements_restrictions' => :'endorsementsRestrictions',
|
97
|
+
:'total_fare_amount' => :'totalFareAmount',
|
98
|
+
:'fee_amount' => :'feeAmount',
|
99
|
+
:'tax_amount' => :'taxAmount'
|
100
|
+
}
|
101
|
+
end
|
102
|
+
|
103
|
+
# Attribute type mapping.
|
104
|
+
def self.swagger_types
|
105
|
+
{
|
106
|
+
:'carrier_code' => :'String',
|
107
|
+
:'flight_number' => :'String',
|
108
|
+
:'originating_airport_code' => :'String',
|
109
|
+
:'_class' => :'String',
|
110
|
+
:'stopover_indicator' => :'Integer',
|
111
|
+
:'departure_date' => :'Integer',
|
112
|
+
:'destination_airport_code' => :'String',
|
113
|
+
:'fare_basis' => :'String',
|
114
|
+
:'depart_tax_amount' => :'String',
|
115
|
+
:'conjunction_ticket' => :'String',
|
116
|
+
:'exchange_ticket_number' => :'String',
|
117
|
+
:'coupon_number' => :'String',
|
118
|
+
:'departure_time' => :'Integer',
|
119
|
+
:'departure_time_meridian' => :'String',
|
120
|
+
:'arrival_time' => :'Integer',
|
121
|
+
:'arrival_time_meridian' => :'String',
|
122
|
+
:'endorsements_restrictions' => :'String',
|
123
|
+
:'total_fare_amount' => :'String',
|
124
|
+
:'fee_amount' => :'String',
|
125
|
+
:'tax_amount' => :'String'
|
126
|
+
}
|
127
|
+
end
|
128
|
+
|
129
|
+
# Initializes the object
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
+
def initialize(attributes = {})
|
132
|
+
return unless attributes.is_a?(Hash)
|
133
|
+
|
134
|
+
# convert string to symbol for hash key
|
135
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
136
|
+
|
137
|
+
if attributes.has_key?(:'carrierCode')
|
138
|
+
self.carrier_code = attributes[:'carrierCode']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.has_key?(:'flightNumber')
|
142
|
+
self.flight_number = attributes[:'flightNumber']
|
143
|
+
end
|
144
|
+
|
145
|
+
if attributes.has_key?(:'originatingAirportCode')
|
146
|
+
self.originating_airport_code = attributes[:'originatingAirportCode']
|
147
|
+
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'class')
|
150
|
+
self._class = attributes[:'class']
|
151
|
+
end
|
152
|
+
|
153
|
+
if attributes.has_key?(:'stopoverIndicator')
|
154
|
+
self.stopover_indicator = attributes[:'stopoverIndicator']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.has_key?(:'departureDate')
|
158
|
+
self.departure_date = attributes[:'departureDate']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.has_key?(:'destinationAirportCode')
|
162
|
+
self.destination_airport_code = attributes[:'destinationAirportCode']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.has_key?(:'fareBasis')
|
166
|
+
self.fare_basis = attributes[:'fareBasis']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.has_key?(:'departTaxAmount')
|
170
|
+
self.depart_tax_amount = attributes[:'departTaxAmount']
|
171
|
+
end
|
172
|
+
|
173
|
+
if attributes.has_key?(:'conjunctionTicket')
|
174
|
+
self.conjunction_ticket = attributes[:'conjunctionTicket']
|
175
|
+
end
|
176
|
+
|
177
|
+
if attributes.has_key?(:'exchangeTicketNumber')
|
178
|
+
self.exchange_ticket_number = attributes[:'exchangeTicketNumber']
|
179
|
+
end
|
180
|
+
|
181
|
+
if attributes.has_key?(:'couponNumber')
|
182
|
+
self.coupon_number = attributes[:'couponNumber']
|
183
|
+
end
|
184
|
+
|
185
|
+
if attributes.has_key?(:'departureTime')
|
186
|
+
self.departure_time = attributes[:'departureTime']
|
187
|
+
end
|
188
|
+
|
189
|
+
if attributes.has_key?(:'departureTimeMeridian')
|
190
|
+
self.departure_time_meridian = attributes[:'departureTimeMeridian']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.has_key?(:'arrivalTime')
|
194
|
+
self.arrival_time = attributes[:'arrivalTime']
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.has_key?(:'arrivalTimeMeridian')
|
198
|
+
self.arrival_time_meridian = attributes[:'arrivalTimeMeridian']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.has_key?(:'endorsementsRestrictions')
|
202
|
+
self.endorsements_restrictions = attributes[:'endorsementsRestrictions']
|
203
|
+
end
|
204
|
+
|
205
|
+
if attributes.has_key?(:'totalFareAmount')
|
206
|
+
self.total_fare_amount = attributes[:'totalFareAmount']
|
207
|
+
end
|
208
|
+
|
209
|
+
if attributes.has_key?(:'feeAmount')
|
210
|
+
self.fee_amount = attributes[:'feeAmount']
|
211
|
+
end
|
212
|
+
|
213
|
+
if attributes.has_key?(:'taxAmount')
|
214
|
+
self.tax_amount = attributes[:'taxAmount']
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
219
|
+
# @return Array for valid properties with the reasons
|
220
|
+
def list_invalid_properties
|
221
|
+
invalid_properties = Array.new
|
222
|
+
if !@carrier_code.nil? && @carrier_code.to_s.length > 4
|
223
|
+
invalid_properties.push('invalid value for "carrier_code", the character length must be smaller than or equal to 4.')
|
224
|
+
end
|
225
|
+
|
226
|
+
if !@flight_number.nil? && @flight_number.to_s.length > 6
|
227
|
+
invalid_properties.push('invalid value for "flight_number", the character length must be smaller than or equal to 6.')
|
228
|
+
end
|
229
|
+
|
230
|
+
if !@originating_airport_code.nil? && @originating_airport_code.to_s.length > 5
|
231
|
+
invalid_properties.push('invalid value for "originating_airport_code", the character length must be smaller than or equal to 5.')
|
232
|
+
end
|
233
|
+
|
234
|
+
if !@_class.nil? && @_class.to_s.length > 3
|
235
|
+
invalid_properties.push('invalid value for "_class", the character length must be smaller than or equal to 3.')
|
236
|
+
end
|
237
|
+
|
238
|
+
if !@destination_airport_code.nil? && @destination_airport_code.to_s.length > 3
|
239
|
+
invalid_properties.push('invalid value for "destination_airport_code", the character length must be smaller than or equal to 3.')
|
240
|
+
end
|
241
|
+
|
242
|
+
if !@fare_basis.nil? && @fare_basis.to_s.length > 15
|
243
|
+
invalid_properties.push('invalid value for "fare_basis", the character length must be smaller than or equal to 15.')
|
244
|
+
end
|
245
|
+
|
246
|
+
if !@depart_tax_amount.nil? && @depart_tax_amount.to_s.length > 12
|
247
|
+
invalid_properties.push('invalid value for "depart_tax_amount", the character length must be smaller than or equal to 12.')
|
248
|
+
end
|
249
|
+
|
250
|
+
if !@conjunction_ticket.nil? && @conjunction_ticket.to_s.length > 25
|
251
|
+
invalid_properties.push('invalid value for "conjunction_ticket", the character length must be smaller than or equal to 25.')
|
252
|
+
end
|
253
|
+
|
254
|
+
if !@exchange_ticket_number.nil? && @exchange_ticket_number.to_s.length > 25
|
255
|
+
invalid_properties.push('invalid value for "exchange_ticket_number", the character length must be smaller than or equal to 25.')
|
256
|
+
end
|
257
|
+
|
258
|
+
if !@coupon_number.nil? && @coupon_number.to_s.length > 1
|
259
|
+
invalid_properties.push('invalid value for "coupon_number", the character length must be smaller than or equal to 1.')
|
260
|
+
end
|
261
|
+
|
262
|
+
if !@departure_time_meridian.nil? && @departure_time_meridian.to_s.length > 1
|
263
|
+
invalid_properties.push('invalid value for "departure_time_meridian", the character length must be smaller than or equal to 1.')
|
264
|
+
end
|
265
|
+
|
266
|
+
if !@arrival_time_meridian.nil? && @arrival_time_meridian.to_s.length > 1
|
267
|
+
invalid_properties.push('invalid value for "arrival_time_meridian", the character length must be smaller than or equal to 1.')
|
268
|
+
end
|
269
|
+
|
270
|
+
if !@endorsements_restrictions.nil? && @endorsements_restrictions.to_s.length > 20
|
271
|
+
invalid_properties.push('invalid value for "endorsements_restrictions", the character length must be smaller than or equal to 20.')
|
272
|
+
end
|
273
|
+
|
274
|
+
if !@total_fare_amount.nil? && @total_fare_amount.to_s.length > 15
|
275
|
+
invalid_properties.push('invalid value for "total_fare_amount", the character length must be smaller than or equal to 15.')
|
276
|
+
end
|
277
|
+
|
278
|
+
if !@fee_amount.nil? && @fee_amount.to_s.length > 12
|
279
|
+
invalid_properties.push('invalid value for "fee_amount", the character length must be smaller than or equal to 12.')
|
280
|
+
end
|
281
|
+
|
282
|
+
if !@tax_amount.nil? && @tax_amount.to_s.length > 12
|
283
|
+
invalid_properties.push('invalid value for "tax_amount", the character length must be smaller than or equal to 12.')
|
284
|
+
end
|
285
|
+
|
286
|
+
invalid_properties
|
287
|
+
end
|
288
|
+
|
289
|
+
# Check to see if the all the properties in the model are valid
|
290
|
+
# @return true if the model is valid
|
291
|
+
def valid?
|
292
|
+
return false if !@carrier_code.nil? && @carrier_code.to_s.length > 4
|
293
|
+
return false if !@flight_number.nil? && @flight_number.to_s.length > 6
|
294
|
+
return false if !@originating_airport_code.nil? && @originating_airport_code.to_s.length > 5
|
295
|
+
return false if !@_class.nil? && @_class.to_s.length > 3
|
296
|
+
return false if !@destination_airport_code.nil? && @destination_airport_code.to_s.length > 3
|
297
|
+
return false if !@fare_basis.nil? && @fare_basis.to_s.length > 15
|
298
|
+
return false if !@depart_tax_amount.nil? && @depart_tax_amount.to_s.length > 12
|
299
|
+
return false if !@conjunction_ticket.nil? && @conjunction_ticket.to_s.length > 25
|
300
|
+
return false if !@exchange_ticket_number.nil? && @exchange_ticket_number.to_s.length > 25
|
301
|
+
return false if !@coupon_number.nil? && @coupon_number.to_s.length > 1
|
302
|
+
return false if !@departure_time_meridian.nil? && @departure_time_meridian.to_s.length > 1
|
303
|
+
return false if !@arrival_time_meridian.nil? && @arrival_time_meridian.to_s.length > 1
|
304
|
+
return false if !@endorsements_restrictions.nil? && @endorsements_restrictions.to_s.length > 20
|
305
|
+
return false if !@total_fare_amount.nil? && @total_fare_amount.to_s.length > 15
|
306
|
+
return false if !@fee_amount.nil? && @fee_amount.to_s.length > 12
|
307
|
+
return false if !@tax_amount.nil? && @tax_amount.to_s.length > 12
|
308
|
+
true
|
309
|
+
end
|
310
|
+
|
311
|
+
# Custom attribute writer method with validation
|
312
|
+
# @param [Object] carrier_code Value to be assigned
|
313
|
+
def carrier_code=(carrier_code)
|
314
|
+
if !carrier_code.nil? && carrier_code.to_s.length > 4
|
315
|
+
fail ArgumentError, 'invalid value for "carrier_code", the character length must be smaller than or equal to 4.'
|
316
|
+
end
|
317
|
+
|
318
|
+
@carrier_code = carrier_code
|
319
|
+
end
|
320
|
+
|
321
|
+
# Custom attribute writer method with validation
|
322
|
+
# @param [Object] flight_number Value to be assigned
|
323
|
+
def flight_number=(flight_number)
|
324
|
+
if !flight_number.nil? && flight_number.to_s.length > 6
|
325
|
+
fail ArgumentError, 'invalid value for "flight_number", the character length must be smaller than or equal to 6.'
|
326
|
+
end
|
327
|
+
|
328
|
+
@flight_number = flight_number
|
329
|
+
end
|
330
|
+
|
331
|
+
# Custom attribute writer method with validation
|
332
|
+
# @param [Object] originating_airport_code Value to be assigned
|
333
|
+
def originating_airport_code=(originating_airport_code)
|
334
|
+
if !originating_airport_code.nil? && originating_airport_code.to_s.length > 5
|
335
|
+
fail ArgumentError, 'invalid value for "originating_airport_code", the character length must be smaller than or equal to 5.'
|
336
|
+
end
|
337
|
+
|
338
|
+
@originating_airport_code = originating_airport_code
|
339
|
+
end
|
340
|
+
|
341
|
+
# Custom attribute writer method with validation
|
342
|
+
# @param [Object] _class Value to be assigned
|
343
|
+
def _class=(_class)
|
344
|
+
if !_class.nil? && _class.to_s.length > 3
|
345
|
+
fail ArgumentError, 'invalid value for "_class", the character length must be smaller than or equal to 3.'
|
346
|
+
end
|
347
|
+
|
348
|
+
@_class = _class
|
349
|
+
end
|
350
|
+
|
351
|
+
# Custom attribute writer method with validation
|
352
|
+
# @param [Object] destination_airport_code Value to be assigned
|
353
|
+
def destination_airport_code=(destination_airport_code)
|
354
|
+
if !destination_airport_code.nil? && destination_airport_code.to_s.length > 3
|
355
|
+
fail ArgumentError, 'invalid value for "destination_airport_code", the character length must be smaller than or equal to 3.'
|
356
|
+
end
|
357
|
+
|
358
|
+
@destination_airport_code = destination_airport_code
|
359
|
+
end
|
360
|
+
|
361
|
+
# Custom attribute writer method with validation
|
362
|
+
# @param [Object] fare_basis Value to be assigned
|
363
|
+
def fare_basis=(fare_basis)
|
364
|
+
if !fare_basis.nil? && fare_basis.to_s.length > 15
|
365
|
+
fail ArgumentError, 'invalid value for "fare_basis", the character length must be smaller than or equal to 15.'
|
366
|
+
end
|
367
|
+
|
368
|
+
@fare_basis = fare_basis
|
369
|
+
end
|
370
|
+
|
371
|
+
# Custom attribute writer method with validation
|
372
|
+
# @param [Object] depart_tax_amount Value to be assigned
|
373
|
+
def depart_tax_amount=(depart_tax_amount)
|
374
|
+
if !depart_tax_amount.nil? && depart_tax_amount.to_s.length > 12
|
375
|
+
fail ArgumentError, 'invalid value for "depart_tax_amount", the character length must be smaller than or equal to 12.'
|
376
|
+
end
|
377
|
+
|
378
|
+
@depart_tax_amount = depart_tax_amount
|
379
|
+
end
|
380
|
+
|
381
|
+
# Custom attribute writer method with validation
|
382
|
+
# @param [Object] conjunction_ticket Value to be assigned
|
383
|
+
def conjunction_ticket=(conjunction_ticket)
|
384
|
+
if !conjunction_ticket.nil? && conjunction_ticket.to_s.length > 25
|
385
|
+
fail ArgumentError, 'invalid value for "conjunction_ticket", the character length must be smaller than or equal to 25.'
|
386
|
+
end
|
387
|
+
|
388
|
+
@conjunction_ticket = conjunction_ticket
|
389
|
+
end
|
390
|
+
|
391
|
+
# Custom attribute writer method with validation
|
392
|
+
# @param [Object] exchange_ticket_number Value to be assigned
|
393
|
+
def exchange_ticket_number=(exchange_ticket_number)
|
394
|
+
if !exchange_ticket_number.nil? && exchange_ticket_number.to_s.length > 25
|
395
|
+
fail ArgumentError, 'invalid value for "exchange_ticket_number", the character length must be smaller than or equal to 25.'
|
396
|
+
end
|
397
|
+
|
398
|
+
@exchange_ticket_number = exchange_ticket_number
|
399
|
+
end
|
400
|
+
|
401
|
+
# Custom attribute writer method with validation
|
402
|
+
# @param [Object] coupon_number Value to be assigned
|
403
|
+
def coupon_number=(coupon_number)
|
404
|
+
if !coupon_number.nil? && coupon_number.to_s.length > 1
|
405
|
+
fail ArgumentError, 'invalid value for "coupon_number", the character length must be smaller than or equal to 1.'
|
406
|
+
end
|
407
|
+
|
408
|
+
@coupon_number = coupon_number
|
409
|
+
end
|
410
|
+
|
411
|
+
# Custom attribute writer method with validation
|
412
|
+
# @param [Object] departure_time_meridian Value to be assigned
|
413
|
+
def departure_time_meridian=(departure_time_meridian)
|
414
|
+
if !departure_time_meridian.nil? && departure_time_meridian.to_s.length > 1
|
415
|
+
fail ArgumentError, 'invalid value for "departure_time_meridian", the character length must be smaller than or equal to 1.'
|
416
|
+
end
|
417
|
+
|
418
|
+
@departure_time_meridian = departure_time_meridian
|
419
|
+
end
|
420
|
+
|
421
|
+
# Custom attribute writer method with validation
|
422
|
+
# @param [Object] arrival_time_meridian Value to be assigned
|
423
|
+
def arrival_time_meridian=(arrival_time_meridian)
|
424
|
+
if !arrival_time_meridian.nil? && arrival_time_meridian.to_s.length > 1
|
425
|
+
fail ArgumentError, 'invalid value for "arrival_time_meridian", the character length must be smaller than or equal to 1.'
|
426
|
+
end
|
427
|
+
|
428
|
+
@arrival_time_meridian = arrival_time_meridian
|
429
|
+
end
|
430
|
+
|
431
|
+
# Custom attribute writer method with validation
|
432
|
+
# @param [Object] endorsements_restrictions Value to be assigned
|
433
|
+
def endorsements_restrictions=(endorsements_restrictions)
|
434
|
+
if !endorsements_restrictions.nil? && endorsements_restrictions.to_s.length > 20
|
435
|
+
fail ArgumentError, 'invalid value for "endorsements_restrictions", the character length must be smaller than or equal to 20.'
|
436
|
+
end
|
437
|
+
|
438
|
+
@endorsements_restrictions = endorsements_restrictions
|
439
|
+
end
|
440
|
+
|
441
|
+
# Custom attribute writer method with validation
|
442
|
+
# @param [Object] total_fare_amount Value to be assigned
|
443
|
+
def total_fare_amount=(total_fare_amount)
|
444
|
+
if !total_fare_amount.nil? && total_fare_amount.to_s.length > 15
|
445
|
+
fail ArgumentError, 'invalid value for "total_fare_amount", the character length must be smaller than or equal to 15.'
|
446
|
+
end
|
447
|
+
|
448
|
+
@total_fare_amount = total_fare_amount
|
449
|
+
end
|
450
|
+
|
451
|
+
# Custom attribute writer method with validation
|
452
|
+
# @param [Object] fee_amount Value to be assigned
|
453
|
+
def fee_amount=(fee_amount)
|
454
|
+
if !fee_amount.nil? && fee_amount.to_s.length > 12
|
455
|
+
fail ArgumentError, 'invalid value for "fee_amount", the character length must be smaller than or equal to 12.'
|
456
|
+
end
|
457
|
+
|
458
|
+
@fee_amount = fee_amount
|
459
|
+
end
|
460
|
+
|
461
|
+
# Custom attribute writer method with validation
|
462
|
+
# @param [Object] tax_amount Value to be assigned
|
463
|
+
def tax_amount=(tax_amount)
|
464
|
+
if !tax_amount.nil? && tax_amount.to_s.length > 12
|
465
|
+
fail ArgumentError, 'invalid value for "tax_amount", the character length must be smaller than or equal to 12.'
|
466
|
+
end
|
467
|
+
|
468
|
+
@tax_amount = tax_amount
|
469
|
+
end
|
470
|
+
|
471
|
+
# Checks equality by comparing each attribute.
|
472
|
+
# @param [Object] Object to be compared
|
473
|
+
def ==(o)
|
474
|
+
return true if self.equal?(o)
|
475
|
+
self.class == o.class &&
|
476
|
+
carrier_code == o.carrier_code &&
|
477
|
+
flight_number == o.flight_number &&
|
478
|
+
originating_airport_code == o.originating_airport_code &&
|
479
|
+
_class == o._class &&
|
480
|
+
stopover_indicator == o.stopover_indicator &&
|
481
|
+
departure_date == o.departure_date &&
|
482
|
+
destination_airport_code == o.destination_airport_code &&
|
483
|
+
fare_basis == o.fare_basis &&
|
484
|
+
depart_tax_amount == o.depart_tax_amount &&
|
485
|
+
conjunction_ticket == o.conjunction_ticket &&
|
486
|
+
exchange_ticket_number == o.exchange_ticket_number &&
|
487
|
+
coupon_number == o.coupon_number &&
|
488
|
+
departure_time == o.departure_time &&
|
489
|
+
departure_time_meridian == o.departure_time_meridian &&
|
490
|
+
arrival_time == o.arrival_time &&
|
491
|
+
arrival_time_meridian == o.arrival_time_meridian &&
|
492
|
+
endorsements_restrictions == o.endorsements_restrictions &&
|
493
|
+
total_fare_amount == o.total_fare_amount &&
|
494
|
+
fee_amount == o.fee_amount &&
|
495
|
+
tax_amount == o.tax_amount
|
496
|
+
end
|
497
|
+
|
498
|
+
# @see the `==` method
|
499
|
+
# @param [Object] Object to be compared
|
500
|
+
def eql?(o)
|
501
|
+
self == o
|
502
|
+
end
|
503
|
+
|
504
|
+
# Calculates hash code according to all attributes.
|
505
|
+
# @return [Fixnum] Hash code
|
506
|
+
def hash
|
507
|
+
[carrier_code, flight_number, originating_airport_code, _class, stopover_indicator, departure_date, destination_airport_code, fare_basis, depart_tax_amount, conjunction_ticket, exchange_ticket_number, coupon_number, departure_time, departure_time_meridian, arrival_time, arrival_time_meridian, endorsements_restrictions, total_fare_amount, fee_amount, tax_amount].hash
|
508
|
+
end
|
509
|
+
|
510
|
+
# Builds the object from hash
|
511
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
512
|
+
# @return [Object] Returns the model itself
|
513
|
+
def build_from_hash(attributes)
|
514
|
+
return nil unless attributes.is_a?(Hash)
|
515
|
+
self.class.swagger_types.each_pair do |key, type|
|
516
|
+
if type =~ /\AArray<(.*)>/i
|
517
|
+
# check to ensure the input is an array given that the the attribute
|
518
|
+
# is documented as an array but the input is not
|
519
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
520
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
521
|
+
end
|
522
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
523
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
524
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
525
|
+
end
|
526
|
+
|
527
|
+
self
|
528
|
+
end
|
529
|
+
|
530
|
+
# Deserializes the data based on type
|
531
|
+
# @param string type Data type
|
532
|
+
# @param string value Value to be deserialized
|
533
|
+
# @return [Object] Deserialized data
|
534
|
+
def _deserialize(type, value)
|
535
|
+
case type.to_sym
|
536
|
+
when :DateTime
|
537
|
+
DateTime.parse(value)
|
538
|
+
when :Date
|
539
|
+
Date.parse(value)
|
540
|
+
when :String
|
541
|
+
value.to_s
|
542
|
+
when :Integer
|
543
|
+
value.to_i
|
544
|
+
when :Float
|
545
|
+
value.to_f
|
546
|
+
when :BOOLEAN
|
547
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
548
|
+
true
|
549
|
+
else
|
550
|
+
false
|
551
|
+
end
|
552
|
+
when :Object
|
553
|
+
# generic object (usually a Hash), return directly
|
554
|
+
value
|
555
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
556
|
+
inner_type = Regexp.last_match[:inner_type]
|
557
|
+
value.map { |v| _deserialize(inner_type, v) }
|
558
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
559
|
+
k_type = Regexp.last_match[:k_type]
|
560
|
+
v_type = Regexp.last_match[:v_type]
|
561
|
+
{}.tap do |hash|
|
562
|
+
value.each do |k, v|
|
563
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
564
|
+
end
|
565
|
+
end
|
566
|
+
else # model
|
567
|
+
temp_model = CyberSource.const_get(type).new
|
568
|
+
temp_model.build_from_hash(value)
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
# Returns the string representation of the object
|
573
|
+
# @return [String] String presentation of the object
|
574
|
+
def to_s
|
575
|
+
to_hash.to_s
|
576
|
+
end
|
577
|
+
|
578
|
+
# to_body is an alias to to_hash (backward compatibility)
|
579
|
+
# @return [Hash] Returns the object in the form of hash
|
580
|
+
def to_body
|
581
|
+
to_hash
|
582
|
+
end
|
583
|
+
|
584
|
+
# Returns the object in the form of hash
|
585
|
+
# @return [Hash] Returns the object in the form of hash
|
586
|
+
def to_hash
|
587
|
+
hash = {}
|
588
|
+
self.class.attribute_map.each_pair do |attr, param|
|
589
|
+
value = self.send(attr)
|
590
|
+
next if value.nil?
|
591
|
+
hash[param] = _to_hash(value)
|
592
|
+
end
|
593
|
+
hash
|
594
|
+
end
|
595
|
+
|
596
|
+
# Outputs non-array value in the form of hash
|
597
|
+
# For object, use to_hash. Otherwise, just return the value
|
598
|
+
# @param [Object] value Any valid value
|
599
|
+
# @return [Hash] Returns the value in the form of hash
|
600
|
+
def _to_hash(value)
|
601
|
+
if value.is_a?(Array)
|
602
|
+
value.compact.map { |v| _to_hash(v) }
|
603
|
+
elsif value.is_a?(Hash)
|
604
|
+
{}.tap do |hash|
|
605
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
606
|
+
end
|
607
|
+
elsif value.respond_to? :to_hash
|
608
|
+
value.to_hash
|
609
|
+
else
|
610
|
+
value
|
611
|
+
end
|
612
|
+
end
|
613
|
+
end
|
614
|
+
end
|