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
|
@@ -0,0 +1,315 @@
|
|
|
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 MerchantDefinedFieldDefinitionRequest1
|
|
16
|
+
# Possible values: - text - select
|
|
17
|
+
attr_accessor :field_type
|
|
18
|
+
|
|
19
|
+
attr_accessor :label
|
|
20
|
+
|
|
21
|
+
attr_accessor :customer_visible
|
|
22
|
+
|
|
23
|
+
# Should be used only if fieldType = \"text\"
|
|
24
|
+
attr_accessor :text_min_length
|
|
25
|
+
|
|
26
|
+
# Should be used only if fieldType = \"text\"
|
|
27
|
+
attr_accessor :text_max_length
|
|
28
|
+
|
|
29
|
+
# Should be used only if fieldType = \"text\"
|
|
30
|
+
attr_accessor :text_default_value
|
|
31
|
+
|
|
32
|
+
# Should be mandatory and used only if fieldType = \"select\"
|
|
33
|
+
attr_accessor :possible_values
|
|
34
|
+
|
|
35
|
+
attr_accessor :read_only
|
|
36
|
+
|
|
37
|
+
attr_accessor :merchant_defined_data_index
|
|
38
|
+
|
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
40
|
+
def self.attribute_map
|
|
41
|
+
{
|
|
42
|
+
:'field_type' => :'fieldType',
|
|
43
|
+
:'label' => :'label',
|
|
44
|
+
:'customer_visible' => :'customerVisible',
|
|
45
|
+
:'text_min_length' => :'textMinLength',
|
|
46
|
+
:'text_max_length' => :'textMaxLength',
|
|
47
|
+
:'text_default_value' => :'textDefaultValue',
|
|
48
|
+
:'possible_values' => :'possibleValues',
|
|
49
|
+
:'read_only' => :'readOnly',
|
|
50
|
+
:'merchant_defined_data_index' => :'merchantDefinedDataIndex'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
55
|
+
def self.json_map
|
|
56
|
+
{
|
|
57
|
+
:'field_type' => :'field_type',
|
|
58
|
+
:'label' => :'label',
|
|
59
|
+
:'customer_visible' => :'customer_visible',
|
|
60
|
+
:'text_min_length' => :'text_min_length',
|
|
61
|
+
:'text_max_length' => :'text_max_length',
|
|
62
|
+
:'text_default_value' => :'text_default_value',
|
|
63
|
+
:'possible_values' => :'possible_values',
|
|
64
|
+
:'read_only' => :'read_only',
|
|
65
|
+
:'merchant_defined_data_index' => :'merchant_defined_data_index'
|
|
66
|
+
}
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Attribute type mapping.
|
|
70
|
+
def self.swagger_types
|
|
71
|
+
{
|
|
72
|
+
:'field_type' => :'String',
|
|
73
|
+
:'label' => :'String',
|
|
74
|
+
:'customer_visible' => :'BOOLEAN',
|
|
75
|
+
:'text_min_length' => :'Integer',
|
|
76
|
+
:'text_max_length' => :'Integer',
|
|
77
|
+
:'text_default_value' => :'String',
|
|
78
|
+
:'possible_values' => :'String',
|
|
79
|
+
:'read_only' => :'BOOLEAN',
|
|
80
|
+
:'merchant_defined_data_index' => :'Integer'
|
|
81
|
+
}
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Initializes the object
|
|
85
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
86
|
+
def initialize(attributes = {})
|
|
87
|
+
return unless attributes.is_a?(Hash)
|
|
88
|
+
|
|
89
|
+
# convert string to symbol for hash key
|
|
90
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
91
|
+
|
|
92
|
+
if attributes.has_key?(:'fieldType')
|
|
93
|
+
self.field_type = attributes[:'fieldType']
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
if attributes.has_key?(:'label')
|
|
97
|
+
self.label = attributes[:'label']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.has_key?(:'customerVisible')
|
|
101
|
+
self.customer_visible = attributes[:'customerVisible']
|
|
102
|
+
else
|
|
103
|
+
self.customer_visible = false
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.has_key?(:'textMinLength')
|
|
107
|
+
self.text_min_length = attributes[:'textMinLength']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.has_key?(:'textMaxLength')
|
|
111
|
+
self.text_max_length = attributes[:'textMaxLength']
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
if attributes.has_key?(:'textDefaultValue')
|
|
115
|
+
self.text_default_value = attributes[:'textDefaultValue']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.has_key?(:'possibleValues')
|
|
119
|
+
self.possible_values = attributes[:'possibleValues']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.has_key?(:'readOnly')
|
|
123
|
+
self.read_only = attributes[:'readOnly']
|
|
124
|
+
else
|
|
125
|
+
self.read_only = false
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.has_key?(:'merchantDefinedDataIndex')
|
|
129
|
+
self.merchant_defined_data_index = attributes[:'merchantDefinedDataIndex']
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
134
|
+
# @return Array for valid properties with the reasons
|
|
135
|
+
def list_invalid_properties
|
|
136
|
+
invalid_properties = Array.new
|
|
137
|
+
if @field_type.nil?
|
|
138
|
+
invalid_properties.push('invalid value for "field_type", field_type cannot be nil.')
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if @label.nil?
|
|
142
|
+
invalid_properties.push('invalid value for "label", label cannot be nil.')
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if @merchant_defined_data_index.nil?
|
|
146
|
+
invalid_properties.push('invalid value for "merchant_defined_data_index", merchant_defined_data_index cannot be nil.')
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
invalid_properties
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Check to see if the all the properties in the model are valid
|
|
153
|
+
# @return true if the model is valid
|
|
154
|
+
def valid?
|
|
155
|
+
return false if @field_type.nil?
|
|
156
|
+
return false if @label.nil?
|
|
157
|
+
return false if @merchant_defined_data_index.nil?
|
|
158
|
+
true
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Custom attribute writer method with validation
|
|
162
|
+
# @param [Object] label Value to be assigned
|
|
163
|
+
def label=(label)
|
|
164
|
+
#if label.nil?
|
|
165
|
+
#fail ArgumentError, 'label cannot be nil'
|
|
166
|
+
#end
|
|
167
|
+
|
|
168
|
+
@label = label
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
# Custom attribute writer method with validation
|
|
172
|
+
# @param [Object] text_default_value Value to be assigned
|
|
173
|
+
def text_default_value=(text_default_value)
|
|
174
|
+
@text_default_value = text_default_value
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Custom attribute writer method with validation
|
|
178
|
+
# @param [Object] possible_values Value to be assigned
|
|
179
|
+
def possible_values=(possible_values)
|
|
180
|
+
@possible_values = possible_values
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Checks equality by comparing each attribute.
|
|
184
|
+
# @param [Object] Object to be compared
|
|
185
|
+
def ==(o)
|
|
186
|
+
return true if self.equal?(o)
|
|
187
|
+
self.class == o.class &&
|
|
188
|
+
field_type == o.field_type &&
|
|
189
|
+
label == o.label &&
|
|
190
|
+
customer_visible == o.customer_visible &&
|
|
191
|
+
text_min_length == o.text_min_length &&
|
|
192
|
+
text_max_length == o.text_max_length &&
|
|
193
|
+
text_default_value == o.text_default_value &&
|
|
194
|
+
possible_values == o.possible_values &&
|
|
195
|
+
read_only == o.read_only &&
|
|
196
|
+
merchant_defined_data_index == o.merchant_defined_data_index
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# @see the `==` method
|
|
200
|
+
# @param [Object] Object to be compared
|
|
201
|
+
def eql?(o)
|
|
202
|
+
self == o
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Calculates hash code according to all attributes.
|
|
206
|
+
# @return [Fixnum] Hash code
|
|
207
|
+
def hash
|
|
208
|
+
[field_type, label, customer_visible, text_min_length, text_max_length, text_default_value, possible_values, read_only, merchant_defined_data_index].hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Builds the object from hash
|
|
212
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
213
|
+
# @return [Object] Returns the model itself
|
|
214
|
+
def build_from_hash(attributes)
|
|
215
|
+
return nil unless attributes.is_a?(Hash)
|
|
216
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
217
|
+
if type =~ /\AArray<(.*)>/i
|
|
218
|
+
# check to ensure the input is an array given that the the attribute
|
|
219
|
+
# is documented as an array but the input is not
|
|
220
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
221
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
222
|
+
end
|
|
223
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
224
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
225
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
self
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Deserializes the data based on type
|
|
232
|
+
# @param string type Data type
|
|
233
|
+
# @param string value Value to be deserialized
|
|
234
|
+
# @return [Object] Deserialized data
|
|
235
|
+
def _deserialize(type, value)
|
|
236
|
+
case type.to_sym
|
|
237
|
+
when :DateTime
|
|
238
|
+
DateTime.parse(value)
|
|
239
|
+
when :Date
|
|
240
|
+
Date.parse(value)
|
|
241
|
+
when :String
|
|
242
|
+
value.to_s
|
|
243
|
+
when :Integer
|
|
244
|
+
value.to_i
|
|
245
|
+
when :Float
|
|
246
|
+
value.to_f
|
|
247
|
+
when :BOOLEAN
|
|
248
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
249
|
+
true
|
|
250
|
+
else
|
|
251
|
+
false
|
|
252
|
+
end
|
|
253
|
+
when :Object
|
|
254
|
+
# generic object (usually a Hash), return directly
|
|
255
|
+
value
|
|
256
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
257
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
258
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
259
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
260
|
+
k_type = Regexp.last_match[:k_type]
|
|
261
|
+
v_type = Regexp.last_match[:v_type]
|
|
262
|
+
{}.tap do |hash|
|
|
263
|
+
value.each do |k, v|
|
|
264
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
265
|
+
end
|
|
266
|
+
end
|
|
267
|
+
else # model
|
|
268
|
+
temp_model = CyberSource.const_get(type).new
|
|
269
|
+
temp_model.build_from_hash(value)
|
|
270
|
+
end
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Returns the string representation of the object
|
|
274
|
+
# @return [String] String presentation of the object
|
|
275
|
+
def to_s
|
|
276
|
+
to_hash.to_s
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
280
|
+
# @return [Hash] Returns the object in the form of hash
|
|
281
|
+
def to_body
|
|
282
|
+
to_hash
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Returns the object in the form of hash
|
|
286
|
+
# @return [Hash] Returns the object in the form of hash
|
|
287
|
+
def to_hash
|
|
288
|
+
hash = {}
|
|
289
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
290
|
+
value = self.send(attr)
|
|
291
|
+
next if value.nil?
|
|
292
|
+
hash[param] = _to_hash(value)
|
|
293
|
+
end
|
|
294
|
+
hash
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
# Outputs non-array value in the form of hash
|
|
298
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
299
|
+
# @param [Object] value Any valid value
|
|
300
|
+
# @return [Hash] Returns the value in the form of hash
|
|
301
|
+
def _to_hash(value)
|
|
302
|
+
if value.is_a?(Array)
|
|
303
|
+
value.compact.map { |v| _to_hash(v) }
|
|
304
|
+
elsif value.is_a?(Hash)
|
|
305
|
+
{}.tap do |hash|
|
|
306
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
307
|
+
end
|
|
308
|
+
elsif value.respond_to? :to_hash
|
|
309
|
+
value.to_hash
|
|
310
|
+
else
|
|
311
|
+
value
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
end
|
|
@@ -0,0 +1,395 @@
|
|
|
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
|
+
# Response object for a registered merchant, including its associated encryption keys.
|
|
16
|
+
class MerchantRegistrationResponse201
|
|
17
|
+
# Unique merchant identifier (UUID)
|
|
18
|
+
attr_accessor :id
|
|
19
|
+
|
|
20
|
+
# Doing business as (DBA) name
|
|
21
|
+
attr_accessor :merchant_name
|
|
22
|
+
|
|
23
|
+
# Base merchant URL
|
|
24
|
+
attr_accessor :merchant_url
|
|
25
|
+
|
|
26
|
+
# Visa Merchant ID
|
|
27
|
+
attr_accessor :vmid
|
|
28
|
+
|
|
29
|
+
# Authentication cryptogram type Possible values: - TAVV - DAVV
|
|
30
|
+
attr_accessor :cryptogram_type
|
|
31
|
+
|
|
32
|
+
# Credential delivery format Possible values: - ENCRYPTED - UNENCRYPTED
|
|
33
|
+
attr_accessor :payment_payload_type
|
|
34
|
+
|
|
35
|
+
# Transaction processing type Possible values: - TAP - ACG - BOTH
|
|
36
|
+
attr_accessor :indicator
|
|
37
|
+
|
|
38
|
+
# Additional merchant metadata
|
|
39
|
+
attr_accessor :merchant_metadata
|
|
40
|
+
|
|
41
|
+
# List of acceptance network relationships
|
|
42
|
+
attr_accessor :acceptance_relationships
|
|
43
|
+
|
|
44
|
+
# List of protocol interaction configurations (ucp, acp, x402)
|
|
45
|
+
attr_accessor :protocol_interactions
|
|
46
|
+
|
|
47
|
+
attr_accessor :web_integrations
|
|
48
|
+
|
|
49
|
+
attr_accessor :api_integrations
|
|
50
|
+
|
|
51
|
+
# Whether the merchant is active
|
|
52
|
+
attr_accessor :is_active
|
|
53
|
+
|
|
54
|
+
# Creation timestamp
|
|
55
|
+
attr_accessor :created_at
|
|
56
|
+
|
|
57
|
+
# Last update timestamp
|
|
58
|
+
attr_accessor :updated_at
|
|
59
|
+
|
|
60
|
+
# List of encryption keys associated with the merchant
|
|
61
|
+
attr_accessor :keys
|
|
62
|
+
|
|
63
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
64
|
+
def self.attribute_map
|
|
65
|
+
{
|
|
66
|
+
:'id' => :'id',
|
|
67
|
+
:'merchant_name' => :'merchantName',
|
|
68
|
+
:'merchant_url' => :'merchantUrl',
|
|
69
|
+
:'vmid' => :'vmid',
|
|
70
|
+
:'cryptogram_type' => :'cryptogramType',
|
|
71
|
+
:'payment_payload_type' => :'paymentPayloadType',
|
|
72
|
+
:'indicator' => :'indicator',
|
|
73
|
+
:'merchant_metadata' => :'merchantMetadata',
|
|
74
|
+
:'acceptance_relationships' => :'acceptanceRelationships',
|
|
75
|
+
:'protocol_interactions' => :'protocolInteractions',
|
|
76
|
+
:'web_integrations' => :'webIntegrations',
|
|
77
|
+
:'api_integrations' => :'apiIntegrations',
|
|
78
|
+
:'is_active' => :'isActive',
|
|
79
|
+
:'created_at' => :'createdAt',
|
|
80
|
+
:'updated_at' => :'updatedAt',
|
|
81
|
+
:'keys' => :'keys'
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
86
|
+
def self.json_map
|
|
87
|
+
{
|
|
88
|
+
:'id' => :'id',
|
|
89
|
+
:'merchant_name' => :'merchant_name',
|
|
90
|
+
:'merchant_url' => :'merchant_url',
|
|
91
|
+
:'vmid' => :'vmid',
|
|
92
|
+
:'cryptogram_type' => :'cryptogram_type',
|
|
93
|
+
:'payment_payload_type' => :'payment_payload_type',
|
|
94
|
+
:'indicator' => :'indicator',
|
|
95
|
+
:'merchant_metadata' => :'merchant_metadata',
|
|
96
|
+
:'acceptance_relationships' => :'acceptance_relationships',
|
|
97
|
+
:'protocol_interactions' => :'protocol_interactions',
|
|
98
|
+
:'web_integrations' => :'web_integrations',
|
|
99
|
+
:'api_integrations' => :'api_integrations',
|
|
100
|
+
:'is_active' => :'is_active',
|
|
101
|
+
:'created_at' => :'created_at',
|
|
102
|
+
:'updated_at' => :'updated_at',
|
|
103
|
+
:'keys' => :'keys'
|
|
104
|
+
}
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Attribute type mapping.
|
|
108
|
+
def self.swagger_types
|
|
109
|
+
{
|
|
110
|
+
:'id' => :'String',
|
|
111
|
+
:'merchant_name' => :'String',
|
|
112
|
+
:'merchant_url' => :'String',
|
|
113
|
+
:'vmid' => :'String',
|
|
114
|
+
:'cryptogram_type' => :'String',
|
|
115
|
+
:'payment_payload_type' => :'String',
|
|
116
|
+
:'indicator' => :'String',
|
|
117
|
+
:'merchant_metadata' => :'Object',
|
|
118
|
+
:'acceptance_relationships' => :'Array<String>',
|
|
119
|
+
:'protocol_interactions' => :'Array<Iccv1merchantsProtocolInteractions>',
|
|
120
|
+
:'web_integrations' => :'Iccv1merchantsWebIntegrations',
|
|
121
|
+
:'api_integrations' => :'Iccv1merchantsApiIntegrations',
|
|
122
|
+
:'is_active' => :'BOOLEAN',
|
|
123
|
+
:'created_at' => :'DateTime',
|
|
124
|
+
:'updated_at' => :'DateTime',
|
|
125
|
+
:'keys' => :'Array<MerchantRegistrationResponse201Keys>'
|
|
126
|
+
}
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Initializes the object
|
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
+
def initialize(attributes = {})
|
|
132
|
+
return unless attributes.is_a?(Hash)
|
|
133
|
+
|
|
134
|
+
# convert string to symbol for hash key
|
|
135
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
136
|
+
|
|
137
|
+
if attributes.has_key?(:'id')
|
|
138
|
+
self.id = attributes[:'id']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
if attributes.has_key?(:'merchantName')
|
|
142
|
+
self.merchant_name = attributes[:'merchantName']
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
if attributes.has_key?(:'merchantUrl')
|
|
146
|
+
self.merchant_url = attributes[:'merchantUrl']
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.has_key?(:'vmid')
|
|
150
|
+
self.vmid = attributes[:'vmid']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.has_key?(:'cryptogramType')
|
|
154
|
+
self.cryptogram_type = attributes[:'cryptogramType']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.has_key?(:'paymentPayloadType')
|
|
158
|
+
self.payment_payload_type = attributes[:'paymentPayloadType']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.has_key?(:'indicator')
|
|
162
|
+
self.indicator = attributes[:'indicator']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.has_key?(:'merchantMetadata')
|
|
166
|
+
self.merchant_metadata = attributes[:'merchantMetadata']
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
if attributes.has_key?(:'acceptanceRelationships')
|
|
170
|
+
if (value = attributes[:'acceptanceRelationships']).is_a?(Array)
|
|
171
|
+
self.acceptance_relationships = value
|
|
172
|
+
end
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
if attributes.has_key?(:'protocolInteractions')
|
|
176
|
+
if (value = attributes[:'protocolInteractions']).is_a?(Array)
|
|
177
|
+
self.protocol_interactions = value
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
if attributes.has_key?(:'webIntegrations')
|
|
182
|
+
self.web_integrations = attributes[:'webIntegrations']
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
if attributes.has_key?(:'apiIntegrations')
|
|
186
|
+
self.api_integrations = attributes[:'apiIntegrations']
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
if attributes.has_key?(:'isActive')
|
|
190
|
+
self.is_active = attributes[:'isActive']
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
if attributes.has_key?(:'createdAt')
|
|
194
|
+
self.created_at = attributes[:'createdAt']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if attributes.has_key?(:'updatedAt')
|
|
198
|
+
self.updated_at = attributes[:'updatedAt']
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
if attributes.has_key?(:'keys')
|
|
202
|
+
if (value = attributes[:'keys']).is_a?(Array)
|
|
203
|
+
self.keys = value
|
|
204
|
+
end
|
|
205
|
+
end
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
209
|
+
# @return Array for valid properties with the reasons
|
|
210
|
+
def list_invalid_properties
|
|
211
|
+
invalid_properties = Array.new
|
|
212
|
+
if @id.nil?
|
|
213
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if @merchant_name.nil?
|
|
217
|
+
invalid_properties.push('invalid value for "merchant_name", merchant_name cannot be nil.')
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
if @merchant_url.nil?
|
|
221
|
+
invalid_properties.push('invalid value for "merchant_url", merchant_url cannot be nil.')
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if @indicator.nil?
|
|
225
|
+
invalid_properties.push('invalid value for "indicator", indicator cannot be nil.')
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if @is_active.nil?
|
|
229
|
+
invalid_properties.push('invalid value for "is_active", is_active cannot be nil.')
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if @created_at.nil?
|
|
233
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if @updated_at.nil?
|
|
237
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
invalid_properties
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
# Check to see if the all the properties in the model are valid
|
|
244
|
+
# @return true if the model is valid
|
|
245
|
+
def valid?
|
|
246
|
+
return false if @id.nil?
|
|
247
|
+
return false if @merchant_name.nil?
|
|
248
|
+
return false if @merchant_url.nil?
|
|
249
|
+
return false if @indicator.nil?
|
|
250
|
+
return false if @is_active.nil?
|
|
251
|
+
return false if @created_at.nil?
|
|
252
|
+
return false if @updated_at.nil?
|
|
253
|
+
true
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Checks equality by comparing each attribute.
|
|
257
|
+
# @param [Object] Object to be compared
|
|
258
|
+
def ==(o)
|
|
259
|
+
return true if self.equal?(o)
|
|
260
|
+
self.class == o.class &&
|
|
261
|
+
id == o.id &&
|
|
262
|
+
merchant_name == o.merchant_name &&
|
|
263
|
+
merchant_url == o.merchant_url &&
|
|
264
|
+
vmid == o.vmid &&
|
|
265
|
+
cryptogram_type == o.cryptogram_type &&
|
|
266
|
+
payment_payload_type == o.payment_payload_type &&
|
|
267
|
+
indicator == o.indicator &&
|
|
268
|
+
merchant_metadata == o.merchant_metadata &&
|
|
269
|
+
acceptance_relationships == o.acceptance_relationships &&
|
|
270
|
+
protocol_interactions == o.protocol_interactions &&
|
|
271
|
+
web_integrations == o.web_integrations &&
|
|
272
|
+
api_integrations == o.api_integrations &&
|
|
273
|
+
is_active == o.is_active &&
|
|
274
|
+
created_at == o.created_at &&
|
|
275
|
+
updated_at == o.updated_at &&
|
|
276
|
+
keys == o.keys
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# @see the `==` method
|
|
280
|
+
# @param [Object] Object to be compared
|
|
281
|
+
def eql?(o)
|
|
282
|
+
self == o
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
# Calculates hash code according to all attributes.
|
|
286
|
+
# @return [Fixnum] Hash code
|
|
287
|
+
def hash
|
|
288
|
+
[id, merchant_name, merchant_url, vmid, cryptogram_type, payment_payload_type, indicator, merchant_metadata, acceptance_relationships, protocol_interactions, web_integrations, api_integrations, is_active, created_at, updated_at, keys].hash
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Builds the object from hash
|
|
292
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
293
|
+
# @return [Object] Returns the model itself
|
|
294
|
+
def build_from_hash(attributes)
|
|
295
|
+
return nil unless attributes.is_a?(Hash)
|
|
296
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
297
|
+
if type =~ /\AArray<(.*)>/i
|
|
298
|
+
# check to ensure the input is an array given that the the attribute
|
|
299
|
+
# is documented as an array but the input is not
|
|
300
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
301
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
302
|
+
end
|
|
303
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
304
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
305
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
self
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Deserializes the data based on type
|
|
312
|
+
# @param string type Data type
|
|
313
|
+
# @param string value Value to be deserialized
|
|
314
|
+
# @return [Object] Deserialized data
|
|
315
|
+
def _deserialize(type, value)
|
|
316
|
+
case type.to_sym
|
|
317
|
+
when :DateTime
|
|
318
|
+
DateTime.parse(value)
|
|
319
|
+
when :Date
|
|
320
|
+
Date.parse(value)
|
|
321
|
+
when :String
|
|
322
|
+
value.to_s
|
|
323
|
+
when :Integer
|
|
324
|
+
value.to_i
|
|
325
|
+
when :Float
|
|
326
|
+
value.to_f
|
|
327
|
+
when :BOOLEAN
|
|
328
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
329
|
+
true
|
|
330
|
+
else
|
|
331
|
+
false
|
|
332
|
+
end
|
|
333
|
+
when :Object
|
|
334
|
+
# generic object (usually a Hash), return directly
|
|
335
|
+
value
|
|
336
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
337
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
338
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
339
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
340
|
+
k_type = Regexp.last_match[:k_type]
|
|
341
|
+
v_type = Regexp.last_match[:v_type]
|
|
342
|
+
{}.tap do |hash|
|
|
343
|
+
value.each do |k, v|
|
|
344
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
345
|
+
end
|
|
346
|
+
end
|
|
347
|
+
else # model
|
|
348
|
+
temp_model = CyberSource.const_get(type).new
|
|
349
|
+
temp_model.build_from_hash(value)
|
|
350
|
+
end
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# Returns the string representation of the object
|
|
354
|
+
# @return [String] String presentation of the object
|
|
355
|
+
def to_s
|
|
356
|
+
to_hash.to_s
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
360
|
+
# @return [Hash] Returns the object in the form of hash
|
|
361
|
+
def to_body
|
|
362
|
+
to_hash
|
|
363
|
+
end
|
|
364
|
+
|
|
365
|
+
# Returns the object in the form of hash
|
|
366
|
+
# @return [Hash] Returns the object in the form of hash
|
|
367
|
+
def to_hash
|
|
368
|
+
hash = {}
|
|
369
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
370
|
+
value = self.send(attr)
|
|
371
|
+
next if value.nil?
|
|
372
|
+
hash[param] = _to_hash(value)
|
|
373
|
+
end
|
|
374
|
+
hash
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
# Outputs non-array value in the form of hash
|
|
378
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
379
|
+
# @param [Object] value Any valid value
|
|
380
|
+
# @return [Hash] Returns the value in the form of hash
|
|
381
|
+
def _to_hash(value)
|
|
382
|
+
if value.is_a?(Array)
|
|
383
|
+
value.compact.map { |v| _to_hash(v) }
|
|
384
|
+
elsif value.is_a?(Hash)
|
|
385
|
+
{}.tap do |hash|
|
|
386
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
387
|
+
end
|
|
388
|
+
elsif value.respond_to? :to_hash
|
|
389
|
+
value.to_hash
|
|
390
|
+
else
|
|
391
|
+
value
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
end
|
|
395
|
+
end
|