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
@@ -0,0 +1,279 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Merged Spec
|
3
|
+
|
4
|
+
#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class Riskv1decisionsDeviceInformation
|
17
|
+
# Boolean that indicates whether the customer’s browser accepts cookies. This field can contain one of the following values: - `yes`: The customer’s browser accepts cookies. - `no`: The customer’s browser does not accept cookies.
|
18
|
+
attr_accessor :cookies_accepted
|
19
|
+
|
20
|
+
# Customer’s IP address, such as 10.1.27.63, reported by your Web server via socket information.
|
21
|
+
attr_accessor :ip_address
|
22
|
+
|
23
|
+
# Host name reported by the customer’s browser to your Web server identified via the HTTP header.
|
24
|
+
attr_accessor :host_name
|
25
|
+
|
26
|
+
# Contains the session ID that you send to Decision Manager to obtain the device fingerprint information. The string can contain uppercase and lowercase letters, digits, hyphen (-), and underscore (_). However, do not use the same uppercase and lowercase letters to indicate different session IDs. The session ID must be unique for each merchant ID. You can use any string that you are already generating, such as an order number or web session ID.The session ID must be unique for each page load, regardless of an individual’s web session ID. If the same user navigates to a profiled page and is assigned a web session, navigates away from the profiled page, then navigates back to the profiled page, the generated session ID should be different and unique. An example of an ideal session ID would be a web session ID plus the timestamp. This measure ensures that a unique ID is generated every time the page is loaded, even if it is the same user reloading the page.
|
27
|
+
attr_accessor :fingerprint_session_id
|
28
|
+
|
29
|
+
# Email address set in the customer’s browser, which may differ from customer email.
|
30
|
+
attr_accessor :http_browser_email
|
31
|
+
|
32
|
+
# Customer’s browser as identified from the HTTP header data. For example, Mozilla is the value that identifies the Netscape browser.
|
33
|
+
attr_accessor :user_agent
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'cookies_accepted' => :'cookiesAccepted',
|
39
|
+
:'ip_address' => :'ipAddress',
|
40
|
+
:'host_name' => :'hostName',
|
41
|
+
:'fingerprint_session_id' => :'fingerprintSessionId',
|
42
|
+
:'http_browser_email' => :'httpBrowserEmail',
|
43
|
+
:'user_agent' => :'userAgent'
|
44
|
+
}
|
45
|
+
end
|
46
|
+
|
47
|
+
# Attribute type mapping.
|
48
|
+
def self.swagger_types
|
49
|
+
{
|
50
|
+
:'cookies_accepted' => :'String',
|
51
|
+
:'ip_address' => :'String',
|
52
|
+
:'host_name' => :'String',
|
53
|
+
:'fingerprint_session_id' => :'String',
|
54
|
+
:'http_browser_email' => :'String',
|
55
|
+
:'user_agent' => :'String'
|
56
|
+
}
|
57
|
+
end
|
58
|
+
|
59
|
+
# Initializes the object
|
60
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
61
|
+
def initialize(attributes = {})
|
62
|
+
return unless attributes.is_a?(Hash)
|
63
|
+
|
64
|
+
# convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
66
|
+
|
67
|
+
if attributes.has_key?(:'cookiesAccepted')
|
68
|
+
self.cookies_accepted = attributes[:'cookiesAccepted']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'ipAddress')
|
72
|
+
self.ip_address = attributes[:'ipAddress']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.has_key?(:'hostName')
|
76
|
+
self.host_name = attributes[:'hostName']
|
77
|
+
end
|
78
|
+
|
79
|
+
if attributes.has_key?(:'fingerprintSessionId')
|
80
|
+
self.fingerprint_session_id = attributes[:'fingerprintSessionId']
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.has_key?(:'httpBrowserEmail')
|
84
|
+
self.http_browser_email = attributes[:'httpBrowserEmail']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.has_key?(:'userAgent')
|
88
|
+
self.user_agent = attributes[:'userAgent']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
93
|
+
# @return Array for valid properties with the reasons
|
94
|
+
def list_invalid_properties
|
95
|
+
invalid_properties = Array.new
|
96
|
+
if !@ip_address.nil? && @ip_address.to_s.length > 15
|
97
|
+
invalid_properties.push('invalid value for "ip_address", the character length must be smaller than or equal to 15.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if !@host_name.nil? && @host_name.to_s.length > 60
|
101
|
+
invalid_properties.push('invalid value for "host_name", the character length must be smaller than or equal to 60.')
|
102
|
+
end
|
103
|
+
|
104
|
+
if !@user_agent.nil? && @user_agent.to_s.length > 40
|
105
|
+
invalid_properties.push('invalid value for "user_agent", the character length must be smaller than or equal to 40.')
|
106
|
+
end
|
107
|
+
|
108
|
+
invalid_properties
|
109
|
+
end
|
110
|
+
|
111
|
+
# Check to see if the all the properties in the model are valid
|
112
|
+
# @return true if the model is valid
|
113
|
+
def valid?
|
114
|
+
return false if !@ip_address.nil? && @ip_address.to_s.length > 15
|
115
|
+
return false if !@host_name.nil? && @host_name.to_s.length > 60
|
116
|
+
return false if !@user_agent.nil? && @user_agent.to_s.length > 40
|
117
|
+
true
|
118
|
+
end
|
119
|
+
|
120
|
+
# Custom attribute writer method with validation
|
121
|
+
# @param [Object] ip_address Value to be assigned
|
122
|
+
def ip_address=(ip_address)
|
123
|
+
if !ip_address.nil? && ip_address.to_s.length > 15
|
124
|
+
fail ArgumentError, 'invalid value for "ip_address", the character length must be smaller than or equal to 15.'
|
125
|
+
end
|
126
|
+
|
127
|
+
@ip_address = ip_address
|
128
|
+
end
|
129
|
+
|
130
|
+
# Custom attribute writer method with validation
|
131
|
+
# @param [Object] host_name Value to be assigned
|
132
|
+
def host_name=(host_name)
|
133
|
+
if !host_name.nil? && host_name.to_s.length > 60
|
134
|
+
fail ArgumentError, 'invalid value for "host_name", the character length must be smaller than or equal to 60.'
|
135
|
+
end
|
136
|
+
|
137
|
+
@host_name = host_name
|
138
|
+
end
|
139
|
+
|
140
|
+
# Custom attribute writer method with validation
|
141
|
+
# @param [Object] user_agent Value to be assigned
|
142
|
+
def user_agent=(user_agent)
|
143
|
+
if !user_agent.nil? && user_agent.to_s.length > 40
|
144
|
+
fail ArgumentError, 'invalid value for "user_agent", the character length must be smaller than or equal to 40.'
|
145
|
+
end
|
146
|
+
|
147
|
+
@user_agent = user_agent
|
148
|
+
end
|
149
|
+
|
150
|
+
# Checks equality by comparing each attribute.
|
151
|
+
# @param [Object] Object to be compared
|
152
|
+
def ==(o)
|
153
|
+
return true if self.equal?(o)
|
154
|
+
self.class == o.class &&
|
155
|
+
cookies_accepted == o.cookies_accepted &&
|
156
|
+
ip_address == o.ip_address &&
|
157
|
+
host_name == o.host_name &&
|
158
|
+
fingerprint_session_id == o.fingerprint_session_id &&
|
159
|
+
http_browser_email == o.http_browser_email &&
|
160
|
+
user_agent == o.user_agent
|
161
|
+
end
|
162
|
+
|
163
|
+
# @see the `==` method
|
164
|
+
# @param [Object] Object to be compared
|
165
|
+
def eql?(o)
|
166
|
+
self == o
|
167
|
+
end
|
168
|
+
|
169
|
+
# Calculates hash code according to all attributes.
|
170
|
+
# @return [Fixnum] Hash code
|
171
|
+
def hash
|
172
|
+
[cookies_accepted, ip_address, host_name, fingerprint_session_id, http_browser_email, user_agent].hash
|
173
|
+
end
|
174
|
+
|
175
|
+
# Builds the object from hash
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
177
|
+
# @return [Object] Returns the model itself
|
178
|
+
def build_from_hash(attributes)
|
179
|
+
return nil unless attributes.is_a?(Hash)
|
180
|
+
self.class.swagger_types.each_pair do |key, type|
|
181
|
+
if type =~ /\AArray<(.*)>/i
|
182
|
+
# check to ensure the input is an array given that the the attribute
|
183
|
+
# is documented as an array but the input is not
|
184
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
185
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
186
|
+
end
|
187
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
188
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
189
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
190
|
+
end
|
191
|
+
|
192
|
+
self
|
193
|
+
end
|
194
|
+
|
195
|
+
# Deserializes the data based on type
|
196
|
+
# @param string type Data type
|
197
|
+
# @param string value Value to be deserialized
|
198
|
+
# @return [Object] Deserialized data
|
199
|
+
def _deserialize(type, value)
|
200
|
+
case type.to_sym
|
201
|
+
when :DateTime
|
202
|
+
DateTime.parse(value)
|
203
|
+
when :Date
|
204
|
+
Date.parse(value)
|
205
|
+
when :String
|
206
|
+
value.to_s
|
207
|
+
when :Integer
|
208
|
+
value.to_i
|
209
|
+
when :Float
|
210
|
+
value.to_f
|
211
|
+
when :BOOLEAN
|
212
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
213
|
+
true
|
214
|
+
else
|
215
|
+
false
|
216
|
+
end
|
217
|
+
when :Object
|
218
|
+
# generic object (usually a Hash), return directly
|
219
|
+
value
|
220
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
221
|
+
inner_type = Regexp.last_match[:inner_type]
|
222
|
+
value.map { |v| _deserialize(inner_type, v) }
|
223
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
224
|
+
k_type = Regexp.last_match[:k_type]
|
225
|
+
v_type = Regexp.last_match[:v_type]
|
226
|
+
{}.tap do |hash|
|
227
|
+
value.each do |k, v|
|
228
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
229
|
+
end
|
230
|
+
end
|
231
|
+
else # model
|
232
|
+
temp_model = CyberSource.const_get(type).new
|
233
|
+
temp_model.build_from_hash(value)
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
# Returns the string representation of the object
|
238
|
+
# @return [String] String presentation of the object
|
239
|
+
def to_s
|
240
|
+
to_hash.to_s
|
241
|
+
end
|
242
|
+
|
243
|
+
# to_body is an alias to to_hash (backward compatibility)
|
244
|
+
# @return [Hash] Returns the object in the form of hash
|
245
|
+
def to_body
|
246
|
+
to_hash
|
247
|
+
end
|
248
|
+
|
249
|
+
# Returns the object in the form of hash
|
250
|
+
# @return [Hash] Returns the object in the form of hash
|
251
|
+
def to_hash
|
252
|
+
hash = {}
|
253
|
+
self.class.attribute_map.each_pair do |attr, param|
|
254
|
+
value = self.send(attr)
|
255
|
+
next if value.nil?
|
256
|
+
hash[param] = _to_hash(value)
|
257
|
+
end
|
258
|
+
hash
|
259
|
+
end
|
260
|
+
|
261
|
+
# Outputs non-array value in the form of hash
|
262
|
+
# For object, use to_hash. Otherwise, just return the value
|
263
|
+
# @param [Object] value Any valid value
|
264
|
+
# @return [Hash] Returns the value in the form of hash
|
265
|
+
def _to_hash(value)
|
266
|
+
if value.is_a?(Array)
|
267
|
+
value.compact.map { |v| _to_hash(v) }
|
268
|
+
elsif value.is_a?(Hash)
|
269
|
+
{}.tap do |hash|
|
270
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
271
|
+
end
|
272
|
+
elsif value.respond_to? :to_hash
|
273
|
+
value.to_hash
|
274
|
+
else
|
275
|
+
value
|
276
|
+
end
|
277
|
+
end
|
278
|
+
end
|
279
|
+
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,11 +13,12 @@ Swagger Codegen version: 2.2.3
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module CyberSource
|
16
|
-
|
17
|
-
|
16
|
+
# Contains merchant-defined key-value pairs.
|
17
|
+
class Riskv1decisionsMerchantDefinedInformation
|
18
|
+
# Fields that you can use to store information. The value appears in the Case Management Details window in the Business Center. The first four fields are the same fields that are used by the Secure Data services. See request code examples. Warning Merchant-defined data fields are not intended to and must not be used to capture personally identifying information. Accordingly, merchants are prohibited from capturing, obtaining, and/or transmitting any personally identifying information in or via the merchant-defined data fields. Personally identifying information includes, but is not limited to, address, credit card number, social security number, driver's license number, state-issued identification number, passport number, and card verification numbers (CVV, CVC2, CVV2, CID, CVN). In the event CyberSource discovers that a merchant is capturing and/or transmitting personally identifying information via the merchant-defined data fields, whether or not intentionally, CyberSource will immediately suspend the merchant's account, which will result in a rejection of any and all transaction requests submitted by the merchant after the point of suspension.
|
18
19
|
attr_accessor :key
|
19
20
|
|
20
|
-
#
|
21
|
+
# String value for the key
|
21
22
|
attr_accessor :value
|
22
23
|
|
23
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -57,8 +58,8 @@ module CyberSource
|
|
57
58
|
# @return Array for valid properties with the reasons
|
58
59
|
def list_invalid_properties
|
59
60
|
invalid_properties = Array.new
|
60
|
-
if !@key.nil? && @key.to_s.length >
|
61
|
-
invalid_properties.push('invalid value for "key", the character length must be smaller than or equal to
|
61
|
+
if !@key.nil? && @key.to_s.length > 255
|
62
|
+
invalid_properties.push('invalid value for "key", the character length must be smaller than or equal to 255.')
|
62
63
|
end
|
63
64
|
|
64
65
|
if !@value.nil? && @value.to_s.length > 255
|
@@ -71,7 +72,7 @@ module CyberSource
|
|
71
72
|
# Check to see if the all the properties in the model are valid
|
72
73
|
# @return true if the model is valid
|
73
74
|
def valid?
|
74
|
-
return false if !@key.nil? && @key.to_s.length >
|
75
|
+
return false if !@key.nil? && @key.to_s.length > 255
|
75
76
|
return false if !@value.nil? && @value.to_s.length > 255
|
76
77
|
true
|
77
78
|
end
|
@@ -79,8 +80,8 @@ module CyberSource
|
|
79
80
|
# Custom attribute writer method with validation
|
80
81
|
# @param [Object] key Value to be assigned
|
81
82
|
def key=(key)
|
82
|
-
if !key.nil? && key.to_s.length >
|
83
|
-
fail ArgumentError, 'invalid value for "key", the character length must be smaller than or equal to
|
83
|
+
if !key.nil? && key.to_s.length > 255
|
84
|
+
fail ArgumentError, 'invalid value for "key", the character length must be smaller than or equal to 255.'
|
84
85
|
end
|
85
86
|
|
86
87
|
@key = key
|
@@ -0,0 +1,248 @@
|
|
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 detailed order-level information.
|
17
|
+
class Riskv1decisionsOrderInformation
|
18
|
+
attr_accessor :amount_details
|
19
|
+
|
20
|
+
attr_accessor :shipping_details
|
21
|
+
|
22
|
+
attr_accessor :ship_to
|
23
|
+
|
24
|
+
# Boolean that indicates whether returns are accepted for this order. This field can contain one of the following values: - `yes`: Returns are accepted for this order. - `no`: Returns are not accepted for this order.
|
25
|
+
attr_accessor :returns_accepted
|
26
|
+
|
27
|
+
# This array contains detailed information about individual products in the order.
|
28
|
+
attr_accessor :line_items
|
29
|
+
|
30
|
+
attr_accessor :bill_to
|
31
|
+
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
33
|
+
def self.attribute_map
|
34
|
+
{
|
35
|
+
:'amount_details' => :'amountDetails',
|
36
|
+
:'shipping_details' => :'shippingDetails',
|
37
|
+
:'ship_to' => :'shipTo',
|
38
|
+
:'returns_accepted' => :'returnsAccepted',
|
39
|
+
:'line_items' => :'lineItems',
|
40
|
+
:'bill_to' => :'billTo'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.swagger_types
|
46
|
+
{
|
47
|
+
:'amount_details' => :'Riskv1decisionsOrderInformationAmountDetails',
|
48
|
+
:'shipping_details' => :'Riskv1decisionsOrderInformationShippingDetails',
|
49
|
+
:'ship_to' => :'Riskv1decisionsOrderInformationShipTo',
|
50
|
+
:'returns_accepted' => :'String',
|
51
|
+
:'line_items' => :'Array<Riskv1decisionsOrderInformationLineItems>',
|
52
|
+
:'bill_to' => :'Riskv1decisionsOrderInformationBillTo'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
return unless attributes.is_a?(Hash)
|
60
|
+
|
61
|
+
# convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
63
|
+
|
64
|
+
if attributes.has_key?(:'amountDetails')
|
65
|
+
self.amount_details = attributes[:'amountDetails']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'shippingDetails')
|
69
|
+
self.shipping_details = attributes[:'shippingDetails']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.has_key?(:'shipTo')
|
73
|
+
self.ship_to = attributes[:'shipTo']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.has_key?(:'returnsAccepted')
|
77
|
+
self.returns_accepted = attributes[:'returnsAccepted']
|
78
|
+
end
|
79
|
+
|
80
|
+
if attributes.has_key?(:'lineItems')
|
81
|
+
if (value = attributes[:'lineItems']).is_a?(Array)
|
82
|
+
self.line_items = value
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.has_key?(:'billTo')
|
87
|
+
self.bill_to = attributes[:'billTo']
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
92
|
+
# @return Array for valid properties with the reasons
|
93
|
+
def list_invalid_properties
|
94
|
+
invalid_properties = Array.new
|
95
|
+
if !@returns_accepted.nil? && @returns_accepted.to_s.length > 3
|
96
|
+
invalid_properties.push('invalid value for "returns_accepted", the character length must be smaller than or equal to 3.')
|
97
|
+
end
|
98
|
+
|
99
|
+
invalid_properties
|
100
|
+
end
|
101
|
+
|
102
|
+
# Check to see if the all the properties in the model are valid
|
103
|
+
# @return true if the model is valid
|
104
|
+
def valid?
|
105
|
+
return false if !@returns_accepted.nil? && @returns_accepted.to_s.length > 3
|
106
|
+
true
|
107
|
+
end
|
108
|
+
|
109
|
+
# Custom attribute writer method with validation
|
110
|
+
# @param [Object] returns_accepted Value to be assigned
|
111
|
+
def returns_accepted=(returns_accepted)
|
112
|
+
if !returns_accepted.nil? && returns_accepted.to_s.length > 3
|
113
|
+
fail ArgumentError, 'invalid value for "returns_accepted", the character length must be smaller than or equal to 3.'
|
114
|
+
end
|
115
|
+
|
116
|
+
@returns_accepted = returns_accepted
|
117
|
+
end
|
118
|
+
|
119
|
+
# Checks equality by comparing each attribute.
|
120
|
+
# @param [Object] Object to be compared
|
121
|
+
def ==(o)
|
122
|
+
return true if self.equal?(o)
|
123
|
+
self.class == o.class &&
|
124
|
+
amount_details == o.amount_details &&
|
125
|
+
shipping_details == o.shipping_details &&
|
126
|
+
ship_to == o.ship_to &&
|
127
|
+
returns_accepted == o.returns_accepted &&
|
128
|
+
line_items == o.line_items &&
|
129
|
+
bill_to == o.bill_to
|
130
|
+
end
|
131
|
+
|
132
|
+
# @see the `==` method
|
133
|
+
# @param [Object] Object to be compared
|
134
|
+
def eql?(o)
|
135
|
+
self == o
|
136
|
+
end
|
137
|
+
|
138
|
+
# Calculates hash code according to all attributes.
|
139
|
+
# @return [Fixnum] Hash code
|
140
|
+
def hash
|
141
|
+
[amount_details, shipping_details, ship_to, returns_accepted, line_items, bill_to].hash
|
142
|
+
end
|
143
|
+
|
144
|
+
# Builds the object from hash
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
146
|
+
# @return [Object] Returns the model itself
|
147
|
+
def build_from_hash(attributes)
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
149
|
+
self.class.swagger_types.each_pair do |key, type|
|
150
|
+
if type =~ /\AArray<(.*)>/i
|
151
|
+
# check to ensure the input is an array given that the the attribute
|
152
|
+
# is documented as an array but the input is not
|
153
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
154
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
155
|
+
end
|
156
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
157
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
158
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
159
|
+
end
|
160
|
+
|
161
|
+
self
|
162
|
+
end
|
163
|
+
|
164
|
+
# Deserializes the data based on type
|
165
|
+
# @param string type Data type
|
166
|
+
# @param string value Value to be deserialized
|
167
|
+
# @return [Object] Deserialized data
|
168
|
+
def _deserialize(type, value)
|
169
|
+
case type.to_sym
|
170
|
+
when :DateTime
|
171
|
+
DateTime.parse(value)
|
172
|
+
when :Date
|
173
|
+
Date.parse(value)
|
174
|
+
when :String
|
175
|
+
value.to_s
|
176
|
+
when :Integer
|
177
|
+
value.to_i
|
178
|
+
when :Float
|
179
|
+
value.to_f
|
180
|
+
when :BOOLEAN
|
181
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
182
|
+
true
|
183
|
+
else
|
184
|
+
false
|
185
|
+
end
|
186
|
+
when :Object
|
187
|
+
# generic object (usually a Hash), return directly
|
188
|
+
value
|
189
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
190
|
+
inner_type = Regexp.last_match[:inner_type]
|
191
|
+
value.map { |v| _deserialize(inner_type, v) }
|
192
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
193
|
+
k_type = Regexp.last_match[:k_type]
|
194
|
+
v_type = Regexp.last_match[:v_type]
|
195
|
+
{}.tap do |hash|
|
196
|
+
value.each do |k, v|
|
197
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
198
|
+
end
|
199
|
+
end
|
200
|
+
else # model
|
201
|
+
temp_model = CyberSource.const_get(type).new
|
202
|
+
temp_model.build_from_hash(value)
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# Returns the string representation of the object
|
207
|
+
# @return [String] String presentation of the object
|
208
|
+
def to_s
|
209
|
+
to_hash.to_s
|
210
|
+
end
|
211
|
+
|
212
|
+
# to_body is an alias to to_hash (backward compatibility)
|
213
|
+
# @return [Hash] Returns the object in the form of hash
|
214
|
+
def to_body
|
215
|
+
to_hash
|
216
|
+
end
|
217
|
+
|
218
|
+
# Returns the object in the form of hash
|
219
|
+
# @return [Hash] Returns the object in the form of hash
|
220
|
+
def to_hash
|
221
|
+
hash = {}
|
222
|
+
self.class.attribute_map.each_pair do |attr, param|
|
223
|
+
value = self.send(attr)
|
224
|
+
next if value.nil?
|
225
|
+
hash[param] = _to_hash(value)
|
226
|
+
end
|
227
|
+
hash
|
228
|
+
end
|
229
|
+
|
230
|
+
# Outputs non-array value in the form of hash
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
232
|
+
# @param [Object] value Any valid value
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
234
|
+
def _to_hash(value)
|
235
|
+
if value.is_a?(Array)
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
237
|
+
elsif value.is_a?(Hash)
|
238
|
+
{}.tap do |hash|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
240
|
+
end
|
241
|
+
elsif value.respond_to? :to_hash
|
242
|
+
value.to_hash
|
243
|
+
else
|
244
|
+
value
|
245
|
+
end
|
246
|
+
end
|
247
|
+
end
|
248
|
+
end
|