samplify_api_client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/Gemfile.lock +69 -0
- data/README.md +221 -0
- data/Rakefile +8 -0
- data/docs/AppError.md +10 -0
- data/docs/ApplicationItemData.md +11 -0
- data/docs/AttributeData.md +16 -0
- data/docs/AttributeOption.md +10 -0
- data/docs/Attributes.md +10 -0
- data/docs/AttributesApi.md +78 -0
- data/docs/AuthApi.md +191 -0
- data/docs/AuthError.md +9 -0
- data/docs/Author.md +10 -0
- data/docs/BuyProject.md +10 -0
- data/docs/BuyProjectItem.md +12 -0
- data/docs/BuyProjectResponse.md +9 -0
- data/docs/BuyProjectsPayload.md +7 -0
- data/docs/Categories.md +10 -0
- data/docs/CategoriesApi.md +72 -0
- data/docs/CategoryData.md +9 -0
- data/docs/CodePayload.md +11 -0
- data/docs/Countries.md +10 -0
- data/docs/CountriesApi.md +72 -0
- data/docs/CountryData.md +11 -0
- data/docs/CreateLineItem.md +10 -0
- data/docs/DefaultApi.md +88 -0
- data/docs/EndLinks.md +13 -0
- data/docs/ErrorType.md +9 -0
- data/docs/Event.md +10 -0
- data/docs/EventData.md +15 -0
- data/docs/EventListData.md +15 -0
- data/docs/Events.md +10 -0
- data/docs/EventsApi.md +287 -0
- data/docs/ExclusionData.md +9 -0
- data/docs/Feasibility.md +10 -0
- data/docs/FeasibilityApi.md +61 -0
- data/docs/FeasibilityData.md +14 -0
- data/docs/FeasibilityResponseData.md +9 -0
- data/docs/LineItemActionResponse.md +14 -0
- data/docs/LineItemData.md +22 -0
- data/docs/LineItemItemData.md +17 -0
- data/docs/LineItemReportData.md +25 -0
- data/docs/LineItemResponseData.md +27 -0
- data/docs/LineItems.md +10 -0
- data/docs/LineItemsApi.md +420 -0
- data/docs/Links.md +12 -0
- data/docs/LogoutPayload.md +10 -0
- data/docs/Meta.md +10 -0
- data/docs/Project.md +14 -0
- data/docs/ProjectAction.md +10 -0
- data/docs/ProjectActionResponse.md +13 -0
- data/docs/ProjectCategoryData.md +8 -0
- data/docs/ProjectItemData.md +14 -0
- data/docs/ProjectReport.md +10 -0
- data/docs/ProjectReportData.md +21 -0
- data/docs/ProjectReports.md +10 -0
- data/docs/ProjectResponse.md +10 -0
- data/docs/ProjectResponseData.md +19 -0
- data/docs/ProjectSurveyEndLinks.md +10 -0
- data/docs/ProjectSurveyEndLinksData.md +12 -0
- data/docs/Projects.md +10 -0
- data/docs/ProjectsApi.md +620 -0
- data/docs/QuotaCell.md +10 -0
- data/docs/QuotaCellFeasibility.md +9 -0
- data/docs/QuotaGroupData.md +9 -0
- data/docs/QuotaGroupFeasibility.md +8 -0
- data/docs/QuotaPlanData.md +9 -0
- data/docs/Reconcile.md +10 -0
- data/docs/ReconcileData.md +7 -0
- data/docs/RefreshTokenPayload.md +10 -0
- data/docs/Reprice.md +10 -0
- data/docs/RepriceData.md +22 -0
- data/docs/RepricePayload.md +20 -0
- data/docs/RespondentApi.md +86 -0
- data/docs/Status.md +9 -0
- data/docs/SupportedLanguage.md +10 -0
- data/docs/SurveyEndLinks.md +10 -0
- data/docs/SurveyTestId.md +10 -0
- data/docs/SurveyTestLink.md +9 -0
- data/docs/Target.md +11 -0
- data/docs/TargetingAttribute.md +10 -0
- data/docs/TokenMedia.md +11 -0
- data/docs/TokenPayload.md +11 -0
- data/docs/URLParam.md +9 -0
- data/docs/UpdateLineItem.md +21 -0
- data/docs/UpdateProjectData.md +13 -0
- data/docs/UpdateProjectLineItem.md +22 -0
- data/docs/UserInfo.md +10 -0
- data/docs/UserInfoResponseData.md +10 -0
- data/docs/UsersApi.md +68 -0
- data/examples/auth.rb +18 -0
- data/git_push.sh +55 -0
- data/lib/samplify_api_client/api/attributes_api.rb +111 -0
- data/lib/samplify_api_client/api/auth_api.rb +230 -0
- data/lib/samplify_api_client/api/categories_api.rb +99 -0
- data/lib/samplify_api_client/api/countries_api.rb +99 -0
- data/lib/samplify_api_client/api/default_api.rb +115 -0
- data/lib/samplify_api_client/api/events_api.rb +317 -0
- data/lib/samplify_api_client/api/feasibility_api.rb +75 -0
- data/lib/samplify_api_client/api/line_items_api.rb +468 -0
- data/lib/samplify_api_client/api/projects_api.rb +660 -0
- data/lib/samplify_api_client/api/respondent_api.rb +113 -0
- data/lib/samplify_api_client/api/users_api.rb +81 -0
- data/lib/samplify_api_client/api_client.rb +389 -0
- data/lib/samplify_api_client/api_error.rb +38 -0
- data/lib/samplify_api_client/configuration.rb +209 -0
- data/lib/samplify_api_client/models/app_error.rb +218 -0
- data/lib/samplify_api_client/models/application_item_data.rb +234 -0
- data/lib/samplify_api_client/models/attribute_data.rb +334 -0
- data/lib/samplify_api_client/models/attribute_option.rb +219 -0
- data/lib/samplify_api_client/models/attributes.rb +219 -0
- data/lib/samplify_api_client/models/auth_error.rb +205 -0
- data/lib/samplify_api_client/models/author.rb +253 -0
- data/lib/samplify_api_client/models/buy_project.rb +219 -0
- data/lib/samplify_api_client/models/buy_project_item.rb +243 -0
- data/lib/samplify_api_client/models/buy_project_response.rb +194 -0
- data/lib/samplify_api_client/models/buy_projects_payload.rb +174 -0
- data/lib/samplify_api_client/models/categories.rb +219 -0
- data/lib/samplify_api_client/models/category_data.rb +204 -0
- data/lib/samplify_api_client/models/code_payload.rb +229 -0
- data/lib/samplify_api_client/models/countries.rb +219 -0
- data/lib/samplify_api_client/models/country_data.rb +230 -0
- data/lib/samplify_api_client/models/create_line_item.rb +217 -0
- data/lib/samplify_api_client/models/end_links.rb +288 -0
- data/lib/samplify_api_client/models/error_type.rb +204 -0
- data/lib/samplify_api_client/models/event.rb +217 -0
- data/lib/samplify_api_client/models/event_data.rb +289 -0
- data/lib/samplify_api_client/models/event_list_data.rb +289 -0
- data/lib/samplify_api_client/models/events.rb +219 -0
- data/lib/samplify_api_client/models/exclusion_data.rb +206 -0
- data/lib/samplify_api_client/models/feasibility.rb +219 -0
- data/lib/samplify_api_client/models/feasibility_data.rb +255 -0
- data/lib/samplify_api_client/models/feasibility_response_data.rb +193 -0
- data/lib/samplify_api_client/models/line_item_action_response.rb +244 -0
- data/lib/samplify_api_client/models/line_item_data.rb +398 -0
- data/lib/samplify_api_client/models/line_item_item_data.rb +358 -0
- data/lib/samplify_api_client/models/line_item_report_data.rb +478 -0
- data/lib/samplify_api_client/models/line_item_response_data.rb +408 -0
- data/lib/samplify_api_client/models/line_items.rb +219 -0
- data/lib/samplify_api_client/models/links.rb +219 -0
- data/lib/samplify_api_client/models/logout_payload.rb +219 -0
- data/lib/samplify_api_client/models/meta.rb +203 -0
- data/lib/samplify_api_client/models/project.rb +273 -0
- data/lib/samplify_api_client/models/project_action.rb +217 -0
- data/lib/samplify_api_client/models/project_action_response.rb +236 -0
- data/lib/samplify_api_client/models/project_category_data.rb +191 -0
- data/lib/samplify_api_client/models/project_item_data.rb +307 -0
- data/lib/samplify_api_client/models/project_report.rb +217 -0
- data/lib/samplify_api_client/models/project_report_data.rb +414 -0
- data/lib/samplify_api_client/models/project_reports.rb +219 -0
- data/lib/samplify_api_client/models/project_response.rb +217 -0
- data/lib/samplify_api_client/models/project_response_data.rb +347 -0
- data/lib/samplify_api_client/models/project_survey_end_links.rb +217 -0
- data/lib/samplify_api_client/models/project_survey_end_links_data.rb +272 -0
- data/lib/samplify_api_client/models/projects.rb +219 -0
- data/lib/samplify_api_client/models/quota_cell.rb +206 -0
- data/lib/samplify_api_client/models/quota_cell_feasibility.rb +204 -0
- data/lib/samplify_api_client/models/quota_group_data.rb +201 -0
- data/lib/samplify_api_client/models/quota_group_feasibility.rb +185 -0
- data/lib/samplify_api_client/models/quota_plan_data.rb +198 -0
- data/lib/samplify_api_client/models/reconcile.rb +217 -0
- data/lib/samplify_api_client/models/reconcile_data.rb +174 -0
- data/lib/samplify_api_client/models/refresh_token_payload.rb +214 -0
- data/lib/samplify_api_client/models/reprice.rb +217 -0
- data/lib/samplify_api_client/models/reprice_data.rb +399 -0
- data/lib/samplify_api_client/models/reprice_payload.rb +369 -0
- data/lib/samplify_api_client/models/status.rb +206 -0
- data/lib/samplify_api_client/models/supported_language.rb +219 -0
- data/lib/samplify_api_client/models/survey_end_links.rb +216 -0
- data/lib/samplify_api_client/models/survey_test_id.rb +219 -0
- data/lib/samplify_api_client/models/survey_test_link.rb +206 -0
- data/lib/samplify_api_client/models/target.rb +258 -0
- data/lib/samplify_api_client/models/targeting_attribute.rb +216 -0
- data/lib/samplify_api_client/models/token_media.rb +235 -0
- data/lib/samplify_api_client/models/token_payload.rb +229 -0
- data/lib/samplify_api_client/models/update_line_item.rb +353 -0
- data/lib/samplify_api_client/models/update_project_data.rb +238 -0
- data/lib/samplify_api_client/models/update_project_line_item.rb +368 -0
- data/lib/samplify_api_client/models/url_param.rb +204 -0
- data/lib/samplify_api_client/models/user_info.rb +217 -0
- data/lib/samplify_api_client/models/user_info_response_data.rb +221 -0
- data/lib/samplify_api_client/version.rb +15 -0
- data/lib/samplify_api_client.rb +125 -0
- data/samplify_api_client.gemspec +45 -0
- data/spec/api/attributes_api_spec.rb +53 -0
- data/spec/api/auth_api_spec.rb +79 -0
- data/spec/api/categories_api_spec.rb +51 -0
- data/spec/api/countries_api_spec.rb +51 -0
- data/spec/api/default_api_spec.rb +55 -0
- data/spec/api/events_api_spec.rb +100 -0
- data/spec/api/feasibility_api_spec.rb +46 -0
- data/spec/api/line_items_api_spec.rb +128 -0
- data/spec/api/projects_api_spec.rb +168 -0
- data/spec/api/respondent_api_spec.rb +55 -0
- data/spec/api/users_api_spec.rb +49 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/app_error_spec.rb +53 -0
- data/spec/models/application_item_data_spec.rb +59 -0
- data/spec/models/attribute_data_spec.rb +93 -0
- data/spec/models/attribute_option_spec.rb +53 -0
- data/spec/models/attributes_spec.rb +53 -0
- data/spec/models/auth_error_spec.rb +47 -0
- data/spec/models/author_spec.rb +57 -0
- data/spec/models/buy_project_item_spec.rb +65 -0
- data/spec/models/buy_project_response_spec.rb +47 -0
- data/spec/models/buy_project_spec.rb +53 -0
- data/spec/models/buy_projects_payload_spec.rb +35 -0
- data/spec/models/categories_spec.rb +53 -0
- data/spec/models/category_data_spec.rb +47 -0
- data/spec/models/code_payload_spec.rb +59 -0
- data/spec/models/countries_spec.rb +53 -0
- data/spec/models/country_data_spec.rb +59 -0
- data/spec/models/create_line_item_spec.rb +53 -0
- data/spec/models/end_links_spec.rb +75 -0
- data/spec/models/error_type_spec.rb +47 -0
- data/spec/models/event_data_spec.rb +83 -0
- data/spec/models/event_list_data_spec.rb +83 -0
- data/spec/models/event_spec.rb +53 -0
- data/spec/models/events_spec.rb +53 -0
- data/spec/models/exclusion_data_spec.rb +47 -0
- data/spec/models/feasibility_data_spec.rb +77 -0
- data/spec/models/feasibility_response_data_spec.rb +47 -0
- data/spec/models/feasibility_spec.rb +53 -0
- data/spec/models/line_item_action_response_spec.rb +77 -0
- data/spec/models/line_item_data_spec.rb +129 -0
- data/spec/models/line_item_item_data_spec.rb +99 -0
- data/spec/models/line_item_report_data_spec.rb +147 -0
- data/spec/models/line_item_response_data_spec.rb +159 -0
- data/spec/models/line_items_spec.rb +53 -0
- data/spec/models/links_spec.rb +65 -0
- data/spec/models/logout_payload_spec.rb +53 -0
- data/spec/models/meta_spec.rb +53 -0
- data/spec/models/project_action_response_spec.rb +71 -0
- data/spec/models/project_action_spec.rb +53 -0
- data/spec/models/project_category_data_spec.rb +41 -0
- data/spec/models/project_item_data_spec.rb +81 -0
- data/spec/models/project_report_data_spec.rb +123 -0
- data/spec/models/project_report_spec.rb +53 -0
- data/spec/models/project_reports_spec.rb +53 -0
- data/spec/models/project_response_data_spec.rb +107 -0
- data/spec/models/project_response_spec.rb +53 -0
- data/spec/models/project_spec.rb +77 -0
- data/spec/models/project_survey_end_links_data_spec.rb +69 -0
- data/spec/models/project_survey_end_links_spec.rb +53 -0
- data/spec/models/projects_spec.rb +53 -0
- data/spec/models/quota_cell_feasibility_spec.rb +47 -0
- data/spec/models/quota_cell_spec.rb +53 -0
- data/spec/models/quota_group_data_spec.rb +47 -0
- data/spec/models/quota_group_feasibility_spec.rb +41 -0
- data/spec/models/quota_plan_data_spec.rb +47 -0
- data/spec/models/reconcile_data_spec.rb +35 -0
- data/spec/models/reconcile_spec.rb +53 -0
- data/spec/models/refresh_token_payload_spec.rb +53 -0
- data/spec/models/reprice_data_spec.rb +125 -0
- data/spec/models/reprice_payload_spec.rb +113 -0
- data/spec/models/reprice_spec.rb +53 -0
- data/spec/models/status_spec.rb +47 -0
- data/spec/models/supported_language_spec.rb +53 -0
- data/spec/models/survey_end_links_spec.rb +53 -0
- data/spec/models/survey_test_id_spec.rb +53 -0
- data/spec/models/survey_test_link_spec.rb +47 -0
- data/spec/models/target_spec.rb +63 -0
- data/spec/models/targeting_attribute_spec.rb +53 -0
- data/spec/models/token_media_spec.rb +59 -0
- data/spec/models/token_payload_spec.rb +59 -0
- data/spec/models/update_line_item_spec.rb +123 -0
- data/spec/models/update_project_data_spec.rb +71 -0
- data/spec/models/update_project_line_item_spec.rb +129 -0
- data/spec/models/url_param_spec.rb +47 -0
- data/spec/models/user_info_response_data_spec.rb +53 -0
- data/spec/models/user_info_spec.rb +53 -0
- data/spec/spec_helper.rb +111 -0
- metadata +585 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Samplify API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module SamplifyAPIClient
|
|
16
|
+
class FeasibilityApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# show feasibility
|
|
23
|
+
# @param ext_project_id
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [Feasibility]
|
|
26
|
+
def feasibility_show(ext_project_id, opts = {})
|
|
27
|
+
data, _status_code, _headers = feasibility_show_with_http_info(ext_project_id, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# show feasibility
|
|
32
|
+
# @param ext_project_id
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(Feasibility, Fixnum, Hash)>] Feasibility data, response status code and response headers
|
|
35
|
+
def feasibility_show_with_http_info(ext_project_id, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: FeasibilityApi.feasibility_show ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'ext_project_id' is set
|
|
40
|
+
if @api_client.config.client_side_validation && ext_project_id.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling FeasibilityApi.feasibility_show"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/sample/v1/projects/{extProjectId}/feasibility'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.feasibility+json'])
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])
|
|
55
|
+
|
|
56
|
+
# form parameters
|
|
57
|
+
form_params = {}
|
|
58
|
+
|
|
59
|
+
# http body (model)
|
|
60
|
+
post_body = nil
|
|
61
|
+
auth_names = ['jwt']
|
|
62
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
63
|
+
:header_params => header_params,
|
|
64
|
+
:query_params => query_params,
|
|
65
|
+
:form_params => form_params,
|
|
66
|
+
:body => post_body,
|
|
67
|
+
:auth_names => auth_names,
|
|
68
|
+
:return_type => 'Feasibility')
|
|
69
|
+
if @api_client.config.debugging
|
|
70
|
+
@api_client.config.logger.debug "API called: FeasibilityApi#feasibility_show\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
71
|
+
end
|
|
72
|
+
return data, status_code, headers
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Samplify API
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
Swagger Codegen version: 2.4.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'uri'
|
|
14
|
+
|
|
15
|
+
module SamplifyAPIClient
|
|
16
|
+
class LineItemsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# close lineItems
|
|
23
|
+
# @param ext_line_item_id
|
|
24
|
+
# @param ext_project_id
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [CreateLineItem]
|
|
27
|
+
def line_items_close(ext_line_item_id, ext_project_id, opts = {})
|
|
28
|
+
data, _status_code, _headers = line_items_close_with_http_info(ext_line_item_id, ext_project_id, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# close lineItems
|
|
33
|
+
# @param ext_line_item_id
|
|
34
|
+
# @param ext_project_id
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(CreateLineItem, Fixnum, Hash)>] CreateLineItem data, response status code and response headers
|
|
37
|
+
def line_items_close_with_http_info(ext_line_item_id, ext_project_id, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: LineItemsApi.line_items_close ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'ext_line_item_id' is set
|
|
42
|
+
if @api_client.config.client_side_validation && ext_line_item_id.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ext_line_item_id' when calling LineItemsApi.line_items_close"
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'ext_project_id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && ext_project_id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling LineItemsApi.line_items_close"
|
|
48
|
+
end
|
|
49
|
+
# resource path
|
|
50
|
+
local_var_path = '/sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}/close'.sub('{' + 'extLineItemId' + '}', ext_line_item_id.to_s).sub('{' + 'extProjectId' + '}', ext_project_id.to_s)
|
|
51
|
+
|
|
52
|
+
# query parameters
|
|
53
|
+
query_params = {}
|
|
54
|
+
|
|
55
|
+
# header parameters
|
|
56
|
+
header_params = {}
|
|
57
|
+
# HTTP header 'Accept' (if needed)
|
|
58
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.createlineitem+json'])
|
|
59
|
+
# HTTP header 'Content-Type'
|
|
60
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = nil
|
|
67
|
+
auth_names = ['jwt']
|
|
68
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
69
|
+
:header_params => header_params,
|
|
70
|
+
:query_params => query_params,
|
|
71
|
+
:form_params => form_params,
|
|
72
|
+
:body => post_body,
|
|
73
|
+
:auth_names => auth_names,
|
|
74
|
+
:return_type => 'CreateLineItem')
|
|
75
|
+
if @api_client.config.debugging
|
|
76
|
+
@api_client.config.logger.debug "API called: LineItemsApi#line_items_close\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
77
|
+
end
|
|
78
|
+
return data, status_code, headers
|
|
79
|
+
end
|
|
80
|
+
# create lineItems
|
|
81
|
+
# @param ext_project_id
|
|
82
|
+
# @param payload
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [CreateLineItem]
|
|
85
|
+
def line_items_create(ext_project_id, payload, opts = {})
|
|
86
|
+
data, _status_code, _headers = line_items_create_with_http_info(ext_project_id, payload, opts)
|
|
87
|
+
data
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# create lineItems
|
|
91
|
+
# @param ext_project_id
|
|
92
|
+
# @param payload
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [Array<(CreateLineItem, Fixnum, Hash)>] CreateLineItem data, response status code and response headers
|
|
95
|
+
def line_items_create_with_http_info(ext_project_id, payload, opts = {})
|
|
96
|
+
if @api_client.config.debugging
|
|
97
|
+
@api_client.config.logger.debug 'Calling API: LineItemsApi.line_items_create ...'
|
|
98
|
+
end
|
|
99
|
+
# verify the required parameter 'ext_project_id' is set
|
|
100
|
+
if @api_client.config.client_side_validation && ext_project_id.nil?
|
|
101
|
+
fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling LineItemsApi.line_items_create"
|
|
102
|
+
end
|
|
103
|
+
# verify the required parameter 'payload' is set
|
|
104
|
+
if @api_client.config.client_side_validation && payload.nil?
|
|
105
|
+
fail ArgumentError, "Missing the required parameter 'payload' when calling LineItemsApi.line_items_create"
|
|
106
|
+
end
|
|
107
|
+
# resource path
|
|
108
|
+
local_var_path = '/sample/v1/projects/{extProjectId}/lineItems'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)
|
|
109
|
+
|
|
110
|
+
# query parameters
|
|
111
|
+
query_params = {}
|
|
112
|
+
|
|
113
|
+
# header parameters
|
|
114
|
+
header_params = {}
|
|
115
|
+
# HTTP header 'Accept' (if needed)
|
|
116
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.createlineitem+json'])
|
|
117
|
+
# HTTP header 'Content-Type'
|
|
118
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])
|
|
119
|
+
|
|
120
|
+
# form parameters
|
|
121
|
+
form_params = {}
|
|
122
|
+
|
|
123
|
+
# http body (model)
|
|
124
|
+
post_body = @api_client.object_to_http_body(payload)
|
|
125
|
+
auth_names = ['jwt']
|
|
126
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
127
|
+
:header_params => header_params,
|
|
128
|
+
:query_params => query_params,
|
|
129
|
+
:form_params => form_params,
|
|
130
|
+
:body => post_body,
|
|
131
|
+
:auth_names => auth_names,
|
|
132
|
+
:return_type => 'CreateLineItem')
|
|
133
|
+
if @api_client.config.debugging
|
|
134
|
+
@api_client.config.logger.debug "API called: LineItemsApi#line_items_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
135
|
+
end
|
|
136
|
+
return data, status_code, headers
|
|
137
|
+
end
|
|
138
|
+
# get lineItems
|
|
139
|
+
# @param ext_line_item_id
|
|
140
|
+
# @param ext_project_id
|
|
141
|
+
# @param [Hash] opts the optional parameters
|
|
142
|
+
# @return [CreateLineItem]
|
|
143
|
+
def line_items_get(ext_line_item_id, ext_project_id, opts = {})
|
|
144
|
+
data, _status_code, _headers = line_items_get_with_http_info(ext_line_item_id, ext_project_id, opts)
|
|
145
|
+
data
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# get lineItems
|
|
149
|
+
# @param ext_line_item_id
|
|
150
|
+
# @param ext_project_id
|
|
151
|
+
# @param [Hash] opts the optional parameters
|
|
152
|
+
# @return [Array<(CreateLineItem, Fixnum, Hash)>] CreateLineItem data, response status code and response headers
|
|
153
|
+
def line_items_get_with_http_info(ext_line_item_id, ext_project_id, opts = {})
|
|
154
|
+
if @api_client.config.debugging
|
|
155
|
+
@api_client.config.logger.debug 'Calling API: LineItemsApi.line_items_get ...'
|
|
156
|
+
end
|
|
157
|
+
# verify the required parameter 'ext_line_item_id' is set
|
|
158
|
+
if @api_client.config.client_side_validation && ext_line_item_id.nil?
|
|
159
|
+
fail ArgumentError, "Missing the required parameter 'ext_line_item_id' when calling LineItemsApi.line_items_get"
|
|
160
|
+
end
|
|
161
|
+
# verify the required parameter 'ext_project_id' is set
|
|
162
|
+
if @api_client.config.client_side_validation && ext_project_id.nil?
|
|
163
|
+
fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling LineItemsApi.line_items_get"
|
|
164
|
+
end
|
|
165
|
+
# resource path
|
|
166
|
+
local_var_path = '/sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}'.sub('{' + 'extLineItemId' + '}', ext_line_item_id.to_s).sub('{' + 'extProjectId' + '}', ext_project_id.to_s)
|
|
167
|
+
|
|
168
|
+
# query parameters
|
|
169
|
+
query_params = {}
|
|
170
|
+
|
|
171
|
+
# header parameters
|
|
172
|
+
header_params = {}
|
|
173
|
+
# HTTP header 'Accept' (if needed)
|
|
174
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.createlineitem+json'])
|
|
175
|
+
# HTTP header 'Content-Type'
|
|
176
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])
|
|
177
|
+
|
|
178
|
+
# form parameters
|
|
179
|
+
form_params = {}
|
|
180
|
+
|
|
181
|
+
# http body (model)
|
|
182
|
+
post_body = nil
|
|
183
|
+
auth_names = ['jwt']
|
|
184
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
185
|
+
:header_params => header_params,
|
|
186
|
+
:query_params => query_params,
|
|
187
|
+
:form_params => form_params,
|
|
188
|
+
:body => post_body,
|
|
189
|
+
:auth_names => auth_names,
|
|
190
|
+
:return_type => 'CreateLineItem')
|
|
191
|
+
if @api_client.config.debugging
|
|
192
|
+
@api_client.config.logger.debug "API called: LineItemsApi#line_items_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
193
|
+
end
|
|
194
|
+
return data, status_code, headers
|
|
195
|
+
end
|
|
196
|
+
# launch lineItems
|
|
197
|
+
# @param ext_line_item_id
|
|
198
|
+
# @param ext_project_id
|
|
199
|
+
# @param [Hash] opts the optional parameters
|
|
200
|
+
# @return [CreateLineItem]
|
|
201
|
+
def line_items_launch(ext_line_item_id, ext_project_id, opts = {})
|
|
202
|
+
data, _status_code, _headers = line_items_launch_with_http_info(ext_line_item_id, ext_project_id, opts)
|
|
203
|
+
data
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# launch lineItems
|
|
207
|
+
# @param ext_line_item_id
|
|
208
|
+
# @param ext_project_id
|
|
209
|
+
# @param [Hash] opts the optional parameters
|
|
210
|
+
# @return [Array<(CreateLineItem, Fixnum, Hash)>] CreateLineItem data, response status code and response headers
|
|
211
|
+
def line_items_launch_with_http_info(ext_line_item_id, ext_project_id, opts = {})
|
|
212
|
+
if @api_client.config.debugging
|
|
213
|
+
@api_client.config.logger.debug 'Calling API: LineItemsApi.line_items_launch ...'
|
|
214
|
+
end
|
|
215
|
+
# verify the required parameter 'ext_line_item_id' is set
|
|
216
|
+
if @api_client.config.client_side_validation && ext_line_item_id.nil?
|
|
217
|
+
fail ArgumentError, "Missing the required parameter 'ext_line_item_id' when calling LineItemsApi.line_items_launch"
|
|
218
|
+
end
|
|
219
|
+
# verify the required parameter 'ext_project_id' is set
|
|
220
|
+
if @api_client.config.client_side_validation && ext_project_id.nil?
|
|
221
|
+
fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling LineItemsApi.line_items_launch"
|
|
222
|
+
end
|
|
223
|
+
# resource path
|
|
224
|
+
local_var_path = '/sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}/launch'.sub('{' + 'extLineItemId' + '}', ext_line_item_id.to_s).sub('{' + 'extProjectId' + '}', ext_project_id.to_s)
|
|
225
|
+
|
|
226
|
+
# query parameters
|
|
227
|
+
query_params = {}
|
|
228
|
+
|
|
229
|
+
# header parameters
|
|
230
|
+
header_params = {}
|
|
231
|
+
# HTTP header 'Accept' (if needed)
|
|
232
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.createlineitem+json'])
|
|
233
|
+
# HTTP header 'Content-Type'
|
|
234
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])
|
|
235
|
+
|
|
236
|
+
# form parameters
|
|
237
|
+
form_params = {}
|
|
238
|
+
|
|
239
|
+
# http body (model)
|
|
240
|
+
post_body = nil
|
|
241
|
+
auth_names = ['jwt']
|
|
242
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
243
|
+
:header_params => header_params,
|
|
244
|
+
:query_params => query_params,
|
|
245
|
+
:form_params => form_params,
|
|
246
|
+
:body => post_body,
|
|
247
|
+
:auth_names => auth_names,
|
|
248
|
+
:return_type => 'CreateLineItem')
|
|
249
|
+
if @api_client.config.debugging
|
|
250
|
+
@api_client.config.logger.debug "API called: LineItemsApi#line_items_launch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
251
|
+
end
|
|
252
|
+
return data, status_code, headers
|
|
253
|
+
end
|
|
254
|
+
# listLineItems lineItems
|
|
255
|
+
# @param ext_project_id External Project ID
|
|
256
|
+
# @param [Hash] opts the optional parameters
|
|
257
|
+
# @option opts [String] :country_iso_code Only return line items with the given country ISO Code
|
|
258
|
+
# @option opts [String] :ext_line_item_id Only return line items with the given extLineItemId
|
|
259
|
+
# @option opts [String] :language_iso_code Only return line items with the given language ISO Code
|
|
260
|
+
# @option opts [Integer] :limit Maximum number of line items to return (default to 10)
|
|
261
|
+
# @option opts [Integer] :offset The first zero-based offset line item to return (default to 0)
|
|
262
|
+
# @option opts [Array<String>] :sort Sort the line items by the given key(s)
|
|
263
|
+
# @option opts [String] :state Only return lineitems with the given state
|
|
264
|
+
# @option opts [String] :state_reason Only return line items with the given state reason
|
|
265
|
+
# @option opts [String] :title Only return line items with the given title
|
|
266
|
+
# @return [LineItems]
|
|
267
|
+
def line_items_list_line_items(ext_project_id, opts = {})
|
|
268
|
+
data, _status_code, _headers = line_items_list_line_items_with_http_info(ext_project_id, opts)
|
|
269
|
+
data
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# listLineItems lineItems
|
|
273
|
+
# @param ext_project_id External Project ID
|
|
274
|
+
# @param [Hash] opts the optional parameters
|
|
275
|
+
# @option opts [String] :country_iso_code Only return line items with the given country ISO Code
|
|
276
|
+
# @option opts [String] :ext_line_item_id Only return line items with the given extLineItemId
|
|
277
|
+
# @option opts [String] :language_iso_code Only return line items with the given language ISO Code
|
|
278
|
+
# @option opts [Integer] :limit Maximum number of line items to return
|
|
279
|
+
# @option opts [Integer] :offset The first zero-based offset line item to return
|
|
280
|
+
# @option opts [Array<String>] :sort Sort the line items by the given key(s)
|
|
281
|
+
# @option opts [String] :state Only return lineitems with the given state
|
|
282
|
+
# @option opts [String] :state_reason Only return line items with the given state reason
|
|
283
|
+
# @option opts [String] :title Only return line items with the given title
|
|
284
|
+
# @return [Array<(LineItems, Fixnum, Hash)>] LineItems data, response status code and response headers
|
|
285
|
+
def line_items_list_line_items_with_http_info(ext_project_id, opts = {})
|
|
286
|
+
if @api_client.config.debugging
|
|
287
|
+
@api_client.config.logger.debug 'Calling API: LineItemsApi.line_items_list_line_items ...'
|
|
288
|
+
end
|
|
289
|
+
# verify the required parameter 'ext_project_id' is set
|
|
290
|
+
if @api_client.config.client_side_validation && ext_project_id.nil?
|
|
291
|
+
fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling LineItemsApi.line_items_list_line_items"
|
|
292
|
+
end
|
|
293
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
|
|
294
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LineItemsApi.line_items_list_line_items, must be smaller than or equal to 100.'
|
|
295
|
+
end
|
|
296
|
+
|
|
297
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
298
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LineItemsApi.line_items_list_line_items, must be greater than or equal to 1.'
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
|
302
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling LineItemsApi.line_items_list_line_items, must be greater than or equal to 0.'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# resource path
|
|
306
|
+
local_var_path = '/sample/v1/projects/{extProjectId}/lineItems'.sub('{' + 'extProjectId' + '}', ext_project_id.to_s)
|
|
307
|
+
|
|
308
|
+
# query parameters
|
|
309
|
+
query_params = {}
|
|
310
|
+
query_params[:'countryISOCode'] = opts[:'country_iso_code'] if !opts[:'country_iso_code'].nil?
|
|
311
|
+
query_params[:'extLineItemId'] = opts[:'ext_line_item_id'] if !opts[:'ext_line_item_id'].nil?
|
|
312
|
+
query_params[:'languageISOCode'] = opts[:'language_iso_code'] if !opts[:'language_iso_code'].nil?
|
|
313
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
314
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
315
|
+
query_params[:'sort'] = @api_client.build_collection_param(opts[:'sort'], :multi) if !opts[:'sort'].nil?
|
|
316
|
+
query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
|
|
317
|
+
query_params[:'stateReason'] = opts[:'state_reason'] if !opts[:'state_reason'].nil?
|
|
318
|
+
query_params[:'title'] = opts[:'title'] if !opts[:'title'].nil?
|
|
319
|
+
|
|
320
|
+
# header parameters
|
|
321
|
+
header_params = {}
|
|
322
|
+
# HTTP header 'Accept' (if needed)
|
|
323
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.lineitems+json'])
|
|
324
|
+
# HTTP header 'Content-Type'
|
|
325
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])
|
|
326
|
+
|
|
327
|
+
# form parameters
|
|
328
|
+
form_params = {}
|
|
329
|
+
|
|
330
|
+
# http body (model)
|
|
331
|
+
post_body = nil
|
|
332
|
+
auth_names = ['jwt']
|
|
333
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
334
|
+
:header_params => header_params,
|
|
335
|
+
:query_params => query_params,
|
|
336
|
+
:form_params => form_params,
|
|
337
|
+
:body => post_body,
|
|
338
|
+
:auth_names => auth_names,
|
|
339
|
+
:return_type => 'LineItems')
|
|
340
|
+
if @api_client.config.debugging
|
|
341
|
+
@api_client.config.logger.debug "API called: LineItemsApi#line_items_list_line_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
342
|
+
end
|
|
343
|
+
return data, status_code, headers
|
|
344
|
+
end
|
|
345
|
+
# pause lineItems
|
|
346
|
+
# @param ext_line_item_id
|
|
347
|
+
# @param ext_project_id
|
|
348
|
+
# @param [Hash] opts the optional parameters
|
|
349
|
+
# @return [CreateLineItem]
|
|
350
|
+
def line_items_pause(ext_line_item_id, ext_project_id, opts = {})
|
|
351
|
+
data, _status_code, _headers = line_items_pause_with_http_info(ext_line_item_id, ext_project_id, opts)
|
|
352
|
+
data
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# pause lineItems
|
|
356
|
+
# @param ext_line_item_id
|
|
357
|
+
# @param ext_project_id
|
|
358
|
+
# @param [Hash] opts the optional parameters
|
|
359
|
+
# @return [Array<(CreateLineItem, Fixnum, Hash)>] CreateLineItem data, response status code and response headers
|
|
360
|
+
def line_items_pause_with_http_info(ext_line_item_id, ext_project_id, opts = {})
|
|
361
|
+
if @api_client.config.debugging
|
|
362
|
+
@api_client.config.logger.debug 'Calling API: LineItemsApi.line_items_pause ...'
|
|
363
|
+
end
|
|
364
|
+
# verify the required parameter 'ext_line_item_id' is set
|
|
365
|
+
if @api_client.config.client_side_validation && ext_line_item_id.nil?
|
|
366
|
+
fail ArgumentError, "Missing the required parameter 'ext_line_item_id' when calling LineItemsApi.line_items_pause"
|
|
367
|
+
end
|
|
368
|
+
# verify the required parameter 'ext_project_id' is set
|
|
369
|
+
if @api_client.config.client_side_validation && ext_project_id.nil?
|
|
370
|
+
fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling LineItemsApi.line_items_pause"
|
|
371
|
+
end
|
|
372
|
+
# resource path
|
|
373
|
+
local_var_path = '/sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}/pause'.sub('{' + 'extLineItemId' + '}', ext_line_item_id.to_s).sub('{' + 'extProjectId' + '}', ext_project_id.to_s)
|
|
374
|
+
|
|
375
|
+
# query parameters
|
|
376
|
+
query_params = {}
|
|
377
|
+
|
|
378
|
+
# header parameters
|
|
379
|
+
header_params = {}
|
|
380
|
+
# HTTP header 'Accept' (if needed)
|
|
381
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.createlineitem+json'])
|
|
382
|
+
# HTTP header 'Content-Type'
|
|
383
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])
|
|
384
|
+
|
|
385
|
+
# form parameters
|
|
386
|
+
form_params = {}
|
|
387
|
+
|
|
388
|
+
# http body (model)
|
|
389
|
+
post_body = nil
|
|
390
|
+
auth_names = ['jwt']
|
|
391
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
392
|
+
:header_params => header_params,
|
|
393
|
+
:query_params => query_params,
|
|
394
|
+
:form_params => form_params,
|
|
395
|
+
:body => post_body,
|
|
396
|
+
:auth_names => auth_names,
|
|
397
|
+
:return_type => 'CreateLineItem')
|
|
398
|
+
if @api_client.config.debugging
|
|
399
|
+
@api_client.config.logger.debug "API called: LineItemsApi#line_items_pause\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
400
|
+
end
|
|
401
|
+
return data, status_code, headers
|
|
402
|
+
end
|
|
403
|
+
# update lineItems
|
|
404
|
+
# @param ext_line_item_id
|
|
405
|
+
# @param ext_project_id
|
|
406
|
+
# @param payload
|
|
407
|
+
# @param [Hash] opts the optional parameters
|
|
408
|
+
# @return [CreateLineItem]
|
|
409
|
+
def line_items_update(ext_line_item_id, ext_project_id, payload, opts = {})
|
|
410
|
+
data, _status_code, _headers = line_items_update_with_http_info(ext_line_item_id, ext_project_id, payload, opts)
|
|
411
|
+
data
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# update lineItems
|
|
415
|
+
# @param ext_line_item_id
|
|
416
|
+
# @param ext_project_id
|
|
417
|
+
# @param payload
|
|
418
|
+
# @param [Hash] opts the optional parameters
|
|
419
|
+
# @return [Array<(CreateLineItem, Fixnum, Hash)>] CreateLineItem data, response status code and response headers
|
|
420
|
+
def line_items_update_with_http_info(ext_line_item_id, ext_project_id, payload, opts = {})
|
|
421
|
+
if @api_client.config.debugging
|
|
422
|
+
@api_client.config.logger.debug 'Calling API: LineItemsApi.line_items_update ...'
|
|
423
|
+
end
|
|
424
|
+
# verify the required parameter 'ext_line_item_id' is set
|
|
425
|
+
if @api_client.config.client_side_validation && ext_line_item_id.nil?
|
|
426
|
+
fail ArgumentError, "Missing the required parameter 'ext_line_item_id' when calling LineItemsApi.line_items_update"
|
|
427
|
+
end
|
|
428
|
+
# verify the required parameter 'ext_project_id' is set
|
|
429
|
+
if @api_client.config.client_side_validation && ext_project_id.nil?
|
|
430
|
+
fail ArgumentError, "Missing the required parameter 'ext_project_id' when calling LineItemsApi.line_items_update"
|
|
431
|
+
end
|
|
432
|
+
# verify the required parameter 'payload' is set
|
|
433
|
+
if @api_client.config.client_side_validation && payload.nil?
|
|
434
|
+
fail ArgumentError, "Missing the required parameter 'payload' when calling LineItemsApi.line_items_update"
|
|
435
|
+
end
|
|
436
|
+
# resource path
|
|
437
|
+
local_var_path = '/sample/v1/projects/{extProjectId}/lineItems/{extLineItemId}'.sub('{' + 'extLineItemId' + '}', ext_line_item_id.to_s).sub('{' + 'extProjectId' + '}', ext_project_id.to_s)
|
|
438
|
+
|
|
439
|
+
# query parameters
|
|
440
|
+
query_params = {}
|
|
441
|
+
|
|
442
|
+
# header parameters
|
|
443
|
+
header_params = {}
|
|
444
|
+
# HTTP header 'Accept' (if needed)
|
|
445
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/vnd.createlineitem+json'])
|
|
446
|
+
# HTTP header 'Content-Type'
|
|
447
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/xml', 'application/gob', 'application/x-gob'])
|
|
448
|
+
|
|
449
|
+
# form parameters
|
|
450
|
+
form_params = {}
|
|
451
|
+
|
|
452
|
+
# http body (model)
|
|
453
|
+
post_body = @api_client.object_to_http_body(payload)
|
|
454
|
+
auth_names = ['jwt']
|
|
455
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
456
|
+
:header_params => header_params,
|
|
457
|
+
:query_params => query_params,
|
|
458
|
+
:form_params => form_params,
|
|
459
|
+
:body => post_body,
|
|
460
|
+
:auth_names => auth_names,
|
|
461
|
+
:return_type => 'CreateLineItem')
|
|
462
|
+
if @api_client.config.debugging
|
|
463
|
+
@api_client.config.logger.debug "API called: LineItemsApi#line_items_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
464
|
+
end
|
|
465
|
+
return data, status_code, headers
|
|
466
|
+
end
|
|
467
|
+
end
|
|
468
|
+
end
|