cybersource_rest_client 0.0.85 → 0.0.86
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/Cache.rb +9 -6
- data/lib/AuthenticationSDK/util/Utility.rb +16 -5
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +1868 -122
- 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/emv_tag_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +146 -0
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +94 -4
- data/lib/cybersource_rest_client/api/merchant_capabilities_api.rb +1065 -0
- data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +361 -0
- data/lib/cybersource_rest_client/api/network_tokens_api.rb +4 -4
- data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
- data/lib/cybersource_rest_client/api/orders_api.rb +2 -2
- data/lib/cybersource_rest_client/api/payment_tokens_api.rb +1 -1
- data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
- data/lib/cybersource_rest_client/api/pull_funds_api.rb +3 -3
- data/lib/cybersource_rest_client/api/subscriptions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_query_api.rb +158 -0
- data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +104 -0
- data/lib/cybersource_rest_client/models/acp_checkout_session_response_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_complete_checkout_request.rb +205 -0
- data/lib/cybersource_rest_client/models/acp_complete_checkout_response_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_complete_checkout_session_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_create_checkout_session_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_create_checkout_session_request.rb +217 -0
- data/lib/cybersource_rest_client/models/acp_update_checkout_session_buyer.rb +254 -0
- data/lib/cybersource_rest_client/models/acp_update_checkout_session_request.rb +224 -0
- data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +356 -0
- data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +356 -0
- data/lib/cybersource_rest_client/models/agent_registration_conflict_response409.rb +196 -0
- data/lib/cybersource_rest_client/models/agent_registration_response201.rb +356 -0
- data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +308 -0
- data/lib/cybersource_rest_client/models/agent_registration_validation_error_response422.rb +214 -0
- data/lib/cybersource_rest_client/models/agent_registration_validation_error_response422_errors.rb +212 -0
- data/lib/cybersource_rest_client/models/agent_request.rb +286 -0
- data/lib/cybersource_rest_client/models/agent_update.rb +237 -0
- data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/body_1.rb +189 -0
- data/lib/cybersource_rest_client/models/body_2.rb +224 -0
- data/lib/cybersource_rest_client/models/consumer_authentication_response.rb +196 -0
- data/lib/cybersource_rest_client/models/create_payment_link_request.rb +17 -5
- data/lib/cybersource_rest_client/models/deactivate_merchant_key_response200.rb +196 -0
- data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +239 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessions_fulfillment_address.rb +344 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessions_items.rb +222 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_id_fulfillment_address.rb +344 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data.rb +222 -0
- data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data_billing_address.rb +344 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts.rb +206 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts_allocations.rb +202 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts_applied.rb +237 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment.rb +193 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_destinations.rb +246 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_groups.rb +228 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_methods.rb +252 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_options.rb +215 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_totals.rb +202 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_item.rb +207 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_line_items.rb +211 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment.rb +217 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_billing_address.rb +235 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_credential.rb +202 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_handlers.rb +259 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_instruments.rb +288 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_discounts.rb +206 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_fulfillment.rb +193 -0
- data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_payment.rb +217 -0
- data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +245 -0
- data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +236 -0
- data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/iccv1productsfeed_products.rb +1368 -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 +317 -0
- data/lib/cybersource_rest_client/models/inline_response_200_17_fulfillment_address.rb +344 -0
- data/lib/cybersource_rest_client/models/inline_response_200_17_order.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +308 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19.rb +302 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_errors.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant.rb +237 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant_products.rb +259 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20.rb +259 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +1081 -0
- data/lib/cybersource_rest_client/models/inline_response_200_21.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_5_integration_information_tenant_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_10.rb +277 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_7_payloads.rb → inline_response_201_10_payloads.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_payloads_test_payload.rb → inline_response_201_10_payloads_test_payload.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_11.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +297 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_9_client_reference_information.rb → inline_response_201_12_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_9_error_information.rb → inline_response_201_12_error_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information.rb → inline_response_201_12_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information_currency_conversion.rb → inline_response_201_12_order_information_currency_conversion.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information_currency_conversion_offer.rb → inline_response_201_12_order_information_currency_conversion_offer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_9_processor_information.rb → inline_response_201_12_processor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13.rb +318 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_fulfillment_address.rb +344 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_fulfillment_options.rb +290 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +256 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_links.rb +212 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_messages.rb +250 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_payment_provider.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_201_13_totals.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14.rb +312 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_discounts.rb +206 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_fulfillment.rb +193 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_item.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_line_items.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_order.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_payment.rb +217 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_ucp.rb +204 -0
- data/lib/cybersource_rest_client/models/inline_response_201_14_ucp_capabilities.rb +202 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +33 -54
- data/lib/cybersource_rest_client/models/inline_response_201_3_results.rb +190 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3_results_risk_insights.rb +235 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +51 -62
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +315 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +189 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information_routing.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +78 -19
- data/lib/cybersource_rest_client/models/{inline_response_401_1__links.rb → inline_response_201_5__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_201_5__links_self.rb +201 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_client_reference_information.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_error_information.rb +225 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_error_information_details.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_merchant_information.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_order_information_amount_details.rb +264 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_payment_information.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_payment_information_card.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_processing_information.rb +240 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_processing_information_payouts_options.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +548 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information_card_verification.rb +196 -0
- data/lib/cybersource_rest_client/models/inline_response_201_5_transactions.rb +239 -0
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +45 -111
- data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information.rb → inline_response_201_6_payout_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information_pull_funds.rb → inline_response_201_6_payout_information_pull_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information_push_funds.rb → inline_response_201_6_payout_information_push_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +76 -72
- data/lib/cybersource_rest_client/models/{inline_response_201_4_integration_information.rb → inline_response_201_7_integration_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_4_integration_information_tenant_configurations.rb → inline_response_201_7_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_organization_information.rb → inline_response_201_7_organization_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_product_information_setups.rb → inline_response_201_7_product_information_setups.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_4_registration_information.rb → inline_response_201_7_registration_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups.rb → inline_response_201_7_setups.rb} +4 -4
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_commerce_solutions.rb → inline_response_201_7_setups_commerce_solutions.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_risk.rb → inline_response_201_7_setups_risk.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_value_added_services.rb → inline_response_201_7_setups_value_added_services.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_8.rb +26 -6
- data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information.rb → inline_response_201_8_key_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information_error_information.rb → inline_response_201_8_key_information_error_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information_error_information_details.rb → inline_response_201_8_key_information_error_information_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_9.rb +107 -90
- data/lib/cybersource_rest_client/models/inline_response_202__links.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_10.rb +58 -36
- data/lib/cybersource_rest_client/models/{inline_response_400_8_fields.rb → inline_response_400_10_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_11.rb +35 -42
- data/lib/cybersource_rest_client/models/{inline_response_400_9_details.rb → inline_response_400_11_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_12.rb +27 -26
- data/lib/cybersource_rest_client/models/inline_response_400_12_details.rb +18 -7
- data/lib/cybersource_rest_client/models/inline_response_400_13.rb +38 -77
- data/lib/cybersource_rest_client/models/inline_response_400_14.rb +235 -0
- data/lib/cybersource_rest_client/models/{inline_response_400_10_details.rb → inline_response_400_14_details.rb} +8 -19
- data/lib/cybersource_rest_client/models/inline_response_400_15.rb +281 -0
- data/lib/cybersource_rest_client/models/inline_response_400_16.rb +235 -0
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +42 -13
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +47 -13
- data/lib/cybersource_rest_client/models/inline_response_400_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_6.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_7.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_8.rb +37 -60
- data/lib/cybersource_rest_client/models/inline_response_400_9.rb +6 -6
- data/lib/cybersource_rest_client/models/inline_response_401.rb +51 -33
- data/lib/cybersource_rest_client/models/inline_response_401_1.rb +44 -56
- data/lib/cybersource_rest_client/models/inline_response_401_2.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_401_3.rb +253 -0
- data/lib/cybersource_rest_client/models/inline_response_401_3__links.rb +189 -0
- data/lib/cybersource_rest_client/models/{inline_response_401_1__links_self.rb → inline_response_401_3__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_401_1_fields.rb → inline_response_401_3_fields.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_502_2.rb +55 -26
- data/lib/cybersource_rest_client/models/inline_response_502_3.rb +21 -15
- data/lib/cybersource_rest_client/models/inline_response_502_4.rb +223 -0
- data/lib/cybersource_rest_client/models/inline_response_502_5.rb +251 -0
- data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoice_information.rb +2 -2
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_cancel200_response.rb +17 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +20 -3
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +17 -5
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_send200_response.rb +17 -5
- data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -1
- data/lib/cybersource_rest_client/models/invoicingv2invoices_invoice_information.rb +20 -3
- data/lib/cybersource_rest_client/models/invoicingv2invoicesid_invoice_information.rb +20 -3
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +26 -9
- data/lib/cybersource_rest_client/models/iplv2paymentlinks_purchase_information.rb +85 -5
- data/lib/cybersource_rest_client/models/iplv2paymentlinksid_purchase_information.rb +85 -5
- data/lib/cybersource_rest_client/models/key_request.rb +239 -0
- data/lib/cybersource_rest_client/models/key_request_1.rb +245 -0
- data/lib/cybersource_rest_client/models/key_update.rb +224 -0
- data/lib/cybersource_rest_client/models/key_update_1.rb +235 -0
- data/lib/cybersource_rest_client/models/label_request.rb +268 -0
- data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +245 -0
- data/lib/cybersource_rest_client/models/list_agent_keys_response200_pagination.rb +276 -0
- data/lib/cybersource_rest_client/models/list_merchant_keys_response200.rb +262 -0
- data/lib/cybersource_rest_client/models/merchant_defined_field_core_1.rb +315 -0
- data/lib/cybersource_rest_client/models/merchant_defined_field_definition_request_1.rb +315 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +395 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +324 -0
- data/lib/cybersource_rest_client/models/merchant_registration_validation_error_response422.rb +193 -0
- data/lib/cybersource_rest_client/models/merchant_registration_validation_error_response422_detail.rb +215 -0
- data/lib/cybersource_rest_client/models/merchant_request.rb +317 -0
- data/lib/cybersource_rest_client/models/merchant_update.rb +270 -0
- data/lib/cybersource_rest_client/models/patch_registration_body.rb +234 -0
- data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +17 -5
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +17 -5
- data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response_purchase_information.rb +81 -1
- data/lib/cybersource_rest_client/models/{tms_tokenized_card_delete_request.rb → post_tokenized_card_delete_request.rb} +1 -1
- data/lib/cybersource_rest_client/models/processing_info_authorization_options.rb +14 -1
- data/lib/cybersource_rest_client/models/product_feed_request.rb +230 -0
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +37 -3
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +11 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_card_verification.rb +214 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +0 -14
- data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_client_reference_information.rb +257 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_client_reference_information_partner.rb +213 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_order_information.rb +189 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_order_information_amount_details.rb +299 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_processing_information.rb +240 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_processing_information_routing.rb +205 -0
- data/lib/cybersource_rest_client/models/ptsv2payoutstransactionqueryid_client_reference_information.rb +247 -0
- data/lib/cybersource_rest_client/models/{boardingv1registrations_integration_information_tenant_information.rb → tenant_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +12 -1
- data/lib/cybersource_rest_client/models/ucp_checkout_session_response_buyer.rb +202 -0
- data/lib/cybersource_rest_client/models/ucp_complete_checkout_request.rb +201 -0
- data/lib/cybersource_rest_client/models/ucp_create_checkout_session_buyer.rb +202 -0
- data/lib/cybersource_rest_client/models/ucp_create_checkout_session_request.rb +249 -0
- data/lib/cybersource_rest_client/models/ucp_update_checkout_session_buyer.rb +202 -0
- data/lib/cybersource_rest_client/models/ucp_update_checkout_session_request.rb +255 -0
- data/lib/cybersource_rest_client/models/unified_risk_labels_post400_response.rb +230 -0
- data/lib/cybersource_rest_client/models/unified_risk_labels_post400_response_errors.rb +223 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels.rb +230 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_authentication_outcome.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_payment_authorization_decision.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_return.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_transaction_decision.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_labels_transaction_outcome.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +196 -0
- data/lib/cybersource_rest_client/models/update_payment_link_request.rb +17 -5
- data/lib/cybersource_rest_client.rb +2172 -2011
- metadata +194 -33
|
@@ -12,22 +12,18 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
-
class
|
|
16
|
-
# This is the flattened JSON object field name/path that is either missing or invalid.
|
|
15
|
+
class InlineResponse40014Details
|
|
16
|
+
# This is the flattened JSON object field name/path that is either missing or invalid.
|
|
17
17
|
attr_accessor :field
|
|
18
18
|
|
|
19
|
-
# Possible reasons for the error.
|
|
19
|
+
# Possible reasons for the error. Possible values: - `MISSING_FIELD` - `INVALID_DATA`
|
|
20
20
|
attr_accessor :reason
|
|
21
21
|
|
|
22
|
-
# An optional short string which identifies the exact field error.
|
|
23
|
-
attr_accessor :code
|
|
24
|
-
|
|
25
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
23
|
def self.attribute_map
|
|
27
24
|
{
|
|
28
25
|
:'field' => :'field',
|
|
29
|
-
:'reason' => :'reason'
|
|
30
|
-
:'code' => :'code'
|
|
26
|
+
:'reason' => :'reason'
|
|
31
27
|
}
|
|
32
28
|
end
|
|
33
29
|
|
|
@@ -35,8 +31,7 @@ module CyberSource
|
|
|
35
31
|
def self.json_map
|
|
36
32
|
{
|
|
37
33
|
:'field' => :'field',
|
|
38
|
-
:'reason' => :'reason'
|
|
39
|
-
:'code' => :'code'
|
|
34
|
+
:'reason' => :'reason'
|
|
40
35
|
}
|
|
41
36
|
end
|
|
42
37
|
|
|
@@ -44,8 +39,7 @@ module CyberSource
|
|
|
44
39
|
def self.swagger_types
|
|
45
40
|
{
|
|
46
41
|
:'field' => :'String',
|
|
47
|
-
:'reason' => :'String'
|
|
48
|
-
:'code' => :'String'
|
|
42
|
+
:'reason' => :'String'
|
|
49
43
|
}
|
|
50
44
|
end
|
|
51
45
|
|
|
@@ -64,10 +58,6 @@ module CyberSource
|
|
|
64
58
|
if attributes.has_key?(:'reason')
|
|
65
59
|
self.reason = attributes[:'reason']
|
|
66
60
|
end
|
|
67
|
-
|
|
68
|
-
if attributes.has_key?(:'code')
|
|
69
|
-
self.code = attributes[:'code']
|
|
70
|
-
end
|
|
71
61
|
end
|
|
72
62
|
|
|
73
63
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -89,8 +79,7 @@ module CyberSource
|
|
|
89
79
|
return true if self.equal?(o)
|
|
90
80
|
self.class == o.class &&
|
|
91
81
|
field == o.field &&
|
|
92
|
-
reason == o.reason
|
|
93
|
-
code == o.code
|
|
82
|
+
reason == o.reason
|
|
94
83
|
end
|
|
95
84
|
|
|
96
85
|
# @see the `==` method
|
|
@@ -102,7 +91,7 @@ module CyberSource
|
|
|
102
91
|
# Calculates hash code according to all attributes.
|
|
103
92
|
# @return [Fixnum] Hash code
|
|
104
93
|
def hash
|
|
105
|
-
[field, reason
|
|
94
|
+
[field, reason].hash
|
|
106
95
|
end
|
|
107
96
|
|
|
108
97
|
# Builds the object from hash
|
|
@@ -0,0 +1,281 @@
|
|
|
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 InlineResponse40015
|
|
16
|
+
# Request ID generated by Cybersource. This was sent in the header on the request. Echo value from x-requestid
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2023-05-17T22:47:57Z` equals May 17, 2023, at 22:47:57 (10:47:57 PM). The `T` separates the date and the time. The `Z` indicates UTC.
|
|
20
|
+
attr_accessor :submit_time_utc
|
|
21
|
+
|
|
22
|
+
# Message describing the status of the currency conversion request. Possible values: - INVALID_REQUEST
|
|
23
|
+
attr_accessor :status
|
|
24
|
+
|
|
25
|
+
# The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA
|
|
26
|
+
attr_accessor :reason
|
|
27
|
+
|
|
28
|
+
# Descriptive message to add more detail to the status
|
|
29
|
+
attr_accessor :message
|
|
30
|
+
|
|
31
|
+
attr_accessor :details
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'id' => :'id',
|
|
37
|
+
:'submit_time_utc' => :'submitTimeUtc',
|
|
38
|
+
:'status' => :'status',
|
|
39
|
+
:'reason' => :'reason',
|
|
40
|
+
:'message' => :'message',
|
|
41
|
+
:'details' => :'details'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
46
|
+
def self.json_map
|
|
47
|
+
{
|
|
48
|
+
:'id' => :'id',
|
|
49
|
+
:'submit_time_utc' => :'submit_time_utc',
|
|
50
|
+
:'status' => :'status',
|
|
51
|
+
:'reason' => :'reason',
|
|
52
|
+
:'message' => :'message',
|
|
53
|
+
:'details' => :'details'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Attribute type mapping.
|
|
58
|
+
def self.swagger_types
|
|
59
|
+
{
|
|
60
|
+
:'id' => :'String',
|
|
61
|
+
:'submit_time_utc' => :'String',
|
|
62
|
+
:'status' => :'String',
|
|
63
|
+
:'reason' => :'String',
|
|
64
|
+
:'message' => :'String',
|
|
65
|
+
:'details' => :'Array<PushFunds400ResponseDetails>'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Initializes the object
|
|
70
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
71
|
+
def initialize(attributes = {})
|
|
72
|
+
return unless attributes.is_a?(Hash)
|
|
73
|
+
|
|
74
|
+
# convert string to symbol for hash key
|
|
75
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
76
|
+
|
|
77
|
+
if attributes.has_key?(:'id')
|
|
78
|
+
self.id = attributes[:'id']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'submitTimeUtc')
|
|
82
|
+
self.submit_time_utc = attributes[:'submitTimeUtc']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.has_key?(:'status')
|
|
86
|
+
self.status = attributes[:'status']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.has_key?(:'reason')
|
|
90
|
+
self.reason = attributes[:'reason']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.has_key?(:'message')
|
|
94
|
+
self.message = attributes[:'message']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.has_key?(:'details')
|
|
98
|
+
if (value = attributes[:'details']).is_a?(Array)
|
|
99
|
+
self.details = value
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
105
|
+
# @return Array for valid properties with the reasons
|
|
106
|
+
def list_invalid_properties
|
|
107
|
+
invalid_properties = Array.new
|
|
108
|
+
if @id.nil?
|
|
109
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if @submit_time_utc.nil?
|
|
113
|
+
invalid_properties.push('invalid value for "submit_time_utc", submit_time_utc cannot be nil.')
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if @status.nil?
|
|
117
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
invalid_properties
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Check to see if the all the properties in the model are valid
|
|
124
|
+
# @return true if the model is valid
|
|
125
|
+
def valid?
|
|
126
|
+
return false if @id.nil?
|
|
127
|
+
return false if @submit_time_utc.nil?
|
|
128
|
+
return false if @status.nil?
|
|
129
|
+
true
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Custom attribute writer method with validation
|
|
133
|
+
# @param [Object] id Value to be assigned
|
|
134
|
+
def id=(id)
|
|
135
|
+
#if id.nil?
|
|
136
|
+
#fail ArgumentError, 'id cannot be nil'
|
|
137
|
+
#end
|
|
138
|
+
|
|
139
|
+
@id = id
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Custom attribute writer method with validation
|
|
143
|
+
# @param [Object] submit_time_utc Value to be assigned
|
|
144
|
+
def submit_time_utc=(submit_time_utc)
|
|
145
|
+
#if submit_time_utc.nil?
|
|
146
|
+
#fail ArgumentError, 'submit_time_utc cannot be nil'
|
|
147
|
+
#end
|
|
148
|
+
|
|
149
|
+
@submit_time_utc = submit_time_utc
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Checks equality by comparing each attribute.
|
|
153
|
+
# @param [Object] Object to be compared
|
|
154
|
+
def ==(o)
|
|
155
|
+
return true if self.equal?(o)
|
|
156
|
+
self.class == o.class &&
|
|
157
|
+
id == o.id &&
|
|
158
|
+
submit_time_utc == o.submit_time_utc &&
|
|
159
|
+
status == o.status &&
|
|
160
|
+
reason == o.reason &&
|
|
161
|
+
message == o.message &&
|
|
162
|
+
details == o.details
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# @see the `==` method
|
|
166
|
+
# @param [Object] Object to be compared
|
|
167
|
+
def eql?(o)
|
|
168
|
+
self == o
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Calculates hash code according to all attributes.
|
|
172
|
+
# @return [Fixnum] Hash code
|
|
173
|
+
def hash
|
|
174
|
+
[id, submit_time_utc, status, reason, message, details].hash
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Builds the object from hash
|
|
178
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
179
|
+
# @return [Object] Returns the model itself
|
|
180
|
+
def build_from_hash(attributes)
|
|
181
|
+
return nil unless attributes.is_a?(Hash)
|
|
182
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
183
|
+
if type =~ /\AArray<(.*)>/i
|
|
184
|
+
# check to ensure the input is an array given that the the attribute
|
|
185
|
+
# is documented as an array but the input is not
|
|
186
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
187
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
188
|
+
end
|
|
189
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
190
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
191
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
self
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
# Deserializes the data based on type
|
|
198
|
+
# @param string type Data type
|
|
199
|
+
# @param string value Value to be deserialized
|
|
200
|
+
# @return [Object] Deserialized data
|
|
201
|
+
def _deserialize(type, value)
|
|
202
|
+
case type.to_sym
|
|
203
|
+
when :DateTime
|
|
204
|
+
DateTime.parse(value)
|
|
205
|
+
when :Date
|
|
206
|
+
Date.parse(value)
|
|
207
|
+
when :String
|
|
208
|
+
value.to_s
|
|
209
|
+
when :Integer
|
|
210
|
+
value.to_i
|
|
211
|
+
when :Float
|
|
212
|
+
value.to_f
|
|
213
|
+
when :BOOLEAN
|
|
214
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
215
|
+
true
|
|
216
|
+
else
|
|
217
|
+
false
|
|
218
|
+
end
|
|
219
|
+
when :Object
|
|
220
|
+
# generic object (usually a Hash), return directly
|
|
221
|
+
value
|
|
222
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
223
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
224
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
225
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
226
|
+
k_type = Regexp.last_match[:k_type]
|
|
227
|
+
v_type = Regexp.last_match[:v_type]
|
|
228
|
+
{}.tap do |hash|
|
|
229
|
+
value.each do |k, v|
|
|
230
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
else # model
|
|
234
|
+
temp_model = CyberSource.const_get(type).new
|
|
235
|
+
temp_model.build_from_hash(value)
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Returns the string representation of the object
|
|
240
|
+
# @return [String] String presentation of the object
|
|
241
|
+
def to_s
|
|
242
|
+
to_hash.to_s
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
246
|
+
# @return [Hash] Returns the object in the form of hash
|
|
247
|
+
def to_body
|
|
248
|
+
to_hash
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Returns the object in the form of hash
|
|
252
|
+
# @return [Hash] Returns the object in the form of hash
|
|
253
|
+
def to_hash
|
|
254
|
+
hash = {}
|
|
255
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
256
|
+
value = self.send(attr)
|
|
257
|
+
next if value.nil?
|
|
258
|
+
hash[param] = _to_hash(value)
|
|
259
|
+
end
|
|
260
|
+
hash
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
# Outputs non-array value in the form of hash
|
|
264
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
265
|
+
# @param [Object] value Any valid value
|
|
266
|
+
# @return [Hash] Returns the value in the form of hash
|
|
267
|
+
def _to_hash(value)
|
|
268
|
+
if value.is_a?(Array)
|
|
269
|
+
value.compact.map { |v| _to_hash(v) }
|
|
270
|
+
elsif value.is_a?(Hash)
|
|
271
|
+
{}.tap do |hash|
|
|
272
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
273
|
+
end
|
|
274
|
+
elsif value.respond_to? :to_hash
|
|
275
|
+
value.to_hash
|
|
276
|
+
else
|
|
277
|
+
value
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
end
|
|
@@ -0,0 +1,235 @@
|
|
|
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
|
+
# Standard error response returned for all 4xx and 5xx status codes.
|
|
16
|
+
class InlineResponse40016
|
|
17
|
+
# Machine-readable error code (e.g. `BAD_REQUEST`, `NOT_FOUND`, `INTERNAL_ERROR`).
|
|
18
|
+
attr_accessor :error
|
|
19
|
+
|
|
20
|
+
# Human-readable description of what went wrong and how to fix it.
|
|
21
|
+
attr_accessor :message
|
|
22
|
+
|
|
23
|
+
# HTTP status code.
|
|
24
|
+
attr_accessor :status
|
|
25
|
+
|
|
26
|
+
# ISO 8601 timestamp when the error occurred.
|
|
27
|
+
attr_accessor :timestamp
|
|
28
|
+
|
|
29
|
+
# The request path that produced this error.
|
|
30
|
+
attr_accessor :path
|
|
31
|
+
|
|
32
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
|
+
def self.attribute_map
|
|
34
|
+
{
|
|
35
|
+
:'error' => :'error',
|
|
36
|
+
:'message' => :'message',
|
|
37
|
+
:'status' => :'status',
|
|
38
|
+
:'timestamp' => :'timestamp',
|
|
39
|
+
:'path' => :'path'
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
44
|
+
def self.json_map
|
|
45
|
+
{
|
|
46
|
+
:'error' => :'error',
|
|
47
|
+
:'message' => :'message',
|
|
48
|
+
:'status' => :'status',
|
|
49
|
+
:'timestamp' => :'timestamp',
|
|
50
|
+
:'path' => :'path'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute type mapping.
|
|
55
|
+
def self.swagger_types
|
|
56
|
+
{
|
|
57
|
+
:'error' => :'String',
|
|
58
|
+
:'message' => :'String',
|
|
59
|
+
:'status' => :'Integer',
|
|
60
|
+
:'timestamp' => :'DateTime',
|
|
61
|
+
:'path' => :'String'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Initializes the object
|
|
66
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
67
|
+
def initialize(attributes = {})
|
|
68
|
+
return unless attributes.is_a?(Hash)
|
|
69
|
+
|
|
70
|
+
# convert string to symbol for hash key
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
72
|
+
|
|
73
|
+
if attributes.has_key?(:'error')
|
|
74
|
+
self.error = attributes[:'error']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.has_key?(:'message')
|
|
78
|
+
self.message = attributes[:'message']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'status')
|
|
82
|
+
self.status = attributes[:'status']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.has_key?(:'timestamp')
|
|
86
|
+
self.timestamp = attributes[:'timestamp']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.has_key?(:'path')
|
|
90
|
+
self.path = attributes[:'path']
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
96
|
+
def list_invalid_properties
|
|
97
|
+
invalid_properties = Array.new
|
|
98
|
+
invalid_properties
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Check to see if the all the properties in the model are valid
|
|
102
|
+
# @return true if the model is valid
|
|
103
|
+
def valid?
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Checks equality by comparing each attribute.
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
error == o.error &&
|
|
113
|
+
message == o.message &&
|
|
114
|
+
status == o.status &&
|
|
115
|
+
timestamp == o.timestamp &&
|
|
116
|
+
path == o.path
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# @see the `==` method
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def eql?(o)
|
|
122
|
+
self == o
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Calculates hash code according to all attributes.
|
|
126
|
+
# @return [Fixnum] Hash code
|
|
127
|
+
def hash
|
|
128
|
+
[error, message, status, timestamp, path].hash
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Builds the object from hash
|
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
133
|
+
# @return [Object] Returns the model itself
|
|
134
|
+
def build_from_hash(attributes)
|
|
135
|
+
return nil unless attributes.is_a?(Hash)
|
|
136
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
137
|
+
if type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
141
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
144
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
145
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
self
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Deserializes the data based on type
|
|
152
|
+
# @param string type Data type
|
|
153
|
+
# @param string value Value to be deserialized
|
|
154
|
+
# @return [Object] Deserialized data
|
|
155
|
+
def _deserialize(type, value)
|
|
156
|
+
case type.to_sym
|
|
157
|
+
when :DateTime
|
|
158
|
+
DateTime.parse(value)
|
|
159
|
+
when :Date
|
|
160
|
+
Date.parse(value)
|
|
161
|
+
when :String
|
|
162
|
+
value.to_s
|
|
163
|
+
when :Integer
|
|
164
|
+
value.to_i
|
|
165
|
+
when :Float
|
|
166
|
+
value.to_f
|
|
167
|
+
when :BOOLEAN
|
|
168
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
169
|
+
true
|
|
170
|
+
else
|
|
171
|
+
false
|
|
172
|
+
end
|
|
173
|
+
when :Object
|
|
174
|
+
# generic object (usually a Hash), return directly
|
|
175
|
+
value
|
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
179
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
|
182
|
+
{}.tap do |hash|
|
|
183
|
+
value.each do |k, v|
|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
else # model
|
|
188
|
+
temp_model = CyberSource.const_get(type).new
|
|
189
|
+
temp_model.build_from_hash(value)
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# Returns the string representation of the object
|
|
194
|
+
# @return [String] String presentation of the object
|
|
195
|
+
def to_s
|
|
196
|
+
to_hash.to_s
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
200
|
+
# @return [Hash] Returns the object in the form of hash
|
|
201
|
+
def to_body
|
|
202
|
+
to_hash
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Returns the object in the form of hash
|
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
|
207
|
+
def to_hash
|
|
208
|
+
hash = {}
|
|
209
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
210
|
+
value = self.send(attr)
|
|
211
|
+
next if value.nil?
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Outputs non-array value in the form of hash
|
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
219
|
+
# @param [Object] value Any valid value
|
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
|
221
|
+
def _to_hash(value)
|
|
222
|
+
if value.is_a?(Array)
|
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
|
224
|
+
elsif value.is_a?(Hash)
|
|
225
|
+
{}.tap do |hash|
|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
227
|
+
end
|
|
228
|
+
elsif value.respond_to? :to_hash
|
|
229
|
+
value.to_hash
|
|
230
|
+
else
|
|
231
|
+
value
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
end
|
|
@@ -13,16 +13,19 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
class InlineResponse4003
|
|
16
|
-
#
|
|
17
|
-
attr_accessor :
|
|
16
|
+
# A unique identification number to identify the submitted request. It is also appended to the endpoint of the resource.
|
|
17
|
+
attr_accessor :id
|
|
18
18
|
|
|
19
|
-
#
|
|
19
|
+
# Time of request in UTC. Format: `YYYY-MM-DD'T'HH:mm:ssZ` Example: `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
|
|
20
|
+
attr_accessor :submit_time_stamp_utc
|
|
21
|
+
|
|
22
|
+
# Possible values: - INVALID_REQUEST
|
|
20
23
|
attr_accessor :status
|
|
21
24
|
|
|
22
|
-
# The reason of the status. Possible values:
|
|
25
|
+
# The reason of the status. Possible values: - INVALID_DATA - MISSING_FIELD
|
|
23
26
|
attr_accessor :reason
|
|
24
27
|
|
|
25
|
-
# The detail message related to the status and reason listed above.
|
|
28
|
+
# The detail message related to the status and reason listed above.
|
|
26
29
|
attr_accessor :message
|
|
27
30
|
|
|
28
31
|
attr_accessor :details
|
|
@@ -30,7 +33,8 @@ module CyberSource
|
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
|
-
:'
|
|
36
|
+
:'id' => :'id',
|
|
37
|
+
:'submit_time_stamp_utc' => :'submitTimeStampUtc',
|
|
34
38
|
:'status' => :'status',
|
|
35
39
|
:'reason' => :'reason',
|
|
36
40
|
:'message' => :'message',
|
|
@@ -41,7 +45,8 @@ module CyberSource
|
|
|
41
45
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
42
46
|
def self.json_map
|
|
43
47
|
{
|
|
44
|
-
:'
|
|
48
|
+
:'id' => :'id',
|
|
49
|
+
:'submit_time_stamp_utc' => :'submit_time_stamp_utc',
|
|
45
50
|
:'status' => :'status',
|
|
46
51
|
:'reason' => :'reason',
|
|
47
52
|
:'message' => :'message',
|
|
@@ -52,11 +57,12 @@ module CyberSource
|
|
|
52
57
|
# Attribute type mapping.
|
|
53
58
|
def self.swagger_types
|
|
54
59
|
{
|
|
55
|
-
:'
|
|
60
|
+
:'id' => :'String',
|
|
61
|
+
:'submit_time_stamp_utc' => :'String',
|
|
56
62
|
:'status' => :'String',
|
|
57
63
|
:'reason' => :'String',
|
|
58
64
|
:'message' => :'String',
|
|
59
|
-
:'details' => :'Array<
|
|
65
|
+
:'details' => :'Array<InlineResponse2014ErrorInformationDetails>'
|
|
60
66
|
}
|
|
61
67
|
end
|
|
62
68
|
|
|
@@ -68,8 +74,12 @@ module CyberSource
|
|
|
68
74
|
# convert string to symbol for hash key
|
|
69
75
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
70
76
|
|
|
71
|
-
if attributes.has_key?(:'
|
|
72
|
-
self.
|
|
77
|
+
if attributes.has_key?(:'id')
|
|
78
|
+
self.id = attributes[:'id']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'submitTimeStampUtc')
|
|
82
|
+
self.submit_time_stamp_utc = attributes[:'submitTimeStampUtc']
|
|
73
83
|
end
|
|
74
84
|
|
|
75
85
|
if attributes.has_key?(:'status')
|
|
@@ -104,12 +114,31 @@ module CyberSource
|
|
|
104
114
|
true
|
|
105
115
|
end
|
|
106
116
|
|
|
117
|
+
# Custom attribute writer method with validation
|
|
118
|
+
# @param [Object] id Value to be assigned
|
|
119
|
+
def id=(id)
|
|
120
|
+
@id = id
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Custom attribute writer method with validation
|
|
124
|
+
# @param [Object] submit_time_stamp_utc Value to be assigned
|
|
125
|
+
def submit_time_stamp_utc=(submit_time_stamp_utc)
|
|
126
|
+
@submit_time_stamp_utc = submit_time_stamp_utc
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Custom attribute writer method with validation
|
|
130
|
+
# @param [Object] message Value to be assigned
|
|
131
|
+
def message=(message)
|
|
132
|
+
@message = message
|
|
133
|
+
end
|
|
134
|
+
|
|
107
135
|
# Checks equality by comparing each attribute.
|
|
108
136
|
# @param [Object] Object to be compared
|
|
109
137
|
def ==(o)
|
|
110
138
|
return true if self.equal?(o)
|
|
111
139
|
self.class == o.class &&
|
|
112
|
-
|
|
140
|
+
id == o.id &&
|
|
141
|
+
submit_time_stamp_utc == o.submit_time_stamp_utc &&
|
|
113
142
|
status == o.status &&
|
|
114
143
|
reason == o.reason &&
|
|
115
144
|
message == o.message &&
|
|
@@ -125,7 +154,7 @@ module CyberSource
|
|
|
125
154
|
# Calculates hash code according to all attributes.
|
|
126
155
|
# @return [Fixnum] Hash code
|
|
127
156
|
def hash
|
|
128
|
-
[
|
|
157
|
+
[id, submit_time_stamp_utc, status, reason, message, details].hash
|
|
129
158
|
end
|
|
130
159
|
|
|
131
160
|
# Builds the object from hash
|