Class: Moov::Client
Instance Attribute Summary collapse
-
#account_terminal_applications ⇒ Object
Returns the value of attribute account_terminal_applications.
-
#accounts ⇒ Object
Returns the value of attribute accounts.
-
#adjustments ⇒ Object
Returns the value of attribute adjustments.
-
#apple_pay ⇒ Object
Returns the value of attribute apple_pay.
-
#authentication ⇒ Object
Returns the value of attribute authentication.
-
#avatars ⇒ Object
Returns the value of attribute avatars.
-
#bank_accounts ⇒ Object
Returns the value of attribute bank_accounts.
-
#branding ⇒ Object
Returns the value of attribute branding.
-
#capabilities ⇒ Object
Returns the value of attribute capabilities.
-
#card_issuing ⇒ Object
Returns the value of attribute card_issuing.
-
#cards ⇒ Object
Returns the value of attribute cards.
-
#disputes ⇒ Object
Returns the value of attribute disputes.
-
#end_to_end_encryption ⇒ Object
Returns the value of attribute end_to_end_encryption.
-
#enriched_address ⇒ Object
Returns the value of attribute enriched_address.
-
#enriched_profile ⇒ Object
Returns the value of attribute enriched_profile.
-
#fee_plans ⇒ Object
Returns the value of attribute fee_plans.
-
#files ⇒ Object
Returns the value of attribute files.
-
#industries ⇒ Object
Returns the value of attribute industries.
-
#institutions ⇒ Object
Returns the value of attribute institutions.
-
#issuing_transactions ⇒ Object
Returns the value of attribute issuing_transactions.
-
#onboarding ⇒ Object
Returns the value of attribute onboarding.
-
#payment_links ⇒ Object
Returns the value of attribute payment_links.
-
#payment_methods ⇒ Object
Returns the value of attribute payment_methods.
-
#ping ⇒ Object
Returns the value of attribute ping.
-
#receipts ⇒ Object
Returns the value of attribute receipts.
-
#representatives ⇒ Object
Returns the value of attribute representatives.
-
#scheduling ⇒ Object
Returns the value of attribute scheduling.
-
#support ⇒ Object
Returns the value of attribute support.
-
#sweeps ⇒ Object
Returns the value of attribute sweeps.
-
#terminal_applications ⇒ Object
Returns the value of attribute terminal_applications.
-
#transfers ⇒ Object
Returns the value of attribute transfers.
-
#underwriting ⇒ Object
Returns the value of attribute underwriting.
-
#wallet_transactions ⇒ Object
Returns the value of attribute wallet_transactions.
-
#wallets ⇒ Object
Returns the value of attribute wallets.
Instance Method Summary collapse
- #get_url(base_url:, url_variables: nil) ⇒ Object
- #init_sdks ⇒ Object
-
#initialize(client: nil, retry_config: nil, timeout_ms: nil, security: nil, security_source: nil, x_moov_version: nil, server_idx: nil, server_url: nil, url_params: nil) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(client: nil, retry_config: nil, timeout_ms: nil, security: nil, security_source: nil, x_moov_version: nil, server_idx: nil, server_url: nil, url_params: nil) ⇒ Client
Returns a new instance of Client.
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/moov/client.rb', line 34 def initialize(client: nil, retry_config: nil, timeout_ms: nil, security: nil, security_source: nil, x_moov_version: nil, server_idx: nil, server_url: nil, url_params: nil) ## Instantiates the SDK configuring it with the provided parameters. # @param [T.nilable(Faraday::Connection)] client The faraday HTTP client to use for all operations # @param [T.nilable(::Moov::Utils::RetryConfig)] retry_config The retry configuration to use for all operations # @param [T.nilable(Integer)] timeout_ms Request timeout in milliseconds for all operations # @param [T.nilable(Models::Components::Security)] security: The security details required for authentication # @param [T.proc.returns(T.nilable(Models::Components::Security))] security_source: A function that returns security details required for authentication # @param [T.nilable(::String)] x_moov_version: Configures the x_moov_version parameter for all supported operations # @param [T.nilable(::Integer)] server_idx The index of the server to use for all operations # @param [T.nilable(::String)] server_url The server URL to use for all operations # @param [T.nilable(::Hash<::Symbol, ::String>)] url_params Parameters to optionally template the server URL with = { request: { params_encoder: Faraday::FlatParamsEncoder } } [:request][:timeout] = (timeout_ms.to_f / 1000) unless timeout_ms.nil? client ||= Faraday.new(**) do |f| f.request :multipart, {} # f.response :logger, nil, { headers: true, bodies: true, errors: true } end if !server_url.nil? if !url_params.nil? server_url = Utils.template_url(server_url, url_params) end end server_idx = 0 if server_idx.nil? globals = { 'parameters': { 'queryParam': { }, 'pathParam': { }, 'header': { 'x_moov_version': x_moov_version, } } } hooks = SDKHooks::Hooks.new @sdk_configuration = SDKConfiguration.new( client, hooks, retry_config, timeout_ms, security, security_source, server_url, server_idx, globals ) @sdk_configuration = hooks.sdk_init(config: @sdk_configuration) init_sdks end |
Instance Attribute Details
#account_terminal_applications ⇒ Object
Returns the value of attribute account_terminal_applications.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def account_terminal_applications @account_terminal_applications end |
#accounts ⇒ Object
Returns the value of attribute accounts.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def accounts @accounts end |
#adjustments ⇒ Object
Returns the value of attribute adjustments.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def adjustments @adjustments end |
#apple_pay ⇒ Object
Returns the value of attribute apple_pay.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def apple_pay @apple_pay end |
#authentication ⇒ Object
Returns the value of attribute authentication.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def authentication @authentication end |
#avatars ⇒ Object
Returns the value of attribute avatars.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def avatars @avatars end |
#bank_accounts ⇒ Object
Returns the value of attribute bank_accounts.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def bank_accounts @bank_accounts end |
#branding ⇒ Object
Returns the value of attribute branding.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def branding @branding end |
#capabilities ⇒ Object
Returns the value of attribute capabilities.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def capabilities @capabilities end |
#card_issuing ⇒ Object
Returns the value of attribute card_issuing.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def card_issuing @card_issuing end |
#cards ⇒ Object
Returns the value of attribute cards.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def cards @cards end |
#disputes ⇒ Object
Returns the value of attribute disputes.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def disputes @disputes end |
#end_to_end_encryption ⇒ Object
Returns the value of attribute end_to_end_encryption.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def end_to_end_encryption @end_to_end_encryption end |
#enriched_address ⇒ Object
Returns the value of attribute enriched_address.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def enriched_address @enriched_address end |
#enriched_profile ⇒ Object
Returns the value of attribute enriched_profile.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def enriched_profile @enriched_profile end |
#fee_plans ⇒ Object
Returns the value of attribute fee_plans.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def fee_plans @fee_plans end |
#files ⇒ Object
Returns the value of attribute files.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def files @files end |
#industries ⇒ Object
Returns the value of attribute industries.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def industries @industries end |
#institutions ⇒ Object
Returns the value of attribute institutions.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def institutions @institutions end |
#issuing_transactions ⇒ Object
Returns the value of attribute issuing_transactions.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def issuing_transactions @issuing_transactions end |
#onboarding ⇒ Object
Returns the value of attribute onboarding.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def onboarding @onboarding end |
#payment_links ⇒ Object
Returns the value of attribute payment_links.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def payment_links @payment_links end |
#payment_methods ⇒ Object
Returns the value of attribute payment_methods.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def payment_methods @payment_methods end |
#ping ⇒ Object
Returns the value of attribute ping.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def ping @ping end |
#receipts ⇒ Object
Returns the value of attribute receipts.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def receipts @receipts end |
#representatives ⇒ Object
Returns the value of attribute representatives.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def representatives @representatives end |
#scheduling ⇒ Object
Returns the value of attribute scheduling.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def scheduling @scheduling end |
#support ⇒ Object
Returns the value of attribute support.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def support @support end |
#sweeps ⇒ Object
Returns the value of attribute sweeps.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def sweeps @sweeps end |
#terminal_applications ⇒ Object
Returns the value of attribute terminal_applications.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def terminal_applications @terminal_applications end |
#transfers ⇒ Object
Returns the value of attribute transfers.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def transfers @transfers end |
#underwriting ⇒ Object
Returns the value of attribute underwriting.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def underwriting @underwriting end |
#wallet_transactions ⇒ Object
Returns the value of attribute wallet_transactions.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def wallet_transactions @wallet_transactions end |
#wallets ⇒ Object
Returns the value of attribute wallets.
19 20 21 |
# File 'lib/moov/client.rb', line 19 def wallets @wallets end |
Instance Method Details
#get_url(base_url:, url_variables: nil) ⇒ Object
132 133 134 135 136 137 138 139 140 141 142 143 144 |
# File 'lib/moov/client.rb', line 132 def get_url(base_url:, url_variables: nil) sd_base_url, = @sdk_configuration.get_server_details if base_url.nil? base_url = sd_base_url end if url_variables.nil? url_variables = end return Utils.template_url base_url, url_variables end |
#init_sdks ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 |
# File 'lib/moov/client.rb', line 94 def init_sdks @accounts = Accounts.new(@sdk_configuration) @adjustments = Adjustments.new(@sdk_configuration) @apple_pay = ApplePay.new(@sdk_configuration) @bank_accounts = BankAccounts.new(@sdk_configuration) @branding = Branding.new(@sdk_configuration) @capabilities = Capabilities.new(@sdk_configuration) @cards = Cards.new(@sdk_configuration) @disputes = Disputes.new(@sdk_configuration) @fee_plans = FeePlans.new(@sdk_configuration) @files = Files.new(@sdk_configuration) @payment_links = PaymentLinks.new(@sdk_configuration) @payment_methods = PaymentMethods.new(@sdk_configuration) @representatives = Representatives.new(@sdk_configuration) @scheduling = Scheduling.new(@sdk_configuration) @sweeps = Sweeps.new(@sdk_configuration) @account_terminal_applications = AccountTerminalApplications.new(@sdk_configuration) @support = Support.new(@sdk_configuration) @transfers = Transfers.new(@sdk_configuration) @underwriting = Underwriting.new(@sdk_configuration) @wallets = Wallets.new(@sdk_configuration) @wallet_transactions = WalletTransactions.new(@sdk_configuration) @avatars = Avatars.new(@sdk_configuration) @end_to_end_encryption = EndToEndEncryption.new(@sdk_configuration) @enriched_address = EnrichedAddress.new(@sdk_configuration) @enriched_profile = EnrichedProfile.new(@sdk_configuration) @industries = Industries.new(@sdk_configuration) @institutions = Institutions.new(@sdk_configuration) @issuing_transactions = IssuingTransactions.new(@sdk_configuration) @card_issuing = CardIssuing.new(@sdk_configuration) @authentication = Authentication.new(@sdk_configuration) @onboarding = Onboarding.new(@sdk_configuration) @ping = Ping.new(@sdk_configuration) @receipts = Receipts.new(@sdk_configuration) @terminal_applications = TerminalApplications.new(@sdk_configuration) end |