class CybridApiOrganization::SubscriptionEventsOrganizationApi

def get_subscription_event(subscription_event_guid, opts = {})

Returns:
  • (SubscriptionEventOrganizationModel) -

Parameters:
  • opts (Hash) -- the optional parameters
  • subscription_event_guid (String) -- Identifier for the Subscription Event.
def get_subscription_event(subscription_event_guid, opts = {})
  data, _status_code, _headers = get_subscription_event_with_http_info(subscription_event_guid, opts)
  data
end

def get_subscription_event_with_http_info(subscription_event_guid, opts = {})

Returns:
  • (Array<(SubscriptionEventOrganizationModel, Integer, Hash)>) - SubscriptionEventOrganizationModel data, response status code and response headers

Parameters:
  • opts (Hash) -- the optional parameters
  • subscription_event_guid (String) -- Identifier for the Subscription Event.
def get_subscription_event_with_http_info(subscription_event_guid, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SubscriptionEventsOrganizationApi.get_subscription_event ...'
  end
  # verify the required parameter 'subscription_event_guid' is set
  if @api_client.config.client_side_validation && subscription_event_guid.nil?
    fail ArgumentError, "Missing the required parameter 'subscription_event_guid' when calling SubscriptionEventsOrganizationApi.get_subscription_event"
  end
  # resource path
  local_var_path = '/api/subscription_events/{subscription_event_guid}'.sub('{' + 'subscription_event_guid' + '}', CGI.escape(subscription_event_guid.to_s))
  # query parameters
  query_params = opts[:query_params] || {}
  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # form parameters
  form_params = opts[:form_params] || {}
  # http body (model)
  post_body = opts[:debug_body]
  # return_type
  return_type = opts[:debug_return_type] || 'SubscriptionEventOrganizationModel'
  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth', 'oauth2']
  new_options = opts.merge(
    :operation => :"SubscriptionEventsOrganizationApi.get_subscription_event",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SubscriptionEventsOrganizationApi#get_subscription_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

def initialize(api_client = ApiClient.default)

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

def list_subscription_events(opts = {})

Returns:
  • (SubscriptionEventListOrganizationModel) -

Options Hash: (**opts)
  • :guid (String) -- Comma separated subscription_event_guids to list subscription events for.
  • :per_page (Integer) -- The number of entities per page to return.
  • :page (Integer) -- The page index to retrieve.

Parameters:
  • opts (Hash) -- the optional parameters
def list_subscription_events(opts = {})
  data, _status_code, _headers = list_subscription_events_with_http_info(opts)
  data
end

def list_subscription_events_with_http_info(opts = {})

Returns:
  • (Array<(SubscriptionEventListOrganizationModel, Integer, Hash)>) - SubscriptionEventListOrganizationModel data, response status code and response headers

Options Hash: (**opts)
  • :guid (String) -- Comma separated subscription_event_guids to list subscription events for.
  • :per_page (Integer) -- The number of entities per page to return.
  • :page (Integer) -- The page index to retrieve.

Parameters:
  • opts (Hash) -- the optional parameters
def list_subscription_events_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: SubscriptionEventsOrganizationApi.list_subscription_events ...'
  end
  if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 0
    fail ArgumentError, 'invalid value for "opts[:"page"]" when calling SubscriptionEventsOrganizationApi.list_subscription_events, must be greater than or equal to 0.'
  end
  if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] > 100
    fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling SubscriptionEventsOrganizationApi.list_subscription_events, must be smaller than or equal to 100.'
  end
  if @api_client.config.client_side_validation && !opts[:'per_page'].nil? && opts[:'per_page'] < 1
    fail ArgumentError, 'invalid value for "opts[:"per_page"]" when calling SubscriptionEventsOrganizationApi.list_subscription_events, must be greater than or equal to 1.'
  end
  # resource path
  local_var_path = '/api/subscription_events'
  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
  query_params[:'guid'] = opts[:'guid'] if !opts[:'guid'].nil?
  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # form parameters
  form_params = opts[:form_params] || {}
  # http body (model)
  post_body = opts[:debug_body]
  # return_type
  return_type = opts[:debug_return_type] || 'SubscriptionEventListOrganizationModel'
  # auth_names
  auth_names = opts[:debug_auth_names] || ['BearerAuth', 'oauth2']
  new_options = opts.merge(
    :operation => :"SubscriptionEventsOrganizationApi.list_subscription_events",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: SubscriptionEventsOrganizationApi#list_subscription_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end