kinde_sdk 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +128 -0
- data/README.md +12 -434
- data/kinde_api/README.md +98 -27
- data/kinde_api/docs/APIsApi.md +356 -0
- data/kinde_api/docs/AddAPIsRequest.md +20 -0
- data/kinde_api/docs/Api.md +28 -0
- data/kinde_api/docs/ApiApplicationsInner.md +24 -0
- data/kinde_api/docs/Apis.md +24 -0
- data/kinde_api/docs/Applications.md +22 -0
- data/kinde_api/docs/ApplicationsApi.md +368 -0
- data/kinde_api/docs/BusinessApi.md +183 -0
- data/kinde_api/docs/CallbacksApi.md +385 -25
- data/kinde_api/docs/CreateApplicationRequest.md +20 -0
- data/kinde_api/docs/CreateApplicationResponse.md +22 -0
- data/kinde_api/docs/CreateApplicationResponseApplication.md +22 -0
- data/kinde_api/docs/CreateFeatureFlagRequest.md +28 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +3 -1
- data/kinde_api/docs/CreateOrganizationUserPermissionRequest.md +18 -0
- data/kinde_api/docs/EnvironmentsApi.md +23 -23
- data/kinde_api/docs/FeatureFlagsApi.md +19 -29
- data/kinde_api/docs/GetApplicationResponse.md +22 -0
- data/kinde_api/docs/GetApplicationResponseApplication.md +26 -0
- data/kinde_api/docs/GetApplicationsResponse.md +2 -2
- data/kinde_api/docs/{GetOrganizationsUsersResponse.md → GetOrganizationUsersResponse.md} +2 -2
- data/kinde_api/docs/GetOrganizationsUserPermissionsResponse.md +22 -0
- data/kinde_api/docs/GetPermissionsResponse.md +24 -0
- data/kinde_api/docs/GetRolesResponse.md +24 -0
- data/kinde_api/docs/GetSubscriberResponse.md +22 -0
- data/kinde_api/docs/GetSubscribersResponse.md +24 -0
- data/kinde_api/docs/IndustriesApi.md +81 -0
- data/kinde_api/docs/LogoutRedirectUrls.md +18 -0
- data/kinde_api/docs/OAuthApi.md +153 -4
- data/kinde_api/docs/Organization.md +3 -1
- data/kinde_api/docs/OrganizationUserPermission.md +26 -0
- data/kinde_api/docs/OrganizationUserPermissionRolesInner.md +20 -0
- data/kinde_api/docs/OrganizationUserRolePermissions.md +22 -0
- data/kinde_api/docs/OrganizationUserRolePermissionsPermissions.md +18 -0
- data/kinde_api/docs/OrganizationsApi.md +328 -32
- data/kinde_api/docs/PermissionsApi.md +84 -14
- data/kinde_api/docs/ReplaceLogoutRedirectURLsRequest.md +18 -0
- data/kinde_api/docs/ReplaceRedirectCallbackURLsRequest.md +18 -0
- data/kinde_api/docs/Role.md +24 -0
- data/kinde_api/docs/Roles.md +2 -0
- data/kinde_api/docs/RolesApi.md +309 -17
- data/kinde_api/docs/RolesPermissionResponseInner.md +24 -0
- data/kinde_api/docs/Subscriber.md +24 -0
- data/kinde_api/docs/SubscribersApi.md +12 -14
- data/kinde_api/docs/SubscribersSubscriber.md +26 -0
- data/kinde_api/docs/TimezonesApi.md +81 -0
- data/kinde_api/docs/TokenErrorResponse.md +20 -0
- data/kinde_api/docs/TokenIntrospect.md +26 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequest.md +18 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +20 -0
- data/kinde_api/docs/UpdateApplicationRequest.md +24 -0
- data/kinde_api/docs/UpdateEnvironementFeatureFlagOverrideRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +3 -1
- data/kinde_api/docs/UpdateOrganizationUsersRequest.md +1 -1
- data/kinde_api/docs/UpdateRolePermissionsRequest.md +18 -0
- data/kinde_api/docs/UpdateRolePermissionsRequestPermissionsInner.md +20 -0
- data/kinde_api/docs/UpdateRolePermissionsResponse.md +24 -0
- data/kinde_api/docs/UpdateRolesRequest.md +24 -0
- data/kinde_api/docs/UpdateUserResponse.md +30 -0
- data/kinde_api/docs/User.md +7 -7
- data/kinde_api/docs/UserIdentitiesInner.md +20 -0
- data/kinde_api/docs/UsersApi.md +93 -15
- data/kinde_api/docs/UsersResponse.md +1 -1
- data/kinde_api/docs/UsersResponseUsersInner.md +42 -0
- data/kinde_api/lib/kinde_api/api/apis_api.rb +347 -0
- data/kinde_api/lib/kinde_api/api/applications_api.rb +352 -0
- data/kinde_api/lib/kinde_api/api/business_api.rb +210 -0
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +394 -31
- data/kinde_api/lib/kinde_api/api/environments_api.rb +22 -18
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +20 -61
- data/kinde_api/lib/kinde_api/api/industries_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +141 -2
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +318 -25
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +75 -12
- data/kinde_api/lib/kinde_api/api/roles_api.rb +297 -15
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +8 -11
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +87 -11
- data/kinde_api/lib/kinde_api/api_client.rb +14 -7
- data/kinde_api/lib/kinde_api/configuration.rb +81 -5
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/api.rb +271 -0
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/apis.rb +250 -0
- data/kinde_api/lib/kinde_api/models/applications.rb +237 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +2 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +264 -0
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +240 -0
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +336 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{application.rb → create_organization_user_permission_request.rb} +13 -19
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +260 -0
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +10 -8
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{get_organizations_users_response.rb → get_organization_users_response.rb} +5 -3
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +222 -0
- data/kinde_api/lib/kinde_api/models/organization.rb +15 -4
- data/kinde_api/lib/kinde_api/models/organization_user.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +257 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +237 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +219 -0
- data/kinde_api/lib/kinde_api/models/permissions.rb +2 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +2 -0
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/role.rb +246 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +13 -1
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscriber.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +255 -0
- data/kinde_api/lib/kinde_api/models/success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +262 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +226 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +235 -0
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +254 -0
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +3 -1
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +280 -0
- data/kinde_api/lib/kinde_api/models/user.rb +37 -32
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/user_identity.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +2 -0
- data/kinde_api/lib/kinde_api/models/users_response.rb +3 -1
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +348 -0
- data/kinde_api/lib/kinde_api.rb +47 -2
- data/kinde_api/spec/api/apis_api_spec.rb +95 -0
- data/kinde_api/spec/api/applications_api_spec.rb +98 -0
- data/kinde_api/spec/api/business_api_spec.rb +75 -0
- data/kinde_api/spec/api/callbacks_api_spec.rb +69 -5
- data/kinde_api/spec/api/environments_api_spec.rb +5 -5
- data/kinde_api/spec/api/feature_flags_api_spec.rb +4 -9
- data/kinde_api/spec/api/industries_api_spec.rb +48 -0
- data/kinde_api/spec/api/o_auth_api_spec.rb +28 -1
- data/kinde_api/spec/api/organizations_api_spec.rb +63 -8
- data/kinde_api/spec/api/permissions_api_spec.rb +16 -4
- data/kinde_api/spec/api/roles_api_spec.rb +57 -4
- data/kinde_api/spec/api/subscribers_api_spec.rb +3 -4
- data/kinde_api/spec/api/timezones_api_spec.rb +48 -0
- data/kinde_api/spec/api/users_api_spec.rb +17 -2
- data/kinde_api/spec/api_client_spec.rb +13 -2
- data/kinde_api/spec/models/{application_spec.rb → add_apis_request_spec.rb} +8 -8
- data/kinde_api/spec/models/api_applications_inner_spec.rb +52 -0
- data/kinde_api/spec/models/api_spec.rb +64 -0
- data/kinde_api/spec/models/apis_spec.rb +52 -0
- data/kinde_api/spec/models/applications_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_application_response_application_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +72 -0
- data/kinde_api/spec/models/create_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +34 -0
- data/kinde_api/spec/models/get_application_response_application_spec.rb +58 -0
- data/kinde_api/spec/models/get_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_applications_response_spec.rb +1 -1
- data/kinde_api/spec/models/{get_organizations_users_response_spec.rb → get_organization_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_roles_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +52 -0
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +34 -0
- data/kinde_api/spec/models/organization_spec.rb +6 -0
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +40 -0
- data/kinde_api/spec/models/organization_user_permission_spec.rb +58 -0
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +34 -0
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +46 -0
- data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/role_spec.rb +52 -0
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +52 -0
- data/kinde_api/spec/models/roles_spec.rb +6 -0
- data/kinde_api/spec/models/subscriber_spec.rb +52 -0
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +58 -0
- data/kinde_api/spec/models/token_error_response_spec.rb +40 -0
- data/kinde_api/spec/models/token_introspect_spec.rb +58 -0
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_application_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/update_roles_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_user_response_spec.rb +70 -0
- data/kinde_api/spec/models/user_identities_inner_spec.rb +40 -0
- data/kinde_api/spec/models/user_spec.rb +9 -9
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +106 -0
- data/kinde_sdk.gemspec +1 -1
- data/lib/kinde_sdk/version.rb +1 -1
- data/spec/kinde_sdk_spec.rb +0 -46
- metadata +193 -12
- data/kinde_api/docs/Application.md +0 -20
@@ -0,0 +1,352 @@
|
|
1
|
+
=begin
|
2
|
+
#Kinde Management API
|
3
|
+
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1
|
7
|
+
Contact: support@kinde.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module KindeApi
|
16
|
+
class ApplicationsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create Application
|
23
|
+
# Create an application.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [CreateApplicationRequest] :create_application_request Application details.
|
26
|
+
# @return [CreateApplicationResponse]
|
27
|
+
def create_application(opts = {})
|
28
|
+
data, _status_code, _headers = create_application_with_http_info(opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create Application
|
33
|
+
# Create an application.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [CreateApplicationRequest] :create_application_request Application details.
|
36
|
+
# @return [Array<(CreateApplicationResponse, Integer, Hash)>] CreateApplicationResponse data, response status code and response headers
|
37
|
+
def create_application_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.create_application ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/api/v1/applications'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
|
47
|
+
# header parameters
|
48
|
+
header_params = opts[:header_params] || {}
|
49
|
+
# HTTP header 'Accept' (if needed)
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
51
|
+
# HTTP header 'Content-Type'
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
53
|
+
if !content_type.nil?
|
54
|
+
header_params['Content-Type'] = content_type
|
55
|
+
end
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_application_request'])
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:debug_return_type] || 'CreateApplicationResponse'
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:operation => :"ApplicationsApi.create_application",
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#create_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
|
86
|
+
# Delete Application
|
87
|
+
# Delete application.
|
88
|
+
# @param application_id [String] The identifier for the application.
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [SuccessResponse]
|
91
|
+
def delete_application(application_id, opts = {})
|
92
|
+
data, _status_code, _headers = delete_application_with_http_info(application_id, opts)
|
93
|
+
data
|
94
|
+
end
|
95
|
+
|
96
|
+
# Delete Application
|
97
|
+
# Delete application.
|
98
|
+
# @param application_id [String] The identifier for the application.
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
101
|
+
def delete_application_with_http_info(application_id, opts = {})
|
102
|
+
if @api_client.config.debugging
|
103
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.delete_application ...'
|
104
|
+
end
|
105
|
+
# verify the required parameter 'application_id' is set
|
106
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
107
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.delete_application"
|
108
|
+
end
|
109
|
+
# resource path
|
110
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
111
|
+
|
112
|
+
# query parameters
|
113
|
+
query_params = opts[:query_params] || {}
|
114
|
+
|
115
|
+
# header parameters
|
116
|
+
header_params = opts[:header_params] || {}
|
117
|
+
# HTTP header 'Accept' (if needed)
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
119
|
+
|
120
|
+
# form parameters
|
121
|
+
form_params = opts[:form_params] || {}
|
122
|
+
|
123
|
+
# http body (model)
|
124
|
+
post_body = opts[:debug_body]
|
125
|
+
|
126
|
+
# return_type
|
127
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
128
|
+
|
129
|
+
# auth_names
|
130
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
131
|
+
|
132
|
+
new_options = opts.merge(
|
133
|
+
:operation => :"ApplicationsApi.delete_application",
|
134
|
+
:header_params => header_params,
|
135
|
+
:query_params => query_params,
|
136
|
+
:form_params => form_params,
|
137
|
+
:body => post_body,
|
138
|
+
:auth_names => auth_names,
|
139
|
+
:return_type => return_type
|
140
|
+
)
|
141
|
+
|
142
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
143
|
+
if @api_client.config.debugging
|
144
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#delete_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
145
|
+
end
|
146
|
+
return data, status_code, headers
|
147
|
+
end
|
148
|
+
|
149
|
+
# Get Application
|
150
|
+
# Gets an application given the application's id.
|
151
|
+
# @param application_id [String] The identifier for the application.
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @return [GetApplicationResponse]
|
154
|
+
def get_application(application_id, opts = {})
|
155
|
+
data, _status_code, _headers = get_application_with_http_info(application_id, opts)
|
156
|
+
data
|
157
|
+
end
|
158
|
+
|
159
|
+
# Get Application
|
160
|
+
# Gets an application given the application's id.
|
161
|
+
# @param application_id [String] The identifier for the application.
|
162
|
+
# @param [Hash] opts the optional parameters
|
163
|
+
# @return [Array<(GetApplicationResponse, Integer, Hash)>] GetApplicationResponse data, response status code and response headers
|
164
|
+
def get_application_with_http_info(application_id, opts = {})
|
165
|
+
if @api_client.config.debugging
|
166
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_application ...'
|
167
|
+
end
|
168
|
+
# verify the required parameter 'application_id' is set
|
169
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
170
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.get_application"
|
171
|
+
end
|
172
|
+
# resource path
|
173
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
174
|
+
|
175
|
+
# query parameters
|
176
|
+
query_params = opts[:query_params] || {}
|
177
|
+
|
178
|
+
# header parameters
|
179
|
+
header_params = opts[:header_params] || {}
|
180
|
+
# HTTP header 'Accept' (if needed)
|
181
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
182
|
+
|
183
|
+
# form parameters
|
184
|
+
form_params = opts[:form_params] || {}
|
185
|
+
|
186
|
+
# http body (model)
|
187
|
+
post_body = opts[:debug_body]
|
188
|
+
|
189
|
+
# return_type
|
190
|
+
return_type = opts[:debug_return_type] || 'GetApplicationResponse'
|
191
|
+
|
192
|
+
# auth_names
|
193
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
194
|
+
|
195
|
+
new_options = opts.merge(
|
196
|
+
:operation => :"ApplicationsApi.get_application",
|
197
|
+
:header_params => header_params,
|
198
|
+
:query_params => query_params,
|
199
|
+
:form_params => form_params,
|
200
|
+
:body => post_body,
|
201
|
+
:auth_names => auth_names,
|
202
|
+
:return_type => return_type
|
203
|
+
)
|
204
|
+
|
205
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
206
|
+
if @api_client.config.debugging
|
207
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#get_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
208
|
+
end
|
209
|
+
return data, status_code, headers
|
210
|
+
end
|
211
|
+
|
212
|
+
# List Applications
|
213
|
+
# Get a list of applications.
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
216
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
217
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
218
|
+
# @return [GetApplicationsResponse]
|
219
|
+
def get_applications(opts = {})
|
220
|
+
data, _status_code, _headers = get_applications_with_http_info(opts)
|
221
|
+
data
|
222
|
+
end
|
223
|
+
|
224
|
+
# List Applications
|
225
|
+
# Get a list of applications.
|
226
|
+
# @param [Hash] opts the optional parameters
|
227
|
+
# @option opts [String] :sort Field and order to sort the result by.
|
228
|
+
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
229
|
+
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
230
|
+
# @return [Array<(GetApplicationsResponse, Integer, Hash)>] GetApplicationsResponse data, response status code and response headers
|
231
|
+
def get_applications_with_http_info(opts = {})
|
232
|
+
if @api_client.config.debugging
|
233
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.get_applications ...'
|
234
|
+
end
|
235
|
+
allowable_values = ["name_asc", "name_desc"]
|
236
|
+
if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
|
237
|
+
fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
238
|
+
end
|
239
|
+
# resource path
|
240
|
+
local_var_path = '/api/v1/applications'
|
241
|
+
|
242
|
+
# query parameters
|
243
|
+
query_params = opts[:query_params] || {}
|
244
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
245
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
246
|
+
query_params[:'next_token'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
247
|
+
|
248
|
+
# header parameters
|
249
|
+
header_params = opts[:header_params] || {}
|
250
|
+
# HTTP header 'Accept' (if needed)
|
251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
252
|
+
|
253
|
+
# form parameters
|
254
|
+
form_params = opts[:form_params] || {}
|
255
|
+
|
256
|
+
# http body (model)
|
257
|
+
post_body = opts[:debug_body]
|
258
|
+
|
259
|
+
# return_type
|
260
|
+
return_type = opts[:debug_return_type] || 'GetApplicationsResponse'
|
261
|
+
|
262
|
+
# auth_names
|
263
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
264
|
+
|
265
|
+
new_options = opts.merge(
|
266
|
+
:operation => :"ApplicationsApi.get_applications",
|
267
|
+
:header_params => header_params,
|
268
|
+
:query_params => query_params,
|
269
|
+
:form_params => form_params,
|
270
|
+
:body => post_body,
|
271
|
+
:auth_names => auth_names,
|
272
|
+
:return_type => return_type
|
273
|
+
)
|
274
|
+
|
275
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
276
|
+
if @api_client.config.debugging
|
277
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#get_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
278
|
+
end
|
279
|
+
return data, status_code, headers
|
280
|
+
end
|
281
|
+
|
282
|
+
# Update Application
|
283
|
+
# Update an application.
|
284
|
+
# @param application_id [String] The identifier for the application.
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @option opts [UpdateApplicationRequest] :update_application_request Application details.
|
287
|
+
# @return [nil]
|
288
|
+
def update_application(application_id, opts = {})
|
289
|
+
update_application_with_http_info(application_id, opts)
|
290
|
+
nil
|
291
|
+
end
|
292
|
+
|
293
|
+
# Update Application
|
294
|
+
# Update an application.
|
295
|
+
# @param application_id [String] The identifier for the application.
|
296
|
+
# @param [Hash] opts the optional parameters
|
297
|
+
# @option opts [UpdateApplicationRequest] :update_application_request Application details.
|
298
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
299
|
+
def update_application_with_http_info(application_id, opts = {})
|
300
|
+
if @api_client.config.debugging
|
301
|
+
@api_client.config.logger.debug 'Calling API: ApplicationsApi.update_application ...'
|
302
|
+
end
|
303
|
+
# verify the required parameter 'application_id' is set
|
304
|
+
if @api_client.config.client_side_validation && application_id.nil?
|
305
|
+
fail ArgumentError, "Missing the required parameter 'application_id' when calling ApplicationsApi.update_application"
|
306
|
+
end
|
307
|
+
# resource path
|
308
|
+
local_var_path = '/api/v1/applications/{application_id}'.sub('{' + 'application_id' + '}', CGI.escape(application_id.to_s))
|
309
|
+
|
310
|
+
# query parameters
|
311
|
+
query_params = opts[:query_params] || {}
|
312
|
+
|
313
|
+
# header parameters
|
314
|
+
header_params = opts[:header_params] || {}
|
315
|
+
# HTTP header 'Accept' (if needed)
|
316
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
317
|
+
# HTTP header 'Content-Type'
|
318
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
319
|
+
if !content_type.nil?
|
320
|
+
header_params['Content-Type'] = content_type
|
321
|
+
end
|
322
|
+
|
323
|
+
# form parameters
|
324
|
+
form_params = opts[:form_params] || {}
|
325
|
+
|
326
|
+
# http body (model)
|
327
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_application_request'])
|
328
|
+
|
329
|
+
# return_type
|
330
|
+
return_type = opts[:debug_return_type]
|
331
|
+
|
332
|
+
# auth_names
|
333
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
334
|
+
|
335
|
+
new_options = opts.merge(
|
336
|
+
:operation => :"ApplicationsApi.update_application",
|
337
|
+
:header_params => header_params,
|
338
|
+
:query_params => query_params,
|
339
|
+
:form_params => form_params,
|
340
|
+
:body => post_body,
|
341
|
+
:auth_names => auth_names,
|
342
|
+
:return_type => return_type
|
343
|
+
)
|
344
|
+
|
345
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
346
|
+
if @api_client.config.debugging
|
347
|
+
@api_client.config.logger.debug "API called: ApplicationsApi#update_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
348
|
+
end
|
349
|
+
return data, status_code, headers
|
350
|
+
end
|
351
|
+
end
|
352
|
+
end
|
@@ -0,0 +1,210 @@
|
|
1
|
+
=begin
|
2
|
+
#Kinde Management API
|
3
|
+
|
4
|
+
#Provides endpoints to manage your Kinde Businesses
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1
|
7
|
+
Contact: support@kinde.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 6.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module KindeApi
|
16
|
+
class BusinessApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# List business details
|
23
|
+
# Get your business details.
|
24
|
+
# @param code [String] Business code.
|
25
|
+
# @param name [String] Business name.
|
26
|
+
# @param email [String] Email associated with business.
|
27
|
+
# @param [Hash] opts the optional parameters
|
28
|
+
# @option opts [String] :phone Phone number associated with business.
|
29
|
+
# @option opts [String] :industry The industry your business is in.
|
30
|
+
# @option opts [String] :timezone The timezone your business is in.
|
31
|
+
# @option opts [String] :privacy_url Your Privacy policy URL.
|
32
|
+
# @option opts [String] :terms_url Your Terms and Conditions URL.
|
33
|
+
# @return [SuccessResponse]
|
34
|
+
def get_business(code, name, email, opts = {})
|
35
|
+
data, _status_code, _headers = get_business_with_http_info(code, name, email, opts)
|
36
|
+
data
|
37
|
+
end
|
38
|
+
|
39
|
+
# List business details
|
40
|
+
# Get your business details.
|
41
|
+
# @param code [String] Business code.
|
42
|
+
# @param name [String] Business name.
|
43
|
+
# @param email [String] Email associated with business.
|
44
|
+
# @param [Hash] opts the optional parameters
|
45
|
+
# @option opts [String] :phone Phone number associated with business.
|
46
|
+
# @option opts [String] :industry The industry your business is in.
|
47
|
+
# @option opts [String] :timezone The timezone your business is in.
|
48
|
+
# @option opts [String] :privacy_url Your Privacy policy URL.
|
49
|
+
# @option opts [String] :terms_url Your Terms and Conditions URL.
|
50
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
51
|
+
def get_business_with_http_info(code, name, email, opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.get_business ...'
|
54
|
+
end
|
55
|
+
# verify the required parameter 'code' is set
|
56
|
+
if @api_client.config.client_side_validation && code.nil?
|
57
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling BusinessApi.get_business"
|
58
|
+
end
|
59
|
+
# verify the required parameter 'name' is set
|
60
|
+
if @api_client.config.client_side_validation && name.nil?
|
61
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling BusinessApi.get_business"
|
62
|
+
end
|
63
|
+
# verify the required parameter 'email' is set
|
64
|
+
if @api_client.config.client_side_validation && email.nil?
|
65
|
+
fail ArgumentError, "Missing the required parameter 'email' when calling BusinessApi.get_business"
|
66
|
+
end
|
67
|
+
# resource path
|
68
|
+
local_var_path = '/api/v1/business'
|
69
|
+
|
70
|
+
# query parameters
|
71
|
+
query_params = opts[:query_params] || {}
|
72
|
+
query_params[:'code'] = code
|
73
|
+
query_params[:'name'] = name
|
74
|
+
query_params[:'email'] = email
|
75
|
+
query_params[:'phone'] = opts[:'phone'] if !opts[:'phone'].nil?
|
76
|
+
query_params[:'industry'] = opts[:'industry'] if !opts[:'industry'].nil?
|
77
|
+
query_params[:'timezone'] = opts[:'timezone'] if !opts[:'timezone'].nil?
|
78
|
+
query_params[:'privacy_url'] = opts[:'privacy_url'] if !opts[:'privacy_url'].nil?
|
79
|
+
query_params[:'terms_url'] = opts[:'terms_url'] if !opts[:'terms_url'].nil?
|
80
|
+
|
81
|
+
# header parameters
|
82
|
+
header_params = opts[:header_params] || {}
|
83
|
+
# HTTP header 'Accept' (if needed)
|
84
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
85
|
+
|
86
|
+
# form parameters
|
87
|
+
form_params = opts[:form_params] || {}
|
88
|
+
|
89
|
+
# http body (model)
|
90
|
+
post_body = opts[:debug_body]
|
91
|
+
|
92
|
+
# return_type
|
93
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
94
|
+
|
95
|
+
# auth_names
|
96
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
97
|
+
|
98
|
+
new_options = opts.merge(
|
99
|
+
:operation => :"BusinessApi.get_business",
|
100
|
+
:header_params => header_params,
|
101
|
+
:query_params => query_params,
|
102
|
+
:form_params => form_params,
|
103
|
+
:body => post_body,
|
104
|
+
:auth_names => auth_names,
|
105
|
+
:return_type => return_type
|
106
|
+
)
|
107
|
+
|
108
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
109
|
+
if @api_client.config.debugging
|
110
|
+
@api_client.config.logger.debug "API called: BusinessApi#get_business\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
111
|
+
end
|
112
|
+
return data, status_code, headers
|
113
|
+
end
|
114
|
+
|
115
|
+
# Update business details
|
116
|
+
# Update business details.
|
117
|
+
# @param business_name [String] Business name.
|
118
|
+
# @param primary_email [String] Email associated with business.
|
119
|
+
# @param [Hash] opts the optional parameters
|
120
|
+
# @option opts [String] :primary_phone Phone number associated with business.
|
121
|
+
# @option opts [String] :industry_key The key of the industry your business is in.
|
122
|
+
# @option opts [String] :timezone_id The ID of the timezone your business is in.
|
123
|
+
# @option opts [String] :privacy_url Your Privacy policy URL.
|
124
|
+
# @option opts [String] :terms_url Your Terms and Conditions URL.
|
125
|
+
# @option opts [String] :is_show_kinde_branding Display \"Powered by Kinde\" on your sign up, sign in, and subscription pages.
|
126
|
+
# @option opts [Boolean] :is_click_wrap Show a policy acceptance checkbox on sign up.
|
127
|
+
# @option opts [String] :partner_code Your Kinde Perk code.
|
128
|
+
# @return [SuccessResponse]
|
129
|
+
def update_business(business_name, primary_email, opts = {})
|
130
|
+
data, _status_code, _headers = update_business_with_http_info(business_name, primary_email, opts)
|
131
|
+
data
|
132
|
+
end
|
133
|
+
|
134
|
+
# Update business details
|
135
|
+
# Update business details.
|
136
|
+
# @param business_name [String] Business name.
|
137
|
+
# @param primary_email [String] Email associated with business.
|
138
|
+
# @param [Hash] opts the optional parameters
|
139
|
+
# @option opts [String] :primary_phone Phone number associated with business.
|
140
|
+
# @option opts [String] :industry_key The key of the industry your business is in.
|
141
|
+
# @option opts [String] :timezone_id The ID of the timezone your business is in.
|
142
|
+
# @option opts [String] :privacy_url Your Privacy policy URL.
|
143
|
+
# @option opts [String] :terms_url Your Terms and Conditions URL.
|
144
|
+
# @option opts [String] :is_show_kinde_branding Display \"Powered by Kinde\" on your sign up, sign in, and subscription pages.
|
145
|
+
# @option opts [Boolean] :is_click_wrap Show a policy acceptance checkbox on sign up.
|
146
|
+
# @option opts [String] :partner_code Your Kinde Perk code.
|
147
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
148
|
+
def update_business_with_http_info(business_name, primary_email, opts = {})
|
149
|
+
if @api_client.config.debugging
|
150
|
+
@api_client.config.logger.debug 'Calling API: BusinessApi.update_business ...'
|
151
|
+
end
|
152
|
+
# verify the required parameter 'business_name' is set
|
153
|
+
if @api_client.config.client_side_validation && business_name.nil?
|
154
|
+
fail ArgumentError, "Missing the required parameter 'business_name' when calling BusinessApi.update_business"
|
155
|
+
end
|
156
|
+
# verify the required parameter 'primary_email' is set
|
157
|
+
if @api_client.config.client_side_validation && primary_email.nil?
|
158
|
+
fail ArgumentError, "Missing the required parameter 'primary_email' when calling BusinessApi.update_business"
|
159
|
+
end
|
160
|
+
# resource path
|
161
|
+
local_var_path = '/api/v1/business'
|
162
|
+
|
163
|
+
# query parameters
|
164
|
+
query_params = opts[:query_params] || {}
|
165
|
+
query_params[:'business_name'] = business_name
|
166
|
+
query_params[:'primary_email'] = primary_email
|
167
|
+
query_params[:'primary_phone'] = opts[:'primary_phone'] if !opts[:'primary_phone'].nil?
|
168
|
+
query_params[:'industry_key'] = opts[:'industry_key'] if !opts[:'industry_key'].nil?
|
169
|
+
query_params[:'timezone_id'] = opts[:'timezone_id'] if !opts[:'timezone_id'].nil?
|
170
|
+
query_params[:'privacy_url'] = opts[:'privacy_url'] if !opts[:'privacy_url'].nil?
|
171
|
+
query_params[:'terms_url'] = opts[:'terms_url'] if !opts[:'terms_url'].nil?
|
172
|
+
query_params[:'is_show_kinde_branding'] = opts[:'is_show_kinde_branding'] if !opts[:'is_show_kinde_branding'].nil?
|
173
|
+
query_params[:'is_click_wrap'] = opts[:'is_click_wrap'] if !opts[:'is_click_wrap'].nil?
|
174
|
+
query_params[:'partner_code'] = opts[:'partner_code'] if !opts[:'partner_code'].nil?
|
175
|
+
|
176
|
+
# header parameters
|
177
|
+
header_params = opts[:header_params] || {}
|
178
|
+
# HTTP header 'Accept' (if needed)
|
179
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
180
|
+
|
181
|
+
# form parameters
|
182
|
+
form_params = opts[:form_params] || {}
|
183
|
+
|
184
|
+
# http body (model)
|
185
|
+
post_body = opts[:debug_body]
|
186
|
+
|
187
|
+
# return_type
|
188
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
189
|
+
|
190
|
+
# auth_names
|
191
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
192
|
+
|
193
|
+
new_options = opts.merge(
|
194
|
+
:operation => :"BusinessApi.update_business",
|
195
|
+
:header_params => header_params,
|
196
|
+
:query_params => query_params,
|
197
|
+
:form_params => form_params,
|
198
|
+
:body => post_body,
|
199
|
+
:auth_names => auth_names,
|
200
|
+
:return_type => return_type
|
201
|
+
)
|
202
|
+
|
203
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
204
|
+
if @api_client.config.debugging
|
205
|
+
@api_client.config.logger.debug "API called: BusinessApi#update_business\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
206
|
+
end
|
207
|
+
return data, status_code, headers
|
208
|
+
end
|
209
|
+
end
|
210
|
+
end
|