def create(credentials:,
               institution_id:,
               initial_products:,
               transactions_start_date: nil,
               transactions_end_date: nil,
               transactions_await_results: nil,
               webhook: nil,
               options: nil)

      options_payload = {}

      txn_options = transaction_options transactions_start_date,
                                        transactions_end_date,
                                        transactions_await_results

      options_payload[:transactions] = txn_options if txn_options != {}
      options_payload[:webhook] = webhook unless webhook.nil?
      options_payload = options_payload.merge(options) unless options.nil?

      post_with_auth 'item/create',
                     ItemResponse,
                     credentials: credentials,
                     institution_id: institution_id,
                     initial_products: initial_products,
                     options: options_payload
    end
def create(credentials:,
               institution_id:,
               initial_products:,
               transactions_start_date: nil,
               transactions_end_date: nil,
               transactions_await_results: nil,
               webhook: nil,
               options: nil)

      options_payload = {}

      txn_options = transaction_options transactions_start_date,
                                        transactions_end_date,
                                        transactions_await_results

      options_payload[:transactions] = txn_options if txn_options != {}
      options_payload[:webhook] = webhook unless webhook.nil?
      options_payload = options_payload.merge(options) unless options.nil?

      post_with_auth 'item/create',
                     ItemResponse,
                     credentials: credentials,
                     institution_id: institution_id,
                     initial_products: initial_products,
                     options: options_payload
    end
Public: Creates an item.

 Does a POST /item/create call which attemps to create a new item for you
 possibly returning a success, error, or multi-factor authentication
 response.

 credentials                - Institution credentials to create item with.
 institution_id             - Institution ID to create item with.
 initial_products           - Initial products to create the item with,
                              i.e. [:transactions].
 transactions_start_date    - date at which to begin the item's initial
                              transaction pull (optional).
 transactions_end_date      - date at which to end the item's initial
                              transaction pull (optional).
 transactions_await_results - if true, the initial transaction pull will
                              be performed synchronously (optional).
 webhook                    - webhook to associate with the item
                              (optional).
 options                    - Additional options to merge into API
                              request.

 Returns an ItemResponse object with item info including access_token and
 ItemStatus, or MFA response or error.