first_data_gateway 1.7.1 → 1.8.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 +2 -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/DecryptedApplePay.md +2 -6
- data/docs/DecryptedGooglePay.md +2 -6
- 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/ReceiptRequestInfo.md +21 -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 +1 -2
- data/first_data_gateway.gemspec +4 -4
- data/lib/openapi_client.rb +11 -37
- 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 +7 -7
- data/lib/openapi_client/api/payment_schedules_api.rb +2 -2
- data/lib/openapi_client/api/payment_token_api.rb +2 -2
- data/lib/openapi_client/api/payment_url_api.rb +2 -2
- data/lib/openapi_client/api/verification_api.rb +2 -2
- data/lib/openapi_client/api_client.rb +7 -9
- data/lib/openapi_client/api_error.rb +2 -2
- data/lib/openapi_client/configuration.rb +4 -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 +3 -9
- 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/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 +4 -10
- data/lib/openapi_client/models/dcc_exchange_rate_request_all_of.rb +3 -9
- 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 +13 -88
- 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 +5 -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/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/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 +5 -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 +7 -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 +17 -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/{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 +4 -10
- data/lib/openapi_client/models/return_transaction_all_of.rb +3 -9
- 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 +7 -28
- data/lib/openapi_client/models/secure3_d10_authentication_result.rb +4 -10
- 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 +4 -10
- 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 +6 -12
- data/lib/openapi_client/models/secure3_d21_authentication_request_all_of.rb +5 -11
- data/lib/openapi_client/models/secure3_d21_authentication_result.rb +4 -10
- 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 +4 -10
- data/lib/openapi_client/models/secure3_d21_authentication_update_request_all_of.rb +3 -9
- 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/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/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 +2 -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 +7 -28
- 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
- metadata +16 -65
- 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/docs/VoidTransactionAllOf.md +0 -17
- data/first_data_gateway-1.7.0.gem +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/delete_branding_style_configuration_response_all_of.rb +0 -222
- data/lib/openapi_client/models/error_response_all_of.rb +0 -211
- data/lib/openapi_client/models/fraud_settings_response_all_of.rb +0 -291
- data/lib/openapi_client/models/funding_transaction_type_all_of.rb +0 -216
- data/lib/openapi_client/models/order_response_all_of.rb +0 -251
- data/lib/openapi_client/models/payment_registration_all_of.rb +0 -257
- data/lib/openapi_client/models/payment_schedules_response_all_of.rb +0 -265
- data/lib/openapi_client/models/payment_tokenization_response_all_of.rb +0 -313
- data/lib/openapi_client/models/payment_url_detail_response_all_of.rb +0 -214
- data/lib/openapi_client/models/payment_url_response_all_of.rb +0 -276
- 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/secure3_d10_authentication_request_all_of.rb +0 -216
- data/lib/openapi_client/models/shared_secret_configuration_response_all_of.rb +0 -242
- data/lib/openapi_client/models/store_url_configuration_response_all_of.rb +0 -213
- 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/lib/openapi_client/models/void_transaction_all_of.rb +0 -216
@@ -1,213 +0,0 @@
|
|
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: 6.12.0.20200605.001
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: unset
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module OpenapiClient
|
16
|
-
class StoreUrlConfigurationResponseAllOf
|
17
|
-
attr_accessor :stores
|
18
|
-
|
19
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
-
def self.attribute_map
|
21
|
-
{
|
22
|
-
:'stores' => :'stores'
|
23
|
-
}
|
24
|
-
end
|
25
|
-
|
26
|
-
# Attribute type mapping.
|
27
|
-
def self.openapi_types
|
28
|
-
{
|
29
|
-
:'stores' => :'Array<StoreUrlConfigurationResult>'
|
30
|
-
}
|
31
|
-
end
|
32
|
-
|
33
|
-
# List of attributes with nullable: true
|
34
|
-
def self.openapi_nullable
|
35
|
-
Set.new([
|
36
|
-
])
|
37
|
-
end
|
38
|
-
|
39
|
-
# Initializes the object
|
40
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
-
def initialize(attributes = {})
|
42
|
-
if (!attributes.is_a?(Hash))
|
43
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::StoreUrlConfigurationResponseAllOf` initialize method"
|
44
|
-
end
|
45
|
-
|
46
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::StoreUrlConfigurationResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
|
-
end
|
51
|
-
h[k.to_sym] = v
|
52
|
-
}
|
53
|
-
|
54
|
-
if attributes.key?(:'stores')
|
55
|
-
if (value = attributes[:'stores']).is_a?(Array)
|
56
|
-
self.stores = value
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
62
|
-
# @return Array for valid properties with the reasons
|
63
|
-
def list_invalid_properties
|
64
|
-
invalid_properties = Array.new
|
65
|
-
invalid_properties
|
66
|
-
end
|
67
|
-
|
68
|
-
# Check to see if the all the properties in the model are valid
|
69
|
-
# @return true if the model is valid
|
70
|
-
def valid?
|
71
|
-
true
|
72
|
-
end
|
73
|
-
|
74
|
-
# Checks equality by comparing each attribute.
|
75
|
-
# @param [Object] Object to be compared
|
76
|
-
def ==(o)
|
77
|
-
return true if self.equal?(o)
|
78
|
-
self.class == o.class &&
|
79
|
-
stores == o.stores
|
80
|
-
end
|
81
|
-
|
82
|
-
# @see the `==` method
|
83
|
-
# @param [Object] Object to be compared
|
84
|
-
def eql?(o)
|
85
|
-
self == o
|
86
|
-
end
|
87
|
-
|
88
|
-
# Calculates hash code according to all attributes.
|
89
|
-
# @return [Integer] Hash code
|
90
|
-
def hash
|
91
|
-
[stores].hash
|
92
|
-
end
|
93
|
-
|
94
|
-
# Builds the object from hash
|
95
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
96
|
-
# @return [Object] Returns the model itself
|
97
|
-
def self.build_from_hash(attributes)
|
98
|
-
new.build_from_hash(attributes)
|
99
|
-
end
|
100
|
-
|
101
|
-
# Builds the object from hash
|
102
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
103
|
-
# @return [Object] Returns the model itself
|
104
|
-
def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
|
105
|
-
return nil unless attributes.is_a?(Hash)
|
106
|
-
openapi_types.each_pair do |key, type|
|
107
|
-
if type =~ /\AArray<(.*)>/i
|
108
|
-
# check to ensure the input is an array given that the attribute
|
109
|
-
# is documented as an array but the input is not
|
110
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
111
|
-
self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
|
112
|
-
end
|
113
|
-
elsif !attributes[attribute_map[key]].nil?
|
114
|
-
self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
|
115
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
116
|
-
end
|
117
|
-
|
118
|
-
self
|
119
|
-
end
|
120
|
-
|
121
|
-
# Deserializes the data based on type
|
122
|
-
# @param string type Data type
|
123
|
-
# @param string value Value to be deserialized
|
124
|
-
# @return [Object] Deserialized data
|
125
|
-
def _deserialize(type, value)
|
126
|
-
case type.to_sym
|
127
|
-
when :DateTime
|
128
|
-
DateTime.parse(value)
|
129
|
-
when :Date
|
130
|
-
Date.parse(value)
|
131
|
-
when :String
|
132
|
-
value.to_s
|
133
|
-
when :Integer
|
134
|
-
value.to_i
|
135
|
-
when :Float
|
136
|
-
value.to_f
|
137
|
-
when :Boolean
|
138
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
139
|
-
true
|
140
|
-
else
|
141
|
-
false
|
142
|
-
end
|
143
|
-
when :Object
|
144
|
-
# generic object (usually a Hash), return directly
|
145
|
-
value
|
146
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
147
|
-
inner_type = Regexp.last_match[:inner_type]
|
148
|
-
value.map { |v| _deserialize(inner_type, v) }
|
149
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
150
|
-
k_type = Regexp.last_match[:k_type]
|
151
|
-
v_type = Regexp.last_match[:v_type]
|
152
|
-
{}.tap do |hash|
|
153
|
-
value.each do |k, v|
|
154
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
155
|
-
end
|
156
|
-
end
|
157
|
-
else # model
|
158
|
-
klass = OpenapiClient.const_get(type)
|
159
|
-
if klass.respond_to?(:openapi_discriminator_name)
|
160
|
-
klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
|
161
|
-
end
|
162
|
-
|
163
|
-
klass.build_from_hash(value)
|
164
|
-
end
|
165
|
-
end
|
166
|
-
|
167
|
-
# Returns the string representation of the object
|
168
|
-
# @return [String] String presentation of the object
|
169
|
-
def to_s
|
170
|
-
to_hash.to_s
|
171
|
-
end
|
172
|
-
|
173
|
-
# to_body is an alias to to_hash (backward compatibility)
|
174
|
-
# @return [Hash] Returns the object in the form of hash
|
175
|
-
def to_body
|
176
|
-
to_hash
|
177
|
-
end
|
178
|
-
|
179
|
-
# Returns the object in the form of hash
|
180
|
-
# @return [Hash] Returns the object in the form of hash
|
181
|
-
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
|
182
|
-
hash = {}
|
183
|
-
attribute_map.each_pair do |attr, param|
|
184
|
-
value = self.send(attr)
|
185
|
-
if value.nil?
|
186
|
-
is_nullable = openapi_nullable.include?(attr)
|
187
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
188
|
-
end
|
189
|
-
|
190
|
-
hash[param] = _to_hash(value)
|
191
|
-
end
|
192
|
-
hash
|
193
|
-
end
|
194
|
-
|
195
|
-
# Outputs non-array value in the form of hash
|
196
|
-
# For object, use to_hash. Otherwise, just return the value
|
197
|
-
# @param [Object] value Any valid value
|
198
|
-
# @return [Hash] Returns the value in the form of hash
|
199
|
-
def _to_hash(value)
|
200
|
-
if value.is_a?(Array)
|
201
|
-
value.compact.map { |v| _to_hash(v) }
|
202
|
-
elsif value.is_a?(Hash)
|
203
|
-
{}.tap do |hash|
|
204
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
205
|
-
end
|
206
|
-
elsif value.respond_to? :to_hash
|
207
|
-
value.to_hash
|
208
|
-
else
|
209
|
-
value
|
210
|
-
end
|
211
|
-
end
|
212
|
-
end
|
213
|
-
end
|
@@ -1,216 +0,0 @@
|
|
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: 6.12.0.20200605.001
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: unset
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module OpenapiClient
|
16
|
-
class TeleCheckCBPPaymentMethodAllOf
|
17
|
-
attr_accessor :ach_type
|
18
|
-
|
19
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
20
|
-
def self.attribute_map
|
21
|
-
{
|
22
|
-
:'ach_type' => :'achType'
|
23
|
-
}
|
24
|
-
end
|
25
|
-
|
26
|
-
# Attribute type mapping.
|
27
|
-
def self.openapi_types
|
28
|
-
{
|
29
|
-
:'ach_type' => :'String'
|
30
|
-
}
|
31
|
-
end
|
32
|
-
|
33
|
-
# List of attributes with nullable: true
|
34
|
-
def self.openapi_nullable
|
35
|
-
Set.new([
|
36
|
-
])
|
37
|
-
end
|
38
|
-
|
39
|
-
# Initializes the object
|
40
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
41
|
-
def initialize(attributes = {})
|
42
|
-
if (!attributes.is_a?(Hash))
|
43
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::TeleCheckCBPPaymentMethodAllOf` initialize method"
|
44
|
-
end
|
45
|
-
|
46
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
48
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
49
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::TeleCheckCBPPaymentMethodAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
50
|
-
end
|
51
|
-
h[k.to_sym] = v
|
52
|
-
}
|
53
|
-
|
54
|
-
if attributes.key?(:'ach_type')
|
55
|
-
self.ach_type = attributes[:'ach_type']
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
60
|
-
# @return Array for valid properties with the reasons
|
61
|
-
def list_invalid_properties
|
62
|
-
invalid_properties = Array.new
|
63
|
-
if @ach_type.nil?
|
64
|
-
invalid_properties.push('invalid value for "ach_type", ach_type cannot be nil.')
|
65
|
-
end
|
66
|
-
|
67
|
-
invalid_properties
|
68
|
-
end
|
69
|
-
|
70
|
-
# Check to see if the all the properties in the model are valid
|
71
|
-
# @return true if the model is valid
|
72
|
-
def valid?
|
73
|
-
return false if @ach_type.nil?
|
74
|
-
true
|
75
|
-
end
|
76
|
-
|
77
|
-
# Checks equality by comparing each attribute.
|
78
|
-
# @param [Object] Object to be compared
|
79
|
-
def ==(o)
|
80
|
-
return true if self.equal?(o)
|
81
|
-
self.class == o.class &&
|
82
|
-
ach_type == o.ach_type
|
83
|
-
end
|
84
|
-
|
85
|
-
# @see the `==` method
|
86
|
-
# @param [Object] Object to be compared
|
87
|
-
def eql?(o)
|
88
|
-
self == o
|
89
|
-
end
|
90
|
-
|
91
|
-
# Calculates hash code according to all attributes.
|
92
|
-
# @return [Integer] Hash code
|
93
|
-
def hash
|
94
|
-
[ach_type].hash
|
95
|
-
end
|
96
|
-
|
97
|
-
# Builds the object from hash
|
98
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
-
# @return [Object] Returns the model itself
|
100
|
-
def self.build_from_hash(attributes)
|
101
|
-
new.build_from_hash(attributes)
|
102
|
-
end
|
103
|
-
|
104
|
-
# Builds the object from hash
|
105
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
106
|
-
# @return [Object] Returns the model itself
|
107
|
-
def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
|
108
|
-
return nil unless attributes.is_a?(Hash)
|
109
|
-
openapi_types.each_pair do |key, type|
|
110
|
-
if type =~ /\AArray<(.*)>/i
|
111
|
-
# check to ensure the input is an array given that the attribute
|
112
|
-
# is documented as an array but the input is not
|
113
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
114
|
-
self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
|
115
|
-
end
|
116
|
-
elsif !attributes[attribute_map[key]].nil?
|
117
|
-
self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
|
118
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
119
|
-
end
|
120
|
-
|
121
|
-
self
|
122
|
-
end
|
123
|
-
|
124
|
-
# Deserializes the data based on type
|
125
|
-
# @param string type Data type
|
126
|
-
# @param string value Value to be deserialized
|
127
|
-
# @return [Object] Deserialized data
|
128
|
-
def _deserialize(type, value)
|
129
|
-
case type.to_sym
|
130
|
-
when :DateTime
|
131
|
-
DateTime.parse(value)
|
132
|
-
when :Date
|
133
|
-
Date.parse(value)
|
134
|
-
when :String
|
135
|
-
value.to_s
|
136
|
-
when :Integer
|
137
|
-
value.to_i
|
138
|
-
when :Float
|
139
|
-
value.to_f
|
140
|
-
when :Boolean
|
141
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
142
|
-
true
|
143
|
-
else
|
144
|
-
false
|
145
|
-
end
|
146
|
-
when :Object
|
147
|
-
# generic object (usually a Hash), return directly
|
148
|
-
value
|
149
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
150
|
-
inner_type = Regexp.last_match[:inner_type]
|
151
|
-
value.map { |v| _deserialize(inner_type, v) }
|
152
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
153
|
-
k_type = Regexp.last_match[:k_type]
|
154
|
-
v_type = Regexp.last_match[:v_type]
|
155
|
-
{}.tap do |hash|
|
156
|
-
value.each do |k, v|
|
157
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
158
|
-
end
|
159
|
-
end
|
160
|
-
else # model
|
161
|
-
klass = OpenapiClient.const_get(type)
|
162
|
-
if klass.respond_to?(:openapi_discriminator_name)
|
163
|
-
klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
|
164
|
-
end
|
165
|
-
|
166
|
-
klass.build_from_hash(value)
|
167
|
-
end
|
168
|
-
end
|
169
|
-
|
170
|
-
# Returns the string representation of the object
|
171
|
-
# @return [String] String presentation of the object
|
172
|
-
def to_s
|
173
|
-
to_hash.to_s
|
174
|
-
end
|
175
|
-
|
176
|
-
# to_body is an alias to to_hash (backward compatibility)
|
177
|
-
# @return [Hash] Returns the object in the form of hash
|
178
|
-
def to_body
|
179
|
-
to_hash
|
180
|
-
end
|
181
|
-
|
182
|
-
# Returns the object in the form of hash
|
183
|
-
# @return [Hash] Returns the object in the form of hash
|
184
|
-
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
|
185
|
-
hash = {}
|
186
|
-
attribute_map.each_pair do |attr, param|
|
187
|
-
value = self.send(attr)
|
188
|
-
if value.nil?
|
189
|
-
is_nullable = openapi_nullable.include?(attr)
|
190
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
191
|
-
end
|
192
|
-
|
193
|
-
hash[param] = _to_hash(value)
|
194
|
-
end
|
195
|
-
hash
|
196
|
-
end
|
197
|
-
|
198
|
-
# Outputs non-array value in the form of hash
|
199
|
-
# For object, use to_hash. Otherwise, just return the value
|
200
|
-
# @param [Object] value Any valid value
|
201
|
-
# @return [Hash] Returns the value in the form of hash
|
202
|
-
def _to_hash(value)
|
203
|
-
if value.is_a?(Array)
|
204
|
-
value.compact.map { |v| _to_hash(v) }
|
205
|
-
elsif value.is_a?(Hash)
|
206
|
-
{}.tap do |hash|
|
207
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
208
|
-
end
|
209
|
-
elsif value.respond_to? :to_hash
|
210
|
-
value.to_hash
|
211
|
-
else
|
212
|
-
value
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|
216
|
-
end
|
@@ -1,502 +0,0 @@
|
|
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: 6.12.0.20200605.001
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: unset
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'date'
|
14
|
-
|
15
|
-
module OpenapiClient
|
16
|
-
class TransactionResponseAllOf
|
17
|
-
# The response transaction ID.
|
18
|
-
attr_accessor :ipg_transaction_id
|
19
|
-
|
20
|
-
# Client order ID if supplied by client, otherwise the order ID.
|
21
|
-
attr_accessor :order_id
|
22
|
-
|
23
|
-
attr_accessor :transaction_type
|
24
|
-
|
25
|
-
attr_accessor :payment_token
|
26
|
-
|
27
|
-
attr_accessor :transaction_origin
|
28
|
-
|
29
|
-
attr_accessor :payment_method_details
|
30
|
-
|
31
|
-
# Country of the card issuer.
|
32
|
-
attr_accessor :country
|
33
|
-
|
34
|
-
# The terminal that is processing the transaction.
|
35
|
-
attr_accessor :terminal_id
|
36
|
-
|
37
|
-
# The unique (on Acquirer level) mechant ID. Usually this value has been chosen from the merchant itself and will be used in communication with the endpoint.
|
38
|
-
attr_accessor :merchant_id
|
39
|
-
|
40
|
-
# The unique merchant transaction ID from the request header, if supplied.
|
41
|
-
attr_accessor :merchant_transaction_id
|
42
|
-
|
43
|
-
# The transaction time in seconds since epoch.
|
44
|
-
attr_accessor :transaction_time
|
45
|
-
|
46
|
-
attr_accessor :approved_amount
|
47
|
-
|
48
|
-
# Represents the status of a transaction immediately following the original processing request. This value is not stored for the transaction and is only available in the response when the transaction is processed. TransactionStatus is not returned on either the transaction inquiry or on the order inquiry.
|
49
|
-
attr_accessor :transaction_status
|
50
|
-
|
51
|
-
# Shows the state of the current transaction.
|
52
|
-
attr_accessor :transaction_state
|
53
|
-
|
54
|
-
attr_accessor :secure3d_response
|
55
|
-
|
56
|
-
# The endpoint redirection URL.
|
57
|
-
attr_accessor :redirect_url
|
58
|
-
|
59
|
-
attr_accessor :authentication_response
|
60
|
-
|
61
|
-
# The transaction ID received from schemes for the initial transaction of card on file flows.
|
62
|
-
attr_accessor :scheme_transaction_id
|
63
|
-
|
64
|
-
attr_accessor :processor
|
65
|
-
|
66
|
-
attr_accessor :additional_details
|
67
|
-
|
68
|
-
attr_accessor :account_updater_response
|
69
|
-
|
70
|
-
attr_accessor :ach_response
|
71
|
-
|
72
|
-
class EnumAttributeValidator
|
73
|
-
attr_reader :datatype
|
74
|
-
attr_reader :allowable_values
|
75
|
-
|
76
|
-
def initialize(datatype, allowable_values)
|
77
|
-
@allowable_values = allowable_values.map do |value|
|
78
|
-
case datatype.to_s
|
79
|
-
when /Integer/i
|
80
|
-
value.to_i
|
81
|
-
when /Float/i
|
82
|
-
value.to_f
|
83
|
-
else
|
84
|
-
value
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
89
|
-
def valid?(value)
|
90
|
-
!value || allowable_values.include?(value)
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
95
|
-
def self.attribute_map
|
96
|
-
{
|
97
|
-
:'ipg_transaction_id' => :'ipgTransactionId',
|
98
|
-
:'order_id' => :'orderId',
|
99
|
-
:'transaction_type' => :'transactionType',
|
100
|
-
:'payment_token' => :'paymentToken',
|
101
|
-
:'transaction_origin' => :'transactionOrigin',
|
102
|
-
:'payment_method_details' => :'paymentMethodDetails',
|
103
|
-
:'country' => :'country',
|
104
|
-
:'terminal_id' => :'terminalId',
|
105
|
-
:'merchant_id' => :'merchantId',
|
106
|
-
:'merchant_transaction_id' => :'merchantTransactionId',
|
107
|
-
:'transaction_time' => :'transactionTime',
|
108
|
-
:'approved_amount' => :'approvedAmount',
|
109
|
-
:'transaction_status' => :'transactionStatus',
|
110
|
-
:'transaction_state' => :'transactionState',
|
111
|
-
:'secure3d_response' => :'secure3dResponse',
|
112
|
-
:'redirect_url' => :'redirectURL',
|
113
|
-
:'authentication_response' => :'authenticationResponse',
|
114
|
-
:'scheme_transaction_id' => :'schemeTransactionId',
|
115
|
-
:'processor' => :'processor',
|
116
|
-
:'additional_details' => :'additionalDetails',
|
117
|
-
:'account_updater_response' => :'accountUpdaterResponse',
|
118
|
-
:'ach_response' => :'achResponse'
|
119
|
-
}
|
120
|
-
end
|
121
|
-
|
122
|
-
# Attribute type mapping.
|
123
|
-
def self.openapi_types
|
124
|
-
{
|
125
|
-
:'ipg_transaction_id' => :'String',
|
126
|
-
:'order_id' => :'String',
|
127
|
-
:'transaction_type' => :'TransactionType',
|
128
|
-
:'payment_token' => :'PaymentTokenDetails',
|
129
|
-
:'transaction_origin' => :'TransactionOrigin',
|
130
|
-
:'payment_method_details' => :'PaymentMethodDetails',
|
131
|
-
:'country' => :'String',
|
132
|
-
:'terminal_id' => :'String',
|
133
|
-
:'merchant_id' => :'String',
|
134
|
-
:'merchant_transaction_id' => :'String',
|
135
|
-
:'transaction_time' => :'Integer',
|
136
|
-
:'approved_amount' => :'Amount',
|
137
|
-
:'transaction_status' => :'String',
|
138
|
-
:'transaction_state' => :'String',
|
139
|
-
:'secure3d_response' => :'Secure3dResponse',
|
140
|
-
:'redirect_url' => :'String',
|
141
|
-
:'authentication_response' => :'Secure3DAuthenticationResponse',
|
142
|
-
:'scheme_transaction_id' => :'String',
|
143
|
-
:'processor' => :'ProcessorData',
|
144
|
-
:'additional_details' => :'AdditionalTransactionDetails',
|
145
|
-
:'account_updater_response' => :'AccountUpdaterResponse',
|
146
|
-
:'ach_response' => :'AchResponse'
|
147
|
-
}
|
148
|
-
end
|
149
|
-
|
150
|
-
# List of attributes with nullable: true
|
151
|
-
def self.openapi_nullable
|
152
|
-
Set.new([
|
153
|
-
])
|
154
|
-
end
|
155
|
-
|
156
|
-
# Initializes the object
|
157
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
-
def initialize(attributes = {})
|
159
|
-
if (!attributes.is_a?(Hash))
|
160
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::TransactionResponseAllOf` initialize method"
|
161
|
-
end
|
162
|
-
|
163
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
164
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
165
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
166
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::TransactionResponseAllOf`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
167
|
-
end
|
168
|
-
h[k.to_sym] = v
|
169
|
-
}
|
170
|
-
|
171
|
-
if attributes.key?(:'ipg_transaction_id')
|
172
|
-
self.ipg_transaction_id = attributes[:'ipg_transaction_id']
|
173
|
-
end
|
174
|
-
|
175
|
-
if attributes.key?(:'order_id')
|
176
|
-
self.order_id = attributes[:'order_id']
|
177
|
-
end
|
178
|
-
|
179
|
-
if attributes.key?(:'transaction_type')
|
180
|
-
self.transaction_type = attributes[:'transaction_type']
|
181
|
-
end
|
182
|
-
|
183
|
-
if attributes.key?(:'payment_token')
|
184
|
-
self.payment_token = attributes[:'payment_token']
|
185
|
-
end
|
186
|
-
|
187
|
-
if attributes.key?(:'transaction_origin')
|
188
|
-
self.transaction_origin = attributes[:'transaction_origin']
|
189
|
-
end
|
190
|
-
|
191
|
-
if attributes.key?(:'payment_method_details')
|
192
|
-
self.payment_method_details = attributes[:'payment_method_details']
|
193
|
-
end
|
194
|
-
|
195
|
-
if attributes.key?(:'country')
|
196
|
-
self.country = attributes[:'country']
|
197
|
-
end
|
198
|
-
|
199
|
-
if attributes.key?(:'terminal_id')
|
200
|
-
self.terminal_id = attributes[:'terminal_id']
|
201
|
-
end
|
202
|
-
|
203
|
-
if attributes.key?(:'merchant_id')
|
204
|
-
self.merchant_id = attributes[:'merchant_id']
|
205
|
-
end
|
206
|
-
|
207
|
-
if attributes.key?(:'merchant_transaction_id')
|
208
|
-
self.merchant_transaction_id = attributes[:'merchant_transaction_id']
|
209
|
-
end
|
210
|
-
|
211
|
-
if attributes.key?(:'transaction_time')
|
212
|
-
self.transaction_time = attributes[:'transaction_time']
|
213
|
-
end
|
214
|
-
|
215
|
-
if attributes.key?(:'approved_amount')
|
216
|
-
self.approved_amount = attributes[:'approved_amount']
|
217
|
-
end
|
218
|
-
|
219
|
-
if attributes.key?(:'transaction_status')
|
220
|
-
self.transaction_status = attributes[:'transaction_status']
|
221
|
-
end
|
222
|
-
|
223
|
-
if attributes.key?(:'transaction_state')
|
224
|
-
self.transaction_state = attributes[:'transaction_state']
|
225
|
-
end
|
226
|
-
|
227
|
-
if attributes.key?(:'secure3d_response')
|
228
|
-
self.secure3d_response = attributes[:'secure3d_response']
|
229
|
-
end
|
230
|
-
|
231
|
-
if attributes.key?(:'redirect_url')
|
232
|
-
self.redirect_url = attributes[:'redirect_url']
|
233
|
-
end
|
234
|
-
|
235
|
-
if attributes.key?(:'authentication_response')
|
236
|
-
self.authentication_response = attributes[:'authentication_response']
|
237
|
-
end
|
238
|
-
|
239
|
-
if attributes.key?(:'scheme_transaction_id')
|
240
|
-
self.scheme_transaction_id = attributes[:'scheme_transaction_id']
|
241
|
-
end
|
242
|
-
|
243
|
-
if attributes.key?(:'processor')
|
244
|
-
self.processor = attributes[:'processor']
|
245
|
-
end
|
246
|
-
|
247
|
-
if attributes.key?(:'additional_details')
|
248
|
-
self.additional_details = attributes[:'additional_details']
|
249
|
-
end
|
250
|
-
|
251
|
-
if attributes.key?(:'account_updater_response')
|
252
|
-
self.account_updater_response = attributes[:'account_updater_response']
|
253
|
-
end
|
254
|
-
|
255
|
-
if attributes.key?(:'ach_response')
|
256
|
-
self.ach_response = attributes[:'ach_response']
|
257
|
-
end
|
258
|
-
end
|
259
|
-
|
260
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
261
|
-
# @return Array for valid properties with the reasons
|
262
|
-
def list_invalid_properties
|
263
|
-
invalid_properties = Array.new
|
264
|
-
if !@merchant_id.nil? && @merchant_id.to_s.length > 30
|
265
|
-
invalid_properties.push('invalid value for "merchant_id", the character length must be smaller than or equal to 30.')
|
266
|
-
end
|
267
|
-
|
268
|
-
if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
|
269
|
-
invalid_properties.push('invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.')
|
270
|
-
end
|
271
|
-
|
272
|
-
if !@scheme_transaction_id.nil? && @scheme_transaction_id.to_s.length > 40
|
273
|
-
invalid_properties.push('invalid value for "scheme_transaction_id", the character length must be smaller than or equal to 40.')
|
274
|
-
end
|
275
|
-
|
276
|
-
invalid_properties
|
277
|
-
end
|
278
|
-
|
279
|
-
# Check to see if the all the properties in the model are valid
|
280
|
-
# @return true if the model is valid
|
281
|
-
def valid?
|
282
|
-
return false if !@merchant_id.nil? && @merchant_id.to_s.length > 30
|
283
|
-
return false if !@merchant_transaction_id.nil? && @merchant_transaction_id.to_s.length > 40
|
284
|
-
transaction_status_validator = EnumAttributeValidator.new('String', ["APPROVED", "WAITING", "VALIDATION_FAILED", "PROCESSING_FAILED", "DECLINED"])
|
285
|
-
return false unless transaction_status_validator.valid?(@transaction_status)
|
286
|
-
transaction_state_validator = EnumAttributeValidator.new('String', ["AUTHORIZED", "CAPTURED", "DECLINED", "CHECKED", "COMPLETED_GET", "INITIALIZED", "PENDING", "READY", "TEMPLATE", "SETTLED", "VOIDED", "WAITING"])
|
287
|
-
return false unless transaction_state_validator.valid?(@transaction_state)
|
288
|
-
return false if !@scheme_transaction_id.nil? && @scheme_transaction_id.to_s.length > 40
|
289
|
-
true
|
290
|
-
end
|
291
|
-
|
292
|
-
# Custom attribute writer method with validation
|
293
|
-
# @param [Object] merchant_id Value to be assigned
|
294
|
-
def merchant_id=(merchant_id)
|
295
|
-
if !merchant_id.nil? && merchant_id.to_s.length > 30
|
296
|
-
fail ArgumentError, 'invalid value for "merchant_id", the character length must be smaller than or equal to 30.'
|
297
|
-
end
|
298
|
-
|
299
|
-
@merchant_id = merchant_id
|
300
|
-
end
|
301
|
-
|
302
|
-
# Custom attribute writer method with validation
|
303
|
-
# @param [Object] merchant_transaction_id Value to be assigned
|
304
|
-
def merchant_transaction_id=(merchant_transaction_id)
|
305
|
-
if !merchant_transaction_id.nil? && merchant_transaction_id.to_s.length > 40
|
306
|
-
fail ArgumentError, 'invalid value for "merchant_transaction_id", the character length must be smaller than or equal to 40.'
|
307
|
-
end
|
308
|
-
|
309
|
-
@merchant_transaction_id = merchant_transaction_id
|
310
|
-
end
|
311
|
-
|
312
|
-
# Custom attribute writer method checking allowed values (enum).
|
313
|
-
# @param [Object] transaction_status Object to be assigned
|
314
|
-
def transaction_status=(transaction_status)
|
315
|
-
validator = EnumAttributeValidator.new('String', ["APPROVED", "WAITING", "VALIDATION_FAILED", "PROCESSING_FAILED", "DECLINED"])
|
316
|
-
unless validator.valid?(transaction_status)
|
317
|
-
fail ArgumentError, "invalid value for \"transaction_status\", must be one of #{validator.allowable_values}."
|
318
|
-
end
|
319
|
-
@transaction_status = transaction_status
|
320
|
-
end
|
321
|
-
|
322
|
-
# Custom attribute writer method checking allowed values (enum).
|
323
|
-
# @param [Object] transaction_state Object to be assigned
|
324
|
-
def transaction_state=(transaction_state)
|
325
|
-
validator = EnumAttributeValidator.new('String', ["AUTHORIZED", "CAPTURED", "DECLINED", "CHECKED", "COMPLETED_GET", "INITIALIZED", "PENDING", "READY", "TEMPLATE", "SETTLED", "VOIDED", "WAITING"])
|
326
|
-
unless validator.valid?(transaction_state)
|
327
|
-
fail ArgumentError, "invalid value for \"transaction_state\", must be one of #{validator.allowable_values}."
|
328
|
-
end
|
329
|
-
@transaction_state = transaction_state
|
330
|
-
end
|
331
|
-
|
332
|
-
# Custom attribute writer method with validation
|
333
|
-
# @param [Object] scheme_transaction_id Value to be assigned
|
334
|
-
def scheme_transaction_id=(scheme_transaction_id)
|
335
|
-
if !scheme_transaction_id.nil? && scheme_transaction_id.to_s.length > 40
|
336
|
-
fail ArgumentError, 'invalid value for "scheme_transaction_id", the character length must be smaller than or equal to 40.'
|
337
|
-
end
|
338
|
-
|
339
|
-
@scheme_transaction_id = scheme_transaction_id
|
340
|
-
end
|
341
|
-
|
342
|
-
# Checks equality by comparing each attribute.
|
343
|
-
# @param [Object] Object to be compared
|
344
|
-
def ==(o)
|
345
|
-
return true if self.equal?(o)
|
346
|
-
self.class == o.class &&
|
347
|
-
ipg_transaction_id == o.ipg_transaction_id &&
|
348
|
-
order_id == o.order_id &&
|
349
|
-
transaction_type == o.transaction_type &&
|
350
|
-
payment_token == o.payment_token &&
|
351
|
-
transaction_origin == o.transaction_origin &&
|
352
|
-
payment_method_details == o.payment_method_details &&
|
353
|
-
country == o.country &&
|
354
|
-
terminal_id == o.terminal_id &&
|
355
|
-
merchant_id == o.merchant_id &&
|
356
|
-
merchant_transaction_id == o.merchant_transaction_id &&
|
357
|
-
transaction_time == o.transaction_time &&
|
358
|
-
approved_amount == o.approved_amount &&
|
359
|
-
transaction_status == o.transaction_status &&
|
360
|
-
transaction_state == o.transaction_state &&
|
361
|
-
secure3d_response == o.secure3d_response &&
|
362
|
-
redirect_url == o.redirect_url &&
|
363
|
-
authentication_response == o.authentication_response &&
|
364
|
-
scheme_transaction_id == o.scheme_transaction_id &&
|
365
|
-
processor == o.processor &&
|
366
|
-
additional_details == o.additional_details &&
|
367
|
-
account_updater_response == o.account_updater_response &&
|
368
|
-
ach_response == o.ach_response
|
369
|
-
end
|
370
|
-
|
371
|
-
# @see the `==` method
|
372
|
-
# @param [Object] Object to be compared
|
373
|
-
def eql?(o)
|
374
|
-
self == o
|
375
|
-
end
|
376
|
-
|
377
|
-
# Calculates hash code according to all attributes.
|
378
|
-
# @return [Integer] Hash code
|
379
|
-
def hash
|
380
|
-
[ipg_transaction_id, order_id, transaction_type, payment_token, transaction_origin, payment_method_details, country, terminal_id, merchant_id, merchant_transaction_id, transaction_time, approved_amount, transaction_status, transaction_state, secure3d_response, redirect_url, authentication_response, scheme_transaction_id, processor, additional_details, account_updater_response, ach_response].hash
|
381
|
-
end
|
382
|
-
|
383
|
-
# Builds the object from hash
|
384
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
385
|
-
# @return [Object] Returns the model itself
|
386
|
-
def self.build_from_hash(attributes)
|
387
|
-
new.build_from_hash(attributes)
|
388
|
-
end
|
389
|
-
|
390
|
-
# Builds the object from hash
|
391
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
392
|
-
# @return [Object] Returns the model itself
|
393
|
-
def build_from_hash(attributes, attribute_map = self.class.attribute_map, openapi_types = self.class.openapi_types)
|
394
|
-
return nil unless attributes.is_a?(Hash)
|
395
|
-
openapi_types.each_pair do |key, type|
|
396
|
-
if type =~ /\AArray<(.*)>/i
|
397
|
-
# check to ensure the input is an array given that the attribute
|
398
|
-
# is documented as an array but the input is not
|
399
|
-
if attributes[attribute_map[key]].is_a?(Array)
|
400
|
-
self.send("#{key}=", attributes[attribute_map[key]].map { |v| _deserialize($1, v) })
|
401
|
-
end
|
402
|
-
elsif !attributes[attribute_map[key]].nil?
|
403
|
-
self.send("#{key}=", _deserialize(type, attributes[attribute_map[key]]))
|
404
|
-
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
405
|
-
end
|
406
|
-
|
407
|
-
self
|
408
|
-
end
|
409
|
-
|
410
|
-
# Deserializes the data based on type
|
411
|
-
# @param string type Data type
|
412
|
-
# @param string value Value to be deserialized
|
413
|
-
# @return [Object] Deserialized data
|
414
|
-
def _deserialize(type, value)
|
415
|
-
case type.to_sym
|
416
|
-
when :DateTime
|
417
|
-
DateTime.parse(value)
|
418
|
-
when :Date
|
419
|
-
Date.parse(value)
|
420
|
-
when :String
|
421
|
-
value.to_s
|
422
|
-
when :Integer
|
423
|
-
value.to_i
|
424
|
-
when :Float
|
425
|
-
value.to_f
|
426
|
-
when :Boolean
|
427
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
428
|
-
true
|
429
|
-
else
|
430
|
-
false
|
431
|
-
end
|
432
|
-
when :Object
|
433
|
-
# generic object (usually a Hash), return directly
|
434
|
-
value
|
435
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
436
|
-
inner_type = Regexp.last_match[:inner_type]
|
437
|
-
value.map { |v| _deserialize(inner_type, v) }
|
438
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
439
|
-
k_type = Regexp.last_match[:k_type]
|
440
|
-
v_type = Regexp.last_match[:v_type]
|
441
|
-
{}.tap do |hash|
|
442
|
-
value.each do |k, v|
|
443
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
444
|
-
end
|
445
|
-
end
|
446
|
-
else # model
|
447
|
-
klass = OpenapiClient.const_get(type)
|
448
|
-
if klass.respond_to?(:openapi_discriminator_name)
|
449
|
-
klass = OpenapiClient.const_get(value[klass.attribute_map[klass.openapi_discriminator_name]])
|
450
|
-
end
|
451
|
-
|
452
|
-
klass.build_from_hash(value)
|
453
|
-
end
|
454
|
-
end
|
455
|
-
|
456
|
-
# Returns the string representation of the object
|
457
|
-
# @return [String] String presentation of the object
|
458
|
-
def to_s
|
459
|
-
to_hash.to_s
|
460
|
-
end
|
461
|
-
|
462
|
-
# to_body is an alias to to_hash (backward compatibility)
|
463
|
-
# @return [Hash] Returns the object in the form of hash
|
464
|
-
def to_body
|
465
|
-
to_hash
|
466
|
-
end
|
467
|
-
|
468
|
-
# Returns the object in the form of hash
|
469
|
-
# @return [Hash] Returns the object in the form of hash
|
470
|
-
def to_hash(attribute_map = self.class.attribute_map, openapi_nullable = self.class.openapi_nullable)
|
471
|
-
hash = {}
|
472
|
-
attribute_map.each_pair do |attr, param|
|
473
|
-
value = self.send(attr)
|
474
|
-
if value.nil?
|
475
|
-
is_nullable = openapi_nullable.include?(attr)
|
476
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
477
|
-
end
|
478
|
-
|
479
|
-
hash[param] = _to_hash(value)
|
480
|
-
end
|
481
|
-
hash
|
482
|
-
end
|
483
|
-
|
484
|
-
# Outputs non-array value in the form of hash
|
485
|
-
# For object, use to_hash. Otherwise, just return the value
|
486
|
-
# @param [Object] value Any valid value
|
487
|
-
# @return [Hash] Returns the value in the form of hash
|
488
|
-
def _to_hash(value)
|
489
|
-
if value.is_a?(Array)
|
490
|
-
value.compact.map { |v| _to_hash(v) }
|
491
|
-
elsif value.is_a?(Hash)
|
492
|
-
{}.tap do |hash|
|
493
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
494
|
-
end
|
495
|
-
elsif value.respond_to? :to_hash
|
496
|
-
value.to_hash
|
497
|
-
else
|
498
|
-
value
|
499
|
-
end
|
500
|
-
end
|
501
|
-
end
|
502
|
-
end
|