first_data_gateway 1.7.0 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +5 -2
- data/docs/AccountVerificationRequest.md +2 -0
- data/docs/AdditionalDetails.md +7 -1
- data/docs/AdditionalTransactionDetails.md +3 -1
- data/docs/ChinaDomestic.md +3 -1
- data/docs/CurrencyConversionResponse.md +19 -0
- data/docs/DCCExchangeRateRequest.md +1 -1
- data/docs/DCCExchangeRateRequestAllOf.md +1 -1
- data/docs/DecryptedApplePay.md +2 -6
- data/docs/DecryptedGooglePay.md +5 -7
- data/docs/DecryptedSamsungPay.md +2 -6
- data/docs/DisbursementTransactionType.md +1 -2
- data/docs/{ExchangeRateResponseAllOf.md → ExchangeRateDetails.md} +7 -11
- data/docs/ExchangeRateResponse.md +4 -20
- data/docs/FraudOrder.md +3 -1
- data/docs/FraudOrderItems.md +4 -4
- data/docs/FundingTransactionType.md +1 -2
- data/docs/PaymentCardSaleTransaction.md +1 -3
- data/docs/PaymentCardSaleTransactionAllOf.md +1 -3
- data/docs/PaymentTokenizationErrorResponse.md +4 -0
- data/docs/PaymentTokenizationRequest.md +2 -0
- data/docs/PaymentTokenizationResponse.md +5 -1
- data/docs/ProcessorData.md +3 -1
- data/docs/Receipt.md +19 -0
- data/docs/ReceiptLine.md +19 -0
- data/docs/ReceiptRequestInfo.md +21 -0
- data/docs/ReturnTransaction.md +2 -0
- data/docs/ReturnTransactionAllOf.md +2 -0
- data/docs/ScoreOnlyResponse.md +3 -5
- data/docs/ScoreOnlyResponseFraudScore.md +3 -1
- data/docs/Secure3D10AuthenticationRequest.md +1 -2
- data/docs/Secure3D21AuthenticationRequest.md +2 -2
- data/docs/Secure3D21AuthenticationRequestAllOf.md +2 -2
- data/docs/SoftDescriptor.md +5 -1
- data/docs/TeleCheckCBPPaymentMethod.md +1 -2
- data/docs/TransactionErrorResponse.md +2 -0
- data/docs/TransactionResponse.md +3 -1
- data/docs/VoidPreAuthTransactions.md +1 -2
- data/docs/VoidTransaction.md +2 -2
- data/docs/VoidTransactionAllOf.md +2 -2
- data/first_data_gateway.gemspec +4 -18
- data/git_push.sh +7 -10
- data/lib/openapi_client.rb +19 -27
- data/lib/openapi_client/api/authentication_api.rb +4 -4
- data/lib/openapi_client/api/currency_conversion_api.rb +4 -4
- data/lib/openapi_client/api/fraud_detect_api.rb +8 -8
- data/lib/openapi_client/api/information_lookup_api.rb +6 -6
- data/lib/openapi_client/api/order_api.rb +6 -6
- data/lib/openapi_client/api/payment_api.rb +12 -12
- data/lib/openapi_client/api/payment_schedules_api.rb +8 -8
- data/lib/openapi_client/api/payment_token_api.rb +8 -8
- data/lib/openapi_client/api/payment_url_api.rb +6 -6
- data/lib/openapi_client/api/verification_api.rb +6 -6
- data/lib/openapi_client/api_client.rb +8 -10
- data/lib/openapi_client/api_error.rb +2 -2
- data/lib/openapi_client/configuration.rb +5 -4
- data/lib/openapi_client/models/access_token_request.rb +3 -9
- data/lib/openapi_client/models/access_token_response.rb +3 -9
- data/lib/openapi_client/models/account_info_lookup_request.rb +3 -9
- data/lib/openapi_client/models/account_updater_response.rb +3 -9
- data/lib/openapi_client/models/account_verification_request.rb +29 -10
- data/lib/openapi_client/models/ach_credit_transaction.rb +4 -10
- data/lib/openapi_client/models/ach_post_auth_transaction.rb +4 -10
- data/lib/openapi_client/models/ach_post_auth_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/ach_pre_auth_transaction.rb +4 -10
- data/lib/openapi_client/models/ach_pre_auth_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/ach_recurring_type.rb +2 -2
- data/lib/openapi_client/models/ach_response.rb +11 -17
- data/lib/openapi_client/models/ach_return_transaction.rb +4 -10
- data/lib/openapi_client/models/ach_sale_transaction.rb +4 -10
- data/lib/openapi_client/models/ach_void_transaction.rb +4 -10
- data/lib/openapi_client/models/acs_response.rb +3 -9
- data/lib/openapi_client/models/additional_amount_rate.rb +3 -9
- data/lib/openapi_client/models/additional_details.rb +88 -13
- data/lib/openapi_client/models/additional_transaction_details.rb +19 -13
- data/lib/openapi_client/models/address.rb +3 -9
- data/lib/openapi_client/models/airline.rb +3 -9
- data/lib/openapi_client/models/airline_ancillary_service_category.rb +3 -9
- data/lib/openapi_client/models/airline_travel_route.rb +3 -9
- data/lib/openapi_client/models/ali_pay.rb +3 -9
- data/lib/openapi_client/models/ali_pay_payment_method.rb +5 -10
- data/lib/openapi_client/models/ali_pay_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/ali_pay_sale_transaction.rb +4 -10
- data/lib/openapi_client/models/ali_pay_sale_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/amount.rb +22 -9
- data/lib/openapi_client/models/amount_components.rb +3 -9
- data/lib/openapi_client/models/authentication_request.rb +3 -9
- data/lib/openapi_client/models/authentication_result.rb +3 -9
- data/lib/openapi_client/models/authentication_update_request.rb +3 -9
- data/lib/openapi_client/models/avs_response.rb +3 -9
- data/lib/openapi_client/models/background.rb +3 -9
- data/lib/openapi_client/models/background_color.rb +3 -9
- data/lib/openapi_client/models/bancontact_qr.rb +3 -9
- data/lib/openapi_client/models/basic_response.rb +3 -9
- data/lib/openapi_client/models/billing.rb +54 -10
- data/lib/openapi_client/models/billing_address.rb +3 -9
- data/lib/openapi_client/models/block_card.rb +3 -9
- data/lib/openapi_client/models/block_domain.rb +3 -9
- data/lib/openapi_client/models/block_ip_address.rb +3 -9
- data/lib/openapi_client/models/block_name.rb +3 -9
- data/lib/openapi_client/models/blocked_card_number.rb +3 -9
- data/lib/openapi_client/models/blocked_items.rb +3 -9
- data/lib/openapi_client/models/body.rb +3 -9
- data/lib/openapi_client/models/borders.rb +3 -9
- data/lib/openapi_client/models/branding_style_configuration_request.rb +3 -9
- data/lib/openapi_client/models/branding_style_configuration_response.rb +4 -11
- data/lib/openapi_client/models/branding_style_configuration_result.rb +3 -9
- data/lib/openapi_client/models/button.rb +3 -9
- data/lib/openapi_client/models/car_rental.rb +3 -9
- data/lib/openapi_client/models/car_rental_extra_charges.rb +3 -9
- data/lib/openapi_client/models/card.rb +3 -9
- data/lib/openapi_client/models/card_function.rb +2 -2
- data/lib/openapi_client/models/card_info.rb +3 -9
- data/lib/openapi_client/models/card_info_lookup_request.rb +3 -9
- data/lib/openapi_client/models/card_info_lookup_response.rb +4 -11
- data/lib/openapi_client/models/card_verification_request.rb +3 -9
- data/lib/openapi_client/models/cardholder_info_response.rb +257 -0
- data/lib/openapi_client/models/china_domestic.rb +32 -13
- data/lib/openapi_client/models/china_domestic_payment_method.rb +5 -10
- data/lib/openapi_client/models/china_domestic_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/china_pn_r_sale_transaction.rb +4 -10
- data/lib/openapi_client/models/china_pn_r_sale_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/classic_mode.rb +3 -9
- data/lib/openapi_client/models/clearing_details.rb +3 -9
- data/lib/openapi_client/models/clearing_element.rb +3 -9
- data/lib/openapi_client/models/client_locale.rb +3 -9
- data/lib/openapi_client/models/client_registration.rb +3 -10
- data/lib/openapi_client/models/combined_mode.rb +3 -9
- data/lib/openapi_client/models/connect_mode.rb +2 -2
- data/lib/openapi_client/models/contact.rb +3 -9
- data/lib/openapi_client/models/content.rb +3 -9
- data/lib/openapi_client/models/country_profile.rb +3 -9
- data/lib/openapi_client/models/create_payment_token.rb +3 -9
- data/lib/openapi_client/models/currency_conversion.rb +3 -9
- data/lib/openapi_client/models/{disbursement_transaction_type_all_of.rb → currency_conversion_response.rb} +24 -24
- data/lib/openapi_client/models/customer.rb +3 -9
- data/lib/openapi_client/models/customer_address.rb +3 -10
- data/lib/openapi_client/models/dcc.rb +4 -10
- data/lib/openapi_client/models/dcc_all_of.rb +3 -9
- data/lib/openapi_client/models/dcc_exchange_rate_request.rb +8 -23
- data/lib/openapi_client/models/dcc_exchange_rate_request_all_of.rb +7 -22
- data/lib/openapi_client/models/decrypted_apple_pay.rb +13 -88
- data/lib/openapi_client/models/decrypted_apple_pay_wallet_payment_method.rb +4 -10
- data/lib/openapi_client/models/decrypted_apple_pay_wallet_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/decrypted_google_pay.rb +25 -91
- data/lib/openapi_client/models/decrypted_google_pay_wallet_payment_method.rb +4 -10
- data/lib/openapi_client/models/decrypted_google_pay_wallet_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/decrypted_samsung_pay.rb +13 -88
- data/lib/openapi_client/models/decrypted_samsung_pay_wallet_payment_method.rb +4 -10
- data/lib/openapi_client/models/decrypted_samsung_pay_wallet_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/delete_branding_style_configuration_response.rb +4 -11
- data/lib/openapi_client/models/device.rb +3 -9
- data/lib/openapi_client/models/disbursement.rb +3 -9
- data/lib/openapi_client/models/disbursement_transaction_type.rb +7 -28
- data/lib/openapi_client/models/document.rb +3 -9
- data/lib/openapi_client/models/dynamic_pricing.rb +4 -10
- data/lib/openapi_client/models/dynamic_pricing_all_of.rb +3 -9
- data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request.rb +4 -10
- data/lib/openapi_client/models/dynamic_pricing_exchange_rate_request_all_of.rb +3 -9
- data/lib/openapi_client/models/email_notification_data.rb +3 -9
- data/lib/openapi_client/models/encrypted_apple_pay.rb +3 -9
- data/lib/openapi_client/models/encrypted_apple_pay_header.rb +3 -9
- data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method.rb +4 -10
- data/lib/openapi_client/models/encrypted_apple_pay_wallet_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/encrypted_google_pay.rb +3 -9
- data/lib/openapi_client/models/encrypted_google_pay_data.rb +3 -9
- data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method.rb +4 -10
- data/lib/openapi_client/models/encrypted_google_pay_wallet_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/encrypted_samsung_pay.rb +3 -9
- data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method.rb +4 -10
- data/lib/openapi_client/models/encrypted_samsung_pay_wallet_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/endpoint_response.rb +3 -9
- data/lib/openapi_client/models/error.rb +3 -9
- data/lib/openapi_client/models/error_details.rb +3 -9
- data/lib/openapi_client/models/error_message.rb +3 -9
- data/lib/openapi_client/models/error_response.rb +4 -11
- data/lib/openapi_client/models/{exchange_rate_response_all_of.rb → exchange_rate_details.rb} +11 -36
- data/lib/openapi_client/models/exchange_rate_request.rb +3 -9
- data/lib/openapi_client/models/exchange_rate_response.rb +12 -100
- data/lib/openapi_client/models/expiration.rb +6 -11
- data/lib/openapi_client/models/font_face.rb +2 -2
- data/lib/openapi_client/models/font_properties.rb +3 -9
- data/lib/openapi_client/models/font_weight.rb +2 -2
- data/lib/openapi_client/models/footer.rb +3 -9
- data/lib/openapi_client/models/fraud_address.rb +3 -9
- data/lib/openapi_client/models/fraud_order.rb +3 -9
- data/lib/openapi_client/models/fraud_order_items.rb +3 -9
- data/lib/openapi_client/models/fraud_registration.rb +3 -9
- data/lib/openapi_client/models/fraud_registration_card.rb +3 -9
- data/lib/openapi_client/models/fraud_registration_device.rb +3 -9
- data/lib/openapi_client/models/fraud_registration_device_items.rb +3 -9
- data/lib/openapi_client/models/fraud_registration_error.rb +3 -9
- data/lib/openapi_client/models/fraud_registration_response.rb +4 -10
- data/lib/openapi_client/models/fraud_score.rb +3 -9
- data/lib/openapi_client/models/fraud_settings.rb +3 -9
- data/lib/openapi_client/models/fraud_settings_response.rb +4 -11
- data/lib/openapi_client/models/frequency.rb +3 -9
- data/lib/openapi_client/models/funding_transaction_type.rb +7 -28
- data/lib/openapi_client/models/{store_url_configuration_response_all_of.rb → generate_certificate_from_csr_response.rb} +53 -19
- data/lib/openapi_client/models/{payment_registration_all_of.rb → generate_certificate_response.rb} +56 -51
- data/lib/openapi_client/models/header.rb +3 -9
- data/lib/openapi_client/models/hover.rb +3 -9
- data/lib/openapi_client/models/id_info.rb +3 -9
- data/lib/openapi_client/models/{payment_url_response_all_of.rb → ideal_setup.rb} +89 -78
- data/lib/openapi_client/models/{error_response_all_of.rb → ideal_setup_response.rb} +47 -17
- data/lib/openapi_client/models/industry_specific_extensions.rb +3 -9
- data/lib/openapi_client/models/initiate_clearing_response.rb +3 -9
- data/lib/openapi_client/models/initiate_clearing_response_all_of.rb +3 -9
- data/lib/openapi_client/models/installment_options.rb +3 -9
- data/lib/openapi_client/models/issuer_response.rb +3 -9
- data/lib/openapi_client/models/items.rb +3 -9
- data/lib/openapi_client/models/location.rb +3 -9
- data/lib/openapi_client/models/lockout_time.rb +3 -9
- data/lib/openapi_client/models/lodging.rb +3 -9
- data/lib/openapi_client/models/lodging_extra_charges.rb +3 -9
- data/lib/openapi_client/models/logo.rb +3 -9
- data/lib/openapi_client/models/loyalty.rb +3 -9
- data/lib/openapi_client/models/masterpass_wallet_payment_method.rb +4 -10
- data/lib/openapi_client/models/masterpass_wallet_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/maximum_purchase_amount.rb +3 -9
- data/lib/openapi_client/models/mcc6012.rb +3 -9
- data/lib/openapi_client/models/merchant.rb +3 -9
- data/lib/openapi_client/models/method.rb +3 -9
- data/lib/openapi_client/models/mobile.rb +3 -9
- data/lib/openapi_client/models/mobile_header_area.rb +3 -9
- data/lib/openapi_client/models/order.rb +3 -9
- data/lib/openapi_client/models/order_error_response.rb +3 -10
- data/lib/openapi_client/models/order_response.rb +4 -11
- data/lib/openapi_client/models/pay_pal.rb +3 -9
- data/lib/openapi_client/models/pay_pal_payment_method.rb +5 -10
- data/lib/openapi_client/models/pay_pal_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/payment.rb +3 -9
- data/lib/openapi_client/models/payment_card.rb +10 -16
- data/lib/openapi_client/models/payment_card_credit_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_card_disbursement_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_card_disbursement_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_card_forced_ticket_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_card_forced_ticket_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_card_info_lookup_request.rb +4 -10
- data/lib/openapi_client/models/payment_card_info_lookup_request_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_card_payer_auth_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_card_payer_auth_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_card_payment_method.rb +5 -10
- data/lib/openapi_client/models/payment_card_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_card_payment_token_update_request.rb +3 -9
- data/lib/openapi_client/models/payment_card_payment_tokenization_request.rb +4 -10
- data/lib/openapi_client/models/payment_card_payment_tokenization_request_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_card_pre_auth_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_card_pre_auth_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_card_sale_transaction.rb +5 -25
- data/lib/openapi_client/models/payment_card_sale_transaction_all_of.rb +4 -24
- data/lib/openapi_client/models/payment_card_verification_request.rb +4 -10
- data/lib/openapi_client/models/payment_card_verification_request_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_device.rb +3 -9
- data/lib/openapi_client/models/payment_device_credit_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_device_credit_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_device_disbursement_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_device_disbursement_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_device_payment_method.rb +5 -10
- data/lib/openapi_client/models/payment_device_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_device_payment_tokenization_request.rb +4 -10
- data/lib/openapi_client/models/payment_device_payment_tokenization_request_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_device_pre_auth_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_device_pre_auth_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_device_sale_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_device_sale_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_facilitator.rb +3 -9
- data/lib/openapi_client/models/payment_method_details.rb +3 -9
- data/lib/openapi_client/models/payment_method_payment_schedules_request.rb +4 -10
- data/lib/openapi_client/models/payment_method_payment_schedules_request_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_method_type.rb +2 -2
- data/lib/openapi_client/models/payment_registration.rb +4 -11
- data/lib/openapi_client/models/payment_schedules_error_response.rb +3 -10
- data/lib/openapi_client/models/payment_schedules_request.rb +3 -9
- data/lib/openapi_client/models/payment_schedules_response.rb +4 -11
- data/lib/openapi_client/models/payment_token_credit_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_token_credit_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_token_details.rb +3 -9
- data/lib/openapi_client/models/payment_token_details_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_token_disbursement_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_token_disbursement_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_token_info_lookup_request.rb +4 -10
- data/lib/openapi_client/models/payment_token_info_lookup_request_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_token_payment_method.rb +4 -9
- data/lib/openapi_client/models/payment_token_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_token_pre_auth_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_token_pre_auth_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_token_sale_transaction.rb +4 -10
- data/lib/openapi_client/models/payment_token_sale_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_token_update_response.rb +4 -11
- data/lib/openapi_client/models/payment_token_verification_request.rb +4 -10
- data/lib/openapi_client/models/payment_token_verification_request_all_of.rb +3 -9
- data/lib/openapi_client/models/payment_tokenization_error_response.rb +54 -11
- data/lib/openapi_client/models/payment_tokenization_request.rb +29 -10
- data/lib/openapi_client/models/payment_tokenization_response.rb +58 -15
- data/lib/openapi_client/models/payment_url_detail.rb +3 -9
- data/lib/openapi_client/models/payment_url_detail_response.rb +4 -11
- data/lib/openapi_client/models/payment_url_error_response.rb +3 -10
- data/lib/openapi_client/models/payment_url_request.rb +3 -9
- data/lib/openapi_client/models/payment_url_response.rb +4 -11
- data/lib/openapi_client/models/payment_url_status.rb +2 -2
- data/lib/openapi_client/models/paypal_credit_transaction.rb +4 -10
- data/lib/openapi_client/models/paypal_credit_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/phone.rb +3 -9
- data/lib/openapi_client/models/post_auth_transaction.rb +4 -10
- data/lib/openapi_client/models/post_auth_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/primary.rb +3 -9
- data/lib/openapi_client/models/primary_transaction.rb +3 -9
- data/lib/openapi_client/models/processor_data.rb +26 -13
- data/lib/openapi_client/models/properties.rb +3 -9
- data/lib/openapi_client/models/purchase_cards.rb +3 -9
- data/lib/openapi_client/models/purchase_cards_level2.rb +3 -9
- data/lib/openapi_client/models/purchase_cards_level3.rb +3 -9
- data/lib/openapi_client/models/purchase_cards_level3_line_items.rb +3 -9
- data/lib/openapi_client/models/{card_info_lookup_response_all_of.rb → receipt.rb} +42 -37
- data/lib/openapi_client/models/{delete_branding_style_configuration_response_all_of.rb → receipt_line.rb} +29 -27
- data/lib/openapi_client/models/{payment_token_update_response_all_of.rb → receipt_request_info.rb} +44 -43
- data/lib/openapi_client/models/receiver_info.rb +3 -9
- data/lib/openapi_client/models/recurring_payment_details.rb +3 -9
- data/lib/openapi_client/models/recurring_payment_details_response.rb +4 -11
- data/lib/openapi_client/models/referenced_order_payment_schedules_request.rb +4 -10
- data/lib/openapi_client/models/referenced_order_payment_schedules_request_all_of.rb +3 -9
- data/lib/openapi_client/models/referenced_order_payment_tokenization_request.rb +4 -10
- data/lib/openapi_client/models/referenced_order_payment_tokenization_request_all_of.rb +3 -9
- data/lib/openapi_client/models/registration_method.rb +3 -9
- data/lib/openapi_client/models/remove_fraud_blocked_items_response.rb +4 -11
- data/lib/openapi_client/models/response_amount_components.rb +3 -9
- data/lib/openapi_client/models/response_amount_components_all_of.rb +3 -9
- data/lib/openapi_client/models/response_type.rb +2 -2
- data/lib/openapi_client/models/return_transaction.rb +14 -11
- data/lib/openapi_client/models/return_transaction_all_of.rb +13 -10
- data/lib/openapi_client/models/score_only_request.rb +3 -9
- data/lib/openapi_client/models/score_only_response.rb +3 -9
- data/lib/openapi_client/models/score_only_response_fraud_score.rb +3 -9
- data/lib/openapi_client/models/score_only_response_fraud_score_explanations.rb +3 -9
- data/lib/openapi_client/models/secondary_transaction.rb +3 -9
- data/lib/openapi_client/models/secure3_d10_authentication_request.rb +13 -23
- data/lib/openapi_client/models/secure3_d10_authentication_request_all_of.rb +11 -21
- data/lib/openapi_client/models/secure3_d10_authentication_result.rb +5 -11
- data/lib/openapi_client/models/secure3_d10_authentication_result_all_of.rb +3 -9
- data/lib/openapi_client/models/secure3_d10_authentication_update_request.rb +5 -11
- data/lib/openapi_client/models/secure3_d10_authentication_update_request_all_of.rb +3 -9
- data/lib/openapi_client/models/secure3_d21_authentication_request.rb +7 -13
- data/lib/openapi_client/models/secure3_d21_authentication_request_all_of.rb +5 -11
- data/lib/openapi_client/models/secure3_d21_authentication_result.rb +5 -11
- data/lib/openapi_client/models/secure3_d21_authentication_result_all_of.rb +3 -9
- data/lib/openapi_client/models/secure3_d21_authentication_update_request.rb +5 -11
- data/lib/openapi_client/models/secure3_d21_authentication_update_request_all_of.rb +3 -9
- data/lib/openapi_client/models/secure3_d_authentication_request.rb +329 -0
- data/lib/openapi_client/models/secure3_d_authentication_request_all_of.rb +316 -0
- data/lib/openapi_client/models/secure3_d_authentication_response.rb +3 -9
- data/lib/openapi_client/models/secure3_d_authentication_response_params.rb +3 -9
- data/lib/openapi_client/models/secure3_d_authentication_response_secure3d_method.rb +3 -9
- data/lib/openapi_client/models/secure3_d_authentication_result.rb +353 -0
- data/lib/openapi_client/models/secure3_d_authentication_result_all_of.rb +340 -0
- data/lib/openapi_client/models/{payment_schedules_response_all_of.rb → secure3_d_authentication_update_request.rb} +41 -44
- data/lib/openapi_client/models/secure3d_response.rb +3 -9
- data/lib/openapi_client/models/sender_info.rb +3 -9
- data/lib/openapi_client/models/sepa.rb +3 -9
- data/lib/openapi_client/models/sepa_mandate.rb +21 -27
- data/lib/openapi_client/models/sepa_payment_method.rb +4 -9
- data/lib/openapi_client/models/sepa_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/sepa_sale_transaction.rb +4 -10
- data/lib/openapi_client/models/sepa_sale_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/shared_secret_configuration_request.rb +3 -9
- data/lib/openapi_client/models/shared_secret_configuration_response.rb +4 -11
- data/lib/openapi_client/models/ship_to_address.rb +3 -9
- data/lib/openapi_client/models/shipping.rb +3 -9
- data/lib/openapi_client/models/{payment_tokenization_response_all_of.rb → sofort_setup.rb} +126 -107
- data/lib/openapi_client/models/{funding_transaction_type_all_of.rb → sofort_setup_response.rb} +47 -22
- data/lib/openapi_client/models/soft_descriptor.rb +52 -13
- data/lib/openapi_client/models/split_shipment.rb +3 -9
- data/lib/openapi_client/models/store_branding_style_configuration.rb +3 -9
- data/lib/openapi_client/models/store_email_settings.rb +3 -9
- data/lib/openapi_client/models/store_email_settings_result.rb +3 -9
- data/lib/openapi_client/models/store_fraud_settings.rb +3 -9
- data/lib/openapi_client/models/store_fraud_settings_result.rb +3 -9
- data/lib/openapi_client/models/store_url_configuration.rb +3 -9
- data/lib/openapi_client/models/store_url_configuration_request.rb +3 -9
- data/lib/openapi_client/models/store_url_configuration_response.rb +4 -11
- data/lib/openapi_client/models/store_url_configuration_result.rb +3 -9
- data/lib/openapi_client/models/stored_credential.rb +3 -9
- data/lib/openapi_client/models/sub_merchant_data.rb +3 -9
- data/lib/openapi_client/models/sub_merchant_split.rb +3 -9
- data/lib/openapi_client/models/tele_check_ach_payment_method.rb +3 -9
- data/lib/openapi_client/models/tele_check_ach_payment_method_ach_bill_to.rb +3 -9
- data/lib/openapi_client/models/tele_check_cbp_payment_method.rb +7 -28
- data/lib/openapi_client/models/tele_check_ica_payment_method.rb +4 -10
- data/lib/openapi_client/models/tele_check_ica_payment_method_all_of.rb +3 -9
- data/lib/openapi_client/models/text.rb +3 -9
- data/lib/openapi_client/models/title.rb +3 -9
- data/lib/openapi_client/models/token_identifier.rb +3 -9
- data/lib/openapi_client/models/top_bar.rb +3 -9
- data/lib/openapi_client/models/transaction_error_response.rb +13 -11
- data/lib/openapi_client/models/transaction_origin.rb +3 -2
- data/lib/openapi_client/models/transaction_response.rb +17 -15
- data/lib/openapi_client/models/transaction_type.rb +2 -2
- data/lib/openapi_client/models/union_pay_authentication_request.rb +4 -10
- data/lib/openapi_client/models/union_pay_authentication_request_all_of.rb +3 -9
- data/lib/openapi_client/models/union_pay_authentication_update_request.rb +4 -10
- data/lib/openapi_client/models/union_pay_authentication_update_request_all_of.rb +3 -9
- data/lib/openapi_client/models/update_email_settings_request.rb +3 -9
- data/lib/openapi_client/models/update_email_settings_response.rb +4 -11
- data/lib/openapi_client/models/update_fraud_settings_request.rb +3 -9
- data/lib/openapi_client/models/update_fraud_settings_response.rb +4 -11
- data/lib/openapi_client/models/update_payment_token.rb +3 -9
- data/lib/openapi_client/models/use_payment_token.rb +3 -9
- data/lib/openapi_client/models/verification3ds.rb +3 -9
- data/lib/openapi_client/models/verification_avs.rb +3 -9
- data/lib/openapi_client/models/verification_cvv.rb +3 -9
- data/lib/openapi_client/models/void_pre_auth_transactions.rb +7 -28
- data/lib/openapi_client/models/void_transaction.rb +11 -22
- data/lib/openapi_client/models/void_transaction_all_of.rb +10 -21
- data/lib/openapi_client/models/wallet_payment_method.rb +3 -9
- data/lib/openapi_client/models/wallet_pre_auth_transaction.rb +4 -10
- data/lib/openapi_client/models/wallet_pre_auth_transaction_all_of.rb +3 -9
- data/lib/openapi_client/models/wallet_sale_transaction.rb +4 -10
- data/lib/openapi_client/models/wallet_sale_transaction_all_of.rb +3 -9
- data/lib/openapi_client/version.rb +3 -3
- data/lib/simple/gateway.rb +5 -4
- data/spec/api/authentication_api_spec.rb +2 -2
- data/spec/api/currency_conversion_api_spec.rb +2 -2
- data/spec/api/fraud_detect_api_spec.rb +2 -2
- data/spec/api/information_lookup_api_spec.rb +2 -2
- data/spec/api/order_api_spec.rb +2 -2
- data/spec/api/payment_api_spec.rb +3 -3
- data/spec/api/payment_schedules_api_spec.rb +2 -2
- data/spec/api/payment_token_api_spec.rb +2 -2
- data/spec/api/payment_url_api_spec.rb +2 -2
- data/spec/api/verification_api_spec.rb +2 -2
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/access_token_request_spec.rb +2 -2
- data/spec/models/access_token_response_spec.rb +2 -2
- data/spec/models/account_info_lookup_request_spec.rb +2 -2
- data/spec/models/account_updater_response_spec.rb +2 -2
- data/spec/models/account_verification_request_spec.rb +8 -2
- data/spec/models/ach_credit_transaction_spec.rb +2 -2
- data/spec/models/ach_post_auth_transaction_all_of_spec.rb +2 -2
- data/spec/models/ach_post_auth_transaction_spec.rb +2 -2
- data/spec/models/ach_pre_auth_transaction_all_of_spec.rb +2 -2
- data/spec/models/ach_pre_auth_transaction_spec.rb +2 -2
- data/spec/models/ach_recurring_type_spec.rb +2 -2
- data/spec/models/ach_response_spec.rb +2 -2
- data/spec/models/ach_return_transaction_spec.rb +2 -2
- data/spec/models/ach_sale_transaction_spec.rb +2 -2
- data/spec/models/ach_void_transaction_spec.rb +2 -2
- data/spec/models/acs_response_spec.rb +2 -2
- data/spec/models/additional_amount_rate_spec.rb +2 -2
- data/spec/models/additional_details_spec.rb +24 -2
- data/spec/models/additional_transaction_details_spec.rb +8 -2
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/airline_ancillary_service_category_spec.rb +2 -2
- data/spec/models/airline_spec.rb +2 -2
- data/spec/models/airline_travel_route_spec.rb +2 -2
- data/spec/models/ali_pay_payment_method_all_of_spec.rb +2 -2
- data/spec/models/ali_pay_payment_method_spec.rb +2 -2
- data/spec/models/ali_pay_sale_transaction_all_of_spec.rb +2 -2
- data/spec/models/ali_pay_sale_transaction_spec.rb +2 -2
- data/spec/models/ali_pay_spec.rb +2 -2
- data/spec/models/amount_components_spec.rb +2 -2
- data/spec/models/amount_spec.rb +2 -2
- data/spec/models/authentication_request_spec.rb +2 -2
- data/spec/models/authentication_result_spec.rb +2 -2
- data/spec/models/authentication_update_request_spec.rb +2 -2
- data/spec/models/avs_response_spec.rb +2 -2
- data/spec/models/background_color_spec.rb +2 -2
- data/spec/models/background_spec.rb +2 -2
- data/spec/models/bancontact_qr_spec.rb +2 -2
- data/spec/models/basic_response_spec.rb +2 -2
- data/spec/models/billing_address_spec.rb +2 -2
- data/spec/models/billing_spec.rb +14 -2
- data/spec/models/block_card_spec.rb +2 -2
- data/spec/models/block_domain_spec.rb +2 -2
- data/spec/models/block_ip_address_spec.rb +2 -2
- data/spec/models/block_name_spec.rb +2 -2
- data/spec/models/blocked_card_number_spec.rb +2 -2
- data/spec/models/blocked_items_spec.rb +2 -2
- data/spec/models/body_spec.rb +2 -2
- data/spec/models/borders_spec.rb +2 -2
- data/spec/models/branding_style_configuration_request_spec.rb +2 -2
- data/spec/models/branding_style_configuration_response_spec.rb +2 -2
- data/spec/models/branding_style_configuration_result_spec.rb +2 -2
- data/spec/models/button_spec.rb +2 -2
- data/spec/models/car_rental_extra_charges_spec.rb +2 -2
- data/spec/models/car_rental_spec.rb +2 -2
- data/spec/models/card_function_spec.rb +2 -2
- data/spec/models/card_info_lookup_request_spec.rb +2 -2
- data/spec/models/card_info_lookup_response_spec.rb +2 -2
- data/spec/models/card_info_spec.rb +2 -2
- data/spec/models/card_spec.rb +2 -2
- data/spec/models/card_verification_request_spec.rb +2 -2
- data/spec/models/{payment_registration_all_of_spec.rb → cardholder_info_response_spec.rb} +14 -14
- data/spec/models/china_domestic_payment_method_all_of_spec.rb +2 -2
- data/spec/models/china_domestic_payment_method_spec.rb +2 -2
- data/spec/models/china_domestic_spec.rb +8 -2
- data/spec/models/china_pn_r_sale_transaction_all_of_spec.rb +2 -2
- data/spec/models/china_pn_r_sale_transaction_spec.rb +2 -2
- data/spec/models/classic_mode_spec.rb +2 -2
- data/spec/models/clearing_details_spec.rb +2 -2
- data/spec/models/clearing_element_spec.rb +2 -2
- data/spec/models/client_locale_spec.rb +2 -2
- data/spec/models/client_registration_spec.rb +2 -2
- data/spec/models/combined_mode_spec.rb +2 -2
- data/spec/models/connect_mode_spec.rb +2 -2
- data/spec/models/contact_spec.rb +2 -2
- data/spec/models/content_spec.rb +2 -2
- data/spec/models/country_profile_spec.rb +2 -2
- data/spec/models/create_payment_token_spec.rb +2 -2
- data/spec/models/{delete_branding_style_configuration_response_all_of_spec.rb → currency_conversion_response_spec.rb} +10 -10
- data/spec/models/currency_conversion_spec.rb +2 -2
- data/spec/models/customer_address_spec.rb +2 -2
- data/spec/models/customer_spec.rb +2 -2
- data/spec/models/dcc_all_of_spec.rb +2 -2
- data/spec/models/dcc_exchange_rate_request_all_of_spec.rb +2 -2
- data/spec/models/dcc_exchange_rate_request_spec.rb +2 -2
- data/spec/models/dcc_spec.rb +2 -2
- data/spec/models/decrypted_apple_pay_spec.rb +2 -14
- data/spec/models/decrypted_apple_pay_wallet_payment_method_all_of_spec.rb +2 -2
- data/spec/models/decrypted_apple_pay_wallet_payment_method_spec.rb +2 -2
- data/spec/models/decrypted_google_pay_spec.rb +7 -13
- data/spec/models/decrypted_google_pay_wallet_payment_method_all_of_spec.rb +2 -2
- data/spec/models/decrypted_google_pay_wallet_payment_method_spec.rb +2 -2
- data/spec/models/decrypted_samsung_pay_spec.rb +2 -14
- data/spec/models/decrypted_samsung_pay_wallet_payment_method_all_of_spec.rb +2 -2
- data/spec/models/decrypted_samsung_pay_wallet_payment_method_spec.rb +2 -2
- data/spec/models/delete_branding_style_configuration_response_spec.rb +2 -2
- data/spec/models/device_spec.rb +2 -2
- data/spec/models/disbursement_spec.rb +2 -2
- data/spec/models/disbursement_transaction_type_spec.rb +2 -8
- data/spec/models/document_spec.rb +2 -2
- data/spec/models/dynamic_pricing_all_of_spec.rb +2 -2
- data/spec/models/dynamic_pricing_exchange_rate_request_all_of_spec.rb +2 -2
- data/spec/models/dynamic_pricing_exchange_rate_request_spec.rb +2 -2
- data/spec/models/dynamic_pricing_spec.rb +2 -2
- data/spec/models/email_notification_data_spec.rb +2 -2
- data/spec/models/encrypted_apple_pay_header_spec.rb +2 -2
- data/spec/models/encrypted_apple_pay_spec.rb +2 -2
- data/spec/models/encrypted_apple_pay_wallet_payment_method_all_of_spec.rb +2 -2
- data/spec/models/encrypted_apple_pay_wallet_payment_method_spec.rb +2 -2
- data/spec/models/encrypted_google_pay_data_spec.rb +2 -2
- data/spec/models/encrypted_google_pay_spec.rb +2 -2
- data/spec/models/encrypted_google_pay_wallet_payment_method_all_of_spec.rb +2 -2
- data/spec/models/encrypted_google_pay_wallet_payment_method_spec.rb +2 -2
- data/spec/models/encrypted_samsung_pay_spec.rb +2 -2
- data/spec/models/encrypted_samsung_pay_wallet_payment_method_all_of_spec.rb +2 -2
- data/spec/models/encrypted_samsung_pay_wallet_payment_method_spec.rb +2 -2
- data/spec/models/endpoint_response_spec.rb +2 -2
- data/spec/models/error_details_spec.rb +2 -2
- data/spec/models/error_message_spec.rb +2 -2
- data/spec/models/error_response_spec.rb +2 -2
- data/spec/models/error_spec.rb +2 -2
- data/spec/models/{exchange_rate_response_all_of_spec.rb → exchange_rate_details_spec.rb} +8 -20
- data/spec/models/exchange_rate_request_spec.rb +2 -2
- data/spec/models/exchange_rate_response_spec.rb +3 -51
- data/spec/models/expiration_spec.rb +2 -2
- data/spec/models/font_face_spec.rb +2 -2
- data/spec/models/font_properties_spec.rb +2 -2
- data/spec/models/font_weight_spec.rb +2 -2
- data/spec/models/footer_spec.rb +2 -2
- data/spec/models/fraud_address_spec.rb +2 -2
- data/spec/models/fraud_order_items_spec.rb +2 -2
- data/spec/models/fraud_order_spec.rb +8 -2
- data/spec/models/fraud_registration_card_spec.rb +2 -2
- data/spec/models/fraud_registration_device_items_spec.rb +2 -2
- data/spec/models/fraud_registration_device_spec.rb +2 -2
- data/spec/models/fraud_registration_error_spec.rb +2 -2
- data/spec/models/fraud_registration_response_spec.rb +3 -3
- data/spec/models/fraud_registration_spec.rb +2 -2
- data/spec/models/fraud_score_spec.rb +2 -2
- data/spec/models/fraud_settings_response_spec.rb +2 -2
- data/spec/models/fraud_settings_spec.rb +2 -2
- data/spec/models/frequency_spec.rb +2 -2
- data/spec/models/funding_transaction_type_spec.rb +2 -8
- data/spec/models/{shared_secret_configuration_response_all_of_spec.rb → generate_certificate_from_csr_response_spec.rb} +12 -12
- data/spec/models/{order_response_all_of_spec.rb → generate_certificate_response_spec.rb} +13 -13
- data/spec/models/header_spec.rb +2 -2
- data/spec/models/hover_spec.rb +2 -2
- data/spec/models/id_info_spec.rb +2 -2
- data/spec/models/{payment_url_response_all_of_spec.rb → ideal_setup_response_spec.rb} +12 -16
- data/spec/models/{disbursement_transaction_type_all_of_spec.rb → ideal_setup_spec.rb} +15 -9
- data/spec/models/industry_specific_extensions_spec.rb +2 -2
- data/spec/models/initiate_clearing_response_all_of_spec.rb +2 -2
- data/spec/models/initiate_clearing_response_spec.rb +2 -2
- data/spec/models/installment_options_spec.rb +2 -2
- data/spec/models/issuer_response_spec.rb +2 -2
- data/spec/models/items_spec.rb +2 -2
- data/spec/models/location_spec.rb +2 -2
- data/spec/models/lockout_time_spec.rb +2 -2
- data/spec/models/lodging_extra_charges_spec.rb +2 -2
- data/spec/models/lodging_spec.rb +2 -2
- data/spec/models/logo_spec.rb +2 -2
- data/spec/models/loyalty_spec.rb +2 -2
- data/spec/models/masterpass_wallet_payment_method_all_of_spec.rb +2 -2
- data/spec/models/masterpass_wallet_payment_method_spec.rb +2 -2
- data/spec/models/maximum_purchase_amount_spec.rb +2 -2
- data/spec/models/mcc6012_spec.rb +2 -2
- data/spec/models/merchant_spec.rb +2 -2
- data/spec/models/method_spec.rb +2 -2
- data/spec/models/mobile_header_area_spec.rb +2 -2
- data/spec/models/mobile_spec.rb +2 -2
- data/spec/models/order_error_response_spec.rb +2 -2
- data/spec/models/order_response_spec.rb +2 -2
- data/spec/models/order_spec.rb +2 -2
- data/spec/models/pay_pal_payment_method_all_of_spec.rb +2 -2
- data/spec/models/pay_pal_payment_method_spec.rb +2 -2
- data/spec/models/pay_pal_spec.rb +2 -2
- data/spec/models/payment_card_credit_transaction_spec.rb +2 -2
- data/spec/models/payment_card_disbursement_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_card_disbursement_transaction_spec.rb +2 -2
- data/spec/models/payment_card_forced_ticket_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_card_forced_ticket_transaction_spec.rb +2 -2
- data/spec/models/payment_card_info_lookup_request_all_of_spec.rb +2 -2
- data/spec/models/payment_card_info_lookup_request_spec.rb +2 -2
- data/spec/models/payment_card_payer_auth_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_card_payer_auth_transaction_spec.rb +2 -2
- data/spec/models/payment_card_payment_method_all_of_spec.rb +2 -2
- data/spec/models/payment_card_payment_method_spec.rb +2 -2
- data/spec/models/payment_card_payment_token_update_request_spec.rb +2 -2
- data/spec/models/payment_card_payment_tokenization_request_all_of_spec.rb +2 -2
- data/spec/models/payment_card_payment_tokenization_request_spec.rb +2 -2
- data/spec/models/payment_card_pre_auth_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_card_pre_auth_transaction_spec.rb +2 -2
- data/spec/models/payment_card_sale_transaction_all_of_spec.rb +2 -8
- data/spec/models/payment_card_sale_transaction_spec.rb +2 -8
- data/spec/models/payment_card_spec.rb +2 -2
- data/spec/models/payment_card_verification_request_all_of_spec.rb +2 -2
- data/spec/models/payment_card_verification_request_spec.rb +2 -2
- data/spec/models/payment_device_credit_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_device_credit_transaction_spec.rb +2 -2
- data/spec/models/payment_device_disbursement_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_device_disbursement_transaction_spec.rb +2 -2
- data/spec/models/payment_device_payment_method_all_of_spec.rb +2 -2
- data/spec/models/payment_device_payment_method_spec.rb +2 -2
- data/spec/models/payment_device_payment_tokenization_request_all_of_spec.rb +2 -2
- data/spec/models/payment_device_payment_tokenization_request_spec.rb +2 -2
- data/spec/models/payment_device_pre_auth_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_device_pre_auth_transaction_spec.rb +2 -2
- data/spec/models/payment_device_sale_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_device_sale_transaction_spec.rb +2 -2
- data/spec/models/payment_device_spec.rb +2 -2
- data/spec/models/payment_facilitator_spec.rb +2 -2
- data/spec/models/payment_method_details_spec.rb +2 -2
- data/spec/models/payment_method_payment_schedules_request_all_of_spec.rb +2 -2
- data/spec/models/payment_method_payment_schedules_request_spec.rb +2 -2
- data/spec/models/payment_method_type_spec.rb +2 -2
- data/spec/models/payment_registration_spec.rb +2 -2
- data/spec/models/payment_schedules_error_response_spec.rb +2 -2
- data/spec/models/payment_schedules_request_spec.rb +2 -2
- data/spec/models/payment_schedules_response_spec.rb +2 -2
- data/spec/models/payment_spec.rb +2 -2
- data/spec/models/payment_token_credit_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_token_credit_transaction_spec.rb +2 -2
- data/spec/models/payment_token_details_all_of_spec.rb +2 -2
- data/spec/models/payment_token_details_spec.rb +2 -2
- data/spec/models/payment_token_disbursement_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_token_disbursement_transaction_spec.rb +2 -2
- data/spec/models/payment_token_info_lookup_request_all_of_spec.rb +2 -2
- data/spec/models/payment_token_info_lookup_request_spec.rb +2 -2
- data/spec/models/payment_token_payment_method_all_of_spec.rb +2 -2
- data/spec/models/payment_token_payment_method_spec.rb +2 -2
- data/spec/models/payment_token_pre_auth_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_token_pre_auth_transaction_spec.rb +2 -2
- data/spec/models/payment_token_sale_transaction_all_of_spec.rb +2 -2
- data/spec/models/payment_token_sale_transaction_spec.rb +2 -2
- data/spec/models/payment_token_update_response_spec.rb +2 -2
- data/spec/models/payment_token_verification_request_all_of_spec.rb +2 -2
- data/spec/models/payment_token_verification_request_spec.rb +2 -2
- data/spec/models/payment_tokenization_error_response_spec.rb +14 -2
- data/spec/models/payment_tokenization_request_spec.rb +8 -2
- data/spec/models/payment_tokenization_response_spec.rb +14 -2
- data/spec/models/payment_url_detail_response_spec.rb +2 -2
- data/spec/models/payment_url_detail_spec.rb +2 -2
- data/spec/models/payment_url_error_response_spec.rb +2 -2
- data/spec/models/payment_url_request_spec.rb +2 -2
- data/spec/models/payment_url_response_spec.rb +2 -2
- data/spec/models/payment_url_status_spec.rb +2 -2
- data/spec/models/paypal_credit_transaction_all_of_spec.rb +2 -2
- data/spec/models/paypal_credit_transaction_spec.rb +2 -2
- data/spec/models/phone_spec.rb +2 -2
- data/spec/models/post_auth_transaction_all_of_spec.rb +2 -2
- data/spec/models/post_auth_transaction_spec.rb +2 -2
- data/spec/models/primary_spec.rb +2 -2
- data/spec/models/primary_transaction_spec.rb +2 -2
- data/spec/models/processor_data_spec.rb +14 -2
- data/spec/models/properties_spec.rb +2 -2
- data/spec/models/purchase_cards_level2_spec.rb +2 -2
- data/spec/models/purchase_cards_level3_line_items_spec.rb +2 -2
- data/spec/models/purchase_cards_level3_spec.rb +2 -2
- data/spec/models/purchase_cards_spec.rb +2 -2
- data/spec/models/{client_registration_all_of_spec.rb → receipt_line_spec.rb} +15 -9
- data/spec/models/{payment_token_update_response_all_of_spec.rb → receipt_request_info_spec.rb} +13 -13
- data/spec/models/{card_info_lookup_response_all_of_spec.rb → receipt_spec.rb} +14 -14
- data/spec/models/receiver_info_spec.rb +2 -2
- data/spec/models/recurring_payment_details_response_spec.rb +2 -2
- data/spec/models/recurring_payment_details_spec.rb +2 -2
- data/spec/models/referenced_order_payment_schedules_request_all_of_spec.rb +2 -2
- data/spec/models/referenced_order_payment_schedules_request_spec.rb +2 -2
- data/spec/models/referenced_order_payment_tokenization_request_all_of_spec.rb +2 -2
- data/spec/models/referenced_order_payment_tokenization_request_spec.rb +2 -2
- data/spec/models/registration_method_spec.rb +2 -2
- data/spec/models/remove_fraud_blocked_items_response_spec.rb +2 -2
- data/spec/models/response_amount_components_all_of_spec.rb +2 -2
- data/spec/models/response_amount_components_spec.rb +2 -2
- data/spec/models/response_type_spec.rb +2 -2
- data/spec/models/return_transaction_all_of_spec.rb +8 -2
- data/spec/models/return_transaction_spec.rb +8 -2
- data/spec/models/score_only_request_spec.rb +2 -2
- data/spec/models/score_only_response_fraud_score_explanations_spec.rb +2 -2
- data/spec/models/score_only_response_fraud_score_spec.rb +8 -2
- data/spec/models/score_only_response_spec.rb +4 -10
- data/spec/models/secondary_transaction_spec.rb +2 -2
- data/spec/models/secure3_d10_authentication_request_all_of_spec.rb +3 -3
- data/spec/models/secure3_d10_authentication_request_spec.rb +3 -3
- data/spec/models/secure3_d10_authentication_result_all_of_spec.rb +2 -2
- data/spec/models/secure3_d10_authentication_result_spec.rb +2 -2
- data/spec/models/secure3_d10_authentication_update_request_all_of_spec.rb +2 -2
- data/spec/models/secure3_d10_authentication_update_request_spec.rb +2 -2
- data/spec/models/secure3_d21_authentication_request_all_of_spec.rb +2 -2
- data/spec/models/secure3_d21_authentication_request_spec.rb +2 -2
- data/spec/models/secure3_d21_authentication_result_all_of_spec.rb +2 -2
- data/spec/models/secure3_d21_authentication_result_spec.rb +2 -2
- data/spec/models/secure3_d21_authentication_update_request_all_of_spec.rb +2 -2
- data/spec/models/secure3_d21_authentication_update_request_spec.rb +2 -2
- data/spec/models/secure3_d_authentication_request_all_of_spec.rb +77 -0
- data/spec/models/secure3_d_authentication_request_spec.rb +77 -0
- data/spec/models/secure3_d_authentication_response_params_spec.rb +2 -2
- data/spec/models/secure3_d_authentication_response_secure3d_method_spec.rb +2 -2
- data/spec/models/secure3_d_authentication_response_spec.rb +2 -2
- data/spec/models/secure3_d_authentication_result_all_of_spec.rb +73 -0
- data/spec/models/{fraud_settings_response_all_of_spec.rb → secure3_d_authentication_result_spec.rb} +21 -31
- data/spec/models/secure3_d_authentication_update_request_spec.rb +51 -0
- data/spec/models/secure3d_response_spec.rb +2 -2
- data/spec/models/sender_info_spec.rb +2 -2
- data/spec/models/sepa_mandate_spec.rb +2 -2
- data/spec/models/sepa_payment_method_all_of_spec.rb +2 -2
- data/spec/models/sepa_payment_method_spec.rb +2 -2
- data/spec/models/sepa_sale_transaction_all_of_spec.rb +2 -2
- data/spec/models/sepa_sale_transaction_spec.rb +2 -2
- data/spec/models/sepa_spec.rb +2 -2
- data/spec/models/shared_secret_configuration_request_spec.rb +2 -2
- data/spec/models/shared_secret_configuration_response_spec.rb +2 -2
- data/spec/models/ship_to_address_spec.rb +2 -2
- data/spec/models/shipping_spec.rb +2 -2
- data/spec/models/sofort_setup_response_spec.rb +59 -0
- data/spec/models/{payment_schedules_response_all_of_spec.rb → sofort_setup_spec.rb} +11 -15
- data/spec/models/soft_descriptor_spec.rb +14 -2
- data/spec/models/split_shipment_spec.rb +2 -2
- data/spec/models/store_branding_style_configuration_spec.rb +2 -2
- data/spec/models/store_email_settings_result_spec.rb +2 -2
- data/spec/models/store_email_settings_spec.rb +2 -2
- data/spec/models/store_fraud_settings_result_spec.rb +2 -2
- data/spec/models/store_fraud_settings_spec.rb +2 -2
- data/spec/models/store_url_configuration_request_spec.rb +2 -2
- data/spec/models/store_url_configuration_response_spec.rb +2 -2
- data/spec/models/store_url_configuration_result_spec.rb +2 -2
- data/spec/models/store_url_configuration_spec.rb +2 -2
- data/spec/models/stored_credential_spec.rb +2 -2
- data/spec/models/sub_merchant_data_spec.rb +2 -2
- data/spec/models/sub_merchant_split_spec.rb +2 -2
- data/spec/models/tele_check_ach_payment_method_ach_bill_to_spec.rb +2 -2
- data/spec/models/tele_check_ach_payment_method_spec.rb +2 -2
- data/spec/models/tele_check_cbp_payment_method_spec.rb +2 -8
- data/spec/models/tele_check_ica_payment_method_all_of_spec.rb +2 -2
- data/spec/models/tele_check_ica_payment_method_spec.rb +2 -2
- data/spec/models/text_spec.rb +2 -2
- data/spec/models/title_spec.rb +2 -2
- data/spec/models/token_identifier_spec.rb +2 -2
- data/spec/models/top_bar_spec.rb +2 -2
- data/spec/models/transaction_error_response_spec.rb +8 -2
- data/spec/models/transaction_origin_spec.rb +2 -2
- data/spec/models/transaction_response_spec.rb +8 -2
- data/spec/models/transaction_type_spec.rb +2 -2
- data/spec/models/union_pay_authentication_request_all_of_spec.rb +2 -2
- data/spec/models/union_pay_authentication_request_spec.rb +2 -2
- data/spec/models/union_pay_authentication_update_request_all_of_spec.rb +2 -2
- data/spec/models/union_pay_authentication_update_request_spec.rb +2 -2
- data/spec/models/update_email_settings_request_spec.rb +2 -2
- data/spec/models/update_email_settings_response_spec.rb +2 -2
- data/spec/models/update_fraud_settings_request_spec.rb +2 -2
- data/spec/models/update_fraud_settings_response_spec.rb +2 -2
- data/spec/models/update_payment_token_spec.rb +2 -2
- data/spec/models/use_payment_token_spec.rb +2 -2
- data/spec/models/verification3ds_spec.rb +2 -2
- data/spec/models/verification_avs_spec.rb +2 -2
- data/spec/models/verification_cvv_spec.rb +2 -2
- data/spec/models/void_pre_auth_transactions_spec.rb +2 -8
- data/spec/models/void_transaction_all_of_spec.rb +3 -3
- data/spec/models/void_transaction_spec.rb +3 -3
- data/spec/models/wallet_payment_method_spec.rb +2 -2
- data/spec/models/wallet_pre_auth_transaction_all_of_spec.rb +2 -2
- data/spec/models/wallet_pre_auth_transaction_spec.rb +2 -2
- data/spec/models/wallet_sale_transaction_all_of_spec.rb +2 -2
- data/spec/models/wallet_sale_transaction_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +62 -114
- data/docs/BrandingStyleConfigurationResponseAllOf.md +0 -17
- data/docs/CardInfoLookupApi.md +0 -70
- data/docs/CardInfoLookupResponseAllOf.md +0 -19
- data/docs/CardVerificationApi.md +0 -70
- data/docs/ClientRegistrationAllOf.md +0 -17
- data/docs/CustomerAddressAllOf.md +0 -17
- data/docs/DeleteBrandingStyleConfigurationResponseAllOf.md +0 -19
- data/docs/DisbursementTransactionTypeAllOf.md +0 -17
- data/docs/ErrorResponseAllOf.md +0 -17
- data/docs/FraudSettingsResponseAllOf.md +0 -31
- data/docs/FundingTransactionTypeAllOf.md +0 -17
- data/docs/OrderResponseAllOf.md +0 -25
- data/docs/PaymentRegistrationAllOf.md +0 -27
- data/docs/PaymentSchedulesResponseAllOf.md +0 -21
- data/docs/PaymentTokenUpdateResponseAllOf.md +0 -21
- data/docs/PaymentTokenizationResponseAllOf.md +0 -31
- data/docs/PaymentUrlDetailResponseAllOf.md +0 -17
- data/docs/PaymentUrlResponseAllOf.md +0 -23
- data/docs/RecurringPaymentDetailsResponseAllOf.md +0 -17
- data/docs/RemoveFraudBlockedItemsResponseAllOf.md +0 -17
- data/docs/Secure3D10AuthenticationRequestAllOf.md +0 -17
- data/docs/SharedSecretConfigurationResponseAllOf.md +0 -23
- data/docs/StoreUrlConfigurationResponseAllOf.md +0 -17
- data/docs/TeleCheckCBPPaymentMethodAllOf.md +0 -17
- data/docs/TransactionResponseAllOf.md +0 -59
- data/docs/UpdateEmailSettingsResponseAllOf.md +0 -17
- data/docs/UpdateFraudSettingsResponseAllOf.md +0 -17
- data/lib/openapi_client/.DS_Store +0 -0
- data/lib/openapi_client/api/card_info_lookup_api.rb +0 -125
- data/lib/openapi_client/api/card_verification_api.rb +0 -125
- data/lib/openapi_client/models/branding_style_configuration_response_all_of.rb +0 -213
- data/lib/openapi_client/models/client_registration_all_of.rb +0 -212
- data/lib/openapi_client/models/customer_address_all_of.rb +0 -211
- data/lib/openapi_client/models/fraud_settings_response_all_of.rb +0 -291
- data/lib/openapi_client/models/order_response_all_of.rb +0 -251
- data/lib/openapi_client/models/payment_url_detail_response_all_of.rb +0 -214
- data/lib/openapi_client/models/recurring_payment_details_response_all_of.rb +0 -211
- data/lib/openapi_client/models/remove_fraud_blocked_items_response_all_of.rb +0 -212
- data/lib/openapi_client/models/shared_secret_configuration_response_all_of.rb +0 -242
- data/lib/openapi_client/models/tele_check_cbp_payment_method_all_of.rb +0 -216
- data/lib/openapi_client/models/transaction_response_all_of.rb +0 -502
- data/lib/openapi_client/models/update_email_settings_response_all_of.rb +0 -213
- data/lib/openapi_client/models/update_fraud_settings_response_all_of.rb +0 -213
- data/spec/api/card_info_lookup_api_spec.rb +0 -53
- data/spec/api/card_verification_api_spec.rb +0 -53
- data/spec/models/branding_style_configuration_response_all_of_spec.rb +0 -41
- data/spec/models/customer_address_all_of_spec.rb +0 -41
- data/spec/models/error_response_all_of_spec.rb +0 -41
- data/spec/models/funding_transaction_type_all_of_spec.rb +0 -41
- data/spec/models/payment_tokenization_response_all_of_spec.rb +0 -87
- data/spec/models/payment_url_detail_response_all_of_spec.rb +0 -41
- data/spec/models/recurring_payment_details_response_all_of_spec.rb +0 -41
- data/spec/models/remove_fraud_blocked_items_response_all_of_spec.rb +0 -41
- data/spec/models/store_url_configuration_response_all_of_spec.rb +0 -41
- data/spec/models/tele_check_cbp_payment_method_all_of_spec.rb +0 -41
- data/spec/models/transaction_response_all_of_spec.rb +0 -175
- data/spec/models/update_email_settings_response_all_of_spec.rb +0 -41
- data/spec/models/update_fraud_settings_response_all_of_spec.rb +0 -41
@@ -0,0 +1,316 @@
|
|
1
|
+
=begin
|
2
|
+
#Payment Gateway API Specification.
|
3
|
+
|
4
|
+
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 21.1.0.20210122.001
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module OpenapiClient
|
16
|
+
class Secure3DAuthenticationRequestAllOf
|
17
|
+
# The result of the authentication will be sent to this URL. If not provided, a term URL will be dynamically generated. Note this must be a valid URL (special characters should be URL-encoded).
|
18
|
+
attr_accessor :term_url
|
19
|
+
|
20
|
+
# The 3DS method iframe and transaction ID will be sent here. Note this must be a valid URL (special characters should be URL-encoded).
|
21
|
+
attr_accessor :method_notification_url
|
22
|
+
|
23
|
+
# Indicates whether or not a challenge should be performed. 01 = No preference (You have no preference whether a challenge should be performed. This is the default value) 02 = No challenge requested (You prefer that no challenge should be performed) 03 = Challenge requested: 3DS Requestor Preference (You prefer that a challenge should be performed) 04 = Challenge requested: Mandate (There are local or regional mandates that mean that a challenge must be performed)
|
24
|
+
attr_accessor :challenge_indicator
|
25
|
+
|
26
|
+
# Indicates the message category of 3d secure authentication version 2.X. 01 = Payment Authentication 02 = Non-Payment Authentication 80 = Mastercard Data Only
|
27
|
+
attr_accessor :message_category
|
28
|
+
|
29
|
+
# Defines the size of the challenge window displayed to customers during authentication. 01 = 250 x 400 02 = 390 x 400 03 = 500 x 600 04 = 600 x 400 05 = Full screen
|
30
|
+
attr_accessor :challenge_window_size
|
31
|
+
|
32
|
+
class EnumAttributeValidator
|
33
|
+
attr_reader :datatype
|
34
|
+
attr_reader :allowable_values
|
35
|
+
|
36
|
+
def initialize(datatype, allowable_values)
|
37
|
+
@allowable_values = allowable_values.map do |value|
|
38
|
+
case datatype.to_s
|
39
|
+
when /Integer/i
|
40
|
+
value.to_i
|
41
|
+
when /Float/i
|
42
|
+
value.to_f
|
43
|
+
else
|
44
|
+
value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def valid?(value)
|
50
|
+
!value || allowable_values.include?(value)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
55
|
+
def self.attribute_map
|
56
|
+
{
|
57
|
+
:'term_url' => :'termURL',
|
58
|
+
:'method_notification_url' => :'methodNotificationURL',
|
59
|
+
:'challenge_indicator' => :'challengeIndicator',
|
60
|
+
:'message_category' => :'messageCategory',
|
61
|
+
:'challenge_window_size' => :'challengeWindowSize'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# Attribute type mapping.
|
66
|
+
def self.openapi_types
|
67
|
+
{
|
68
|
+
:'term_url' => :'String',
|
69
|
+
:'method_notification_url' => :'String',
|
70
|
+
:'challenge_indicator' => :'String',
|
71
|
+
:'message_category' => :'String',
|
72
|
+
:'challenge_window_size' => :'String'
|
73
|
+
}
|
74
|
+
end
|
75
|
+
|
76
|
+
# Initializes the object
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
78
|
+
def initialize(attributes = {})
|
79
|
+
if (!attributes.is_a?(Hash))
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3DAuthenticationRequestAllOf` initialize method"
|
81
|
+
end
|
82
|
+
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
84
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
85
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
86
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3DAuthenticationRequestAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
87
|
+
end
|
88
|
+
h[k.to_sym] = v
|
89
|
+
}
|
90
|
+
|
91
|
+
if attributes.key?(:'term_url')
|
92
|
+
self.term_url = attributes[:'term_url']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'method_notification_url')
|
96
|
+
self.method_notification_url = attributes[:'method_notification_url']
|
97
|
+
end
|
98
|
+
|
99
|
+
if attributes.key?(:'challenge_indicator')
|
100
|
+
self.challenge_indicator = attributes[:'challenge_indicator']
|
101
|
+
else
|
102
|
+
self.challenge_indicator = '01'
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'message_category')
|
106
|
+
self.message_category = attributes[:'message_category']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'challenge_window_size')
|
110
|
+
self.challenge_window_size = attributes[:'challenge_window_size']
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
115
|
+
# @return Array for valid properties with the reasons
|
116
|
+
def list_invalid_properties
|
117
|
+
invalid_properties = Array.new
|
118
|
+
if @term_url.nil?
|
119
|
+
invalid_properties.push('invalid value for "term_url", term_url cannot be nil.')
|
120
|
+
end
|
121
|
+
|
122
|
+
if @method_notification_url.nil?
|
123
|
+
invalid_properties.push('invalid value for "method_notification_url", method_notification_url cannot be nil.')
|
124
|
+
end
|
125
|
+
|
126
|
+
invalid_properties
|
127
|
+
end
|
128
|
+
|
129
|
+
# Check to see if the all the properties in the model are valid
|
130
|
+
# @return true if the model is valid
|
131
|
+
def valid?
|
132
|
+
return false if @term_url.nil?
|
133
|
+
return false if @method_notification_url.nil?
|
134
|
+
challenge_indicator_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04"])
|
135
|
+
return false unless challenge_indicator_validator.valid?(@challenge_indicator)
|
136
|
+
message_category_validator = EnumAttributeValidator.new('String', ["01", "02", "80"])
|
137
|
+
return false unless message_category_validator.valid?(@message_category)
|
138
|
+
challenge_window_size_validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05"])
|
139
|
+
return false unless challenge_window_size_validator.valid?(@challenge_window_size)
|
140
|
+
true
|
141
|
+
end
|
142
|
+
|
143
|
+
# Custom attribute writer method checking allowed values (enum).
|
144
|
+
# @param [Object] challenge_indicator Object to be assigned
|
145
|
+
def challenge_indicator=(challenge_indicator)
|
146
|
+
validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04"])
|
147
|
+
unless validator.valid?(challenge_indicator)
|
148
|
+
fail ArgumentError, "invalid value for \"challenge_indicator\", must be one of #{validator.allowable_values}."
|
149
|
+
end
|
150
|
+
@challenge_indicator = challenge_indicator
|
151
|
+
end
|
152
|
+
|
153
|
+
# Custom attribute writer method checking allowed values (enum).
|
154
|
+
# @param [Object] message_category Object to be assigned
|
155
|
+
def message_category=(message_category)
|
156
|
+
validator = EnumAttributeValidator.new('String', ["01", "02", "80"])
|
157
|
+
unless validator.valid?(message_category)
|
158
|
+
fail ArgumentError, "invalid value for \"message_category\", must be one of #{validator.allowable_values}."
|
159
|
+
end
|
160
|
+
@message_category = message_category
|
161
|
+
end
|
162
|
+
|
163
|
+
# Custom attribute writer method checking allowed values (enum).
|
164
|
+
# @param [Object] challenge_window_size Object to be assigned
|
165
|
+
def challenge_window_size=(challenge_window_size)
|
166
|
+
validator = EnumAttributeValidator.new('String', ["01", "02", "03", "04", "05"])
|
167
|
+
unless validator.valid?(challenge_window_size)
|
168
|
+
fail ArgumentError, "invalid value for \"challenge_window_size\", must be one of #{validator.allowable_values}."
|
169
|
+
end
|
170
|
+
@challenge_window_size = challenge_window_size
|
171
|
+
end
|
172
|
+
|
173
|
+
# Checks equality by comparing each attribute.
|
174
|
+
# @param [Object] Object to be compared
|
175
|
+
def ==(o)
|
176
|
+
return true if self.equal?(o)
|
177
|
+
self.class == o.class &&
|
178
|
+
term_url == o.term_url &&
|
179
|
+
method_notification_url == o.method_notification_url &&
|
180
|
+
challenge_indicator == o.challenge_indicator &&
|
181
|
+
message_category == o.message_category &&
|
182
|
+
challenge_window_size == o.challenge_window_size
|
183
|
+
end
|
184
|
+
|
185
|
+
# @see the `==` method
|
186
|
+
# @param [Object] Object to be compared
|
187
|
+
def eql?(o)
|
188
|
+
self == o
|
189
|
+
end
|
190
|
+
|
191
|
+
# Calculates hash code according to all attributes.
|
192
|
+
# @return [Integer] Hash code
|
193
|
+
def hash
|
194
|
+
[term_url, method_notification_url, challenge_indicator, message_category, challenge_window_size].hash
|
195
|
+
end
|
196
|
+
|
197
|
+
# Builds the object from hash
|
198
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
199
|
+
# @return [Object] Returns the model itself
|
200
|
+
def self.build_from_hash(attributes)
|
201
|
+
new.build_from_hash(attributes)
|
202
|
+
end
|
203
|
+
|
204
|
+
# Builds the object from hash
|
205
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
206
|
+
# @return [Object] Returns the model itself
|
207
|
+
def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
|
208
|
+
return nil unless attributes.is_a?(Hash)
|
209
|
+
openapi_types.each_pair do |key, type|
|
210
|
+
if type =~ /\AArray<(.*)>/i
|
211
|
+
# check to ensure the input is an array given that the attribute
|
212
|
+
# is documented as an array but the input is not
|
213
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
214
|
+
self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
|
215
|
+
end
|
216
|
+
elsif !attributes[attribute_map[key]].nil?
|
217
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
|
218
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
219
|
+
end
|
220
|
+
|
221
|
+
self
|
222
|
+
end
|
223
|
+
|
224
|
+
# Deserializes the data based on type
|
225
|
+
# @param string type Data type
|
226
|
+
# @param string value Value to be deserialized
|
227
|
+
# @return [Object] Deserialized data
|
228
|
+
def _deserialize(type, value)
|
229
|
+
case type.to_sym
|
230
|
+
when :DateTime
|
231
|
+
DateTime.parse(value)
|
232
|
+
when :Date
|
233
|
+
Date.parse(value)
|
234
|
+
when :String
|
235
|
+
value.to_s
|
236
|
+
when :Integer
|
237
|
+
value.to_i
|
238
|
+
when :Float
|
239
|
+
value.to_f
|
240
|
+
when :Boolean
|
241
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
242
|
+
true
|
243
|
+
else
|
244
|
+
false
|
245
|
+
end
|
246
|
+
when :Object
|
247
|
+
# generic object (usually a Hash), return directly
|
248
|
+
value
|
249
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
250
|
+
inner_type = Regexp.last_match[:inner_type]
|
251
|
+
value.map { |v| _deserialize(inner_type, v) }
|
252
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
253
|
+
k_type = Regexp.last_match[:k_type]
|
254
|
+
v_type = Regexp.last_match[:v_type]
|
255
|
+
{}.tap do |hash|
|
256
|
+
value.each do |k, v|
|
257
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
else # model
|
261
|
+
klass = OpenapiClient.const_get(type)
|
262
|
+
if klass.respond_to?(:openapi_discriminator_name)
|
263
|
+
klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
|
264
|
+
end
|
265
|
+
|
266
|
+
klass.build_from_hash(value)
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
# Returns the string representation of the object
|
271
|
+
# @return [String] String presentation of the object
|
272
|
+
def to_s
|
273
|
+
to_hash.to_s
|
274
|
+
end
|
275
|
+
|
276
|
+
# to_body is an alias to to_hash (backward compatibility)
|
277
|
+
# @return [Hash] Returns the object in the form of hash
|
278
|
+
def to_body
|
279
|
+
to_hash
|
280
|
+
end
|
281
|
+
|
282
|
+
# Returns the object in the form of hash
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
284
|
+
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
|
285
|
+
hash = {}
|
286
|
+
attribute_map.each_pair do |attr, param|
|
287
|
+
value = self.send(attr)
|
288
|
+
if value.nil?
|
289
|
+
is_nullable = openapi_nullable.include?(attr)
|
290
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
291
|
+
end
|
292
|
+
|
293
|
+
hash[param] = _to_hash(value)
|
294
|
+
end
|
295
|
+
hash
|
296
|
+
end
|
297
|
+
|
298
|
+
# Outputs non-array value in the form of hash
|
299
|
+
# For object, use to_hash. Otherwise, just return the value
|
300
|
+
# @param [Object] value Any valid value
|
301
|
+
# @return [Hash] Returns the value in the form of hash
|
302
|
+
def _to_hash(value)
|
303
|
+
if value.is_a?(Array)
|
304
|
+
value.compact.map { |v| _to_hash(v) }
|
305
|
+
elsif value.is_a?(Hash)
|
306
|
+
{}.tap do |hash|
|
307
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
308
|
+
end
|
309
|
+
elsif value.respond_to? :to_hash
|
310
|
+
value.to_hash
|
311
|
+
else
|
312
|
+
value
|
313
|
+
end
|
314
|
+
end
|
315
|
+
end
|
316
|
+
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 21.1.0.20210122.001
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -67,12 +67,6 @@ module OpenapiClient
|
|
67
67
|
}
|
68
68
|
end
|
69
69
|
|
70
|
-
# List of attributes with nullable: true
|
71
|
-
def self.openapi_nullable
|
72
|
-
Set.new([
|
73
|
-
])
|
74
|
-
end
|
75
|
-
|
76
70
|
# Initializes the object
|
77
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
78
72
|
def initialize(attributes = {})
|
@@ -252,7 +246,7 @@ module OpenapiClient
|
|
252
246
|
|
253
247
|
# Returns the object in the form of hash
|
254
248
|
# @return [Hash] Returns the object in the form of hash
|
255
|
-
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable =
|
249
|
+
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
|
256
250
|
hash = {}
|
257
251
|
attribute_map.each_pair do |attr, param|
|
258
252
|
value = self.send(attr)
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 21.1.0.20210122.001
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -57,12 +57,6 @@ module OpenapiClient
|
|
57
57
|
}
|
58
58
|
end
|
59
59
|
|
60
|
-
# List of attributes with nullable: true
|
61
|
-
def self.openapi_nullable
|
62
|
-
Set.new([
|
63
|
-
])
|
64
|
-
end
|
65
|
-
|
66
60
|
# Initializes the object
|
67
61
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
62
|
def initialize(attributes = {})
|
@@ -228,7 +222,7 @@ module OpenapiClient
|
|
228
222
|
|
229
223
|
# Returns the object in the form of hash
|
230
224
|
# @return [Hash] Returns the object in the form of hash
|
231
|
-
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable =
|
225
|
+
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
|
232
226
|
hash = {}
|
233
227
|
attribute_map.each_pair do |attr, param|
|
234
228
|
value = self.send(attr)
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 21.1.0.20210122.001
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 4.1.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -37,12 +37,6 @@ module OpenapiClient
|
|
37
37
|
}
|
38
38
|
end
|
39
39
|
|
40
|
-
# List of attributes with nullable: true
|
41
|
-
def self.openapi_nullable
|
42
|
-
Set.new([
|
43
|
-
])
|
44
|
-
end
|
45
|
-
|
46
40
|
# Initializes the object
|
47
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
42
|
def initialize(attributes = {})
|
@@ -188,7 +182,7 @@ module OpenapiClient
|
|
188
182
|
|
189
183
|
# Returns the object in the form of hash
|
190
184
|
# @return [Hash] Returns the object in the form of hash
|
191
|
-
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable =
|
185
|
+
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
|
192
186
|
hash = {}
|
193
187
|
attribute_map.each_pair do |attr, param|
|
194
188
|
value = self.send(attr)
|
@@ -0,0 +1,353 @@
|
|
1
|
+
=begin
|
2
|
+
#Payment Gateway API Specification.
|
3
|
+
|
4
|
+
#The documentation here is designed to provide all of the technical guidance required to consume and integrate with our APIs for payment processing. To learn more about our APIs please visit https://docs.firstdata.com/org/gateway.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 21.1.0.20210122.001
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module OpenapiClient
|
16
|
+
# Submit the result of the authentication managed outside of the gateway for a 3-D Secure 2.x scheme. For more convenient usage without implementing 3-D Secure yourself see \"authenticationRequest\" section.
|
17
|
+
class Secure3DAuthenticationResult < AuthenticationResult
|
18
|
+
# The Cardholder Authentication Verification Value (CAVV) is a cryptographic value derived by the issuer during payment authentication that can provide evidence of the results of payment authentication during an online purchase.
|
19
|
+
attr_accessor :cavv
|
20
|
+
|
21
|
+
# The transaction identifier (XID) is a unique tracking number set by the merchant.
|
22
|
+
attr_accessor :xid
|
23
|
+
|
24
|
+
# The response transaction UUID from the DS (directory server)
|
25
|
+
attr_accessor :ds_transaction_id
|
26
|
+
|
27
|
+
# The result of authentication attempt returned by the 3D Secure authentication process (ARes).
|
28
|
+
attr_accessor :authentication_response
|
29
|
+
|
30
|
+
# The transaction status as returned by the 3D Secure authentication process. (CRes)
|
31
|
+
attr_accessor :transaction_status
|
32
|
+
|
33
|
+
class EnumAttributeValidator
|
34
|
+
attr_reader :datatype
|
35
|
+
attr_reader :allowable_values
|
36
|
+
|
37
|
+
def initialize(datatype, allowable_values)
|
38
|
+
@allowable_values = allowable_values.map do |value|
|
39
|
+
case datatype.to_s
|
40
|
+
when /Integer/i
|
41
|
+
value.to_i
|
42
|
+
when /Float/i
|
43
|
+
value.to_f
|
44
|
+
else
|
45
|
+
value
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def valid?(value)
|
51
|
+
!value || allowable_values.include?(value)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
56
|
+
def self.attribute_map
|
57
|
+
{
|
58
|
+
:'cavv' => :'cavv',
|
59
|
+
:'xid' => :'xid',
|
60
|
+
:'ds_transaction_id' => :'dsTransactionId',
|
61
|
+
:'authentication_response' => :'authenticationResponse',
|
62
|
+
:'transaction_status' => :'transactionStatus'
|
63
|
+
}
|
64
|
+
end
|
65
|
+
|
66
|
+
# Attribute type mapping.
|
67
|
+
def self.openapi_types
|
68
|
+
{
|
69
|
+
:'cavv' => :'String',
|
70
|
+
:'xid' => :'String',
|
71
|
+
:'ds_transaction_id' => :'String',
|
72
|
+
:'authentication_response' => :'String',
|
73
|
+
:'transaction_status' => :'String'
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
# List of class defined in allOf (OpenAPI v3)
|
78
|
+
def self.openapi_all_of
|
79
|
+
[
|
80
|
+
:'AuthenticationResult',
|
81
|
+
:'Secure3DAuthenticationResultAllOf'
|
82
|
+
]
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
if (!attributes.is_a?(Hash))
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::Secure3DAuthenticationResult` initialize method"
|
90
|
+
end
|
91
|
+
|
92
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
93
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::Secure3DAuthenticationResult`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
|
+
end
|
97
|
+
h[k.to_sym] = v
|
98
|
+
}
|
99
|
+
|
100
|
+
# call parent's initialize
|
101
|
+
super(attributes)
|
102
|
+
|
103
|
+
if attributes.key?(:'cavv')
|
104
|
+
self.cavv = attributes[:'cavv']
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'xid')
|
108
|
+
self.xid = attributes[:'xid']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'ds_transaction_id')
|
112
|
+
self.ds_transaction_id = attributes[:'ds_transaction_id']
|
113
|
+
end
|
114
|
+
|
115
|
+
if attributes.key?(:'authentication_response')
|
116
|
+
self.authentication_response = attributes[:'authentication_response']
|
117
|
+
end
|
118
|
+
|
119
|
+
if attributes.key?(:'transaction_status')
|
120
|
+
self.transaction_status = attributes[:'transaction_status']
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
125
|
+
# @return Array for valid properties with the reasons
|
126
|
+
def list_invalid_properties
|
127
|
+
invalid_properties = super
|
128
|
+
if !@cavv.nil? && @cavv.to_s.length > 32
|
129
|
+
invalid_properties.push('invalid value for "cavv", the character length must be smaller than or equal to 32.')
|
130
|
+
end
|
131
|
+
|
132
|
+
if !@cavv.nil? && @cavv.to_s.length < 20
|
133
|
+
invalid_properties.push('invalid value for "cavv", the character length must be great than or equal to 20.')
|
134
|
+
end
|
135
|
+
|
136
|
+
if !@xid.nil? && @xid.to_s.length > 32
|
137
|
+
invalid_properties.push('invalid value for "xid", the character length must be smaller than or equal to 32.')
|
138
|
+
end
|
139
|
+
|
140
|
+
if !@xid.nil? && @xid.to_s.length < 20
|
141
|
+
invalid_properties.push('invalid value for "xid", the character length must be great than or equal to 20.')
|
142
|
+
end
|
143
|
+
|
144
|
+
invalid_properties
|
145
|
+
end
|
146
|
+
|
147
|
+
# Check to see if the all the properties in the model are valid
|
148
|
+
# @return true if the model is valid
|
149
|
+
def valid?
|
150
|
+
return false if !@cavv.nil? && @cavv.to_s.length > 32
|
151
|
+
return false if !@cavv.nil? && @cavv.to_s.length < 20
|
152
|
+
return false if !@xid.nil? && @xid.to_s.length > 32
|
153
|
+
return false if !@xid.nil? && @xid.to_s.length < 20
|
154
|
+
authentication_response_validator = EnumAttributeValidator.new('String', ["A", "N", "U", "Y", "C", "R"])
|
155
|
+
return false unless authentication_response_validator.valid?(@authentication_response)
|
156
|
+
transaction_status_validator = EnumAttributeValidator.new('String', ["A", "N", "U", "Y", "C", "R"])
|
157
|
+
return false unless transaction_status_validator.valid?(@transaction_status)
|
158
|
+
true && super
|
159
|
+
end
|
160
|
+
|
161
|
+
# Custom attribute writer method with validation
|
162
|
+
# @param [Object] cavv Value to be assigned
|
163
|
+
def cavv=(cavv)
|
164
|
+
if !cavv.nil? && cavv.to_s.length > 32
|
165
|
+
fail ArgumentError, 'invalid value for "cavv", the character length must be smaller than or equal to 32.'
|
166
|
+
end
|
167
|
+
|
168
|
+
if !cavv.nil? && cavv.to_s.length < 20
|
169
|
+
fail ArgumentError, 'invalid value for "cavv", the character length must be great than or equal to 20.'
|
170
|
+
end
|
171
|
+
|
172
|
+
@cavv = cavv
|
173
|
+
end
|
174
|
+
|
175
|
+
# Custom attribute writer method with validation
|
176
|
+
# @param [Object] xid Value to be assigned
|
177
|
+
def xid=(xid)
|
178
|
+
if !xid.nil? && xid.to_s.length > 32
|
179
|
+
fail ArgumentError, 'invalid value for "xid", the character length must be smaller than or equal to 32.'
|
180
|
+
end
|
181
|
+
|
182
|
+
if !xid.nil? && xid.to_s.length < 20
|
183
|
+
fail ArgumentError, 'invalid value for "xid", the character length must be great than or equal to 20.'
|
184
|
+
end
|
185
|
+
|
186
|
+
@xid = xid
|
187
|
+
end
|
188
|
+
|
189
|
+
# Custom attribute writer method checking allowed values (enum).
|
190
|
+
# @param [Object] authentication_response Object to be assigned
|
191
|
+
def authentication_response=(authentication_response)
|
192
|
+
validator = EnumAttributeValidator.new('String', ["A", "N", "U", "Y", "C", "R"])
|
193
|
+
unless validator.valid?(authentication_response)
|
194
|
+
fail ArgumentError, "invalid value for \"authentication_response\", must be one of #{validator.allowable_values}."
|
195
|
+
end
|
196
|
+
@authentication_response = authentication_response
|
197
|
+
end
|
198
|
+
|
199
|
+
# Custom attribute writer method checking allowed values (enum).
|
200
|
+
# @param [Object] transaction_status Object to be assigned
|
201
|
+
def transaction_status=(transaction_status)
|
202
|
+
validator = EnumAttributeValidator.new('String', ["A", "N", "U", "Y", "C", "R"])
|
203
|
+
unless validator.valid?(transaction_status)
|
204
|
+
fail ArgumentError, "invalid value for \"transaction_status\", must be one of #{validator.allowable_values}."
|
205
|
+
end
|
206
|
+
@transaction_status = transaction_status
|
207
|
+
end
|
208
|
+
|
209
|
+
# Checks equality by comparing each attribute.
|
210
|
+
# @param [Object] Object to be compared
|
211
|
+
def ==(o)
|
212
|
+
return true if self.equal?(o)
|
213
|
+
self.class == o.class &&
|
214
|
+
cavv == o.cavv &&
|
215
|
+
xid == o.xid &&
|
216
|
+
ds_transaction_id == o.ds_transaction_id &&
|
217
|
+
authentication_response == o.authentication_response &&
|
218
|
+
transaction_status == o.transaction_status && super(o)
|
219
|
+
end
|
220
|
+
|
221
|
+
# @see the `==` method
|
222
|
+
# @param [Object] Object to be compared
|
223
|
+
def eql?(o)
|
224
|
+
self == o
|
225
|
+
end
|
226
|
+
|
227
|
+
# Calculates hash code according to all attributes.
|
228
|
+
# @return [Integer] Hash code
|
229
|
+
def hash
|
230
|
+
[cavv, xid, ds_transaction_id, authentication_response, transaction_status].hash
|
231
|
+
end
|
232
|
+
|
233
|
+
# Builds the object from hash
|
234
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
235
|
+
# @return [Object] Returns the model itself
|
236
|
+
def self.build_from_hash(attributes)
|
237
|
+
new.build_from_hash(attributes)
|
238
|
+
end
|
239
|
+
|
240
|
+
# Builds the object from hash
|
241
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
242
|
+
# @return [Object] Returns the model itself
|
243
|
+
def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
|
244
|
+
return nil unless attributes.is_a?(Hash)
|
245
|
+
super(attributes, self.class.superclass.attribute_map, self.class.superclass.openapi_types)
|
246
|
+
openapi_types.each_pair do |key, type|
|
247
|
+
if type =~ /\AArray<(.*)>/i
|
248
|
+
# check to ensure the input is an array given that the attribute
|
249
|
+
# is documented as an array but the input is not
|
250
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
251
|
+
self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
|
252
|
+
end
|
253
|
+
elsif !attributes[attribute_map[key]].nil?
|
254
|
+
self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
|
255
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
256
|
+
end
|
257
|
+
|
258
|
+
self
|
259
|
+
end
|
260
|
+
|
261
|
+
# Deserializes the data based on type
|
262
|
+
# @param string type Data type
|
263
|
+
# @param string value Value to be deserialized
|
264
|
+
# @return [Object] Deserialized data
|
265
|
+
def _deserialize(type, value)
|
266
|
+
case type.to_sym
|
267
|
+
when :DateTime
|
268
|
+
DateTime.parse(value)
|
269
|
+
when :Date
|
270
|
+
Date.parse(value)
|
271
|
+
when :String
|
272
|
+
value.to_s
|
273
|
+
when :Integer
|
274
|
+
value.to_i
|
275
|
+
when :Float
|
276
|
+
value.to_f
|
277
|
+
when :Boolean
|
278
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
279
|
+
true
|
280
|
+
else
|
281
|
+
false
|
282
|
+
end
|
283
|
+
when :Object
|
284
|
+
# generic object (usually a Hash), return directly
|
285
|
+
value
|
286
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
287
|
+
inner_type = Regexp.last_match[:inner_type]
|
288
|
+
value.map { |v| _deserialize(inner_type, v) }
|
289
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
290
|
+
k_type = Regexp.last_match[:k_type]
|
291
|
+
v_type = Regexp.last_match[:v_type]
|
292
|
+
{}.tap do |hash|
|
293
|
+
value.each do |k, v|
|
294
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
else # model
|
298
|
+
klass = OpenapiClient.const_get(type)
|
299
|
+
if klass.respond_to?(:openapi_discriminator_name)
|
300
|
+
klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
|
301
|
+
end
|
302
|
+
|
303
|
+
klass.build_from_hash(value)
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# Returns the string representation of the object
|
308
|
+
# @return [String] String presentation of the object
|
309
|
+
def to_s
|
310
|
+
to_hash.to_s
|
311
|
+
end
|
312
|
+
|
313
|
+
# to_body is an alias to to_hash (backward compatibility)
|
314
|
+
# @return [Hash] Returns the object in the form of hash
|
315
|
+
def to_body
|
316
|
+
to_hash
|
317
|
+
end
|
318
|
+
|
319
|
+
# Returns the object in the form of hash
|
320
|
+
# @return [Hash] Returns the object in the form of hash
|
321
|
+
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = Set.new([]))
|
322
|
+
hash = super(self.class.superclass.attribute_map, openapi_nullable)
|
323
|
+
attribute_map.each_pair do |attr, param|
|
324
|
+
value = self.send(attr)
|
325
|
+
if value.nil?
|
326
|
+
is_nullable = openapi_nullable.include?(attr)
|
327
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
328
|
+
end
|
329
|
+
|
330
|
+
hash[param] = _to_hash(value)
|
331
|
+
end
|
332
|
+
hash
|
333
|
+
end
|
334
|
+
|
335
|
+
# Outputs non-array value in the form of hash
|
336
|
+
# For object, use to_hash. Otherwise, just return the value
|
337
|
+
# @param [Object] value Any valid value
|
338
|
+
# @return [Hash] Returns the value in the form of hash
|
339
|
+
def _to_hash(value)
|
340
|
+
if value.is_a?(Array)
|
341
|
+
value.compact.map { |v| _to_hash(v) }
|
342
|
+
elsif value.is_a?(Hash)
|
343
|
+
{}.tap do |hash|
|
344
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
345
|
+
end
|
346
|
+
elsif value.respond_to? :to_hash
|
347
|
+
value.to_hash
|
348
|
+
else
|
349
|
+
value
|
350
|
+
end
|
351
|
+
end
|
352
|
+
end
|
353
|
+
end
|