cybersource_rest_client 0.0.86 → 0.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +14 -6
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +24 -24
- data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
- data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
- data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +3 -3
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
- data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/transaction_query_api.rb +3 -3
- data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +104 -0
- data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_17.rb +5 -5
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +5 -5
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_10.rb +18 -93
- data/lib/cybersource_rest_client/models/inline_response_201_11.rb +103 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_12_client_reference_information.rb → inline_response_201_11_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_error_information.rb → inline_response_201_11_error_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information.rb → inline_response_201_11_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion.rb → inline_response_201_11_order_information_currency_conversion.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion_offer.rb → inline_response_201_11_order_information_currency_conversion_offer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_processor_information.rb → inline_response_201_11_processor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +110 -89
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_address.rb → inline_response_201_12_fulfillment_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_options.rb → inline_response_201_12_fulfillment_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_item.rb → inline_response_201_12_item.rb} +20 -20
- data/lib/cybersource_rest_client/models/inline_response_201_12_line_items.rb +256 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_13_links.rb → inline_response_201_12_links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_messages.rb → inline_response_201_12_messages.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_payment_provider.rb → inline_response_201_12_payment_provider.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_totals.rb → inline_response_201_12_totals.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13.rb +61 -67
- data/lib/cybersource_rest_client/models/{inline_response_201_14_discounts.rb → inline_response_201_13_discounts.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_fulfillment.rb → inline_response_201_13_fulfillment.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +19 -19
- data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +20 -51
- data/lib/cybersource_rest_client/models/{inline_response_201_14_order.rb → inline_response_201_13_order.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_payment.rb → inline_response_201_13_payment.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp.rb → inline_response_201_13_ucp.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp_capabilities.rb → inline_response_201_13_ucp_capabilities.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +82 -39
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information.rb → inline_response_201_3_error_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information_details.rb → inline_response_201_3_error_information_details.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information.rb → inline_response_201_3_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_201_3_order_information_amount_details.rb +315 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information.rb +189 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information_routing.rb → inline_response_201_3_processing_information_routing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3_processor_information.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +41 -30
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links.rb → inline_response_201_4__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links_self.rb → inline_response_201_4__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_acquirer_information.rb → inline_response_201_4_acquirer_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_client_reference_information.rb → inline_response_201_4_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_merchant_information.rb → inline_response_201_4_merchant_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +46 -97
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information.rb → inline_response_201_4_payment_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information_card.rb → inline_response_201_4_payment_information_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +59 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information_payouts_options.rb → inline_response_201_4_processing_information_payouts_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +342 -7
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processor_information_card_verification.rb → inline_response_201_4_processor_information_card_verification.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_transactions.rb → inline_response_201_4_transactions.rb} +7 -7
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +35 -68
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information.rb → inline_response_201_5_payout_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_pull_funds.rb → inline_response_201_5_payout_information_pull_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_push_funds.rb → inline_response_201_5_payout_information_push_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +59 -26
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information.rb → inline_response_201_6_integration_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information_tenant_configurations.rb → inline_response_201_6_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_organization_information.rb → inline_response_201_6_organization_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_product_information_setups.rb → inline_response_201_6_product_information_setups.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_registration_information.rb → inline_response_201_6_registration_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups.rb → inline_response_201_6_setups.rb} +4 -4
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_commerce_solutions.rb → inline_response_201_6_setups_commerce_solutions.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_risk.rb → inline_response_201_6_setups_risk.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_value_added_services.rb → inline_response_201_6_setups_value_added_services.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +19 -78
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information.rb → inline_response_201_7_key_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information.rb → inline_response_201_7_key_information_error_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information_details.rb → inline_response_201_7_key_information_error_information_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_8.rb +117 -25
- data/lib/cybersource_rest_client/models/inline_response_201_9.rb +68 -105
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads.rb → inline_response_201_9_payloads.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads_test_payload.rb → inline_response_201_9_payloads_test_payload.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition.rb +11 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +16 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +11 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +16 -5
- data/lib/cybersource_rest_client/models/{inline_response_201_14_line_items.rb → unified_risk_post201_response.rb} +28 -42
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results.rb → unified_risk_post201_response_results.rb} +3 -3
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights.rb +291 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_client.rb +208 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_error.rb +202 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages.rb +190 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb +250 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb +219 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_transaction_insights_insights_warnings.rb +214 -0
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response.rb → unified_risk_post400_response.rb} +2 -2
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response_errors.rb → unified_risk_post400_response_errors.rb} +1 -1
- data/lib/cybersource_rest_client/models/unifiedrisk_account.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer.rb +302 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account.rb +234 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication.rb +402 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication_challenge.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authorization.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_browser.rb +420 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer.rb +403 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer_address.rb +279 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information.rb → unifiedrisk_customer_personal_identification.rb} +99 -42
- data/lib/cybersource_rest_client/models/unifiedrisk_device.rb +681 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_device_point_of_sale.rb +344 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_initiating_party.rb +223 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant.rb +326 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor.rb +389 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_hierarchy.rb +224 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_trading_address.rb +301 -0
- data/lib/cybersource_rest_client/models/{label_request.rb → unifiedrisk_order.rb} +60 -72
- data/lib/cybersource_rest_client/models/unifiedrisk_order_billing.rb +360 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_line_items.rb +262 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping.rb +464 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store.rb +251 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_address.rb +191 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results_risk_insights.rb → unifiedrisk_order_shipping_store_store_address.rb} +43 -43
- data/lib/cybersource_rest_client/models/unifiedrisk_partner.rb +214 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment.rb +423 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_approvals.rb +193 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account.rb +451 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information_amount_details.rb → unifiedrisk_payment_bank_account_balance_before.rb} +49 -56
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_branch_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_financial_institution.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_batch.rb +323 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card.rb +461 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_par_details.rb +196 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_token_details.rb +380 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check.rb +289 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check_deposit_location.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty.rb +287 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_branch_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_sdk.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_token.rb +213 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification.rb +230 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_additional.rb +256 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication.rb +232 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_pin.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_three_ds.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security.rb +199 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_avs.rb +218 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_cvv.rb +196 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_digital.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wallet.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wire.rb +364 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment.rb +308 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history.rb +276 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_account_history.rb +207 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account.rb +273 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_14.rb → unifiedrisk_risk_assessment_buyer_history_customer_account_alertnate_authentication.rb} +59 -114
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_vital4.rb +191 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_session.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal.rb +238 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_address.rb +301 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_capabilities.rb +234 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk.rb +708 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk_raw_data.rb +189 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +305 -12
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details.rb +220 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_credits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_debits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_credits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_debits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details_deposited_cash_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_recurring_details.rb +341 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_travel.rb +279 -0
- data/lib/cybersource_rest_client/models/vpri_request.rb +505 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data.rb +190 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data_card_bin_data.rb +357 -0
- data/lib/cybersource_rest_client.rb +153 -61
- metadata +155 -63
- data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +0 -104
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +0 -548
|
@@ -1,548 +0,0 @@
|
|
|
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.4.38
|
|
10
|
-
=end
|
|
11
|
-
|
|
12
|
-
require 'date'
|
|
13
|
-
|
|
14
|
-
module CyberSource
|
|
15
|
-
class InlineResponse2015ProcessorInformation
|
|
16
|
-
# Reject reason code if the transaction was rejected by VisaNet.
|
|
17
|
-
attr_accessor :reject_reason_code
|
|
18
|
-
|
|
19
|
-
# This field contains reject reason text if the transaction was rejected by VisaNet and generic MasterCard Status reason.
|
|
20
|
-
attr_accessor :reject_reason_text
|
|
21
|
-
|
|
22
|
-
# Authorization code. Returned only when the processor returns this value.
|
|
23
|
-
attr_accessor :approval_code
|
|
24
|
-
|
|
25
|
-
attr_accessor :card_verification
|
|
26
|
-
|
|
27
|
-
attr_accessor :consumer_authentication_response
|
|
28
|
-
|
|
29
|
-
# Short text description of the Acquirer IRF (Interchange Reimbursement Fee) indicator.
|
|
30
|
-
attr_accessor :fee_program_description
|
|
31
|
-
|
|
32
|
-
# This field identifies the interchange fee program applicable to each financial transaction. Fee-program indicator (FPI) values correspond to the fee descriptor and rate for each existing fee program. This field can be regarded as informational only in all authorization messages.
|
|
33
|
-
attr_accessor :fee_program_id
|
|
34
|
-
|
|
35
|
-
# Network ID on which the transaction was performed. Takes the format of 000x where x is a number.
|
|
36
|
-
attr_accessor :network
|
|
37
|
-
|
|
38
|
-
# The date that transaction was processed.
|
|
39
|
-
attr_accessor :processing_date
|
|
40
|
-
|
|
41
|
-
# The name of the processor that was used to complete the transaction.
|
|
42
|
-
attr_accessor :processor
|
|
43
|
-
|
|
44
|
-
# The reason code description contains the reason explaining: - An acquirer-generated advice, reversal, cancellation, adjustment, chargeback (validation request or advice). - An chargeback reversal, representment (validation request or advice).
|
|
45
|
-
attr_accessor :reason_code_details
|
|
46
|
-
|
|
47
|
-
# A four digit number that correlates to reasonCodeDetails.
|
|
48
|
-
attr_accessor :reason_code_value
|
|
49
|
-
|
|
50
|
-
# Transaction status from the processor.
|
|
51
|
-
attr_accessor :response_code
|
|
52
|
-
|
|
53
|
-
# This field might contain information about a decline.
|
|
54
|
-
attr_accessor :response_details
|
|
55
|
-
|
|
56
|
-
# This field might contain the original information about a decline.
|
|
57
|
-
attr_accessor :response_details_original
|
|
58
|
-
|
|
59
|
-
# This field contains a number that is used with other data elements as a key to identify and track all messages related to a given cardholder transaction; that is, to a given transaction set. Recommended format: ydddhhnnnnnn Positions 1-4: The yddd equivalent of the date, where y = 0-9 and ddd = 001 – 366. Positions 5-12: A unique identification number generated by the merchant or assigned by CyberSource.
|
|
60
|
-
attr_accessor :retrieval_reference_number
|
|
61
|
-
|
|
62
|
-
# The date and time that transaction was settled.
|
|
63
|
-
attr_accessor :settlement_date_time
|
|
64
|
-
|
|
65
|
-
# Specifies status of the transaction processing.
|
|
66
|
-
attr_accessor :status_code
|
|
67
|
-
|
|
68
|
-
# This field is returned by authorization and incremental authorization services. System trace number that must be printed on the customer's receipt.
|
|
69
|
-
attr_accessor :system_trace_audit_number
|
|
70
|
-
|
|
71
|
-
# The date and time that transaction was processed.
|
|
72
|
-
attr_accessor :transaction_date_time
|
|
73
|
-
|
|
74
|
-
# Network transaction identifier (TID). This value can be used to identify a specific transaction when you are discussing the transaction with your processor.
|
|
75
|
-
attr_accessor :transaction_id
|
|
76
|
-
|
|
77
|
-
# Identifies the type of transaction originally sent.
|
|
78
|
-
attr_accessor :transaction_type
|
|
79
|
-
|
|
80
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
|
81
|
-
def self.attribute_map
|
|
82
|
-
{
|
|
83
|
-
:'reject_reason_code' => :'rejectReasonCode',
|
|
84
|
-
:'reject_reason_text' => :'rejectReasonText',
|
|
85
|
-
:'approval_code' => :'approvalCode',
|
|
86
|
-
:'card_verification' => :'cardVerification',
|
|
87
|
-
:'consumer_authentication_response' => :'consumerAuthenticationResponse',
|
|
88
|
-
:'fee_program_description' => :'feeProgramDescription',
|
|
89
|
-
:'fee_program_id' => :'feeProgramId',
|
|
90
|
-
:'network' => :'network',
|
|
91
|
-
:'processing_date' => :'processingDate',
|
|
92
|
-
:'processor' => :'processor',
|
|
93
|
-
:'reason_code_details' => :'reasonCodeDetails',
|
|
94
|
-
:'reason_code_value' => :'reasonCodeValue',
|
|
95
|
-
:'response_code' => :'responseCode',
|
|
96
|
-
:'response_details' => :'responseDetails',
|
|
97
|
-
:'response_details_original' => :'responseDetailsOriginal',
|
|
98
|
-
:'retrieval_reference_number' => :'retrievalReferenceNumber',
|
|
99
|
-
:'settlement_date_time' => :'settlementDateTime',
|
|
100
|
-
:'status_code' => :'statusCode',
|
|
101
|
-
:'system_trace_audit_number' => :'systemTraceAuditNumber',
|
|
102
|
-
:'transaction_date_time' => :'transactionDateTime',
|
|
103
|
-
:'transaction_id' => :'transactionId',
|
|
104
|
-
:'transaction_type' => :'transactionType'
|
|
105
|
-
}
|
|
106
|
-
end
|
|
107
|
-
|
|
108
|
-
# Attribute mapping from JSON key to ruby-style variable name.
|
|
109
|
-
def self.json_map
|
|
110
|
-
{
|
|
111
|
-
:'reject_reason_code' => :'reject_reason_code',
|
|
112
|
-
:'reject_reason_text' => :'reject_reason_text',
|
|
113
|
-
:'approval_code' => :'approval_code',
|
|
114
|
-
:'card_verification' => :'card_verification',
|
|
115
|
-
:'consumer_authentication_response' => :'consumer_authentication_response',
|
|
116
|
-
:'fee_program_description' => :'fee_program_description',
|
|
117
|
-
:'fee_program_id' => :'fee_program_id',
|
|
118
|
-
:'network' => :'network',
|
|
119
|
-
:'processing_date' => :'processing_date',
|
|
120
|
-
:'processor' => :'processor',
|
|
121
|
-
:'reason_code_details' => :'reason_code_details',
|
|
122
|
-
:'reason_code_value' => :'reason_code_value',
|
|
123
|
-
:'response_code' => :'response_code',
|
|
124
|
-
:'response_details' => :'response_details',
|
|
125
|
-
:'response_details_original' => :'response_details_original',
|
|
126
|
-
:'retrieval_reference_number' => :'retrieval_reference_number',
|
|
127
|
-
:'settlement_date_time' => :'settlement_date_time',
|
|
128
|
-
:'status_code' => :'status_code',
|
|
129
|
-
:'system_trace_audit_number' => :'system_trace_audit_number',
|
|
130
|
-
:'transaction_date_time' => :'transaction_date_time',
|
|
131
|
-
:'transaction_id' => :'transaction_id',
|
|
132
|
-
:'transaction_type' => :'transaction_type'
|
|
133
|
-
}
|
|
134
|
-
end
|
|
135
|
-
|
|
136
|
-
# Attribute type mapping.
|
|
137
|
-
def self.swagger_types
|
|
138
|
-
{
|
|
139
|
-
:'reject_reason_code' => :'String',
|
|
140
|
-
:'reject_reason_text' => :'String',
|
|
141
|
-
:'approval_code' => :'String',
|
|
142
|
-
:'card_verification' => :'InlineResponse2015ProcessorInformationCardVerification',
|
|
143
|
-
:'consumer_authentication_response' => :'ConsumerAuthenticationResponse',
|
|
144
|
-
:'fee_program_description' => :'String',
|
|
145
|
-
:'fee_program_id' => :'String',
|
|
146
|
-
:'network' => :'String',
|
|
147
|
-
:'processing_date' => :'String',
|
|
148
|
-
:'processor' => :'String',
|
|
149
|
-
:'reason_code_details' => :'String',
|
|
150
|
-
:'reason_code_value' => :'String',
|
|
151
|
-
:'response_code' => :'String',
|
|
152
|
-
:'response_details' => :'String',
|
|
153
|
-
:'response_details_original' => :'String',
|
|
154
|
-
:'retrieval_reference_number' => :'String',
|
|
155
|
-
:'settlement_date_time' => :'String',
|
|
156
|
-
:'status_code' => :'String',
|
|
157
|
-
:'system_trace_audit_number' => :'String',
|
|
158
|
-
:'transaction_date_time' => :'String',
|
|
159
|
-
:'transaction_id' => :'String',
|
|
160
|
-
:'transaction_type' => :'String'
|
|
161
|
-
}
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
# Initializes the object
|
|
165
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
166
|
-
def initialize(attributes = {})
|
|
167
|
-
return unless attributes.is_a?(Hash)
|
|
168
|
-
|
|
169
|
-
# convert string to symbol for hash key
|
|
170
|
-
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
171
|
-
|
|
172
|
-
if attributes.has_key?(:'rejectReasonCode')
|
|
173
|
-
self.reject_reason_code = attributes[:'rejectReasonCode']
|
|
174
|
-
end
|
|
175
|
-
|
|
176
|
-
if attributes.has_key?(:'rejectReasonText')
|
|
177
|
-
self.reject_reason_text = attributes[:'rejectReasonText']
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
if attributes.has_key?(:'approvalCode')
|
|
181
|
-
self.approval_code = attributes[:'approvalCode']
|
|
182
|
-
end
|
|
183
|
-
|
|
184
|
-
if attributes.has_key?(:'cardVerification')
|
|
185
|
-
self.card_verification = attributes[:'cardVerification']
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
if attributes.has_key?(:'consumerAuthenticationResponse')
|
|
189
|
-
self.consumer_authentication_response = attributes[:'consumerAuthenticationResponse']
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
if attributes.has_key?(:'feeProgramDescription')
|
|
193
|
-
self.fee_program_description = attributes[:'feeProgramDescription']
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
if attributes.has_key?(:'feeProgramId')
|
|
197
|
-
self.fee_program_id = attributes[:'feeProgramId']
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
if attributes.has_key?(:'network')
|
|
201
|
-
self.network = attributes[:'network']
|
|
202
|
-
end
|
|
203
|
-
|
|
204
|
-
if attributes.has_key?(:'processingDate')
|
|
205
|
-
self.processing_date = attributes[:'processingDate']
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
if attributes.has_key?(:'processor')
|
|
209
|
-
self.processor = attributes[:'processor']
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
if attributes.has_key?(:'reasonCodeDetails')
|
|
213
|
-
self.reason_code_details = attributes[:'reasonCodeDetails']
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
if attributes.has_key?(:'reasonCodeValue')
|
|
217
|
-
self.reason_code_value = attributes[:'reasonCodeValue']
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
if attributes.has_key?(:'responseCode')
|
|
221
|
-
self.response_code = attributes[:'responseCode']
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
if attributes.has_key?(:'responseDetails')
|
|
225
|
-
self.response_details = attributes[:'responseDetails']
|
|
226
|
-
end
|
|
227
|
-
|
|
228
|
-
if attributes.has_key?(:'responseDetailsOriginal')
|
|
229
|
-
self.response_details_original = attributes[:'responseDetailsOriginal']
|
|
230
|
-
end
|
|
231
|
-
|
|
232
|
-
if attributes.has_key?(:'retrievalReferenceNumber')
|
|
233
|
-
self.retrieval_reference_number = attributes[:'retrievalReferenceNumber']
|
|
234
|
-
end
|
|
235
|
-
|
|
236
|
-
if attributes.has_key?(:'settlementDateTime')
|
|
237
|
-
self.settlement_date_time = attributes[:'settlementDateTime']
|
|
238
|
-
end
|
|
239
|
-
|
|
240
|
-
if attributes.has_key?(:'statusCode')
|
|
241
|
-
self.status_code = attributes[:'statusCode']
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
if attributes.has_key?(:'systemTraceAuditNumber')
|
|
245
|
-
self.system_trace_audit_number = attributes[:'systemTraceAuditNumber']
|
|
246
|
-
end
|
|
247
|
-
|
|
248
|
-
if attributes.has_key?(:'transactionDateTime')
|
|
249
|
-
self.transaction_date_time = attributes[:'transactionDateTime']
|
|
250
|
-
end
|
|
251
|
-
|
|
252
|
-
if attributes.has_key?(:'transactionId')
|
|
253
|
-
self.transaction_id = attributes[:'transactionId']
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
if attributes.has_key?(:'transactionType')
|
|
257
|
-
self.transaction_type = attributes[:'transactionType']
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
|
|
261
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
|
262
|
-
# @return Array for valid properties with the reasons
|
|
263
|
-
def list_invalid_properties
|
|
264
|
-
invalid_properties = Array.new
|
|
265
|
-
if @transaction_id.nil?
|
|
266
|
-
invalid_properties.push('invalid value for "transaction_id", transaction_id cannot be nil.')
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
invalid_properties
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
# Check to see if the all the properties in the model are valid
|
|
273
|
-
# @return true if the model is valid
|
|
274
|
-
def valid?
|
|
275
|
-
return false if @transaction_id.nil?
|
|
276
|
-
true
|
|
277
|
-
end
|
|
278
|
-
|
|
279
|
-
# Custom attribute writer method with validation
|
|
280
|
-
# @param [Object] reject_reason_code Value to be assigned
|
|
281
|
-
def reject_reason_code=(reject_reason_code)
|
|
282
|
-
@reject_reason_code = reject_reason_code
|
|
283
|
-
end
|
|
284
|
-
|
|
285
|
-
# Custom attribute writer method with validation
|
|
286
|
-
# @param [Object] reject_reason_text Value to be assigned
|
|
287
|
-
def reject_reason_text=(reject_reason_text)
|
|
288
|
-
@reject_reason_text = reject_reason_text
|
|
289
|
-
end
|
|
290
|
-
|
|
291
|
-
# Custom attribute writer method with validation
|
|
292
|
-
# @param [Object] approval_code Value to be assigned
|
|
293
|
-
def approval_code=(approval_code)
|
|
294
|
-
@approval_code = approval_code
|
|
295
|
-
end
|
|
296
|
-
|
|
297
|
-
# Custom attribute writer method with validation
|
|
298
|
-
# @param [Object] fee_program_description Value to be assigned
|
|
299
|
-
def fee_program_description=(fee_program_description)
|
|
300
|
-
@fee_program_description = fee_program_description
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
# Custom attribute writer method with validation
|
|
304
|
-
# @param [Object] fee_program_id Value to be assigned
|
|
305
|
-
def fee_program_id=(fee_program_id)
|
|
306
|
-
@fee_program_id = fee_program_id
|
|
307
|
-
end
|
|
308
|
-
|
|
309
|
-
# Custom attribute writer method with validation
|
|
310
|
-
# @param [Object] network Value to be assigned
|
|
311
|
-
def network=(network)
|
|
312
|
-
@network = network
|
|
313
|
-
end
|
|
314
|
-
|
|
315
|
-
# Custom attribute writer method with validation
|
|
316
|
-
# @param [Object] processing_date Value to be assigned
|
|
317
|
-
def processing_date=(processing_date)
|
|
318
|
-
@processing_date = processing_date
|
|
319
|
-
end
|
|
320
|
-
|
|
321
|
-
# Custom attribute writer method with validation
|
|
322
|
-
# @param [Object] processor Value to be assigned
|
|
323
|
-
def processor=(processor)
|
|
324
|
-
@processor = processor
|
|
325
|
-
end
|
|
326
|
-
|
|
327
|
-
# Custom attribute writer method with validation
|
|
328
|
-
# @param [Object] reason_code_details Value to be assigned
|
|
329
|
-
def reason_code_details=(reason_code_details)
|
|
330
|
-
@reason_code_details = reason_code_details
|
|
331
|
-
end
|
|
332
|
-
|
|
333
|
-
# Custom attribute writer method with validation
|
|
334
|
-
# @param [Object] reason_code_value Value to be assigned
|
|
335
|
-
def reason_code_value=(reason_code_value)
|
|
336
|
-
@reason_code_value = reason_code_value
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
# Custom attribute writer method with validation
|
|
340
|
-
# @param [Object] response_code Value to be assigned
|
|
341
|
-
def response_code=(response_code)
|
|
342
|
-
@response_code = response_code
|
|
343
|
-
end
|
|
344
|
-
|
|
345
|
-
# Custom attribute writer method with validation
|
|
346
|
-
# @param [Object] response_details Value to be assigned
|
|
347
|
-
def response_details=(response_details)
|
|
348
|
-
@response_details = response_details
|
|
349
|
-
end
|
|
350
|
-
|
|
351
|
-
# Custom attribute writer method with validation
|
|
352
|
-
# @param [Object] response_details_original Value to be assigned
|
|
353
|
-
def response_details_original=(response_details_original)
|
|
354
|
-
@response_details_original = response_details_original
|
|
355
|
-
end
|
|
356
|
-
|
|
357
|
-
# Custom attribute writer method with validation
|
|
358
|
-
# @param [Object] retrieval_reference_number Value to be assigned
|
|
359
|
-
def retrieval_reference_number=(retrieval_reference_number)
|
|
360
|
-
@retrieval_reference_number = retrieval_reference_number
|
|
361
|
-
end
|
|
362
|
-
|
|
363
|
-
# Custom attribute writer method with validation
|
|
364
|
-
# @param [Object] settlement_date_time Value to be assigned
|
|
365
|
-
def settlement_date_time=(settlement_date_time)
|
|
366
|
-
@settlement_date_time = settlement_date_time
|
|
367
|
-
end
|
|
368
|
-
|
|
369
|
-
# Custom attribute writer method with validation
|
|
370
|
-
# @param [Object] status_code Value to be assigned
|
|
371
|
-
def status_code=(status_code)
|
|
372
|
-
@status_code = status_code
|
|
373
|
-
end
|
|
374
|
-
|
|
375
|
-
# Custom attribute writer method with validation
|
|
376
|
-
# @param [Object] system_trace_audit_number Value to be assigned
|
|
377
|
-
def system_trace_audit_number=(system_trace_audit_number)
|
|
378
|
-
@system_trace_audit_number = system_trace_audit_number
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
# Custom attribute writer method with validation
|
|
382
|
-
# @param [Object] transaction_date_time Value to be assigned
|
|
383
|
-
def transaction_date_time=(transaction_date_time)
|
|
384
|
-
@transaction_date_time = transaction_date_time
|
|
385
|
-
end
|
|
386
|
-
|
|
387
|
-
# Custom attribute writer method with validation
|
|
388
|
-
# @param [Object] transaction_id Value to be assigned
|
|
389
|
-
def transaction_id=(transaction_id)
|
|
390
|
-
#if transaction_id.nil?
|
|
391
|
-
#fail ArgumentError, 'transaction_id cannot be nil'
|
|
392
|
-
#end
|
|
393
|
-
|
|
394
|
-
@transaction_id = transaction_id
|
|
395
|
-
end
|
|
396
|
-
|
|
397
|
-
# Custom attribute writer method with validation
|
|
398
|
-
# @param [Object] transaction_type Value to be assigned
|
|
399
|
-
def transaction_type=(transaction_type)
|
|
400
|
-
@transaction_type = transaction_type
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
# Checks equality by comparing each attribute.
|
|
404
|
-
# @param [Object] Object to be compared
|
|
405
|
-
def ==(o)
|
|
406
|
-
return true if self.equal?(o)
|
|
407
|
-
self.class == o.class &&
|
|
408
|
-
reject_reason_code == o.reject_reason_code &&
|
|
409
|
-
reject_reason_text == o.reject_reason_text &&
|
|
410
|
-
approval_code == o.approval_code &&
|
|
411
|
-
card_verification == o.card_verification &&
|
|
412
|
-
consumer_authentication_response == o.consumer_authentication_response &&
|
|
413
|
-
fee_program_description == o.fee_program_description &&
|
|
414
|
-
fee_program_id == o.fee_program_id &&
|
|
415
|
-
network == o.network &&
|
|
416
|
-
processing_date == o.processing_date &&
|
|
417
|
-
processor == o.processor &&
|
|
418
|
-
reason_code_details == o.reason_code_details &&
|
|
419
|
-
reason_code_value == o.reason_code_value &&
|
|
420
|
-
response_code == o.response_code &&
|
|
421
|
-
response_details == o.response_details &&
|
|
422
|
-
response_details_original == o.response_details_original &&
|
|
423
|
-
retrieval_reference_number == o.retrieval_reference_number &&
|
|
424
|
-
settlement_date_time == o.settlement_date_time &&
|
|
425
|
-
status_code == o.status_code &&
|
|
426
|
-
system_trace_audit_number == o.system_trace_audit_number &&
|
|
427
|
-
transaction_date_time == o.transaction_date_time &&
|
|
428
|
-
transaction_id == o.transaction_id &&
|
|
429
|
-
transaction_type == o.transaction_type
|
|
430
|
-
end
|
|
431
|
-
|
|
432
|
-
# @see the `==` method
|
|
433
|
-
# @param [Object] Object to be compared
|
|
434
|
-
def eql?(o)
|
|
435
|
-
self == o
|
|
436
|
-
end
|
|
437
|
-
|
|
438
|
-
# Calculates hash code according to all attributes.
|
|
439
|
-
# @return [Fixnum] Hash code
|
|
440
|
-
def hash
|
|
441
|
-
[reject_reason_code, reject_reason_text, approval_code, card_verification, consumer_authentication_response, fee_program_description, fee_program_id, network, processing_date, processor, reason_code_details, reason_code_value, response_code, response_details, response_details_original, retrieval_reference_number, settlement_date_time, status_code, system_trace_audit_number, transaction_date_time, transaction_id, transaction_type].hash
|
|
442
|
-
end
|
|
443
|
-
|
|
444
|
-
# Builds the object from hash
|
|
445
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
|
446
|
-
# @return [Object] Returns the model itself
|
|
447
|
-
def build_from_hash(attributes)
|
|
448
|
-
return nil unless attributes.is_a?(Hash)
|
|
449
|
-
self.class.swagger_types.each_pair do |key, type|
|
|
450
|
-
if type =~ /\AArray<(.*)>/i
|
|
451
|
-
# check to ensure the input is an array given that the the attribute
|
|
452
|
-
# is documented as an array but the input is not
|
|
453
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
454
|
-
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
455
|
-
end
|
|
456
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
457
|
-
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
458
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
459
|
-
end
|
|
460
|
-
|
|
461
|
-
self
|
|
462
|
-
end
|
|
463
|
-
|
|
464
|
-
# Deserializes the data based on type
|
|
465
|
-
# @param string type Data type
|
|
466
|
-
# @param string value Value to be deserialized
|
|
467
|
-
# @return [Object] Deserialized data
|
|
468
|
-
def _deserialize(type, value)
|
|
469
|
-
case type.to_sym
|
|
470
|
-
when :DateTime
|
|
471
|
-
DateTime.parse(value)
|
|
472
|
-
when :Date
|
|
473
|
-
Date.parse(value)
|
|
474
|
-
when :String
|
|
475
|
-
value.to_s
|
|
476
|
-
when :Integer
|
|
477
|
-
value.to_i
|
|
478
|
-
when :Float
|
|
479
|
-
value.to_f
|
|
480
|
-
when :BOOLEAN
|
|
481
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
482
|
-
true
|
|
483
|
-
else
|
|
484
|
-
false
|
|
485
|
-
end
|
|
486
|
-
when :Object
|
|
487
|
-
# generic object (usually a Hash), return directly
|
|
488
|
-
value
|
|
489
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
490
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
491
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
492
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
493
|
-
k_type = Regexp.last_match[:k_type]
|
|
494
|
-
v_type = Regexp.last_match[:v_type]
|
|
495
|
-
{}.tap do |hash|
|
|
496
|
-
value.each do |k, v|
|
|
497
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
498
|
-
end
|
|
499
|
-
end
|
|
500
|
-
else # model
|
|
501
|
-
temp_model = CyberSource.const_get(type).new
|
|
502
|
-
temp_model.build_from_hash(value)
|
|
503
|
-
end
|
|
504
|
-
end
|
|
505
|
-
|
|
506
|
-
# Returns the string representation of the object
|
|
507
|
-
# @return [String] String presentation of the object
|
|
508
|
-
def to_s
|
|
509
|
-
to_hash.to_s
|
|
510
|
-
end
|
|
511
|
-
|
|
512
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
513
|
-
# @return [Hash] Returns the object in the form of hash
|
|
514
|
-
def to_body
|
|
515
|
-
to_hash
|
|
516
|
-
end
|
|
517
|
-
|
|
518
|
-
# Returns the object in the form of hash
|
|
519
|
-
# @return [Hash] Returns the object in the form of hash
|
|
520
|
-
def to_hash
|
|
521
|
-
hash = {}
|
|
522
|
-
self.class.attribute_map.each_pair do |attr, param|
|
|
523
|
-
value = self.send(attr)
|
|
524
|
-
next if value.nil?
|
|
525
|
-
hash[param] = _to_hash(value)
|
|
526
|
-
end
|
|
527
|
-
hash
|
|
528
|
-
end
|
|
529
|
-
|
|
530
|
-
# Outputs non-array value in the form of hash
|
|
531
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
532
|
-
# @param [Object] value Any valid value
|
|
533
|
-
# @return [Hash] Returns the value in the form of hash
|
|
534
|
-
def _to_hash(value)
|
|
535
|
-
if value.is_a?(Array)
|
|
536
|
-
value.compact.map { |v| _to_hash(v) }
|
|
537
|
-
elsif value.is_a?(Hash)
|
|
538
|
-
{}.tap do |hash|
|
|
539
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
540
|
-
end
|
|
541
|
-
elsif value.respond_to? :to_hash
|
|
542
|
-
value.to_hash
|
|
543
|
-
else
|
|
544
|
-
value
|
|
545
|
-
end
|
|
546
|
-
end
|
|
547
|
-
end
|
|
548
|
-
end
|