cybersource_rest_client 0.0.11 → 0.0.13
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.rb +104 -84
- data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +6 -6
- data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +89 -0
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +229 -47
- data/lib/cybersource_rest_client/api/key_generation_api.rb +13 -9
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +6 -6
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +135 -0
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +365 -0
- data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
- data/lib/cybersource_rest_client/api/{process_a_payout_api.rb → payouts_api.rb} +7 -7
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +6 -6
- data/lib/cybersource_rest_client/api/refund_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/reports_api.rb +6 -6
- data/lib/cybersource_rest_client/api/reversal_api.rb +67 -2
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +13 -13
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +12 -12
- data/lib/cybersource_rest_client/api/{flex_token_api.rb → tokenization_api.rb} +18 -14
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +76 -2
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -2
- data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
- data/lib/cybersource_rest_client/api/void_api.rb +67 -2
- data/lib/cybersource_rest_client/api_client.rb +12 -13
- data/lib/cybersource_rest_client/api_error.rb +2 -2
- data/lib/cybersource_rest_client/configuration.rb +2 -2
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +2 -2
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +2 -2
- data/lib/cybersource_rest_client/models/create_credit_request.rb +2 -2
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_post200_response.rb → create_decision_manager_case_request.rb} +70 -99
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information_personal_identification.rb → create_instrument_identifier_request.rb} +20 -21
- data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_get200_response.rb → create_payment_instrument_request.rb} +13 -13
- data/lib/cybersource_rest_client/models/create_payment_request.rb +2 -2
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post_response.rb → create_search_request.rb} +3 -3
- data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response_der.rb +2 -2
- data/lib/cybersource_rest_client/models/flex_v1_keys_post200_response_jwk.rb +2 -2
- data/lib/cybersource_rest_client/models/flex_v1_tokens_post200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/flexv1tokens_card_info.rb +12 -2
- data/lib/cybersource_rest_client/models/generate_public_key_request.rb +6 -66
- data/lib/cybersource_rest_client/models/{der_public_key.rb → inline_response_200.rb} +24 -26
- data/lib/cybersource_rest_client/models/inline_response_200_payment_batch_summaries.rb +282 -0
- data/lib/cybersource_rest_client/models/inline_response_400.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_400_fields.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default__links.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default__links_next.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default_response_status.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_default_response_status_details.rb +2 -2
- data/lib/cybersource_rest_client/models/{tokenize_parameters.rb → mit_reversal_request.rb} +43 -17
- data/lib/cybersource_rest_client/models/{error.rb → mit_void_request.rb} +10 -19
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post_response.rb → oct_create_payment_request.rb} +3 -3
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response__links_self.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get400_response_error_information_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get500_response_error_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response__links_self.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +5 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +2 -197
- 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.rb +2 -2
- 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 +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_card.rb +2 -17
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +2 -2
- 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 +2 -2
- 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_avs.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +3 -3
- 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 +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +2 -2
- 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 +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +5 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +3 -3
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +14 -17
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +4 -4
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +31 -7
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +2 -2
- 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 +2 -2
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +4 -4
- 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 +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_amex_additional_amounts.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_surcharge.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details_transaction_advice_addendum.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +2 -2
- 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 +2 -2
- 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 +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +2 -227
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_shipping_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_capture_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +6 -6
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +2 -2
- 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 +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information.rb +12 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details_surcharge.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_bill_to.rb +11 -11
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information.rb +15 -6
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +12 -12
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information_account.rb +2 -2
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +2 -2
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_notificationof_changes_get200_response_notification_of_changes.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +5 -5
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +2 -2
- data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +3 -3
- data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response.rb +4 -4
- data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +2 -2
- data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +2 -2
- data/lib/cybersource_rest_client/models/request_body.rb +2 -2
- data/lib/cybersource_rest_client/models/request_body_1.rb +5 -5
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post502_response.rb → risk_v1_decisions_post201_response.rb} +58 -62
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information.rb +284 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_info_codes.rb +270 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +300 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_payment_information.rb +300 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_profile.rb +249 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_providers.rb +185 -0
- data/lib/cybersource_rest_client/models/{link.rb → risk_v1_decisions_post201_response_risk_information_providers_provider_name.rb} +21 -28
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_rules.rb +224 -0
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_score.rb +235 -0
- data/lib/cybersource_rest_client/models/{key_result.rb → risk_v1_decisions_post201_response_risk_information_velocity.rb} +20 -26
- data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_velocity_morphing.rb +234 -0
- data/lib/cybersource_rest_client/models/{ums_v1_users_get400_response.rb → risk_v1_decisions_post400_response.rb} +7 -19
- data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +236 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_processor_information_ach_verification.rb → riskv1decisions_card_verification.rb} +8 -33
- data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +224 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +279 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_merchant_defined_information.rb → riskv1decisions_merchant_defined_information.rb} +11 -10
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +248 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb → riskv1decisions_order_information_amount_details.rb} +42 -32
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +424 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +394 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_passenger.rb +350 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_ship_to.rb +400 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_order_information_shipping_details.rb +225 -0
- data/lib/cybersource_rest_client/models/{error_response.rb → riskv1decisions_payment_information.rb} +17 -16
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +285 -0
- data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_post201_response_card.rb → riskv1decisions_payment_information_tokenized_card.rb} +57 -99
- data/lib/cybersource_rest_client/models/riskv1decisions_processor_information.rb +184 -0
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response_processor_information_card_verification.rb → riskv1decisions_processor_information_avs.rb} +20 -19
- data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +183 -0
- data/lib/cybersource_rest_client/models/{error_links.rb → riskv1decisions_risk_information_profile.rb} +27 -32
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb +260 -0
- data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +224 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response.rb → tms_v1_instrument_identifiers_delete409_response.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response__links.rb → tms_v1_instrument_identifiers_delete409_response__links.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_delete409_response__links_payment_instruments.rb → tms_v1_instrument_identifiers_delete409_response__links_payment_instruments.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response.rb} +5 -6
- data/lib/cybersource_rest_client/models/{response_status_details.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded.rb} +13 -21
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_error_information_details.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bank_account.rb} +19 -29
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_bill_to.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_bill_to.rb} +14 -14
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_buyer_information.rb} +31 -7
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__embedded_card.rb +403 -0
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links.rb} +8 -8
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_first.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_first.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_last.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_last.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_next.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_next.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_prev.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response__links_prev.rb} +3 -3
- data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_get200_response__links_self.rb +184 -0
- data/lib/cybersource_rest_client/models/{reporting_v3_reports_id_get200_response_report_preferences.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_bank_transfer_options.rb} +19 -30
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_buyer_information_issued_by.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_buyer_information_issued_by.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_instrument_identifier.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_instrument_identifier.rb} +10 -10
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_merchant_information_merchant_descriptor.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_descriptor.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_merchant_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_merchant_information.rb} +4 -4
- data/lib/cybersource_rest_client/models/{body_2.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_payment_instruments.rb} +13 -13
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_status_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_personal_identification.rb} +35 -26
- data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments_processing_information.rb → tms_v1_instrument_identifiers_payment_instruments_get200_response_processing_information.rb} +7 -5
- data/lib/cybersource_rest_client/models/{body.rb → tms_v1_instrument_identifiers_post200_response.rb} +9 -9
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers__links.rb → tms_v1_instrument_identifiers_post200_response__links.rb} +6 -6
- data/lib/cybersource_rest_client/models/{tms_v1_instrumentidentifiers_paymentinstruments_get200_response__links_self.rb → tms_v1_instrument_identifiers_post200_response__links_self.rb} +3 -4
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb → tms_v1_instrument_identifiers_post200_response_authorization_options_initiator.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_bank_account.rb → tms_v1_instrument_identifiers_post200_response_bank_account.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb → tms_v1_instrument_identifiers_post200_response_card.rb} +28 -19
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_merchant_initiated_transaction.rb → tms_v1_instrument_identifiers_post200_response_merchant_initiated_transaction.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_metadata.rb → tms_v1_instrument_identifiers_post200_response_metadata.rb} +3 -3
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information.rb → tms_v1_instrument_identifiers_post200_response_processing_information.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_processing_information_authorization_options.rb → tms_v1_instrument_identifiers_post200_response_processing_information_authorization_options.rb} +4 -4
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bill_to.rb +234 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +108 -6
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_details.rb +2 -2
- data/lib/cybersource_rest_client/models/tokenize_request.rb +7 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +9 -9
- data/lib/cybersource_rest_client/models/{links.rb → tss_v2_transactions_get200_response__links.rb} +12 -23
- 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_application_information_applications.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +19 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +4 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_device_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +58 -8
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_bill_to.rb +18 -34
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_ship_to.rb +12 -12
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_shipping_details.rb +20 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +50 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +13 -13
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_invoice.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_payment_type.rb +6 -16
- 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 +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +59 -9
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_processor.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_profile.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_rules.rb +225 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_risk_information_score.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_sender_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +19 -19
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded__links.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_buyer_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_device_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb +7 -7
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_ship_to.rb +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +10 -10
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +3 -18
- data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_payment_method.rb → tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb} +18 -8
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +19 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +3 -3
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information.rb +2 -2
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers.rb +2 -2
- 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 +5 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +5 -5
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_account_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_contact_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_organization_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ums_v1_users_get200_response_users.rb +2 -2
- data/lib/cybersource_rest_client/models/{body_1.rb → update_instrument_identifier_request.rb} +4 -4
- data/lib/cybersource_rest_client/models/{tms_v1_paymentinstruments_post201_response.rb → update_payment_instrument_request.rb} +13 -13
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response.rb +2 -2
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links.rb +2 -2
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links_files.rb +2 -2
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response__links_self.rb +2 -2
- data/lib/cybersource_rest_client/models/v1_file_details_get200_response_file_details.rb +2 -2
- data/lib/cybersource_rest_client/models/void_capture_request.rb +2 -2
- data/lib/cybersource_rest_client/models/void_credit_request.rb +2 -2
- data/lib/cybersource_rest_client/models/void_payment_request.rb +2 -2
- data/lib/cybersource_rest_client/models/void_refund_request.rb +2 -2
- data/lib/cybersource_rest_client/version.rb +2 -2
- metadata +89 -71
- data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +0 -102
- data/lib/cybersource_rest_client/api/payment_instruments_api.rb +0 -469
- data/lib/cybersource_rest_client/models/body_3.rb +0 -331
- data/lib/cybersource_rest_client/models/card_info.rb +0 -214
- data/lib/cybersource_rest_client/models/json_web_key.rb +0 -225
- data/lib/cybersource_rest_client/models/key_parameters.rb +0 -184
- data/lib/cybersource_rest_client/models/response_status.rb +0 -225
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers__links_self.rb +0 -183
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bank_account.rb +0 -184
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_card.rb +0 -278
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_processing_information_bank_transfer_options.rb +0 -184
- data/lib/cybersource_rest_client/models/tokenize_result.rb +0 -255
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +0 -184
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#CyberSource
|
2
|
+
#CyberSource Merged Spec
|
3
3
|
|
4
|
-
#
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
5
|
|
6
6
|
OpenAPI spec version: 0.0.1
|
7
7
|
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module CyberSource
|
16
16
|
# HTTP status code for client application
|
17
17
|
class Reportingv3ReportDownloadsGet400Response
|
18
|
-
# Time of request in UTC
|
18
|
+
# Time of request in UTC.
|
19
19
|
attr_accessor :submit_time_utc
|
20
20
|
|
21
21
|
# Documented reason code
|
@@ -40,7 +40,7 @@ module CyberSource
|
|
40
40
|
# Attribute type mapping.
|
41
41
|
def self.swagger_types
|
42
42
|
{
|
43
|
-
:'submit_time_utc' => :'
|
43
|
+
:'submit_time_utc' => :'DateTime',
|
44
44
|
:'reason' => :'String',
|
45
45
|
:'message' => :'String',
|
46
46
|
:'details' => :'Array<Reportingv3ReportDownloadsGet400ResponseDetails>'
|
data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#CyberSource
|
2
|
+
#CyberSource Merged Spec
|
3
3
|
|
4
|
-
#
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
5
|
|
6
6
|
OpenAPI spec version: 0.0.1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#CyberSource
|
2
|
+
#CyberSource Merged Spec
|
3
3
|
|
4
|
-
#
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
5
|
|
6
6
|
OpenAPI spec version: 0.0.1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#CyberSource
|
2
|
+
#CyberSource Merged Spec
|
3
3
|
|
4
|
-
#
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
5
|
|
6
6
|
OpenAPI spec version: 0.0.1
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#CyberSource
|
2
|
+
#CyberSource Merged Spec
|
3
3
|
|
4
|
-
#
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
5
|
|
6
6
|
OpenAPI spec version: 0.0.1
|
7
7
|
|
@@ -98,7 +98,7 @@ module CyberSource
|
|
98
98
|
:'start_time' => :'String',
|
99
99
|
:'start_day' => :'Integer',
|
100
100
|
:'report_filters' => :'Hash<String, Array<String>>',
|
101
|
-
:'report_preferences' => :'
|
101
|
+
:'report_preferences' => :'Reportingv3reportsReportPreferences',
|
102
102
|
:'group_name' => :'String'
|
103
103
|
}
|
104
104
|
end
|
@@ -252,7 +252,7 @@ module CyberSource
|
|
252
252
|
report_mime_type_validator = EnumAttributeValidator.new('String', ['application/xml', 'text/csv'])
|
253
253
|
return false unless report_mime_type_validator.valid?(@report_mime_type)
|
254
254
|
return false if @report_frequency.nil?
|
255
|
-
report_frequency_validator = EnumAttributeValidator.new('String', ['DAILY', 'WEEKLY', 'MONTHLY'])
|
255
|
+
report_frequency_validator = EnumAttributeValidator.new('String', ['DAILY', 'WEEKLY', 'MONTHLY', 'ADHOC'])
|
256
256
|
return false unless report_frequency_validator.valid?(@report_frequency)
|
257
257
|
return false if @report_name.nil?
|
258
258
|
return false if @report_name.to_s.length > 128
|
@@ -311,7 +311,7 @@ module CyberSource
|
|
311
311
|
# Custom attribute writer method checking allowed values (enum).
|
312
312
|
# @param [Object] report_frequency Object to be assigned
|
313
313
|
def report_frequency=(report_frequency)
|
314
|
-
validator = EnumAttributeValidator.new('String', ['DAILY', 'WEEKLY', 'MONTHLY'])
|
314
|
+
validator = EnumAttributeValidator.new('String', ['DAILY', 'WEEKLY', 'MONTHLY', 'ADHOC'])
|
315
315
|
unless validator.valid?(report_frequency)
|
316
316
|
fail ArgumentError, 'invalid value for "report_frequency", must be one of #{validator.allowable_values}.'
|
317
317
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
|
-
#CyberSource
|
2
|
+
#CyberSource Merged Spec
|
3
3
|
|
4
|
-
#
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
5
|
|
6
6
|
OpenAPI spec version: 0.0.1
|
7
7
|
|
@@ -13,58 +13,48 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
class
|
17
|
-
|
16
|
+
class RiskV1DecisionsPost201Response
|
17
|
+
attr_accessor :_links
|
18
|
+
|
19
|
+
# An unique identification number assigned by CyberSource to identify the submitted request. It is also appended to the endpoint of the resource.
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
# Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` Example `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC.
|
18
23
|
attr_accessor :submit_time_utc
|
19
24
|
|
20
|
-
#
|
25
|
+
# Time that the transaction was submitted in local time.
|
26
|
+
attr_accessor :submit_time_local
|
27
|
+
|
28
|
+
# The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW`
|
21
29
|
attr_accessor :status
|
22
30
|
|
23
|
-
|
24
|
-
attr_accessor :reason
|
25
|
-
|
26
|
-
# The detail message related to the status and reason listed above.
|
27
|
-
attr_accessor :message
|
28
|
-
|
29
|
-
class EnumAttributeValidator
|
30
|
-
attr_reader :datatype
|
31
|
-
attr_reader :allowable_values
|
32
|
-
|
33
|
-
def initialize(datatype, allowable_values)
|
34
|
-
@allowable_values = allowable_values.map do |value|
|
35
|
-
case datatype.to_s
|
36
|
-
when /Integer/i
|
37
|
-
value.to_i
|
38
|
-
when /Float/i
|
39
|
-
value.to_f
|
40
|
-
else
|
41
|
-
value
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
31
|
+
attr_accessor :risk_information
|
45
32
|
|
46
|
-
|
47
|
-
!value || allowable_values.include?(value)
|
48
|
-
end
|
49
|
-
end
|
33
|
+
attr_accessor :error_information
|
50
34
|
|
51
35
|
# Attribute mapping from ruby-style variable name to JSON key.
|
52
36
|
def self.attribute_map
|
53
37
|
{
|
38
|
+
:'_links' => :'_links',
|
39
|
+
:'id' => :'id',
|
54
40
|
:'submit_time_utc' => :'submitTimeUtc',
|
41
|
+
:'submit_time_local' => :'submitTimeLocal',
|
55
42
|
:'status' => :'status',
|
56
|
-
:'
|
57
|
-
:'
|
43
|
+
:'risk_information' => :'riskInformation',
|
44
|
+
:'error_information' => :'errorInformation'
|
58
45
|
}
|
59
46
|
end
|
60
47
|
|
61
48
|
# Attribute type mapping.
|
62
49
|
def self.swagger_types
|
63
50
|
{
|
51
|
+
:'_links' => :'PtsV2PaymentsPost201ResponseLinks',
|
52
|
+
:'id' => :'String',
|
64
53
|
:'submit_time_utc' => :'String',
|
54
|
+
:'submit_time_local' => :'String',
|
65
55
|
:'status' => :'String',
|
66
|
-
:'
|
67
|
-
:'
|
56
|
+
:'risk_information' => :'RiskV1DecisionsPost201ResponseRiskInformation',
|
57
|
+
:'error_information' => :'PtsV2PaymentsPost201ResponseErrorInformation'
|
68
58
|
}
|
69
59
|
end
|
70
60
|
|
@@ -76,20 +66,32 @@ module CyberSource
|
|
76
66
|
# convert string to symbol for hash key
|
77
67
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
78
68
|
|
69
|
+
if attributes.has_key?(:'_links')
|
70
|
+
self._links = attributes[:'_links']
|
71
|
+
end
|
72
|
+
|
73
|
+
if attributes.has_key?(:'id')
|
74
|
+
self.id = attributes[:'id']
|
75
|
+
end
|
76
|
+
|
79
77
|
if attributes.has_key?(:'submitTimeUtc')
|
80
78
|
self.submit_time_utc = attributes[:'submitTimeUtc']
|
81
79
|
end
|
82
80
|
|
81
|
+
if attributes.has_key?(:'submitTimeLocal')
|
82
|
+
self.submit_time_local = attributes[:'submitTimeLocal']
|
83
|
+
end
|
84
|
+
|
83
85
|
if attributes.has_key?(:'status')
|
84
86
|
self.status = attributes[:'status']
|
85
87
|
end
|
86
88
|
|
87
|
-
if attributes.has_key?(:'
|
88
|
-
self.
|
89
|
+
if attributes.has_key?(:'riskInformation')
|
90
|
+
self.risk_information = attributes[:'riskInformation']
|
89
91
|
end
|
90
92
|
|
91
|
-
if attributes.has_key?(:'
|
92
|
-
self.
|
93
|
+
if attributes.has_key?(:'errorInformation')
|
94
|
+
self.error_information = attributes[:'errorInformation']
|
93
95
|
end
|
94
96
|
end
|
95
97
|
|
@@ -97,37 +99,28 @@ module CyberSource
|
|
97
99
|
# @return Array for valid properties with the reasons
|
98
100
|
def list_invalid_properties
|
99
101
|
invalid_properties = Array.new
|
102
|
+
if !@id.nil? && @id.to_s.length > 26
|
103
|
+
invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 26.')
|
104
|
+
end
|
105
|
+
|
100
106
|
invalid_properties
|
101
107
|
end
|
102
108
|
|
103
109
|
# Check to see if the all the properties in the model are valid
|
104
110
|
# @return true if the model is valid
|
105
111
|
def valid?
|
106
|
-
|
107
|
-
return false unless status_validator.valid?(@status)
|
108
|
-
reason_validator = EnumAttributeValidator.new('String', ['SYSTEM_ERROR', 'SERVER_TIMEOUT', 'SERVICE_TIMEOUT', 'PROCESSOR_TIMEOUT'])
|
109
|
-
return false unless reason_validator.valid?(@reason)
|
112
|
+
return false if !@id.nil? && @id.to_s.length > 26
|
110
113
|
true
|
111
114
|
end
|
112
115
|
|
113
|
-
# Custom attribute writer method
|
114
|
-
# @param [Object]
|
115
|
-
def
|
116
|
-
|
117
|
-
|
118
|
-
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
116
|
+
# Custom attribute writer method with validation
|
117
|
+
# @param [Object] id Value to be assigned
|
118
|
+
def id=(id)
|
119
|
+
if !id.nil? && id.to_s.length > 26
|
120
|
+
fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 26.'
|
119
121
|
end
|
120
|
-
@status = status
|
121
|
-
end
|
122
122
|
|
123
|
-
|
124
|
-
# @param [Object] reason Object to be assigned
|
125
|
-
def reason=(reason)
|
126
|
-
validator = EnumAttributeValidator.new('String', ['SYSTEM_ERROR', 'SERVER_TIMEOUT', 'SERVICE_TIMEOUT', 'PROCESSOR_TIMEOUT'])
|
127
|
-
unless validator.valid?(reason)
|
128
|
-
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
|
129
|
-
end
|
130
|
-
@reason = reason
|
123
|
+
@id = id
|
131
124
|
end
|
132
125
|
|
133
126
|
# Checks equality by comparing each attribute.
|
@@ -135,10 +128,13 @@ module CyberSource
|
|
135
128
|
def ==(o)
|
136
129
|
return true if self.equal?(o)
|
137
130
|
self.class == o.class &&
|
131
|
+
_links == o._links &&
|
132
|
+
id == o.id &&
|
138
133
|
submit_time_utc == o.submit_time_utc &&
|
134
|
+
submit_time_local == o.submit_time_local &&
|
139
135
|
status == o.status &&
|
140
|
-
|
141
|
-
|
136
|
+
risk_information == o.risk_information &&
|
137
|
+
error_information == o.error_information
|
142
138
|
end
|
143
139
|
|
144
140
|
# @see the `==` method
|
@@ -150,7 +146,7 @@ module CyberSource
|
|
150
146
|
# Calculates hash code according to all attributes.
|
151
147
|
# @return [Fixnum] Hash code
|
152
148
|
def hash
|
153
|
-
[submit_time_utc, status,
|
149
|
+
[_links, id, submit_time_utc, submit_time_local, status, risk_information, error_information].hash
|
154
150
|
end
|
155
151
|
|
156
152
|
# Builds the object from hash
|
data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information.rb
ADDED
@@ -0,0 +1,284 @@
|
|
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
|
+
# Contains the result of risk assessment.
|
17
|
+
class RiskV1DecisionsPost201ResponseRiskInformation
|
18
|
+
attr_accessor :profile
|
19
|
+
|
20
|
+
attr_accessor :rules
|
21
|
+
|
22
|
+
attr_accessor :info_codes
|
23
|
+
|
24
|
+
attr_accessor :velocity
|
25
|
+
|
26
|
+
# You receive this field only if you subscribe to the Enhanced Case Management service. For all possible values, Please refer to Simple Order API Developer Guide on [CyberSource Business Center](https://ebc2.cybersource.com/ebc2/) - Look for 'Reply Fields': \"decisionReply_casePriority\".
|
27
|
+
attr_accessor :case_priority
|
28
|
+
|
29
|
+
# The customer's local time (hh:mm:ss), which is calculated from the transaction request time and the customer's billing address.
|
30
|
+
attr_accessor :local_time
|
31
|
+
|
32
|
+
attr_accessor :payment_information
|
33
|
+
|
34
|
+
attr_accessor :score
|
35
|
+
|
36
|
+
attr_accessor :ip_address
|
37
|
+
|
38
|
+
attr_accessor :providers
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'profile' => :'profile',
|
44
|
+
:'rules' => :'rules',
|
45
|
+
:'info_codes' => :'infoCodes',
|
46
|
+
:'velocity' => :'velocity',
|
47
|
+
:'case_priority' => :'casePriority',
|
48
|
+
:'local_time' => :'localTime',
|
49
|
+
:'payment_information' => :'paymentInformation',
|
50
|
+
:'score' => :'score',
|
51
|
+
:'ip_address' => :'ipAddress',
|
52
|
+
:'providers' => :'providers'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.swagger_types
|
58
|
+
{
|
59
|
+
:'profile' => :'RiskV1DecisionsPost201ResponseRiskInformationProfile',
|
60
|
+
:'rules' => :'Array<RiskV1DecisionsPost201ResponseRiskInformationRules>',
|
61
|
+
:'info_codes' => :'RiskV1DecisionsPost201ResponseRiskInformationInfoCodes',
|
62
|
+
:'velocity' => :'RiskV1DecisionsPost201ResponseRiskInformationVelocity',
|
63
|
+
:'case_priority' => :'Integer',
|
64
|
+
:'local_time' => :'String',
|
65
|
+
:'payment_information' => :'RiskV1DecisionsPost201ResponseRiskInformationPaymentInformation',
|
66
|
+
:'score' => :'RiskV1DecisionsPost201ResponseRiskInformationScore',
|
67
|
+
:'ip_address' => :'RiskV1DecisionsPost201ResponseRiskInformationIpAddress',
|
68
|
+
:'providers' => :'RiskV1DecisionsPost201ResponseRiskInformationProviders'
|
69
|
+
}
|
70
|
+
end
|
71
|
+
|
72
|
+
# Initializes the object
|
73
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
74
|
+
def initialize(attributes = {})
|
75
|
+
return unless attributes.is_a?(Hash)
|
76
|
+
|
77
|
+
# convert string to symbol for hash key
|
78
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
79
|
+
|
80
|
+
if attributes.has_key?(:'profile')
|
81
|
+
self.profile = attributes[:'profile']
|
82
|
+
end
|
83
|
+
|
84
|
+
if attributes.has_key?(:'rules')
|
85
|
+
if (value = attributes[:'rules']).is_a?(Array)
|
86
|
+
self.rules = value
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.has_key?(:'infoCodes')
|
91
|
+
self.info_codes = attributes[:'infoCodes']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.has_key?(:'velocity')
|
95
|
+
self.velocity = attributes[:'velocity']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.has_key?(:'casePriority')
|
99
|
+
self.case_priority = attributes[:'casePriority']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.has_key?(:'localTime')
|
103
|
+
self.local_time = attributes[:'localTime']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.has_key?(:'paymentInformation')
|
107
|
+
self.payment_information = attributes[:'paymentInformation']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.has_key?(:'score')
|
111
|
+
self.score = attributes[:'score']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.has_key?(:'ipAddress')
|
115
|
+
self.ip_address = attributes[:'ipAddress']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.has_key?(:'providers')
|
119
|
+
self.providers = attributes[:'providers']
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
124
|
+
# @return Array for valid properties with the reasons
|
125
|
+
def list_invalid_properties
|
126
|
+
invalid_properties = Array.new
|
127
|
+
if !@local_time.nil? && @local_time.to_s.length > 255
|
128
|
+
invalid_properties.push('invalid value for "local_time", the character length must be smaller than or equal to 255.')
|
129
|
+
end
|
130
|
+
|
131
|
+
invalid_properties
|
132
|
+
end
|
133
|
+
|
134
|
+
# Check to see if the all the properties in the model are valid
|
135
|
+
# @return true if the model is valid
|
136
|
+
def valid?
|
137
|
+
return false if !@local_time.nil? && @local_time.to_s.length > 255
|
138
|
+
true
|
139
|
+
end
|
140
|
+
|
141
|
+
# Custom attribute writer method with validation
|
142
|
+
# @param [Object] local_time Value to be assigned
|
143
|
+
def local_time=(local_time)
|
144
|
+
if !local_time.nil? && local_time.to_s.length > 255
|
145
|
+
fail ArgumentError, 'invalid value for "local_time", the character length must be smaller than or equal to 255.'
|
146
|
+
end
|
147
|
+
|
148
|
+
@local_time = local_time
|
149
|
+
end
|
150
|
+
|
151
|
+
# Checks equality by comparing each attribute.
|
152
|
+
# @param [Object] Object to be compared
|
153
|
+
def ==(o)
|
154
|
+
return true if self.equal?(o)
|
155
|
+
self.class == o.class &&
|
156
|
+
profile == o.profile &&
|
157
|
+
rules == o.rules &&
|
158
|
+
info_codes == o.info_codes &&
|
159
|
+
velocity == o.velocity &&
|
160
|
+
case_priority == o.case_priority &&
|
161
|
+
local_time == o.local_time &&
|
162
|
+
payment_information == o.payment_information &&
|
163
|
+
score == o.score &&
|
164
|
+
ip_address == o.ip_address &&
|
165
|
+
providers == o.providers
|
166
|
+
end
|
167
|
+
|
168
|
+
# @see the `==` method
|
169
|
+
# @param [Object] Object to be compared
|
170
|
+
def eql?(o)
|
171
|
+
self == o
|
172
|
+
end
|
173
|
+
|
174
|
+
# Calculates hash code according to all attributes.
|
175
|
+
# @return [Fixnum] Hash code
|
176
|
+
def hash
|
177
|
+
[profile, rules, info_codes, velocity, case_priority, local_time, payment_information, score, ip_address, providers].hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Builds the object from hash
|
181
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
182
|
+
# @return [Object] Returns the model itself
|
183
|
+
def build_from_hash(attributes)
|
184
|
+
return nil unless attributes.is_a?(Hash)
|
185
|
+
self.class.swagger_types.each_pair do |key, type|
|
186
|
+
if type =~ /\AArray<(.*)>/i
|
187
|
+
# check to ensure the input is an array given that the the attribute
|
188
|
+
# is documented as an array but the input is not
|
189
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
190
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
191
|
+
end
|
192
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
193
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
194
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
195
|
+
end
|
196
|
+
|
197
|
+
self
|
198
|
+
end
|
199
|
+
|
200
|
+
# Deserializes the data based on type
|
201
|
+
# @param string type Data type
|
202
|
+
# @param string value Value to be deserialized
|
203
|
+
# @return [Object] Deserialized data
|
204
|
+
def _deserialize(type, value)
|
205
|
+
case type.to_sym
|
206
|
+
when :DateTime
|
207
|
+
DateTime.parse(value)
|
208
|
+
when :Date
|
209
|
+
Date.parse(value)
|
210
|
+
when :String
|
211
|
+
value.to_s
|
212
|
+
when :Integer
|
213
|
+
value.to_i
|
214
|
+
when :Float
|
215
|
+
value.to_f
|
216
|
+
when :BOOLEAN
|
217
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
218
|
+
true
|
219
|
+
else
|
220
|
+
false
|
221
|
+
end
|
222
|
+
when :Object
|
223
|
+
# generic object (usually a Hash), return directly
|
224
|
+
value
|
225
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
226
|
+
inner_type = Regexp.last_match[:inner_type]
|
227
|
+
value.map { |v| _deserialize(inner_type, v) }
|
228
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
229
|
+
k_type = Regexp.last_match[:k_type]
|
230
|
+
v_type = Regexp.last_match[:v_type]
|
231
|
+
{}.tap do |hash|
|
232
|
+
value.each do |k, v|
|
233
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
234
|
+
end
|
235
|
+
end
|
236
|
+
else # model
|
237
|
+
temp_model = CyberSource.const_get(type).new
|
238
|
+
temp_model.build_from_hash(value)
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
# Returns the string representation of the object
|
243
|
+
# @return [String] String presentation of the object
|
244
|
+
def to_s
|
245
|
+
to_hash.to_s
|
246
|
+
end
|
247
|
+
|
248
|
+
# to_body is an alias to to_hash (backward compatibility)
|
249
|
+
# @return [Hash] Returns the object in the form of hash
|
250
|
+
def to_body
|
251
|
+
to_hash
|
252
|
+
end
|
253
|
+
|
254
|
+
# Returns the object in the form of hash
|
255
|
+
# @return [Hash] Returns the object in the form of hash
|
256
|
+
def to_hash
|
257
|
+
hash = {}
|
258
|
+
self.class.attribute_map.each_pair do |attr, param|
|
259
|
+
value = self.send(attr)
|
260
|
+
next if value.nil?
|
261
|
+
hash[param] = _to_hash(value)
|
262
|
+
end
|
263
|
+
hash
|
264
|
+
end
|
265
|
+
|
266
|
+
# Outputs non-array value in the form of hash
|
267
|
+
# For object, use to_hash. Otherwise, just return the value
|
268
|
+
# @param [Object] value Any valid value
|
269
|
+
# @return [Hash] Returns the value in the form of hash
|
270
|
+
def _to_hash(value)
|
271
|
+
if value.is_a?(Array)
|
272
|
+
value.compact.map { |v| _to_hash(v) }
|
273
|
+
elsif value.is_a?(Hash)
|
274
|
+
{}.tap do |hash|
|
275
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
276
|
+
end
|
277
|
+
elsif value.respond_to? :to_hash
|
278
|
+
value.to_hash
|
279
|
+
else
|
280
|
+
value
|
281
|
+
end
|
282
|
+
end
|
283
|
+
end
|
284
|
+
end
|