cybersource_rest_client 0.0.86 → 0.0.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/util/CertificateUtility.rb +14 -6
- data/lib/cybersource_rest_client/api/acp_checkout_api.rb +553 -0
- data/lib/cybersource_rest_client/api/agent_registration_api.rb +721 -0
- data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +0 -1
- 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/enrollment_api.rb +104 -0
- data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +3 -3
- data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
- data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +3 -3
- data/lib/cybersource_rest_client/api/{merchant_capabilities_api.rb → merchant_registration_api.rb} +47 -391
- data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
- data/lib/cybersource_rest_client/api/payment_events_api.rb +197 -0
- data/lib/cybersource_rest_client/api/product_feed_api.rb +365 -0
- data/lib/cybersource_rest_client/api/purchase_intent_api.rb +278 -0
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +1 -1
- data/lib/cybersource_rest_client/api/transaction_query_api.rb +3 -3
- data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +453 -0
- data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +104 -0
- data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
- data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
- data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
- data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
- data/lib/cybersource_rest_client/models/agent_request.rb +9 -11
- data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
- data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_acquirer.rb +216 -0
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_merchant_descriptor.rb +205 -0
- data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
- data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
- data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
- data/lib/cybersource_rest_client/models/create_payment_request.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
- data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
- data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +4 -4
- data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
- data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
- data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
- data/lib/cybersource_rest_client/models/inline_response_200_17.rb +60 -5
- data/lib/cybersource_rest_client/models/inline_response_200_18.rb +45 -5
- data/lib/cybersource_rest_client/models/inline_response_200_19.rb +30 -107
- data/lib/cybersource_rest_client/models/inline_response_200_19_processing.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_200_19_syndication.rb +224 -0
- data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +80 -682
- data/lib/cybersource_rest_client/models/inline_response_200_4.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_10.rb +18 -93
- data/lib/cybersource_rest_client/models/inline_response_201_11.rb +103 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_12_client_reference_information.rb → inline_response_201_11_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_error_information.rb → inline_response_201_11_error_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information.rb → inline_response_201_11_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion.rb → inline_response_201_11_order_information_currency_conversion.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_12_order_information_currency_conversion_offer.rb → inline_response_201_11_order_information_currency_conversion_offer.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_12_processor_information.rb → inline_response_201_11_processor_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_12.rb +141 -80
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_address.rb → inline_response_201_12_fulfillment_address.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment_options.rb → inline_response_201_12_fulfillment_options.rb} +31 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_item.rb → inline_response_201_12_item.rb} +20 -20
- data/lib/cybersource_rest_client/models/inline_response_201_12_line_items.rb +256 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_13_links.rb → inline_response_201_12_links.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_messages.rb → inline_response_201_12_messages.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_payment_provider.rb → inline_response_201_12_payment_provider.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_13_totals.rb → inline_response_201_12_totals.rb} +16 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13.rb +61 -67
- data/lib/cybersource_rest_client/models/{inline_response_201_14_discounts.rb → inline_response_201_13_discounts.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_fulfillment.rb → inline_response_201_13_fulfillment.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +19 -19
- data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +20 -51
- data/lib/cybersource_rest_client/models/{inline_response_201_14_order.rb → inline_response_201_13_order.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_payment.rb → inline_response_201_13_payment.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp.rb → inline_response_201_13_ucp.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_14_ucp_capabilities.rb → inline_response_201_13_ucp_capabilities.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3.rb +82 -39
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information.rb → inline_response_201_3_error_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_5_error_information_details.rb → inline_response_201_3_error_information_details.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information.rb → inline_response_201_3_order_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/inline_response_201_3_order_information_amount_details.rb +315 -0
- data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information.rb +189 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information_routing.rb → inline_response_201_3_processing_information_routing.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_3_processor_information.rb +213 -0
- data/lib/cybersource_rest_client/models/inline_response_201_4.rb +41 -30
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links.rb → inline_response_201_4__links.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5__links_self.rb → inline_response_201_4__links_self.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_acquirer_information.rb → inline_response_201_4_acquirer_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_client_reference_information.rb → inline_response_201_4_client_reference_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_merchant_information.rb → inline_response_201_4_merchant_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +46 -97
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information.rb → inline_response_201_4_payment_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_5_payment_information_card.rb → inline_response_201_4_payment_information_card.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +59 -8
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information_payouts_options.rb → inline_response_201_4_processing_information_payouts_options.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +342 -7
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processor_information_card_verification.rb → inline_response_201_4_processor_information_card_verification.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_5_transactions.rb → inline_response_201_4_transactions.rb} +7 -7
- data/lib/cybersource_rest_client/models/inline_response_201_5.rb +35 -68
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information.rb → inline_response_201_5_payout_information.rb} +3 -3
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_pull_funds.rb → inline_response_201_5_payout_information_pull_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_6_payout_information_push_funds.rb → inline_response_201_5_payout_information_push_funds.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_6.rb +59 -26
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information.rb → inline_response_201_6_integration_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_integration_information_tenant_configurations.rb → inline_response_201_6_integration_information_tenant_configurations.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_organization_information.rb → inline_response_201_6_organization_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_product_information_setups.rb → inline_response_201_6_product_information_setups.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_7_registration_information.rb → inline_response_201_6_registration_information.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups.rb → inline_response_201_6_setups.rb} +4 -4
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_commerce_solutions.rb → inline_response_201_6_setups_commerce_solutions.rb} +1 -1
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_risk.rb → inline_response_201_6_setups_risk.rb} +16 -6
- data/lib/cybersource_rest_client/models/{inline_response_201_7_setups_value_added_services.rb → inline_response_201_6_setups_value_added_services.rb} +16 -6
- data/lib/cybersource_rest_client/models/inline_response_201_7.rb +19 -78
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information.rb → inline_response_201_7_key_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information.rb → inline_response_201_7_key_information_error_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_8_key_information_error_information_details.rb → inline_response_201_7_key_information_error_information_details.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_201_8.rb +117 -25
- data/lib/cybersource_rest_client/models/inline_response_201_9.rb +68 -105
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads.rb → inline_response_201_9_payloads.rb} +2 -2
- data/lib/cybersource_rest_client/models/{inline_response_201_10_payloads_test_payload.rb → inline_response_201_9_payloads_test_payload.rb} +1 -1
- data/lib/cybersource_rest_client/models/inline_response_202_1.rb +191 -0
- data/lib/cybersource_rest_client/models/inline_response_400_3.rb +1 -1
- data/lib/cybersource_rest_client/models/inline_response_400_4.rb +1 -1
- data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition.rb +11 -1
- data/lib/cybersource_rest_client/models/key_request.rb +4 -4
- data/lib/cybersource_rest_client/models/key_request_1.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update.rb +5 -5
- data/lib/cybersource_rest_client/models/key_update_1.rb +5 -5
- data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
- data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
- data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
- data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
- data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
- data/lib/cybersource_rest_client/models/merchant_update.rb +7 -7
- data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
- data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
- data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
- data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_order_information.rb +44 -1
- data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → pts_v2_payments_post201_response_1_order_information_merchant_descriptor.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_1_processor_information.rb +18 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +101 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
- data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
- data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer.rb +247 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results_risk_insights.rb → ptsv2payments_order_history.rb} +39 -36
- data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
- data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +16 -5
- data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +11 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_acquirer_information.rb +196 -0
- data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +1 -1
- data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +16 -5
- data/lib/cybersource_rest_client/models/{inline_response_201_14_line_items.rb → unified_risk_post201_response.rb} +28 -42
- data/lib/cybersource_rest_client/models/{inline_response_201_3_results.rb → unified_risk_post201_response_results.rb} +3 -3
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights.rb +291 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_client.rb +208 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_error.rb +202 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages.rb +190 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb +250 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb +219 -0
- data/lib/cybersource_rest_client/models/unified_risk_post201_response_transaction_insights_insights_warnings.rb +214 -0
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response.rb → unified_risk_post400_response.rb} +2 -2
- data/lib/cybersource_rest_client/models/{unified_risk_labels_post400_response_errors.rb → unified_risk_post400_response_errors.rb} +1 -1
- data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → unifiedrisk_account.rb} +10 -16
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer.rb +302 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant.rb → unifiedrisk_acquirer_merchant_account.rb} +42 -45
- data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication.rb +402 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authentication_challenge.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_authorization.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_browser.rb +420 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer.rb +403 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_customer_address.rb +279 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_processing_information.rb → unifiedrisk_customer_personal_identification.rb} +99 -42
- data/lib/cybersource_rest_client/models/unifiedrisk_device.rb +681 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_device_point_of_sale.rb +344 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_initiating_party.rb +223 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant.rb +326 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor.rb +389 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_hierarchy.rb +224 -0
- data/lib/cybersource_rest_client/models/{label_request.rb → unifiedrisk_merchant_merchant_descriptor_limit_value.rb} +62 -73
- data/lib/cybersource_rest_client/models/unifiedrisk_merchant_trading_address.rb +301 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_google_merchant_products.rb → unifiedrisk_order.rb} +58 -61
- data/lib/cybersource_rest_client/models/unifiedrisk_order_billing.rb +360 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_line_items.rb +262 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping.rb +464 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store.rb +251 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_address.rb +191 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_store_address.rb +235 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_partner.rb +214 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment.rb +423 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_approvals.rb +193 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account.rb +451 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_5_order_information_amount_details.rb → unifiedrisk_payment_bank_account_balance_before.rb} +49 -56
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_branch_address.rb +328 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_financial_institution.rb +212 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_batch.rb +323 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card.rb +461 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_par_details.rb +196 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_token_details.rb +380 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check.rb +289 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_check_deposit_location.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty.rb +287 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_branch_address.rb +279 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_sdk.rb +268 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_token.rb +213 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification.rb +230 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_additional.rb +256 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication.rb +232 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_pin.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_three_ds.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security.rb +199 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_avs.rb +218 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_cvv.rb +196 -0
- data/lib/cybersource_rest_client/models/{inline_response_200_19_errors.rb → unifiedrisk_payment_verification_digital.rb} +26 -27
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wallet.rb +201 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_payment_wire.rb +364 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment.rb +308 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history.rb +276 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_account_history.rb +207 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account.rb +273 -0
- data/lib/cybersource_rest_client/models/{inline_response_201_14.rb → unifiedrisk_risk_assessment_buyer_history_customer_account_alertnate_authentication.rb} +59 -114
- data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_vital4.rb +191 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_session.rb +202 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal.rb +238 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_address.rb +301 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_terminal_capabilities.rb +234 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk.rb +708 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk_raw_data.rb +189 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +305 -12
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +257 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details.rb +220 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_credits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_debits_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_credits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_debits.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details.rb +190 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details_deposited_cash_amount.rb +246 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_transaction_recurring_details.rb +341 -0
- data/lib/cybersource_rest_client/models/unifiedrisk_travel.rb +279 -0
- data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
- data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
- data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
- data/lib/cybersource_rest_client/models/vpri_request.rb +505 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data.rb +190 -0
- data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data_card_bin_data.rb +357 -0
- data/lib/cybersource_rest_client.rb +178 -72
- metadata +180 -74
- data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
- data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +0 -104
- data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +0 -548
- data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +0 -223
|
@@ -13,59 +13,90 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
class InlineResponse20112
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
# Request ID generated by Cybersource. This was sent in the header on the request. Echo value from x-requestid
|
|
16
|
+
# Unique identifier for this checkout session. Required for all subsequent calls (update, complete, cancel).
|
|
19
17
|
attr_accessor :id
|
|
20
18
|
|
|
21
|
-
#
|
|
22
|
-
attr_accessor :submit_time_utc
|
|
23
|
-
|
|
24
|
-
# Message describing the status of the currency conversion request. Possible values: - PENDING - DECLINED - SERVER_ERROR
|
|
19
|
+
# Current lifecycle state of the session per ACP spec: - `not_ready_for_payment` — session is open but not yet ready - `ready_for_payment` — session is ready to be completed - `completed` — order has been placed; session is immutable - `canceled` — session was abandoned; no charge was made Possible values: - not_ready_for_payment - ready_for_payment - completed - canceled
|
|
25
20
|
attr_accessor :status
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
# ISO 4217 lowercase currency code for this session.
|
|
23
|
+
attr_accessor :currency
|
|
24
|
+
|
|
25
|
+
# Line items with merchant-confirmed pricing.
|
|
26
|
+
attr_accessor :line_items
|
|
27
|
+
|
|
28
|
+
attr_accessor :fulfillment_address
|
|
29
|
+
|
|
30
|
+
# Available fulfillment methods with pricing.
|
|
31
|
+
attr_accessor :fulfillment_options
|
|
32
|
+
|
|
33
|
+
# ID of the currently selected fulfillment option.
|
|
34
|
+
attr_accessor :fulfillment_option_id
|
|
35
|
+
|
|
36
|
+
# Order cost breakdown as an array of typed total lines. All amounts in minor units (cents).
|
|
37
|
+
attr_accessor :totals
|
|
28
38
|
|
|
29
|
-
attr_accessor :
|
|
39
|
+
attr_accessor :buyer
|
|
30
40
|
|
|
31
|
-
attr_accessor :
|
|
41
|
+
attr_accessor :payment_provider
|
|
42
|
+
|
|
43
|
+
# Informational or error messages from the merchant backend.
|
|
44
|
+
attr_accessor :messages
|
|
45
|
+
|
|
46
|
+
# Related resource links from the merchant (e.g. terms of use, privacy policy, seller shop policies).
|
|
47
|
+
attr_accessor :links
|
|
32
48
|
|
|
33
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
50
|
def self.attribute_map
|
|
35
51
|
{
|
|
36
|
-
:'client_reference_information' => :'clientReferenceInformation',
|
|
37
52
|
:'id' => :'id',
|
|
38
|
-
:'submit_time_utc' => :'submitTimeUtc',
|
|
39
53
|
:'status' => :'status',
|
|
40
|
-
:'
|
|
41
|
-
:'
|
|
42
|
-
:'
|
|
54
|
+
:'currency' => :'currency',
|
|
55
|
+
:'line_items' => :'line_items',
|
|
56
|
+
:'fulfillment_address' => :'fulfillment_address',
|
|
57
|
+
:'fulfillment_options' => :'fulfillment_options',
|
|
58
|
+
:'fulfillment_option_id' => :'fulfillment_option_id',
|
|
59
|
+
:'totals' => :'totals',
|
|
60
|
+
:'buyer' => :'buyer',
|
|
61
|
+
:'payment_provider' => :'payment_provider',
|
|
62
|
+
:'messages' => :'messages',
|
|
63
|
+
:'links' => :'links'
|
|
43
64
|
}
|
|
44
65
|
end
|
|
45
66
|
|
|
46
67
|
# Attribute mapping from JSON key to ruby-style variable name.
|
|
47
68
|
def self.json_map
|
|
48
69
|
{
|
|
49
|
-
:'client_reference_information' => :'client_reference_information',
|
|
50
70
|
:'id' => :'id',
|
|
51
|
-
:'submit_time_utc' => :'submit_time_utc',
|
|
52
71
|
:'status' => :'status',
|
|
53
|
-
:'
|
|
54
|
-
:'
|
|
55
|
-
:'
|
|
72
|
+
:'currency' => :'currency',
|
|
73
|
+
:'line_items' => :'line_items',
|
|
74
|
+
:'fulfillment_address' => :'fulfillment_address',
|
|
75
|
+
:'fulfillment_options' => :'fulfillment_options',
|
|
76
|
+
:'fulfillment_option_id' => :'fulfillment_option_id',
|
|
77
|
+
:'totals' => :'totals',
|
|
78
|
+
:'buyer' => :'buyer',
|
|
79
|
+
:'payment_provider' => :'payment_provider',
|
|
80
|
+
:'messages' => :'messages',
|
|
81
|
+
:'links' => :'links'
|
|
56
82
|
}
|
|
57
83
|
end
|
|
58
84
|
|
|
59
85
|
# Attribute type mapping.
|
|
60
86
|
def self.swagger_types
|
|
61
87
|
{
|
|
62
|
-
:'client_reference_information' => :'InlineResponse20112ClientReferenceInformation',
|
|
63
88
|
:'id' => :'String',
|
|
64
|
-
:'submit_time_utc' => :'String',
|
|
65
89
|
:'status' => :'String',
|
|
66
|
-
:'
|
|
67
|
-
:'
|
|
68
|
-
:'
|
|
90
|
+
:'currency' => :'String',
|
|
91
|
+
:'line_items' => :'Array<InlineResponse20112LineItems>',
|
|
92
|
+
:'fulfillment_address' => :'InlineResponse20112FulfillmentAddress',
|
|
93
|
+
:'fulfillment_options' => :'Array<InlineResponse20112FulfillmentOptions>',
|
|
94
|
+
:'fulfillment_option_id' => :'String',
|
|
95
|
+
:'totals' => :'Array<InlineResponse20112Totals>',
|
|
96
|
+
:'buyer' => :'AcpCheckoutSessionResponseBuyer',
|
|
97
|
+
:'payment_provider' => :'InlineResponse20112PaymentProvider',
|
|
98
|
+
:'messages' => :'Array<InlineResponse20112Messages>',
|
|
99
|
+
:'links' => :'Array<InlineResponse20112Links>'
|
|
69
100
|
}
|
|
70
101
|
end
|
|
71
102
|
|
|
@@ -77,32 +108,62 @@ module CyberSource
|
|
|
77
108
|
# convert string to symbol for hash key
|
|
78
109
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
79
110
|
|
|
80
|
-
if attributes.has_key?(:'clientReferenceInformation')
|
|
81
|
-
self.client_reference_information = attributes[:'clientReferenceInformation']
|
|
82
|
-
end
|
|
83
|
-
|
|
84
111
|
if attributes.has_key?(:'id')
|
|
85
112
|
self.id = attributes[:'id']
|
|
86
113
|
end
|
|
87
114
|
|
|
88
|
-
if attributes.has_key?(:'submitTimeUtc')
|
|
89
|
-
self.submit_time_utc = attributes[:'submitTimeUtc']
|
|
90
|
-
end
|
|
91
|
-
|
|
92
115
|
if attributes.has_key?(:'status')
|
|
93
116
|
self.status = attributes[:'status']
|
|
94
117
|
end
|
|
95
118
|
|
|
96
|
-
if attributes.has_key?(:'
|
|
97
|
-
self.
|
|
119
|
+
if attributes.has_key?(:'currency')
|
|
120
|
+
self.currency = attributes[:'currency']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.has_key?(:'line_items')
|
|
124
|
+
if (value = attributes[:'line_items']).is_a?(Array)
|
|
125
|
+
self.line_items = value
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
if attributes.has_key?(:'fulfillment_address')
|
|
130
|
+
self.fulfillment_address = attributes[:'fulfillment_address']
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
if attributes.has_key?(:'fulfillment_options')
|
|
134
|
+
if (value = attributes[:'fulfillment_options']).is_a?(Array)
|
|
135
|
+
self.fulfillment_options = value
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if attributes.has_key?(:'fulfillment_option_id')
|
|
140
|
+
self.fulfillment_option_id = attributes[:'fulfillment_option_id']
|
|
98
141
|
end
|
|
99
142
|
|
|
100
|
-
if attributes.has_key?(:'
|
|
101
|
-
|
|
143
|
+
if attributes.has_key?(:'totals')
|
|
144
|
+
if (value = attributes[:'totals']).is_a?(Array)
|
|
145
|
+
self.totals = value
|
|
146
|
+
end
|
|
102
147
|
end
|
|
103
148
|
|
|
104
|
-
if attributes.has_key?(:'
|
|
105
|
-
self.
|
|
149
|
+
if attributes.has_key?(:'buyer')
|
|
150
|
+
self.buyer = attributes[:'buyer']
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
if attributes.has_key?(:'payment_provider')
|
|
154
|
+
self.payment_provider = attributes[:'payment_provider']
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
if attributes.has_key?(:'messages')
|
|
158
|
+
if (value = attributes[:'messages']).is_a?(Array)
|
|
159
|
+
self.messages = value
|
|
160
|
+
end
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
if attributes.has_key?(:'links')
|
|
164
|
+
if (value = attributes[:'links']).is_a?(Array)
|
|
165
|
+
self.links = value
|
|
166
|
+
end
|
|
106
167
|
end
|
|
107
168
|
end
|
|
108
169
|
|
|
@@ -114,14 +175,34 @@ module CyberSource
|
|
|
114
175
|
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
115
176
|
end
|
|
116
177
|
|
|
117
|
-
if @submit_time_utc.nil?
|
|
118
|
-
invalid_properties.push('invalid value for "submit_time_utc", submit_time_utc cannot be nil.')
|
|
119
|
-
end
|
|
120
|
-
|
|
121
178
|
if @status.nil?
|
|
122
179
|
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
123
180
|
end
|
|
124
181
|
|
|
182
|
+
if @currency.nil?
|
|
183
|
+
invalid_properties.push('invalid value for "currency", currency cannot be nil.')
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if @line_items.nil?
|
|
187
|
+
invalid_properties.push('invalid value for "line_items", line_items cannot be nil.')
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if @fulfillment_options.nil?
|
|
191
|
+
invalid_properties.push('invalid value for "fulfillment_options", fulfillment_options cannot be nil.')
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if @totals.nil?
|
|
195
|
+
invalid_properties.push('invalid value for "totals", totals cannot be nil.')
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if @messages.nil?
|
|
199
|
+
invalid_properties.push('invalid value for "messages", messages cannot be nil.')
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if @links.nil?
|
|
203
|
+
invalid_properties.push('invalid value for "links", links cannot be nil.')
|
|
204
|
+
end
|
|
205
|
+
|
|
125
206
|
invalid_properties
|
|
126
207
|
end
|
|
127
208
|
|
|
@@ -129,53 +210,33 @@ module CyberSource
|
|
|
129
210
|
# @return true if the model is valid
|
|
130
211
|
def valid?
|
|
131
212
|
return false if @id.nil?
|
|
132
|
-
return false if @submit_time_utc.nil?
|
|
133
213
|
return false if @status.nil?
|
|
214
|
+
return false if @currency.nil?
|
|
215
|
+
return false if @line_items.nil?
|
|
216
|
+
return false if @fulfillment_options.nil?
|
|
217
|
+
return false if @totals.nil?
|
|
218
|
+
return false if @messages.nil?
|
|
219
|
+
return false if @links.nil?
|
|
134
220
|
true
|
|
135
221
|
end
|
|
136
222
|
|
|
137
|
-
# Custom attribute writer method with validation
|
|
138
|
-
# @param [Object] id Value to be assigned
|
|
139
|
-
def id=(id)
|
|
140
|
-
#if id.nil?
|
|
141
|
-
#fail ArgumentError, 'id cannot be nil'
|
|
142
|
-
#end
|
|
143
|
-
|
|
144
|
-
@id = id
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
# Custom attribute writer method with validation
|
|
148
|
-
# @param [Object] submit_time_utc Value to be assigned
|
|
149
|
-
def submit_time_utc=(submit_time_utc)
|
|
150
|
-
#if submit_time_utc.nil?
|
|
151
|
-
#fail ArgumentError, 'submit_time_utc cannot be nil'
|
|
152
|
-
#end
|
|
153
|
-
|
|
154
|
-
@submit_time_utc = submit_time_utc
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
# Custom attribute writer method with validation
|
|
158
|
-
# @param [Object] status Value to be assigned
|
|
159
|
-
def status=(status)
|
|
160
|
-
#if status.nil?
|
|
161
|
-
#fail ArgumentError, 'status cannot be nil'
|
|
162
|
-
#end
|
|
163
|
-
|
|
164
|
-
@status = status
|
|
165
|
-
end
|
|
166
|
-
|
|
167
223
|
# Checks equality by comparing each attribute.
|
|
168
224
|
# @param [Object] Object to be compared
|
|
169
225
|
def ==(o)
|
|
170
226
|
return true if self.equal?(o)
|
|
171
227
|
self.class == o.class &&
|
|
172
|
-
client_reference_information == o.client_reference_information &&
|
|
173
228
|
id == o.id &&
|
|
174
|
-
submit_time_utc == o.submit_time_utc &&
|
|
175
229
|
status == o.status &&
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
230
|
+
currency == o.currency &&
|
|
231
|
+
line_items == o.line_items &&
|
|
232
|
+
fulfillment_address == o.fulfillment_address &&
|
|
233
|
+
fulfillment_options == o.fulfillment_options &&
|
|
234
|
+
fulfillment_option_id == o.fulfillment_option_id &&
|
|
235
|
+
totals == o.totals &&
|
|
236
|
+
buyer == o.buyer &&
|
|
237
|
+
payment_provider == o.payment_provider &&
|
|
238
|
+
messages == o.messages &&
|
|
239
|
+
links == o.links
|
|
179
240
|
end
|
|
180
241
|
|
|
181
242
|
# @see the `==` method
|
|
@@ -187,7 +248,7 @@ module CyberSource
|
|
|
187
248
|
# Calculates hash code according to all attributes.
|
|
188
249
|
# @return [Fixnum] Hash code
|
|
189
250
|
def hash
|
|
190
|
-
[
|
|
251
|
+
[id, status, currency, line_items, fulfillment_address, fulfillment_options, fulfillment_option_id, totals, buyer, payment_provider, messages, links].hash
|
|
191
252
|
end
|
|
192
253
|
|
|
193
254
|
# Builds the object from hash
|
|
@@ -13,7 +13,7 @@ require 'date'
|
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
15
|
# An available fulfillment method returned in the session response.
|
|
16
|
-
class
|
|
16
|
+
class InlineResponse20112FulfillmentOptions
|
|
17
17
|
# Unique fulfillment option ID. Pass as `fulfillment_option_id` to select it.
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
@@ -145,12 +145,42 @@ module CyberSource
|
|
|
145
145
|
# @return Array for valid properties with the reasons
|
|
146
146
|
def list_invalid_properties
|
|
147
147
|
invalid_properties = Array.new
|
|
148
|
+
if @id.nil?
|
|
149
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
if @type.nil?
|
|
153
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
if @title.nil?
|
|
157
|
+
invalid_properties.push('invalid value for "title", title cannot be nil.')
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
if @subtotal.nil?
|
|
161
|
+
invalid_properties.push('invalid value for "subtotal", subtotal cannot be nil.')
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if @tax.nil?
|
|
165
|
+
invalid_properties.push('invalid value for "tax", tax cannot be nil.')
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if @total.nil?
|
|
169
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
|
170
|
+
end
|
|
171
|
+
|
|
148
172
|
invalid_properties
|
|
149
173
|
end
|
|
150
174
|
|
|
151
175
|
# Check to see if the all the properties in the model are valid
|
|
152
176
|
# @return true if the model is valid
|
|
153
177
|
def valid?
|
|
178
|
+
return false if @id.nil?
|
|
179
|
+
return false if @type.nil?
|
|
180
|
+
return false if @title.nil?
|
|
181
|
+
return false if @subtotal.nil?
|
|
182
|
+
return false if @tax.nil?
|
|
183
|
+
return false if @total.nil?
|
|
154
184
|
true
|
|
155
185
|
end
|
|
156
186
|
|
|
@@ -12,23 +12,23 @@ Swagger Codegen version: 2.4.38
|
|
|
12
12
|
require 'date'
|
|
13
13
|
|
|
14
14
|
module CyberSource
|
|
15
|
-
#
|
|
16
|
-
class
|
|
17
|
-
#
|
|
15
|
+
# Item detail within an ACP line item response.
|
|
16
|
+
class InlineResponse20112Item
|
|
17
|
+
# Product identifier.
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
20
|
+
# Product display name.
|
|
21
|
+
attr_accessor :name
|
|
22
22
|
|
|
23
|
-
#
|
|
24
|
-
attr_accessor :
|
|
23
|
+
# Number of units.
|
|
24
|
+
attr_accessor :quantity
|
|
25
25
|
|
|
26
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
27
|
def self.attribute_map
|
|
28
28
|
{
|
|
29
29
|
:'id' => :'id',
|
|
30
|
-
:'
|
|
31
|
-
:'
|
|
30
|
+
:'name' => :'name',
|
|
31
|
+
:'quantity' => :'quantity'
|
|
32
32
|
}
|
|
33
33
|
end
|
|
34
34
|
|
|
@@ -36,8 +36,8 @@ module CyberSource
|
|
|
36
36
|
def self.json_map
|
|
37
37
|
{
|
|
38
38
|
:'id' => :'id',
|
|
39
|
-
:'
|
|
40
|
-
:'
|
|
39
|
+
:'name' => :'name',
|
|
40
|
+
:'quantity' => :'quantity'
|
|
41
41
|
}
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -45,8 +45,8 @@ module CyberSource
|
|
|
45
45
|
def self.swagger_types
|
|
46
46
|
{
|
|
47
47
|
:'id' => :'String',
|
|
48
|
-
:'
|
|
49
|
-
:'
|
|
48
|
+
:'name' => :'String',
|
|
49
|
+
:'quantity' => :'Integer'
|
|
50
50
|
}
|
|
51
51
|
end
|
|
52
52
|
|
|
@@ -62,12 +62,12 @@ module CyberSource
|
|
|
62
62
|
self.id = attributes[:'id']
|
|
63
63
|
end
|
|
64
64
|
|
|
65
|
-
if attributes.has_key?(:'
|
|
66
|
-
self.
|
|
65
|
+
if attributes.has_key?(:'name')
|
|
66
|
+
self.name = attributes[:'name']
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
if attributes.has_key?(:'
|
|
70
|
-
self.
|
|
69
|
+
if attributes.has_key?(:'quantity')
|
|
70
|
+
self.quantity = attributes[:'quantity']
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -90,8 +90,8 @@ module CyberSource
|
|
|
90
90
|
return true if self.equal?(o)
|
|
91
91
|
self.class == o.class &&
|
|
92
92
|
id == o.id &&
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
name == o.name &&
|
|
94
|
+
quantity == o.quantity
|
|
95
95
|
end
|
|
96
96
|
|
|
97
97
|
# @see the `==` method
|
|
@@ -103,7 +103,7 @@ module CyberSource
|
|
|
103
103
|
# Calculates hash code according to all attributes.
|
|
104
104
|
# @return [Fixnum] Hash code
|
|
105
105
|
def hash
|
|
106
|
-
[id,
|
|
106
|
+
[id, name, quantity].hash
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
# Builds the object from hash
|