Class: NewStoreApi::SalesGoalsManagementController

Inherits:
BaseController show all
Defined in:
lib/new_store_api/controllers/sales_goals_management_controller.rb

Overview

SalesGoalsManagementController

Constant Summary

Constants inherited from BaseController

BaseController::GLOBAL_ERRORS

Instance Attribute Summary

Attributes inherited from BaseController

#config, #http_call_back

Instance Method Summary collapse

Methods inherited from BaseController

#initialize, #new_parameter, #new_request_builder, #new_response_handler, user_agent

Constructor Details

This class inherits a constructor from NewStoreApi::BaseController

Instance Method Details

#replace_sales_goal_filevoid

This method returns an undefined value.

🚧 BETA: This endpoint is in beta and may change.
See API Lifecycle Documentation for details.


40
41
42
43
44
45
46
47
48
49
# File 'lib/new_store_api/controllers/sales_goals_management_controller.rb', line 40

def replace_sales_goal_file
  @api_call
    .request(new_request_builder(HttpMethodEnum::PUT,
                                 '/insights/sales-goals',
                                 Server::API)
               .auth(Single.new('oauth')))
    .response(new_response_handler
                .is_response_void(true))
    .execute
end

#show_sales_goal_filevoid

This method returns an undefined value.

🚧 BETA: This endpoint is in beta and may change.
See API Lifecycle Documentation for details.


19
20
21
22
23
24
25
26
27
28
# File 'lib/new_store_api/controllers/sales_goals_management_controller.rb', line 19

def show_sales_goal_file
  @api_call
    .request(new_request_builder(HttpMethodEnum::GET,
                                 '/insights/sales-goals',
                                 Server::API)
               .auth(Single.new('oauth')))
    .response(new_response_handler
                .is_response_void(true))
    .execute
end