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,331 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#CyberSource Flex API
|
3
|
-
|
4
|
-
#Simple PAN tokenization service
|
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 Body3
|
17
|
-
attr_accessor :_links
|
18
|
-
|
19
|
-
# Unique identification number assigned by CyberSource to the submitted request.
|
20
|
-
attr_accessor :id
|
21
|
-
|
22
|
-
# Describes type of token. For example: customer, paymentInstrument or instrumentIdentifier.
|
23
|
-
attr_accessor :object
|
24
|
-
|
25
|
-
# Current state of the token.
|
26
|
-
attr_accessor :state
|
27
|
-
|
28
|
-
attr_accessor :bank_account
|
29
|
-
|
30
|
-
attr_accessor :card
|
31
|
-
|
32
|
-
attr_accessor :buyer_information
|
33
|
-
|
34
|
-
attr_accessor :bill_to
|
35
|
-
|
36
|
-
attr_accessor :processing_information
|
37
|
-
|
38
|
-
attr_accessor :merchant_information
|
39
|
-
|
40
|
-
attr_accessor :meta_data
|
41
|
-
|
42
|
-
attr_accessor :instrument_identifier
|
43
|
-
|
44
|
-
class EnumAttributeValidator
|
45
|
-
attr_reader :datatype
|
46
|
-
attr_reader :allowable_values
|
47
|
-
|
48
|
-
def initialize(datatype, allowable_values)
|
49
|
-
@allowable_values = allowable_values.map do |value|
|
50
|
-
case datatype.to_s
|
51
|
-
when /Integer/i
|
52
|
-
value.to_i
|
53
|
-
when /Float/i
|
54
|
-
value.to_f
|
55
|
-
else
|
56
|
-
value
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
def valid?(value)
|
62
|
-
!value || allowable_values.include?(value)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
67
|
-
def self.attribute_map
|
68
|
-
{
|
69
|
-
:'_links' => :'_links',
|
70
|
-
:'id' => :'id',
|
71
|
-
:'object' => :'object',
|
72
|
-
:'state' => :'state',
|
73
|
-
:'bank_account' => :'bankAccount',
|
74
|
-
:'card' => :'card',
|
75
|
-
:'buyer_information' => :'buyerInformation',
|
76
|
-
:'bill_to' => :'billTo',
|
77
|
-
:'processing_information' => :'processingInformation',
|
78
|
-
:'merchant_information' => :'merchantInformation',
|
79
|
-
:'meta_data' => :'metaData',
|
80
|
-
:'instrument_identifier' => :'instrumentIdentifier'
|
81
|
-
}
|
82
|
-
end
|
83
|
-
|
84
|
-
# Attribute type mapping.
|
85
|
-
def self.swagger_types
|
86
|
-
{
|
87
|
-
:'_links' => :'Tmsv1instrumentidentifiersLinks',
|
88
|
-
:'id' => :'String',
|
89
|
-
:'object' => :'String',
|
90
|
-
:'state' => :'String',
|
91
|
-
:'bank_account' => :'Tmsv1paymentinstrumentsBankAccount',
|
92
|
-
:'card' => :'Tmsv1paymentinstrumentsCard',
|
93
|
-
:'buyer_information' => :'Tmsv1paymentinstrumentsBuyerInformation',
|
94
|
-
:'bill_to' => :'Tmsv1paymentinstrumentsBillTo',
|
95
|
-
:'processing_information' => :'Tmsv1paymentinstrumentsProcessingInformation',
|
96
|
-
:'merchant_information' => :'Tmsv1paymentinstrumentsMerchantInformation',
|
97
|
-
:'meta_data' => :'Tmsv1instrumentidentifiersMetadata',
|
98
|
-
:'instrument_identifier' => :'Tmsv1paymentinstrumentsInstrumentIdentifier'
|
99
|
-
}
|
100
|
-
end
|
101
|
-
|
102
|
-
# Initializes the object
|
103
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
104
|
-
def initialize(attributes = {})
|
105
|
-
return unless attributes.is_a?(Hash)
|
106
|
-
|
107
|
-
# convert string to symbol for hash key
|
108
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
109
|
-
|
110
|
-
if attributes.has_key?(:'_links')
|
111
|
-
self._links = attributes[:'_links']
|
112
|
-
end
|
113
|
-
|
114
|
-
if attributes.has_key?(:'id')
|
115
|
-
self.id = attributes[:'id']
|
116
|
-
end
|
117
|
-
|
118
|
-
if attributes.has_key?(:'object')
|
119
|
-
self.object = attributes[:'object']
|
120
|
-
end
|
121
|
-
|
122
|
-
if attributes.has_key?(:'state')
|
123
|
-
self.state = attributes[:'state']
|
124
|
-
end
|
125
|
-
|
126
|
-
if attributes.has_key?(:'bankAccount')
|
127
|
-
self.bank_account = attributes[:'bankAccount']
|
128
|
-
end
|
129
|
-
|
130
|
-
if attributes.has_key?(:'card')
|
131
|
-
self.card = attributes[:'card']
|
132
|
-
end
|
133
|
-
|
134
|
-
if attributes.has_key?(:'buyerInformation')
|
135
|
-
self.buyer_information = attributes[:'buyerInformation']
|
136
|
-
end
|
137
|
-
|
138
|
-
if attributes.has_key?(:'billTo')
|
139
|
-
self.bill_to = attributes[:'billTo']
|
140
|
-
end
|
141
|
-
|
142
|
-
if attributes.has_key?(:'processingInformation')
|
143
|
-
self.processing_information = attributes[:'processingInformation']
|
144
|
-
end
|
145
|
-
|
146
|
-
if attributes.has_key?(:'merchantInformation')
|
147
|
-
self.merchant_information = attributes[:'merchantInformation']
|
148
|
-
end
|
149
|
-
|
150
|
-
if attributes.has_key?(:'metaData')
|
151
|
-
self.meta_data = attributes[:'metaData']
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.has_key?(:'instrumentIdentifier')
|
155
|
-
self.instrument_identifier = attributes[:'instrumentIdentifier']
|
156
|
-
end
|
157
|
-
end
|
158
|
-
|
159
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
160
|
-
# @return Array for valid properties with the reasons
|
161
|
-
def list_invalid_properties
|
162
|
-
invalid_properties = Array.new
|
163
|
-
invalid_properties
|
164
|
-
end
|
165
|
-
|
166
|
-
# Check to see if the all the properties in the model are valid
|
167
|
-
# @return true if the model is valid
|
168
|
-
def valid?
|
169
|
-
object_validator = EnumAttributeValidator.new('String', ['paymentInstrument'])
|
170
|
-
return false unless object_validator.valid?(@object)
|
171
|
-
state_validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
|
172
|
-
return false unless state_validator.valid?(@state)
|
173
|
-
true
|
174
|
-
end
|
175
|
-
|
176
|
-
# Custom attribute writer method checking allowed values (enum).
|
177
|
-
# @param [Object] object Object to be assigned
|
178
|
-
def object=(object)
|
179
|
-
validator = EnumAttributeValidator.new('String', ['paymentInstrument'])
|
180
|
-
unless validator.valid?(object)
|
181
|
-
fail ArgumentError, 'invalid value for "object", must be one of #{validator.allowable_values}.'
|
182
|
-
end
|
183
|
-
@object = object
|
184
|
-
end
|
185
|
-
|
186
|
-
# Custom attribute writer method checking allowed values (enum).
|
187
|
-
# @param [Object] state Object to be assigned
|
188
|
-
def state=(state)
|
189
|
-
validator = EnumAttributeValidator.new('String', ['ACTIVE', 'CLOSED'])
|
190
|
-
unless validator.valid?(state)
|
191
|
-
fail ArgumentError, 'invalid value for "state", must be one of #{validator.allowable_values}.'
|
192
|
-
end
|
193
|
-
@state = state
|
194
|
-
end
|
195
|
-
|
196
|
-
# Checks equality by comparing each attribute.
|
197
|
-
# @param [Object] Object to be compared
|
198
|
-
def ==(o)
|
199
|
-
return true if self.equal?(o)
|
200
|
-
self.class == o.class &&
|
201
|
-
_links == o._links &&
|
202
|
-
id == o.id &&
|
203
|
-
object == o.object &&
|
204
|
-
state == o.state &&
|
205
|
-
bank_account == o.bank_account &&
|
206
|
-
card == o.card &&
|
207
|
-
buyer_information == o.buyer_information &&
|
208
|
-
bill_to == o.bill_to &&
|
209
|
-
processing_information == o.processing_information &&
|
210
|
-
merchant_information == o.merchant_information &&
|
211
|
-
meta_data == o.meta_data &&
|
212
|
-
instrument_identifier == o.instrument_identifier
|
213
|
-
end
|
214
|
-
|
215
|
-
# @see the `==` method
|
216
|
-
# @param [Object] Object to be compared
|
217
|
-
def eql?(o)
|
218
|
-
self == o
|
219
|
-
end
|
220
|
-
|
221
|
-
# Calculates hash code according to all attributes.
|
222
|
-
# @return [Fixnum] Hash code
|
223
|
-
def hash
|
224
|
-
[_links, id, object, state, bank_account, card, buyer_information, bill_to, processing_information, merchant_information, meta_data, instrument_identifier].hash
|
225
|
-
end
|
226
|
-
|
227
|
-
# Builds the object from hash
|
228
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
229
|
-
# @return [Object] Returns the model itself
|
230
|
-
def build_from_hash(attributes)
|
231
|
-
return nil unless attributes.is_a?(Hash)
|
232
|
-
self.class.swagger_types.each_pair do |key, type|
|
233
|
-
if type =~ /\AArray<(.*)>/i
|
234
|
-
# check to ensure the input is an array given that the the attribute
|
235
|
-
# is documented as an array but the input is not
|
236
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
237
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
238
|
-
end
|
239
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
240
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
241
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
242
|
-
end
|
243
|
-
|
244
|
-
self
|
245
|
-
end
|
246
|
-
|
247
|
-
# Deserializes the data based on type
|
248
|
-
# @param string type Data type
|
249
|
-
# @param string value Value to be deserialized
|
250
|
-
# @return [Object] Deserialized data
|
251
|
-
def _deserialize(type, value)
|
252
|
-
case type.to_sym
|
253
|
-
when :DateTime
|
254
|
-
DateTime.parse(value)
|
255
|
-
when :Date
|
256
|
-
Date.parse(value)
|
257
|
-
when :String
|
258
|
-
value.to_s
|
259
|
-
when :Integer
|
260
|
-
value.to_i
|
261
|
-
when :Float
|
262
|
-
value.to_f
|
263
|
-
when :BOOLEAN
|
264
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
265
|
-
true
|
266
|
-
else
|
267
|
-
false
|
268
|
-
end
|
269
|
-
when :Object
|
270
|
-
# generic object (usually a Hash), return directly
|
271
|
-
value
|
272
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
273
|
-
inner_type = Regexp.last_match[:inner_type]
|
274
|
-
value.map { |v| _deserialize(inner_type, v) }
|
275
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
276
|
-
k_type = Regexp.last_match[:k_type]
|
277
|
-
v_type = Regexp.last_match[:v_type]
|
278
|
-
{}.tap do |hash|
|
279
|
-
value.each do |k, v|
|
280
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
281
|
-
end
|
282
|
-
end
|
283
|
-
else # model
|
284
|
-
temp_model = CyberSource.const_get(type).new
|
285
|
-
temp_model.build_from_hash(value)
|
286
|
-
end
|
287
|
-
end
|
288
|
-
|
289
|
-
# Returns the string representation of the object
|
290
|
-
# @return [String] String presentation of the object
|
291
|
-
def to_s
|
292
|
-
to_hash.to_s
|
293
|
-
end
|
294
|
-
|
295
|
-
# to_body is an alias to to_hash (backward compatibility)
|
296
|
-
# @return [Hash] Returns the object in the form of hash
|
297
|
-
def to_body
|
298
|
-
to_hash
|
299
|
-
end
|
300
|
-
|
301
|
-
# Returns the object in the form of hash
|
302
|
-
# @return [Hash] Returns the object in the form of hash
|
303
|
-
def to_hash
|
304
|
-
hash = {}
|
305
|
-
self.class.attribute_map.each_pair do |attr, param|
|
306
|
-
value = self.send(attr)
|
307
|
-
next if value.nil?
|
308
|
-
hash[param] = _to_hash(value)
|
309
|
-
end
|
310
|
-
hash
|
311
|
-
end
|
312
|
-
|
313
|
-
# Outputs non-array value in the form of hash
|
314
|
-
# For object, use to_hash. Otherwise, just return the value
|
315
|
-
# @param [Object] value Any valid value
|
316
|
-
# @return [Hash] Returns the value in the form of hash
|
317
|
-
def _to_hash(value)
|
318
|
-
if value.is_a?(Array)
|
319
|
-
value.compact.map { |v| _to_hash(v) }
|
320
|
-
elsif value.is_a?(Hash)
|
321
|
-
{}.tap do |hash|
|
322
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
323
|
-
end
|
324
|
-
elsif value.respond_to? :to_hash
|
325
|
-
value.to_hash
|
326
|
-
else
|
327
|
-
value
|
328
|
-
end
|
329
|
-
end
|
330
|
-
end
|
331
|
-
end
|
@@ -1,214 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#CyberSource Flex API
|
3
|
-
|
4
|
-
#Simple PAN tokenization service
|
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 CardInfo
|
17
|
-
# Encrypted or plain text card number. If the encryption type of “None” was used in the Generate Key request, this value can be set to the plaintext card number/Personal Account Number (PAN). If the encryption type of RsaOaep256 was used in the Generate Key request, this value needs to be the RSA OAEP 256 encrypted card number. The card number should be encrypted on the cardholders’ device. The [WebCrypto API] (https://github.com/CyberSource/cybersource-flex-samples/blob/master/java/spring-boot/src/main/resources/public/flex.js) can be used with the JWK obtained in the Generate Key request.
|
18
|
-
attr_accessor :card_number
|
19
|
-
|
20
|
-
# Two digit expiration month
|
21
|
-
attr_accessor :card_expiration_month
|
22
|
-
|
23
|
-
# Four digit expiration year
|
24
|
-
attr_accessor :card_expiration_year
|
25
|
-
|
26
|
-
# Card Type. This field is required. Refer to the CyberSource Credit Card Services documentation for supported card types.
|
27
|
-
attr_accessor :card_type
|
28
|
-
|
29
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
-
def self.attribute_map
|
31
|
-
{
|
32
|
-
:'card_number' => :'cardNumber',
|
33
|
-
:'card_expiration_month' => :'cardExpirationMonth',
|
34
|
-
:'card_expiration_year' => :'cardExpirationYear',
|
35
|
-
:'card_type' => :'cardType'
|
36
|
-
}
|
37
|
-
end
|
38
|
-
|
39
|
-
# Attribute type mapping.
|
40
|
-
def self.swagger_types
|
41
|
-
{
|
42
|
-
:'card_number' => :'String',
|
43
|
-
:'card_expiration_month' => :'String',
|
44
|
-
:'card_expiration_year' => :'String',
|
45
|
-
:'card_type' => :'String'
|
46
|
-
}
|
47
|
-
end
|
48
|
-
|
49
|
-
# Initializes the object
|
50
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
-
def initialize(attributes = {})
|
52
|
-
return unless attributes.is_a?(Hash)
|
53
|
-
|
54
|
-
# convert string to symbol for hash key
|
55
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
|
-
|
57
|
-
if attributes.has_key?(:'cardNumber')
|
58
|
-
self.card_number = attributes[:'cardNumber']
|
59
|
-
end
|
60
|
-
|
61
|
-
if attributes.has_key?(:'cardExpirationMonth')
|
62
|
-
self.card_expiration_month = attributes[:'cardExpirationMonth']
|
63
|
-
end
|
64
|
-
|
65
|
-
if attributes.has_key?(:'cardExpirationYear')
|
66
|
-
self.card_expiration_year = attributes[:'cardExpirationYear']
|
67
|
-
end
|
68
|
-
|
69
|
-
if attributes.has_key?(:'cardType')
|
70
|
-
self.card_type = attributes[:'cardType']
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
75
|
-
# @return Array for valid properties with the reasons
|
76
|
-
def list_invalid_properties
|
77
|
-
invalid_properties = Array.new
|
78
|
-
invalid_properties
|
79
|
-
end
|
80
|
-
|
81
|
-
# Check to see if the all the properties in the model are valid
|
82
|
-
# @return true if the model is valid
|
83
|
-
def valid?
|
84
|
-
true
|
85
|
-
end
|
86
|
-
|
87
|
-
# Checks equality by comparing each attribute.
|
88
|
-
# @param [Object] Object to be compared
|
89
|
-
def ==(o)
|
90
|
-
return true if self.equal?(o)
|
91
|
-
self.class == o.class &&
|
92
|
-
card_number == o.card_number &&
|
93
|
-
card_expiration_month == o.card_expiration_month &&
|
94
|
-
card_expiration_year == o.card_expiration_year &&
|
95
|
-
card_type == o.card_type
|
96
|
-
end
|
97
|
-
|
98
|
-
# @see the `==` method
|
99
|
-
# @param [Object] Object to be compared
|
100
|
-
def eql?(o)
|
101
|
-
self == o
|
102
|
-
end
|
103
|
-
|
104
|
-
# Calculates hash code according to all attributes.
|
105
|
-
# @return [Fixnum] Hash code
|
106
|
-
def hash
|
107
|
-
[card_number, card_expiration_month, card_expiration_year, card_type].hash
|
108
|
-
end
|
109
|
-
|
110
|
-
# Builds the object from hash
|
111
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
-
# @return [Object] Returns the model itself
|
113
|
-
def build_from_hash(attributes)
|
114
|
-
return nil unless attributes.is_a?(Hash)
|
115
|
-
self.class.swagger_types.each_pair do |key, type|
|
116
|
-
if type =~ /\AArray<(.*)>/i
|
117
|
-
# check to ensure the input is an array given that the the attribute
|
118
|
-
# is documented as an array but the input is not
|
119
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
120
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
121
|
-
end
|
122
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
123
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
124
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
125
|
-
end
|
126
|
-
|
127
|
-
self
|
128
|
-
end
|
129
|
-
|
130
|
-
# Deserializes the data based on type
|
131
|
-
# @param string type Data type
|
132
|
-
# @param string value Value to be deserialized
|
133
|
-
# @return [Object] Deserialized data
|
134
|
-
def _deserialize(type, value)
|
135
|
-
case type.to_sym
|
136
|
-
when :DateTime
|
137
|
-
DateTime.parse(value)
|
138
|
-
when :Date
|
139
|
-
Date.parse(value)
|
140
|
-
when :String
|
141
|
-
value.to_s
|
142
|
-
when :Integer
|
143
|
-
value.to_i
|
144
|
-
when :Float
|
145
|
-
value.to_f
|
146
|
-
when :BOOLEAN
|
147
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
148
|
-
true
|
149
|
-
else
|
150
|
-
false
|
151
|
-
end
|
152
|
-
when :Object
|
153
|
-
# generic object (usually a Hash), return directly
|
154
|
-
value
|
155
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
156
|
-
inner_type = Regexp.last_match[:inner_type]
|
157
|
-
value.map { |v| _deserialize(inner_type, v) }
|
158
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
159
|
-
k_type = Regexp.last_match[:k_type]
|
160
|
-
v_type = Regexp.last_match[:v_type]
|
161
|
-
{}.tap do |hash|
|
162
|
-
value.each do |k, v|
|
163
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
164
|
-
end
|
165
|
-
end
|
166
|
-
else # model
|
167
|
-
temp_model = CyberSource.const_get(type).new
|
168
|
-
temp_model.build_from_hash(value)
|
169
|
-
end
|
170
|
-
end
|
171
|
-
|
172
|
-
# Returns the string representation of the object
|
173
|
-
# @return [String] String presentation of the object
|
174
|
-
def to_s
|
175
|
-
to_hash.to_s
|
176
|
-
end
|
177
|
-
|
178
|
-
# to_body is an alias to to_hash (backward compatibility)
|
179
|
-
# @return [Hash] Returns the object in the form of hash
|
180
|
-
def to_body
|
181
|
-
to_hash
|
182
|
-
end
|
183
|
-
|
184
|
-
# Returns the object in the form of hash
|
185
|
-
# @return [Hash] Returns the object in the form of hash
|
186
|
-
def to_hash
|
187
|
-
hash = {}
|
188
|
-
self.class.attribute_map.each_pair do |attr, param|
|
189
|
-
value = self.send(attr)
|
190
|
-
next if value.nil?
|
191
|
-
hash[param] = _to_hash(value)
|
192
|
-
end
|
193
|
-
hash
|
194
|
-
end
|
195
|
-
|
196
|
-
# Outputs non-array value in the form of hash
|
197
|
-
# For object, use to_hash. Otherwise, just return the value
|
198
|
-
# @param [Object] value Any valid value
|
199
|
-
# @return [Hash] Returns the value in the form of hash
|
200
|
-
def _to_hash(value)
|
201
|
-
if value.is_a?(Array)
|
202
|
-
value.compact.map { |v| _to_hash(v) }
|
203
|
-
elsif value.is_a?(Hash)
|
204
|
-
{}.tap do |hash|
|
205
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
206
|
-
end
|
207
|
-
elsif value.respond_to? :to_hash
|
208
|
-
value.to_hash
|
209
|
-
else
|
210
|
-
value
|
211
|
-
end
|
212
|
-
end
|
213
|
-
end
|
214
|
-
end
|