class BridgeBankin::Connect

Connect resource

Public Class Methods

connect_item(access_token:, **params) click to toggle source

Request URL to Bridge's Connect funnel for adding an item

@param [String] access_token the access token provided during the user authentication @param [Hash] params any params that might be required (or optional) to communicate with the API

@return [BridgeObject] URL to Bridge's Connect funnel for adding an item

# File lib/bridge_bankin/connect.rb, line 19
def connect_item(access_token:, **params)
  protected_resource(access_token) do
    data = api_client.get("/v2/connect/items/add/url", **params)
    convert_to_bridge_object(**data)
  end
end
connect_item_with_iban(access_token:, **params) click to toggle source

Returns the URL to Bridge's Connect funnel for adding an item using IBAN

@param [String] access_token the access token provided during the user authentication @param [Hash] params any params that might be required (or optional) to communicate with the API

@return [BridgeObject] the URL to Bridge's Connect funnel for adding an item using IBAN

# File lib/bridge_bankin/connect.rb, line 34
def connect_item_with_iban(access_token:, **params)
  protected_resource(access_token) do
    data = api_client.post("/v2/connect/items/add/url", **params)
    convert_to_bridge_object(**data)
  end
end
edit_item(access_token:, **params) click to toggle source

Request the URL to Bridge's Connect funnel for editing an item

@param [String] access_token the access token provided during the user authentication @param [Hash] params any params that might be required (or optional) to communicate with the API

@return [BridgeObject] the URL to Bridge's Connect funnel for editing an item

# File lib/bridge_bankin/connect.rb, line 49
def edit_item(access_token:, **params)
  protected_resource(access_token) do
    data = api_client.get("/v2/connect/items/edit/url", **params)
    convert_to_bridge_object(**data)
  end
end
item_sync(access_token:, **params) click to toggle source

Request the URL to Bridge's Connect funnel for managing a Strong Customer Authentication and synchronizing an item

@param [String] access_token the access token provided during the user authentication @param [Hash] params any params that might be required (or optional) to communicate with the API

@return [BridgeObject] the URL to Bridge's Connect funnel for managing

# File lib/bridge_bankin/connect.rb, line 65
def item_sync(access_token:, **params)
  protected_resource(access_token) do
    data = api_client.get("/v2/connect/items/sync", **params)
    convert_to_bridge_object(**data)
  end
end
validate_email(access_token:, **params) click to toggle source

Request the URL to Bridge's Connect funnel for validating a user's email

@param [String] access_token the access token provided during the user authentication @param [Hash] params any params that might be required (or optional) to communicate with the API

@return [BridgeObject] the URL to Bridge's Connect funnel for validating a user's email

# File lib/bridge_bankin/connect.rb, line 80
def validate_email(access_token:, **params)
  protected_resource(access_token) do
    data = api_client.get("/v2/connect/users/email/confirmation/url", **params)
    convert_to_bridge_object(**data)
  end
end
validate_pro_items(access_token:, **params) click to toggle source

Request the URL to Bridge's Connect funnel for validating pro items

@param [String] access_token the access token provided during the user authentication @param [Hash] params any params that might be required (or optional) to communicate with the API

@return [BridgeObject] the URL to Bridge's Connect funnel for validating pro items

# File lib/bridge_bankin/connect.rb, line 95
def validate_pro_items(access_token:, **params)
  protected_resource(access_token) do
    data = api_client.get("/v2/connect/items/pro/confirmation/url", **params)
    convert_to_bridge_object(**data)
  end
end