cybersource_rest_client 0.0.8 → 0.0.9
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 +68 -8
- data/lib/cybersource_rest_client/api/capture_api.rb +19 -8
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +112 -0
- data/lib/cybersource_rest_client/api/credit_api.rb +19 -8
- data/lib/cybersource_rest_client/api/flex_token_api.rb +18 -7
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +88 -55
- data/lib/cybersource_rest_client/api/instrument_identifiers_api.rb +24 -13
- data/lib/cybersource_rest_client/api/key_generation_api.rb +18 -7
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +115 -0
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +20 -9
- data/lib/cybersource_rest_client/api/payment_instruments_api.rb +144 -89
- data/lib/cybersource_rest_client/api/payments_api.rb +19 -8
- data/lib/cybersource_rest_client/api/process_a_payout_api.rb +21 -9
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +27 -10
- data/lib/cybersource_rest_client/api/refund_api.rb +37 -15
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +50 -19
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +25 -10
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +104 -43
- data/lib/cybersource_rest_client/api/reports_api.rb +83 -27
- data/lib/cybersource_rest_client/api/reversal_api.rb +19 -8
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +39 -17
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +45 -15
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +89 -13
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +19 -8
- data/lib/cybersource_rest_client/api/user_management_api.rb +19 -8
- data/lib/cybersource_rest_client/api/void_api.rb +73 -29
- data/lib/cybersource_rest_client/api_client.rb +24 -12
- data/lib/cybersource_rest_client/configuration.rb +1 -1
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +14 -5
- data/lib/cybersource_rest_client/models/create_credit_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +23 -5
- data/lib/cybersource_rest_client/models/inline_response_400.rb +59 -14
- data/lib/cybersource_rest_client/models/inline_response_400_1.rb +202 -0
- data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response_fields.rb → inline_response_400_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_get200_response_transaction_batches.rb +7 -7
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response.rb +286 -0
- data/lib/cybersource_rest_client/models/{tmsv1instrumentidentifiers_authorization_options_merchant_initiated_transaction.rb → pts_v1_transaction_batches_id_get200_response__links.rb} +10 -9
- data/lib/cybersource_rest_client/models/pts_v1_transaction_batches_id_get200_response__links_transactions.rb +193 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +20 -2
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_payment_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +34 -7
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +40 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +519 -0
- data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_processor_information_issuer.rb → pts_v2_payments_post201_response_issuer_information.rb} +31 -6
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +208 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -17
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +75 -16
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_avs.rb +0 -15
- 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_routing.rb +249 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_post502_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +63 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +11 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_authorization_information.rb +29 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_issuer_information.rb +199 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post400_response.rb +2 -2
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +350 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information.rb +239 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_error_information_details.rb +228 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb +234 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +274 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +299 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_recipient_information_card.rb +224 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_status_information.rb +228 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post502_response.rb +260 -0
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +186 -4
- data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +18 -9
- data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +29 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +3 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +15 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +249 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +7 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +364 -0
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_issuer.rb → 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 +66 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +0 -6
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_service_fee_descriptor.rb +249 -0
- data/lib/cybersource_rest_client/models/{ptsv2payments_processing_information_authorization_options_merchant_initiated_transaction.rb → ptsv2payments_merchant_initiated_transaction.rb} +3 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +84 -9
- 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 +32 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to.rb +12 -28
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_bill_to_company.rb +349 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +55 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +139 -14
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_shipping_details.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +208 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +47 -37
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -7
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +3 -18
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +253 -16
- data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +12 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +20 -20
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +32 -12
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +424 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_capture_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +8 -8
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_buyer_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +579 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +39 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +59 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_bill_to.rb +11 -27
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_invoice_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_ship_to.rb +1 -1
- 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 +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +30 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +9 -9
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +22 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +5 -20
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +4 -4
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +14 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +224 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information.rb +10 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_amount_details.rb +199 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +2 -2
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +5 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +0 -15
- 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 +199 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +0 -15
- data/lib/cybersource_rest_client/models/refund_capture_request.rb +1 -1
- data/lib/cybersource_rest_client/models/refund_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response.rb +213 -0
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_conversion_details.rb +275 -0
- data/lib/cybersource_rest_client/models/reporting_v3_conversion_details_get200_response_notes.rb +204 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response.rb +266 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_net_funding_summaries.rb +281 -0
- data/lib/cybersource_rest_client/models/reporting_v3_net_fundings_get200_response_total_purchases.rb +203 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response.rb +273 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_authorizations.rb +255 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_fee_and_funding_details.rb +290 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_others.rb +260 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_request_details.rb +235 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlement_statuses.rb +240 -0
- data/lib/cybersource_rest_client/models/reporting_v3_purchase_refund_details_get200_response_settlements.rb +304 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_get200_response_report_definitions.rb +1 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_definitions_name_get200_response_attributes.rb +2 -0
- data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +13 -13
- data/lib/cybersource_rest_client/models/reporting_v3_reports_get200_response_reports.rb +18 -8
- data/lib/cybersource_rest_client/models/reporting_v3_reports_id_get200_response.rb +15 -15
- data/lib/cybersource_rest_client/models/{reporting_v3_report_subscriptions_get200_response_report_preferences.rb → reporting_v3_reports_id_get200_response_report_preferences.rb} +1 -1
- data/lib/cybersource_rest_client/models/{reporting_v3_notificationof_changes_get400_response.rb → reportingv3_report_downloads_get400_response.rb} +42 -52
- data/lib/cybersource_rest_client/models/reportingv3_report_downloads_get400_response_details.rb +195 -0
- data/lib/cybersource_rest_client/models/reportingv3reports_report_preferences.rb +229 -0
- data/lib/cybersource_rest_client/models/request_body.rb +74 -104
- data/lib/cybersource_rest_client/models/request_body_1.rb +159 -55
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_get200_response.rb +331 -0
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tms_v1_paymentinstruments_post201_response_card.rb +302 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_bank_account.rb +48 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_card.rb +24 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_merchant_initiated_transaction.rb +199 -0
- data/lib/cybersource_rest_client/models/tmsv1instrumentidentifiers_processing_information_authorization_options_initiator.rb +1 -1
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_bill_to.rb +183 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_buyer_information.rb +39 -0
- data/lib/cybersource_rest_client/models/tmsv1paymentinstruments_instrument_identifier.rb +24 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_merchant_information_merchant_descriptor.rb +0 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +0 -30
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +184 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_order_information_amount_details.rb +224 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +0 -15
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post400_response.rb +1 -1
- data/lib/cybersource_rest_client/models/ums_v1_users_get400_response.rb +271 -0
- metadata +70 -10
- data/lib/cybersource_rest_client/api/transaction_batch_api.rb +0 -77
data/lib/cybersource_rest_client/models/ptsv2payouts_merchant_information_merchant_descriptor.rb
CHANGED
@@ -93,10 +93,6 @@ module CyberSource
|
|
93
93
|
# @return Array for valid properties with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = Array.new
|
96
|
-
if !@name.nil? && @name.to_s.length > 23
|
97
|
-
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 23.')
|
98
|
-
end
|
99
|
-
|
100
96
|
if !@locality.nil? && @locality.to_s.length > 13
|
101
97
|
invalid_properties.push('invalid value for "locality", the character length must be smaller than or equal to 13.')
|
102
98
|
end
|
@@ -123,7 +119,6 @@ module CyberSource
|
|
123
119
|
# Check to see if the all the properties in the model are valid
|
124
120
|
# @return true if the model is valid
|
125
121
|
def valid?
|
126
|
-
return false if !@name.nil? && @name.to_s.length > 23
|
127
122
|
return false if !@locality.nil? && @locality.to_s.length > 13
|
128
123
|
return false if !@country.nil? && @country.to_s.length > 2
|
129
124
|
return false if !@administrative_area.nil? && @administrative_area.to_s.length > 3
|
@@ -132,16 +127,6 @@ module CyberSource
|
|
132
127
|
true
|
133
128
|
end
|
134
129
|
|
135
|
-
# Custom attribute writer method with validation
|
136
|
-
# @param [Object] name Value to be assigned
|
137
|
-
def name=(name)
|
138
|
-
if !name.nil? && name.to_s.length > 23
|
139
|
-
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 23.'
|
140
|
-
end
|
141
|
-
|
142
|
-
@name = name
|
143
|
-
end
|
144
|
-
|
145
130
|
# Custom attribute writer method with validation
|
146
131
|
# @param [Object] locality Value to be assigned
|
147
132
|
def locality=(locality)
|
@@ -84,10 +84,6 @@ module CyberSource
|
|
84
84
|
# @return Array for valid properties with the reasons
|
85
85
|
def list_invalid_properties
|
86
86
|
invalid_properties = Array.new
|
87
|
-
if !@type.nil? && @type.to_s.length > 3
|
88
|
-
invalid_properties.push('invalid value for "type", the character length must be smaller than or equal to 3.')
|
89
|
-
end
|
90
|
-
|
91
87
|
if !@number.nil? && @number.to_s.length > 20
|
92
88
|
invalid_properties.push('invalid value for "number", the character length must be smaller than or equal to 20.')
|
93
89
|
end
|
@@ -110,7 +106,6 @@ module CyberSource
|
|
110
106
|
# Check to see if the all the properties in the model are valid
|
111
107
|
# @return true if the model is valid
|
112
108
|
def valid?
|
113
|
-
return false if !@type.nil? && @type.to_s.length > 3
|
114
109
|
return false if !@number.nil? && @number.to_s.length > 20
|
115
110
|
return false if !@expiration_month.nil? && @expiration_month.to_s.length > 2
|
116
111
|
return false if !@expiration_year.nil? && @expiration_year.to_s.length > 4
|
@@ -118,16 +113,6 @@ module CyberSource
|
|
118
113
|
true
|
119
114
|
end
|
120
115
|
|
121
|
-
# Custom attribute writer method with validation
|
122
|
-
# @param [Object] type Value to be assigned
|
123
|
-
def type=(type)
|
124
|
-
if !type.nil? && type.to_s.length > 3
|
125
|
-
fail ArgumentError, 'invalid value for "type", the character length must be smaller than or equal to 3.'
|
126
|
-
end
|
127
|
-
|
128
|
-
@type = type
|
129
|
-
end
|
130
|
-
|
131
116
|
# Custom attribute writer method with validation
|
132
117
|
# @param [Object] number Value to be assigned
|
133
118
|
def number=(number)
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
|
33
33
|
attr_accessor :point_of_sale_information
|
34
34
|
|
35
|
-
#
|
35
|
+
# The description for this field is not available.
|
36
36
|
attr_accessor :merchant_defined_information
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -32,7 +32,7 @@ module CyberSource
|
|
32
32
|
|
33
33
|
attr_accessor :point_of_sale_information
|
34
34
|
|
35
|
-
#
|
35
|
+
# The description for this field is not available.
|
36
36
|
attr_accessor :merchant_defined_information
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -0,0 +1,213 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Flex API
|
3
|
+
|
4
|
+
#Simple PAN tokenization service
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class ReportingV3ConversionDetailsGet200Response
|
17
|
+
# Merchant Id
|
18
|
+
attr_accessor :organization_id
|
19
|
+
|
20
|
+
attr_accessor :start_time
|
21
|
+
|
22
|
+
attr_accessor :end_time
|
23
|
+
|
24
|
+
attr_accessor :conversion_details
|
25
|
+
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
27
|
+
def self.attribute_map
|
28
|
+
{
|
29
|
+
:'organization_id' => :'organizationId',
|
30
|
+
:'start_time' => :'startTime',
|
31
|
+
:'end_time' => :'endTime',
|
32
|
+
:'conversion_details' => :'conversionDetails'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.swagger_types
|
38
|
+
{
|
39
|
+
:'organization_id' => :'String',
|
40
|
+
:'start_time' => :'DateTime',
|
41
|
+
:'end_time' => :'DateTime',
|
42
|
+
:'conversion_details' => :'Array<ReportingV3ConversionDetailsGet200ResponseConversionDetails>'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Initializes the object
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
+
def initialize(attributes = {})
|
49
|
+
return unless attributes.is_a?(Hash)
|
50
|
+
|
51
|
+
# convert string to symbol for hash key
|
52
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
|
+
|
54
|
+
if attributes.has_key?(:'organizationId')
|
55
|
+
self.organization_id = attributes[:'organizationId']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes.has_key?(:'startTime')
|
59
|
+
self.start_time = attributes[:'startTime']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes.has_key?(:'endTime')
|
63
|
+
self.end_time = attributes[:'endTime']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes.has_key?(:'conversionDetails')
|
67
|
+
if (value = attributes[:'conversionDetails']).is_a?(Array)
|
68
|
+
self.conversion_details = value
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
74
|
+
# @return Array for valid properties with the reasons
|
75
|
+
def list_invalid_properties
|
76
|
+
invalid_properties = Array.new
|
77
|
+
invalid_properties
|
78
|
+
end
|
79
|
+
|
80
|
+
# Check to see if the all the properties in the model are valid
|
81
|
+
# @return true if the model is valid
|
82
|
+
def valid?
|
83
|
+
true
|
84
|
+
end
|
85
|
+
|
86
|
+
# Checks equality by comparing each attribute.
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def ==(o)
|
89
|
+
return true if self.equal?(o)
|
90
|
+
self.class == o.class &&
|
91
|
+
organization_id == o.organization_id &&
|
92
|
+
start_time == o.start_time &&
|
93
|
+
end_time == o.end_time &&
|
94
|
+
conversion_details == o.conversion_details
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Fixnum] Hash code
|
105
|
+
def hash
|
106
|
+
[organization_id, start_time, end_time, conversion_details].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
self.class.swagger_types.each_pair do |key, type|
|
115
|
+
if type =~ /\AArray<(.*)>/i
|
116
|
+
# check to ensure the input is an array given that the the attribute
|
117
|
+
# is documented as an array but the input is not
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
120
|
+
end
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
123
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
124
|
+
end
|
125
|
+
|
126
|
+
self
|
127
|
+
end
|
128
|
+
|
129
|
+
# Deserializes the data based on type
|
130
|
+
# @param string type Data type
|
131
|
+
# @param string value Value to be deserialized
|
132
|
+
# @return [Object] Deserialized data
|
133
|
+
def _deserialize(type, value)
|
134
|
+
case type.to_sym
|
135
|
+
when :DateTime
|
136
|
+
DateTime.parse(value)
|
137
|
+
when :Date
|
138
|
+
Date.parse(value)
|
139
|
+
when :String
|
140
|
+
value.to_s
|
141
|
+
when :Integer
|
142
|
+
value.to_i
|
143
|
+
when :Float
|
144
|
+
value.to_f
|
145
|
+
when :BOOLEAN
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
147
|
+
true
|
148
|
+
else
|
149
|
+
false
|
150
|
+
end
|
151
|
+
when :Object
|
152
|
+
# generic object (usually a Hash), return directly
|
153
|
+
value
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
160
|
+
{}.tap do |hash|
|
161
|
+
value.each do |k, v|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
163
|
+
end
|
164
|
+
end
|
165
|
+
else # model
|
166
|
+
temp_model = CyberSource.const_get(type).new
|
167
|
+
temp_model.build_from_hash(value)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the string representation of the object
|
172
|
+
# @return [String] String presentation of the object
|
173
|
+
def to_s
|
174
|
+
to_hash.to_s
|
175
|
+
end
|
176
|
+
|
177
|
+
# to_body is an alias to to_hash (backward compatibility)
|
178
|
+
# @return [Hash] Returns the object in the form of hash
|
179
|
+
def to_body
|
180
|
+
to_hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Returns the object in the form of hash
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_hash
|
186
|
+
hash = {}
|
187
|
+
self.class.attribute_map.each_pair do |attr, param|
|
188
|
+
value = self.send(attr)
|
189
|
+
next if value.nil?
|
190
|
+
hash[param] = _to_hash(value)
|
191
|
+
end
|
192
|
+
hash
|
193
|
+
end
|
194
|
+
|
195
|
+
# Outputs non-array value in the form of hash
|
196
|
+
# For object, use to_hash. Otherwise, just return the value
|
197
|
+
# @param [Object] value Any valid value
|
198
|
+
# @return [Hash] Returns the value in the form of hash
|
199
|
+
def _to_hash(value)
|
200
|
+
if value.is_a?(Array)
|
201
|
+
value.compact.map { |v| _to_hash(v) }
|
202
|
+
elsif value.is_a?(Hash)
|
203
|
+
{}.tap do |hash|
|
204
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
+
end
|
206
|
+
elsif value.respond_to? :to_hash
|
207
|
+
value.to_hash
|
208
|
+
else
|
209
|
+
value
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
213
|
+
end
|
@@ -0,0 +1,275 @@
|
|
1
|
+
=begin
|
2
|
+
#CyberSource Flex API
|
3
|
+
|
4
|
+
#Simple PAN tokenization service
|
5
|
+
|
6
|
+
OpenAPI spec version: 0.0.1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module CyberSource
|
16
|
+
class ReportingV3ConversionDetailsGet200ResponseConversionDetails
|
17
|
+
# Merchant reference number of a merchant
|
18
|
+
attr_accessor :merchant_reference_number
|
19
|
+
|
20
|
+
# Date of conversion
|
21
|
+
attr_accessor :conversion_time
|
22
|
+
|
23
|
+
# Cybersource Transation request id
|
24
|
+
attr_accessor :request_id
|
25
|
+
|
26
|
+
# Original decision
|
27
|
+
attr_accessor :original_decision
|
28
|
+
|
29
|
+
# New decision
|
30
|
+
attr_accessor :new_decision
|
31
|
+
|
32
|
+
# User name of the reviewer
|
33
|
+
attr_accessor :reviewer
|
34
|
+
|
35
|
+
# Comments of the reviewer
|
36
|
+
attr_accessor :reviewer_comments
|
37
|
+
|
38
|
+
# Name of the queue
|
39
|
+
attr_accessor :queue
|
40
|
+
|
41
|
+
# Name of the profile
|
42
|
+
attr_accessor :profile
|
43
|
+
|
44
|
+
attr_accessor :notes
|
45
|
+
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
+
def self.attribute_map
|
48
|
+
{
|
49
|
+
:'merchant_reference_number' => :'merchantReferenceNumber',
|
50
|
+
:'conversion_time' => :'conversionTime',
|
51
|
+
:'request_id' => :'requestId',
|
52
|
+
:'original_decision' => :'originalDecision',
|
53
|
+
:'new_decision' => :'newDecision',
|
54
|
+
:'reviewer' => :'reviewer',
|
55
|
+
:'reviewer_comments' => :'reviewerComments',
|
56
|
+
:'queue' => :'queue',
|
57
|
+
:'profile' => :'profile',
|
58
|
+
:'notes' => :'notes'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute type mapping.
|
63
|
+
def self.swagger_types
|
64
|
+
{
|
65
|
+
:'merchant_reference_number' => :'String',
|
66
|
+
:'conversion_time' => :'DateTime',
|
67
|
+
:'request_id' => :'String',
|
68
|
+
:'original_decision' => :'String',
|
69
|
+
:'new_decision' => :'String',
|
70
|
+
:'reviewer' => :'String',
|
71
|
+
:'reviewer_comments' => :'String',
|
72
|
+
:'queue' => :'String',
|
73
|
+
:'profile' => :'String',
|
74
|
+
:'notes' => :'Array<ReportingV3ConversionDetailsGet200ResponseNotes>'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# Initializes the object
|
79
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
80
|
+
def initialize(attributes = {})
|
81
|
+
return unless attributes.is_a?(Hash)
|
82
|
+
|
83
|
+
# convert string to symbol for hash key
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
85
|
+
|
86
|
+
if attributes.has_key?(:'merchantReferenceNumber')
|
87
|
+
self.merchant_reference_number = attributes[:'merchantReferenceNumber']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.has_key?(:'conversionTime')
|
91
|
+
self.conversion_time = attributes[:'conversionTime']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.has_key?(:'requestId')
|
95
|
+
self.request_id = attributes[:'requestId']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.has_key?(:'originalDecision')
|
99
|
+
self.original_decision = attributes[:'originalDecision']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.has_key?(:'newDecision')
|
103
|
+
self.new_decision = attributes[:'newDecision']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.has_key?(:'reviewer')
|
107
|
+
self.reviewer = attributes[:'reviewer']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.has_key?(:'reviewerComments')
|
111
|
+
self.reviewer_comments = attributes[:'reviewerComments']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.has_key?(:'queue')
|
115
|
+
self.queue = attributes[:'queue']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.has_key?(:'profile')
|
119
|
+
self.profile = attributes[:'profile']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.has_key?(:'notes')
|
123
|
+
if (value = attributes[:'notes']).is_a?(Array)
|
124
|
+
self.notes = value
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
130
|
+
# @return Array for valid properties with the reasons
|
131
|
+
def list_invalid_properties
|
132
|
+
invalid_properties = Array.new
|
133
|
+
invalid_properties
|
134
|
+
end
|
135
|
+
|
136
|
+
# Check to see if the all the properties in the model are valid
|
137
|
+
# @return true if the model is valid
|
138
|
+
def valid?
|
139
|
+
true
|
140
|
+
end
|
141
|
+
|
142
|
+
# Checks equality by comparing each attribute.
|
143
|
+
# @param [Object] Object to be compared
|
144
|
+
def ==(o)
|
145
|
+
return true if self.equal?(o)
|
146
|
+
self.class == o.class &&
|
147
|
+
merchant_reference_number == o.merchant_reference_number &&
|
148
|
+
conversion_time == o.conversion_time &&
|
149
|
+
request_id == o.request_id &&
|
150
|
+
original_decision == o.original_decision &&
|
151
|
+
new_decision == o.new_decision &&
|
152
|
+
reviewer == o.reviewer &&
|
153
|
+
reviewer_comments == o.reviewer_comments &&
|
154
|
+
queue == o.queue &&
|
155
|
+
profile == o.profile &&
|
156
|
+
notes == o.notes
|
157
|
+
end
|
158
|
+
|
159
|
+
# @see the `==` method
|
160
|
+
# @param [Object] Object to be compared
|
161
|
+
def eql?(o)
|
162
|
+
self == o
|
163
|
+
end
|
164
|
+
|
165
|
+
# Calculates hash code according to all attributes.
|
166
|
+
# @return [Fixnum] Hash code
|
167
|
+
def hash
|
168
|
+
[merchant_reference_number, conversion_time, request_id, original_decision, new_decision, reviewer, reviewer_comments, queue, profile, notes].hash
|
169
|
+
end
|
170
|
+
|
171
|
+
# Builds the object from hash
|
172
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
173
|
+
# @return [Object] Returns the model itself
|
174
|
+
def build_from_hash(attributes)
|
175
|
+
return nil unless attributes.is_a?(Hash)
|
176
|
+
self.class.swagger_types.each_pair do |key, type|
|
177
|
+
if type =~ /\AArray<(.*)>/i
|
178
|
+
# check to ensure the input is an array given that the the attribute
|
179
|
+
# is documented as an array but the input is not
|
180
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
181
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
182
|
+
end
|
183
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
184
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
185
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
186
|
+
end
|
187
|
+
|
188
|
+
self
|
189
|
+
end
|
190
|
+
|
191
|
+
# Deserializes the data based on type
|
192
|
+
# @param string type Data type
|
193
|
+
# @param string value Value to be deserialized
|
194
|
+
# @return [Object] Deserialized data
|
195
|
+
def _deserialize(type, value)
|
196
|
+
case type.to_sym
|
197
|
+
when :DateTime
|
198
|
+
DateTime.parse(value)
|
199
|
+
when :Date
|
200
|
+
Date.parse(value)
|
201
|
+
when :String
|
202
|
+
value.to_s
|
203
|
+
when :Integer
|
204
|
+
value.to_i
|
205
|
+
when :Float
|
206
|
+
value.to_f
|
207
|
+
when :BOOLEAN
|
208
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
209
|
+
true
|
210
|
+
else
|
211
|
+
false
|
212
|
+
end
|
213
|
+
when :Object
|
214
|
+
# generic object (usually a Hash), return directly
|
215
|
+
value
|
216
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
217
|
+
inner_type = Regexp.last_match[:inner_type]
|
218
|
+
value.map { |v| _deserialize(inner_type, v) }
|
219
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
220
|
+
k_type = Regexp.last_match[:k_type]
|
221
|
+
v_type = Regexp.last_match[:v_type]
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each do |k, v|
|
224
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
225
|
+
end
|
226
|
+
end
|
227
|
+
else # model
|
228
|
+
temp_model = CyberSource.const_get(type).new
|
229
|
+
temp_model.build_from_hash(value)
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
# Returns the string representation of the object
|
234
|
+
# @return [String] String presentation of the object
|
235
|
+
def to_s
|
236
|
+
to_hash.to_s
|
237
|
+
end
|
238
|
+
|
239
|
+
# to_body is an alias to to_hash (backward compatibility)
|
240
|
+
# @return [Hash] Returns the object in the form of hash
|
241
|
+
def to_body
|
242
|
+
to_hash
|
243
|
+
end
|
244
|
+
|
245
|
+
# Returns the object in the form of hash
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
247
|
+
def to_hash
|
248
|
+
hash = {}
|
249
|
+
self.class.attribute_map.each_pair do |attr, param|
|
250
|
+
value = self.send(attr)
|
251
|
+
next if value.nil?
|
252
|
+
hash[param] = _to_hash(value)
|
253
|
+
end
|
254
|
+
hash
|
255
|
+
end
|
256
|
+
|
257
|
+
# Outputs non-array value in the form of hash
|
258
|
+
# For object, use to_hash. Otherwise, just return the value
|
259
|
+
# @param [Object] value Any valid value
|
260
|
+
# @return [Hash] Returns the value in the form of hash
|
261
|
+
def _to_hash(value)
|
262
|
+
if value.is_a?(Array)
|
263
|
+
value.compact.map { |v| _to_hash(v) }
|
264
|
+
elsif value.is_a?(Hash)
|
265
|
+
{}.tap do |hash|
|
266
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
267
|
+
end
|
268
|
+
elsif value.respond_to? :to_hash
|
269
|
+
value.to_hash
|
270
|
+
else
|
271
|
+
value
|
272
|
+
end
|
273
|
+
end
|
274
|
+
end
|
275
|
+
end
|