<commit_before>/* Copyright (c) 2012 Inish Technology Ventures Limited.  All rights reserved.
 * 
 * This code is licensed under the BSD 3-Clause License included with this source
 * 
 * FOR DETAILS, SEE https://github.com/InishTech/Sp.Api/wiki/License */

using System.Collections.Generic;

namespace Sp.Api.Consume.Acceptance
{
	using RestSharp;
	using Sp.Api.Shared.Wrappers;
	using System;

	public class SpAuthApi : SpApi
	{
		public SpAuthApi( SpApiConfiguration apiConfiguration )
			: base( apiConfiguration )
		{
		}

		internal IRestResponse InviteCustomer( string inviteLink, CustomerInvite invite )
		{
			var request = new RestRequest( inviteLink, Method.POST );
			request.RequestFormat = DataFormat.Json;
			request.AddBody( invite );
			return Execute( request );
		}

		public IRestResponse<InviteStatus> GetInviteStatus( string inviteStatusLink )
		{
			var request = new RestRequest( inviteStatusLink );
			request.RequestFormat = DataFormat.Json;
			return Execute<InviteStatus>( request );
		}

		internal IRestResponse CreateOrganization( OrganizationCreateModel organization )
		{
			string addLink = GetApiPrefix( ApiType.Auth ) + "/Registration/Organization";
			var request = new RestRequest( addLink, Method.POST );
			request.RequestFormat = DataFormat.Json;
			request.AddBody( organization );
			return Execute( request );
		}

		public class CustomerInvite
		{
			public string EmailTo { get; set; }
			public Guid RequestId { get; set; }<commit_msg>Fixed Organization path in SpAuthApi.cs<commit_after>/* Copyright (c) 2012 Inish Technology Ventures Limited.  All rights reserved.
 * 
 * This code is licensed under the BSD 3-Clause License included with this source
 * 
 * FOR DETAILS, SEE https://github.com/InishTech/Sp.Api/wiki/License */

using System.Collections.Generic;

namespace Sp.Api.Consume.Acceptance
{
	using RestSharp;
	using Sp.Api.Shared.Wrappers;
	using System;

	public class SpAuthApi : SpApi
	{
		public SpAuthApi( SpApiConfiguration apiConfiguration )
			: base( apiConfiguration )
		{
		}

		internal IRestResponse InviteCustomer( string inviteLink, CustomerInvite invite )
		{
			var request = new RestRequest( inviteLink, Method.POST );
			request.RequestFormat = DataFormat.Json;
			request.AddBody( invite );
			return Execute( request );
		}

		public IRestResponse<InviteStatus> GetInviteStatus( string inviteStatusLink )
		{
			var request = new RestRequest( inviteStatusLink );
			request.RequestFormat = DataFormat.Json;
			return Execute<InviteStatus>( request );
		}

		internal IRestResponse CreateOrganization( OrganizationCreateModel organization )
		{
			string addLink = GetApiPrefix( ApiType.Auth ) + "/Organization";
			var request = new RestRequest( addLink, Method.POST );
			request.RequestFormat = DataFormat.Json;
			request.AddBody( organization );
			return Execute( request );
		}

		public class CustomerInvite
		{
			public string EmailTo { get; set; }
			public Guid RequestId { get; set; }
{'fraction_non_alphanumeric': 0.08672268907563026, 'fraction_numerical': 0.0033613445378151263, 'mean_word_length': 4.122203098106713, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3383780', 'n_tokens_mistral': 959, 'n_tokens_neox': 842, 'n_words': 242}