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
|
@@ -0,0 +1,464 @@
|
|
|
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 UnifiedriskOrderShipping
|
|
16
|
+
# First line of the shipping address.Required field for authorization if any shipping address information is included in the request; otherwise, optional.#### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
|
|
17
|
+
attr_accessor :address_line1
|
|
18
|
+
|
|
19
|
+
# Second line of the shipping address.Optional field.#### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
|
|
20
|
+
attr_accessor :address_line2
|
|
21
|
+
|
|
22
|
+
# Third line of the shipping address.#### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
|
|
23
|
+
attr_accessor :address_line3
|
|
24
|
+
|
|
25
|
+
# State or province of the shipping address. Use the [State, Province, and Territory Codes for the United States and Canada](https://developer.cybersource.com/library/documentation/sbc/quickref/states_and_provinces.pdf) (maximum length: 2) Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional. #### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value
|
|
26
|
+
attr_accessor :administrative_area
|
|
27
|
+
|
|
28
|
+
# Country of the shipping address. Use the two-character [ISO Standard Country Codes.]
|
|
29
|
+
attr_accessor :country
|
|
30
|
+
|
|
31
|
+
# Shipping destination of item. Example: Commercial, Residential, Store
|
|
32
|
+
attr_accessor :destination_types
|
|
33
|
+
|
|
34
|
+
# City of the shipping address.Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional.#### Tax Calculation Optional field for U.S. and Canadian taxes. Not applicable to international and value added taxes. Billing address objects will be used to determine the cardholder's location when shipTo objects are not present.
|
|
35
|
+
attr_accessor :locality
|
|
36
|
+
|
|
37
|
+
# First name of the recipient.#### Litle Maximum length: 25#### All other processors Maximum length: 60Optional field.
|
|
38
|
+
attr_accessor :first_name
|
|
39
|
+
|
|
40
|
+
# Last name of the recipient.#### Litle Maximum length: 25#### All other processors Maximum length: 60Optional field.
|
|
41
|
+
attr_accessor :last_name
|
|
42
|
+
|
|
43
|
+
# Middle name of the recipient.#### Litle Maximum length: 25#### All other processors Maximum length: 60Optional field.
|
|
44
|
+
attr_accessor :middle_name
|
|
45
|
+
|
|
46
|
+
# Phone number associated with the shipping address.
|
|
47
|
+
attr_accessor :phone_number
|
|
48
|
+
|
|
49
|
+
# Postal code for the shipping address. The postal code must consist of 5 to 9 digits.Required field for authorization if any shipping address information is included in the request and shipping to the U.S. or Canada; otherwise, optional.When the billing country is the U.S., the 9-digit postal code must follow this format: [5 digits][dash][4 digits]Example 12345-6789When the billing country is Canada, the 6-digit postal code must follow this format: [alpha][numeric][alpha][space][numeric][
|
|
50
|
+
attr_accessor :postal_code
|
|
51
|
+
|
|
52
|
+
# Indicates destination chosen for the transaction. Possible values: - 01- Ship to cardholder billing address - 02- Ship to another verified address on file with merchant - 03- Ship to address that is different than billing address - 04- Ship to store (store address should be populated on request) - 05- Digital goods - 06- Travel and event tickets, not shipped - 07- Other
|
|
53
|
+
attr_accessor :destination_code
|
|
54
|
+
|
|
55
|
+
# Delivery/fulfillment method Possible values: - shipToHome - storePickup - lockerPickup - curbside
|
|
56
|
+
attr_accessor :delivery_type
|
|
57
|
+
|
|
58
|
+
# Boolean that indicates whether the customer requested gift wrapping for this purchase. This field can contain one of the following values: - true: The customer requested gift wrapping. - false: The customer did not request gift wrapping.
|
|
59
|
+
attr_accessor :gift_wrap
|
|
60
|
+
|
|
61
|
+
# Shipping method for the product. Possible values: - `lowcost`: Lowest-cost service - `sameday`: Courier or same-day service - `oneday`: Next-day or overnight service - `twoday`: Two-day service
|
|
62
|
+
attr_accessor :shipping_method
|
|
63
|
+
|
|
64
|
+
attr_accessor :store
|
|
65
|
+
|
|
66
|
+
attr_accessor :store_address
|
|
67
|
+
|
|
68
|
+
# Email address of the recipient or shipping contact for order confirmation, dispatch notifications, and delivery tracking
|
|
69
|
+
attr_accessor :email
|
|
70
|
+
|
|
71
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
72
|
+
def self.attribute_map
|
|
73
|
+
{
|
|
74
|
+
:'address_line1' => :'addressLine1',
|
|
75
|
+
:'address_line2' => :'addressLine2',
|
|
76
|
+
:'address_line3' => :'addressLine3',
|
|
77
|
+
:'administrative_area' => :'administrativeArea',
|
|
78
|
+
:'country' => :'country',
|
|
79
|
+
:'destination_types' => :'destinationTypes',
|
|
80
|
+
:'locality' => :'locality',
|
|
81
|
+
:'first_name' => :'firstName',
|
|
82
|
+
:'last_name' => :'lastName',
|
|
83
|
+
:'middle_name' => :'middleName',
|
|
84
|
+
:'phone_number' => :'phoneNumber',
|
|
85
|
+
:'postal_code' => :'postalCode',
|
|
86
|
+
:'destination_code' => :'destinationCode',
|
|
87
|
+
:'delivery_type' => :'deliveryType',
|
|
88
|
+
:'gift_wrap' => :'giftWrap',
|
|
89
|
+
:'shipping_method' => :'shippingMethod',
|
|
90
|
+
:'store' => :'store',
|
|
91
|
+
:'store_address' => :'storeAddress',
|
|
92
|
+
:'email' => :'email'
|
|
93
|
+
}
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Attribute mapping from JSON key to ruby-style variable name.
|
|
97
|
+
def self.json_map
|
|
98
|
+
{
|
|
99
|
+
:'address_line1' => :'address_line1',
|
|
100
|
+
:'address_line2' => :'address_line2',
|
|
101
|
+
:'address_line3' => :'address_line3',
|
|
102
|
+
:'administrative_area' => :'administrative_area',
|
|
103
|
+
:'country' => :'country',
|
|
104
|
+
:'destination_types' => :'destination_types',
|
|
105
|
+
:'locality' => :'locality',
|
|
106
|
+
:'first_name' => :'first_name',
|
|
107
|
+
:'last_name' => :'last_name',
|
|
108
|
+
:'middle_name' => :'middle_name',
|
|
109
|
+
:'phone_number' => :'phone_number',
|
|
110
|
+
:'postal_code' => :'postal_code',
|
|
111
|
+
:'destination_code' => :'destination_code',
|
|
112
|
+
:'delivery_type' => :'delivery_type',
|
|
113
|
+
:'gift_wrap' => :'gift_wrap',
|
|
114
|
+
:'shipping_method' => :'shipping_method',
|
|
115
|
+
:'store' => :'store',
|
|
116
|
+
:'store_address' => :'store_address',
|
|
117
|
+
:'email' => :'email'
|
|
118
|
+
}
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Attribute type mapping.
|
|
122
|
+
def self.swagger_types
|
|
123
|
+
{
|
|
124
|
+
:'address_line1' => :'String',
|
|
125
|
+
:'address_line2' => :'String',
|
|
126
|
+
:'address_line3' => :'String',
|
|
127
|
+
:'administrative_area' => :'String',
|
|
128
|
+
:'country' => :'String',
|
|
129
|
+
:'destination_types' => :'String',
|
|
130
|
+
:'locality' => :'String',
|
|
131
|
+
:'first_name' => :'String',
|
|
132
|
+
:'last_name' => :'String',
|
|
133
|
+
:'middle_name' => :'String',
|
|
134
|
+
:'phone_number' => :'String',
|
|
135
|
+
:'postal_code' => :'String',
|
|
136
|
+
:'destination_code' => :'Integer',
|
|
137
|
+
:'delivery_type' => :'String',
|
|
138
|
+
:'gift_wrap' => :'BOOLEAN',
|
|
139
|
+
:'shipping_method' => :'String',
|
|
140
|
+
:'store' => :'UnifiedriskOrderShippingStore',
|
|
141
|
+
:'store_address' => :'UnifiedriskOrderShippingStoreAddress',
|
|
142
|
+
:'email' => :'String'
|
|
143
|
+
}
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Initializes the object
|
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
148
|
+
def initialize(attributes = {})
|
|
149
|
+
return unless attributes.is_a?(Hash)
|
|
150
|
+
|
|
151
|
+
# convert string to symbol for hash key
|
|
152
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
153
|
+
|
|
154
|
+
if attributes.has_key?(:'addressLine1')
|
|
155
|
+
self.address_line1 = attributes[:'addressLine1']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.has_key?(:'addressLine2')
|
|
159
|
+
self.address_line2 = attributes[:'addressLine2']
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
if attributes.has_key?(:'addressLine3')
|
|
163
|
+
self.address_line3 = attributes[:'addressLine3']
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
if attributes.has_key?(:'administrativeArea')
|
|
167
|
+
self.administrative_area = attributes[:'administrativeArea']
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
if attributes.has_key?(:'country')
|
|
171
|
+
self.country = attributes[:'country']
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
if attributes.has_key?(:'destinationTypes')
|
|
175
|
+
self.destination_types = attributes[:'destinationTypes']
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.has_key?(:'locality')
|
|
179
|
+
self.locality = attributes[:'locality']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.has_key?(:'firstName')
|
|
183
|
+
self.first_name = attributes[:'firstName']
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
if attributes.has_key?(:'lastName')
|
|
187
|
+
self.last_name = attributes[:'lastName']
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
if attributes.has_key?(:'middleName')
|
|
191
|
+
self.middle_name = attributes[:'middleName']
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
if attributes.has_key?(:'phoneNumber')
|
|
195
|
+
self.phone_number = attributes[:'phoneNumber']
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.has_key?(:'postalCode')
|
|
199
|
+
self.postal_code = attributes[:'postalCode']
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
if attributes.has_key?(:'destinationCode')
|
|
203
|
+
self.destination_code = attributes[:'destinationCode']
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
if attributes.has_key?(:'deliveryType')
|
|
207
|
+
self.delivery_type = attributes[:'deliveryType']
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.has_key?(:'giftWrap')
|
|
211
|
+
self.gift_wrap = attributes[:'giftWrap']
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
if attributes.has_key?(:'shippingMethod')
|
|
215
|
+
self.shipping_method = attributes[:'shippingMethod']
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
if attributes.has_key?(:'store')
|
|
219
|
+
self.store = attributes[:'store']
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.has_key?(:'storeAddress')
|
|
223
|
+
self.store_address = attributes[:'storeAddress']
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.has_key?(:'email')
|
|
227
|
+
self.email = attributes[:'email']
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
232
|
+
# @return Array for valid properties with the reasons
|
|
233
|
+
def list_invalid_properties
|
|
234
|
+
invalid_properties = Array.new
|
|
235
|
+
invalid_properties
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# Check to see if the all the properties in the model are valid
|
|
239
|
+
# @return true if the model is valid
|
|
240
|
+
def valid?
|
|
241
|
+
true
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Custom attribute writer method with validation
|
|
245
|
+
# @param [Object] address_line1 Value to be assigned
|
|
246
|
+
def address_line1=(address_line1)
|
|
247
|
+
@address_line1 = address_line1
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Custom attribute writer method with validation
|
|
251
|
+
# @param [Object] address_line2 Value to be assigned
|
|
252
|
+
def address_line2=(address_line2)
|
|
253
|
+
@address_line2 = address_line2
|
|
254
|
+
end
|
|
255
|
+
|
|
256
|
+
# Custom attribute writer method with validation
|
|
257
|
+
# @param [Object] address_line3 Value to be assigned
|
|
258
|
+
def address_line3=(address_line3)
|
|
259
|
+
@address_line3 = address_line3
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Custom attribute writer method with validation
|
|
263
|
+
# @param [Object] administrative_area Value to be assigned
|
|
264
|
+
def administrative_area=(administrative_area)
|
|
265
|
+
@administrative_area = administrative_area
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
# Custom attribute writer method with validation
|
|
269
|
+
# @param [Object] country Value to be assigned
|
|
270
|
+
def country=(country)
|
|
271
|
+
@country = country
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Custom attribute writer method with validation
|
|
275
|
+
# @param [Object] destination_types Value to be assigned
|
|
276
|
+
def destination_types=(destination_types)
|
|
277
|
+
@destination_types = destination_types
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
# Custom attribute writer method with validation
|
|
281
|
+
# @param [Object] locality Value to be assigned
|
|
282
|
+
def locality=(locality)
|
|
283
|
+
@locality = locality
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# Custom attribute writer method with validation
|
|
287
|
+
# @param [Object] first_name Value to be assigned
|
|
288
|
+
def first_name=(first_name)
|
|
289
|
+
@first_name = first_name
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# Custom attribute writer method with validation
|
|
293
|
+
# @param [Object] last_name Value to be assigned
|
|
294
|
+
def last_name=(last_name)
|
|
295
|
+
@last_name = last_name
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
# Custom attribute writer method with validation
|
|
299
|
+
# @param [Object] middle_name Value to be assigned
|
|
300
|
+
def middle_name=(middle_name)
|
|
301
|
+
@middle_name = middle_name
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
# Custom attribute writer method with validation
|
|
305
|
+
# @param [Object] phone_number Value to be assigned
|
|
306
|
+
def phone_number=(phone_number)
|
|
307
|
+
@phone_number = phone_number
|
|
308
|
+
end
|
|
309
|
+
|
|
310
|
+
# Custom attribute writer method with validation
|
|
311
|
+
# @param [Object] postal_code Value to be assigned
|
|
312
|
+
def postal_code=(postal_code)
|
|
313
|
+
@postal_code = postal_code
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
# Custom attribute writer method with validation
|
|
317
|
+
# @param [Object] shipping_method Value to be assigned
|
|
318
|
+
def shipping_method=(shipping_method)
|
|
319
|
+
@shipping_method = shipping_method
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
# Checks equality by comparing each attribute.
|
|
323
|
+
# @param [Object] Object to be compared
|
|
324
|
+
def ==(o)
|
|
325
|
+
return true if self.equal?(o)
|
|
326
|
+
self.class == o.class &&
|
|
327
|
+
address_line1 == o.address_line1 &&
|
|
328
|
+
address_line2 == o.address_line2 &&
|
|
329
|
+
address_line3 == o.address_line3 &&
|
|
330
|
+
administrative_area == o.administrative_area &&
|
|
331
|
+
country == o.country &&
|
|
332
|
+
destination_types == o.destination_types &&
|
|
333
|
+
locality == o.locality &&
|
|
334
|
+
first_name == o.first_name &&
|
|
335
|
+
last_name == o.last_name &&
|
|
336
|
+
middle_name == o.middle_name &&
|
|
337
|
+
phone_number == o.phone_number &&
|
|
338
|
+
postal_code == o.postal_code &&
|
|
339
|
+
destination_code == o.destination_code &&
|
|
340
|
+
delivery_type == o.delivery_type &&
|
|
341
|
+
gift_wrap == o.gift_wrap &&
|
|
342
|
+
shipping_method == o.shipping_method &&
|
|
343
|
+
store == o.store &&
|
|
344
|
+
store_address == o.store_address &&
|
|
345
|
+
email == o.email
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
# @see the `==` method
|
|
349
|
+
# @param [Object] Object to be compared
|
|
350
|
+
def eql?(o)
|
|
351
|
+
self == o
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
# Calculates hash code according to all attributes.
|
|
355
|
+
# @return [Fixnum] Hash code
|
|
356
|
+
def hash
|
|
357
|
+
[address_line1, address_line2, address_line3, administrative_area, country, destination_types, locality, first_name, last_name, middle_name, phone_number, postal_code, destination_code, delivery_type, gift_wrap, shipping_method, store, store_address, email].hash
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# Builds the object from hash
|
|
361
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
362
|
+
# @return [Object] Returns the model itself
|
|
363
|
+
def build_from_hash(attributes)
|
|
364
|
+
return nil unless attributes.is_a?(Hash)
|
|
365
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
366
|
+
if type =~ /\AArray<(.*)>/i
|
|
367
|
+
# check to ensure the input is an array given that the the attribute
|
|
368
|
+
# is documented as an array but the input is not
|
|
369
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
370
|
+
self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
371
|
+
end
|
|
372
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
373
|
+
self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
374
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
375
|
+
end
|
|
376
|
+
|
|
377
|
+
self
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Deserializes the data based on type
|
|
381
|
+
# @param string type Data type
|
|
382
|
+
# @param string value Value to be deserialized
|
|
383
|
+
# @return [Object] Deserialized data
|
|
384
|
+
def _deserialize(type, value)
|
|
385
|
+
case type.to_sym
|
|
386
|
+
when :DateTime
|
|
387
|
+
DateTime.parse(value)
|
|
388
|
+
when :Date
|
|
389
|
+
Date.parse(value)
|
|
390
|
+
when :String
|
|
391
|
+
value.to_s
|
|
392
|
+
when :Integer
|
|
393
|
+
value.to_i
|
|
394
|
+
when :Float
|
|
395
|
+
value.to_f
|
|
396
|
+
when :BOOLEAN
|
|
397
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
398
|
+
true
|
|
399
|
+
else
|
|
400
|
+
false
|
|
401
|
+
end
|
|
402
|
+
when :Object
|
|
403
|
+
# generic object (usually a Hash), return directly
|
|
404
|
+
value
|
|
405
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
406
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
407
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
408
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
409
|
+
k_type = Regexp.last_match[:k_type]
|
|
410
|
+
v_type = Regexp.last_match[:v_type]
|
|
411
|
+
{}.tap do |hash|
|
|
412
|
+
value.each do |k, v|
|
|
413
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
414
|
+
end
|
|
415
|
+
end
|
|
416
|
+
else # model
|
|
417
|
+
temp_model = CyberSource.const_get(type).new
|
|
418
|
+
temp_model.build_from_hash(value)
|
|
419
|
+
end
|
|
420
|
+
end
|
|
421
|
+
|
|
422
|
+
# Returns the string representation of the object
|
|
423
|
+
# @return [String] String presentation of the object
|
|
424
|
+
def to_s
|
|
425
|
+
to_hash.to_s
|
|
426
|
+
end
|
|
427
|
+
|
|
428
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
429
|
+
# @return [Hash] Returns the object in the form of hash
|
|
430
|
+
def to_body
|
|
431
|
+
to_hash
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# Returns the object in the form of hash
|
|
435
|
+
# @return [Hash] Returns the object in the form of hash
|
|
436
|
+
def to_hash
|
|
437
|
+
hash = {}
|
|
438
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
439
|
+
value = self.send(attr)
|
|
440
|
+
next if value.nil?
|
|
441
|
+
hash[param] = _to_hash(value)
|
|
442
|
+
end
|
|
443
|
+
hash
|
|
444
|
+
end
|
|
445
|
+
|
|
446
|
+
# Outputs non-array value in the form of hash
|
|
447
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
448
|
+
# @param [Object] value Any valid value
|
|
449
|
+
# @return [Hash] Returns the value in the form of hash
|
|
450
|
+
def _to_hash(value)
|
|
451
|
+
if value.is_a?(Array)
|
|
452
|
+
value.compact.map { |v| _to_hash(v) }
|
|
453
|
+
elsif value.is_a?(Hash)
|
|
454
|
+
{}.tap do |hash|
|
|
455
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
456
|
+
end
|
|
457
|
+
elsif value.respond_to? :to_hash
|
|
458
|
+
value.to_hash
|
|
459
|
+
else
|
|
460
|
+
value
|
|
461
|
+
end
|
|
462
|
+
end
|
|
463
|
+
end
|
|
464
|
+
end
|