Sha256: a89efc530fbe9a1522f4c20ca5fc4848bd3869f8e7c8bbba863a6ee1bf98f596

Contents?: true

Size: 1.53 KB

Versions: 5

Compression:

Stored size: 1.53 KB

Contents

# frozen_string_literal: true

module Seam
  module Clients
    class ConnectWebviews < BaseClient
      def get(connect_webview_id = nil)
        request_seam_object(
          :post,
          "/connect_webviews/get",
          Seam::ConnectWebview,
          "connect_webview",
          body: {connect_webview_id: connect_webview_id}
        )
      end

      def list
        request_seam_object(
          :post,
          "/connect_webviews/list",
          Seam::ConnectWebview,
          "connect_webviews",
          body: {}
        )
      end

      def create(
        accepted_providers: nil,
        custom_redirect_url: nil,
        custom_redirect_failure_url: nil,
        custom_metadata: nil,
        automatically_manage_new_devices: nil,
        device_selection_mode: nil,
        provider_category: nil,
        wait_for_device_creation: nil
      )
        request_seam_object(
          :post,
          "/connect_webviews/create",
          Seam::ConnectWebview,
          "connect_webview",
          body: {
            accepted_providers: accepted_providers,
            custom_redirect_url: custom_redirect_url,
            custom_redirect_failure_url: custom_redirect_failure_url,
            automatically_manage_new_devices: automatically_manage_new_devices,
            device_selection_mode: device_selection_mode,
            custom_metadata: custom_metadata,
            provider_category: provider_category,
            wait_for_device_creation: wait_for_device_creation
          }.compact
        )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
seamapi-2.0.0 lib/seam/clients/connect_webviews.rb
seamapi-1.17.0 lib/seam/clients/connect_webviews.rb
seamapi-1.16.1 lib/seam/clients/connect_webviews.rb
seamapi-1.16.0 lib/seam/clients/connect_webviews.rb
seamapi-1.15.0 lib/seam/clients/connect_webviews.rb