cybersource_rest_client 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +88 -0
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +88 -0
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +154 -0
- data/lib/cybersource_rest_client/api/reversal_api.rb +0 -65
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +2 -76
- data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
- data/lib/cybersource_rest_client/api/void_api.rb +0 -65
- data/lib/cybersource_rest_client/models/{mit_void_request.rb → authorization_options.rb} +8 -8
- data/lib/cybersource_rest_client/models/bill_to.rb +467 -0
- data/lib/cybersource_rest_client/models/buyer_information.rb +278 -0
- data/lib/cybersource_rest_client/models/card_info.rb +224 -0
- data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +275 -0
- data/lib/cybersource_rest_client/models/der_public_key.rb +205 -0
- data/lib/cybersource_rest_client/models/detail.rb +194 -0
- data/lib/cybersource_rest_client/models/embedded_instrument_identifier.rb +319 -0
- data/lib/cybersource_rest_client/models/error.rb +202 -0
- data/lib/cybersource_rest_client/models/error_bean.rb +247 -0
- data/lib/cybersource_rest_client/models/error_field_bean.rb +205 -0
- data/lib/cybersource_rest_client/models/{inline_response_200.rb → error_links.rb} +24 -22
- data/lib/cybersource_rest_client/models/error_response.rb +174 -0
- data/lib/cybersource_rest_client/models/error_response_with_hal.rb +174 -0
- data/lib/cybersource_rest_client/models/existing_instrument_identifier_id.rb +175 -0
- data/lib/cybersource_rest_client/models/file_bean.rb +202 -0
- data/lib/cybersource_rest_client/models/file_detail.rb +278 -0
- data/lib/cybersource_rest_client/models/file_details_response.rb +194 -0
- data/lib/cybersource_rest_client/models/initiator.rb +183 -0
- data/lib/cybersource_rest_client/models/instrument_identifier.rb +295 -0
- data/lib/cybersource_rest_client/models/instrument_identifier_bank_account.rb +242 -0
- data/lib/cybersource_rest_client/models/instrument_identifier_card.rb +208 -0
- data/lib/cybersource_rest_client/models/instrument_identifier_enrollable_card.rb +202 -0
- data/lib/cybersource_rest_client/models/instrument_identifier_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/instrument_identifier_update.rb +183 -0
- data/lib/cybersource_rest_client/models/json_web_key.rb +225 -0
- data/lib/cybersource_rest_client/models/key_parameters.rb +189 -0
- data/lib/cybersource_rest_client/models/key_result.rb +202 -0
- data/lib/cybersource_rest_client/models/link.rb +183 -0
- data/lib/cybersource_rest_client/models/links.rb +201 -0
- data/lib/cybersource_rest_client/models/merchant_information.rb +183 -0
- data/lib/cybersource_rest_client/models/merchant_initiated_transaction.rb +199 -0
- data/lib/cybersource_rest_client/models/metadata.rb +184 -0
- data/lib/cybersource_rest_client/models/model_409_link.rb +183 -0
- data/lib/cybersource_rest_client/models/model_409_links.rb +183 -0
- data/lib/cybersource_rest_client/models/payment_instrument.rb +331 -0
- data/lib/cybersource_rest_client/models/payment_instrument_bank_account.rb +218 -0
- data/lib/cybersource_rest_client/models/payment_instrument_card.rb +403 -0
- data/lib/cybersource_rest_client/models/payment_instrument_for_instrument_identifier_links.rb +219 -0
- data/lib/cybersource_rest_client/models/payment_instruments_array.rb +175 -0
- data/lib/cybersource_rest_client/models/payment_instruments_for_instrument_identifier.rb +276 -0
- data/lib/cybersource_rest_client/models/personal_identification.rb +237 -0
- data/lib/cybersource_rest_client/models/personal_identification_array.rb +174 -0
- data/lib/cybersource_rest_client/models/pi_for_ii_link_first.rb +184 -0
- data/lib/cybersource_rest_client/models/pi_for_ii_link_last.rb +184 -0
- data/lib/cybersource_rest_client/models/pi_for_ii_link_next.rb +184 -0
- data/lib/cybersource_rest_client/models/pi_for_ii_link_prev.rb +184 -0
- data/lib/cybersource_rest_client/models/pi_for_ii_link_self.rb +184 -0
- data/lib/cybersource_rest_client/models/processing_information.rb +195 -0
- 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_bank_transfer_options.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_post201_response_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +15 -15
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +13 -13
- 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_card.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +7 -7
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +1 -1
- 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_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +9 -9
- 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 +2 -2
- 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_customer.rb +1 -1
- 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_merchant_advice.rb +2 -2
- 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_processor_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_refund_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +4 -4
- 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_reversals_post400_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 +0 -6
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +3 -3
- 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/pts_v2_payouts_post400_response.rb +0 -24
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +10 -10
- 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 +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +8 -8
- 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 +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +62 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +2 -17
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +8 -8
- 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 +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +9 -9
- 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 +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +18 -18
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +10 -10
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +1 -1
- 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 +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +4 -4
- 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 +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
- 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_client_reference_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +2 -26
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +10 -10
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{mit_reversal_request.rb → request.rb} +19 -28
- data/lib/cybersource_rest_client/models/response_status.rb +225 -0
- data/lib/cybersource_rest_client/models/response_status_details.rb +194 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +285 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +324 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +294 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +429 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +199 -0
- 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 +10 -1
- data/lib/cybersource_rest_client/models/{risk_v1_decisions_post201_response_risk_information_payment_information.rb → risk_v1_decisions_post201_response_payment_information.rb} +6 -6
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information.rb +15 -15
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_info_codes.rb +8 -8
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +34 -34
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_profile.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_providers_provider_name.rb +1 -1
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_score.rb +2 -2
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_travel.rb +210 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_travel_actual_final_destination.rb +274 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_travel_first_departure.rb +274 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_travel_first_destination.rb +274 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_travel_last_destination.rb +274 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_velocity.rb +1 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_velocity_morphing.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +214 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information.rb +194 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +267 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +192 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +264 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +264 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_client_reference_information.rb +208 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +552 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information.rb +285 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_device_information_raw_data.rb +209 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_payment_batch_summaries.rb → riskv1authentications_merchant_information.rb} +18 -101
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information.rb +258 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_bill_to.rb +496 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +371 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_order_information_ship_to.rb +434 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information.rb +192 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_card.rb +291 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +291 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_recurring_payment_information.rb +235 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history.rb +262 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_account_history.rb +209 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_risk_information_buyer_history_customer_account.rb +279 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information.rb +206 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +259 -0
- data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_passengers.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +28 -3
- 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 +5 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_merchant_defined_information.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +2 -17
- 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 +10 -10
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +5 -22
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_passenger.rb +30 -5
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +2 -17
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +4 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +3 -3
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +29 -4
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information_profile.rb +1 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb +26 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +31 -6
- data/lib/cybersource_rest_client/models/self_link_bean.rb +192 -0
- data/lib/cybersource_rest_client/models/tokenize_parameters.rb +198 -0
- data/lib/cybersource_rest_client/models/tokenize_request.rb +1 -1
- data/lib/cybersource_rest_client/models/tokenize_result.rb +255 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information_applications.rb +6 -6
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +2 -2
- 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_device_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.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_bill_to.rb +9 -9
- 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_order_information_shipping_details.rb +2 -17
- 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_card.rb +5 -5
- 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 +1 -1
- 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_processor_information.rb +3 -3
- 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__embedded_buyer_information.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_device_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
- data/lib/cybersource_rest_client.rb +96 -8
- metadata +100 -8
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +0 -135
data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb
ADDED
@@ -0,0 +1,552 @@
|
|
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 Riskv1authenticationsConsumerAuthenticationInformation
|
17
|
+
# Data that documents and supports a specific authentication process.
|
18
|
+
attr_accessor :alternate_authentication_data
|
19
|
+
|
20
|
+
# Date and time in UTC of the cardholder authentication. Format: YYYYMMDDHHMM
|
21
|
+
attr_accessor :alternate_authentication_date
|
22
|
+
|
23
|
+
# Mechanism used by the cardholder to authenticate to the 3D Secure requestor. Possible values: - `01`: No authentication occurred - `02`: Login using merchant system credentials - `03`: Login using Federated ID - `04`: Login using FIDO Authenticator
|
24
|
+
attr_accessor :alternate_authentication_method
|
25
|
+
|
26
|
+
# Payer authentication transaction identifier passed to link the check enrollment and validate authentication messages. **Note**: Required for Standard integration for enroll service. Required for Hybrid integration for validate service.
|
27
|
+
attr_accessor :authentication_transaction_id
|
28
|
+
|
29
|
+
# Possible values: - `01`: No preference - `02`: No challenge request - `03`: Challenge requested (3D Secure requestor preference) - `04`: Challenge requested (mandate) - `05-79`: Reserved for EMVCo future use (values invalid until defined by EMVCo) - `80-99`: Reserved for DS use For details, see `pa_challenge_code` field description in [CyberSource Payer Authentication Using the SCMP API.] (https://apps.cybersource.com/library/documentation/dev_guides/Payer_Authentication_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm)
|
30
|
+
attr_accessor :challenge_code
|
31
|
+
|
32
|
+
# An alias that uniquely identifies the customer's account and credit card on file. Note This field is required if Tokenization is enabled in the merchant profile settings.
|
33
|
+
attr_accessor :customer_card_alias
|
34
|
+
|
35
|
+
# Indicates that the card being used is the one designated as the primary payment card for purchase. Recommended for Discover ProtectBuy.
|
36
|
+
attr_accessor :default_card
|
37
|
+
|
38
|
+
# An integer value greater than 1 indicating the max number of permitted authorizations for installment payments. **Note** This is required if the merchant and cardholder have agreed to installment payments.
|
39
|
+
attr_accessor :installment_total_count
|
40
|
+
|
41
|
+
# Indicates whether the customer has opted in for marketing offers. Recommended for Discover ProtectBuy.
|
42
|
+
attr_accessor :marketing_opt_in
|
43
|
+
|
44
|
+
# Indicates origin of the marketing offer. Recommended for Discover ProtectBuy.
|
45
|
+
attr_accessor :marketing_source
|
46
|
+
|
47
|
+
# Merchant category code. **Important** Required only for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
|
48
|
+
attr_accessor :mcc
|
49
|
+
|
50
|
+
# Category of the message for a specific use case. Possible values: - `01`: PA- payment authentication - `02`: NPA- non-payment authentication - `03-79`: Reserved for EMVCo future use (values invalid until defined by EMVCo) - `80-99`: Reserved for DS use
|
51
|
+
attr_accessor :message_category
|
52
|
+
|
53
|
+
# Non-Payer Authentication Indicator. Possible values: - `01`: Add card - `02`: Maintain card information - `03`: Cardholder verification for EMV token - `04-80` Reserved for EMVCo - `80-90` Reserved DS
|
54
|
+
attr_accessor :npa_code
|
55
|
+
|
56
|
+
# Specifies the Brazilian payment account type used for the transaction. This field overrides other payment types that might be specified in the request. Use one of the following values for this field: - `NA`: Not applicable. Do not override other payment types that are specified in the request. - `CR`: Credit card. - `DB`: Debit card. - `VSAVR`: Visa Vale Refeicao - `VSAVA`: Visa Vale Alimentacao **Important** Required only for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
|
57
|
+
attr_accessor :override_payment_method
|
58
|
+
|
59
|
+
# Specifies the product code, which designates the type of transaction. Specify one of the following values for this field: - AIR: Airline purchase Important Required for American Express SafeKey (U.S.). - `ACC`: Accommodation Rental - `ACF`: Account funding - `CHA`: Check acceptance - `DIG`: Digital Goods - `DSP`: Cash Dispensing - `GAS`: Fuel - `GEN`: General Retail - `LUX`: Luxury Retail - `PAL`: Prepaid activation and load - `PHY`: Goods or services purchase - `QCT`: Quasi-cash transaction - `REN`: Car Rental - `RES`: Restaurant - `SVC`: Services - `TBD`: Other - `TRA`: Travel **Important** Required for Visa Secure transactions in Brazil. Do not use this request field for any other types of transactions.
|
60
|
+
attr_accessor :product_code
|
61
|
+
|
62
|
+
# Cardinal's directory server assigned 3DS Requestor ID value
|
63
|
+
attr_accessor :requestor_id
|
64
|
+
|
65
|
+
# Cardinal's directory server assigned 3DS Requestor Name value
|
66
|
+
attr_accessor :requestor_name
|
67
|
+
|
68
|
+
# Reference ID that corresponds to the device fingerprinting data that was collected previously. Note Required for Hybrid integration.
|
69
|
+
attr_accessor :reference_id
|
70
|
+
|
71
|
+
# Transaction mode identifier. Identifies the channel from which the transaction originates. Possible values: - `MOTO` - MOTO (Mail Order Telephone Order) - `RETAIL` - Retail - `ECOMMERCE` - eCommerce - `MOBILE` - Mobile Device - `TABLET` - Tablet
|
72
|
+
attr_accessor :transaction_mode
|
73
|
+
|
74
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
75
|
+
def self.attribute_map
|
76
|
+
{
|
77
|
+
:'alternate_authentication_data' => :'alternateAuthenticationData',
|
78
|
+
:'alternate_authentication_date' => :'alternateAuthenticationDate',
|
79
|
+
:'alternate_authentication_method' => :'alternateAuthenticationMethod',
|
80
|
+
:'authentication_transaction_id' => :'authenticationTransactionId',
|
81
|
+
:'challenge_code' => :'challengeCode',
|
82
|
+
:'customer_card_alias' => :'customerCardAlias',
|
83
|
+
:'default_card' => :'defaultCard',
|
84
|
+
:'installment_total_count' => :'installmentTotalCount',
|
85
|
+
:'marketing_opt_in' => :'marketingOptIn',
|
86
|
+
:'marketing_source' => :'marketingSource',
|
87
|
+
:'mcc' => :'mcc',
|
88
|
+
:'message_category' => :'messageCategory',
|
89
|
+
:'npa_code' => :'npaCode',
|
90
|
+
:'override_payment_method' => :'overridePaymentMethod',
|
91
|
+
:'product_code' => :'productCode',
|
92
|
+
:'requestor_id' => :'requestorId',
|
93
|
+
:'requestor_name' => :'requestorName',
|
94
|
+
:'reference_id' => :'referenceId',
|
95
|
+
:'transaction_mode' => :'transactionMode'
|
96
|
+
}
|
97
|
+
end
|
98
|
+
|
99
|
+
# Attribute type mapping.
|
100
|
+
def self.swagger_types
|
101
|
+
{
|
102
|
+
:'alternate_authentication_data' => :'String',
|
103
|
+
:'alternate_authentication_date' => :'String',
|
104
|
+
:'alternate_authentication_method' => :'String',
|
105
|
+
:'authentication_transaction_id' => :'String',
|
106
|
+
:'challenge_code' => :'String',
|
107
|
+
:'customer_card_alias' => :'String',
|
108
|
+
:'default_card' => :'BOOLEAN',
|
109
|
+
:'installment_total_count' => :'Integer',
|
110
|
+
:'marketing_opt_in' => :'BOOLEAN',
|
111
|
+
:'marketing_source' => :'String',
|
112
|
+
:'mcc' => :'String',
|
113
|
+
:'message_category' => :'String',
|
114
|
+
:'npa_code' => :'String',
|
115
|
+
:'override_payment_method' => :'String',
|
116
|
+
:'product_code' => :'String',
|
117
|
+
:'requestor_id' => :'String',
|
118
|
+
:'requestor_name' => :'String',
|
119
|
+
:'reference_id' => :'String',
|
120
|
+
:'transaction_mode' => :'String'
|
121
|
+
}
|
122
|
+
end
|
123
|
+
|
124
|
+
# Initializes the object
|
125
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
126
|
+
def initialize(attributes = {})
|
127
|
+
return unless attributes.is_a?(Hash)
|
128
|
+
|
129
|
+
# convert string to symbol for hash key
|
130
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
131
|
+
|
132
|
+
if attributes.has_key?(:'alternateAuthenticationData')
|
133
|
+
self.alternate_authentication_data = attributes[:'alternateAuthenticationData']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'alternateAuthenticationDate')
|
137
|
+
self.alternate_authentication_date = attributes[:'alternateAuthenticationDate']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.has_key?(:'alternateAuthenticationMethod')
|
141
|
+
self.alternate_authentication_method = attributes[:'alternateAuthenticationMethod']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.has_key?(:'authenticationTransactionId')
|
145
|
+
self.authentication_transaction_id = attributes[:'authenticationTransactionId']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.has_key?(:'challengeCode')
|
149
|
+
self.challenge_code = attributes[:'challengeCode']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.has_key?(:'customerCardAlias')
|
153
|
+
self.customer_card_alias = attributes[:'customerCardAlias']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.has_key?(:'defaultCard')
|
157
|
+
self.default_card = attributes[:'defaultCard']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.has_key?(:'installmentTotalCount')
|
161
|
+
self.installment_total_count = attributes[:'installmentTotalCount']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.has_key?(:'marketingOptIn')
|
165
|
+
self.marketing_opt_in = attributes[:'marketingOptIn']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.has_key?(:'marketingSource')
|
169
|
+
self.marketing_source = attributes[:'marketingSource']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.has_key?(:'mcc')
|
173
|
+
self.mcc = attributes[:'mcc']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.has_key?(:'messageCategory')
|
177
|
+
self.message_category = attributes[:'messageCategory']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.has_key?(:'npaCode')
|
181
|
+
self.npa_code = attributes[:'npaCode']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.has_key?(:'overridePaymentMethod')
|
185
|
+
self.override_payment_method = attributes[:'overridePaymentMethod']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.has_key?(:'productCode')
|
189
|
+
self.product_code = attributes[:'productCode']
|
190
|
+
end
|
191
|
+
|
192
|
+
if attributes.has_key?(:'requestorId')
|
193
|
+
self.requestor_id = attributes[:'requestorId']
|
194
|
+
end
|
195
|
+
|
196
|
+
if attributes.has_key?(:'requestorName')
|
197
|
+
self.requestor_name = attributes[:'requestorName']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.has_key?(:'referenceId')
|
201
|
+
self.reference_id = attributes[:'referenceId']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.has_key?(:'transactionMode')
|
205
|
+
self.transaction_mode = attributes[:'transactionMode']
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
210
|
+
# @return Array for valid properties with the reasons
|
211
|
+
def list_invalid_properties
|
212
|
+
invalid_properties = Array.new
|
213
|
+
if !@alternate_authentication_data.nil? && @alternate_authentication_data.to_s.length > 2048
|
214
|
+
invalid_properties.push('invalid value for "alternate_authentication_data", the character length must be smaller than or equal to 2048.')
|
215
|
+
end
|
216
|
+
|
217
|
+
if !@alternate_authentication_date.nil? && @alternate_authentication_date.to_s.length > 14
|
218
|
+
invalid_properties.push('invalid value for "alternate_authentication_date", the character length must be smaller than or equal to 14.')
|
219
|
+
end
|
220
|
+
|
221
|
+
if !@authentication_transaction_id.nil? && @authentication_transaction_id.to_s.length > 20
|
222
|
+
invalid_properties.push('invalid value for "authentication_transaction_id", the character length must be smaller than or equal to 20.')
|
223
|
+
end
|
224
|
+
|
225
|
+
if !@customer_card_alias.nil? && @customer_card_alias.to_s.length > 128
|
226
|
+
invalid_properties.push('invalid value for "customer_card_alias", the character length must be smaller than or equal to 128.')
|
227
|
+
end
|
228
|
+
|
229
|
+
if !@marketing_source.nil? && @marketing_source.to_s.length > 40
|
230
|
+
invalid_properties.push('invalid value for "marketing_source", the character length must be smaller than or equal to 40.')
|
231
|
+
end
|
232
|
+
|
233
|
+
if @mcc.nil?
|
234
|
+
invalid_properties.push('invalid value for "mcc", mcc cannot be nil.')
|
235
|
+
end
|
236
|
+
|
237
|
+
if @mcc.to_s.length > 4
|
238
|
+
invalid_properties.push('invalid value for "mcc", the character length must be smaller than or equal to 4.')
|
239
|
+
end
|
240
|
+
|
241
|
+
if !@npa_code.nil? && @npa_code.to_s.length > 2
|
242
|
+
invalid_properties.push('invalid value for "npa_code", the character length must be smaller than or equal to 2.')
|
243
|
+
end
|
244
|
+
|
245
|
+
if !@product_code.nil? && @product_code.to_s.length > 3
|
246
|
+
invalid_properties.push('invalid value for "product_code", the character length must be smaller than or equal to 3.')
|
247
|
+
end
|
248
|
+
|
249
|
+
if !@requestor_id.nil? && @requestor_id.to_s.length > 35
|
250
|
+
invalid_properties.push('invalid value for "requestor_id", the character length must be smaller than or equal to 35.')
|
251
|
+
end
|
252
|
+
|
253
|
+
if !@requestor_name.nil? && @requestor_name.to_s.length > 40
|
254
|
+
invalid_properties.push('invalid value for "requestor_name", the character length must be smaller than or equal to 40.')
|
255
|
+
end
|
256
|
+
|
257
|
+
if @reference_id.nil?
|
258
|
+
invalid_properties.push('invalid value for "reference_id", reference_id cannot be nil.')
|
259
|
+
end
|
260
|
+
|
261
|
+
if @reference_id.to_s.length > 50
|
262
|
+
invalid_properties.push('invalid value for "reference_id", the character length must be smaller than or equal to 50.')
|
263
|
+
end
|
264
|
+
|
265
|
+
if @transaction_mode.nil?
|
266
|
+
invalid_properties.push('invalid value for "transaction_mode", transaction_mode cannot be nil.')
|
267
|
+
end
|
268
|
+
|
269
|
+
invalid_properties
|
270
|
+
end
|
271
|
+
|
272
|
+
# Check to see if the all the properties in the model are valid
|
273
|
+
# @return true if the model is valid
|
274
|
+
def valid?
|
275
|
+
return false if !@alternate_authentication_data.nil? && @alternate_authentication_data.to_s.length > 2048
|
276
|
+
return false if !@alternate_authentication_date.nil? && @alternate_authentication_date.to_s.length > 14
|
277
|
+
return false if !@authentication_transaction_id.nil? && @authentication_transaction_id.to_s.length > 20
|
278
|
+
return false if !@customer_card_alias.nil? && @customer_card_alias.to_s.length > 128
|
279
|
+
return false if !@marketing_source.nil? && @marketing_source.to_s.length > 40
|
280
|
+
return false if @mcc.nil?
|
281
|
+
return false if @mcc.to_s.length > 4
|
282
|
+
return false if !@npa_code.nil? && @npa_code.to_s.length > 2
|
283
|
+
return false if !@product_code.nil? && @product_code.to_s.length > 3
|
284
|
+
return false if !@requestor_id.nil? && @requestor_id.to_s.length > 35
|
285
|
+
return false if !@requestor_name.nil? && @requestor_name.to_s.length > 40
|
286
|
+
return false if @reference_id.nil?
|
287
|
+
return false if @reference_id.to_s.length > 50
|
288
|
+
return false if @transaction_mode.nil?
|
289
|
+
true
|
290
|
+
end
|
291
|
+
|
292
|
+
# Custom attribute writer method with validation
|
293
|
+
# @param [Object] alternate_authentication_data Value to be assigned
|
294
|
+
def alternate_authentication_data=(alternate_authentication_data)
|
295
|
+
if !alternate_authentication_data.nil? && alternate_authentication_data.to_s.length > 2048
|
296
|
+
fail ArgumentError, 'invalid value for "alternate_authentication_data", the character length must be smaller than or equal to 2048.'
|
297
|
+
end
|
298
|
+
|
299
|
+
@alternate_authentication_data = alternate_authentication_data
|
300
|
+
end
|
301
|
+
|
302
|
+
# Custom attribute writer method with validation
|
303
|
+
# @param [Object] alternate_authentication_date Value to be assigned
|
304
|
+
def alternate_authentication_date=(alternate_authentication_date)
|
305
|
+
if !alternate_authentication_date.nil? && alternate_authentication_date.to_s.length > 14
|
306
|
+
fail ArgumentError, 'invalid value for "alternate_authentication_date", the character length must be smaller than or equal to 14.'
|
307
|
+
end
|
308
|
+
|
309
|
+
@alternate_authentication_date = alternate_authentication_date
|
310
|
+
end
|
311
|
+
|
312
|
+
# Custom attribute writer method with validation
|
313
|
+
# @param [Object] authentication_transaction_id Value to be assigned
|
314
|
+
def authentication_transaction_id=(authentication_transaction_id)
|
315
|
+
if !authentication_transaction_id.nil? && authentication_transaction_id.to_s.length > 20
|
316
|
+
fail ArgumentError, 'invalid value for "authentication_transaction_id", the character length must be smaller than or equal to 20.'
|
317
|
+
end
|
318
|
+
|
319
|
+
@authentication_transaction_id = authentication_transaction_id
|
320
|
+
end
|
321
|
+
|
322
|
+
# Custom attribute writer method with validation
|
323
|
+
# @param [Object] customer_card_alias Value to be assigned
|
324
|
+
def customer_card_alias=(customer_card_alias)
|
325
|
+
if !customer_card_alias.nil? && customer_card_alias.to_s.length > 128
|
326
|
+
fail ArgumentError, 'invalid value for "customer_card_alias", the character length must be smaller than or equal to 128.'
|
327
|
+
end
|
328
|
+
|
329
|
+
@customer_card_alias = customer_card_alias
|
330
|
+
end
|
331
|
+
|
332
|
+
# Custom attribute writer method with validation
|
333
|
+
# @param [Object] marketing_source Value to be assigned
|
334
|
+
def marketing_source=(marketing_source)
|
335
|
+
if !marketing_source.nil? && marketing_source.to_s.length > 40
|
336
|
+
fail ArgumentError, 'invalid value for "marketing_source", the character length must be smaller than or equal to 40.'
|
337
|
+
end
|
338
|
+
|
339
|
+
@marketing_source = marketing_source
|
340
|
+
end
|
341
|
+
|
342
|
+
# Custom attribute writer method with validation
|
343
|
+
# @param [Object] mcc Value to be assigned
|
344
|
+
def mcc=(mcc)
|
345
|
+
if mcc.nil?
|
346
|
+
fail ArgumentError, 'mcc cannot be nil'
|
347
|
+
end
|
348
|
+
|
349
|
+
if mcc.to_s.length > 4
|
350
|
+
fail ArgumentError, 'invalid value for "mcc", the character length must be smaller than or equal to 4.'
|
351
|
+
end
|
352
|
+
|
353
|
+
@mcc = mcc
|
354
|
+
end
|
355
|
+
|
356
|
+
# Custom attribute writer method with validation
|
357
|
+
# @param [Object] npa_code Value to be assigned
|
358
|
+
def npa_code=(npa_code)
|
359
|
+
if !npa_code.nil? && npa_code.to_s.length > 2
|
360
|
+
fail ArgumentError, 'invalid value for "npa_code", the character length must be smaller than or equal to 2.'
|
361
|
+
end
|
362
|
+
|
363
|
+
@npa_code = npa_code
|
364
|
+
end
|
365
|
+
|
366
|
+
# Custom attribute writer method with validation
|
367
|
+
# @param [Object] product_code Value to be assigned
|
368
|
+
def product_code=(product_code)
|
369
|
+
if !product_code.nil? && product_code.to_s.length > 3
|
370
|
+
fail ArgumentError, 'invalid value for "product_code", the character length must be smaller than or equal to 3.'
|
371
|
+
end
|
372
|
+
|
373
|
+
@product_code = product_code
|
374
|
+
end
|
375
|
+
|
376
|
+
# Custom attribute writer method with validation
|
377
|
+
# @param [Object] requestor_id Value to be assigned
|
378
|
+
def requestor_id=(requestor_id)
|
379
|
+
if !requestor_id.nil? && requestor_id.to_s.length > 35
|
380
|
+
fail ArgumentError, 'invalid value for "requestor_id", the character length must be smaller than or equal to 35.'
|
381
|
+
end
|
382
|
+
|
383
|
+
@requestor_id = requestor_id
|
384
|
+
end
|
385
|
+
|
386
|
+
# Custom attribute writer method with validation
|
387
|
+
# @param [Object] requestor_name Value to be assigned
|
388
|
+
def requestor_name=(requestor_name)
|
389
|
+
if !requestor_name.nil? && requestor_name.to_s.length > 40
|
390
|
+
fail ArgumentError, 'invalid value for "requestor_name", the character length must be smaller than or equal to 40.'
|
391
|
+
end
|
392
|
+
|
393
|
+
@requestor_name = requestor_name
|
394
|
+
end
|
395
|
+
|
396
|
+
# Custom attribute writer method with validation
|
397
|
+
# @param [Object] reference_id Value to be assigned
|
398
|
+
def reference_id=(reference_id)
|
399
|
+
if reference_id.nil?
|
400
|
+
fail ArgumentError, 'reference_id cannot be nil'
|
401
|
+
end
|
402
|
+
|
403
|
+
if reference_id.to_s.length > 50
|
404
|
+
fail ArgumentError, 'invalid value for "reference_id", the character length must be smaller than or equal to 50.'
|
405
|
+
end
|
406
|
+
|
407
|
+
@reference_id = reference_id
|
408
|
+
end
|
409
|
+
|
410
|
+
# Checks equality by comparing each attribute.
|
411
|
+
# @param [Object] Object to be compared
|
412
|
+
def ==(o)
|
413
|
+
return true if self.equal?(o)
|
414
|
+
self.class == o.class &&
|
415
|
+
alternate_authentication_data == o.alternate_authentication_data &&
|
416
|
+
alternate_authentication_date == o.alternate_authentication_date &&
|
417
|
+
alternate_authentication_method == o.alternate_authentication_method &&
|
418
|
+
authentication_transaction_id == o.authentication_transaction_id &&
|
419
|
+
challenge_code == o.challenge_code &&
|
420
|
+
customer_card_alias == o.customer_card_alias &&
|
421
|
+
default_card == o.default_card &&
|
422
|
+
installment_total_count == o.installment_total_count &&
|
423
|
+
marketing_opt_in == o.marketing_opt_in &&
|
424
|
+
marketing_source == o.marketing_source &&
|
425
|
+
mcc == o.mcc &&
|
426
|
+
message_category == o.message_category &&
|
427
|
+
npa_code == o.npa_code &&
|
428
|
+
override_payment_method == o.override_payment_method &&
|
429
|
+
product_code == o.product_code &&
|
430
|
+
requestor_id == o.requestor_id &&
|
431
|
+
requestor_name == o.requestor_name &&
|
432
|
+
reference_id == o.reference_id &&
|
433
|
+
transaction_mode == o.transaction_mode
|
434
|
+
end
|
435
|
+
|
436
|
+
# @see the `==` method
|
437
|
+
# @param [Object] Object to be compared
|
438
|
+
def eql?(o)
|
439
|
+
self == o
|
440
|
+
end
|
441
|
+
|
442
|
+
# Calculates hash code according to all attributes.
|
443
|
+
# @return [Fixnum] Hash code
|
444
|
+
def hash
|
445
|
+
[alternate_authentication_data, alternate_authentication_date, alternate_authentication_method, authentication_transaction_id, challenge_code, customer_card_alias, default_card, installment_total_count, marketing_opt_in, marketing_source, mcc, message_category, npa_code, override_payment_method, product_code, requestor_id, requestor_name, reference_id, transaction_mode].hash
|
446
|
+
end
|
447
|
+
|
448
|
+
# Builds the object from hash
|
449
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
450
|
+
# @return [Object] Returns the model itself
|
451
|
+
def build_from_hash(attributes)
|
452
|
+
return nil unless attributes.is_a?(Hash)
|
453
|
+
self.class.swagger_types.each_pair do |key, type|
|
454
|
+
if type =~ /\AArray<(.*)>/i
|
455
|
+
# check to ensure the input is an array given that the the attribute
|
456
|
+
# is documented as an array but the input is not
|
457
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
458
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
459
|
+
end
|
460
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
461
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
462
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
463
|
+
end
|
464
|
+
|
465
|
+
self
|
466
|
+
end
|
467
|
+
|
468
|
+
# Deserializes the data based on type
|
469
|
+
# @param string type Data type
|
470
|
+
# @param string value Value to be deserialized
|
471
|
+
# @return [Object] Deserialized data
|
472
|
+
def _deserialize(type, value)
|
473
|
+
case type.to_sym
|
474
|
+
when :DateTime
|
475
|
+
DateTime.parse(value)
|
476
|
+
when :Date
|
477
|
+
Date.parse(value)
|
478
|
+
when :String
|
479
|
+
value.to_s
|
480
|
+
when :Integer
|
481
|
+
value.to_i
|
482
|
+
when :Float
|
483
|
+
value.to_f
|
484
|
+
when :BOOLEAN
|
485
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
486
|
+
true
|
487
|
+
else
|
488
|
+
false
|
489
|
+
end
|
490
|
+
when :Object
|
491
|
+
# generic object (usually a Hash), return directly
|
492
|
+
value
|
493
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
494
|
+
inner_type = Regexp.last_match[:inner_type]
|
495
|
+
value.map { |v| _deserialize(inner_type, v) }
|
496
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
497
|
+
k_type = Regexp.last_match[:k_type]
|
498
|
+
v_type = Regexp.last_match[:v_type]
|
499
|
+
{}.tap do |hash|
|
500
|
+
value.each do |k, v|
|
501
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
502
|
+
end
|
503
|
+
end
|
504
|
+
else # model
|
505
|
+
temp_model = CyberSource.const_get(type).new
|
506
|
+
temp_model.build_from_hash(value)
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
# Returns the string representation of the object
|
511
|
+
# @return [String] String presentation of the object
|
512
|
+
def to_s
|
513
|
+
to_hash.to_s
|
514
|
+
end
|
515
|
+
|
516
|
+
# to_body is an alias to to_hash (backward compatibility)
|
517
|
+
# @return [Hash] Returns the object in the form of hash
|
518
|
+
def to_body
|
519
|
+
to_hash
|
520
|
+
end
|
521
|
+
|
522
|
+
# Returns the object in the form of hash
|
523
|
+
# @return [Hash] Returns the object in the form of hash
|
524
|
+
def to_hash
|
525
|
+
hash = {}
|
526
|
+
self.class.attribute_map.each_pair do |attr, param|
|
527
|
+
value = self.send(attr)
|
528
|
+
next if value.nil?
|
529
|
+
hash[param] = _to_hash(value)
|
530
|
+
end
|
531
|
+
hash
|
532
|
+
end
|
533
|
+
|
534
|
+
# Outputs non-array value in the form of hash
|
535
|
+
# For object, use to_hash. Otherwise, just return the value
|
536
|
+
# @param [Object] value Any valid value
|
537
|
+
# @return [Hash] Returns the value in the form of hash
|
538
|
+
def _to_hash(value)
|
539
|
+
if value.is_a?(Array)
|
540
|
+
value.compact.map { |v| _to_hash(v) }
|
541
|
+
elsif value.is_a?(Hash)
|
542
|
+
{}.tap do |hash|
|
543
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
544
|
+
end
|
545
|
+
elsif value.respond_to? :to_hash
|
546
|
+
value.to_hash
|
547
|
+
else
|
548
|
+
value
|
549
|
+
end
|
550
|
+
end
|
551
|
+
end
|
552
|
+
end
|