integration_api 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/README.md +438 -0
- data/Rakefile +8 -0
- data/docs/ACHApi.md +878 -0
- data/docs/AccountingApi.md +633 -0
- data/docs/AccountingCustomerResponseVO.md +9 -0
- data/docs/AccountingCustomerRevenueResponseVO.md +9 -0
- data/docs/AccountingFinalResponseVO.md +15 -0
- data/docs/AccountingInvoicePaymentResponseVO.md +9 -0
- data/docs/AccountingInvoiceResponseVO.md +9 -0
- data/docs/AccountingStatsResponseVO.md +9 -0
- data/docs/AchBalanceResponseVO.md +13 -0
- data/docs/AchBankLinkRequestCO.md +10 -0
- data/docs/AchBankLinkResponseVO.md +14 -0
- data/docs/AchBusinessRequestCO.md +10 -0
- data/docs/AchBusinessResponseVO.md +12 -0
- data/docs/AchCardLinkRequestCO.md +9 -0
- data/docs/AchCardLinkResponseVO.md +12 -0
- data/docs/AchClientRequestCO.md +10 -0
- data/docs/AchClientResponseVO.md +12 -0
- data/docs/AchTransferRequestCO.md +10 -0
- data/docs/AchTransferResponseVO.md +14 -0
- data/docs/Acquiree.md +10 -0
- data/docs/Acquirer.md +10 -0
- data/docs/Address.md +15 -0
- data/docs/AggregationAccount.md +29 -0
- data/docs/AggregationAccountBalance.md +18 -0
- data/docs/AggregationAccountBalanceResponseVO.md +11 -0
- data/docs/AggregationAccountHolding.md +27 -0
- data/docs/AggregationAccountHoldingResponseInternalObjectVO.md +9 -0
- data/docs/AggregationAccountHoldingResponseVO.md +11 -0
- data/docs/AggregationAccountResponseInternalObjectVO.md +9 -0
- data/docs/AggregationAccountResponseVO.md +11 -0
- data/docs/AggregationAccountTransaction.md +24 -0
- data/docs/AggregationAccountTransactionResponseInternalObjectVO.md +9 -0
- data/docs/AggregationAccountTransactionResponseVO.md +12 -0
- data/docs/AggregationAccountsResponseVO.md +11 -0
- data/docs/AggregationApi.md +722 -0
- data/docs/AggregationRequestObject.md +12 -0
- data/docs/AggregationVendorRequestCO.md +10 -0
- data/docs/ApplePayload.md +10 -0
- data/docs/AsyncApi.md +262 -0
- data/docs/AsyncTransaction.md +12 -0
- data/docs/AsyncTransactionVO.md +10 -0
- data/docs/BaasAccountCO.md +9 -0
- data/docs/BaasAccountVO.md +16 -0
- data/docs/BaasApi.md +551 -0
- data/docs/BaasBalanceVO.md +12 -0
- data/docs/BaasBusinessVO.md +14 -0
- data/docs/BaasClientVO.md +14 -0
- data/docs/BaasStatementVO.md +13 -0
- data/docs/BaasStatementsVO.md +10 -0
- data/docs/BaasSubAccountCO.md +8 -0
- data/docs/BaasSubAccountVO.md +15 -0
- data/docs/BaasTransactionsVO.md +12 -0
- data/docs/BankCredit.md +15 -0
- data/docs/BankLink.md +29 -0
- data/docs/BankLinkResponseInternalObjectVO.md +9 -0
- data/docs/BankLinkVendorDataVO.md +9 -0
- data/docs/BaseResponseVO.md +10 -0
- data/docs/BrokerageAccountCO.md +9 -0
- data/docs/BrokerageAccountVO.md +12 -0
- data/docs/BrokerageApi.md +1170 -0
- data/docs/BrokerageBalanceVO.md +13 -0
- data/docs/BrokerageBankLinkCO.md +8 -0
- data/docs/BrokerageBankLinkVO.md +13 -0
- data/docs/BrokerageClientCO.md +9 -0
- data/docs/BrokerageCreateClientVO.md +12 -0
- data/docs/BrokerageDepositCO.md +8 -0
- data/docs/BrokerageDepositVO.md +12 -0
- data/docs/BrokerageDocumentCO.md +9 -0
- data/docs/BrokerageDocumentVO.md +13 -0
- data/docs/BrokerageHoldingVO.md +13 -0
- data/docs/BrokerageOrderCO.md +8 -0
- data/docs/BrokerageOrderVO.md +13 -0
- data/docs/BrokeragePerformanceVO.md +13 -0
- data/docs/BrokerageSecuritiesVO.md +11 -0
- data/docs/BrokerageStatementVO.md +10 -0
- data/docs/BrokerageTransactionVO.md +13 -0
- data/docs/BrokerageUpdateClientVO.md +13 -0
- data/docs/BrokerageWithdrawalCO.md +8 -0
- data/docs/BrokerageWithdrawalVO.md +12 -0
- data/docs/BusinessAddress.md +14 -0
- data/docs/BusinessVendorRequestDataVO.md +22 -0
- data/docs/CardApi.md +1684 -0
- data/docs/CardAutoReloadRequestCO.md +11 -0
- data/docs/CardAutoReloadResponseVO.md +13 -0
- data/docs/CardBalanceResponseVO.md +13 -0
- data/docs/CardBaseRequestCO.md +10 -0
- data/docs/CardBusinessRequestCO.md +8 -0
- data/docs/CardClientRequestCO.md +9 -0
- data/docs/CardLoadRequestCO.md +9 -0
- data/docs/CardLoadUnloadResponseVO.md +14 -0
- data/docs/CardPinRequestCO.md +11 -0
- data/docs/CardReplaceResponseVO.md +14 -0
- data/docs/CardReserveAccountResponseVO.md +14 -0
- data/docs/CardSpendingControlRequestCO.md +8 -0
- data/docs/CardSpendingControlResponseVO.md +12 -0
- data/docs/CardTokenRequestCO.md +11 -0
- data/docs/CardTokenResponseVO.md +15 -0
- data/docs/CardTransactionResponseVO.md +13 -0
- data/docs/CardUnloadRequestCO.md +9 -0
- data/docs/CardUpdatePinRequestCO.md +11 -0
- data/docs/Cash.md +10 -0
- data/docs/ClientAddress.md +15 -0
- data/docs/ClientVendorRequestDataVO.md +25 -0
- data/docs/CreateBaasBusinessCO.md +9 -0
- data/docs/CreateBaasClientCO.md +9 -0
- data/docs/CreateBusinessResponseVO.md +12 -0
- data/docs/CreateCardClientResponseVO.md +12 -0
- data/docs/CreateUserRequest.md +13 -0
- data/docs/Customer.md +21 -0
- data/docs/CustomerAddress.md +14 -0
- data/docs/CustomerRevenue.md +16 -0
- data/docs/Dividend.md +10 -0
- data/docs/DividendTax.md +9 -0
- data/docs/Email.md +26 -0
- data/docs/EmailClick.md +11 -0
- data/docs/EmailOpen.md +10 -0
- data/docs/ExchangePublicTokenVO.md +12 -0
- data/docs/ExchangeTokenCO.md +13 -0
- data/docs/FinancialStatement.md +23 -0
- data/docs/GetCardImageResponseVO.md +12 -0
- data/docs/GetCardPciDetailsResponseVO.md +14 -0
- data/docs/GetCardStatementResponseVO.md +15 -0
- data/docs/GetCardTokenResponseVO.md +15 -0
- data/docs/GetTransactionsResponse.md +8 -0
- data/docs/GooglePayload.md +8 -0
- data/docs/IAVApi.md +126 -0
- data/docs/IavAggregationResponseVo.md +9 -0
- data/docs/IavBankLinkResponseVo.md +9 -0
- data/docs/IavRequestCO.md +14 -0
- data/docs/IavResponseVo.md +10 -0
- data/docs/IavTokenExchangeVendorResponseVO.md +7 -0
- data/docs/IavVendorRequestCO.md +10 -0
- data/docs/Identification.md +14 -0
- data/docs/Instrument.md +10 -0
- data/docs/Investment.md +16 -0
- data/docs/Invoice.md +32 -0
- data/docs/InvoicePayment.md +15 -0
- data/docs/JsonNode.md +28 -0
- data/docs/KMSApi.md +314 -0
- data/docs/KYCApi.md +135 -0
- data/docs/KmsConfig.md +19 -0
- data/docs/KycRequestCO.md +16 -0
- data/docs/KycResponseVo.md +18 -0
- data/docs/KycVendorRequestDataVO.md +30 -0
- data/docs/LineItems.md +15 -0
- data/docs/Location.md +15 -0
- data/docs/Mapstringobject.md +7 -0
- data/docs/MarketDataApi.md +122 -0
- data/docs/MdHistoryItemVO.md +14 -0
- data/docs/MdHistoryRequestCO.md +12 -0
- data/docs/MdHistoryResponseVO.md +8 -0
- data/docs/MdQuoteItemVO.md +25 -0
- data/docs/MdQuoteRequestCO.md +11 -0
- data/docs/MdQuoteResponseVO.md +8 -0
- data/docs/MergerAcquisition.md +10 -0
- data/docs/NucleusTransferFieldsCO.md +9 -0
- data/docs/Ownership.md +9 -0
- data/docs/PageAchTransferResponseVO.md +16 -0
- data/docs/PageKmsConfig.md +16 -0
- data/docs/PageWebhook.md +16 -0
- data/docs/Pageobject.md +16 -0
- data/docs/PoliticallyExposedPersonDTO.md +11 -0
- data/docs/PortfolioAssetSizeLog.md +20 -0
- data/docs/PropertyValueResponseVO.md +12 -0
- data/docs/RTPApi.md +521 -0
- data/docs/ResponseEntity.md +10 -0
- data/docs/RtpBankLinkRequestCO.md +9 -0
- data/docs/RtpBankLinkResponseVO.md +14 -0
- data/docs/RtpTransferRequestCO.md +9 -0
- data/docs/RtpTransferResponseVO.md +13 -0
- data/docs/SMS.md +24 -0
- data/docs/SMSApi.md +128 -0
- data/docs/SMSResponseVO.md +13 -0
- data/docs/SMSVO.md +12 -0
- data/docs/SMTPApi.md +128 -0
- data/docs/SamsungPayload.md +8 -0
- data/docs/SmtpResponseVO.md +13 -0
- data/docs/SmtpVO.md +17 -0
- data/docs/Sort.md +13 -0
- data/docs/SpendingControlVendorRequestDataVO.md +16 -0
- data/docs/Stat.md +9 -0
- data/docs/Transaction.md +29 -0
- data/docs/UpdateBaasBusinessCO.md +8 -0
- data/docs/UpdateBaasClientCO.md +8 -0
- data/docs/UpdateBusinessResponseVO.md +12 -0
- data/docs/UpdateCardClientResponseVO.md +12 -0
- data/docs/UserResponseInterface.md +7 -0
- data/docs/UserResponseVO.md +13 -0
- data/docs/UtilsApi.md +273 -0
- data/docs/VendorAccessConfigVO.md +10 -0
- data/docs/Webhook.md +15 -0
- data/docs/WebhookApi.md +314 -0
- data/docs/WidgetUrlVO.md +9 -0
- data/docs/WireApi.md +521 -0
- data/docs/WireBankLinkRequestCO.md +9 -0
- data/docs/WireBankLinkResponseVO.md +14 -0
- data/docs/WireTransferRequestCO.md +9 -0
- data/docs/WireTransferResponseVO.md +13 -0
- data/docs/ZillowPropertyVendorResponseVO.md +12 -0
- data/git_push.sh +55 -0
- data/integration_api.gemspec +46 -0
- data/lib/integration_api.rb +239 -0
- data/lib/integration_api/api/accounting_api.rb +597 -0
- data/lib/integration_api/api/ach_api.rb +800 -0
- data/lib/integration_api/api/aggregation_api.rb +665 -0
- data/lib/integration_api/api/async_api.rb +269 -0
- data/lib/integration_api/api/baas_api.rb +518 -0
- data/lib/integration_api/api/brokerage_api.rb +1089 -0
- data/lib/integration_api/api/card_api.rb +1548 -0
- data/lib/integration_api/api/iav_api.rb +129 -0
- data/lib/integration_api/api/kms_api.rb +301 -0
- data/lib/integration_api/api/kyc_api.rb +138 -0
- data/lib/integration_api/api/market_data_api.rb +127 -0
- data/lib/integration_api/api/rtp_api.rb +479 -0
- data/lib/integration_api/api/sms_api.rb +129 -0
- data/lib/integration_api/api/smtp_api.rb +129 -0
- data/lib/integration_api/api/utils_api.rb +272 -0
- data/lib/integration_api/api/webhook_api.rb +301 -0
- data/lib/integration_api/api/wire_api.rb +479 -0
- data/lib/integration_api/api_client.rb +391 -0
- data/lib/integration_api/api_error.rb +38 -0
- data/lib/integration_api/auth_configuration.rb +177 -0
- data/lib/integration_api/configuration.rb +209 -0
- data/lib/integration_api/models/accounting_customer_response_vo.rb +191 -0
- data/lib/integration_api/models/accounting_customer_revenue_response_vo.rb +191 -0
- data/lib/integration_api/models/accounting_final_response_vo.rb +253 -0
- data/lib/integration_api/models/accounting_invoice_payment_response_vo.rb +191 -0
- data/lib/integration_api/models/accounting_invoice_response_vo.rb +191 -0
- data/lib/integration_api/models/accounting_stats_response_vo.rb +191 -0
- data/lib/integration_api/models/ach_balance_response_vo.rb +231 -0
- data/lib/integration_api/models/ach_bank_link_request_co.rb +200 -0
- data/lib/integration_api/models/ach_bank_link_response_vo.rb +236 -0
- data/lib/integration_api/models/ach_business_request_co.rb +200 -0
- data/lib/integration_api/models/ach_business_response_vo.rb +218 -0
- data/lib/integration_api/models/ach_card_link_request_co.rb +191 -0
- data/lib/integration_api/models/ach_card_link_response_vo.rb +218 -0
- data/lib/integration_api/models/ach_client_request_co.rb +200 -0
- data/lib/integration_api/models/ach_client_response_vo.rb +218 -0
- data/lib/integration_api/models/ach_transfer_request_co.rb +200 -0
- data/lib/integration_api/models/ach_transfer_response_vo.rb +236 -0
- data/lib/integration_api/models/acquiree.rb +200 -0
- data/lib/integration_api/models/acquirer.rb +200 -0
- data/lib/integration_api/models/address.rb +281 -0
- data/lib/integration_api/models/aggregation_account.rb +411 -0
- data/lib/integration_api/models/aggregation_account_balance.rb +293 -0
- data/lib/integration_api/models/aggregation_account_balance_response_vo.rb +209 -0
- data/lib/integration_api/models/aggregation_account_holding.rb +381 -0
- data/lib/integration_api/models/aggregation_account_holding_response_internal_object_vo.rb +191 -0
- data/lib/integration_api/models/aggregation_account_holding_response_vo.rb +211 -0
- data/lib/integration_api/models/aggregation_account_response_internal_object_vo.rb +191 -0
- data/lib/integration_api/models/aggregation_account_response_vo.rb +209 -0
- data/lib/integration_api/models/aggregation_account_transaction.rb +348 -0
- data/lib/integration_api/models/aggregation_account_transaction_response_internal_object_vo.rb +191 -0
- data/lib/integration_api/models/aggregation_account_transaction_response_vo.rb +222 -0
- data/lib/integration_api/models/aggregation_accounts_response_vo.rb +211 -0
- data/lib/integration_api/models/aggregation_request_object.rb +218 -0
- data/lib/integration_api/models/aggregation_vendor_request_co.rb +200 -0
- data/lib/integration_api/models/apple_payload.rb +200 -0
- data/lib/integration_api/models/async_transaction.rb +218 -0
- data/lib/integration_api/models/async_transaction_vo.rb +200 -0
- data/lib/integration_api/models/baas_account_co.rb +191 -0
- data/lib/integration_api/models/baas_account_vo.rb +254 -0
- data/lib/integration_api/models/baas_balance_vo.rb +222 -0
- data/lib/integration_api/models/baas_business_vo.rb +238 -0
- data/lib/integration_api/models/baas_client_vo.rb +238 -0
- data/lib/integration_api/models/baas_statement_vo.rb +227 -0
- data/lib/integration_api/models/baas_statements_vo.rb +202 -0
- data/lib/integration_api/models/baas_sub_account_co.rb +182 -0
- data/lib/integration_api/models/baas_sub_account_vo.rb +245 -0
- data/lib/integration_api/models/baas_transactions_vo.rb +222 -0
- data/lib/integration_api/models/bank_credit.rb +263 -0
- data/lib/integration_api/models/bank_link.rb +412 -0
- data/lib/integration_api/models/bank_link_response_internal_object_vo.rb +191 -0
- data/lib/integration_api/models/bank_link_vendor_data_vo.rb +191 -0
- data/lib/integration_api/models/base_response_vo.rb +200 -0
- data/lib/integration_api/models/brokerage_account_co.rb +193 -0
- data/lib/integration_api/models/brokerage_account_vo.rb +218 -0
- data/lib/integration_api/models/brokerage_balance_vo.rb +229 -0
- data/lib/integration_api/models/brokerage_bank_link_co.rb +182 -0
- data/lib/integration_api/models/brokerage_bank_link_vo.rb +227 -0
- data/lib/integration_api/models/brokerage_client_co.rb +193 -0
- data/lib/integration_api/models/brokerage_create_client_vo.rb +218 -0
- data/lib/integration_api/models/brokerage_deposit_co.rb +182 -0
- data/lib/integration_api/models/brokerage_deposit_vo.rb +218 -0
- data/lib/integration_api/models/brokerage_document_co.rb +191 -0
- data/lib/integration_api/models/brokerage_document_vo.rb +227 -0
- data/lib/integration_api/models/brokerage_holding_vo.rb +227 -0
- data/lib/integration_api/models/brokerage_order_co.rb +182 -0
- data/lib/integration_api/models/brokerage_order_vo.rb +227 -0
- data/lib/integration_api/models/brokerage_performance_vo.rb +227 -0
- data/lib/integration_api/models/brokerage_securities_vo.rb +209 -0
- data/lib/integration_api/models/brokerage_statement_vo.rb +200 -0
- data/lib/integration_api/models/brokerage_transaction_vo.rb +227 -0
- data/lib/integration_api/models/brokerage_update_client_vo.rb +227 -0
- data/lib/integration_api/models/brokerage_withdrawal_co.rb +182 -0
- data/lib/integration_api/models/brokerage_withdrawal_vo.rb +218 -0
- data/lib/integration_api/models/business_address.rb +244 -0
- data/lib/integration_api/models/business_vendor_request_data_vo.rb +314 -0
- data/lib/integration_api/models/card_auto_reload_request_co.rb +209 -0
- data/lib/integration_api/models/card_auto_reload_response_vo.rb +227 -0
- data/lib/integration_api/models/card_balance_response_vo.rb +231 -0
- data/lib/integration_api/models/card_base_request_co.rb +200 -0
- data/lib/integration_api/models/card_business_request_co.rb +182 -0
- data/lib/integration_api/models/card_client_request_co.rb +193 -0
- data/lib/integration_api/models/card_load_request_co.rb +191 -0
- data/lib/integration_api/models/card_load_unload_response_vo.rb +236 -0
- data/lib/integration_api/models/card_pin_request_co.rb +209 -0
- data/lib/integration_api/models/card_replace_response_vo.rb +236 -0
- data/lib/integration_api/models/card_reserve_account_response_vo.rb +236 -0
- data/lib/integration_api/models/card_spending_control_request_co.rb +182 -0
- data/lib/integration_api/models/card_spending_control_response_vo.rb +218 -0
- data/lib/integration_api/models/card_token_request_co.rb +243 -0
- data/lib/integration_api/models/card_token_response_vo.rb +279 -0
- data/lib/integration_api/models/card_transaction_response_vo.rb +231 -0
- data/lib/integration_api/models/card_unload_request_co.rb +191 -0
- data/lib/integration_api/models/card_update_pin_request_co.rb +209 -0
- data/lib/integration_api/models/cash.rb +214 -0
- data/lib/integration_api/models/client_address.rb +286 -0
- data/lib/integration_api/models/client_vendor_request_data_vo.rb +341 -0
- data/lib/integration_api/models/create_baas_business_co.rb +193 -0
- data/lib/integration_api/models/create_baas_client_co.rb +193 -0
- data/lib/integration_api/models/create_business_response_vo.rb +218 -0
- data/lib/integration_api/models/create_card_client_response_vo.rb +218 -0
- data/lib/integration_api/models/create_user_request.rb +227 -0
- data/lib/integration_api/models/customer.rb +318 -0
- data/lib/integration_api/models/customer_address.rb +269 -0
- data/lib/integration_api/models/customer_revenue.rb +285 -0
- data/lib/integration_api/models/dividend.rb +200 -0
- data/lib/integration_api/models/dividend_tax.rb +191 -0
- data/lib/integration_api/models/email.rb +360 -0
- data/lib/integration_api/models/email_click.rb +221 -0
- data/lib/integration_api/models/email_open.rb +206 -0
- data/lib/integration_api/models/exchange_public_token_vo.rb +218 -0
- data/lib/integration_api/models/exchange_token_co.rb +227 -0
- data/lib/integration_api/models/financial_statement.rb +353 -0
- data/lib/integration_api/models/get_card_image_response_vo.rb +218 -0
- data/lib/integration_api/models/get_card_pci_details_response_vo.rb +236 -0
- data/lib/integration_api/models/get_card_statement_response_vo.rb +247 -0
- data/lib/integration_api/models/get_card_token_response_vo.rb +279 -0
- data/lib/integration_api/models/get_transactions_response.rb +184 -0
- data/lib/integration_api/models/google_payload.rb +182 -0
- data/lib/integration_api/models/iav_aggregation_response_vo.rb +191 -0
- data/lib/integration_api/models/iav_bank_link_response_vo.rb +193 -0
- data/lib/integration_api/models/iav_request_co.rb +236 -0
- data/lib/integration_api/models/iav_response_vo.rb +200 -0
- data/lib/integration_api/models/iav_token_exchange_vendor_response_vo.rb +173 -0
- data/lib/integration_api/models/iav_vendor_request_co.rb +200 -0
- data/lib/integration_api/models/identification.rb +236 -0
- data/lib/integration_api/models/instrument.rb +200 -0
- data/lib/integration_api/models/investment.rb +284 -0
- data/lib/integration_api/models/invoice.rb +453 -0
- data/lib/integration_api/models/invoice_payment.rb +270 -0
- data/lib/integration_api/models/json_node.rb +396 -0
- data/lib/integration_api/models/kms_config.rb +308 -0
- data/lib/integration_api/models/kyc_request_co.rb +256 -0
- data/lib/integration_api/models/kyc_response_vo.rb +272 -0
- data/lib/integration_api/models/kyc_vendor_request_data_vo.rb +386 -0
- data/lib/integration_api/models/line_items.rb +279 -0
- data/lib/integration_api/models/location.rb +254 -0
- data/lib/integration_api/models/mapstringobject.rb +173 -0
- data/lib/integration_api/models/md_history_item_vo.rb +236 -0
- data/lib/integration_api/models/md_history_request_co.rb +222 -0
- data/lib/integration_api/models/md_history_response_vo.rb +184 -0
- data/lib/integration_api/models/md_quote_item_vo.rb +335 -0
- data/lib/integration_api/models/md_quote_request_co.rb +247 -0
- data/lib/integration_api/models/md_quote_response_vo.rb +184 -0
- data/lib/integration_api/models/merger_acquisition.rb +200 -0
- data/lib/integration_api/models/nucleus_transfer_fields_co.rb +191 -0
- data/lib/integration_api/models/ownership.rb +191 -0
- data/lib/integration_api/models/page_ach_transfer_response_vo.rb +259 -0
- data/lib/integration_api/models/page_kms_config.rb +259 -0
- data/lib/integration_api/models/page_webhook.rb +259 -0
- data/lib/integration_api/models/pageobject.rb +259 -0
- data/lib/integration_api/models/politically_exposed_person_dto.rb +209 -0
- data/lib/integration_api/models/portfolio_asset_size_log.rb +330 -0
- data/lib/integration_api/models/property_value_response_vo.rb +218 -0
- data/lib/integration_api/models/response_entity.rb +234 -0
- data/lib/integration_api/models/rtp_bank_link_request_co.rb +191 -0
- data/lib/integration_api/models/rtp_bank_link_response_vo.rb +236 -0
- data/lib/integration_api/models/rtp_transfer_request_co.rb +191 -0
- data/lib/integration_api/models/rtp_transfer_response_vo.rb +227 -0
- data/lib/integration_api/models/samsung_payload.rb +182 -0
- data/lib/integration_api/models/sms.rb +338 -0
- data/lib/integration_api/models/sms_response_vo.rb +227 -0
- data/lib/integration_api/models/smsvo.rb +218 -0
- data/lib/integration_api/models/smtp_response_vo.rb +227 -0
- data/lib/integration_api/models/smtp_vo.rb +263 -0
- data/lib/integration_api/models/sort.rb +234 -0
- data/lib/integration_api/models/spending_control_vendor_request_data_vo.rb +256 -0
- data/lib/integration_api/models/stat.rb +204 -0
- data/lib/integration_api/models/transaction.rb +371 -0
- data/lib/integration_api/models/update_baas_business_co.rb +184 -0
- data/lib/integration_api/models/update_baas_client_co.rb +184 -0
- data/lib/integration_api/models/update_business_response_vo.rb +218 -0
- data/lib/integration_api/models/update_card_client_response_vo.rb +218 -0
- data/lib/integration_api/models/user_response_interface.rb +173 -0
- data/lib/integration_api/models/user_response_vo.rb +227 -0
- data/lib/integration_api/models/vendor_access_config_vo.rb +203 -0
- data/lib/integration_api/models/webhook.rb +280 -0
- data/lib/integration_api/models/widget_url_vo.rb +191 -0
- data/lib/integration_api/models/wire_bank_link_request_co.rb +191 -0
- data/lib/integration_api/models/wire_bank_link_response_vo.rb +236 -0
- data/lib/integration_api/models/wire_transfer_request_co.rb +191 -0
- data/lib/integration_api/models/wire_transfer_response_vo.rb +227 -0
- data/lib/integration_api/models/zillow_property_vendor_response_vo.rb +218 -0
- data/lib/integration_api/version.rb +15 -0
- data/spec/api/accounting_api_spec.rb +169 -0
- data/spec/api/ach_api_spec.rb +207 -0
- data/spec/api/aggregation_api_spec.rb +181 -0
- data/spec/api/async_api_spec.rb +89 -0
- data/spec/api/baas_api_spec.rb +143 -0
- data/spec/api/brokerage_api_spec.rb +263 -0
- data/spec/api/card_api_spec.rb +363 -0
- data/spec/api/iav_api_spec.rb +59 -0
- data/spec/api/kms_api_spec.rb +100 -0
- data/spec/api/kyc_api_spec.rb +63 -0
- data/spec/api/market_data_api_spec.rb +57 -0
- data/spec/api/rtp_api_spec.rb +134 -0
- data/spec/api/sms_api_spec.rb +59 -0
- data/spec/api/smtp_api_spec.rb +59 -0
- data/spec/api/utils_api_spec.rb +96 -0
- data/spec/api/webhook_api_spec.rb +100 -0
- data/spec/api/wire_api_spec.rb +134 -0
- data/spec/api_client_spec.rb +243 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/accounting_customer_response_vo_spec.rb +47 -0
- data/spec/models/accounting_customer_revenue_response_vo_spec.rb +47 -0
- data/spec/models/accounting_final_response_vo_spec.rb +83 -0
- data/spec/models/accounting_invoice_payment_response_vo_spec.rb +47 -0
- data/spec/models/accounting_invoice_response_vo_spec.rb +47 -0
- data/spec/models/accounting_stats_response_vo_spec.rb +47 -0
- data/spec/models/ach_balance_response_vo_spec.rb +71 -0
- data/spec/models/ach_bank_link_request_co_spec.rb +53 -0
- data/spec/models/ach_bank_link_response_vo_spec.rb +77 -0
- data/spec/models/ach_business_request_co_spec.rb +53 -0
- data/spec/models/ach_business_response_vo_spec.rb +65 -0
- data/spec/models/ach_card_link_request_co_spec.rb +47 -0
- data/spec/models/ach_card_link_response_vo_spec.rb +65 -0
- data/spec/models/ach_client_request_co_spec.rb +53 -0
- data/spec/models/ach_client_response_vo_spec.rb +65 -0
- data/spec/models/ach_transfer_request_co_spec.rb +53 -0
- data/spec/models/ach_transfer_response_vo_spec.rb +77 -0
- data/spec/models/acquiree_spec.rb +53 -0
- data/spec/models/acquirer_spec.rb +53 -0
- data/spec/models/address_spec.rb +87 -0
- data/spec/models/aggregation_account_balance_response_vo_spec.rb +59 -0
- data/spec/models/aggregation_account_balance_spec.rb +101 -0
- data/spec/models/aggregation_account_holding_response_internal_object_vo_spec.rb +47 -0
- data/spec/models/aggregation_account_holding_response_vo_spec.rb +59 -0
- data/spec/models/aggregation_account_holding_spec.rb +155 -0
- data/spec/models/aggregation_account_response_internal_object_vo_spec.rb +47 -0
- data/spec/models/aggregation_account_response_vo_spec.rb +59 -0
- data/spec/models/aggregation_account_spec.rb +167 -0
- data/spec/models/aggregation_account_transaction_response_internal_object_vo_spec.rb +47 -0
- data/spec/models/aggregation_account_transaction_response_vo_spec.rb +65 -0
- data/spec/models/aggregation_account_transaction_spec.rb +137 -0
- data/spec/models/aggregation_accounts_response_vo_spec.rb +59 -0
- data/spec/models/aggregation_request_object_spec.rb +65 -0
- data/spec/models/aggregation_vendor_request_co_spec.rb +53 -0
- data/spec/models/apple_payload_spec.rb +53 -0
- data/spec/models/async_transaction_spec.rb +65 -0
- data/spec/models/async_transaction_vo_spec.rb +53 -0
- data/spec/models/baas_account_co_spec.rb +47 -0
- data/spec/models/baas_account_vo_spec.rb +89 -0
- data/spec/models/baas_balance_vo_spec.rb +65 -0
- data/spec/models/baas_business_vo_spec.rb +77 -0
- data/spec/models/baas_client_vo_spec.rb +77 -0
- data/spec/models/baas_statement_vo_spec.rb +71 -0
- data/spec/models/baas_statements_vo_spec.rb +53 -0
- data/spec/models/baas_sub_account_co_spec.rb +41 -0
- data/spec/models/baas_sub_account_vo_spec.rb +83 -0
- data/spec/models/baas_transactions_vo_spec.rb +65 -0
- data/spec/models/bank_credit_spec.rb +83 -0
- data/spec/models/bank_link_response_internal_object_vo_spec.rb +47 -0
- data/spec/models/bank_link_spec.rb +167 -0
- data/spec/models/bank_link_vendor_data_vo_spec.rb +47 -0
- data/spec/models/base_response_vo_spec.rb +53 -0
- data/spec/models/brokerage_account_co_spec.rb +47 -0
- data/spec/models/brokerage_account_vo_spec.rb +65 -0
- data/spec/models/brokerage_balance_vo_spec.rb +71 -0
- data/spec/models/brokerage_bank_link_co_spec.rb +41 -0
- data/spec/models/brokerage_bank_link_vo_spec.rb +71 -0
- data/spec/models/brokerage_client_co_spec.rb +47 -0
- data/spec/models/brokerage_create_client_vo_spec.rb +65 -0
- data/spec/models/brokerage_deposit_co_spec.rb +41 -0
- data/spec/models/brokerage_deposit_vo_spec.rb +65 -0
- data/spec/models/brokerage_document_co_spec.rb +47 -0
- data/spec/models/brokerage_document_vo_spec.rb +71 -0
- data/spec/models/brokerage_holding_vo_spec.rb +71 -0
- data/spec/models/brokerage_order_co_spec.rb +41 -0
- data/spec/models/brokerage_order_vo_spec.rb +71 -0
- data/spec/models/brokerage_performance_vo_spec.rb +71 -0
- data/spec/models/brokerage_securities_vo_spec.rb +59 -0
- data/spec/models/brokerage_statement_vo_spec.rb +53 -0
- data/spec/models/brokerage_transaction_vo_spec.rb +71 -0
- data/spec/models/brokerage_update_client_vo_spec.rb +71 -0
- data/spec/models/brokerage_withdrawal_co_spec.rb +41 -0
- data/spec/models/brokerage_withdrawal_vo_spec.rb +65 -0
- data/spec/models/business_address_spec.rb +77 -0
- data/spec/models/business_vendor_request_data_vo_spec.rb +125 -0
- data/spec/models/card_auto_reload_request_co_spec.rb +59 -0
- data/spec/models/card_auto_reload_response_vo_spec.rb +71 -0
- data/spec/models/card_balance_response_vo_spec.rb +71 -0
- data/spec/models/card_base_request_co_spec.rb +53 -0
- data/spec/models/card_business_request_co_spec.rb +41 -0
- data/spec/models/card_client_request_co_spec.rb +47 -0
- data/spec/models/card_load_request_co_spec.rb +47 -0
- data/spec/models/card_load_unload_response_vo_spec.rb +77 -0
- data/spec/models/card_pin_request_co_spec.rb +59 -0
- data/spec/models/card_replace_response_vo_spec.rb +77 -0
- data/spec/models/card_reserve_account_response_vo_spec.rb +77 -0
- data/spec/models/card_spending_control_request_co_spec.rb +41 -0
- data/spec/models/card_spending_control_response_vo_spec.rb +65 -0
- data/spec/models/card_token_request_co_spec.rb +63 -0
- data/spec/models/card_token_response_vo_spec.rb +87 -0
- data/spec/models/card_transaction_response_vo_spec.rb +71 -0
- data/spec/models/card_unload_request_co_spec.rb +47 -0
- data/spec/models/card_update_pin_request_co_spec.rb +59 -0
- data/spec/models/cash_spec.rb +53 -0
- data/spec/models/client_address_spec.rb +87 -0
- data/spec/models/client_vendor_request_data_vo_spec.rb +143 -0
- data/spec/models/create_baas_business_co_spec.rb +47 -0
- data/spec/models/create_baas_client_co_spec.rb +47 -0
- data/spec/models/create_business_response_vo_spec.rb +65 -0
- data/spec/models/create_card_client_response_vo_spec.rb +65 -0
- data/spec/models/create_user_request_spec.rb +71 -0
- data/spec/models/customer_address_spec.rb +77 -0
- data/spec/models/customer_revenue_spec.rb +89 -0
- data/spec/models/customer_spec.rb +119 -0
- data/spec/models/dividend_spec.rb +53 -0
- data/spec/models/dividend_tax_spec.rb +47 -0
- data/spec/models/email_click_spec.rb +59 -0
- data/spec/models/email_open_spec.rb +53 -0
- data/spec/models/email_spec.rb +149 -0
- data/spec/models/exchange_public_token_vo_spec.rb +65 -0
- data/spec/models/exchange_token_co_spec.rb +71 -0
- data/spec/models/financial_statement_spec.rb +131 -0
- data/spec/models/get_card_image_response_vo_spec.rb +65 -0
- data/spec/models/get_card_pci_details_response_vo_spec.rb +77 -0
- data/spec/models/get_card_statement_response_vo_spec.rb +83 -0
- data/spec/models/get_card_token_response_vo_spec.rb +87 -0
- data/spec/models/get_transactions_response_spec.rb +41 -0
- data/spec/models/google_payload_spec.rb +41 -0
- data/spec/models/iav_aggregation_response_vo_spec.rb +47 -0
- data/spec/models/iav_bank_link_response_vo_spec.rb +47 -0
- data/spec/models/iav_request_co_spec.rb +77 -0
- data/spec/models/iav_response_vo_spec.rb +53 -0
- data/spec/models/iav_token_exchange_vendor_response_vo_spec.rb +35 -0
- data/spec/models/iav_vendor_request_co_spec.rb +53 -0
- data/spec/models/identification_spec.rb +77 -0
- data/spec/models/instrument_spec.rb +53 -0
- data/spec/models/investment_spec.rb +89 -0
- data/spec/models/invoice_payment_spec.rb +83 -0
- data/spec/models/invoice_spec.rb +185 -0
- data/spec/models/json_node_spec.rb +165 -0
- data/spec/models/kms_config_spec.rb +107 -0
- data/spec/models/kyc_request_co_spec.rb +89 -0
- data/spec/models/kyc_response_vo_spec.rb +101 -0
- data/spec/models/kyc_vendor_request_data_vo_spec.rb +173 -0
- data/spec/models/line_items_spec.rb +83 -0
- data/spec/models/location_spec.rb +83 -0
- data/spec/models/mapstringobject_spec.rb +35 -0
- data/spec/models/md_history_item_vo_spec.rb +77 -0
- data/spec/models/md_history_request_co_spec.rb +65 -0
- data/spec/models/md_history_response_vo_spec.rb +41 -0
- data/spec/models/md_quote_item_vo_spec.rb +143 -0
- data/spec/models/md_quote_request_co_spec.rb +63 -0
- data/spec/models/md_quote_response_vo_spec.rb +41 -0
- data/spec/models/merger_acquisition_spec.rb +53 -0
- data/spec/models/nucleus_transfer_fields_co_spec.rb +47 -0
- data/spec/models/ownership_spec.rb +47 -0
- data/spec/models/page_ach_transfer_response_vo_spec.rb +89 -0
- data/spec/models/page_kms_config_spec.rb +89 -0
- data/spec/models/page_webhook_spec.rb +89 -0
- data/spec/models/pageobject_spec.rb +89 -0
- data/spec/models/politically_exposed_person_dto_spec.rb +59 -0
- data/spec/models/portfolio_asset_size_log_spec.rb +113 -0
- data/spec/models/property_value_response_vo_spec.rb +65 -0
- data/spec/models/response_entity_spec.rb +57 -0
- data/spec/models/rtp_bank_link_request_co_spec.rb +47 -0
- data/spec/models/rtp_bank_link_response_vo_spec.rb +77 -0
- data/spec/models/rtp_transfer_request_co_spec.rb +47 -0
- data/spec/models/rtp_transfer_response_vo_spec.rb +71 -0
- data/spec/models/samsung_payload_spec.rb +41 -0
- data/spec/models/sms_response_vo_spec.rb +71 -0
- data/spec/models/sms_spec.rb +137 -0
- data/spec/models/smsvo_spec.rb +65 -0
- data/spec/models/smtp_response_vo_spec.rb +71 -0
- data/spec/models/smtp_vo_spec.rb +95 -0
- data/spec/models/sort_spec.rb +71 -0
- data/spec/models/spending_control_vendor_request_data_vo_spec.rb +89 -0
- data/spec/models/stat_spec.rb +47 -0
- data/spec/models/transaction_spec.rb +167 -0
- data/spec/models/update_baas_business_co_spec.rb +41 -0
- data/spec/models/update_baas_client_co_spec.rb +41 -0
- data/spec/models/update_business_response_vo_spec.rb +65 -0
- data/spec/models/update_card_client_response_vo_spec.rb +65 -0
- data/spec/models/user_response_interface_spec.rb +35 -0
- data/spec/models/user_response_vo_spec.rb +71 -0
- data/spec/models/vendor_access_config_vo_spec.rb +53 -0
- data/spec/models/webhook_spec.rb +87 -0
- data/spec/models/widget_url_vo_spec.rb +47 -0
- data/spec/models/wire_bank_link_request_co_spec.rb +47 -0
- data/spec/models/wire_bank_link_response_vo_spec.rb +77 -0
- data/spec/models/wire_transfer_request_co_spec.rb +47 -0
- data/spec/models/wire_transfer_response_vo_spec.rb +71 -0
- data/spec/models/zillow_property_vendor_response_vo_spec.rb +65 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1056 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hydrogen Integration API
|
|
3
|
+
|
|
4
|
+
#The Hydrogen Integration API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.2.1
|
|
7
|
+
Contact: info@hydrogenplatform.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.18
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module IntegrationApi
|
|
16
|
+
class ResponseEntity
|
|
17
|
+
attr_accessor :body
|
|
18
|
+
|
|
19
|
+
attr_accessor :status_code
|
|
20
|
+
|
|
21
|
+
attr_accessor :status_code_value
|
|
22
|
+
|
|
23
|
+
class EnumAttributeValidator
|
|
24
|
+
attr_reader :datatype
|
|
25
|
+
attr_reader :allowable_values
|
|
26
|
+
|
|
27
|
+
def initialize(datatype, allowable_values)
|
|
28
|
+
@allowable_values = allowable_values.map do |value|
|
|
29
|
+
case datatype.to_s
|
|
30
|
+
when /Integer/i
|
|
31
|
+
value.to_i
|
|
32
|
+
when /Float/i
|
|
33
|
+
value.to_f
|
|
34
|
+
else
|
|
35
|
+
value
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def valid?(value)
|
|
41
|
+
!value || allowable_values.include?(value)
|
|
42
|
+
end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
46
|
+
def self.attribute_map
|
|
47
|
+
{
|
|
48
|
+
:'body' => :'body',
|
|
49
|
+
:'status_code' => :'status_code',
|
|
50
|
+
:'status_code_value' => :'status_code_value'
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute type mapping.
|
|
55
|
+
def self.swagger_types
|
|
56
|
+
{
|
|
57
|
+
:'body' => :'Object',
|
|
58
|
+
:'status_code' => :'String',
|
|
59
|
+
:'status_code_value' => :'Integer'
|
|
60
|
+
}
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# Initializes the object
|
|
64
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
65
|
+
def initialize(attributes = {})
|
|
66
|
+
return unless attributes.is_a?(Hash)
|
|
67
|
+
|
|
68
|
+
# convert string to symbol for hash key
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
70
|
+
|
|
71
|
+
if attributes.has_key?(:'body')
|
|
72
|
+
self.body = attributes[:'body']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.has_key?(:'status_code')
|
|
76
|
+
self.status_code = attributes[:'status_code']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'status_code_value')
|
|
80
|
+
self.status_code_value = attributes[:'status_code_value']
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
|
+
# @return Array for valid properties with the reasons
|
|
86
|
+
def list_invalid_properties
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
invalid_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
def valid?
|
|
94
|
+
status_code_validator = EnumAttributeValidator.new('String', ['100 CONTINUE', '101 SWITCHING_PROTOCOLS', '102 PROCESSING', '103 CHECKPOINT', '200 OK', '201 CREATED', '202 ACCEPTED', '203 NON_AUTHORITATIVE_INFORMATION', '204 NO_CONTENT', '205 RESET_CONTENT', '206 PARTIAL_CONTENT', '207 MULTI_STATUS', '208 ALREADY_REPORTED', '226 IM_USED', '300 MULTIPLE_CHOICES', '301 MOVED_PERMANENTLY', '302 FOUND', '302 MOVED_TEMPORARILY', '303 SEE_OTHER', '304 NOT_MODIFIED', '305 USE_PROXY', '307 TEMPORARY_REDIRECT', '308 PERMANENT_REDIRECT', '400 BAD_REQUEST', '401 UNAUTHORIZED', '402 PAYMENT_REQUIRED', '403 FORBIDDEN', '404 NOT_FOUND', '405 METHOD_NOT_ALLOWED', '406 NOT_ACCEPTABLE', '407 PROXY_AUTHENTICATION_REQUIRED', '408 REQUEST_TIMEOUT', '409 CONFLICT', '410 GONE', '411 LENGTH_REQUIRED', '412 PRECONDITION_FAILED', '413 PAYLOAD_TOO_LARGE', '413 REQUEST_ENTITY_TOO_LARGE', '414 URI_TOO_LONG', '414 REQUEST_URI_TOO_LONG', '415 UNSUPPORTED_MEDIA_TYPE', '416 REQUESTED_RANGE_NOT_SATISFIABLE', '417 EXPECTATION_FAILED', '418 I_AM_A_TEAPOT', '419 INSUFFICIENT_SPACE_ON_RESOURCE', '420 METHOD_FAILURE', '421 DESTINATION_LOCKED', '422 UNPROCESSABLE_ENTITY', '423 LOCKED', '424 FAILED_DEPENDENCY', '426 UPGRADE_REQUIRED', '428 PRECONDITION_REQUIRED', '429 TOO_MANY_REQUESTS', '431 REQUEST_HEADER_FIELDS_TOO_LARGE', '451 UNAVAILABLE_FOR_LEGAL_REASONS', '500 INTERNAL_SERVER_ERROR', '501 NOT_IMPLEMENTED', '502 BAD_GATEWAY', '503 SERVICE_UNAVAILABLE', '504 GATEWAY_TIMEOUT', '505 HTTP_VERSION_NOT_SUPPORTED', '506 VARIANT_ALSO_NEGOTIATES', '507 INSUFFICIENT_STORAGE', '508 LOOP_DETECTED', '509 BANDWIDTH_LIMIT_EXCEEDED', '510 NOT_EXTENDED', '511 NETWORK_AUTHENTICATION_REQUIRED'])
|
|
95
|
+
return false unless status_code_validator.valid?(@status_code)
|
|
96
|
+
true
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
100
|
+
# @param [Object] status_code Object to be assigned
|
|
101
|
+
def status_code=(status_code)
|
|
102
|
+
validator = EnumAttributeValidator.new('String', ['100 CONTINUE', '101 SWITCHING_PROTOCOLS', '102 PROCESSING', '103 CHECKPOINT', '200 OK', '201 CREATED', '202 ACCEPTED', '203 NON_AUTHORITATIVE_INFORMATION', '204 NO_CONTENT', '205 RESET_CONTENT', '206 PARTIAL_CONTENT', '207 MULTI_STATUS', '208 ALREADY_REPORTED', '226 IM_USED', '300 MULTIPLE_CHOICES', '301 MOVED_PERMANENTLY', '302 FOUND', '302 MOVED_TEMPORARILY', '303 SEE_OTHER', '304 NOT_MODIFIED', '305 USE_PROXY', '307 TEMPORARY_REDIRECT', '308 PERMANENT_REDIRECT', '400 BAD_REQUEST', '401 UNAUTHORIZED', '402 PAYMENT_REQUIRED', '403 FORBIDDEN', '404 NOT_FOUND', '405 METHOD_NOT_ALLOWED', '406 NOT_ACCEPTABLE', '407 PROXY_AUTHENTICATION_REQUIRED', '408 REQUEST_TIMEOUT', '409 CONFLICT', '410 GONE', '411 LENGTH_REQUIRED', '412 PRECONDITION_FAILED', '413 PAYLOAD_TOO_LARGE', '413 REQUEST_ENTITY_TOO_LARGE', '414 URI_TOO_LONG', '414 REQUEST_URI_TOO_LONG', '415 UNSUPPORTED_MEDIA_TYPE', '416 REQUESTED_RANGE_NOT_SATISFIABLE', '417 EXPECTATION_FAILED', '418 I_AM_A_TEAPOT', '419 INSUFFICIENT_SPACE_ON_RESOURCE', '420 METHOD_FAILURE', '421 DESTINATION_LOCKED', '422 UNPROCESSABLE_ENTITY', '423 LOCKED', '424 FAILED_DEPENDENCY', '426 UPGRADE_REQUIRED', '428 PRECONDITION_REQUIRED', '429 TOO_MANY_REQUESTS', '431 REQUEST_HEADER_FIELDS_TOO_LARGE', '451 UNAVAILABLE_FOR_LEGAL_REASONS', '500 INTERNAL_SERVER_ERROR', '501 NOT_IMPLEMENTED', '502 BAD_GATEWAY', '503 SERVICE_UNAVAILABLE', '504 GATEWAY_TIMEOUT', '505 HTTP_VERSION_NOT_SUPPORTED', '506 VARIANT_ALSO_NEGOTIATES', '507 INSUFFICIENT_STORAGE', '508 LOOP_DETECTED', '509 BANDWIDTH_LIMIT_EXCEEDED', '510 NOT_EXTENDED', '511 NETWORK_AUTHENTICATION_REQUIRED'])
|
|
103
|
+
unless validator.valid?(status_code)
|
|
104
|
+
fail ArgumentError, 'invalid value for "status_code", must be one of #{validator.allowable_values}.'
|
|
105
|
+
end
|
|
106
|
+
@status_code = status_code
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Checks equality by comparing each attribute.
|
|
110
|
+
# @param [Object] Object to be compared
|
|
111
|
+
def ==(o)
|
|
112
|
+
return true if self.equal?(o)
|
|
113
|
+
self.class == o.class &&
|
|
114
|
+
body == o.body &&
|
|
115
|
+
status_code == o.status_code &&
|
|
116
|
+
status_code_value == o.status_code_value
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# @see the `==` method
|
|
120
|
+
# @param [Object] Object to be compared
|
|
121
|
+
def eql?(o)
|
|
122
|
+
self == o
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Calculates hash code according to all attributes.
|
|
126
|
+
# @return [Fixnum] Hash code
|
|
127
|
+
def hash
|
|
128
|
+
[body, status_code, status_code_value].hash
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Builds the object from hash
|
|
132
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
133
|
+
# @return [Object] Returns the model itself
|
|
134
|
+
def build_from_hash(attributes)
|
|
135
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
136
|
+
if type =~ /\AArray<(.*)>/i
|
|
137
|
+
# check to ensure the input is an array given that the attribute
|
|
138
|
+
# is documented as an array but the input is not
|
|
139
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
141
|
+
end
|
|
142
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
143
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
144
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
self
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Deserializes the data based on type
|
|
151
|
+
# @param string type Data type
|
|
152
|
+
# @param string value Value to be deserialized
|
|
153
|
+
# @return [Object] Deserialized data
|
|
154
|
+
def _deserialize(type, value)
|
|
155
|
+
case type.to_sym
|
|
156
|
+
when :DateTime
|
|
157
|
+
(value)
|
|
158
|
+
when :Date
|
|
159
|
+
(value)
|
|
160
|
+
when :String
|
|
161
|
+
value.to_s
|
|
162
|
+
when :Integer
|
|
163
|
+
value.to_i
|
|
164
|
+
when :Float
|
|
165
|
+
value.to_f
|
|
166
|
+
when :BOOLEAN
|
|
167
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
168
|
+
true
|
|
169
|
+
else
|
|
170
|
+
false
|
|
171
|
+
end
|
|
172
|
+
when :Object
|
|
173
|
+
# generic object (usually a Hash), return directly
|
|
174
|
+
value
|
|
175
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
176
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
177
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
178
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
179
|
+
k_type = Regexp.last_match[:k_type]
|
|
180
|
+
v_type = Regexp.last_match[:v_type]
|
|
181
|
+
{}.tap do |hash|
|
|
182
|
+
value.each do |k, v|
|
|
183
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
else # model
|
|
187
|
+
temp_model = IntegrationApi.const_get(type).new
|
|
188
|
+
temp_model.build_from_hash(value)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Returns the string representation of the object
|
|
193
|
+
# @return [String] String presentation of the object
|
|
194
|
+
def to_s
|
|
195
|
+
to_hash.to_s
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
200
|
+
def to_body
|
|
201
|
+
to_hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Returns the object in the form of hash
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_hash
|
|
207
|
+
hash = {}
|
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
209
|
+
value = self.send(attr)
|
|
210
|
+
hash[param] = _to_hash(value)
|
|
211
|
+
end
|
|
212
|
+
hash
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# Outputs non-array value in the form of hash
|
|
216
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
217
|
+
# @param [Object] value Any valid value
|
|
218
|
+
# @return [Hash] Returns the value in the form of hash
|
|
219
|
+
def _to_hash(value)
|
|
220
|
+
if value.is_a?(Array)
|
|
221
|
+
value.compact.map { |v| _to_hash(v) }
|
|
222
|
+
elsif value.is_a?(Hash)
|
|
223
|
+
{}.tap do |hash|
|
|
224
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
225
|
+
end
|
|
226
|
+
elsif value.respond_to? :to_hash
|
|
227
|
+
value.to_hash
|
|
228
|
+
else
|
|
229
|
+
value
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
end
|
|
234
|
+
end
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hydrogen Integration API
|
|
3
|
+
|
|
4
|
+
#The Hydrogen Integration API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.2.1
|
|
7
|
+
Contact: info@hydrogenplatform.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.18
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module IntegrationApi
|
|
16
|
+
class RtpBankLinkRequestCO
|
|
17
|
+
attr_accessor :nucleus_bank_link_id
|
|
18
|
+
|
|
19
|
+
attr_accessor :vendor_request
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'nucleus_bank_link_id' => :'nucleus_bank_link_id',
|
|
25
|
+
:'vendor_request' => :'vendor_request'
|
|
26
|
+
}
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# Attribute type mapping.
|
|
30
|
+
def self.swagger_types
|
|
31
|
+
{
|
|
32
|
+
:'nucleus_bank_link_id' => :'String',
|
|
33
|
+
:'vendor_request' => :'Object'
|
|
34
|
+
}
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Initializes the object
|
|
38
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
39
|
+
def initialize(attributes = {})
|
|
40
|
+
return unless attributes.is_a?(Hash)
|
|
41
|
+
|
|
42
|
+
# convert string to symbol for hash key
|
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
44
|
+
|
|
45
|
+
if attributes.has_key?(:'nucleus_bank_link_id')
|
|
46
|
+
self.nucleus_bank_link_id = attributes[:'nucleus_bank_link_id']
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
if attributes.has_key?(:'vendor_request')
|
|
50
|
+
self.vendor_request = attributes[:'vendor_request']
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
55
|
+
# @return Array for valid properties with the reasons
|
|
56
|
+
def list_invalid_properties
|
|
57
|
+
invalid_properties = Array.new
|
|
58
|
+
invalid_properties
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Check to see if the all the properties in the model are valid
|
|
62
|
+
# @return true if the model is valid
|
|
63
|
+
def valid?
|
|
64
|
+
true
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# Checks equality by comparing each attribute.
|
|
68
|
+
# @param [Object] Object to be compared
|
|
69
|
+
def ==(o)
|
|
70
|
+
return true if self.equal?(o)
|
|
71
|
+
self.class == o.class &&
|
|
72
|
+
nucleus_bank_link_id == o.nucleus_bank_link_id &&
|
|
73
|
+
vendor_request == o.vendor_request
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# @see the `==` method
|
|
77
|
+
# @param [Object] Object to be compared
|
|
78
|
+
def eql?(o)
|
|
79
|
+
self == o
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Calculates hash code according to all attributes.
|
|
83
|
+
# @return [Fixnum] Hash code
|
|
84
|
+
def hash
|
|
85
|
+
[nucleus_bank_link_id, vendor_request].hash
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Builds the object from hash
|
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
90
|
+
# @return [Object] Returns the model itself
|
|
91
|
+
def build_from_hash(attributes)
|
|
92
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
93
|
+
if type =~ /\AArray<(.*)>/i
|
|
94
|
+
# check to ensure the input is an array given that the attribute
|
|
95
|
+
# is documented as an array but the input is not
|
|
96
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
97
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
98
|
+
end
|
|
99
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
100
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
101
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
self
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Deserializes the data based on type
|
|
108
|
+
# @param string type Data type
|
|
109
|
+
# @param string value Value to be deserialized
|
|
110
|
+
# @return [Object] Deserialized data
|
|
111
|
+
def _deserialize(type, value)
|
|
112
|
+
case type.to_sym
|
|
113
|
+
when :DateTime
|
|
114
|
+
(value)
|
|
115
|
+
when :Date
|
|
116
|
+
(value)
|
|
117
|
+
when :String
|
|
118
|
+
value.to_s
|
|
119
|
+
when :Integer
|
|
120
|
+
value.to_i
|
|
121
|
+
when :Float
|
|
122
|
+
value.to_f
|
|
123
|
+
when :BOOLEAN
|
|
124
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
125
|
+
true
|
|
126
|
+
else
|
|
127
|
+
false
|
|
128
|
+
end
|
|
129
|
+
when :Object
|
|
130
|
+
# generic object (usually a Hash), return directly
|
|
131
|
+
value
|
|
132
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
133
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
134
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
135
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
136
|
+
k_type = Regexp.last_match[:k_type]
|
|
137
|
+
v_type = Regexp.last_match[:v_type]
|
|
138
|
+
{}.tap do |hash|
|
|
139
|
+
value.each do |k, v|
|
|
140
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
else # model
|
|
144
|
+
temp_model = IntegrationApi.const_get(type).new
|
|
145
|
+
temp_model.build_from_hash(value)
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Returns the string representation of the object
|
|
150
|
+
# @return [String] String presentation of the object
|
|
151
|
+
def to_s
|
|
152
|
+
to_hash.to_s
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
156
|
+
# @return [Hash] Returns the object in the form of hash
|
|
157
|
+
def to_body
|
|
158
|
+
to_hash
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Returns the object in the form of hash
|
|
162
|
+
# @return [Hash] Returns the object in the form of hash
|
|
163
|
+
def to_hash
|
|
164
|
+
hash = {}
|
|
165
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
166
|
+
value = self.send(attr)
|
|
167
|
+
hash[param] = _to_hash(value)
|
|
168
|
+
end
|
|
169
|
+
hash
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Outputs non-array value in the form of hash
|
|
173
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
174
|
+
# @param [Object] value Any valid value
|
|
175
|
+
# @return [Hash] Returns the value in the form of hash
|
|
176
|
+
def _to_hash(value)
|
|
177
|
+
if value.is_a?(Array)
|
|
178
|
+
value.compact.map { |v| _to_hash(v) }
|
|
179
|
+
elsif value.is_a?(Hash)
|
|
180
|
+
{}.tap do |hash|
|
|
181
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
182
|
+
end
|
|
183
|
+
elsif value.respond_to? :to_hash
|
|
184
|
+
value.to_hash
|
|
185
|
+
else
|
|
186
|
+
value
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
end
|
|
191
|
+
end
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Hydrogen Integration API
|
|
3
|
+
|
|
4
|
+
#The Hydrogen Integration API
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.2.1
|
|
7
|
+
Contact: info@hydrogenplatform.com
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.18
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module IntegrationApi
|
|
16
|
+
class RtpBankLinkResponseVO
|
|
17
|
+
attr_accessor :message
|
|
18
|
+
|
|
19
|
+
attr_accessor :nucleus_bank_link_id
|
|
20
|
+
|
|
21
|
+
attr_accessor :nucleus_client_id
|
|
22
|
+
|
|
23
|
+
attr_accessor :status
|
|
24
|
+
|
|
25
|
+
attr_accessor :vendor_name
|
|
26
|
+
|
|
27
|
+
attr_accessor :vendor_request_data
|
|
28
|
+
|
|
29
|
+
attr_accessor :vendor_response
|
|
30
|
+
|
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
32
|
+
def self.attribute_map
|
|
33
|
+
{
|
|
34
|
+
:'message' => :'message',
|
|
35
|
+
:'nucleus_bank_link_id' => :'nucleus_bank_link_id',
|
|
36
|
+
:'nucleus_client_id' => :'nucleus_client_id',
|
|
37
|
+
:'status' => :'status',
|
|
38
|
+
:'vendor_name' => :'vendor_name',
|
|
39
|
+
:'vendor_request_data' => :'vendor_request_data',
|
|
40
|
+
:'vendor_response' => :'vendor_response'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Attribute type mapping.
|
|
45
|
+
def self.swagger_types
|
|
46
|
+
{
|
|
47
|
+
:'message' => :'String',
|
|
48
|
+
:'nucleus_bank_link_id' => :'String',
|
|
49
|
+
:'nucleus_client_id' => :'String',
|
|
50
|
+
:'status' => :'String',
|
|
51
|
+
:'vendor_name' => :'String',
|
|
52
|
+
:'vendor_request_data' => :'BankLinkVendorDataVO',
|
|
53
|
+
:'vendor_response' => :'Object'
|
|
54
|
+
}
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
return unless attributes.is_a?(Hash)
|
|
61
|
+
|
|
62
|
+
# convert string to symbol for hash key
|
|
63
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
64
|
+
|
|
65
|
+
if attributes.has_key?(:'message')
|
|
66
|
+
self.message = attributes[:'message']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if attributes.has_key?(:'nucleus_bank_link_id')
|
|
70
|
+
self.nucleus_bank_link_id = attributes[:'nucleus_bank_link_id']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.has_key?(:'nucleus_client_id')
|
|
74
|
+
self.nucleus_client_id = attributes[:'nucleus_client_id']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.has_key?(:'status')
|
|
78
|
+
self.status = attributes[:'status']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.has_key?(:'vendor_name')
|
|
82
|
+
self.vendor_name = attributes[:'vendor_name']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.has_key?(:'vendor_request_data')
|
|
86
|
+
self.vendor_request_data = attributes[:'vendor_request_data']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.has_key?(:'vendor_response')
|
|
90
|
+
self.vendor_response = attributes[:'vendor_response']
|
|
91
|
+
end
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
95
|
+
# @return Array for valid properties with the reasons
|
|
96
|
+
def list_invalid_properties
|
|
97
|
+
invalid_properties = Array.new
|
|
98
|
+
invalid_properties
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Check to see if the all the properties in the model are valid
|
|
102
|
+
# @return true if the model is valid
|
|
103
|
+
def valid?
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Checks equality by comparing each attribute.
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def ==(o)
|
|
110
|
+
return true if self.equal?(o)
|
|
111
|
+
self.class == o.class &&
|
|
112
|
+
message == o.message &&
|
|
113
|
+
nucleus_bank_link_id == o.nucleus_bank_link_id &&
|
|
114
|
+
nucleus_client_id == o.nucleus_client_id &&
|
|
115
|
+
status == o.status &&
|
|
116
|
+
vendor_name == o.vendor_name &&
|
|
117
|
+
vendor_request_data == o.vendor_request_data &&
|
|
118
|
+
vendor_response == o.vendor_response
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# @see the `==` method
|
|
122
|
+
# @param [Object] Object to be compared
|
|
123
|
+
def eql?(o)
|
|
124
|
+
self == o
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# Calculates hash code according to all attributes.
|
|
128
|
+
# @return [Fixnum] Hash code
|
|
129
|
+
def hash
|
|
130
|
+
[message, nucleus_bank_link_id, nucleus_client_id, status, vendor_name, vendor_request_data, vendor_response].hash
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Builds the object from hash
|
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
135
|
+
# @return [Object] Returns the model itself
|
|
136
|
+
def build_from_hash(attributes)
|
|
137
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
138
|
+
if type =~ /\AArray<(.*)>/i
|
|
139
|
+
# check to ensure the input is an array given that the attribute
|
|
140
|
+
# is documented as an array but the input is not
|
|
141
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
142
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
143
|
+
end
|
|
144
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
145
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
146
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
self
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# Deserializes the data based on type
|
|
153
|
+
# @param string type Data type
|
|
154
|
+
# @param string value Value to be deserialized
|
|
155
|
+
# @return [Object] Deserialized data
|
|
156
|
+
def _deserialize(type, value)
|
|
157
|
+
case type.to_sym
|
|
158
|
+
when :DateTime
|
|
159
|
+
(value)
|
|
160
|
+
when :Date
|
|
161
|
+
(value)
|
|
162
|
+
when :String
|
|
163
|
+
value.to_s
|
|
164
|
+
when :Integer
|
|
165
|
+
value.to_i
|
|
166
|
+
when :Float
|
|
167
|
+
value.to_f
|
|
168
|
+
when :BOOLEAN
|
|
169
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
170
|
+
true
|
|
171
|
+
else
|
|
172
|
+
false
|
|
173
|
+
end
|
|
174
|
+
when :Object
|
|
175
|
+
# generic object (usually a Hash), return directly
|
|
176
|
+
value
|
|
177
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
178
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
179
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
180
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
181
|
+
k_type = Regexp.last_match[:k_type]
|
|
182
|
+
v_type = Regexp.last_match[:v_type]
|
|
183
|
+
{}.tap do |hash|
|
|
184
|
+
value.each do |k, v|
|
|
185
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
else # model
|
|
189
|
+
temp_model = IntegrationApi.const_get(type).new
|
|
190
|
+
temp_model.build_from_hash(value)
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the string representation of the object
|
|
195
|
+
# @return [String] String presentation of the object
|
|
196
|
+
def to_s
|
|
197
|
+
to_hash.to_s
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
|
202
|
+
def to_body
|
|
203
|
+
to_hash
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Returns the object in the form of hash
|
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
|
208
|
+
def to_hash
|
|
209
|
+
hash = {}
|
|
210
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
211
|
+
value = self.send(attr)
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Outputs non-array value in the form of hash
|
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
219
|
+
# @param [Object] value Any valid value
|
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
|
221
|
+
def _to_hash(value)
|
|
222
|
+
if value.is_a?(Array)
|
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
|
224
|
+
elsif value.is_a?(Hash)
|
|
225
|
+
{}.tap do |hash|
|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
227
|
+
end
|
|
228
|
+
elsif value.respond_to? :to_hash
|
|
229
|
+
value.to_hash
|
|
230
|
+
else
|
|
231
|
+
value
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
end
|
|
236
|
+
end
|